@syncfusion/ej2-layouts 21.2.3 → 21.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/ej2-layouts.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js.map +1 -1
- package/dist/es6/ej2-layouts.es2015.js +17 -7
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +17 -7
- package/dist/es6/ej2-layouts.es5.js.map +1 -1
- package/dist/global/ej2-layouts.min.js +2 -2
- package/dist/global/ej2-layouts.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -7
- package/src/dashboard-layout/dashboard-layout.js +9 -4
- package/src/splitter/splitter.js +8 -3
package/dist/global/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version : 21.2.
|
3
|
+
* version : 21.2.9
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
5
5
|
* Use of this code is subject to the terms of our license.
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "@syncfusion/ej2-layouts@*",
|
3
|
-
"_id": "@syncfusion/ej2-layouts@21.
|
3
|
+
"_id": "@syncfusion/ej2-layouts@21.2.6",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512
|
5
|
+
"_integrity": "sha512-oPRVnc4Y6GJ/EgKsDQT3KHvSjYdFBECeXE6zUvOBXRwJje/TDkTOrypx90XOgQ+8t0+VtC6y8+8wmzwKxiZepA==",
|
6
6
|
"_location": "/@syncfusion/ej2-layouts",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -19,13 +19,16 @@
|
|
19
19
|
"_requiredBy": [
|
20
20
|
"/",
|
21
21
|
"/@syncfusion/ej2",
|
22
|
+
"/@syncfusion/ej2-angular-layouts",
|
22
23
|
"/@syncfusion/ej2-filemanager",
|
23
24
|
"/@syncfusion/ej2-gantt",
|
24
25
|
"/@syncfusion/ej2-kanban",
|
25
|
-
"/@syncfusion/ej2-pdfviewer"
|
26
|
+
"/@syncfusion/ej2-pdfviewer",
|
27
|
+
"/@syncfusion/ej2-react-layouts",
|
28
|
+
"/@syncfusion/ej2-vue-layouts"
|
26
29
|
],
|
27
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-21.
|
28
|
-
"_shasum": "
|
30
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-21.2.6.tgz",
|
31
|
+
"_shasum": "dcd35ff989ae0708599b9728a48dea1d72604726",
|
29
32
|
"_spec": "@syncfusion/ej2-layouts@*",
|
30
33
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
31
34
|
"author": {
|
@@ -33,7 +36,7 @@
|
|
33
36
|
},
|
34
37
|
"bundleDependencies": false,
|
35
38
|
"dependencies": {
|
36
|
-
"@syncfusion/ej2-base": "~21.2.
|
39
|
+
"@syncfusion/ej2-base": "~21.2.9"
|
37
40
|
},
|
38
41
|
"deprecated": false,
|
39
42
|
"description": "A package of Essential JS 2 layout pure CSS components such as card and avatar. The card is used as small container to show content in specific structure, whereas the avatars are icons, initials or figures representing particular person.",
|
@@ -73,7 +76,7 @@
|
|
73
76
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/layouts"
|
74
77
|
},
|
75
78
|
"typings": "index.d.ts",
|
76
|
-
"version": "21.2.
|
79
|
+
"version": "21.2.9",
|
77
80
|
"sideEffects": false,
|
78
81
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
79
82
|
}
|
@@ -656,7 +656,12 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
656
656
|
this.panelPropertyChange(item, { sizeX: item.sizeX - 1 });
|
657
657
|
}
|
658
658
|
this.shadowEle.style.top = ((item.row * this.getCellSize()[1] + (item.row * this.cellSpacing[1]))) + 'px';
|
659
|
-
|
659
|
+
if (this.handleClass.indexOf('west') >= 0) {
|
660
|
+
this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col - 1) * this.cellSpacing[0])) + 'px';
|
661
|
+
}
|
662
|
+
else {
|
663
|
+
this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col) * this.cellSpacing[0])) + 'px';
|
664
|
+
}
|
660
665
|
this.shadowEle.style.height = ((item.sizeY * (this.getCellSize()[1] + (this.cellSpacing[1])))) + 'px';
|
661
666
|
this.shadowEle.style.width = ((item.sizeX * (this.getCellSize()[0] + (this.cellSpacing[0])))) + 'px';
|
662
667
|
if (oldSizeX !== item.sizeX || oldSizeY !== item.sizeY) {
|
@@ -673,6 +678,7 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
673
678
|
};
|
674
679
|
this.setAttributes(value, el);
|
675
680
|
this.mainElement = el;
|
681
|
+
this.checkCollision = [];
|
676
682
|
this.updatePanelLayout(el, this.getCellInstance(el.id));
|
677
683
|
this.updateOldRowColumn();
|
678
684
|
this.sortedPanel();
|
@@ -753,12 +759,11 @@ var DashboardLayout = /** @class */ (function (_super) {
|
|
753
759
|
return item;
|
754
760
|
};
|
755
761
|
DashboardLayout.prototype.pixelsToColumns = function (pixels, isCeil) {
|
756
|
-
var curColWidth = this.cellSize[0];
|
757
762
|
if (isCeil) {
|
758
|
-
return Math.ceil(pixels /
|
763
|
+
return Math.ceil(pixels / this.cellSize[0]);
|
759
764
|
}
|
760
765
|
else {
|
761
|
-
return Math.floor(pixels /
|
766
|
+
return Math.floor(pixels / (this.cellSize[0] + this.cellSpacing[0]));
|
762
767
|
}
|
763
768
|
};
|
764
769
|
DashboardLayout.prototype.pixelsToRows = function (pixels, isCeil) {
|
package/src/splitter/splitter.js
CHANGED
@@ -344,7 +344,7 @@ var Splitter = /** @class */ (function (_super) {
|
|
344
344
|
var prePaneSize = this.orientation === 'Horizontal' ? this.previousPane.offsetWidth : this.previousPane.offsetHeight;
|
345
345
|
var nextPaneSize = this.orientation === 'Horizontal' ? this.nextPane.offsetWidth : this.nextPane.offsetHeight;
|
346
346
|
var splitBarSize = isNullOrUndefined(this.separatorSize) ? BAR_SIZE_DEFAULT : this.separatorSize;
|
347
|
-
if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
|
347
|
+
if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.previousPane.style.flexBasis.indexOf('p') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
|
348
348
|
var previousFlexBasis = this.updatePaneFlexBasis(this.previousPane);
|
349
349
|
var nextFlexBasis = this.updatePaneFlexBasis(this.nextPane);
|
350
350
|
this.totalPercent = previousFlexBasis + nextFlexBasis;
|
@@ -1098,8 +1098,10 @@ var Splitter = /** @class */ (function (_super) {
|
|
1098
1098
|
updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
|
1099
1099
|
: (updatePaneOffset + sizeDiff) + 'px';
|
1100
1100
|
var flexPaneOffset = this.orientation === 'Horizontal' ? flexPane.offsetWidth : flexPane.offsetHeight;
|
1101
|
-
flexPane.style.flexBasis
|
1102
|
-
|
1101
|
+
if (flexPane.style.flexBasis !== '') {
|
1102
|
+
flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
|
1103
|
+
this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
|
1104
|
+
}
|
1103
1105
|
}
|
1104
1106
|
}
|
1105
1107
|
}
|
@@ -1810,6 +1812,9 @@ var Splitter = /** @class */ (function (_super) {
|
|
1810
1812
|
if (this.paneSettings[i].size === '') {
|
1811
1813
|
flexPaneCount = flexPaneCount + 1;
|
1812
1814
|
}
|
1815
|
+
else if (this.allPanes[i].style.flexBasis !== '') {
|
1816
|
+
this.paneSettings[i].size = this.allPanes[i].style.flexBasis;
|
1817
|
+
}
|
1813
1818
|
}
|
1814
1819
|
var allFlexiblePanes = flexPaneCount === this.allPanes.length;
|
1815
1820
|
// Two flexible Pane Case.
|