Skip to content

Commit 064f99c

Browse files
author
pipeline
committed
v20.4.50 is released
1 parent 0b1d2fe commit 064f99c

File tree

197 files changed

+2529
-1178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+2529
-1178
lines changed

controls/base/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 20.4.49 (2023-02-07)
5+
## 20.4.50 (2023-02-14)
66

77
### Dashboard Layout
88

controls/buttons/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## 20.4.50 (2023-02-14)
6+
7+
### RadioButton
8+
9+
#### Bug Fixes
10+
11+
- `#F40707` - Value change event triggered twice in Radio Button component has been fixed.
12+
513
## 20.4.49 (2023-02-07)
614

715
### Switch

controls/buttons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-buttons",
3-
"version": "20.4.48",
3+
"version": "20.4.49",
44
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/buttons/src/radio-button/radio-button.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ export class RadioButton extends Component<HTMLInputElement> implements INotifyP
148148
let value: string = this.element.getAttribute('value');
149149
value = this.isVue && value ? this.element.value : this.value;
150150
this.trigger('change', <ChangeArgs>{ value: value, event: event });
151-
if (this.tagName === 'EJS-RADIOBUTTON') {
151+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
152+
if ((this as any).isAngular) {
152153
event.stopPropagation();
153154
}
154155
}

controls/buttons/themestudio/styles/popups/dialog/_fluent-definition.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//Layout Variables Start
2-
$dialog-close-button-left: 15px !default;
2+
$dialog-close-button-left: 0 !default;
33
$dialog-header-border: 0 solid $border-light !default;
44
$dialog-close-icon-font-size: 14px !default;
55
$dialog-bigger-close-icon-font-size: 16px !default;
@@ -8,7 +8,7 @@ $header-content-border-radius: 0 !default;
88
$dialog-border-radius: $model-radius !default;
99
$dialog-border: 0 solid $border-light !default;
1010
$dialog-content-font-size: $text-sm !default;
11-
$dialog-header-line-height: $leading-tight !default;
11+
$dialog-header-line-height: $leading-loose !default;
1212
$dialog-content-line-height: $leading-normal !default;
1313
$dialog-content-padding-top: 0 !default;
1414
$dialog-bigger-content-padding-top: 0 !default;
@@ -35,7 +35,7 @@ $dialog-close-icon-width: 12px !default;
3535
$dialog-bigger-close-icon-height: 14px !default;
3636
$dialog-bigger-close-icon-width: 14px !default;
3737
$dialog-close-icon-top: 0 !default;
38-
$dialog-headericon-bottom: 5px !default;
38+
$dialog-headericon-bottom: 0 !default;
3939
$dialog-bigger-header-content-font-size: $text-lg !default;
4040
$dialog-bigger-content-font-size: $text-base !default;
4141
$dialog-bigger-close-icon-top: 0 !default;

controls/buttons/themestudio/styles/popups/dialog/_tailwind-definition.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $dialog-device-content-font-size: $text-base !default;
1616
$dialog-border-radius: 6px !default;
1717
$dialog-header-icon-hover-border-radius: 50% !default;
1818
$dialog-close-button-height: 20px !default;
19-
$dialog-close-button-width: 20px !default;
19+
$dialog-close-button-width: 0 !default;
2020
$dialog-header-content-padding: 10px 18px !default;
2121
$dialog-content-padding: 12px 18px 12px 18px !default;
2222
$dialog-footer-content-padding: 8px 18px 8px 18px !default;

controls/calendars/themestudio/styles/pivotview/pivotview/_theme.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,10 @@
15341534
display: none !important;
15351535
}
15361536

1537+
.e-pivotchart.e-chart {
1538+
overflow: visible !important;
1539+
}
1540+
15371541
/* stylelint-enable */
15381542
}
15391543

controls/calendars/themestudio/styles/popups/dialog/_fluent-definition.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//Layout Variables Start
2-
$dialog-close-button-left: 15px !default;
2+
$dialog-close-button-left: 0 !default;
33
$dialog-header-border: 0 solid $border-light !default;
44
$dialog-close-icon-font-size: 14px !default;
55
$dialog-bigger-close-icon-font-size: 16px !default;
@@ -8,7 +8,7 @@ $header-content-border-radius: 0 !default;
88
$dialog-border-radius: $model-radius !default;
99
$dialog-border: 0 solid $border-light !default;
1010
$dialog-content-font-size: $text-sm !default;
11-
$dialog-header-line-height: $leading-tight !default;
11+
$dialog-header-line-height: $leading-loose !default;
1212
$dialog-content-line-height: $leading-normal !default;
1313
$dialog-content-padding-top: 0 !default;
1414
$dialog-bigger-content-padding-top: 0 !default;
@@ -35,7 +35,7 @@ $dialog-close-icon-width: 12px !default;
3535
$dialog-bigger-close-icon-height: 14px !default;
3636
$dialog-bigger-close-icon-width: 14px !default;
3737
$dialog-close-icon-top: 0 !default;
38-
$dialog-headericon-bottom: 5px !default;
38+
$dialog-headericon-bottom: 0 !default;
3939
$dialog-bigger-header-content-font-size: $text-lg !default;
4040
$dialog-bigger-content-font-size: $text-base !default;
4141
$dialog-bigger-close-icon-top: 0 !default;

controls/calendars/themestudio/styles/popups/dialog/_tailwind-definition.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $dialog-device-content-font-size: $text-base !default;
1616
$dialog-border-radius: 6px !default;
1717
$dialog-header-icon-hover-border-radius: 50% !default;
1818
$dialog-close-button-height: 20px !default;
19-
$dialog-close-button-width: 20px !default;
19+
$dialog-close-button-width: 0 !default;
2020
$dialog-header-content-padding: 10px 18px !default;
2121
$dialog-content-padding: 12px 18px 12px 18px !default;
2222
$dialog-footer-content-padding: 8px 18px 8px 18px !default;

controls/charts/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 20.4.49 (2023-02-07)
5+
## 20.4.50 (2023-02-14)
66

77
### Chart
88

controls/data/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 20.4.49 (2023-02-07)
5+
## 20.4.50 (2023-02-14)
66

77
### DataManager
88

controls/diagrams/CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
## [Unreleased]
44

5-
## 20.4.49 (2023-02-07)
5+
## 20.4.50 (2023-02-14)
6+
7+
### Diagram
8+
9+
#### Bug Fixes
10+
11+
- `#I432667` - Now, overview updated properly while doing interactions after zoom out.
12+
- `#I433980` - Now, the nodes selections are proper for nodes with large annotations.
13+
14+
## 20.4.48 (2023-02-01)
615

716
### Diagram
817

controls/diagrams/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-diagrams",
3-
"version": "20.4.42",
3+
"version": "20.4.48",
44
"description": "Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/diagrams/spec/diagram/objects/annotation.spec.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,4 +1284,59 @@ describe('Add annotation template at run time', () => {
12841284
done();
12851285
});
12861286

1287+
})
1288+
1289+
describe('Selection issue with large annotation content', () => {
1290+
let diagram: Diagram;
1291+
let ele: HTMLElement;
1292+
beforeAll((): void => {
1293+
const isDef = (o: any) => o !== undefined && o !== null;
1294+
if (!isDef(window.performance)) {
1295+
console.log("Unsupported environment, window.performance.memory is unavailable");
1296+
this.skip(); //Skips test (in Chai)
1297+
return;
1298+
}
1299+
ele = createElement('div', { id: 'diagramAnnotation' });
1300+
document.body.appendChild(ele);
1301+
let node: NodeModel = {
1302+
id: 'node1', width: 100, height: 100, offsetX: 100, offsetY: 100, annotations: [ { content: 'A second common modern English style is to use no indenting, but add vertical white space to create "block paragraphs." On a typewriter, a double carriage return produces a blank line for this purpose; professional typesetters (or word processing software) may put in an arbitrary vertical space by adjusting leading. This style is very common in electronic formats, such as on the World Wide Web and email. Wikipedia itself employs this format.',style:{textWrapping:'Wrap',textOverflow:'Clip'} }]
1303+
};
1304+
let node2: NodeModel = {
1305+
id: 'node2', width: 100, height: 100, offsetX: 100, offsetY: 250, annotations: [ { content: 'A second common modern English style is to use no indenting, but add vertical white space to create "block paragraphs." On a typewriter, a double carriage return produces a blank line for this purpose; professional typesetters (or word processing software) may put in an arbitrary vertical space by adjusting leading. This style is very common in electronic formats, such as on the World Wide Web and email. Wikipedia itself employs this format.',style:{textWrapping:'Wrap',textOverflow:'Clip'}}]
1306+
};
1307+
1308+
1309+
diagram = new Diagram({ mode: 'SVG', width: 800, height: 500, nodes: [node,node2] });
1310+
diagram.appendTo('#diagramAnnotation');
1311+
});
1312+
1313+
afterAll((): void => {
1314+
diagram.destroy();
1315+
ele.remove();
1316+
});
1317+
1318+
it('Selecting first node with large annotation', (done: Function) => {
1319+
let mouseEvents: MouseEvents = new MouseEvents();
1320+
let diagramCanvas: HTMLElement = document.getElementById(diagram.element.id + 'content');
1321+
mouseEvents.mouseMoveEvent(diagramCanvas, 100, 120);
1322+
mouseEvents.clickEvent(diagramCanvas, 100, 120);
1323+
expect(diagram.selectedItems.nodes[0].id == "node1").toBe(true);
1324+
done();
1325+
});
1326+
it('Selecting second node with large annotation', (done: Function) => {
1327+
let mouseEvents: MouseEvents = new MouseEvents();
1328+
let diagramCanvas: HTMLElement = document.getElementById(diagram.element.id + 'content');
1329+
mouseEvents.mouseMoveEvent(diagramCanvas, 100, 270);
1330+
mouseEvents.clickEvent(diagramCanvas, 100, 270);
1331+
expect(diagram.selectedItems.nodes[0].id == "node2").toBe(true);
1332+
done();
1333+
});
1334+
it('Selecting diagram canvas bwtween the space of two nodes with large annotation', (done: Function) => {
1335+
let mouseEvents: MouseEvents = new MouseEvents();
1336+
let diagramCanvas: HTMLElement = document.getElementById(diagram.element.id + 'content');
1337+
mouseEvents.mouseMoveEvent(diagramCanvas, 100, 180);
1338+
mouseEvents.clickEvent(diagramCanvas, 100, 180);
1339+
expect(diagram.selectedItems.nodes.length == 0).toBe(true);
1340+
});
1341+
12871342
})

0 commit comments

Comments
 (0)