@syncfusion/ej2-layouts 21.1.37 → 21.2.6

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 : 21.1.37
3
+ * version : 21.2.6
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@21.1.35",
3
+ "_id": "@syncfusion/ej2-layouts@21.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-WCamq1AhfBRIlju3dyNuJ5x9eT9/P0PNdsAlEFrhzYhry5KiQLT/sN/dy3R0CetUOGqpcvB0BG3Fn6LLYhzykA==",
5
+ "_integrity": "sha512-5Y1k2bCEewBOxotcUlKSaK1QQe62BJyxVGfBiHjvcrW6ul8xbyw9fjrJ39BKPeP0yRQ2oc8x2hT04MzbPv6Hcw==",
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-21.1.35.tgz",
31
- "_shasum": "52257837007f6efda4fc56e10cdaf802710f1267",
30
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-21.2.3.tgz",
31
+ "_shasum": "cb31dfc8902d90e3f641ab42286a5e21c8fb6e0a",
32
32
  "_spec": "@syncfusion/ej2-layouts@*",
33
33
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
34
34
  "author": {
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~21.1.37"
39
+ "@syncfusion/ej2-base": "~21.2.3"
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,7 +76,7 @@
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": "21.1.37",
79
+ "version": "21.2.6",
80
80
  "sideEffects": false,
81
81
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
82
82
  }
@@ -24,7 +24,6 @@ import { setStyleAttribute as setStyle, addClass, detach, removeClass, EventHand
24
24
  // constant class definitions
25
25
  var preventSelect = 'e-prevent';
26
26
  var dragging = 'e-dragging';
27
- var draggable = 'e-draggable';
28
27
  var dragRestrict = 'e-drag-restrict';
29
28
  var drag = 'e-drag';
30
29
  var resize = 'e-resize';
@@ -239,7 +238,8 @@ var DashboardLayout = /** @class */ (function (_super) {
239
238
  for (var i = 0; i < this.panels.length; i++) {
240
239
  var panelElement = this.element.querySelector('#' + this.panels[i].id);
241
240
  this.setMinMaxValues(this.panels[i]);
242
- if (this.maxColumnValue < this.panels[i].col || this.maxColumnValue < (this.panels[i].col + this.panels[i].sizeX)) {
241
+ if (this.maxColumnValue < this.panels[i].col ||
242
+ this.maxColumnValue < (this.panels[i].col + this.panels[i].sizeX)) {
243
243
  var colValue = this.maxColumnValue - this.panels[i].sizeX;
244
244
  this.panelPropertyChange(this.panels[i], { col: colValue < 0 ? 0 : colValue });
245
245
  }
@@ -343,7 +343,6 @@ var DashboardLayout = /** @class */ (function (_super) {
343
343
  }
344
344
  return element;
345
345
  };
346
- // eslint-disable-next-line
347
346
  DashboardLayout.prototype.templateParser = function (template) {
348
347
  if (template) {
349
348
  try {
@@ -362,7 +361,6 @@ var DashboardLayout = /** @class */ (function (_super) {
362
361
  return undefined;
363
362
  };
364
363
  DashboardLayout.prototype.renderTemplate = function (content, appendElement, type, isStringTemplate, prop) {
365
- // eslint-disable-next-line
366
364
  var templateFn = this.templateParser(content);
367
365
  var templateElements = [];
368
366
  if ((content[0] === '.' || content[0] === '#') &&
@@ -880,6 +878,7 @@ var DashboardLayout = /** @class */ (function (_super) {
880
878
  else {
881
879
  if (this.element.classList.contains(responsive)) {
882
880
  removeClass([this.element], [responsive]);
881
+ // eslint-disable-next-line
883
882
  var internalPanels = this.element.querySelectorAll(((this.element.id) ? '#' + this.element.id + ' > ' : '') + '.e-panel');
884
883
  for (var i = 0; i < internalPanels.length; i++) {
885
884
  var ele = internalPanels[i];
@@ -1122,7 +1121,8 @@ var DashboardLayout = /** @class */ (function (_super) {
1122
1121
  for (var j = 0; j < cells.length; j++) {
1123
1122
  this.gridPanelCollection.push(cells[j]);
1124
1123
  this.setMinMaxValues(cells[j]);
1125
- if (this.maxColumnValue < cells[j].col || this.maxColumnValue < (cells[j].col + cells[j].sizeX)) {
1124
+ if (this.maxColumnValue < cells[j].col ||
1125
+ this.maxColumnValue < (cells[j].col + cells[j].sizeX)) {
1126
1126
  this.panelPropertyChange(cells[j], { col: this.maxColumnValue - cells[j].sizeX });
1127
1127
  }
1128
1128
  var cell = this.renderCell(cells[j], false, j);
@@ -1586,7 +1586,8 @@ var DashboardLayout = /** @class */ (function (_super) {
1586
1586
  }
1587
1587
  var isSwappable = false;
1588
1588
  for (var count1 = 0; count1 < collisions.length; count1++) {
1589
- if (collisions.length >= 1 && this.cloneObject[this.mainElement.id] && this.cloneObject[this.mainElement.id].row === this.oldRowCol[this.mainElement.id].row) {
1589
+ if (collisions.length >= 1 && this.cloneObject[this.mainElement.id] &&
1590
+ this.cloneObject[this.mainElement.id].row === this.oldRowCol[this.mainElement.id].row) {
1590
1591
  return false;
1591
1592
  }
1592
1593
  }
@@ -1931,7 +1932,7 @@ var DashboardLayout = /** @class */ (function (_super) {
1931
1932
  };
1932
1933
  DashboardLayout.prototype.setResizingClass = function (ele, container) {
1933
1934
  this.availableClasses = this.resizableHandles;
1934
- if (!ele.querySelector(".e-resize")) {
1935
+ if (!ele.querySelector('.e-resize')) {
1935
1936
  for (var j = 0; j < this.availableClasses.length; j++) {
1936
1937
  var spanEle = this.createElement('span');
1937
1938
  var addClassValue = void 0;
@@ -1999,7 +2000,8 @@ var DashboardLayout = /** @class */ (function (_super) {
1999
2000
  for (var i = 0; i < this.panels.length; i++) {
2000
2001
  if (((!isNullOrUndefined(added) ? (this.panels[i].id !== added[0].id) : true) &&
2001
2002
  (!isNullOrUndefined(removed) ? (this.panels[i].id !== removed[0].id) : true)) &&
2002
- (this.panels[i].row !== this.panelsInitialModel[i].row || this.panels[i].col !== this.panelsInitialModel[i].col)) {
2003
+ (this.panels[i].row !== this.panelsInitialModel[i].row ||
2004
+ this.panels[i].col !== this.panelsInitialModel[i].col)) {
2003
2005
  changedPanels.push(this.panels[i]);
2004
2006
  }
2005
2007
  }
@@ -2140,6 +2142,7 @@ var DashboardLayout = /** @class */ (function (_super) {
2140
2142
  };
2141
2143
  DashboardLayout.prototype.onDraggingStart = function (args) {
2142
2144
  var dragArgs = args;
2145
+ // eslint-disable-next-line
2143
2146
  this.trigger('dragStart', dragArgs, function (dragArgs) {
2144
2147
  if (isNullOrUndefined(args.cancel)) {
2145
2148
  args.cancel = false;
@@ -2480,9 +2483,10 @@ var DashboardLayout = /** @class */ (function (_super) {
2480
2483
  var customObject = [];
2481
2484
  for (var i = 0; i < cloneModel.length; i++) {
2482
2485
  customObject.push({
2483
- id: cloneModel[i].id, row: cloneModel[i].row, col: cloneModel[i].col, sizeX: cloneModel[i].sizeX,
2484
- sizeY: cloneModel[i].sizeY, minSizeX: cloneModel[i].minSizeX, minSizeY: cloneModel[i].minSizeY,
2485
- maxSizeX: cloneModel[i].maxSizeX, maxSizeY: cloneModel[i].maxSizeY
2486
+ id: cloneModel[i].id, row: cloneModel[i].row, col: cloneModel[i].col,
2487
+ sizeX: cloneModel[i].sizeX, sizeY: cloneModel[i].sizeY, minSizeX: cloneModel[i].minSizeX,
2488
+ minSizeY: cloneModel[i].minSizeY, maxSizeX: cloneModel[i].maxSizeX,
2489
+ maxSizeY: cloneModel[i].maxSizeY
2486
2490
  });
2487
2491
  }
2488
2492
  return (customObject);
@@ -344,7 +344,7 @@ var Splitter = /** @class */ (function (_super) {
344
344
  var prePaneSize = this.orientation === 'Horizontal' ? this.previousPane.offsetWidth : this.previousPane.offsetHeight;
345
345
  var nextPaneSize = this.orientation === 'Horizontal' ? this.nextPane.offsetWidth : this.nextPane.offsetHeight;
346
346
  var splitBarSize = isNullOrUndefined(this.separatorSize) ? BAR_SIZE_DEFAULT : this.separatorSize;
347
- if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
347
+ if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.previousPane.style.flexBasis.indexOf('p') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
348
348
  var previousFlexBasis = this.updatePaneFlexBasis(this.previousPane);
349
349
  var nextFlexBasis = this.updatePaneFlexBasis(this.nextPane);
350
350
  this.totalPercent = previousFlexBasis + nextFlexBasis;
@@ -1098,8 +1098,10 @@ var Splitter = /** @class */ (function (_super) {
1098
1098
  updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
1099
1099
  : (updatePaneOffset + sizeDiff) + 'px';
1100
1100
  var flexPaneOffset = this.orientation === 'Horizontal' ? flexPane.offsetWidth : flexPane.offsetHeight;
1101
- flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1102
- this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1101
+ if (flexPane.style.flexBasis !== '') {
1102
+ flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1103
+ this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1104
+ }
1103
1105
  }
1104
1106
  }
1105
1107
  }