@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
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
- import { Component, Property, setStyleAttribute, ChildProperty, compile, isBlazor } from '@syncfusion/ej2-base';
20
+ import { Component, Property, setStyleAttribute, ChildProperty, compile } from '@syncfusion/ej2-base';
21
21
  import { NotifyPropertyChanges, addClass, Collection, isNullOrUndefined } from '@syncfusion/ej2-base';
22
22
  import { Event, EventHandler, selectAll, removeClass, select, Browser, detach, formatUnit } from '@syncfusion/ej2-base';
23
23
  import { SanitizeHtmlHelper, extend } from '@syncfusion/ej2-base';
@@ -263,11 +263,9 @@ var Splitter = /** @class */ (function (_super) {
263
263
  this.onReportWindowSize = this.reportWindowSize.bind(this);
264
264
  this.wrapper = this.element.cloneNode(true);
265
265
  this.wrapperParent = this.element.parentElement;
266
- if (!this.checkBlazor()) {
267
- removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
268
- var orientation_1 = this.orientation === 'Horizontal' ? HORIZONTAL_PANE : VERTICAL_PANE;
269
- addClass([this.element], orientation_1);
270
- }
266
+ removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
267
+ var orientation = this.orientation === 'Horizontal' ? HORIZONTAL_PANE : VERTICAL_PANE;
268
+ addClass([this.element], orientation);
271
269
  var name = Browser.info.name;
272
270
  var css = (name === 'msie') ? 'e-ie' : '';
273
271
  this.setCssClass(this.element, css);
@@ -294,19 +292,15 @@ var Splitter = /** @class */ (function (_super) {
294
292
  * @private
295
293
  */
296
294
  Splitter.prototype.render = function () {
297
- if (!this.checkBlazor()) {
298
- this.checkDataAttributes();
299
- this.setCssClass(this.element, this.cssClass);
300
- this.isEnabled(this.enabled);
301
- this.setDimension(this.getHeight(this.element), this.getWidth(this.element));
302
- }
295
+ this.checkDataAttributes();
296
+ this.setCssClass(this.element, this.cssClass);
297
+ this.isEnabled(this.enabled);
298
+ this.setDimension(this.getHeight(this.element), this.getWidth(this.element));
303
299
  this.createSplitPane(this.element);
304
300
  this.addSeparator(this.element);
305
301
  this.getPanesDimensions();
306
302
  this.setPaneSettings();
307
- if (!this.checkBlazor()) {
308
- this.setRTL(this.enableRtl);
309
- }
303
+ this.setRTL(this.enableRtl);
310
304
  if (this.enableReversePanes) {
311
305
  this.setReversePane();
312
306
  }
@@ -334,11 +328,15 @@ var Splitter = /** @class */ (function (_super) {
334
328
  this.totalPercent = previousFlexBasis + nextFlexBasis;
335
329
  this.totalWidth = this.convertPercentageToPixel(this.totalPercent + '%');
336
330
  if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
337
- if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0) {
331
+ if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
332
+ (this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) <
333
+ this.convertPercentageToPixel((nextFlexBasis - 1) + '%'))) {
338
334
  this.previousPane.style.flexBasis = (previousFlexBasis + 1) + '%';
339
335
  this.nextPane.style.flexBasis = (nextFlexBasis - 1) + '%';
340
336
  }
341
- else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0) {
337
+ else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
338
+ (this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) <
339
+ this.convertPercentageToPixel((previousFlexBasis - 1) + '%'))) {
342
340
  this.previousPane.style.flexBasis = (previousFlexBasis - 1) + '%';
343
341
  this.nextPane.style.flexBasis = (nextFlexBasis + 1) + '%';
344
342
  }
@@ -348,13 +346,15 @@ var Splitter = /** @class */ (function (_super) {
348
346
  this.totalWidth = (this.orientation === 'Horizontal') ? this.previousPane.offsetWidth + this.nextPane.offsetWidth :
349
347
  this.previousPane.offsetHeight + this.nextPane.offsetHeight;
350
348
  if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
351
- if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0) {
349
+ if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
350
+ (this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) < (nextPaneSize + splitBarSize))) {
352
351
  this.addStaticPaneClass();
353
352
  this.previousPane.style.flexBasis = (prePaneSize + splitBarSize) + 'px';
354
353
  this.nextPane.style.flexBasis = (nextPaneSize < splitBarSize) ? '0px' :
355
354
  (nextPaneSize - splitBarSize) + 'px';
356
355
  }
357
- else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0) {
356
+ else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
357
+ (this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) < (prePaneSize - splitBarSize))) {
358
358
  this.addStaticPaneClass();
359
359
  this.previousPane.style.flexBasis = (prePaneSize < splitBarSize) ? '0px' :
360
360
  (prePaneSize - splitBarSize) + 'px';
@@ -375,11 +375,12 @@ var Splitter = /** @class */ (function (_super) {
375
375
  && (!isPrevpaneExpanded && !isNextpaneCollapsed && !isPrevpaneCollapsed || (isPrevpaneExpanded) && !isNextpaneCollapsed) &&
376
376
  document.activeElement.classList.contains(SPLIT_BAR) && (this.paneSettings[index].resizable &&
377
377
  this.paneSettings[index + 1].resizable)) {
378
+ event.preventDefault();
378
379
  this.checkPaneSize(event);
379
380
  this.triggerResizing(event);
380
381
  }
381
382
  else if (event.keyCode === 13 && this.paneSettings[index].collapsible &&
382
- document.activeElement.classList.contains(SPLIT_BAR)) {
383
+ document.activeElement.classList.contains(SPLIT_BAR) && this.currentSeparator.classList.contains(SPLIT_BAR_ACTIVE)) {
383
384
  if (!this.previousPane.classList.contains(COLLAPSE_PANE)) {
384
385
  this.collapse(index);
385
386
  addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
@@ -391,6 +392,18 @@ var Splitter = /** @class */ (function (_super) {
391
392
  }
392
393
  }
393
394
  };
395
+ Splitter.prototype.getMinInPixel = function (minValue) {
396
+ var min;
397
+ if (isNullOrUndefined(minValue)) {
398
+ return 0;
399
+ }
400
+ var paneMinRange = this.convertPixelToNumber(minValue.toString());
401
+ if (minValue.indexOf('%') > 0) {
402
+ paneMinRange = this.convertPercentageToPixel(minValue);
403
+ }
404
+ min = this.convertPixelToNumber((paneMinRange).toString());
405
+ return min;
406
+ };
394
407
  /**
395
408
  * @param {string} value - specifies the string value
396
409
  * @returns {string} returns the string
@@ -464,9 +477,6 @@ var Splitter = /** @class */ (function (_super) {
464
477
  });
465
478
  this.restoreElem();
466
479
  };
467
- Splitter.prototype.checkBlazor = function () {
468
- return isBlazor() && this.isServerRendered;
469
- };
470
480
  Splitter.prototype.setPaneSettings = function () {
471
481
  var childCount = this.allPanes.length;
472
482
  var paneCollection = [];
@@ -866,52 +876,20 @@ var Splitter = /** @class */ (function (_super) {
866
876
  this.isResizable() ? this.allPanes[index].classList.add(RESIZABLE_PANE) : this.allPanes[index].classList.remove(RESIZABLE_PANE);
867
877
  };
868
878
  Splitter.prototype.addSeparator = function (target) {
869
- var _this = this;
870
879
  var childCount = this.allPanes.length;
871
880
  var clonedEle = target.children;
872
881
  var separator;
873
882
  var proxy;
874
- if (this.checkBlazor()) {
875
- for (var j = 0; j < this.element.children.length; j++) {
876
- if (this.element.children[j].classList.contains(SPLIT_BAR)) {
877
- this.allBars.push(this.element.children[j]);
878
- }
879
- }
880
- }
881
883
  for (var i = 0; i < childCount; i++) {
882
884
  if (i < childCount - 1) {
883
- if (!this.checkBlazor()) {
884
- separator = this.createSeparator(i);
885
- setStyleAttribute(separator, { 'order': (i * 2) + 1 });
886
- this.separatorOrder.push((i * 2) + 1);
887
- clonedEle[i].parentNode.appendChild(separator);
888
- this.currentSeparator = separator;
889
- separator.setAttribute('role', 'separator');
890
- separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
891
- }
892
- if (this.checkBlazor()) {
893
- proxy = this;
894
- separator = this.allBars[i];
895
- this.updateIconClass();
896
- }
897
- if (!this.checkBlazor()) {
898
- this.wireClickEvents();
899
- }
900
- if (this.checkBlazor() && !isNullOrUndefined(separator)) {
901
- this.currentSeparator = separator;
902
- this.addMouseActions(separator);
903
- this.wireClickEvents();
904
- separator.addEventListener('focus', function () {
905
- if (document.activeElement.classList.contains('e-split-bar')) {
906
- proxy.currentSeparator = document.activeElement;
907
- proxy.currentSeparator.classList.add(SPLIT_BAR_ACTIVE);
908
- }
909
- _this.getPaneDetails();
910
- });
911
- separator.addEventListener('blur', function () {
912
- proxy.currentSeparator.classList.remove(SPLIT_BAR_ACTIVE);
913
- });
914
- }
885
+ separator = this.createSeparator(i);
886
+ setStyleAttribute(separator, { 'order': (i * 2) + 1 });
887
+ this.separatorOrder.push((i * 2) + 1);
888
+ clonedEle[i].parentNode.appendChild(separator);
889
+ this.currentSeparator = separator;
890
+ separator.setAttribute('role', 'separator');
891
+ separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
892
+ this.wireClickEvents();
915
893
  if (!isNullOrUndefined(separator)) {
916
894
  if (this.isResizable()) {
917
895
  EventHandler.add(separator, 'mousedown', this.onMouseDown, this);
@@ -1073,7 +1051,7 @@ var Splitter = /** @class */ (function (_super) {
1073
1051
  var updatePane = void 0;
1074
1052
  var flexPane = void 0;
1075
1053
  for (var i = 0; i < paneCount; i++) {
1076
- if (this.paneSettings[i].min !== null) {
1054
+ if (!isNullOrUndefined(this.paneSettings[i].min)) {
1077
1055
  paneMinRange = this.convertPixelToNumber((this.paneSettings[i].min).toString());
1078
1056
  if (this.paneSettings[i].min.indexOf('%') > 0) {
1079
1057
  paneMinRange = this.convertPercentageToPixel(this.paneSettings[i].min);
@@ -1370,13 +1348,7 @@ var Splitter = /** @class */ (function (_super) {
1370
1348
  }
1371
1349
  };
1372
1350
  Splitter.prototype.beforeAction = function (e) {
1373
- var eventArgs = isBlazor() ? {
1374
- element: this.element,
1375
- event: e,
1376
- index: [this.prevPaneIndex, this.nextPaneIndex],
1377
- separator: this.currentSeparator,
1378
- cancel: false
1379
- } : {
1351
+ var eventArgs = {
1380
1352
  element: this.element,
1381
1353
  event: e,
1382
1354
  pane: [this.previousPane, this.nextPane],
@@ -1475,12 +1447,7 @@ var Splitter = /** @class */ (function (_super) {
1475
1447
  }
1476
1448
  };
1477
1449
  Splitter.prototype.afterAction = function (e) {
1478
- var eventArgs = isBlazor() ? {
1479
- element: this.element,
1480
- event: e,
1481
- index: [this.prevPaneIndex, this.nextPaneIndex],
1482
- separator: this.currentSeparator
1483
- } : {
1450
+ var eventArgs = {
1484
1451
  element: this.element,
1485
1452
  event: e,
1486
1453
  pane: [this.previousPane, this.nextPane],
@@ -1493,10 +1460,6 @@ var Splitter = /** @class */ (function (_super) {
1493
1460
  this.currentBarIndex = this.getOrderIndex(parseInt(e.target.parentElement.style.order, 10), 'splitbar');
1494
1461
  };
1495
1462
  Splitter.prototype.getSeparatorIndex = function (target) {
1496
- var separator = this.orientation === 'Horizontal' ? SPLIT_H_BAR : SPLIT_V_BAR;
1497
- if (this.checkBlazor() && this.allBars.length < 1) {
1498
- this.allBars = selectAll('.' + separator, this.element);
1499
- }
1500
1463
  var array = [].slice.call(this.allBars);
1501
1464
  array = this.enableReversePanes ? array.reverse() : array;
1502
1465
  return array.indexOf(target);
@@ -1526,13 +1489,7 @@ var Splitter = /** @class */ (function (_super) {
1526
1489
  this.getPaneDetails();
1527
1490
  };
1528
1491
  Splitter.prototype.triggerResizing = function (e) {
1529
- var eventArgs = isBlazor() ? {
1530
- element: this.element,
1531
- event: e,
1532
- index: [this.prevPaneIndex, this.nextPaneIndex],
1533
- paneSize: [this.prePaneDimenson, this.nextPaneDimension],
1534
- separator: this.currentSeparator
1535
- } : {
1492
+ var eventArgs = {
1536
1493
  element: this.element,
1537
1494
  event: e,
1538
1495
  pane: [this.previousPane, this.nextPane],
@@ -1553,13 +1510,7 @@ var Splitter = /** @class */ (function (_super) {
1553
1510
  addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
1554
1511
  this.updateCursorPosition(e, 'previous');
1555
1512
  this.getPaneDetails();
1556
- var eventArgs = isBlazor() ? {
1557
- element: this.element,
1558
- event: e,
1559
- index: [this.getPreviousPaneIndex(), this.getNextPaneIndex()],
1560
- separator: this.currentSeparator,
1561
- cancel: false
1562
- } : {
1513
+ var eventArgs = {
1563
1514
  element: this.element,
1564
1515
  event: e,
1565
1516
  pane: [this.previousPane, this.nextPane],
@@ -1944,13 +1895,7 @@ var Splitter = /** @class */ (function (_super) {
1944
1895
  Splitter.prototype.onMouseUp = function (e) {
1945
1896
  removeClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
1946
1897
  this.unwireResizeEvents();
1947
- var eventArgs = isBlazor() ? {
1948
- event: e,
1949
- element: this.element,
1950
- index: [this.prevPaneIndex, this.nextPaneIndex],
1951
- separator: this.currentSeparator,
1952
- paneSize: [this.prePaneDimenson, this.nextPaneDimension]
1953
- } : {
1898
+ var eventArgs = {
1954
1899
  event: e,
1955
1900
  element: this.element,
1956
1901
  pane: [this.previousPane, this.nextPane],
@@ -2054,12 +1999,7 @@ var Splitter = /** @class */ (function (_super) {
2054
1999
  }
2055
2000
  var templateFUN;
2056
2001
  if (!isNullOrUndefined(templateFn)) {
2057
- if (isBlazor() && !this.isStringTemplate) {
2058
- templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), this.isStringTemplate);
2059
- }
2060
- else {
2061
- templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), true);
2062
- }
2002
+ templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), true);
2063
2003
  }
2064
2004
  if (!isNullOrUndefined(templateFn) && templateFUN && templateFUN.length > 0) {
2065
2005
  [].slice.call(templateFUN).forEach(function (el) {
@@ -2073,13 +2013,11 @@ var Splitter = /** @class */ (function (_super) {
2073
2013
  };
2074
2014
  Splitter.prototype.createSplitPane = function (target) {
2075
2015
  var childCount = target.children.length;
2076
- if (!this.checkBlazor()) {
2077
- for (var i = 0; i < this.paneSettings.length; i++) {
2078
- if (childCount < this.paneSettings.length) {
2079
- var childElement = this.createElement('div');
2080
- this.element.appendChild(childElement);
2081
- childCount = childCount + 1;
2082
- }
2016
+ for (var i = 0; i < this.paneSettings.length; i++) {
2017
+ if (childCount < this.paneSettings.length) {
2018
+ var childElement = this.createElement('div');
2019
+ this.element.appendChild(childElement);
2020
+ childCount = childCount + 1;
2083
2021
  }
2084
2022
  }
2085
2023
  childCount = target.children.length;
@@ -2089,30 +2027,23 @@ var Splitter = /** @class */ (function (_super) {
2089
2027
  for (var i = 0; i < childCount; i++) {
2090
2028
  // To accept only div and span element as pane
2091
2029
  if (child[i].nodeName === 'DIV' || child[i].nodeName === 'SPAN') {
2092
- if (this.checkBlazor() && child[i].classList.contains(PANE)) {
2093
- this.allPanes.push(child[i]);
2030
+ this.allPanes.push(child[i]);
2031
+ if (this.orientation === 'Horizontal') {
2032
+ addClass([child[i]], [PANE, SPLIT_H_PANE, SCROLL_PANE]);
2033
+ this.panesDimension(i, child);
2094
2034
  }
2095
- else if (!this.checkBlazor()) {
2096
- this.allPanes.push(child[i]);
2035
+ else {
2036
+ addClass([child[i]], [PANE, SPLIT_V_PANE, SCROLL_PANE]);
2037
+ this.panesDimension(i, child);
2097
2038
  }
2098
- if (!this.checkBlazor()) {
2099
- if (this.orientation === 'Horizontal') {
2100
- addClass([child[i]], [PANE, SPLIT_H_PANE, SCROLL_PANE]);
2101
- this.panesDimension(i, child);
2102
- }
2103
- else {
2104
- addClass([child[i]], [PANE, SPLIT_V_PANE, SCROLL_PANE]);
2105
- this.panesDimension(i, child);
2106
- }
2107
- if (!isNullOrUndefined(this.paneSettings[i]) && !isNullOrUndefined(this.paneSettings[i].content)) {
2108
- this.setTemplate(this.paneSettings[i].content, child[i]);
2109
- }
2110
- if (!isNullOrUndefined(this.paneSettings[i]) && this.paneSettings[i].cssClass) {
2111
- this.setCssClass(child[i], this.paneSettings[i].cssClass);
2112
- }
2113
- if (!isNullOrUndefined(this.paneSettings[i])) {
2114
- this.paneCollapsible(child[i], i);
2115
- }
2039
+ if (!isNullOrUndefined(this.paneSettings[i]) && !isNullOrUndefined(this.paneSettings[i].content)) {
2040
+ this.setTemplate(this.paneSettings[i].content, child[i]);
2041
+ }
2042
+ if (!isNullOrUndefined(this.paneSettings[i]) && this.paneSettings[i].cssClass) {
2043
+ this.setCssClass(child[i], this.paneSettings[i].cssClass);
2044
+ }
2045
+ if (!isNullOrUndefined(this.paneSettings[i])) {
2046
+ this.paneCollapsible(child[i], i);
2116
2047
  }
2117
2048
  }
2118
2049
  }
@@ -2145,24 +2076,15 @@ var Splitter = /** @class */ (function (_super) {
2145
2076
  */
2146
2077
  Splitter.prototype.destroy = function () {
2147
2078
  if (!this.isDestroyed) {
2148
- if (!this.checkBlazor()) {
2149
- _super.prototype.destroy.call(this);
2150
- }
2079
+ _super.prototype.destroy.call(this);
2151
2080
  EventHandler.remove(document, 'touchstart click', this.onDocumentClick);
2081
+ this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
2152
2082
  while (this.element.attributes.length > 0) {
2153
2083
  this.element.removeAttribute(this.element.attributes[0].name);
2154
2084
  }
2155
- if (this.checkBlazor()) {
2156
- var splitNodes = this.element.children;
2157
- for (var i = splitNodes.length - 1; i >= 0; i--) {
2158
- detach(splitNodes[i]);
2159
- }
2160
- }
2161
- else {
2162
- this.element.innerHTML = this.wrapper.innerHTML;
2163
- for (var i = 0; i < this.wrapper.attributes.length; i++) {
2164
- this.element.setAttribute(this.wrapper.attributes[i].name, this.wrapper.attributes[i].value);
2165
- }
2085
+ this.element.innerHTML = this.wrapper.innerHTML;
2086
+ for (var i = 0; i < this.wrapper.attributes.length; i++) {
2087
+ this.element.setAttribute(this.wrapper.attributes[i].name, this.wrapper.attributes[i].value);
2166
2088
  }
2167
2089
  if (this.refreshing) {
2168
2090
  addClass([this.element], ['e-control', 'e-lib', ROOT]);
@@ -0,0 +1 @@
1
+ @import './bootstrap5-definition.scss';
@@ -0,0 +1,25 @@
1
+ // Avatar Base
2
+ $avatar-base-border-radius: 2px !default;
3
+ $avatar-base-background-color: $content-bg-color-alt3 !default;
4
+ $avatar-base-font-size: $text-sm !default;
5
+ $avatar-base-width: 40px !default;
6
+ $avatar-base-height: 40px !default;
7
+ $avatar-base-line-height: 22px !default;
8
+ $avatar-base-text-color: $icon-color !default;
9
+ $avatar-base-font-weight: $font-weight-medium !default;
10
+ $avatar-base-img-height: 100% !default;
11
+
12
+ // Circle Avatar
13
+ $avatar-circle-border-radius: 50% !default;
14
+
15
+ // Avatar size
16
+ $avatar-xsmall-font-size: $text-xxs !default;
17
+ $avatar-small-font-size: $text-xs !default;
18
+ $avatar-large-font-size: $text-lg !default;
19
+ $avatar-xlarge-font-size: $text-xl !default;
20
+
21
+ // Avatar Line Height
22
+ $avatar-base-xsmall-line-height: 16px !default;
23
+ $avatar-base-small-line-height: 18px !default;
24
+ $avatar-base-large-line-height: 28px !default;
25
+ $avatar-base-xlarge-line-height: 28px !default;
@@ -17,7 +17,7 @@
17
17
  overflow: hidden;
18
18
  position: relative;
19
19
  width: $avatar-base-width;
20
- @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark') {
20
+ @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark' or $skin-name == 'bootstrap5') {
21
21
  line-height: $avatar-base-line-height;
22
22
  }
23
23
 
@@ -32,7 +32,7 @@
32
32
 
33
33
  &.e-avatar-xsmall {
34
34
  font-size: $avatar-xsmall-font-size;
35
- @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark') {
35
+ @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark' or $skin-name == 'bootstrap5') {
36
36
  height: 24px;
37
37
  line-height: $avatar-base-xsmall-line-height;
38
38
  width: 24px;
@@ -41,7 +41,7 @@
41
41
 
42
42
  &.e-avatar-small {
43
43
  font-size: $avatar-small-font-size;
44
- @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark') {
44
+ @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark' or $skin-name == 'bootstrap5') {
45
45
  height: 32px;
46
46
  line-height: $avatar-base-small-line-height;
47
47
  width: 32px;
@@ -50,7 +50,7 @@
50
50
 
51
51
  &.e-avatar-large {
52
52
  font-size: $avatar-large-font-size;
53
- @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark') {
53
+ @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark' or $skin-name == 'bootstrap5') {
54
54
  height: 48px;
55
55
  line-height: $avatar-base-large-line-height;
56
56
  width: 48px;
@@ -59,7 +59,7 @@
59
59
 
60
60
  &.e-avatar-xlarge {
61
61
  font-size: $avatar-xlarge-font-size;
62
- @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark') {
62
+ @if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark'or $skin-name == 'bootstrap5') {
63
63
  height: 56px;
64
64
  line-height: $avatar-base-xlarge-line-height;
65
65
  width: 56px;
@@ -1,25 +1 @@
1
- // Avatar Base
2
- $avatar-base-border-radius: 4px !default;
3
- $avatar-base-background-color: $content-bg-color-alt3 !default;
4
- $avatar-base-font-size: $text-sm !default;
5
- $avatar-base-width: 40px !default;
6
- $avatar-base-height: 40px !default;
7
- $avatar-base-line-height: 22px !default;
8
- $avatar-base-text-color: $content-text-color-alt2 !default;
9
- $avatar-base-font-weight: $font-weight-medium !default;
10
- $avatar-base-img-height: 100% !default;
11
-
12
- // Circle Avatar
13
- $avatar-circle-border-radius: 50% !default;
14
-
15
- // Avatar size
16
- $avatar-xsmall-font-size: $text-xxs !default;
17
- $avatar-small-font-size: $text-xs !default;
18
- $avatar-large-font-size: $text-lg !default;
19
- $avatar-xlarge-font-size: $text-xl !default;
20
-
21
- // Avatar Line Height
22
- $avatar-base-xsmall-line-height: 16px !default;
23
- $avatar-base-small-line-height: 18px !default;
24
- $avatar-base-large-line-height: 28px !default;
25
- $avatar-base-xlarge-line-height: 28px !default;
1
+ @import './tailwind-definition.scss';
@@ -0,0 +1,61 @@
1
+ .e-avatar {
2
+ -ms-flex-line-pack: center;
3
+ align-content: center;
4
+ -ms-flex-align: center;
5
+ align-items: center;
6
+ background-color: #495057;
7
+ background-position: center;
8
+ background-repeat: no-repeat;
9
+ background-size: cover;
10
+ border-radius: 2px;
11
+ color: #adb5bd;
12
+ display: -ms-inline-flexbox;
13
+ display: inline-flex;
14
+ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
15
+ font-size: 14px;
16
+ font-weight: 500;
17
+ height: 40px;
18
+ -ms-flex-pack: center;
19
+ justify-content: center;
20
+ overflow: hidden;
21
+ position: relative;
22
+ width: 40px;
23
+ line-height: 22px;
24
+ }
25
+
26
+ .e-avatar img {
27
+ height: 100%;
28
+ width: auto;
29
+ }
30
+
31
+ .e-avatar.e-avatar-circle {
32
+ border-radius: 50%;
33
+ }
34
+
35
+ .e-avatar.e-avatar-xsmall {
36
+ font-size: 10px;
37
+ height: 24px;
38
+ line-height: 16px;
39
+ width: 24px;
40
+ }
41
+
42
+ .e-avatar.e-avatar-small {
43
+ font-size: 12px;
44
+ height: 32px;
45
+ line-height: 18px;
46
+ width: 32px;
47
+ }
48
+
49
+ .e-avatar.e-avatar-large {
50
+ font-size: 18px;
51
+ height: 48px;
52
+ line-height: 28px;
53
+ width: 48px;
54
+ }
55
+
56
+ .e-avatar.e-avatar-xlarge {
57
+ font-size: 20px;
58
+ height: 56px;
59
+ line-height: 28px;
60
+ width: 56px;
61
+ }
@@ -0,0 +1,3 @@
1
+ @import 'ej2-base/styles/bootstrap5-dark-definition.scss';
2
+ @import 'bootstrap5-dark-definition.scss';
3
+ @import 'all.scss';
@@ -0,0 +1,61 @@
1
+ .e-avatar {
2
+ -ms-flex-line-pack: center;
3
+ align-content: center;
4
+ -ms-flex-align: center;
5
+ align-items: center;
6
+ background-color: #dee2e6;
7
+ background-position: center;
8
+ background-repeat: no-repeat;
9
+ background-size: cover;
10
+ border-radius: 2px;
11
+ color: #6c757d;
12
+ display: -ms-inline-flexbox;
13
+ display: inline-flex;
14
+ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
15
+ font-size: 14px;
16
+ font-weight: 500;
17
+ height: 40px;
18
+ -ms-flex-pack: center;
19
+ justify-content: center;
20
+ overflow: hidden;
21
+ position: relative;
22
+ width: 40px;
23
+ line-height: 22px;
24
+ }
25
+
26
+ .e-avatar img {
27
+ height: 100%;
28
+ width: auto;
29
+ }
30
+
31
+ .e-avatar.e-avatar-circle {
32
+ border-radius: 50%;
33
+ }
34
+
35
+ .e-avatar.e-avatar-xsmall {
36
+ font-size: 10px;
37
+ height: 24px;
38
+ line-height: 16px;
39
+ width: 24px;
40
+ }
41
+
42
+ .e-avatar.e-avatar-small {
43
+ font-size: 12px;
44
+ height: 32px;
45
+ line-height: 18px;
46
+ width: 32px;
47
+ }
48
+
49
+ .e-avatar.e-avatar-large {
50
+ font-size: 18px;
51
+ height: 48px;
52
+ line-height: 28px;
53
+ width: 48px;
54
+ }
55
+
56
+ .e-avatar.e-avatar-xlarge {
57
+ font-size: 20px;
58
+ height: 56px;
59
+ line-height: 28px;
60
+ width: 56px;
61
+ }
@@ -0,0 +1,3 @@
1
+ @import 'ej2-base/styles/bootstrap5-definition.scss';
2
+ @import 'bootstrap5-definition.scss';
3
+ @import 'all.scss';
@@ -649,6 +649,10 @@
649
649
  font-size: 14px;
650
650
  }
651
651
 
652
+ .e-splitter .e-split-bar.e-split-bar-horizontal .e-resize-handler.e-template-resize-handler::before {
653
+ content: '';
654
+ }
655
+
652
656
  .e-splitter .e-split-bar.e-split-bar-vertical .e-resize-handler::before {
653
657
  content: '\e984';
654
658
  font-family: 'e-icons';
@@ -656,6 +660,10 @@
656
660
  transform: rotate(90deg);
657
661
  }
658
662
 
663
+ .e-splitter .e-split-bar.e-split-bar-vertical .e-resize-handler.e-template-resize-handler::before {
664
+ content: '';
665
+ }
666
+
659
667
  .e-bigger .e-splitter .e-split-bar .e-resize-handler::before {
660
668
  font-size: 16px;
661
669
  }
@@ -650,6 +650,10 @@
650
650
  font-size: 14px;
651
651
  }
652
652
 
653
+ .e-splitter .e-split-bar.e-split-bar-horizontal .e-resize-handler.e-template-resize-handler::before {
654
+ content: '';
655
+ }
656
+
653
657
  .e-splitter .e-split-bar.e-split-bar-vertical .e-resize-handler::before {
654
658
  content: '\e984';
655
659
  font-family: 'e-icons';
@@ -657,6 +661,10 @@
657
661
  transform: rotate(90deg);
658
662
  }
659
663
 
664
+ .e-splitter .e-split-bar.e-split-bar-vertical .e-resize-handler.e-template-resize-handler::before {
665
+ content: '';
666
+ }
667
+
660
668
  .e-bigger .e-splitter .e-split-bar .e-resize-handler::before {
661
669
  font-size: 16px;
662
670
  }