@syncfusion/ej2-layouts 19.2.60 → 19.3.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.
- package/.eslintrc.json +1 -1
- package/CHANGELOG.md +8 -0
- package/dist/ej2-layouts.umd.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js.map +1 -1
- package/dist/es6/ej2-layouts.es2015.js +72 -151
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +72 -152
- package/dist/es6/ej2-layouts.es5.js.map +1 -1
- package/dist/global/ej2-layouts.min.js +2 -2
- package/dist/global/ej2-layouts.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/helpers/e2e/dashboardHelper.d.ts +63 -0
- package/helpers/e2e/dashboardHelper.js +97 -0
- package/helpers/e2e/index.d.ts +1 -0
- package/helpers/e2e/index.js +1 -0
- package/package.json +6 -6
- package/src/dashboard-layout/dashboard-layout.js +0 -1
- package/src/splitter/splitter-model.d.ts +1 -1
- package/src/splitter/splitter.d.ts +1 -1
- package/src/splitter/splitter.js +72 -150
- package/styles/avatar/_bootstrap5-dark-definition.scss +1 -0
- package/styles/avatar/_bootstrap5-definition.scss +25 -0
- package/styles/avatar/_layout.scss +5 -5
- package/styles/avatar/_tailwind-dark-definition.scss +1 -25
- package/styles/avatar/bootstrap5-dark.css +61 -0
- package/styles/avatar/bootstrap5-dark.scss +3 -0
- package/styles/avatar/bootstrap5.css +61 -0
- package/styles/avatar/bootstrap5.scss +3 -0
- package/styles/bootstrap-dark.css +8 -0
- package/styles/bootstrap.css +8 -0
- package/styles/bootstrap4.css +8 -0
- package/styles/bootstrap5-dark.css +1618 -0
- package/styles/bootstrap5-dark.scss +4 -0
- package/styles/bootstrap5.css +1618 -0
- package/styles/bootstrap5.scss +4 -0
- package/styles/card/_bootstrap5-dark-definition.scss +1 -0
- package/styles/card/_bootstrap5-definition.scss +119 -0
- package/styles/card/_fabric-dark-definition.scss +5 -18
- package/styles/card/_layout.scss +2 -2
- package/styles/card/_tailwind-dark-definition.scss +1 -122
- package/styles/card/_tailwind-definition.scss +5 -9
- package/styles/card/bootstrap5-dark.css +593 -0
- package/styles/card/bootstrap5-dark.scss +3 -0
- package/styles/card/bootstrap5.css +593 -0
- package/styles/card/bootstrap5.scss +3 -0
- package/styles/card/fabric-dark.css +12 -12
- package/styles/card/tailwind-dark.css +2 -3
- package/styles/card/tailwind.css +0 -1
- package/styles/dashboard-layout/_bootstrap5-dark-definition.scss +1 -0
- package/styles/dashboard-layout/_bootstrap5-definition.scss +109 -0
- package/styles/dashboard-layout/_layout.scss +14 -5
- package/styles/dashboard-layout/_tailwind-dark-definition.scss +1 -109
- package/styles/dashboard-layout/_tailwind-definition.scss +27 -28
- package/styles/dashboard-layout/_theme.scss +4 -4
- package/styles/dashboard-layout/bootstrap5-dark.css +393 -0
- package/styles/dashboard-layout/bootstrap5-dark.scss +4 -0
- package/styles/dashboard-layout/bootstrap5.css +393 -0
- package/styles/dashboard-layout/bootstrap5.scss +4 -0
- package/styles/dashboard-layout/icons/_bootstrap5-dark.scss +1 -0
- package/styles/dashboard-layout/icons/_bootstrap5.scss +81 -0
- package/styles/dashboard-layout/material-dark.css +3 -3
- package/styles/dashboard-layout/tailwind-dark.css +10 -8
- package/styles/dashboard-layout/tailwind.css +5 -3
- package/styles/fabric-dark.css +20 -12
- package/styles/fabric.css +8 -0
- package/styles/highcontrast-light.css +8 -0
- package/styles/highcontrast.css +8 -0
- package/styles/material-dark.css +19 -11
- package/styles/material.css +8 -0
- package/styles/splitter/_bootstrap5-dark-definition.scss +1 -0
- package/styles/splitter/_bootstrap5-definition.scss +26 -0
- package/styles/splitter/_tailwind-dark-definition.scss +1 -23
- package/styles/splitter/_tailwind-definition.scss +14 -11
- package/styles/splitter/bootstrap-dark.css +8 -0
- package/styles/splitter/bootstrap.css +8 -0
- package/styles/splitter/bootstrap4.css +8 -0
- package/styles/splitter/bootstrap5-dark.css +568 -0
- package/styles/splitter/bootstrap5-dark.scss +4 -0
- package/styles/splitter/bootstrap5.css +568 -0
- package/styles/splitter/bootstrap5.scss +4 -0
- package/styles/splitter/fabric-dark.css +8 -0
- package/styles/splitter/fabric.css +8 -0
- package/styles/splitter/highcontrast-light.css +8 -0
- package/styles/splitter/highcontrast.css +8 -0
- package/styles/splitter/icons/_bootstrap-dark.scss +12 -0
- package/styles/splitter/icons/_bootstrap.scss +12 -0
- package/styles/splitter/icons/_bootstrap4.scss +12 -0
- package/styles/splitter/icons/_bootstrap5-dark.scss +1 -0
- package/styles/splitter/icons/_bootstrap5.scss +39 -0
- package/styles/splitter/icons/_fabric-dark.scss +12 -0
- package/styles/splitter/icons/_fabric.scss +12 -0
- package/styles/splitter/icons/_highcontrast-light.scss +12 -0
- package/styles/splitter/icons/_highcontrast.scss +12 -0
- package/styles/splitter/icons/_material-dark.scss +12 -0
- package/styles/splitter/icons/_material.scss +12 -0
- package/styles/splitter/icons/_tailwind-dark.scss +1 -39
- package/styles/splitter/icons/_tailwind.scss +12 -0
- package/styles/splitter/material-dark.css +16 -8
- package/styles/splitter/material.css +8 -0
- package/styles/splitter/tailwind-dark.css +14 -7
- package/styles/splitter/tailwind.css +8 -1
- package/styles/tailwind-dark.css +26 -18
- package/styles/tailwind.css +13 -5
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Browser, ChildProperty, Collection, Component, Draggable, Event, EventHandler, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, append, closest, compile, detach, extend, formatUnit, getValue,
|
1
|
+
import { Browser, ChildProperty, Collection, Component, Draggable, Event, EventHandler, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, append, closest, compile, detach, extend, formatUnit, getValue, isNullOrUndefined, isUndefined, removeClass, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
|
2
2
|
|
3
3
|
var __extends = (undefined && undefined.__extends) || (function () {
|
4
4
|
var extendStatics = function (d, b) {
|
@@ -260,11 +260,9 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
260
260
|
this.onReportWindowSize = this.reportWindowSize.bind(this);
|
261
261
|
this.wrapper = this.element.cloneNode(true);
|
262
262
|
this.wrapperParent = this.element.parentElement;
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
addClass([this.element], orientation_1);
|
267
|
-
}
|
263
|
+
removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
|
264
|
+
var orientation = this.orientation === 'Horizontal' ? HORIZONTAL_PANE : VERTICAL_PANE;
|
265
|
+
addClass([this.element], orientation);
|
268
266
|
var name = Browser.info.name;
|
269
267
|
var css = (name === 'msie') ? 'e-ie' : '';
|
270
268
|
this.setCssClass(this.element, css);
|
@@ -291,19 +289,15 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
291
289
|
* @private
|
292
290
|
*/
|
293
291
|
Splitter.prototype.render = function () {
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
this.setDimension(this.getHeight(this.element), this.getWidth(this.element));
|
299
|
-
}
|
292
|
+
this.checkDataAttributes();
|
293
|
+
this.setCssClass(this.element, this.cssClass);
|
294
|
+
this.isEnabled(this.enabled);
|
295
|
+
this.setDimension(this.getHeight(this.element), this.getWidth(this.element));
|
300
296
|
this.createSplitPane(this.element);
|
301
297
|
this.addSeparator(this.element);
|
302
298
|
this.getPanesDimensions();
|
303
299
|
this.setPaneSettings();
|
304
|
-
|
305
|
-
this.setRTL(this.enableRtl);
|
306
|
-
}
|
300
|
+
this.setRTL(this.enableRtl);
|
307
301
|
if (this.enableReversePanes) {
|
308
302
|
this.setReversePane();
|
309
303
|
}
|
@@ -331,11 +325,15 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
331
325
|
this.totalPercent = previousFlexBasis + nextFlexBasis;
|
332
326
|
this.totalWidth = this.convertPercentageToPixel(this.totalPercent + '%');
|
333
327
|
if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
|
334
|
-
if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0
|
328
|
+
if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
|
329
|
+
(this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) <
|
330
|
+
this.convertPercentageToPixel((nextFlexBasis - 1) + '%'))) {
|
335
331
|
this.previousPane.style.flexBasis = (previousFlexBasis + 1) + '%';
|
336
332
|
this.nextPane.style.flexBasis = (nextFlexBasis - 1) + '%';
|
337
333
|
}
|
338
|
-
else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0
|
334
|
+
else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
|
335
|
+
(this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) <
|
336
|
+
this.convertPercentageToPixel((previousFlexBasis - 1) + '%'))) {
|
339
337
|
this.previousPane.style.flexBasis = (previousFlexBasis - 1) + '%';
|
340
338
|
this.nextPane.style.flexBasis = (nextFlexBasis + 1) + '%';
|
341
339
|
}
|
@@ -345,13 +343,15 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
345
343
|
this.totalWidth = (this.orientation === 'Horizontal') ? this.previousPane.offsetWidth + this.nextPane.offsetWidth :
|
346
344
|
this.previousPane.offsetHeight + this.nextPane.offsetHeight;
|
347
345
|
if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
|
348
|
-
if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0
|
346
|
+
if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
|
347
|
+
(this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) < (nextPaneSize + splitBarSize))) {
|
349
348
|
this.addStaticPaneClass();
|
350
349
|
this.previousPane.style.flexBasis = (prePaneSize + splitBarSize) + 'px';
|
351
350
|
this.nextPane.style.flexBasis = (nextPaneSize < splitBarSize) ? '0px' :
|
352
351
|
(nextPaneSize - splitBarSize) + 'px';
|
353
352
|
}
|
354
|
-
else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0
|
353
|
+
else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
|
354
|
+
(this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) < (prePaneSize - splitBarSize))) {
|
355
355
|
this.addStaticPaneClass();
|
356
356
|
this.previousPane.style.flexBasis = (prePaneSize < splitBarSize) ? '0px' :
|
357
357
|
(prePaneSize - splitBarSize) + 'px';
|
@@ -372,11 +372,12 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
372
372
|
&& (!isPrevpaneExpanded && !isNextpaneCollapsed && !isPrevpaneCollapsed || (isPrevpaneExpanded) && !isNextpaneCollapsed) &&
|
373
373
|
document.activeElement.classList.contains(SPLIT_BAR) && (this.paneSettings[index].resizable &&
|
374
374
|
this.paneSettings[index + 1].resizable)) {
|
375
|
+
event.preventDefault();
|
375
376
|
this.checkPaneSize(event);
|
376
377
|
this.triggerResizing(event);
|
377
378
|
}
|
378
379
|
else if (event.keyCode === 13 && this.paneSettings[index].collapsible &&
|
379
|
-
document.activeElement.classList.contains(SPLIT_BAR)) {
|
380
|
+
document.activeElement.classList.contains(SPLIT_BAR) && this.currentSeparator.classList.contains(SPLIT_BAR_ACTIVE)) {
|
380
381
|
if (!this.previousPane.classList.contains(COLLAPSE_PANE)) {
|
381
382
|
this.collapse(index);
|
382
383
|
addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
|
@@ -388,6 +389,18 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
388
389
|
}
|
389
390
|
}
|
390
391
|
};
|
392
|
+
Splitter.prototype.getMinInPixel = function (minValue) {
|
393
|
+
var min;
|
394
|
+
if (isNullOrUndefined(minValue)) {
|
395
|
+
return 0;
|
396
|
+
}
|
397
|
+
var paneMinRange = this.convertPixelToNumber(minValue.toString());
|
398
|
+
if (minValue.indexOf('%') > 0) {
|
399
|
+
paneMinRange = this.convertPercentageToPixel(minValue);
|
400
|
+
}
|
401
|
+
min = this.convertPixelToNumber((paneMinRange).toString());
|
402
|
+
return min;
|
403
|
+
};
|
391
404
|
/**
|
392
405
|
* @param {string} value - specifies the string value
|
393
406
|
* @returns {string} returns the string
|
@@ -461,9 +474,6 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
461
474
|
});
|
462
475
|
this.restoreElem();
|
463
476
|
};
|
464
|
-
Splitter.prototype.checkBlazor = function () {
|
465
|
-
return isBlazor() && this.isServerRendered;
|
466
|
-
};
|
467
477
|
Splitter.prototype.setPaneSettings = function () {
|
468
478
|
var childCount = this.allPanes.length;
|
469
479
|
var paneCollection = [];
|
@@ -863,52 +873,19 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
863
873
|
this.isResizable() ? this.allPanes[index].classList.add(RESIZABLE_PANE) : this.allPanes[index].classList.remove(RESIZABLE_PANE);
|
864
874
|
};
|
865
875
|
Splitter.prototype.addSeparator = function (target) {
|
866
|
-
var _this = this;
|
867
876
|
var childCount = this.allPanes.length;
|
868
877
|
var clonedEle = target.children;
|
869
878
|
var separator;
|
870
|
-
var proxy;
|
871
|
-
if (this.checkBlazor()) {
|
872
|
-
for (var j = 0; j < this.element.children.length; j++) {
|
873
|
-
if (this.element.children[j].classList.contains(SPLIT_BAR)) {
|
874
|
-
this.allBars.push(this.element.children[j]);
|
875
|
-
}
|
876
|
-
}
|
877
|
-
}
|
878
879
|
for (var i = 0; i < childCount; i++) {
|
879
880
|
if (i < childCount - 1) {
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
}
|
889
|
-
if (this.checkBlazor()) {
|
890
|
-
proxy = this;
|
891
|
-
separator = this.allBars[i];
|
892
|
-
this.updateIconClass();
|
893
|
-
}
|
894
|
-
if (!this.checkBlazor()) {
|
895
|
-
this.wireClickEvents();
|
896
|
-
}
|
897
|
-
if (this.checkBlazor() && !isNullOrUndefined(separator)) {
|
898
|
-
this.currentSeparator = separator;
|
899
|
-
this.addMouseActions(separator);
|
900
|
-
this.wireClickEvents();
|
901
|
-
separator.addEventListener('focus', function () {
|
902
|
-
if (document.activeElement.classList.contains('e-split-bar')) {
|
903
|
-
proxy.currentSeparator = document.activeElement;
|
904
|
-
proxy.currentSeparator.classList.add(SPLIT_BAR_ACTIVE);
|
905
|
-
}
|
906
|
-
_this.getPaneDetails();
|
907
|
-
});
|
908
|
-
separator.addEventListener('blur', function () {
|
909
|
-
proxy.currentSeparator.classList.remove(SPLIT_BAR_ACTIVE);
|
910
|
-
});
|
911
|
-
}
|
881
|
+
separator = this.createSeparator(i);
|
882
|
+
setStyleAttribute(separator, { 'order': (i * 2) + 1 });
|
883
|
+
this.separatorOrder.push((i * 2) + 1);
|
884
|
+
clonedEle[i].parentNode.appendChild(separator);
|
885
|
+
this.currentSeparator = separator;
|
886
|
+
separator.setAttribute('role', 'separator');
|
887
|
+
separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
|
888
|
+
this.wireClickEvents();
|
912
889
|
if (!isNullOrUndefined(separator)) {
|
913
890
|
if (this.isResizable()) {
|
914
891
|
EventHandler.add(separator, 'mousedown', this.onMouseDown, this);
|
@@ -1367,13 +1344,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
1367
1344
|
}
|
1368
1345
|
};
|
1369
1346
|
Splitter.prototype.beforeAction = function (e) {
|
1370
|
-
var eventArgs =
|
1371
|
-
element: this.element,
|
1372
|
-
event: e,
|
1373
|
-
index: [this.prevPaneIndex, this.nextPaneIndex],
|
1374
|
-
separator: this.currentSeparator,
|
1375
|
-
cancel: false
|
1376
|
-
} : {
|
1347
|
+
var eventArgs = {
|
1377
1348
|
element: this.element,
|
1378
1349
|
event: e,
|
1379
1350
|
pane: [this.previousPane, this.nextPane],
|
@@ -1472,12 +1443,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
1472
1443
|
}
|
1473
1444
|
};
|
1474
1445
|
Splitter.prototype.afterAction = function (e) {
|
1475
|
-
var eventArgs =
|
1476
|
-
element: this.element,
|
1477
|
-
event: e,
|
1478
|
-
index: [this.prevPaneIndex, this.nextPaneIndex],
|
1479
|
-
separator: this.currentSeparator
|
1480
|
-
} : {
|
1446
|
+
var eventArgs = {
|
1481
1447
|
element: this.element,
|
1482
1448
|
event: e,
|
1483
1449
|
pane: [this.previousPane, this.nextPane],
|
@@ -1490,10 +1456,6 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
1490
1456
|
this.currentBarIndex = this.getOrderIndex(parseInt(e.target.parentElement.style.order, 10), 'splitbar');
|
1491
1457
|
};
|
1492
1458
|
Splitter.prototype.getSeparatorIndex = function (target) {
|
1493
|
-
var separator = this.orientation === 'Horizontal' ? SPLIT_H_BAR : SPLIT_V_BAR;
|
1494
|
-
if (this.checkBlazor() && this.allBars.length < 1) {
|
1495
|
-
this.allBars = selectAll('.' + separator, this.element);
|
1496
|
-
}
|
1497
1459
|
var array = [].slice.call(this.allBars);
|
1498
1460
|
array = this.enableReversePanes ? array.reverse() : array;
|
1499
1461
|
return array.indexOf(target);
|
@@ -1523,13 +1485,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
1523
1485
|
this.getPaneDetails();
|
1524
1486
|
};
|
1525
1487
|
Splitter.prototype.triggerResizing = function (e) {
|
1526
|
-
var eventArgs =
|
1527
|
-
element: this.element,
|
1528
|
-
event: e,
|
1529
|
-
index: [this.prevPaneIndex, this.nextPaneIndex],
|
1530
|
-
paneSize: [this.prePaneDimenson, this.nextPaneDimension],
|
1531
|
-
separator: this.currentSeparator
|
1532
|
-
} : {
|
1488
|
+
var eventArgs = {
|
1533
1489
|
element: this.element,
|
1534
1490
|
event: e,
|
1535
1491
|
pane: [this.previousPane, this.nextPane],
|
@@ -1550,13 +1506,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
1550
1506
|
addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
|
1551
1507
|
this.updateCursorPosition(e, 'previous');
|
1552
1508
|
this.getPaneDetails();
|
1553
|
-
var eventArgs =
|
1554
|
-
element: this.element,
|
1555
|
-
event: e,
|
1556
|
-
index: [this.getPreviousPaneIndex(), this.getNextPaneIndex()],
|
1557
|
-
separator: this.currentSeparator,
|
1558
|
-
cancel: false
|
1559
|
-
} : {
|
1509
|
+
var eventArgs = {
|
1560
1510
|
element: this.element,
|
1561
1511
|
event: e,
|
1562
1512
|
pane: [this.previousPane, this.nextPane],
|
@@ -1941,13 +1891,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
1941
1891
|
Splitter.prototype.onMouseUp = function (e) {
|
1942
1892
|
removeClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
|
1943
1893
|
this.unwireResizeEvents();
|
1944
|
-
var eventArgs =
|
1945
|
-
event: e,
|
1946
|
-
element: this.element,
|
1947
|
-
index: [this.prevPaneIndex, this.nextPaneIndex],
|
1948
|
-
separator: this.currentSeparator,
|
1949
|
-
paneSize: [this.prePaneDimenson, this.nextPaneDimension]
|
1950
|
-
} : {
|
1894
|
+
var eventArgs = {
|
1951
1895
|
event: e,
|
1952
1896
|
element: this.element,
|
1953
1897
|
pane: [this.previousPane, this.nextPane],
|
@@ -2049,12 +1993,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
2049
1993
|
}
|
2050
1994
|
var templateFUN;
|
2051
1995
|
if (!isNullOrUndefined(templateFn)) {
|
2052
|
-
|
2053
|
-
templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), this.isStringTemplate);
|
2054
|
-
}
|
2055
|
-
else {
|
2056
|
-
templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), true);
|
2057
|
-
}
|
1996
|
+
templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), true);
|
2058
1997
|
}
|
2059
1998
|
if (!isNullOrUndefined(templateFn) && templateFUN && templateFUN.length > 0) {
|
2060
1999
|
[].slice.call(templateFUN).forEach(function (el) {
|
@@ -2068,13 +2007,11 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
2068
2007
|
};
|
2069
2008
|
Splitter.prototype.createSplitPane = function (target) {
|
2070
2009
|
var childCount = target.children.length;
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
childCount = childCount + 1;
|
2077
|
-
}
|
2010
|
+
for (var i = 0; i < this.paneSettings.length; i++) {
|
2011
|
+
if (childCount < this.paneSettings.length) {
|
2012
|
+
var childElement = this.createElement('div');
|
2013
|
+
this.element.appendChild(childElement);
|
2014
|
+
childCount = childCount + 1;
|
2078
2015
|
}
|
2079
2016
|
}
|
2080
2017
|
childCount = target.children.length;
|
@@ -2084,30 +2021,23 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
2084
2021
|
for (var i = 0; i < childCount; i++) {
|
2085
2022
|
// To accept only div and span element as pane
|
2086
2023
|
if (child[i].nodeName === 'DIV' || child[i].nodeName === 'SPAN') {
|
2087
|
-
|
2088
|
-
|
2024
|
+
this.allPanes.push(child[i]);
|
2025
|
+
if (this.orientation === 'Horizontal') {
|
2026
|
+
addClass([child[i]], [PANE, SPLIT_H_PANE, SCROLL_PANE]);
|
2027
|
+
this.panesDimension(i, child);
|
2089
2028
|
}
|
2090
|
-
else
|
2091
|
-
|
2029
|
+
else {
|
2030
|
+
addClass([child[i]], [PANE, SPLIT_V_PANE, SCROLL_PANE]);
|
2031
|
+
this.panesDimension(i, child);
|
2092
2032
|
}
|
2093
|
-
if (!this.
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
}
|
2102
|
-
if (!isNullOrUndefined(this.paneSettings[i]) && !isNullOrUndefined(this.paneSettings[i].content)) {
|
2103
|
-
this.setTemplate(this.paneSettings[i].content, child[i]);
|
2104
|
-
}
|
2105
|
-
if (!isNullOrUndefined(this.paneSettings[i]) && this.paneSettings[i].cssClass) {
|
2106
|
-
this.setCssClass(child[i], this.paneSettings[i].cssClass);
|
2107
|
-
}
|
2108
|
-
if (!isNullOrUndefined(this.paneSettings[i])) {
|
2109
|
-
this.paneCollapsible(child[i], i);
|
2110
|
-
}
|
2033
|
+
if (!isNullOrUndefined(this.paneSettings[i]) && !isNullOrUndefined(this.paneSettings[i].content)) {
|
2034
|
+
this.setTemplate(this.paneSettings[i].content, child[i]);
|
2035
|
+
}
|
2036
|
+
if (!isNullOrUndefined(this.paneSettings[i]) && this.paneSettings[i].cssClass) {
|
2037
|
+
this.setCssClass(child[i], this.paneSettings[i].cssClass);
|
2038
|
+
}
|
2039
|
+
if (!isNullOrUndefined(this.paneSettings[i])) {
|
2040
|
+
this.paneCollapsible(child[i], i);
|
2111
2041
|
}
|
2112
2042
|
}
|
2113
2043
|
}
|
@@ -2140,24 +2070,15 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
2140
2070
|
*/
|
2141
2071
|
Splitter.prototype.destroy = function () {
|
2142
2072
|
if (!this.isDestroyed) {
|
2143
|
-
|
2144
|
-
_super.prototype.destroy.call(this);
|
2145
|
-
}
|
2073
|
+
_super.prototype.destroy.call(this);
|
2146
2074
|
EventHandler.remove(document, 'touchstart click', this.onDocumentClick);
|
2075
|
+
this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
|
2147
2076
|
while (this.element.attributes.length > 0) {
|
2148
2077
|
this.element.removeAttribute(this.element.attributes[0].name);
|
2149
2078
|
}
|
2150
|
-
|
2151
|
-
|
2152
|
-
|
2153
|
-
detach(splitNodes[i]);
|
2154
|
-
}
|
2155
|
-
}
|
2156
|
-
else {
|
2157
|
-
this.element.innerHTML = this.wrapper.innerHTML;
|
2158
|
-
for (var i = 0; i < this.wrapper.attributes.length; i++) {
|
2159
|
-
this.element.setAttribute(this.wrapper.attributes[i].name, this.wrapper.attributes[i].value);
|
2160
|
-
}
|
2079
|
+
this.element.innerHTML = this.wrapper.innerHTML;
|
2080
|
+
for (var i = 0; i < this.wrapper.attributes.length; i++) {
|
2081
|
+
this.element.setAttribute(this.wrapper.attributes[i].name, this.wrapper.attributes[i].value);
|
2161
2082
|
}
|
2162
2083
|
if (this.refreshing) {
|
2163
2084
|
addClass([this.element], ['e-control', 'e-lib', ROOT]);
|
@@ -4413,7 +4334,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4413
4334
|
_this.onDragStart(args);
|
4414
4335
|
}
|
4415
4336
|
});
|
4416
|
-
this.dragobj.enableScrollHandler = true;
|
4417
4337
|
if (this.dragCollection.indexOf(this.dragobj) === -1) {
|
4418
4338
|
this.dragCollection.push(this.dragobj);
|
4419
4339
|
}
|