@syncfusion/ej2-layouts 19.2.44 → 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 +22 -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 +103 -254
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +103 -255
- 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-model.d.ts +1 -22
- package/src/dashboard-layout/dashboard-layout.d.ts +0 -23
- package/src/dashboard-layout/dashboard-layout.js +32 -105
- package/src/splitter/splitter-model.d.ts +1 -1
- package/src/splitter/splitter.d.ts +1 -1
- package/src/splitter/splitter.js +73 -151
- 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);
|
@@ -1070,7 +1047,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
|
|
1070
1047
|
var updatePane = void 0;
|
1071
1048
|
var flexPane = void 0;
|
1072
1049
|
for (var i = 0; i < paneCount; i++) {
|
1073
|
-
if (this.paneSettings[i].min
|
1050
|
+
if (!isNullOrUndefined(this.paneSettings[i].min)) {
|
1074
1051
|
paneMinRange = this.convertPixelToNumber((this.paneSettings[i].min).toString());
|
1075
1052
|
if (this.paneSettings[i].min.indexOf('%') > 0) {
|
1076
1053
|
paneMinRange = this.convertPercentageToPixel(this.paneSettings[i].min);
|
@@ -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]);
|
@@ -2464,7 +2385,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2464
2385
|
_this.mouseY = 0;
|
2465
2386
|
_this.minTop = 0;
|
2466
2387
|
_this.minLeft = 0;
|
2467
|
-
_this.isBlazor = false;
|
2468
2388
|
_this.isInlineRendering = false;
|
2469
2389
|
_this.removeAllCalled = false;
|
2470
2390
|
// to check whether removePanel is executed in mobile device
|
@@ -2481,7 +2401,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2481
2401
|
* @private
|
2482
2402
|
*/
|
2483
2403
|
DashboardLayout.prototype.preRender = function () {
|
2484
|
-
this.isBlazor = (isBlazor() && this.isServerRendered);
|
2485
2404
|
this.panelCollection = [];
|
2486
2405
|
this.sortedArray = [];
|
2487
2406
|
this.gridPanelCollection = [];
|
@@ -2532,16 +2451,8 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2532
2451
|
}
|
2533
2452
|
this.updateDragArea();
|
2534
2453
|
this.renderComplete();
|
2535
|
-
this.updateServerPanelData();
|
2536
2454
|
this.renderReactTemplates();
|
2537
2455
|
};
|
2538
|
-
DashboardLayout.prototype.updateServerPanelData = function () {
|
2539
|
-
if (isBlazor() && this.isServerRendered) {
|
2540
|
-
this.setProperties({ panels: this.panels }, true);
|
2541
|
-
this.allowServerDataBinding = true;
|
2542
|
-
this.serverDataBind();
|
2543
|
-
}
|
2544
|
-
};
|
2545
2456
|
DashboardLayout.prototype.initGridLines = function () {
|
2546
2457
|
this.table = document.createElement('table');
|
2547
2458
|
var tbody = document.createElement('tbody');
|
@@ -2565,8 +2476,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2565
2476
|
};
|
2566
2477
|
DashboardLayout.prototype.initialize = function () {
|
2567
2478
|
this.updateRowHeight();
|
2568
|
-
if (this.element.childElementCount > 0 && this.element.querySelectorAll('.e-panel').length > 0
|
2569
|
-
&& !(this.isBlazor && this.panels.length > 0)) {
|
2479
|
+
if (this.element.childElementCount > 0 && this.element.querySelectorAll('.e-panel').length > 0) {
|
2570
2480
|
var panelElements = [];
|
2571
2481
|
this.setProperties({ panels: [] }, true);
|
2572
2482
|
this.isInlineRendering = true;
|
@@ -2590,9 +2500,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2590
2500
|
this.panelPropertyChange(this.panels[i], { col: colValue < 0 ? 0 : colValue });
|
2591
2501
|
}
|
2592
2502
|
this.setXYAttributes(panelElement, this.panels[i]);
|
2593
|
-
this.isBlazor = false;
|
2594
2503
|
var panel_1 = this.renderPanels(panelElement, this.panels[i], this.panels[i].id, false);
|
2595
|
-
this.isBlazor = (isBlazor() && this.isServerRendered);
|
2596
2504
|
this.panelCollection.push(panel_1);
|
2597
2505
|
this.setHeightAndWidth(panelElement, this.panels[i]);
|
2598
2506
|
this.tempObject = this;
|
@@ -2623,9 +2531,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2623
2531
|
if (!(this.checkMediaQuery())) {
|
2624
2532
|
this.panelResponsiveUpdate();
|
2625
2533
|
}
|
2626
|
-
|
2627
|
-
this.setEnableRtl();
|
2628
|
-
}
|
2534
|
+
this.setEnableRtl();
|
2629
2535
|
};
|
2630
2536
|
DashboardLayout.prototype.checkMediaQuery = function () {
|
2631
2537
|
return (this.mediaQuery && window.matchMedia('(' + this.mediaQuery + ')').matches);
|
@@ -2742,31 +2648,24 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2742
2648
|
}
|
2743
2649
|
};
|
2744
2650
|
DashboardLayout.prototype.renderPanels = function (cellElement, panelModel, panelId, isStringTemplate) {
|
2745
|
-
|
2746
|
-
addClass([cellElement], [panel, panelTransition]);
|
2747
|
-
}
|
2651
|
+
addClass([cellElement], [panel, panelTransition]);
|
2748
2652
|
var cssClass = panelModel.cssClass ? panelModel.cssClass.split(' ') : null;
|
2749
2653
|
this.panelContent = cellElement.querySelector('.e-panel-container') ?
|
2750
2654
|
cellElement.querySelector('.e-panel-container') :
|
2751
2655
|
this.createSubElement(cssClass, cellElement.id + '_content', panelContainer);
|
2752
|
-
|
2753
|
-
|
2754
|
-
|
2755
|
-
this.disablePanel(cellElement);
|
2756
|
-
}
|
2656
|
+
cellElement.appendChild(this.panelContent);
|
2657
|
+
if (!panelModel.enabled) {
|
2658
|
+
this.disablePanel(cellElement);
|
2757
2659
|
}
|
2758
2660
|
if (panelModel.header) {
|
2759
2661
|
var headerTemplateElement = cellElement.querySelector('.e-panel-header') ?
|
2760
2662
|
cellElement.querySelector('.e-panel-header') : this.createSubElement([], cellElement.id + 'template', '');
|
2761
|
-
|
2762
|
-
|
2763
|
-
}
|
2764
|
-
if (!cellElement.querySelector('.e-panel-header') && !this.isBlazor) {
|
2663
|
+
addClass([headerTemplateElement], [header]);
|
2664
|
+
if (!cellElement.querySelector('.e-panel-header')) {
|
2765
2665
|
var id = this.element.id + 'HeaderTemplate' + panelId;
|
2766
2666
|
this.renderTemplate(panelModel.header, headerTemplateElement, id, isStringTemplate, 'header');
|
2767
2667
|
this.panelContent.appendChild(headerTemplateElement);
|
2768
2668
|
this.renderReactTemplates();
|
2769
|
-
updateBlazorTemplate(id, 'HeaderTemplate', panelModel);
|
2770
2669
|
}
|
2771
2670
|
}
|
2772
2671
|
if (panelModel.content) {
|
@@ -2777,12 +2676,11 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
2777
2676
|
window.getComputedStyle(this.panelContent.querySelector('.e-panel-header')).height : '0px';
|
2778
2677
|
var contentHeightValue = 'calc( 100% - ' + headerHeight + ')';
|
2779
2678
|
setStyleAttribute(this.panelBody, { height: contentHeightValue });
|
2780
|
-
if (!cellElement.querySelector('.e-panel-content')
|
2679
|
+
if (!cellElement.querySelector('.e-panel-content')) {
|
2781
2680
|
var id = this.element.id + 'ContentTemplate' + panelId;
|
2782
2681
|
this.renderTemplate(panelModel.content, this.panelBody, id, isStringTemplate, 'content');
|
2783
2682
|
this.panelContent.appendChild(this.panelBody);
|
2784
2683
|
this.renderReactTemplates();
|
2785
|
-
updateBlazorTemplate(id, 'ContentTemplate', panelModel);
|
2786
2684
|
}
|
2787
2685
|
}
|
2788
2686
|
return cellElement;
|
@@ -3038,7 +2936,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
3038
2936
|
if (isNullOrUndefined(this.downTarget)) {
|
3039
2937
|
return;
|
3040
2938
|
}
|
3041
|
-
this.updateServerPanelData();
|
3042
2939
|
this.upTarget = this.downTarget;
|
3043
2940
|
var el = closest((this.upTarget), '.e-panel');
|
3044
2941
|
var args = { event: e, element: el, isInteracted: true };
|
@@ -3322,18 +3219,9 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
3322
3219
|
panelElement.style.height = '' + updatedHeight + 'px';
|
3323
3220
|
}
|
3324
3221
|
this.resizeHeight = true;
|
3325
|
-
|
3326
|
-
|
3327
|
-
|
3328
|
-
panelProp.col = 0;
|
3329
|
-
this.panelPropertyChange(updatedPanel[i], panelProp);
|
3330
|
-
this.setPanelPosition(panelElement, i, 0);
|
3331
|
-
}
|
3332
|
-
else {
|
3333
|
-
this.panelPropertyChange(updatedPanel[i], { row: i, col: 0 });
|
3334
|
-
this.setPanelPosition(panelElement, updatedPanel[i].row, updatedPanel[i].col);
|
3335
|
-
this.panelsSizeY = this.panelsSizeY + updatedPanel[i].sizeY;
|
3336
|
-
}
|
3222
|
+
this.panelPropertyChange(updatedPanel[i], { row: i, col: 0 });
|
3223
|
+
this.setPanelPosition(panelElement, updatedPanel[i].row, updatedPanel[i].col);
|
3224
|
+
this.panelsSizeY = this.panelsSizeY + updatedPanel[i].sizeY;
|
3337
3225
|
this.setClasses(this.panelCollection);
|
3338
3226
|
this.checkDragging(this.dragCollection);
|
3339
3227
|
this.removeResizeClasses(this.panelCollection);
|
@@ -3385,40 +3273,24 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
3385
3273
|
if (isUndefined(panel.enabled)) {
|
3386
3274
|
panel.enabled = true;
|
3387
3275
|
}
|
3388
|
-
if (this.
|
3389
|
-
cellElement =
|
3390
|
-
|
3391
|
-
|
3392
|
-
if (this.contentTemplateChild.length > 0 && !isNullOrUndefined(index)) {
|
3393
|
-
cellElement = this.contentTemplateChild[index];
|
3394
|
-
if (panel.cssClass) {
|
3395
|
-
addClass([cellElement], [panel.cssClass]);
|
3396
|
-
}
|
3397
|
-
if (panel.id) {
|
3398
|
-
cellElement.setAttribute('id', panel.id);
|
3399
|
-
}
|
3276
|
+
if (this.contentTemplateChild.length > 0 && !isNullOrUndefined(index)) {
|
3277
|
+
cellElement = this.contentTemplateChild[index];
|
3278
|
+
if (panel.cssClass) {
|
3279
|
+
addClass([cellElement], [panel.cssClass]);
|
3400
3280
|
}
|
3401
|
-
|
3402
|
-
cellElement
|
3281
|
+
if (panel.id) {
|
3282
|
+
cellElement.setAttribute('id', panel.id);
|
3403
3283
|
}
|
3404
|
-
cellElement.style.zIndex = '' + panel.zIndex;
|
3405
|
-
this.element.appendChild(cellElement);
|
3406
|
-
this.renderReactTemplates();
|
3407
|
-
}
|
3408
|
-
var dashBoardCell = this.renderPanels(cellElement, panel, panel.id, isStringTemplate);
|
3409
|
-
this.panelCollection.push(dashBoardCell);
|
3410
|
-
if (!this.isBlazor) {
|
3411
|
-
this.setXYAttributes(cellElement, panel);
|
3412
3284
|
}
|
3413
3285
|
else {
|
3414
|
-
|
3415
|
-
if (bodyElement) {
|
3416
|
-
var headerHeight = cellElement.querySelector('.e-panel-header') ?
|
3417
|
-
window.getComputedStyle(cellElement.querySelector('.e-panel-header')).height : '0px';
|
3418
|
-
var contentHeightValue = 'calc( 100% - ' + headerHeight + ')';
|
3419
|
-
setStyleAttribute(bodyElement, { height: contentHeightValue });
|
3420
|
-
}
|
3286
|
+
cellElement = this.createPanelElement(panel.cssClass ? panel.cssClass.split(' ') : null, panel.id);
|
3421
3287
|
}
|
3288
|
+
cellElement.style.zIndex = '' + panel.zIndex;
|
3289
|
+
this.element.appendChild(cellElement);
|
3290
|
+
this.renderReactTemplates();
|
3291
|
+
var dashBoardCell = this.renderPanels(cellElement, panel, panel.id, isStringTemplate);
|
3292
|
+
this.panelCollection.push(dashBoardCell);
|
3293
|
+
this.setXYAttributes(cellElement, panel);
|
3422
3294
|
this.setHeightAndWidth(cellElement, panel);
|
3423
3295
|
return cellElement;
|
3424
3296
|
};
|
@@ -3488,7 +3360,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
3488
3360
|
}
|
3489
3361
|
};
|
3490
3362
|
DashboardLayout.prototype.panelPropertyChange = function (panel, value) {
|
3491
|
-
this.allowServerDataBinding = false;
|
3492
3363
|
// eslint-disable-next-line
|
3493
3364
|
panel.setProperties(value, true);
|
3494
3365
|
};
|
@@ -3496,20 +3367,16 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
3496
3367
|
if (this.element.querySelectorAll('.e-panel').length > 0 || this.panels.length > 0) {
|
3497
3368
|
for (var j = 0; j < cells.length; j++) {
|
3498
3369
|
this.gridPanelCollection.push(cells[j]);
|
3499
|
-
|
3500
|
-
this.setMinMaxValues(cells[j]);
|
3501
|
-
}
|
3370
|
+
this.setMinMaxValues(cells[j]);
|
3502
3371
|
if (this.maxColumnValue < cells[j].col || this.maxColumnValue < (cells[j].col + cells[j].sizeX)) {
|
3503
3372
|
this.panelPropertyChange(cells[j], { col: this.maxColumnValue - cells[j].sizeX });
|
3504
3373
|
}
|
3505
3374
|
var cell = this.renderCell(cells[j], false, j);
|
3506
|
-
if (
|
3507
|
-
|
3508
|
-
addClass([cell], 'e-rtl');
|
3509
|
-
}
|
3510
|
-
this.element.appendChild(cell);
|
3511
|
-
this.renderReactTemplates();
|
3375
|
+
if (this.enableRtl) {
|
3376
|
+
addClass([cell], 'e-rtl');
|
3512
3377
|
}
|
3378
|
+
this.element.appendChild(cell);
|
3379
|
+
this.renderReactTemplates();
|
3513
3380
|
if (this.checkMediaQuery() && j === cells.length - 1) {
|
3514
3381
|
this.checkMediaQuerySizing();
|
3515
3382
|
}
|
@@ -4448,7 +4315,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4448
4315
|
var panelInstance = _this.getCellInstance(args.element.id);
|
4449
4316
|
_this.setPanelPosition(args.element, panelInstance.row, panelInstance.col);
|
4450
4317
|
_this.updatePanels();
|
4451
|
-
_this.updateServerPanelData();
|
4452
4318
|
_this.updateCloneArrayObject();
|
4453
4319
|
_this.checkForChanges(true);
|
4454
4320
|
_this.dragStopEventArgs = { event: args.event, element: args.element };
|
@@ -4494,9 +4360,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4494
4360
|
DashboardLayout.prototype.onDraggingStart = function (args) {
|
4495
4361
|
var dragArgs = args;
|
4496
4362
|
this.trigger('dragStart', dragArgs, function (dragArgs) {
|
4497
|
-
if (isBlazor()) {
|
4498
|
-
dragArgs.bindEvents(args.element);
|
4499
|
-
}
|
4500
4363
|
});
|
4501
4364
|
this.panelsInitialModel = this.cloneModels(this.panels);
|
4502
4365
|
this.mainElement = args.element;
|
@@ -4668,7 +4531,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4668
4531
|
*/
|
4669
4532
|
DashboardLayout.prototype.addPanel = function (panel) {
|
4670
4533
|
this.panelsSizeY = 0;
|
4671
|
-
this.allowServerDataBinding = false;
|
4672
4534
|
this.maxCol();
|
4673
4535
|
if (!panel.minSizeX) {
|
4674
4536
|
panel.minSizeX = 1;
|
@@ -4696,9 +4558,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4696
4558
|
this.addPanelCalled = true;
|
4697
4559
|
if (this.checkMediaQuery()) {
|
4698
4560
|
this.checkMediaQuerySizing();
|
4699
|
-
if (this.isBlazor) {
|
4700
|
-
cell.style.removeProperty('visibility');
|
4701
|
-
}
|
4702
4561
|
this.removeResizeClasses(this.panelCollection);
|
4703
4562
|
}
|
4704
4563
|
else {
|
@@ -4707,9 +4566,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4707
4566
|
this.checkCollision = [];
|
4708
4567
|
}
|
4709
4568
|
this.setPanelPosition(cell, panelProp.row, panelProp.col);
|
4710
|
-
if (this.isBlazor) {
|
4711
|
-
cell.style.removeProperty('visibility');
|
4712
|
-
}
|
4713
4569
|
this.updatePanelLayout(cell, panelProp);
|
4714
4570
|
}
|
4715
4571
|
this.addPanelCalled = false;
|
@@ -4735,8 +4591,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4735
4591
|
}
|
4736
4592
|
}
|
4737
4593
|
this.checkForChanges(false, [panelProp]);
|
4738
|
-
this.allowServerDataBinding = true;
|
4739
|
-
this.serverDataBind();
|
4740
4594
|
};
|
4741
4595
|
/**
|
4742
4596
|
* Allows to update a panel in the DashboardLayout.
|
@@ -4845,7 +4699,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4845
4699
|
this.clearTemplate();
|
4846
4700
|
}
|
4847
4701
|
this.removeAllPanel();
|
4848
|
-
this.updateServerPanelData();
|
4849
4702
|
this.rows = 0;
|
4850
4703
|
this.gridPanelCollection = [];
|
4851
4704
|
this.setHeightWidth();
|
@@ -4895,7 +4748,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4895
4748
|
this.checkMediaQuerySizing();
|
4896
4749
|
this.isPanelRemoved = false;
|
4897
4750
|
}
|
4898
|
-
this.updateServerPanelData();
|
4899
4751
|
this.gridPanelCollection.forEach(function (item) {
|
4900
4752
|
if (item.id === id) {
|
4901
4753
|
_this.gridPanelCollection.splice(_this.gridPanelCollection.indexOf(item), 1);
|
@@ -4939,7 +4791,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
4939
4791
|
this.updatePanelLayout(ele, panelInstance);
|
4940
4792
|
this.updateRowHeight();
|
4941
4793
|
this.updatePanels();
|
4942
|
-
this.updateServerPanelData();
|
4943
4794
|
this.updateCloneArrayObject();
|
4944
4795
|
this.mainElement = null;
|
4945
4796
|
if (this.allowFloating) {
|
@@ -5002,7 +4853,6 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
5002
4853
|
this.setHeightAndWidth(ele, panelInstance);
|
5003
4854
|
this.updatePanelLayout(ele, panelInstance);
|
5004
4855
|
this.updatePanels();
|
5005
|
-
this.updateServerPanelData();
|
5006
4856
|
this.updateRowHeight();
|
5007
4857
|
this.resizeCalled = false;
|
5008
4858
|
this.trigger('resizeStop', args);
|
@@ -5064,12 +4914,10 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
|
|
5064
4914
|
if (this.table) {
|
5065
4915
|
this.table.remove();
|
5066
4916
|
}
|
5067
|
-
this.isBlazor = false;
|
5068
4917
|
this.initialize();
|
5069
4918
|
if (this.checkMediaQuery()) {
|
5070
4919
|
this.refresh();
|
5071
4920
|
}
|
5072
|
-
this.isBlazor = (isBlazor() && this.isServerRendered);
|
5073
4921
|
if (this.showGridLines) {
|
5074
4922
|
this.initGridLines();
|
5075
4923
|
}
|