@syncfusion/ej2-layouts 19.4.38 → 19.4.52

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 : 19.4.38
3
+ * version : 19.4.52
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@19.6.1",
3
+ "_id": "@syncfusion/ej2-layouts@19.4.48",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-yZstbGKh0iOM7GI35dTDE5aGS9VbAjQ6txU9DECtFqvti2S3REdvhp4xNv2+pPEC7d+yYFvB3/wkoNBvhkHwNw==",
5
+ "_integrity": "sha512-wzxIalP5bcx4wLMyQVZGqC8x3Xas0l2+bSTbQu8shS+M11d9Vem9D/CefoEGTUNfJEkBqvVftMptYmCNxHarvA==",
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": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-layouts/-/ej2-layouts-19.6.1.tgz",
31
- "_shasum": "55c4a2968ce826fb4c44a1761da70d1813dfd349",
30
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-19.4.48.tgz",
31
+ "_shasum": "af95de585a1a293b4709c99026a27748ab32fbed",
32
32
  "_spec": "@syncfusion/ej2-layouts@*",
33
33
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
34
34
  "author": {
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~19.4.38"
39
+ "@syncfusion/ej2-base": "~19.4.52"
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": "19.4.38",
79
+ "version": "19.4.52",
80
80
  "sideEffects": false
81
81
  }
@@ -872,8 +872,9 @@ var DashboardLayout = /** @class */ (function (_super) {
872
872
  else {
873
873
  if (this.element.classList.contains(responsive)) {
874
874
  removeClass([this.element], [responsive]);
875
- for (var i = 0; i < this.element.querySelectorAll('.e-panel').length; i++) {
876
- var ele = this.element.querySelectorAll('.e-panel')[i];
875
+ var internalPanels = this.element.querySelectorAll(((this.element.id) ? '#' + this.element.id + ' > ' : '') + '.e-panel');
876
+ for (var i = 0; i < internalPanels.length; i++) {
877
+ var ele = internalPanels[i];
877
878
  var cellInstance = this.getCellInstance(ele.id);
878
879
  var row = parseInt(ele.getAttribute('data-row'), 10);
879
880
  var col = parseInt(ele.getAttribute('data-col'), 10);
@@ -321,6 +321,7 @@ export declare class Splitter extends Component<HTMLElement> {
321
321
  */
322
322
  onPropertyChanged(newProp: SplitterModel, oldProp: SplitterModel): void;
323
323
  private updatePaneSize;
324
+ protected initializeValues(): void;
324
325
  protected preRender(): void;
325
326
  protected getPersistData(): string;
326
327
  /**
@@ -118,25 +118,7 @@ var Splitter = /** @class */ (function (_super) {
118
118
  * @param element - Specifies the element that is rendered as an Splitter.
119
119
  */
120
120
  function Splitter(options, element) {
121
- var _this = _super.call(this, options, element) || this;
122
- _this.allPanes = [];
123
- _this.paneOrder = [];
124
- _this.separatorOrder = [];
125
- _this.allBars = [];
126
- _this.previousCoordinates = {};
127
- _this.currentCoordinates = {};
128
- _this.updatePrePaneInPercentage = false;
129
- _this.updateNextPaneInPercentage = false;
130
- _this.panesDimensions = [];
131
- _this.border = 0;
132
- _this.validDataAttributes = ['data-size', 'data-min', 'data-max', 'data-collapsible',
133
- 'data-resizable', 'data-content', 'data-collapsed'];
134
- _this.validElementAttributes = ['data-orientation', 'data-width', 'data-height'];
135
- _this.iconsDelay = 300;
136
- _this.templateElement = [];
137
- _this.collapseFlag = false;
138
- _this.expandFlag = true;
139
- return _this;
121
+ return _super.call(this, options, element) || this;
140
122
  }
141
123
  /**
142
124
  * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
@@ -259,7 +241,27 @@ var Splitter = /** @class */ (function (_super) {
259
241
  }
260
242
  this.allPanes[index].classList.add(STATIC_PANE);
261
243
  };
244
+ Splitter.prototype.initializeValues = function () {
245
+ this.allPanes = [];
246
+ this.paneOrder = [];
247
+ this.separatorOrder = [];
248
+ this.allBars = [];
249
+ this.previousCoordinates = {};
250
+ this.currentCoordinates = {};
251
+ this.updatePrePaneInPercentage = false;
252
+ this.updateNextPaneInPercentage = false;
253
+ this.panesDimensions = [];
254
+ this.border = 0;
255
+ this.validDataAttributes = ['data-size', 'data-min', 'data-max', 'data-collapsible',
256
+ 'data-resizable', 'data-content', 'data-collapsed'];
257
+ this.validElementAttributes = ['data-orientation', 'data-width', 'data-height'];
258
+ this.iconsDelay = 300;
259
+ this.templateElement = [];
260
+ this.collapseFlag = false;
261
+ this.expandFlag = true;
262
+ };
262
263
  Splitter.prototype.preRender = function () {
264
+ this.initializeValues();
263
265
  this.onReportWindowSize = this.reportWindowSize.bind(this);
264
266
  this.onMouseMoveHandler = this.onMouseMove.bind(this);
265
267
  this.onMouseUpHandler = this.onMouseUp.bind(this);
@@ -1592,7 +1594,7 @@ var Splitter = /** @class */ (function (_super) {
1592
1594
  };
1593
1595
  Splitter.prototype.getSeparatorPosition = function (e) {
1594
1596
  this.updateCursorPosition(e, 'current');
1595
- var rectBound = (this.orientation === 'Horizontal') ? this.element.getBoundingClientRect().left :
1597
+ var rectBound = (this.orientation === 'Horizontal') ? this.element.getBoundingClientRect().left + window.scrollX :
1596
1598
  this.element.getBoundingClientRect().top + window.scrollY;
1597
1599
  var offSet = (this.orientation === 'Horizontal') ? this.element.offsetWidth : this.element.offsetHeight;
1598
1600
  return this.calcDragPosition(rectBound, offSet);
@@ -1869,7 +1871,7 @@ var Splitter = /** @class */ (function (_super) {
1869
1871
  }
1870
1872
  };
1871
1873
  Splitter.prototype.validateDraggedPosition = function (draggedPos, prevPaneHeightWidth, nextPaneHeightWidth) {
1872
- var separatorTopLeft = (this.orientation === 'Horizontal') ? this.currentSeparator.offsetLeft :
1874
+ var separatorTopLeft = (this.orientation === 'Horizontal') ? this.currentSeparator.offsetLeft + window.scrollX :
1873
1875
  this.currentSeparator.offsetTop;
1874
1876
  var prePaneRange = separatorTopLeft - prevPaneHeightWidth;
1875
1877
  var nextPaneRange = nextPaneHeightWidth + separatorTopLeft;