@syncfusion/ej2-layouts 20.1.58 → 20.2.38

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 (34) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/ej2-layouts.umd.min.js +2 -2
  3. package/dist/ej2-layouts.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-layouts.es2015.js +15 -16
  5. package/dist/es6/ej2-layouts.es2015.js.map +1 -1
  6. package/dist/es6/ej2-layouts.es5.js +15 -16
  7. package/dist/es6/ej2-layouts.es5.js.map +1 -1
  8. package/dist/global/ej2-layouts.min.js +2 -2
  9. package/dist/global/ej2-layouts.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/helpers/e2e/dashboardHelper.js +112 -96
  12. package/helpers/e2e/index.js +9 -7
  13. package/helpers/e2e/splitter-helper.js +74 -58
  14. package/package.json +6 -6
  15. package/src/dashboard-layout/dashboard-layout.js +8 -2
  16. package/src/splitter/splitter.js +7 -14
  17. package/styles/avatar/_fusionnew-definition.scss +26 -0
  18. package/styles/avatar/_material3-definition.scss +26 -0
  19. package/styles/card/_fluent-definition.scss +2 -0
  20. package/styles/card/_fusionnew-definition.scss +121 -0
  21. package/styles/card/_layout.scss +22 -0
  22. package/styles/card/_material3-definition.scss +121 -0
  23. package/styles/card/fluent-dark.css +14 -0
  24. package/styles/card/fluent.css +14 -0
  25. package/styles/dashboard-layout/_fusionnew-definition.scss +109 -0
  26. package/styles/dashboard-layout/_material3-definition.scss +109 -0
  27. package/styles/dashboard-layout/icons/_fusionnew.scss +81 -0
  28. package/styles/dashboard-layout/icons/_material3.scss +81 -0
  29. package/styles/fluent-dark.css +14 -0
  30. package/styles/fluent.css +14 -0
  31. package/styles/splitter/_fusionnew-definition.scss +30 -0
  32. package/styles/splitter/_material3-definition.scss +30 -0
  33. package/styles/splitter/icons/_fusionnew.scss +39 -0
  34. package/styles/splitter/icons/_material3.scss +39 -0
@@ -998,11 +998,11 @@ let Splitter = class Splitter extends Component {
998
998
  const flexPaneIndexes = [];
999
999
  let flexCount = 0;
1000
1000
  const children = this.element.children;
1001
- for (let i = 0; i < children.length; i++) {
1001
+ for (let i = 0, len = children.length; i < len; i++) {
1002
1002
  totalWidth += this.orientation === 'Horizontal' ? children[i].offsetWidth :
1003
1003
  children[i].offsetHeight;
1004
1004
  }
1005
- for (let j = 0; j < this.allBars.length; j++) {
1005
+ for (let j = 0, len = this.allBars.length; j < len; j++) {
1006
1006
  totalWidth += this.orientation === 'Horizontal' ? parseInt(getComputedStyle(this.allBars[j]).marginLeft, 10) +
1007
1007
  parseInt(getComputedStyle(this.allBars[j]).marginLeft, 10) : parseInt(getComputedStyle(this.allBars[j]).marginTop, 10) +
1008
1008
  parseInt(getComputedStyle(this.allBars[j]).marginBottom, 10);
@@ -1010,14 +1010,15 @@ let Splitter = class Splitter extends Component {
1010
1010
  const diff = this.orientation === 'Horizontal' ? this.element.offsetWidth -
1011
1011
  ((this.border * 2) + totalWidth) :
1012
1012
  this.element.offsetHeight - ((this.border * 2) + totalWidth);
1013
- for (let i = 0; i < this.allPanes.length; i++) {
1014
- if (!this.paneSettings[i].size && !(this.allPanes[i].innerText === '')) {
1013
+ for (let i = 0, len = this.allPanes.length; i < len; i++) {
1014
+ if (this.allPanes[i].innerText === '' ? !(this.paneSettings[i].size) || !(this.allPanes[i].innerText === '')
1015
+ : !(this.paneSettings[i].size) && !(this.allPanes[i].innerText === '')) {
1015
1016
  flexPaneIndexes[flexCount] = i;
1016
1017
  flexCount++;
1017
1018
  }
1018
1019
  }
1019
1020
  const avgDiffWidth = diff / flexPaneIndexes.length;
1020
- for (let j = 0; j < flexPaneIndexes.length; j++) {
1021
+ for (let j = 0, len = flexPaneIndexes.length; j < len; j++) {
1021
1022
  this.allPanes[flexPaneIndexes[j]].style.flexBasis = this.orientation === 'Horizontal' ?
1022
1023
  (this.allPanes[flexPaneIndexes[j]].offsetWidth + avgDiffWidth) + 'px' :
1023
1024
  (this.allPanes[flexPaneIndexes[j]].offsetHeight + avgDiffWidth) + 'px';
@@ -1094,15 +1095,7 @@ let Splitter = class Splitter extends Component {
1094
1095
  if (icon.classList.contains(ARROW_RIGHT) || icon.classList.contains(ARROW_DOWN)) {
1095
1096
  this.expandAction(e);
1096
1097
  }
1097
- let totalWidth = 0;
1098
- const children = this.element.children;
1099
- for (let i = 0; i < children.length; i++) {
1100
- totalWidth += this.orientation === 'Horizontal' ? children[i].offsetWidth :
1101
- children[i].offsetHeight;
1102
- }
1103
- if (totalWidth > this.element.offsetWidth) {
1104
- this.updateSplitterSize();
1105
- }
1098
+ this.updateSplitterSize();
1106
1099
  }
1107
1100
  expandAction(e) {
1108
1101
  this.splitterDetails(e);
@@ -3198,9 +3191,15 @@ let DashboardLayout = class DashboardLayout extends Component {
3198
3191
  let heightValue;
3199
3192
  let widthValue;
3200
3193
  if (this.checkMediaQuery()) {
3201
- heightValue = ((this.maxRow()) *
3194
+ let entirePanelsY = 0;
3195
+ for (let i = 0; i < this.panels.length; i++) {
3196
+ if (this.panels[i].sizeY) {
3197
+ entirePanelsY += this.panels[i].sizeY;
3198
+ }
3199
+ }
3200
+ heightValue = ((entirePanelsY) *
3202
3201
  (this.element.parentElement && ((this.element.parentElement.offsetWidth)) / this.cellAspectRatio) +
3203
- (this.maxRow() - 1) * this.cellSpacing[1]) + 'px';
3202
+ (entirePanelsY - 1) * this.cellSpacing[1]) + 'px';
3204
3203
  }
3205
3204
  else {
3206
3205
  heightValue = ((this.maxRow()) *