@syncfusion/ej2-layouts 21.2.6 → 22.1.34
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/.eslintrc.json +1 -0
- package/CHANGELOG.md +16 -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 +30 -17
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +30 -17
- 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 +6 -6
- package/src/dashboard-layout/dashboard-layout-model.d.ts +5 -3
- package/src/dashboard-layout/dashboard-layout.d.ts +6 -4
- package/src/dashboard-layout/dashboard-layout.js +27 -17
- package/src/splitter/splitter.js +3 -0
- package/styles/avatar/_material3-dark-definition.scss +1 -0
- package/styles/avatar/_material3-definition.scss +26 -0
- package/styles/avatar/material3-dark.css +114 -0
- package/styles/avatar/material3-dark.scss +4 -0
- package/styles/avatar/material3.css +170 -0
- package/styles/avatar/material3.scss +4 -0
- package/styles/bootstrap4.css +3 -2
- package/styles/card/_bootstrap4-definition.scss +3 -2
- package/styles/card/_layout.scss +2 -2
- package/styles/card/_material3-dark-definition.scss +1 -0
- package/styles/card/_material3-definition.scss +125 -0
- package/styles/card/bootstrap4.css +3 -2
- package/styles/card/fabric.css +1 -1
- package/styles/card/highcontrast.css +1 -1
- package/styles/card/material3-dark.css +567 -0
- package/styles/card/material3-dark.scss +4 -0
- package/styles/card/material3.css +623 -0
- package/styles/card/material3.scss +4 -0
- package/styles/dashboard-layout/_layout.scss +1 -1
- package/styles/dashboard-layout/_material3-dark-definition.scss +1 -0
- package/styles/dashboard-layout/_material3-definition.scss +108 -0
- package/styles/dashboard-layout/_theme.scss +1 -1
- package/styles/dashboard-layout/icons/_material3-dark.scss +1 -0
- package/styles/dashboard-layout/material3-dark.css +357 -0
- package/styles/dashboard-layout/material3-dark.scss +5 -0
- package/styles/dashboard-layout/material3.css +413 -0
- package/styles/dashboard-layout/material3.scss +5 -0
- package/styles/fabric.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material3-dark.css +1414 -0
- package/styles/material3-dark.scss +6 -0
- package/styles/material3.css +1470 -0
- package/styles/material3.scss +6 -0
- package/styles/splitter/_material3-dark-definition.scss +1 -0
- package/styles/splitter/_material3-definition.scss +31 -0
- package/styles/splitter/icons/_material3-dark.scss +1 -0
- package/styles/splitter/material3-dark.css +543 -0
- package/styles/splitter/material3-dark.scss +5 -0
- package/styles/splitter/material3.css +599 -0
- package/styles/splitter/material3.scss +5 -0
@@ -1809,6 +1809,9 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
1809
1809
|
if (this.paneSettings[i].size === '') {
|
1810
1810
|
flexPaneCount = flexPaneCount + 1;
|
1811
1811
|
}
|
1812
|
+
else if ((!this.isReact) && this.allPanes[i].style.flexBasis !== '') {
|
1813
|
+
this.paneSettings[i].size = this.allPanes[i].style.flexBasis;
|
1814
|
+
}
|
1812
1815
|
}
|
1813
1816
|
var allFlexiblePanes = flexPaneCount === this.allPanes.length;
|
1814
1817
|
// Two flexible Pane Case.
|
@@ -2696,7 +2699,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2696
2699
|
DashboardLayout.prototype.templateParser = function (template) {
|
2697
2700
|
if (template) {
|
2698
2701
|
try {
|
2699
|
-
if (document.querySelectorAll(template).length) {
|
2702
|
+
if (typeof template !== 'function' && document.querySelectorAll(template).length) {
|
2700
2703
|
return compile(document.querySelector(template).innerHTML.trim());
|
2701
2704
|
}
|
2702
2705
|
else {
|
@@ -2830,18 +2833,23 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2830
2833
|
this.resizeEvents();
|
2831
2834
|
};
|
2832
2835
|
DashboardLayout.prototype.downResizeHandler = function (e) {
|
2833
|
-
|
2834
|
-
this.
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2841
|
-
|
2842
|
-
|
2843
|
-
|
2844
|
-
|
2836
|
+
var el = closest((e.currentTarget), '.e-panel');
|
2837
|
+
for (var i = 0; this.panels.length > i; i++) {
|
2838
|
+
if (this.panels[i].enabled && this.panels[i].id === el.id) {
|
2839
|
+
this.downHandler(e);
|
2840
|
+
this.lastMouseX = e.pageX;
|
2841
|
+
this.lastMouseY = e.pageY;
|
2842
|
+
var moveEventName = (Browser.info.name === 'msie') ? 'mousemove pointermove' : 'mousemove';
|
2843
|
+
var upEventName = (Browser.info.name === 'msie') ? 'mouseup pointerup' : 'mouseup';
|
2844
|
+
if (!this.isMouseMoveBound) {
|
2845
|
+
EventHandler.add(document, moveEventName, this.moveResizeHandler, this);
|
2846
|
+
this.isMouseMoveBound = true;
|
2847
|
+
}
|
2848
|
+
if (!this.isMouseUpBound) {
|
2849
|
+
EventHandler.add(document, upEventName, this.upResizeHandler, this);
|
2850
|
+
this.isMouseUpBound = true;
|
2851
|
+
}
|
2852
|
+
}
|
2845
2853
|
}
|
2846
2854
|
};
|
2847
2855
|
DashboardLayout.prototype.downHandler = function (e) {
|
@@ -3006,7 +3014,12 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
3006
3014
|
this.panelPropertyChange(item, { sizeX: item.sizeX - 1 });
|
3007
3015
|
}
|
3008
3016
|
this.shadowEle.style.top = ((item.row * this.getCellSize()[1] + (item.row * this.cellSpacing[1]))) + 'px';
|
3009
|
-
|
3017
|
+
if (this.handleClass.indexOf('west') >= 0) {
|
3018
|
+
this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col - 1) * this.cellSpacing[0])) + 'px';
|
3019
|
+
}
|
3020
|
+
else {
|
3021
|
+
this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col) * this.cellSpacing[0])) + 'px';
|
3022
|
+
}
|
3010
3023
|
this.shadowEle.style.height = ((item.sizeY * (this.getCellSize()[1] + (this.cellSpacing[1])))) + 'px';
|
3011
3024
|
this.shadowEle.style.width = ((item.sizeX * (this.getCellSize()[0] + (this.cellSpacing[0])))) + 'px';
|
3012
3025
|
if (oldSizeX !== item.sizeX || oldSizeY !== item.sizeY) {
|
@@ -3023,6 +3036,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
3023
3036
|
};
|
3024
3037
|
this.setAttributes(value, el);
|
3025
3038
|
this.mainElement = el;
|
3039
|
+
this.checkCollision = [];
|
3026
3040
|
this.updatePanelLayout(el, this.getCellInstance(el.id));
|
3027
3041
|
this.updateOldRowColumn();
|
3028
3042
|
this.sortedPanel();
|
@@ -3103,12 +3117,11 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
3103
3117
|
return item;
|
3104
3118
|
};
|
3105
3119
|
DashboardLayout.prototype.pixelsToColumns = function (pixels, isCeil) {
|
3106
|
-
var curColWidth = this.cellSize[0];
|
3107
3120
|
if (isCeil) {
|
3108
|
-
return Math.ceil(pixels /
|
3121
|
+
return Math.ceil(pixels / this.cellSize[0]);
|
3109
3122
|
}
|
3110
3123
|
else {
|
3111
|
-
return Math.floor(pixels /
|
3124
|
+
return Math.floor(pixels / (this.cellSize[0] + this.cellSpacing[0]));
|
3112
3125
|
}
|
3113
3126
|
};
|
3114
3127
|
DashboardLayout.prototype.pixelsToRows = function (pixels, isCeil) {
|