@syncfusion/ej2-layouts 19.2.55 → 19.3.48

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 (103) hide show
  1. package/.eslintrc.json +1 -1
  2. package/CHANGELOG.md +10 -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 +84 -164
  6. package/dist/es6/ej2-layouts.es2015.js.map +1 -1
  7. package/dist/es6/ej2-layouts.es5.js +84 -165
  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.js +0 -6
  18. package/src/splitter/splitter-model.d.ts +1 -1
  19. package/src/splitter/splitter.d.ts +5 -1
  20. package/src/splitter/splitter.js +84 -158
  21. package/styles/avatar/_bootstrap5-dark-definition.scss +1 -0
  22. package/styles/avatar/_bootstrap5-definition.scss +25 -0
  23. package/styles/avatar/_layout.scss +5 -5
  24. package/styles/avatar/_tailwind-dark-definition.scss +1 -25
  25. package/styles/avatar/bootstrap5-dark.css +61 -0
  26. package/styles/avatar/bootstrap5-dark.scss +3 -0
  27. package/styles/avatar/bootstrap5.css +61 -0
  28. package/styles/avatar/bootstrap5.scss +3 -0
  29. package/styles/bootstrap-dark.css +8 -0
  30. package/styles/bootstrap.css +8 -0
  31. package/styles/bootstrap4.css +8 -0
  32. package/styles/bootstrap5-dark.css +1618 -0
  33. package/styles/bootstrap5-dark.scss +4 -0
  34. package/styles/bootstrap5.css +1618 -0
  35. package/styles/bootstrap5.scss +4 -0
  36. package/styles/card/_bootstrap5-dark-definition.scss +1 -0
  37. package/styles/card/_bootstrap5-definition.scss +119 -0
  38. package/styles/card/_fabric-dark-definition.scss +5 -18
  39. package/styles/card/_layout.scss +2 -2
  40. package/styles/card/_tailwind-dark-definition.scss +1 -122
  41. package/styles/card/_tailwind-definition.scss +5 -9
  42. package/styles/card/bootstrap5-dark.css +593 -0
  43. package/styles/card/bootstrap5-dark.scss +3 -0
  44. package/styles/card/bootstrap5.css +593 -0
  45. package/styles/card/bootstrap5.scss +3 -0
  46. package/styles/card/fabric-dark.css +12 -12
  47. package/styles/card/tailwind-dark.css +2 -3
  48. package/styles/card/tailwind.css +0 -1
  49. package/styles/dashboard-layout/_bootstrap5-dark-definition.scss +1 -0
  50. package/styles/dashboard-layout/_bootstrap5-definition.scss +109 -0
  51. package/styles/dashboard-layout/_layout.scss +14 -5
  52. package/styles/dashboard-layout/_tailwind-dark-definition.scss +1 -109
  53. package/styles/dashboard-layout/_tailwind-definition.scss +27 -28
  54. package/styles/dashboard-layout/_theme.scss +4 -4
  55. package/styles/dashboard-layout/bootstrap5-dark.css +393 -0
  56. package/styles/dashboard-layout/bootstrap5-dark.scss +4 -0
  57. package/styles/dashboard-layout/bootstrap5.css +393 -0
  58. package/styles/dashboard-layout/bootstrap5.scss +4 -0
  59. package/styles/dashboard-layout/icons/_bootstrap5-dark.scss +1 -0
  60. package/styles/dashboard-layout/icons/_bootstrap5.scss +81 -0
  61. package/styles/dashboard-layout/material-dark.css +3 -3
  62. package/styles/dashboard-layout/tailwind-dark.css +10 -8
  63. package/styles/dashboard-layout/tailwind.css +5 -3
  64. package/styles/fabric-dark.css +20 -12
  65. package/styles/fabric.css +8 -0
  66. package/styles/highcontrast-light.css +8 -0
  67. package/styles/highcontrast.css +8 -0
  68. package/styles/material-dark.css +19 -11
  69. package/styles/material.css +8 -0
  70. package/styles/splitter/_bootstrap5-dark-definition.scss +1 -0
  71. package/styles/splitter/_bootstrap5-definition.scss +26 -0
  72. package/styles/splitter/_tailwind-dark-definition.scss +1 -23
  73. package/styles/splitter/_tailwind-definition.scss +14 -11
  74. package/styles/splitter/bootstrap-dark.css +8 -0
  75. package/styles/splitter/bootstrap.css +8 -0
  76. package/styles/splitter/bootstrap4.css +8 -0
  77. package/styles/splitter/bootstrap5-dark.css +568 -0
  78. package/styles/splitter/bootstrap5-dark.scss +4 -0
  79. package/styles/splitter/bootstrap5.css +568 -0
  80. package/styles/splitter/bootstrap5.scss +4 -0
  81. package/styles/splitter/fabric-dark.css +8 -0
  82. package/styles/splitter/fabric.css +8 -0
  83. package/styles/splitter/highcontrast-light.css +8 -0
  84. package/styles/splitter/highcontrast.css +8 -0
  85. package/styles/splitter/icons/_bootstrap-dark.scss +12 -0
  86. package/styles/splitter/icons/_bootstrap.scss +12 -0
  87. package/styles/splitter/icons/_bootstrap4.scss +12 -0
  88. package/styles/splitter/icons/_bootstrap5-dark.scss +1 -0
  89. package/styles/splitter/icons/_bootstrap5.scss +39 -0
  90. package/styles/splitter/icons/_fabric-dark.scss +12 -0
  91. package/styles/splitter/icons/_fabric.scss +12 -0
  92. package/styles/splitter/icons/_highcontrast-light.scss +12 -0
  93. package/styles/splitter/icons/_highcontrast.scss +12 -0
  94. package/styles/splitter/icons/_material-dark.scss +12 -0
  95. package/styles/splitter/icons/_material.scss +12 -0
  96. package/styles/splitter/icons/_tailwind-dark.scss +1 -39
  97. package/styles/splitter/icons/_tailwind.scss +12 -0
  98. package/styles/splitter/material-dark.css +16 -8
  99. package/styles/splitter/material.css +8 -0
  100. package/styles/splitter/tailwind-dark.css +14 -7
  101. package/styles/splitter/tailwind.css +8 -1
  102. package/styles/tailwind-dark.css +26 -18
  103. 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';
@@ -261,13 +261,15 @@ var Splitter = /** @class */ (function (_super) {
261
261
  };
262
262
  Splitter.prototype.preRender = function () {
263
263
  this.onReportWindowSize = this.reportWindowSize.bind(this);
264
+ this.onMouseMoveHandler = this.onMouseMove.bind(this);
265
+ this.onMouseUpHandler = this.onMouseUp.bind(this);
266
+ this.onTouchMoveHandler = this.onMouseMove.bind(this);
267
+ this.onTouchEndHandler = this.onMouseUp.bind(this);
264
268
  this.wrapper = this.element.cloneNode(true);
265
269
  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
- }
270
+ removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
271
+ var orientation = this.orientation === 'Horizontal' ? HORIZONTAL_PANE : VERTICAL_PANE;
272
+ addClass([this.element], orientation);
271
273
  var name = Browser.info.name;
272
274
  var css = (name === 'msie') ? 'e-ie' : '';
273
275
  this.setCssClass(this.element, css);
@@ -294,19 +296,15 @@ var Splitter = /** @class */ (function (_super) {
294
296
  * @private
295
297
  */
296
298
  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
- }
299
+ this.checkDataAttributes();
300
+ this.setCssClass(this.element, this.cssClass);
301
+ this.isEnabled(this.enabled);
302
+ this.setDimension(this.getHeight(this.element), this.getWidth(this.element));
303
303
  this.createSplitPane(this.element);
304
304
  this.addSeparator(this.element);
305
305
  this.getPanesDimensions();
306
306
  this.setPaneSettings();
307
- if (!this.checkBlazor()) {
308
- this.setRTL(this.enableRtl);
309
- }
307
+ this.setRTL(this.enableRtl);
310
308
  if (this.enableReversePanes) {
311
309
  this.setReversePane();
312
310
  }
@@ -334,11 +332,15 @@ var Splitter = /** @class */ (function (_super) {
334
332
  this.totalPercent = previousFlexBasis + nextFlexBasis;
335
333
  this.totalWidth = this.convertPercentageToPixel(this.totalPercent + '%');
336
334
  if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
337
- if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0) {
335
+ if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
336
+ (this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) <
337
+ this.convertPercentageToPixel((nextFlexBasis - 1) + '%'))) {
338
338
  this.previousPane.style.flexBasis = (previousFlexBasis + 1) + '%';
339
339
  this.nextPane.style.flexBasis = (nextFlexBasis - 1) + '%';
340
340
  }
341
- else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0) {
341
+ else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
342
+ (this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) <
343
+ this.convertPercentageToPixel((previousFlexBasis - 1) + '%'))) {
342
344
  this.previousPane.style.flexBasis = (previousFlexBasis - 1) + '%';
343
345
  this.nextPane.style.flexBasis = (nextFlexBasis + 1) + '%';
344
346
  }
@@ -348,13 +350,15 @@ var Splitter = /** @class */ (function (_super) {
348
350
  this.totalWidth = (this.orientation === 'Horizontal') ? this.previousPane.offsetWidth + this.nextPane.offsetWidth :
349
351
  this.previousPane.offsetHeight + this.nextPane.offsetHeight;
350
352
  if (e.type === 'keydown' && (!isNullOrUndefined(e.keyCode))) {
351
- if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0) {
353
+ if ((e.keyCode === 39 || (e.keyCode === 40)) && nextPaneSize > 0 &&
354
+ (this.getMinInPixel(this.paneSettings[this.nextPaneIndex].min) < (nextPaneSize + splitBarSize))) {
352
355
  this.addStaticPaneClass();
353
356
  this.previousPane.style.flexBasis = (prePaneSize + splitBarSize) + 'px';
354
357
  this.nextPane.style.flexBasis = (nextPaneSize < splitBarSize) ? '0px' :
355
358
  (nextPaneSize - splitBarSize) + 'px';
356
359
  }
357
- else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0) {
360
+ else if ((e.keyCode === 37 || (e.keyCode === 38)) && prePaneSize > 0 &&
361
+ (this.getMinInPixel(this.paneSettings[this.prevPaneIndex].min) < (prePaneSize - splitBarSize))) {
358
362
  this.addStaticPaneClass();
359
363
  this.previousPane.style.flexBasis = (prePaneSize < splitBarSize) ? '0px' :
360
364
  (prePaneSize - splitBarSize) + 'px';
@@ -375,11 +379,12 @@ var Splitter = /** @class */ (function (_super) {
375
379
  && (!isPrevpaneExpanded && !isNextpaneCollapsed && !isPrevpaneCollapsed || (isPrevpaneExpanded) && !isNextpaneCollapsed) &&
376
380
  document.activeElement.classList.contains(SPLIT_BAR) && (this.paneSettings[index].resizable &&
377
381
  this.paneSettings[index + 1].resizable)) {
382
+ event.preventDefault();
378
383
  this.checkPaneSize(event);
379
384
  this.triggerResizing(event);
380
385
  }
381
386
  else if (event.keyCode === 13 && this.paneSettings[index].collapsible &&
382
- document.activeElement.classList.contains(SPLIT_BAR)) {
387
+ document.activeElement.classList.contains(SPLIT_BAR) && this.currentSeparator.classList.contains(SPLIT_BAR_ACTIVE)) {
383
388
  if (!this.previousPane.classList.contains(COLLAPSE_PANE)) {
384
389
  this.collapse(index);
385
390
  addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
@@ -391,6 +396,18 @@ var Splitter = /** @class */ (function (_super) {
391
396
  }
392
397
  }
393
398
  };
399
+ Splitter.prototype.getMinInPixel = function (minValue) {
400
+ var min;
401
+ if (isNullOrUndefined(minValue)) {
402
+ return 0;
403
+ }
404
+ var paneMinRange = this.convertPixelToNumber(minValue.toString());
405
+ if (minValue.indexOf('%') > 0) {
406
+ paneMinRange = this.convertPercentageToPixel(minValue);
407
+ }
408
+ min = this.convertPixelToNumber((paneMinRange).toString());
409
+ return min;
410
+ };
394
411
  /**
395
412
  * @param {string} value - specifies the string value
396
413
  * @returns {string} returns the string
@@ -464,9 +481,6 @@ var Splitter = /** @class */ (function (_super) {
464
481
  });
465
482
  this.restoreElem();
466
483
  };
467
- Splitter.prototype.checkBlazor = function () {
468
- return isBlazor() && this.isServerRendered;
469
- };
470
484
  Splitter.prototype.setPaneSettings = function () {
471
485
  var childCount = this.allPanes.length;
472
486
  var paneCollection = [];
@@ -866,52 +880,20 @@ var Splitter = /** @class */ (function (_super) {
866
880
  this.isResizable() ? this.allPanes[index].classList.add(RESIZABLE_PANE) : this.allPanes[index].classList.remove(RESIZABLE_PANE);
867
881
  };
868
882
  Splitter.prototype.addSeparator = function (target) {
869
- var _this = this;
870
883
  var childCount = this.allPanes.length;
871
884
  var clonedEle = target.children;
872
885
  var separator;
873
886
  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
887
  for (var i = 0; i < childCount; i++) {
882
888
  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
- }
889
+ separator = this.createSeparator(i);
890
+ setStyleAttribute(separator, { 'order': (i * 2) + 1 });
891
+ this.separatorOrder.push((i * 2) + 1);
892
+ clonedEle[i].parentNode.appendChild(separator);
893
+ this.currentSeparator = separator;
894
+ separator.setAttribute('role', 'separator');
895
+ separator.setAttribute('aria-orientation', this.orientation.toLowerCase());
896
+ this.wireClickEvents();
915
897
  if (!isNullOrUndefined(separator)) {
916
898
  if (this.isResizable()) {
917
899
  EventHandler.add(separator, 'mousedown', this.onMouseDown, this);
@@ -1100,21 +1082,21 @@ var Splitter = /** @class */ (function (_super) {
1100
1082
  }
1101
1083
  };
1102
1084
  Splitter.prototype.wireResizeEvents = function () {
1103
- EventHandler.add(document, 'mousemove', this.onMouseMove, this);
1104
- EventHandler.add(document, 'mouseup', this.onMouseUp, this);
1085
+ document.addEventListener('mousemove', this.onMouseMoveHandler, true);
1086
+ document.addEventListener('mouseup', this.onMouseUpHandler, true);
1105
1087
  var touchMoveEvent = (Browser.info.name === 'msie') ? 'pointermove' : 'touchmove';
1106
1088
  var touchEndEvent = (Browser.info.name === 'msie') ? 'pointerup' : 'touchend';
1107
- EventHandler.add(document, touchMoveEvent, this.onMouseMove, this);
1108
- EventHandler.add(document, touchEndEvent, this.onMouseUp, this);
1089
+ document.addEventListener(touchMoveEvent, this.onTouchMoveHandler, true);
1090
+ document.addEventListener(touchEndEvent, this.onTouchEndHandler, true);
1109
1091
  };
1110
1092
  Splitter.prototype.unwireResizeEvents = function () {
1111
1093
  this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize);
1112
1094
  var touchMoveEvent = (Browser.info.name === 'msie') ? 'pointermove' : 'touchmove';
1113
1095
  var touchEndEvent = (Browser.info.name === 'msie') ? 'pointerup' : 'touchend';
1114
- EventHandler.remove(document, 'mousemove', this.onMouseMove);
1115
- EventHandler.remove(document, 'mouseup', this.onMouseUp);
1116
- EventHandler.remove(document, touchMoveEvent, this.onMouseMove);
1117
- EventHandler.remove(document, touchEndEvent, this.onMouseUp);
1096
+ document.removeEventListener('mousemove', this.onMouseMoveHandler, true);
1097
+ document.removeEventListener('mouseup', this.onMouseUpHandler, true);
1098
+ document.removeEventListener(touchMoveEvent, this.onTouchMoveHandler, true);
1099
+ document.removeEventListener(touchEndEvent, this.onTouchEndHandler, true);
1118
1100
  };
1119
1101
  Splitter.prototype.wireClickEvents = function () {
1120
1102
  EventHandler.add(this.currentSeparator, 'touchstart click', this.clickHandler, this);
@@ -1370,13 +1352,7 @@ var Splitter = /** @class */ (function (_super) {
1370
1352
  }
1371
1353
  };
1372
1354
  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
- } : {
1355
+ var eventArgs = {
1380
1356
  element: this.element,
1381
1357
  event: e,
1382
1358
  pane: [this.previousPane, this.nextPane],
@@ -1475,12 +1451,7 @@ var Splitter = /** @class */ (function (_super) {
1475
1451
  }
1476
1452
  };
1477
1453
  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
- } : {
1454
+ var eventArgs = {
1484
1455
  element: this.element,
1485
1456
  event: e,
1486
1457
  pane: [this.previousPane, this.nextPane],
@@ -1493,10 +1464,6 @@ var Splitter = /** @class */ (function (_super) {
1493
1464
  this.currentBarIndex = this.getOrderIndex(parseInt(e.target.parentElement.style.order, 10), 'splitbar');
1494
1465
  };
1495
1466
  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
1467
  var array = [].slice.call(this.allBars);
1501
1468
  array = this.enableReversePanes ? array.reverse() : array;
1502
1469
  return array.indexOf(target);
@@ -1526,13 +1493,7 @@ var Splitter = /** @class */ (function (_super) {
1526
1493
  this.getPaneDetails();
1527
1494
  };
1528
1495
  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
- } : {
1496
+ var eventArgs = {
1536
1497
  element: this.element,
1537
1498
  event: e,
1538
1499
  pane: [this.previousPane, this.nextPane],
@@ -1553,13 +1514,7 @@ var Splitter = /** @class */ (function (_super) {
1553
1514
  addClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
1554
1515
  this.updateCursorPosition(e, 'previous');
1555
1516
  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
- } : {
1517
+ var eventArgs = {
1563
1518
  element: this.element,
1564
1519
  event: e,
1565
1520
  pane: [this.previousPane, this.nextPane],
@@ -1944,13 +1899,7 @@ var Splitter = /** @class */ (function (_super) {
1944
1899
  Splitter.prototype.onMouseUp = function (e) {
1945
1900
  removeClass([this.currentSeparator], SPLIT_BAR_ACTIVE);
1946
1901
  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
- } : {
1902
+ var eventArgs = {
1954
1903
  event: e,
1955
1904
  element: this.element,
1956
1905
  pane: [this.previousPane, this.nextPane],
@@ -2054,12 +2003,7 @@ var Splitter = /** @class */ (function (_super) {
2054
2003
  }
2055
2004
  var templateFUN;
2056
2005
  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
- }
2006
+ templateFUN = templateFn({}, this, prop, this.element.id + 'content' + this.allPanes.length.toString(), true);
2063
2007
  }
2064
2008
  if (!isNullOrUndefined(templateFn) && templateFUN && templateFUN.length > 0) {
2065
2009
  [].slice.call(templateFUN).forEach(function (el) {
@@ -2073,13 +2017,11 @@ var Splitter = /** @class */ (function (_super) {
2073
2017
  };
2074
2018
  Splitter.prototype.createSplitPane = function (target) {
2075
2019
  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
- }
2020
+ for (var i = 0; i < this.paneSettings.length; i++) {
2021
+ if (childCount < this.paneSettings.length) {
2022
+ var childElement = this.createElement('div');
2023
+ this.element.appendChild(childElement);
2024
+ childCount = childCount + 1;
2083
2025
  }
2084
2026
  }
2085
2027
  childCount = target.children.length;
@@ -2089,30 +2031,23 @@ var Splitter = /** @class */ (function (_super) {
2089
2031
  for (var i = 0; i < childCount; i++) {
2090
2032
  // To accept only div and span element as pane
2091
2033
  if (child[i].nodeName === 'DIV' || child[i].nodeName === 'SPAN') {
2092
- if (this.checkBlazor() && child[i].classList.contains(PANE)) {
2093
- this.allPanes.push(child[i]);
2034
+ this.allPanes.push(child[i]);
2035
+ if (this.orientation === 'Horizontal') {
2036
+ addClass([child[i]], [PANE, SPLIT_H_PANE, SCROLL_PANE]);
2037
+ this.panesDimension(i, child);
2094
2038
  }
2095
- else if (!this.checkBlazor()) {
2096
- this.allPanes.push(child[i]);
2039
+ else {
2040
+ addClass([child[i]], [PANE, SPLIT_V_PANE, SCROLL_PANE]);
2041
+ this.panesDimension(i, child);
2097
2042
  }
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
- }
2043
+ if (!isNullOrUndefined(this.paneSettings[i]) && !isNullOrUndefined(this.paneSettings[i].content)) {
2044
+ this.setTemplate(this.paneSettings[i].content, child[i]);
2045
+ }
2046
+ if (!isNullOrUndefined(this.paneSettings[i]) && this.paneSettings[i].cssClass) {
2047
+ this.setCssClass(child[i], this.paneSettings[i].cssClass);
2048
+ }
2049
+ if (!isNullOrUndefined(this.paneSettings[i])) {
2050
+ this.paneCollapsible(child[i], i);
2116
2051
  }
2117
2052
  }
2118
2053
  }
@@ -2145,24 +2080,15 @@ var Splitter = /** @class */ (function (_super) {
2145
2080
  */
2146
2081
  Splitter.prototype.destroy = function () {
2147
2082
  if (!this.isDestroyed) {
2148
- if (!this.checkBlazor()) {
2149
- _super.prototype.destroy.call(this);
2150
- }
2083
+ _super.prototype.destroy.call(this);
2151
2084
  EventHandler.remove(document, 'touchstart click', this.onDocumentClick);
2085
+ this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
2152
2086
  while (this.element.attributes.length > 0) {
2153
2087
  this.element.removeAttribute(this.element.attributes[0].name);
2154
2088
  }
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
- }
2089
+ this.element.innerHTML = this.wrapper.innerHTML;
2090
+ for (var i = 0; i < this.wrapper.attributes.length; i++) {
2091
+ this.element.setAttribute(this.wrapper.attributes[i].name, this.wrapper.attributes[i].value);
2166
2092
  }
2167
2093
  if (this.refreshing) {
2168
2094
  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';