@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.
Files changed (105) hide show
  1. package/.eslintrc.json +1 -1
  2. package/CHANGELOG.md +22 -0
  3. package/dist/ej2-layouts.umd.min.js +2 -2
  4. package/dist/ej2-layouts.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-layouts.es2015.js +103 -254
  6. package/dist/es6/ej2-layouts.es2015.js.map +1 -1
  7. package/dist/es6/ej2-layouts.es5.js +103 -255
  8. package/dist/es6/ej2-layouts.es5.js.map +1 -1
  9. package/dist/global/ej2-layouts.min.js +2 -2
  10. package/dist/global/ej2-layouts.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/helpers/e2e/dashboardHelper.d.ts +63 -0
  13. package/helpers/e2e/dashboardHelper.js +97 -0
  14. package/helpers/e2e/index.d.ts +1 -0
  15. package/helpers/e2e/index.js +1 -0
  16. package/package.json +6 -6
  17. package/src/dashboard-layout/dashboard-layout-model.d.ts +1 -22
  18. package/src/dashboard-layout/dashboard-layout.d.ts +0 -23
  19. package/src/dashboard-layout/dashboard-layout.js +32 -105
  20. package/src/splitter/splitter-model.d.ts +1 -1
  21. package/src/splitter/splitter.d.ts +1 -1
  22. package/src/splitter/splitter.js +73 -151
  23. package/styles/avatar/_bootstrap5-dark-definition.scss +1 -0
  24. package/styles/avatar/_bootstrap5-definition.scss +25 -0
  25. package/styles/avatar/_layout.scss +5 -5
  26. package/styles/avatar/_tailwind-dark-definition.scss +1 -25
  27. package/styles/avatar/bootstrap5-dark.css +61 -0
  28. package/styles/avatar/bootstrap5-dark.scss +3 -0
  29. package/styles/avatar/bootstrap5.css +61 -0
  30. package/styles/avatar/bootstrap5.scss +3 -0
  31. package/styles/bootstrap-dark.css +8 -0
  32. package/styles/bootstrap.css +8 -0
  33. package/styles/bootstrap4.css +8 -0
  34. package/styles/bootstrap5-dark.css +1618 -0
  35. package/styles/bootstrap5-dark.scss +4 -0
  36. package/styles/bootstrap5.css +1618 -0
  37. package/styles/bootstrap5.scss +4 -0
  38. package/styles/card/_bootstrap5-dark-definition.scss +1 -0
  39. package/styles/card/_bootstrap5-definition.scss +119 -0
  40. package/styles/card/_fabric-dark-definition.scss +5 -18
  41. package/styles/card/_layout.scss +2 -2
  42. package/styles/card/_tailwind-dark-definition.scss +1 -122
  43. package/styles/card/_tailwind-definition.scss +5 -9
  44. package/styles/card/bootstrap5-dark.css +593 -0
  45. package/styles/card/bootstrap5-dark.scss +3 -0
  46. package/styles/card/bootstrap5.css +593 -0
  47. package/styles/card/bootstrap5.scss +3 -0
  48. package/styles/card/fabric-dark.css +12 -12
  49. package/styles/card/tailwind-dark.css +2 -3
  50. package/styles/card/tailwind.css +0 -1
  51. package/styles/dashboard-layout/_bootstrap5-dark-definition.scss +1 -0
  52. package/styles/dashboard-layout/_bootstrap5-definition.scss +109 -0
  53. package/styles/dashboard-layout/_layout.scss +14 -5
  54. package/styles/dashboard-layout/_tailwind-dark-definition.scss +1 -109
  55. package/styles/dashboard-layout/_tailwind-definition.scss +27 -28
  56. package/styles/dashboard-layout/_theme.scss +4 -4
  57. package/styles/dashboard-layout/bootstrap5-dark.css +393 -0
  58. package/styles/dashboard-layout/bootstrap5-dark.scss +4 -0
  59. package/styles/dashboard-layout/bootstrap5.css +393 -0
  60. package/styles/dashboard-layout/bootstrap5.scss +4 -0
  61. package/styles/dashboard-layout/icons/_bootstrap5-dark.scss +1 -0
  62. package/styles/dashboard-layout/icons/_bootstrap5.scss +81 -0
  63. package/styles/dashboard-layout/material-dark.css +3 -3
  64. package/styles/dashboard-layout/tailwind-dark.css +10 -8
  65. package/styles/dashboard-layout/tailwind.css +5 -3
  66. package/styles/fabric-dark.css +20 -12
  67. package/styles/fabric.css +8 -0
  68. package/styles/highcontrast-light.css +8 -0
  69. package/styles/highcontrast.css +8 -0
  70. package/styles/material-dark.css +19 -11
  71. package/styles/material.css +8 -0
  72. package/styles/splitter/_bootstrap5-dark-definition.scss +1 -0
  73. package/styles/splitter/_bootstrap5-definition.scss +26 -0
  74. package/styles/splitter/_tailwind-dark-definition.scss +1 -23
  75. package/styles/splitter/_tailwind-definition.scss +14 -11
  76. package/styles/splitter/bootstrap-dark.css +8 -0
  77. package/styles/splitter/bootstrap.css +8 -0
  78. package/styles/splitter/bootstrap4.css +8 -0
  79. package/styles/splitter/bootstrap5-dark.css +568 -0
  80. package/styles/splitter/bootstrap5-dark.scss +4 -0
  81. package/styles/splitter/bootstrap5.css +568 -0
  82. package/styles/splitter/bootstrap5.scss +4 -0
  83. package/styles/splitter/fabric-dark.css +8 -0
  84. package/styles/splitter/fabric.css +8 -0
  85. package/styles/splitter/highcontrast-light.css +8 -0
  86. package/styles/splitter/highcontrast.css +8 -0
  87. package/styles/splitter/icons/_bootstrap-dark.scss +12 -0
  88. package/styles/splitter/icons/_bootstrap.scss +12 -0
  89. package/styles/splitter/icons/_bootstrap4.scss +12 -0
  90. package/styles/splitter/icons/_bootstrap5-dark.scss +1 -0
  91. package/styles/splitter/icons/_bootstrap5.scss +39 -0
  92. package/styles/splitter/icons/_fabric-dark.scss +12 -0
  93. package/styles/splitter/icons/_fabric.scss +12 -0
  94. package/styles/splitter/icons/_highcontrast-light.scss +12 -0
  95. package/styles/splitter/icons/_highcontrast.scss +12 -0
  96. package/styles/splitter/icons/_material-dark.scss +12 -0
  97. package/styles/splitter/icons/_material.scss +12 -0
  98. package/styles/splitter/icons/_tailwind-dark.scss +1 -39
  99. package/styles/splitter/icons/_tailwind.scss +12 -0
  100. package/styles/splitter/material-dark.css +16 -8
  101. package/styles/splitter/material.css +8 -0
  102. package/styles/splitter/tailwind-dark.css +14 -7
  103. package/styles/splitter/tailwind.css +8 -1
  104. package/styles/tailwind-dark.css +26 -18
  105. 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, isBlazor, isNullOrUndefined, isUndefined, removeClass, select, selectAll, setStyleAttribute, setValue, updateBlazorTemplate } from '@syncfusion/ej2-base';
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
- if (!this.checkBlazor()) {
243
- removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
244
- const orientation = this.orientation === 'Horizontal' ? HORIZONTAL_PANE : VERTICAL_PANE;
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
- if (!this.checkBlazor()) {
274
- this.checkDataAttributes();
275
- this.setCssClass(this.element, this.cssClass);
276
- this.isEnabled(this.enabled);
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
- if (!this.checkBlazor()) {
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
- if (!this.checkBlazor()) {
858
- separator = this.createSeparator(i);
859
- setStyleAttribute(separator, { 'order': (i * 2) + 1 });
860
- this.separatorOrder.push((i * 2) + 1);
861
- clonedEle[i].parentNode.appendChild(separator);
862
- this.currentSeparator = separator;
863
- separator.setAttribute('role', 'separator');
864
- separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
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);
@@ -1045,7 +1023,7 @@ let Splitter = class Splitter extends Component {
1045
1023
  let updatePane;
1046
1024
  let flexPane;
1047
1025
  for (let i = 0; i < paneCount; i++) {
1048
- if (this.paneSettings[i].min !== null) {
1026
+ if (!isNullOrUndefined(this.paneSettings[i].min)) {
1049
1027
  paneMinRange = this.convertPixelToNumber((this.paneSettings[i].min).toString());
1050
1028
  if (this.paneSettings[i].min.indexOf('%') > 0) {
1051
1029
  paneMinRange = this.convertPercentageToPixel(this.paneSettings[i].min);
@@ -1340,13 +1318,7 @@ let Splitter = class Splitter extends Component {
1340
1318
  }
1341
1319
  }
1342
1320
  beforeAction(e) {
1343
- const eventArgs = isBlazor() ? {
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 = isBlazor() ? {
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 = isBlazor() ? {
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 = isBlazor() ? {
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 = isBlazor() ? {
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
- if (isBlazor() && !this.isStringTemplate) {
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
- if (!this.checkBlazor()) {
2044
- for (let i = 0; i < this.paneSettings.length; i++) {
2045
- if (childCount < this.paneSettings.length) {
2046
- const childElement = this.createElement('div');
2047
- this.element.appendChild(childElement);
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
- if (this.checkBlazor() && child[i].classList.contains(PANE)) {
2060
- this.allPanes.push(child[i]);
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 if (!this.checkBlazor()) {
2063
- this.allPanes.push(child[i]);
2002
+ else {
2003
+ addClass([child[i]], [PANE, SPLIT_V_PANE, SCROLL_PANE]);
2004
+ this.panesDimension(i, child);
2064
2005
  }
2065
- if (!this.checkBlazor()) {
2066
- if (this.orientation === 'Horizontal') {
2067
- addClass([child[i]], [PANE, SPLIT_H_PANE, SCROLL_PANE]);
2068
- this.panesDimension(i, child);
2069
- }
2070
- else {
2071
- addClass([child[i]], [PANE, SPLIT_V_PANE, SCROLL_PANE]);
2072
- this.panesDimension(i, child);
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
- if (!this.checkBlazor()) {
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
- if (this.checkBlazor()) {
2123
- const splitNodes = this.element.children;
2124
- for (let i = splitNodes.length - 1; i >= 0; i--) {
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]);
@@ -2416,7 +2338,6 @@ let DashboardLayout = class DashboardLayout extends Component {
2416
2338
  this.mouseY = 0;
2417
2339
  this.minTop = 0;
2418
2340
  this.minLeft = 0;
2419
- this.isBlazor = false;
2420
2341
  this.isInlineRendering = false;
2421
2342
  this.removeAllCalled = false;
2422
2343
  // to check whether removePanel is executed in mobile device
@@ -2432,7 +2353,6 @@ let DashboardLayout = class DashboardLayout extends Component {
2432
2353
  * @private
2433
2354
  */
2434
2355
  preRender() {
2435
- this.isBlazor = (isBlazor() && this.isServerRendered);
2436
2356
  this.panelCollection = [];
2437
2357
  this.sortedArray = [];
2438
2358
  this.gridPanelCollection = [];
@@ -2483,16 +2403,8 @@ let DashboardLayout = class DashboardLayout extends Component {
2483
2403
  }
2484
2404
  this.updateDragArea();
2485
2405
  this.renderComplete();
2486
- this.updateServerPanelData();
2487
2406
  this.renderReactTemplates();
2488
2407
  }
2489
- updateServerPanelData() {
2490
- if (isBlazor() && this.isServerRendered) {
2491
- this.setProperties({ panels: this.panels }, true);
2492
- this.allowServerDataBinding = true;
2493
- this.serverDataBind();
2494
- }
2495
- }
2496
2408
  initGridLines() {
2497
2409
  this.table = document.createElement('table');
2498
2410
  const tbody = document.createElement('tbody');
@@ -2516,8 +2428,7 @@ let DashboardLayout = class DashboardLayout extends Component {
2516
2428
  }
2517
2429
  initialize() {
2518
2430
  this.updateRowHeight();
2519
- if (this.element.childElementCount > 0 && this.element.querySelectorAll('.e-panel').length > 0
2520
- && !(this.isBlazor && this.panels.length > 0)) {
2431
+ if (this.element.childElementCount > 0 && this.element.querySelectorAll('.e-panel').length > 0) {
2521
2432
  const panelElements = [];
2522
2433
  this.setProperties({ panels: [] }, true);
2523
2434
  this.isInlineRendering = true;
@@ -2541,9 +2452,7 @@ let DashboardLayout = class DashboardLayout extends Component {
2541
2452
  this.panelPropertyChange(this.panels[i], { col: colValue < 0 ? 0 : colValue });
2542
2453
  }
2543
2454
  this.setXYAttributes(panelElement, this.panels[i]);
2544
- this.isBlazor = false;
2545
2455
  const panel = this.renderPanels(panelElement, this.panels[i], this.panels[i].id, false);
2546
- this.isBlazor = (isBlazor() && this.isServerRendered);
2547
2456
  this.panelCollection.push(panel);
2548
2457
  this.setHeightAndWidth(panelElement, this.panels[i]);
2549
2458
  this.tempObject = this;
@@ -2574,9 +2483,7 @@ let DashboardLayout = class DashboardLayout extends Component {
2574
2483
  if (!(this.checkMediaQuery())) {
2575
2484
  this.panelResponsiveUpdate();
2576
2485
  }
2577
- if (!this.isBlazor) {
2578
- this.setEnableRtl();
2579
- }
2486
+ this.setEnableRtl();
2580
2487
  }
2581
2488
  checkMediaQuery() {
2582
2489
  return (this.mediaQuery && window.matchMedia('(' + this.mediaQuery + ')').matches);
@@ -2692,31 +2599,24 @@ let DashboardLayout = class DashboardLayout extends Component {
2692
2599
  }
2693
2600
  }
2694
2601
  renderPanels(cellElement, panelModel, panelId, isStringTemplate) {
2695
- if (!this.isBlazor) {
2696
- addClass([cellElement], [panel, panelTransition]);
2697
- }
2602
+ addClass([cellElement], [panel, panelTransition]);
2698
2603
  const cssClass = panelModel.cssClass ? panelModel.cssClass.split(' ') : null;
2699
2604
  this.panelContent = cellElement.querySelector('.e-panel-container') ?
2700
2605
  cellElement.querySelector('.e-panel-container') :
2701
2606
  this.createSubElement(cssClass, cellElement.id + '_content', panelContainer);
2702
- if (!this.isBlazor) {
2703
- cellElement.appendChild(this.panelContent);
2704
- if (!panelModel.enabled) {
2705
- this.disablePanel(cellElement);
2706
- }
2607
+ cellElement.appendChild(this.panelContent);
2608
+ if (!panelModel.enabled) {
2609
+ this.disablePanel(cellElement);
2707
2610
  }
2708
2611
  if (panelModel.header) {
2709
2612
  const headerTemplateElement = cellElement.querySelector('.e-panel-header') ?
2710
2613
  cellElement.querySelector('.e-panel-header') : this.createSubElement([], cellElement.id + 'template', '');
2711
- if (!this.isBlazor) {
2712
- addClass([headerTemplateElement], [header]);
2713
- }
2714
- if (!cellElement.querySelector('.e-panel-header') && !this.isBlazor) {
2614
+ addClass([headerTemplateElement], [header]);
2615
+ if (!cellElement.querySelector('.e-panel-header')) {
2715
2616
  const id = this.element.id + 'HeaderTemplate' + panelId;
2716
2617
  this.renderTemplate(panelModel.header, headerTemplateElement, id, isStringTemplate, 'header');
2717
2618
  this.panelContent.appendChild(headerTemplateElement);
2718
2619
  this.renderReactTemplates();
2719
- updateBlazorTemplate(id, 'HeaderTemplate', panelModel);
2720
2620
  }
2721
2621
  }
2722
2622
  if (panelModel.content) {
@@ -2727,12 +2627,11 @@ let DashboardLayout = class DashboardLayout extends Component {
2727
2627
  window.getComputedStyle(this.panelContent.querySelector('.e-panel-header')).height : '0px';
2728
2628
  const contentHeightValue = 'calc( 100% - ' + headerHeight + ')';
2729
2629
  setStyleAttribute(this.panelBody, { height: contentHeightValue });
2730
- if (!cellElement.querySelector('.e-panel-content') && !this.isBlazor) {
2630
+ if (!cellElement.querySelector('.e-panel-content')) {
2731
2631
  const id = this.element.id + 'ContentTemplate' + panelId;
2732
2632
  this.renderTemplate(panelModel.content, this.panelBody, id, isStringTemplate, 'content');
2733
2633
  this.panelContent.appendChild(this.panelBody);
2734
2634
  this.renderReactTemplates();
2735
- updateBlazorTemplate(id, 'ContentTemplate', panelModel);
2736
2635
  }
2737
2636
  }
2738
2637
  return cellElement;
@@ -2988,7 +2887,6 @@ let DashboardLayout = class DashboardLayout extends Component {
2988
2887
  if (isNullOrUndefined(this.downTarget)) {
2989
2888
  return;
2990
2889
  }
2991
- this.updateServerPanelData();
2992
2890
  this.upTarget = this.downTarget;
2993
2891
  const el = closest((this.upTarget), '.e-panel');
2994
2892
  const args = { event: e, element: el, isInteracted: true };
@@ -3265,18 +3163,9 @@ let DashboardLayout = class DashboardLayout extends Component {
3265
3163
  panelElement.style.height = '' + updatedHeight + 'px';
3266
3164
  }
3267
3165
  this.resizeHeight = true;
3268
- if (this.addPanelCalled && this.isBlazor) {
3269
- const panelProp = this.getActualProperties(updatedPanel[i]);
3270
- panelProp.row = i;
3271
- panelProp.col = 0;
3272
- this.panelPropertyChange(updatedPanel[i], panelProp);
3273
- this.setPanelPosition(panelElement, i, 0);
3274
- }
3275
- else {
3276
- this.panelPropertyChange(updatedPanel[i], { row: i, col: 0 });
3277
- this.setPanelPosition(panelElement, updatedPanel[i].row, updatedPanel[i].col);
3278
- this.panelsSizeY = this.panelsSizeY + updatedPanel[i].sizeY;
3279
- }
3166
+ this.panelPropertyChange(updatedPanel[i], { row: i, col: 0 });
3167
+ this.setPanelPosition(panelElement, updatedPanel[i].row, updatedPanel[i].col);
3168
+ this.panelsSizeY = this.panelsSizeY + updatedPanel[i].sizeY;
3280
3169
  this.setClasses(this.panelCollection);
3281
3170
  this.checkDragging(this.dragCollection);
3282
3171
  this.removeResizeClasses(this.panelCollection);
@@ -3328,40 +3217,24 @@ let DashboardLayout = class DashboardLayout extends Component {
3328
3217
  if (isUndefined(panel.enabled)) {
3329
3218
  panel.enabled = true;
3330
3219
  }
3331
- if (this.isBlazor) {
3332
- cellElement = document.getElementById(panel.id);
3333
- }
3334
- else {
3335
- if (this.contentTemplateChild.length > 0 && !isNullOrUndefined(index)) {
3336
- cellElement = this.contentTemplateChild[index];
3337
- if (panel.cssClass) {
3338
- addClass([cellElement], [panel.cssClass]);
3339
- }
3340
- if (panel.id) {
3341
- cellElement.setAttribute('id', panel.id);
3342
- }
3220
+ if (this.contentTemplateChild.length > 0 && !isNullOrUndefined(index)) {
3221
+ cellElement = this.contentTemplateChild[index];
3222
+ if (panel.cssClass) {
3223
+ addClass([cellElement], [panel.cssClass]);
3343
3224
  }
3344
- else {
3345
- cellElement = this.createPanelElement(panel.cssClass ? panel.cssClass.split(' ') : null, panel.id);
3225
+ if (panel.id) {
3226
+ cellElement.setAttribute('id', panel.id);
3346
3227
  }
3347
- cellElement.style.zIndex = '' + panel.zIndex;
3348
- this.element.appendChild(cellElement);
3349
- this.renderReactTemplates();
3350
- }
3351
- const dashBoardCell = this.renderPanels(cellElement, panel, panel.id, isStringTemplate);
3352
- this.panelCollection.push(dashBoardCell);
3353
- if (!this.isBlazor) {
3354
- this.setXYAttributes(cellElement, panel);
3355
3228
  }
3356
3229
  else {
3357
- const bodyElement = cellElement.querySelector('.e-panel-content');
3358
- if (bodyElement) {
3359
- const headerHeight = cellElement.querySelector('.e-panel-header') ?
3360
- window.getComputedStyle(cellElement.querySelector('.e-panel-header')).height : '0px';
3361
- const contentHeightValue = 'calc( 100% - ' + headerHeight + ')';
3362
- setStyleAttribute(bodyElement, { height: contentHeightValue });
3363
- }
3230
+ cellElement = this.createPanelElement(panel.cssClass ? panel.cssClass.split(' ') : null, panel.id);
3364
3231
  }
3232
+ cellElement.style.zIndex = '' + panel.zIndex;
3233
+ this.element.appendChild(cellElement);
3234
+ this.renderReactTemplates();
3235
+ const dashBoardCell = this.renderPanels(cellElement, panel, panel.id, isStringTemplate);
3236
+ this.panelCollection.push(dashBoardCell);
3237
+ this.setXYAttributes(cellElement, panel);
3365
3238
  this.setHeightAndWidth(cellElement, panel);
3366
3239
  return cellElement;
3367
3240
  }
@@ -3431,7 +3304,6 @@ let DashboardLayout = class DashboardLayout extends Component {
3431
3304
  }
3432
3305
  }
3433
3306
  panelPropertyChange(panel, value) {
3434
- this.allowServerDataBinding = false;
3435
3307
  // eslint-disable-next-line
3436
3308
  panel.setProperties(value, true);
3437
3309
  }
@@ -3439,20 +3311,16 @@ let DashboardLayout = class DashboardLayout extends Component {
3439
3311
  if (this.element.querySelectorAll('.e-panel').length > 0 || this.panels.length > 0) {
3440
3312
  for (let j = 0; j < cells.length; j++) {
3441
3313
  this.gridPanelCollection.push(cells[j]);
3442
- if (!(this.isBlazor && this.panels.length > 0)) {
3443
- this.setMinMaxValues(cells[j]);
3444
- }
3314
+ this.setMinMaxValues(cells[j]);
3445
3315
  if (this.maxColumnValue < cells[j].col || this.maxColumnValue < (cells[j].col + cells[j].sizeX)) {
3446
3316
  this.panelPropertyChange(cells[j], { col: this.maxColumnValue - cells[j].sizeX });
3447
3317
  }
3448
3318
  const cell = this.renderCell(cells[j], false, j);
3449
- if (!this.isBlazor) {
3450
- if (this.enableRtl) {
3451
- addClass([cell], 'e-rtl');
3452
- }
3453
- this.element.appendChild(cell);
3454
- this.renderReactTemplates();
3319
+ if (this.enableRtl) {
3320
+ addClass([cell], 'e-rtl');
3455
3321
  }
3322
+ this.element.appendChild(cell);
3323
+ this.renderReactTemplates();
3456
3324
  if (this.checkMediaQuery() && j === cells.length - 1) {
3457
3325
  this.checkMediaQuerySizing();
3458
3326
  }
@@ -4375,7 +4243,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4375
4243
  const panelInstance = this.getCellInstance(args.element.id);
4376
4244
  this.setPanelPosition(args.element, panelInstance.row, panelInstance.col);
4377
4245
  this.updatePanels();
4378
- this.updateServerPanelData();
4379
4246
  this.updateCloneArrayObject();
4380
4247
  this.checkForChanges(true);
4381
4248
  this.dragStopEventArgs = { event: args.event, element: args.element };
@@ -4421,9 +4288,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4421
4288
  onDraggingStart(args) {
4422
4289
  const dragArgs = args;
4423
4290
  this.trigger('dragStart', dragArgs, (dragArgs) => {
4424
- if (isBlazor()) {
4425
- dragArgs.bindEvents(args.element);
4426
- }
4427
4291
  });
4428
4292
  this.panelsInitialModel = this.cloneModels(this.panels);
4429
4293
  this.mainElement = args.element;
@@ -4595,7 +4459,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4595
4459
  */
4596
4460
  addPanel(panel) {
4597
4461
  this.panelsSizeY = 0;
4598
- this.allowServerDataBinding = false;
4599
4462
  this.maxCol();
4600
4463
  if (!panel.minSizeX) {
4601
4464
  panel.minSizeX = 1;
@@ -4623,9 +4486,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4623
4486
  this.addPanelCalled = true;
4624
4487
  if (this.checkMediaQuery()) {
4625
4488
  this.checkMediaQuerySizing();
4626
- if (this.isBlazor) {
4627
- cell.style.removeProperty('visibility');
4628
- }
4629
4489
  this.removeResizeClasses(this.panelCollection);
4630
4490
  }
4631
4491
  else {
@@ -4634,9 +4494,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4634
4494
  this.checkCollision = [];
4635
4495
  }
4636
4496
  this.setPanelPosition(cell, panelProp.row, panelProp.col);
4637
- if (this.isBlazor) {
4638
- cell.style.removeProperty('visibility');
4639
- }
4640
4497
  this.updatePanelLayout(cell, panelProp);
4641
4498
  }
4642
4499
  this.addPanelCalled = false;
@@ -4662,8 +4519,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4662
4519
  }
4663
4520
  }
4664
4521
  this.checkForChanges(false, [panelProp]);
4665
- this.allowServerDataBinding = true;
4666
- this.serverDataBind();
4667
4522
  }
4668
4523
  /**
4669
4524
  * Allows to update a panel in the DashboardLayout.
@@ -4772,7 +4627,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4772
4627
  this.clearTemplate();
4773
4628
  }
4774
4629
  this.removeAllPanel();
4775
- this.updateServerPanelData();
4776
4630
  this.rows = 0;
4777
4631
  this.gridPanelCollection = [];
4778
4632
  this.setHeightWidth();
@@ -4821,7 +4675,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4821
4675
  this.checkMediaQuerySizing();
4822
4676
  this.isPanelRemoved = false;
4823
4677
  }
4824
- this.updateServerPanelData();
4825
4678
  this.gridPanelCollection.forEach((item) => {
4826
4679
  if (item.id === id) {
4827
4680
  this.gridPanelCollection.splice(this.gridPanelCollection.indexOf(item), 1);
@@ -4865,7 +4718,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4865
4718
  this.updatePanelLayout(ele, panelInstance);
4866
4719
  this.updateRowHeight();
4867
4720
  this.updatePanels();
4868
- this.updateServerPanelData();
4869
4721
  this.updateCloneArrayObject();
4870
4722
  this.mainElement = null;
4871
4723
  if (this.allowFloating) {
@@ -4928,7 +4780,6 @@ let DashboardLayout = class DashboardLayout extends Component {
4928
4780
  this.setHeightAndWidth(ele, panelInstance);
4929
4781
  this.updatePanelLayout(ele, panelInstance);
4930
4782
  this.updatePanels();
4931
- this.updateServerPanelData();
4932
4783
  this.updateRowHeight();
4933
4784
  this.resizeCalled = false;
4934
4785
  this.trigger('resizeStop', args);
@@ -4990,12 +4841,10 @@ let DashboardLayout = class DashboardLayout extends Component {
4990
4841
  if (this.table) {
4991
4842
  this.table.remove();
4992
4843
  }
4993
- this.isBlazor = false;
4994
4844
  this.initialize();
4995
4845
  if (this.checkMediaQuery()) {
4996
4846
  this.refresh();
4997
4847
  }
4998
- this.isBlazor = (isBlazor() && this.isServerRendered);
4999
4848
  if (this.showGridLines) {
5000
4849
  this.initGridLines();
5001
4850
  }