@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.
Files changed (38) hide show
  1. package/README.md +4 -7
  2. package/dist/ej2-layouts.min.js +2 -2
  3. package/dist/ej2-layouts.umd.min.js +2 -2
  4. package/dist/ej2-layouts.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-layouts.es2015.js +14 -3
  6. package/dist/es6/ej2-layouts.es2015.js.map +1 -1
  7. package/dist/es6/ej2-layouts.es5.js +14 -3
  8. package/dist/es6/ej2-layouts.es5.js.map +1 -1
  9. package/dist/global/ej2-layouts.min.js +2 -2
  10. package/dist/global/ej2-layouts.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +15 -18
  13. package/src/dashboard-layout/dashboard-layout.d.ts +1 -0
  14. package/src/dashboard-layout/dashboard-layout.js +14 -3
  15. package/styles/bootstrap4-lite.css +5 -5
  16. package/styles/bootstrap4.css +5 -5
  17. package/styles/bootstrap5-dark-lite.css +18 -18
  18. package/styles/bootstrap5-dark.css +18 -18
  19. package/styles/bootstrap5-lite.css +5 -5
  20. package/styles/bootstrap5.css +5 -5
  21. package/styles/card/_bootstrap4-definition.scss +7 -5
  22. package/styles/card/bootstrap4.css +5 -5
  23. package/styles/card/bootstrap5-dark.css +7 -7
  24. package/styles/card/bootstrap5.css +4 -4
  25. package/styles/card/fabric-dark.css +2 -2
  26. package/styles/card/fabric.css +2 -2
  27. package/styles/dashboard-layout/bootstrap5-dark.css +5 -5
  28. package/styles/dashboard-layout/bootstrap5.css +1 -1
  29. package/styles/dashboard-layout/tailwind-dark.css +2 -2
  30. package/styles/fabric-dark-lite.css +10 -10
  31. package/styles/fabric-dark.css +10 -10
  32. package/styles/fabric-lite.css +2 -2
  33. package/styles/fabric.css +2 -2
  34. package/styles/splitter/bootstrap5-dark.css +3 -3
  35. package/styles/splitter/fabric-dark.css +8 -8
  36. package/styles/tailwind-dark-lite.css +2 -2
  37. package/styles/tailwind-dark.css +2 -2
  38. package/styles/timeline/bootstrap5-dark.css +3 -3
@@ -3445,7 +3445,8 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3445
3445
  };
3446
3446
  DashboardLayout.prototype.setHeightWidth = function () {
3447
3447
  var heightValue;
3448
- if (isNullOrUndefined(this.cellSpacing)) {
3448
+ if (isNullOrUndefined(this.cellSpacing) || (this.panels.length === 0 && this.panelCollection &&
3449
+ this.panelCollection.length === 0)) {
3449
3450
  return;
3450
3451
  }
3451
3452
  if (this.checkMediaQuery()) {
@@ -3467,6 +3468,10 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3467
3468
  var widthValue = window.getComputedStyle(this.element).width;
3468
3469
  setStyleAttribute(this.element, { 'width': widthValue });
3469
3470
  };
3471
+ DashboardLayout.prototype.setEmptyLayoutHeight = function () {
3472
+ this.element.style.removeProperty('height');
3473
+ this.element.style.removeProperty('width');
3474
+ };
3470
3475
  DashboardLayout.prototype.setHeightAndWidth = function (panelElement, panelModel) {
3471
3476
  setStyleAttribute(panelElement, { 'height': formatUnit(this.setXYDimensions(panelModel)[0]) });
3472
3477
  setStyleAttribute(panelElement, { 'width': formatUnit(this.setXYDimensions(panelModel)[1]) });
@@ -4977,6 +4982,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
4977
4982
  this.updateCloneArrayObject();
4978
4983
  this.checkForChanges(false, null, clonedPanels);
4979
4984
  this.removeAllCalled = false;
4985
+ this.setEmptyLayoutHeight();
4980
4986
  };
4981
4987
  /**
4982
4988
  * Removes the panel from the DashboardLayout.
@@ -5016,6 +5022,9 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
5016
5022
  });
5017
5023
  this.updateCloneArrayObject();
5018
5024
  this.checkForChanges(false, null, [removedPanel]);
5025
+ if (this.panels.length === 0 && this.panelCollection.length === 0) {
5026
+ this.setEmptyLayoutHeight();
5027
+ }
5019
5028
  };
5020
5029
  /**
5021
5030
  *Moves the panel in the DashboardLayout.
@@ -5268,8 +5277,10 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
5268
5277
  break;
5269
5278
  case 'cellSpacing':
5270
5279
  this.setProperties({ cellSpacing: newProp.cellSpacing }, true);
5271
- this.updateCellSizeAndSpacing();
5272
- this.updateGridLines();
5280
+ if (!this.checkMediaQuery()) {
5281
+ this.updateCellSizeAndSpacing();
5282
+ this.updateGridLines();
5283
+ }
5273
5284
  break;
5274
5285
  case 'draggableHandle':
5275
5286
  this.setProperties({ draggableHandle: newProp.draggableHandle }, true);