@syncfusion/ej2-layouts 28.2.5 → 29.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/README.md +4 -7
- 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 +14 -3
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +14 -3
- 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 +15 -18
- package/src/dashboard-layout/dashboard-layout.d.ts +1 -0
- package/src/dashboard-layout/dashboard-layout.js +14 -3
- package/styles/bootstrap4-lite.css +5 -5
- package/styles/bootstrap4.css +5 -5
- package/styles/bootstrap5-dark-lite.css +18 -18
- package/styles/bootstrap5-dark.css +18 -18
- package/styles/bootstrap5-lite.css +5 -5
- package/styles/bootstrap5.css +5 -5
- package/styles/card/_bootstrap4-definition.scss +7 -5
- package/styles/card/bootstrap4.css +5 -5
- package/styles/card/bootstrap5-dark.css +7 -7
- package/styles/card/bootstrap5.css +4 -4
- package/styles/card/fabric-dark.css +2 -2
- package/styles/card/fabric.css +2 -2
- package/styles/dashboard-layout/bootstrap5-dark.css +5 -5
- package/styles/dashboard-layout/bootstrap5.css +1 -1
- package/styles/dashboard-layout/tailwind-dark.css +2 -2
- package/styles/fabric-dark-lite.css +10 -10
- package/styles/fabric-dark.css +10 -10
- package/styles/fabric-lite.css +2 -2
- package/styles/fabric.css +2 -2
- package/styles/splitter/bootstrap5-dark.css +3 -3
- package/styles/splitter/fabric-dark.css +8 -8
- package/styles/tailwind-dark-lite.css +2 -2
- package/styles/tailwind-dark.css +2 -2
- package/styles/timeline/bootstrap5-dark.css +3 -3
@@ -3385,7 +3385,8 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
3385
3385
|
}
|
3386
3386
|
setHeightWidth() {
|
3387
3387
|
let heightValue;
|
3388
|
-
if (isNullOrUndefined(this.cellSpacing)
|
3388
|
+
if (isNullOrUndefined(this.cellSpacing) || (this.panels.length === 0 && this.panelCollection &&
|
3389
|
+
this.panelCollection.length === 0)) {
|
3389
3390
|
return;
|
3390
3391
|
}
|
3391
3392
|
if (this.checkMediaQuery()) {
|
@@ -3407,6 +3408,10 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
3407
3408
|
const widthValue = window.getComputedStyle(this.element).width;
|
3408
3409
|
setStyleAttribute(this.element, { 'width': widthValue });
|
3409
3410
|
}
|
3411
|
+
setEmptyLayoutHeight() {
|
3412
|
+
this.element.style.removeProperty('height');
|
3413
|
+
this.element.style.removeProperty('width');
|
3414
|
+
}
|
3410
3415
|
setHeightAndWidth(panelElement, panelModel) {
|
3411
3416
|
setStyleAttribute(panelElement, { 'height': formatUnit(this.setXYDimensions(panelModel)[0]) });
|
3412
3417
|
setStyleAttribute(panelElement, { 'width': formatUnit(this.setXYDimensions(panelModel)[1]) });
|
@@ -4897,6 +4902,7 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
4897
4902
|
this.updateCloneArrayObject();
|
4898
4903
|
this.checkForChanges(false, null, clonedPanels);
|
4899
4904
|
this.removeAllCalled = false;
|
4905
|
+
this.setEmptyLayoutHeight();
|
4900
4906
|
}
|
4901
4907
|
/**
|
4902
4908
|
* Removes the panel from the DashboardLayout.
|
@@ -4935,6 +4941,9 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
4935
4941
|
});
|
4936
4942
|
this.updateCloneArrayObject();
|
4937
4943
|
this.checkForChanges(false, null, [removedPanel]);
|
4944
|
+
if (this.panels.length === 0 && this.panelCollection.length === 0) {
|
4945
|
+
this.setEmptyLayoutHeight();
|
4946
|
+
}
|
4938
4947
|
}
|
4939
4948
|
/**
|
4940
4949
|
*Moves the panel in the DashboardLayout.
|
@@ -5184,8 +5193,10 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
5184
5193
|
break;
|
5185
5194
|
case 'cellSpacing':
|
5186
5195
|
this.setProperties({ cellSpacing: newProp.cellSpacing }, true);
|
5187
|
-
this.
|
5188
|
-
|
5196
|
+
if (!this.checkMediaQuery()) {
|
5197
|
+
this.updateCellSizeAndSpacing();
|
5198
|
+
this.updateGridLines();
|
5199
|
+
}
|
5189
5200
|
break;
|
5190
5201
|
case 'draggableHandle':
|
5191
5202
|
this.setProperties({ draggableHandle: newProp.draggableHandle }, true);
|