@syncfusion/ej2-layouts 19.4.38 → 19.4.43

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.
@@ -115,25 +115,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
115
115
  * @param element - Specifies the element that is rendered as an Splitter.
116
116
  */
117
117
  function Splitter(options, element) {
118
- var _this = _super.call(this, options, element) || this;
119
- _this.allPanes = [];
120
- _this.paneOrder = [];
121
- _this.separatorOrder = [];
122
- _this.allBars = [];
123
- _this.previousCoordinates = {};
124
- _this.currentCoordinates = {};
125
- _this.updatePrePaneInPercentage = false;
126
- _this.updateNextPaneInPercentage = false;
127
- _this.panesDimensions = [];
128
- _this.border = 0;
129
- _this.validDataAttributes = ['data-size', 'data-min', 'data-max', 'data-collapsible',
130
- 'data-resizable', 'data-content', 'data-collapsed'];
131
- _this.validElementAttributes = ['data-orientation', 'data-width', 'data-height'];
132
- _this.iconsDelay = 300;
133
- _this.templateElement = [];
134
- _this.collapseFlag = false;
135
- _this.expandFlag = true;
136
- return _this;
118
+ return _super.call(this, options, element) || this;
137
119
  }
138
120
  /**
139
121
  * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
@@ -256,7 +238,27 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
256
238
  }
257
239
  this.allPanes[index].classList.add(STATIC_PANE);
258
240
  };
241
+ Splitter.prototype.initializeValues = function () {
242
+ this.allPanes = [];
243
+ this.paneOrder = [];
244
+ this.separatorOrder = [];
245
+ this.allBars = [];
246
+ this.previousCoordinates = {};
247
+ this.currentCoordinates = {};
248
+ this.updatePrePaneInPercentage = false;
249
+ this.updateNextPaneInPercentage = false;
250
+ this.panesDimensions = [];
251
+ this.border = 0;
252
+ this.validDataAttributes = ['data-size', 'data-min', 'data-max', 'data-collapsible',
253
+ 'data-resizable', 'data-content', 'data-collapsed'];
254
+ this.validElementAttributes = ['data-orientation', 'data-width', 'data-height'];
255
+ this.iconsDelay = 300;
256
+ this.templateElement = [];
257
+ this.collapseFlag = false;
258
+ this.expandFlag = true;
259
+ };
259
260
  Splitter.prototype.preRender = function () {
261
+ this.initializeValues();
260
262
  this.onReportWindowSize = this.reportWindowSize.bind(this);
261
263
  this.onMouseMoveHandler = this.onMouseMove.bind(this);
262
264
  this.onMouseUpHandler = this.onMouseUp.bind(this);