@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 __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
4
4
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
@@ -239,11 +239,9 @@ let Splitter = class Splitter extends Component {
|
|
239
239
|
this.onReportWindowSize = this.reportWindowSize.bind(this);
|
240
240
|
this.wrapper = this.element.cloneNode(true);
|
241
241
|
this.wrapperParent = this.element.parentElement;
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
addClass([this.element], orientation);
|
246
|
-
}
|
242
|
+
removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
|
243
|
+
const orientation = this.orientation === 'Horizontal' ? HORIZONTAL_PANE : VERTICAL_PANE;
|
244
|
+
addClass([this.element], orientation);
|
247
245
|
const name = Browser.info.name;
|
248
246
|
const css = (name === 'msie') ? 'e-ie' : '';
|
249
247
|
this.setCssClass(this.element, css);
|
@@ -270,19 +268,15 @@ let Splitter = class Splitter extends Component {
|
|
270
268
|
* @private
|
271
269
|
*/
|
272
270
|
render() {
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
this.setDimension(this.getHeight(this.element), this.getWidth(this.element));
|
278
|
-
}
|
271
|
+
this.checkDataAttributes();
|
272
|
+
this.setCssClass(this.element, this.cssClass);
|
273
|
+
this.isEnabled(this.enabled);
|
274
|
+
this.setDimension(this.getHeight(this.element), this.getWidth(this.element));
|
279
275
|
this.createSplitPane(this.element);
|
280
276
|
this.addSeparator(this.element);
|
281
277
|
this.getPanesDimensions();
|
282
278
|
this.setPaneSettings();
|
283
|
-
|
284
|
-
this.setRTL(this.enableRtl);
|
285
|
-
}
|
279
|
+
this.setRTL(this.enableRtl);
|
286
280
|
if (this.enableReversePanes) {
|
287
281
|
this.setReversePane();
|
288
282
|
}
|
@@ -310,11 +304,15 @@ let Splitter = class Splitter extends Component {
|
|
310
304
|
this.totalPercent = previousFlexBasis + nextFlexBasis;
|
311
305
|
this.totalWidth = this.convertPercentageToPixel(this.totalPercent + '%');
|
312
306
|
if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
|
313
|
-
if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0
|
307
|
+
if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
|
308
|
+
(this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) <
|
309
|
+
this.convertPercentageToPixel((nextFlexBasis - 1) + '%'))) {
|
314
310
|
this.previousPane.style.flexBasis = (previousFlexBasis + 1) + '%';
|
315
311
|
this.nextPane.style.flexBasis = (nextFlexBasis - 1) + '%';
|
316
312
|
}
|
317
|
-
else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0
|
313
|
+
else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
|
314
|
+
(this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) <
|
315
|
+
this.convertPercentageToPixel((previousFlexBasis - 1) + '%'))) {
|
318
316
|
this.previousPane.style.flexBasis = (previousFlexBasis - 1) + '%';
|
319
317
|
this.nextPane.style.flexBasis = (nextFlexBasis + 1) + '%';
|
320
318
|
}
|
@@ -324,13 +322,15 @@ let Splitter = class Splitter extends Component {
|
|
324
322
|
this.totalWidth = (this.orientation === 'Horizontal') ? this.previousPane.offsetWidth + this.nextPane.offsetWidth :
|
325
323
|
this.previousPane.offsetHeight + this.nextPane.offsetHeight;
|
326
324
|
if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
|
327
|
-
if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0
|
325
|
+
if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
|
326
|
+
(this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) < (nextPaneSize + splitBarSize))) {
|
328
327
|
this.addStaticPaneClass();
|
329
328
|
this.previousPane.style.flexBasis = (prePaneSize + splitBarSize) + 'px';
|
330
329
|
this.nextPane.style.flexBasis = (nextPaneSize < splitBarSize) ? '0px' :
|
331
330
|
(nextPaneSize - splitBarSize) + 'px';
|
332
331
|
}
|
333
|
-
else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0
|
332
|
+
else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
|
333
|
+
(this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) < (prePaneSize - splitBarSize))) {
|
334
334
|
this.addStaticPaneClass();
|
335
335
|
this.previousPane.style.flexBasis = (prePaneSize < splitBarSize) ? '0px' :
|
336
336
|
(prePaneSize - splitBarSize) + 'px';
|
@@ -351,11 +351,12 @@ let Splitter = class Splitter extends Component {
|
|
351
351
|
&& (!isPrevpaneExpanded && !isNextpaneCollapsed && !isPrevpaneCollapsed || (isPrevpaneExpanded) && !isNextpaneCollapsed) &&
|
352
352
|
document.activeElement.classList.contains(SPLIT_BAR) && (this.paneSettings[index].resizable &&
|
353
353
|
this.paneSettings[index + 1].resizable)) {
|
354
|
+
event.preventDefault();
|
354
355
|
this.checkPaneSize(event);
|
355
356
|
this.triggerResizing(event);
|
356
357
|
}
|
357
358
|
else if (event.keyCode === 13 && this.paneSettings[index].collapsible &&
|
358
|
-
document.activeElement.classList.contains(SPLIT_BAR)) {
|
359
|
+
document.activeElement.classList.contains(SPLIT_BAR) && this.currentSeparator.classList.contains(SPLIT_BAR_ACTIVE)) {
|
359
360
|
if (!this.previousPane.classList.contains(COLLAPSE_PANE)) {
|
360
361
|
this.collapse(index);
|
361
362
|
addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
|
@@ -367,6 +368,18 @@ let Splitter = class Splitter extends Component {
|
|
367
368
|
}
|
368
369
|
}
|
369
370
|
}
|
371
|
+
getMinInPixel(minValue) {
|
372
|
+
let min;
|
373
|
+
if (isNullOrUndefined(minValue)) {
|
374
|
+
return 0;
|
375
|
+
}
|
376
|
+
let paneMinRange = this.convertPixelToNumber(minValue.toString());
|
377
|
+
if (minValue.indexOf('%') > 0) {
|
378
|
+
paneMinRange = this.convertPercentageToPixel(minValue);
|
379
|
+
}
|
380
|
+
min = this.convertPixelToNumber((paneMinRange).toString());
|
381
|
+
return min;
|
382
|
+
}
|
370
383
|
/**
|
371
384
|
* @param {string} value - specifies the string value
|
372
385
|
* @returns {string} returns the string
|
@@ -440,9 +453,6 @@ let Splitter = class Splitter extends Component {
|
|
440
453
|
});
|
441
454
|
this.restoreElem();
|
442
455
|
}
|
443
|
-
checkBlazor() {
|
444
|
-
return isBlazor() && this.isServerRendered;
|
445
|
-
}
|
446
456
|
setPaneSettings() {
|
447
457
|
const childCount = this.allPanes.length;
|
448
458
|
const paneCollection = [];
|
@@ -844,48 +854,16 @@ let Splitter = class Splitter extends Component {
|
|
844
854
|
const childCount = this.allPanes.length;
|
845
855
|
const clonedEle = target.children;
|
846
856
|
let separator;
|
847
|
-
let proxy;
|
848
|
-
if (this.checkBlazor()) {
|
849
|
-
for (let j = 0; j < this.element.children.length; j++) {
|
850
|
-
if (this.element.children[j].classList.contains(SPLIT_BAR)) {
|
851
|
-
this.allBars.push(this.element.children[j]);
|
852
|
-
}
|
853
|
-
}
|
854
|
-
}
|
855
857
|
for (let i = 0; i < childCount; i++) {
|
856
858
|
if (i < childCount - 1) {
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
}
|
866
|
-
if (this.checkBlazor()) {
|
867
|
-
proxy = this;
|
868
|
-
separator = this.allBars[i];
|
869
|
-
this.updateIconClass();
|
870
|
-
}
|
871
|
-
if (!this.checkBlazor()) {
|
872
|
-
this.wireClickEvents();
|
873
|
-
}
|
874
|
-
if (this.checkBlazor() && !isNullOrUndefined(separator)) {
|
875
|
-
this.currentSeparator = separator;
|
876
|
-
this.addMouseActions(separator);
|
877
|
-
this.wireClickEvents();
|
878
|
-
separator.addEventListener('focus', () => {
|
879
|
-
if (document.activeElement.classList.contains('e-split-bar')) {
|
880
|
-
proxy.currentSeparator = document.activeElement;
|
881
|
-
proxy.currentSeparator.classList.add(SPLIT_BAR_ACTIVE);
|
882
|
-
}
|
883
|
-
this.getPaneDetails();
|
884
|
-
});
|
885
|
-
separator.addEventListener('blur', () => {
|
886
|
-
proxy.currentSeparator.classList.remove(SPLIT_BAR_ACTIVE);
|
887
|
-
});
|
888
|
-
}
|
859
|
+
separator = this.createSeparator(i);
|
860
|
+
setStyleAttribute(separator, { 'order': (i * 2) + 1 });
|
861
|
+
this.separatorOrder.push((i * 2) + 1);
|
862
|
+
clonedEle[i].parentNode.appendChild(separator);
|
863
|
+
this.currentSeparator = separator;
|
864
|
+
separator.setAttribute('role', 'separator');
|
865
|
+
separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
|
866
|
+
this.wireClickEvents();
|
889
867
|
if (!isNullOrUndefined(separator)) {
|
890
868
|
if (this.isResizable()) {
|
891
869
|
EventHandler.add(separator, 'mousedown', this.onMouseDown, this);
|
@@ -1340,13 +1318,7 @@ let Splitter = class Splitter extends Component {
|
|
1340
1318
|
}
|
1341
1319
|
}
|
1342
1320
|
beforeAction(e) {
|
1343
|
-
const eventArgs =
|
1344
|
-
element: this.element,
|
1345
|
-
event: e,
|
1346
|
-
index: [this.prevPaneIndex, this.nextPaneIndex],
|
1347
|
-
separator: this.currentSeparator,
|
1348
|
-
cancel: false
|
1349
|
-
} : {
|
1321
|
+
const eventArgs = {
|
1350
1322
|
element: this.element,
|
1351
1323
|
event: e,
|
1352
1324
|
pane: [this.previousPane, this.nextPane],
|
@@ -1445,12 +1417,7 @@ let Splitter = class Splitter extends Component {
|
|
1445
1417
|
}
|
1446
1418
|
}
|
1447
1419
|
afterAction(e) {
|
1448
|
-
const eventArgs =
|
1449
|
-
element: this.element,
|
1450
|
-
event: e,
|
1451
|
-
index: [this.prevPaneIndex, this.nextPaneIndex],
|
1452
|
-
separator: this.currentSeparator
|
1453
|
-
} : {
|
1420
|
+
const eventArgs = {
|
1454
1421
|
element: this.element,
|
1455
1422
|
event: e,
|
1456
1423
|
pane: [this.previousPane, this.nextPane],
|
@@ -1463,10 +1430,6 @@ let Splitter = class Splitter extends Component {
|
|
1463
1430
|
this.currentBarIndex = this.getOrderIndex(parseInt(e.target.parentElement.style.order, 10), 'splitbar');
|
1464
1431
|
}
|
1465
1432
|
getSeparatorIndex(target) {
|
1466
|
-
const separator = this.orientation === 'Horizontal' ? SPLIT_H_BAR : SPLIT_V_BAR;
|
1467
|
-
if (this.checkBlazor() && this.allBars.length < 1) {
|
1468
|
-
this.allBars = selectAll('.' + separator, this.element);
|
1469
|
-
}
|
1470
1433
|
let array = [].slice.call(this.allBars);
|
1471
1434
|
array = this.enableReversePanes ? array.reverse() : array;
|
1472
1435
|
return array.indexOf(target);
|
@@ -1496,13 +1459,7 @@ let Splitter = class Splitter extends Component {
|
|
1496
1459
|
this.getPaneDetails();
|
1497
1460
|
}
|
1498
1461
|
triggerResizing(e) {
|
1499
|
-
const eventArgs =
|
1500
|
-
element: this.element,
|
1501
|
-
event: e,
|
1502
|
-
index: [this.prevPaneIndex, this.nextPaneIndex],
|
1503
|
-
paneSize: [this.prePaneDimenson, this.nextPaneDimension],
|
1504
|
-
separator: this.currentSeparator
|
1505
|
-
} : {
|
1462
|
+
const eventArgs = {
|
1506
1463
|
element: this.element,
|
1507
1464
|
event: e,
|
1508
1465
|
pane: [this.previousPane, this.nextPane],
|
@@ -1522,13 +1479,7 @@ let Splitter = class Splitter extends Component {
|
|
1522
1479
|
addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
|
1523
1480
|
this.updateCursorPosition(e, 'previous');
|
1524
1481
|
this.getPaneDetails();
|
1525
|
-
const eventArgs =
|
1526
|
-
element: this.element,
|
1527
|
-
event: e,
|
1528
|
-
index: [this.getPreviousPaneIndex(), this.getNextPaneIndex()],
|
1529
|
-
separator: this.currentSeparator,
|
1530
|
-
cancel: false
|
1531
|
-
} : {
|
1482
|
+
const eventArgs = {
|
1532
1483
|
element: this.element,
|
1533
1484
|
event: e,
|
1534
1485
|
pane: [this.previousPane, this.nextPane],
|
@@ -1913,13 +1864,7 @@ let Splitter = class Splitter extends Component {
|
|
1913
1864
|
onMouseUp(e) {
|
1914
1865
|
removeClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
|
1915
1866
|
this.unwireResizeEvents();
|
1916
|
-
const eventArgs =
|
1917
|
-
event: e,
|
1918
|
-
element: this.element,
|
1919
|
-
index: [this.prevPaneIndex, this.nextPaneIndex],
|
1920
|
-
separator: this.currentSeparator,
|
1921
|
-
paneSize: [this.prePaneDimenson, this.nextPaneDimension]
|
1922
|
-
} : {
|
1867
|
+
const eventArgs = {
|
1923
1868
|
event: e,
|
1924
1869
|
element: this.element,
|
1925
1870
|
pane: [this.previousPane, this.nextPane],
|
@@ -2021,12 +1966,7 @@ let Splitter = class Splitter extends Component {
|
|
2021
1966
|
}
|
2022
1967
|
let templateFUN;
|
2023
1968
|
if (!isNullOrUndefined(templateFn)) {
|
2024
|
-
|
2025
|
-
templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), this.isStringTemplate);
|
2026
|
-
}
|
2027
|
-
else {
|
2028
|
-
templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), true);
|
2029
|
-
}
|
1969
|
+
templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), true);
|
2030
1970
|
}
|
2031
1971
|
if (!isNullOrUndefined(templateFn) && templateFUN && templateFUN.length > 0) {
|
2032
1972
|
[].slice.call(templateFUN).forEach((el) => {
|
@@ -2040,13 +1980,11 @@ let Splitter = class Splitter extends Component {
|
|
2040
1980
|
}
|
2041
1981
|
createSplitPane(target) {
|
2042
1982
|
let childCount = target.children.length;
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
childCount = childCount + 1;
|
2049
|
-
}
|
1983
|
+
for (let i = 0; i < this.paneSettings.length; i++) {
|
1984
|
+
if (childCount < this.paneSettings.length) {
|
1985
|
+
const childElement = this.createElement('div');
|
1986
|
+
this.element.appendChild(childElement);
|
1987
|
+
childCount = childCount + 1;
|
2050
1988
|
}
|
2051
1989
|
}
|
2052
1990
|
childCount = target.children.length;
|
@@ -2056,30 +1994,23 @@ let Splitter = class Splitter extends Component {
|
|
2056
1994
|
for (let i = 0; i < childCount; i++) {
|
2057
1995
|
// To accept only div and span element as pane
|
2058
1996
|
if (child[i].nodeName === 'DIV' || child[i].nodeName === 'SPAN') {
|
2059
|
-
|
2060
|
-
|
1997
|
+
this.allPanes.push(child[i]);
|
1998
|
+
if (this.orientation === 'Horizontal') {
|
1999
|
+
addClass([child[i]], [PANE, SPLIT_H_PANE, SCROLL_PANE]);
|
2000
|
+
this.panesDimension(i, child);
|
2061
2001
|
}
|
2062
|
-
else
|
2063
|
-
|
2002
|
+
else {
|
2003
|
+
addClass([child[i]], [PANE, SPLIT_V_PANE, SCROLL_PANE]);
|
2004
|
+
this.panesDimension(i, child);
|
2064
2005
|
}
|
2065
|
-
if (!this.
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
}
|
2074
|
-
if (!isNullOrUndefined(this.paneSettings[i]) && !isNullOrUndefined(this.paneSettings[i].content)) {
|
2075
|
-
this.setTemplate(this.paneSettings[i].content, child[i]);
|
2076
|
-
}
|
2077
|
-
if (!isNullOrUndefined(this.paneSettings[i]) && this.paneSettings[i].cssClass) {
|
2078
|
-
this.setCssClass(child[i], this.paneSettings[i].cssClass);
|
2079
|
-
}
|
2080
|
-
if (!isNullOrUndefined(this.paneSettings[i])) {
|
2081
|
-
this.paneCollapsible(child[i], i);
|
2082
|
-
}
|
2006
|
+
if (!isNullOrUndefined(this.paneSettings[i]) && !isNullOrUndefined(this.paneSettings[i].content)) {
|
2007
|
+
this.setTemplate(this.paneSettings[i].content, child[i]);
|
2008
|
+
}
|
2009
|
+
if (!isNullOrUndefined(this.paneSettings[i]) && this.paneSettings[i].cssClass) {
|
2010
|
+
this.setCssClass(child[i], this.paneSettings[i].cssClass);
|
2011
|
+
}
|
2012
|
+
if (!isNullOrUndefined(this.paneSettings[i])) {
|
2013
|
+
this.paneCollapsible(child[i], i);
|
2083
2014
|
}
|
2084
2015
|
}
|
2085
2016
|
}
|
@@ -2112,24 +2043,15 @@ let Splitter = class Splitter extends Component {
|
|
2112
2043
|
*/
|
2113
2044
|
destroy() {
|
2114
2045
|
if (!this.isDestroyed) {
|
2115
|
-
|
2116
|
-
super.destroy();
|
2117
|
-
}
|
2046
|
+
super.destroy();
|
2118
2047
|
EventHandler.remove(document, 'touchstart click', this.onDocumentClick);
|
2048
|
+
this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
|
2119
2049
|
while (this.element.attributes.length > 0) {
|
2120
2050
|
this.element.removeAttribute(this.element.attributes[0].name);
|
2121
2051
|
}
|
2122
|
-
|
2123
|
-
|
2124
|
-
|
2125
|
-
detach(splitNodes[i]);
|
2126
|
-
}
|
2127
|
-
}
|
2128
|
-
else {
|
2129
|
-
this.element.innerHTML = this.wrapper.innerHTML;
|
2130
|
-
for (let i = 0; i < this.wrapper.attributes.length; i++) {
|
2131
|
-
this.element.setAttribute(this.wrapper.attributes[i].name, this.wrapper.attributes[i].value);
|
2132
|
-
}
|
2052
|
+
this.element.innerHTML = this.wrapper.innerHTML;
|
2053
|
+
for (let i = 0; i < this.wrapper.attributes.length; i++) {
|
2054
|
+
this.element.setAttribute(this.wrapper.attributes[i].name, this.wrapper.attributes[i].value);
|
2133
2055
|
}
|
2134
2056
|
if (this.refreshing) {
|
2135
2057
|
addClass([this.element], ['e-control', 'e-lib', ROOT]);
|
@@ -4340,7 +4262,6 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
4340
4262
|
this.onDragStart(args);
|
4341
4263
|
}
|
4342
4264
|
});
|
4343
|
-
this.dragobj.enableScrollHandler = true;
|
4344
4265
|
if (this.dragCollection.indexOf(this.dragobj) === -1) {
|
4345
4266
|
this.dragCollection.push(this.dragobj);
|
4346
4267
|
}
|