@syncfusion/ej2-layouts 20.3.58 → 20.4.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.3.58
3
+ * version : 20.4.38
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@20.3.57",
3
+ "_id": "@syncfusion/ej2-layouts@19.9.10",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Two7Z8n8/p2BiIxVO4cbgi/Cd35E4i3eJRcYqjIdVI1LWpoldBAHN0SYOoD+1dOVtMdyb+c6aYYFs1oJ8NrmTA==",
5
+ "_integrity": "sha512-jYbKZvwoXqfKIa4IHaLThdZ7R/ueD7KmfqOl993d2OWKf3VnAv+dNfZyxCyThm08XQFdW49eIdWSFq7h1GmSvA==",
6
6
  "_location": "/@syncfusion/ej2-layouts",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -27,8 +27,8 @@
27
27
  "/@syncfusion/ej2-react-layouts",
28
28
  "/@syncfusion/ej2-vue-layouts"
29
29
  ],
30
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-20.3.57.tgz",
31
- "_shasum": "9c5c343bf3efce05613807a577b02459ab499ff3",
30
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-layouts/-/ej2-layouts-19.9.10.tgz",
31
+ "_shasum": "b50cd2037d395d2024faac0076b7123031d59540",
32
32
  "_spec": "@syncfusion/ej2-layouts@*",
33
33
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
34
34
  "author": {
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~20.3.56"
39
+ "@syncfusion/ej2-base": "~20.4.38"
40
40
  },
41
41
  "deprecated": false,
42
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.",
@@ -76,6 +76,6 @@
76
76
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/layouts"
77
77
  },
78
78
  "typings": "index.d.ts",
79
- "version": "20.3.58",
79
+ "version": "20.4.38",
80
80
  "sideEffects": false
81
81
  }
@@ -1758,7 +1758,7 @@ var DashboardLayout = /** @class */ (function (_super) {
1758
1758
  if (this.collisionChecker[this.panels[i].id] && this.collisionChecker[this.panels[i].id] !== null) {
1759
1759
  this.overlapElement = [this.collisionChecker[this.panels[i].id].ele];
1760
1760
  var key = this.panels[i].id;
1761
- this.updateRowColumn(this.collisionChecker[key].row, this.overlapElement, this.collisionChecker[key].srcEle);
1761
+ this.updateRowColumn(this.collisionChecker["" + key].row, this.overlapElement, this.collisionChecker["" + key].srcEle);
1762
1762
  }
1763
1763
  }
1764
1764
  };
@@ -2148,7 +2148,7 @@ var DashboardLayout = /** @class */ (function (_super) {
2148
2148
  }
2149
2149
  // eslint-disable-next-line guard-for-in
2150
2150
  for (var k in source[i]) {
2151
- target[i][k] = source[i][k];
2151
+ target[i]["" + k] = source[i]["" + k];
2152
2152
  }
2153
2153
  }
2154
2154
  return target;
@@ -161,8 +161,18 @@ var Splitter = /** @class */ (function (_super) {
161
161
  case 'paneSettings': {
162
162
  if (!(newProp.paneSettings instanceof Array && oldProp.paneSettings instanceof Array)) {
163
163
  var paneCounts = Object.keys(newProp.paneSettings);
164
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
164
165
  if (this.isReact) {
165
- this.clearTemplate();
166
+ var cPaneCount = 0;
167
+ for (var k = 0; k < this.paneSettings.length; k++) {
168
+ if (typeof (this.paneSettings[k].content) === 'function') {
169
+ cPaneCount = cPaneCount + 1;
170
+ }
171
+ }
172
+ var hasAllContent = cPaneCount === this.paneSettings.length;
173
+ if (hasAllContent) {
174
+ this.clearTemplate();
175
+ }
166
176
  }
167
177
  for (var i = 0; i < paneCounts.length; i++) {
168
178
  var index = parseInt(Object.keys(newProp.paneSettings)[i], 10);
@@ -171,7 +181,7 @@ var Splitter = /** @class */ (function (_super) {
171
181
  var property = Object.keys(newProp.paneSettings[index])[j];
172
182
  switch (property) {
173
183
  case 'content': {
174
- var newValue = Object(newProp.paneSettings[index])[property];
184
+ var newValue = Object(newProp.paneSettings[index])["" + property];
175
185
  if (!isNullOrUndefined(newValue)) {
176
186
  this.allPanes[index].innerHTML = '';
177
187
  this.setTemplate(newValue, this.allPanes[index]);
@@ -179,7 +189,7 @@ var Splitter = /** @class */ (function (_super) {
179
189
  break;
180
190
  }
181
191
  case 'resizable': {
182
- var newVal = Object(newProp.paneSettings[index])[property];
192
+ var newVal = Object(newProp.paneSettings[index])["" + property];
183
193
  this.resizableModel(index, newVal);
184
194
  break;
185
195
  }
@@ -191,10 +201,11 @@ var Splitter = /** @class */ (function (_super) {
191
201
  newProp.paneSettings[index].collapsed ? this.isCollapsed(index) : this.collapsedOnchange(index);
192
202
  break;
193
203
  case 'cssClass':
204
+ // eslint-disable-next-line max-len
194
205
  this.setCssClass(this.allPanes[index], newProp.paneSettings[index].cssClass);
195
206
  break;
196
207
  case 'size': {
197
- var newValSize = Object(newProp.paneSettings[index])[property];
208
+ var newValSize = Object(newProp.paneSettings[index])["" + property];
198
209
  if (newValSize !== '' && !isNullOrUndefined(newValSize)) {
199
210
  this.updatePaneSize(newValSize, index);
200
211
  }
@@ -404,7 +415,6 @@ var Splitter = /** @class */ (function (_super) {
404
415
  }
405
416
  };
406
417
  Splitter.prototype.getMinInPixel = function (minValue) {
407
- var min;
408
418
  if (isNullOrUndefined(minValue)) {
409
419
  return 0;
410
420
  }
@@ -412,7 +422,7 @@ var Splitter = /** @class */ (function (_super) {
412
422
  if (minValue.indexOf('%') > 0) {
413
423
  paneMinRange = this.convertPercentageToPixel(minValue);
414
424
  }
415
- min = this.convertPixelToNumber((paneMinRange).toString());
425
+ var min = this.convertPixelToNumber((paneMinRange).toString());
416
426
  return min;
417
427
  };
418
428
  /**
@@ -646,6 +656,7 @@ var Splitter = /** @class */ (function (_super) {
646
656
  _this.updateIsCollapsed(index, _this.targetArrows().collapseArrow, _this.targetArrows().lastBarArrow);
647
657
  for (var i = 0; i < collapsedindex.length; i++) {
648
658
  if (!_this.allPanes[collapsedindex[i]].classList.contains(COLLAPSE_PANE)) {
659
+ // eslint-disable-next-line max-len
649
660
  _this.updateIsCollapsed(collapsedindex[i], _this.targetArrows().collapseArrow, _this.targetArrows().lastBarArrow);
650
661
  }
651
662
  }
@@ -890,7 +901,6 @@ var Splitter = /** @class */ (function (_super) {
890
901
  var childCount = this.allPanes.length;
891
902
  var clonedEle = target.children;
892
903
  var separator;
893
- var proxy;
894
904
  for (var i = 0; i < childCount; i++) {
895
905
  if (i < childCount - 1) {
896
906
  separator = this.createSeparator(i);
@@ -1036,6 +1046,7 @@ var Splitter = /** @class */ (function (_super) {
1036
1046
  }
1037
1047
  for (var j = 0, len = this.allBars.length; j < len; j++) {
1038
1048
  totalWidth += this.orientation === 'Horizontal' ? parseInt(getComputedStyle(this.allBars[j]).marginLeft, 10) +
1049
+ // eslint-disable-next-line max-len
1039
1050
  parseInt(getComputedStyle(this.allBars[j]).marginLeft, 10) : parseInt(getComputedStyle(this.allBars[j]).marginTop, 10) +
1040
1051
  parseInt(getComputedStyle(this.allBars[j]).marginBottom, 10);
1041
1052
  }
@@ -1770,13 +1781,13 @@ var Splitter = /** @class */ (function (_super) {
1770
1781
  }
1771
1782
  var allFlexiblePanes = flexPaneCount === this.allPanes.length;
1772
1783
  // Two flexible Pane Case.
1773
- if (this.previousPane.style.flexBasis == '' && this.nextPane.style.flexBasis == '' && !allFlexiblePanes) {
1784
+ if (this.previousPane.style.flexBasis === '' && this.nextPane.style.flexBasis == '' && !allFlexiblePanes) {
1774
1785
  var middlePaneIndex = this.allPanes.length % this.allBars.length;
1775
1786
  if (this.prevPaneIndex === middlePaneIndex) {
1776
1787
  this.nextPane.style.flexBasis = this.nextPaneCurrentWidth;
1777
1788
  addClass([this.nextPane], STATIC_PANE);
1778
1789
  }
1779
- else if (this.nextPaneIndex == middlePaneIndex) {
1790
+ else if (this.nextPaneIndex === middlePaneIndex) {
1780
1791
  this.previousPane.style.flexBasis = this.prevPaneCurrentWidth;
1781
1792
  addClass([this.previousPane], STATIC_PANE);
1782
1793
  }
@@ -1790,16 +1801,16 @@ var Splitter = /** @class */ (function (_super) {
1790
1801
  addClass([this.previousPane], STATIC_PANE);
1791
1802
  this.nextPane.style.flexBasis = this.nextPaneCurrentWidth;
1792
1803
  addClass([this.nextPane], STATIC_PANE);
1793
- } // Two Panesa are Static Pane
1804
+ } // Two Panesa are Static Pane
1794
1805
  else {
1795
- if (this.previousPane.style.flexBasis !== "" && this.previousPane.classList.contains(STATIC_PANE)) {
1806
+ if (this.previousPane.style.flexBasis !== '' && this.previousPane.classList.contains(STATIC_PANE)) {
1796
1807
  this.previousPane.style.flexBasis = this.prevPaneCurrentWidth;
1797
1808
  }
1798
- if (this.nextPane.style.flexBasis !== "" && this.nextPane.classList.contains(STATIC_PANE)) {
1809
+ if (this.nextPane.style.flexBasis !== '' && this.nextPane.classList.contains(STATIC_PANE)) {
1799
1810
  this.nextPane.style.flexBasis = this.nextPaneCurrentWidth;
1800
1811
  }
1801
1812
  }
1802
- var isStaticPanes = this.previousPane.style.flexBasis !== "" && this.nextPane.style.flexBasis !== "";
1813
+ var isStaticPanes = this.previousPane.style.flexBasis !== '' && this.nextPane.style.flexBasis !== '';
1803
1814
  if (!(this.allPanes.length > 2) && isStaticPanes) {
1804
1815
  this.updateSplitterSize();
1805
1816
  }