Skip to content

Commit b86345d

Browse files
author
pipeline
committed
v17.4.44 is released
1 parent 5a00574 commit b86345d

File tree

176 files changed

+2042
-706
lines changed

Some content is hidden

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

176 files changed

+2042
-706
lines changed

controls/base/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 17.4.43 (2020-01-14)
5+
## 17.4.44 (2021-01-21)
66

77
### Common
88

controls/buttons/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 17.4.43 (2020-01-14)
5+
## 17.4.44 (2021-01-21)
66

77
### Button
88

controls/calendars/dist/ej2-calendars.umd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/ej2-calendars.umd.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/es6/ej2-calendars.es2015.js

+1
Original file line numberDiff line numberDiff line change
@@ -4489,6 +4489,7 @@ let DatePicker = class DatePicker extends Calendar {
44894489
this.changeTrigger(null);
44904490
}
44914491
}
4492+
this.isInteracted = true;
44924493
break;
44934494
case 'format':
44944495
this.checkFormat();

controls/calendars/dist/es6/ej2-calendars.es2015.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/es6/ej2-calendars.es5.js

+1
Original file line numberDiff line numberDiff line change
@@ -4535,6 +4535,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
45354535
this.changeTrigger(null);
45364536
}
45374537
}
4538+
this.isInteracted = true;
45384539
break;
45394540
case 'format':
45404541
this.checkFormat();

controls/calendars/dist/es6/ej2-calendars.es5.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/global/ej2-calendars.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/dist/global/ej2-calendars.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/calendars/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-calendars",
3-
"version": "17.4.41",
3+
"version": "17.4.43",
44
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/calendars/spec/datepicker/datepicker.spec.ts

+24
Original file line numberDiff line numberDiff line change
@@ -1862,6 +1862,30 @@ describe('Datepicker', () => {
18621862
expect(datepicker.changedArgs.isInteracted).toBe(true);
18631863
});
18641864
});
1865+
describe('Change the same value with interaction and without interaction', () => {
1866+
let datepicker: any;
1867+
beforeEach(() => {
1868+
let ele: HTMLElement = createElement('input', { id: 'date' });
1869+
document.body.appendChild(ele);
1870+
datepicker = new DatePicker({ value: new Date("12/12/2016") });
1871+
datepicker.appendTo('#date');
1872+
});
1873+
afterEach(() => {
1874+
if (datepicker) {
1875+
datepicker.destroy();
1876+
}
1877+
document.body.innerHTML = '';
1878+
});
1879+
it('Key events enter after changing value', () => {
1880+
datepicker.todayElement.click();
1881+
expect(datepicker.changedArgs.isInteracted).toBe(true);
1882+
datepicker.value = new Date();
1883+
datepicker.dataBind();
1884+
datepicker.inputElement.value = '5/5/2020';
1885+
datepicker.inputBlurHandler();
1886+
expect(datepicker.changedArgs.isInteracted).toBe(true);
1887+
});
1888+
});
18651889
describe('clear button related testing', () => {
18661890
let mouseEventArgs: any = { preventDefault: function () { }, target: null };
18671891
let date: DatePicker;

controls/calendars/src/datepicker/datepicker.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,7 @@ export class DatePicker extends Calendar implements IInput {
19061906
this.changeTrigger(null);
19071907
}
19081908
}
1909+
this.isInteracted = true;
19091910
break;
19101911
case 'format':
19111912
this.checkFormat();

controls/circulargauge/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## [Unreleased]
66

7-
## 17.4.43 (2020-01-14)
7+
## 17.4.44 (2021-01-21)
88

99
### CircularGauge
1010

controls/data/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 17.4.43 (2020-01-14)
5+
## 17.4.44 (2021-01-21)
66

77
### DataManager
88

controls/diagrams/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## [Unreleased]
44

5+
## 17.4.44 (2021-01-21)
6+
7+
### Diagram
8+
9+
#### Bug Fixes
10+
11+
- `#259960` - The issue "Expand and collapse not working on the Mindmap Layout" has been fixed.
12+
- `#260287` - The issue "left most node unable to be selected in the layout sample" has been fixed.
13+
- `#256458` - The diagram html content is cutoff, while exporting the diagram issue has been fixed.
14+
- `#259774` - The issue with connector and node opacity that is decreased while expanding and collapsing a ComplexHierarchicalTree layout has been fixed.
15+
516
## 17.4.43 (2020-01-14)
617

718
### Diagram

controls/diagrams/dist/ej2-diagrams.umd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/diagrams/dist/ej2-diagrams.umd.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/diagrams/dist/es6/ej2-diagrams.es2015.js

+9-6
Original file line numberDiff line numberDiff line change
@@ -24048,7 +24048,7 @@ class DiagramEventHandler {
2404824048
bottomLeft = { x: (width - 17), y: height };
2404924049
bottomRight = { x: width, y: height };
2405024050
bounds = Rect.toBounds([topLeft, topRight, bottomLeft, bottomRight]);
24051-
if (bounds.containsPoint({ x: x, y: y })) {
24051+
if (bounds.containsPoint({ x: x + diagramCanvas.scrollLeft, y: y + diagramCanvas.scrollTop })) {
2405224052
return true;
2405324053
}
2405424054
}
@@ -24058,7 +24058,7 @@ class DiagramEventHandler {
2405824058
bottomLeft = { x: 0, y: height };
2405924059
bottomRight = { x: width, y: height };
2406024060
bounds = Rect.toBounds([topLeft, topRight, bottomLeft, bottomRight]);
24061-
if (bounds.containsPoint({ x: x, y: y })) {
24061+
if (bounds.containsPoint({ x: x + diagramCanvas.scrollLeft, y: y + diagramCanvas.scrollTop })) {
2406224062
return true;
2406324063
}
2406424064
}
@@ -29595,11 +29595,11 @@ class CommandHandler {
2959529595
connector.visible = visibility;
2959629596
let oldValues = {
2959729597
visible: target.visible,
29598-
style: { opacity: target.style.opacity }
29598+
style: { opacity: target.wrapper.style.opacity }
2959929599
};
2960029600
let newValues = {
2960129601
visible: target.visible,
29602-
style: { opacity: target.style.opacity }
29602+
style: { opacity: target.wrapper.style.opacity }
2960329603
};
2960429604
if (value) {
2960529605
if (target.isExpanded) {
@@ -34247,6 +34247,9 @@ class Diagram extends Component {
3424734247
this.protectPropertyChange(propChange);
3424834248
}
3424934249
}
34250+
if (update && !this.diagramActions) {
34251+
this.updateDiagramElementQuad();
34252+
}
3425034253
return ((this.blazorActions & BlazorAction.expandNode) ? layout : true);
3425134254
}
3425234255
/**
@@ -39756,7 +39759,7 @@ class PrintAndExport {
3975639759
let ctx = canvas.getContext('2d');
3975739760
ctx.fillStyle = 'transparent';
3975839761
ctx.fillRect(0, 0, bounds.width + (margin.left + margin.right), bounds.height + (margin.top + margin.bottom));
39759-
ctx.drawImage(img, bounds.x, bounds.y, bounds.width, bounds.height, margin.left, margin.top, bounds.width, bounds.height);
39762+
ctx.drawImage(img, 0, 0, bounds.width, bounds.height, margin.left, margin.top, bounds.width, bounds.height);
3976039763
image = canvas.toDataURL();
3976139764
if (options.printOptions) {
3976239765
context.printImages(image, options);
@@ -47049,7 +47052,7 @@ class HierarchicalTree {
4704947052
hasChild(layout, shape) {
4705047053
//Check whether the node has children
4705147054
let shape1 = layout.graphNodes[shape.id];
47052-
return shape1.tree.children && shape1.tree.children.length;
47055+
return shape1 ? shape1.tree.children && shape1.tree.children.length : 0;
4705347056
}
4705447057
updateHorizontalTree(layout, shape, prev, x, y, level) {
4705547058
//Get dimensions with respect to layout orientations

controls/diagrams/dist/es6/ej2-diagrams.es2015.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/diagrams/dist/es6/ej2-diagrams.es5.js

+9-6
Original file line numberDiff line numberDiff line change
@@ -25183,7 +25183,7 @@ var DiagramEventHandler = /** @__PURE__ @class */ (function () {
2518325183
bottomLeft = { x: (width - 17), y: height };
2518425184
bottomRight = { x: width, y: height };
2518525185
bounds = Rect.toBounds([topLeft, topRight, bottomLeft, bottomRight]);
25186-
if (bounds.containsPoint({ x: x, y: y })) {
25186+
if (bounds.containsPoint({ x: x + diagramCanvas.scrollLeft, y: y + diagramCanvas.scrollTop })) {
2518725187
return true;
2518825188
}
2518925189
}
@@ -25193,7 +25193,7 @@ var DiagramEventHandler = /** @__PURE__ @class */ (function () {
2519325193
bottomLeft = { x: 0, y: height };
2519425194
bottomRight = { x: width, y: height };
2519525195
bounds = Rect.toBounds([topLeft, topRight, bottomLeft, bottomRight]);
25196-
if (bounds.containsPoint({ x: x, y: y })) {
25196+
if (bounds.containsPoint({ x: x + diagramCanvas.scrollLeft, y: y + diagramCanvas.scrollTop })) {
2519725197
return true;
2519825198
}
2519925199
}
@@ -30819,11 +30819,11 @@ var CommandHandler = /** @__PURE__ @class */ (function () {
3081930819
connector.visible = visibility;
3082030820
var oldValues = {
3082130821
visible: target.visible,
30822-
style: { opacity: target.style.opacity }
30822+
style: { opacity: target.wrapper.style.opacity }
3082330823
};
3082430824
var newValues = {
3082530825
visible: target.visible,
30826-
style: { opacity: target.style.opacity }
30826+
style: { opacity: target.wrapper.style.opacity }
3082730827
};
3082830828
if (value) {
3082930829
if (target.isExpanded) {
@@ -35615,6 +35615,9 @@ var Diagram = /** @__PURE__ @class */ (function (_super) {
3561535615
this.protectPropertyChange(propChange);
3561635616
}
3561735617
}
35618+
if (update && !this.diagramActions) {
35619+
this.updateDiagramElementQuad();
35620+
}
3561835621
return ((this.blazorActions & BlazorAction.expandNode) ? layout : true);
3561935622
};
3562035623
/**
@@ -41208,7 +41211,7 @@ var PrintAndExport = /** @__PURE__ @class */ (function () {
4120841211
var ctx = canvas.getContext('2d');
4120941212
ctx.fillStyle = 'transparent';
4121041213
ctx.fillRect(0, 0, bounds.width + (margin.left + margin.right), bounds.height + (margin.top + margin.bottom));
41211-
ctx.drawImage(img, bounds.x, bounds.y, bounds.width, bounds.height, margin.left, margin.top, bounds.width, bounds.height);
41214+
ctx.drawImage(img, 0, 0, bounds.width, bounds.height, margin.left, margin.top, bounds.width, bounds.height);
4121241215
image = canvas.toDataURL();
4121341216
if (options.printOptions) {
4121441217
context.printImages(image, options);
@@ -48571,7 +48574,7 @@ var HierarchicalTree = /** @__PURE__ @class */ (function () {
4857148574
HierarchicalTree.prototype.hasChild = function (layout, shape) {
4857248575
//Check whether the node has children
4857348576
var shape1 = layout.graphNodes[shape.id];
48574-
return shape1.tree.children && shape1.tree.children.length;
48577+
return shape1 ? shape1.tree.children && shape1.tree.children.length : 0;
4857548578
};
4857648579
HierarchicalTree.prototype.updateHorizontalTree = function (layout, shape, prev, x, y, level) {
4857748580
//Get dimensions with respect to layout orientations

controls/diagrams/dist/es6/ej2-diagrams.es5.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/diagrams/dist/global/ej2-diagrams.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/diagrams/dist/global/ej2-diagrams.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/diagrams/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-diagrams",
3-
"version": "17.4.41",
3+
"version": "17.4.43",
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",

0 commit comments

Comments
 (0)