@syncfusion/ej2-navigations 29.2.8 → 30.1.39

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 (222) hide show
  1. package/.eslintrc.json +2 -0
  2. package/dist/ej2-navigations.min.js +2 -2
  3. package/dist/ej2-navigations.umd.min.js +2 -2
  4. package/dist/ej2-navigations.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-navigations.es2015.js +117 -30
  6. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  7. package/dist/es6/ej2-navigations.es5.js +118 -30
  8. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  9. package/dist/global/ej2-navigations.min.js +2 -2
  10. package/dist/global/ej2-navigations.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +7 -7
  13. package/src/carousel/carousel.js +1 -7
  14. package/src/context-menu/context-menu-model.d.ts +1 -1
  15. package/src/context-menu/context-menu.d.ts +1 -0
  16. package/src/context-menu/context-menu.js +11 -1
  17. package/src/sidebar/sidebar.js +5 -1
  18. package/src/stepper/stepper.js +6 -5
  19. package/src/tab/tab.js +3 -1
  20. package/src/toolbar/toolbar-model.d.ts +8 -1
  21. package/src/toolbar/toolbar.d.ts +19 -0
  22. package/src/toolbar/toolbar.js +69 -13
  23. package/src/treeview/treeview.js +24 -3
  24. package/styles/bds-lite.css +43 -3
  25. package/styles/bds.css +45 -5
  26. package/styles/bootstrap-dark-lite.css +45 -5
  27. package/styles/bootstrap-dark.css +49 -9
  28. package/styles/bootstrap-lite.css +45 -5
  29. package/styles/bootstrap.css +47 -7
  30. package/styles/bootstrap4-lite.css +46 -6
  31. package/styles/bootstrap4.css +48 -8
  32. package/styles/bootstrap5-dark-lite.css +39 -5
  33. package/styles/bootstrap5-dark.css +42 -8
  34. package/styles/bootstrap5-lite.css +40 -6
  35. package/styles/bootstrap5.3-lite.css +40 -6
  36. package/styles/bootstrap5.3.css +42 -8
  37. package/styles/bootstrap5.css +43 -9
  38. package/styles/breadcrumb/_layout.scss +14 -0
  39. package/styles/breadcrumb/bds.css +15 -0
  40. package/styles/breadcrumb/bootstrap-dark.css +15 -0
  41. package/styles/breadcrumb/bootstrap.css +15 -0
  42. package/styles/breadcrumb/bootstrap4.css +15 -0
  43. package/styles/breadcrumb/bootstrap5-dark.css +15 -0
  44. package/styles/breadcrumb/bootstrap5.3.css +15 -0
  45. package/styles/breadcrumb/bootstrap5.css +15 -0
  46. package/styles/breadcrumb/fabric-dark.css +15 -0
  47. package/styles/breadcrumb/fabric.css +15 -0
  48. package/styles/breadcrumb/fluent-dark.css +15 -0
  49. package/styles/breadcrumb/fluent.css +15 -0
  50. package/styles/breadcrumb/fluent2.css +15 -0
  51. package/styles/breadcrumb/highcontrast-light.css +15 -0
  52. package/styles/breadcrumb/highcontrast.css +15 -0
  53. package/styles/breadcrumb/material-dark.css +15 -0
  54. package/styles/breadcrumb/material.css +15 -0
  55. package/styles/breadcrumb/material3-dark.css +15 -0
  56. package/styles/breadcrumb/material3.css +15 -0
  57. package/styles/breadcrumb/tailwind-dark.css +15 -0
  58. package/styles/breadcrumb/tailwind.css +15 -0
  59. package/styles/breadcrumb/tailwind3.css +15 -0
  60. package/styles/context-menu/_layout.scss +5 -0
  61. package/styles/context-menu/bds.css +6 -0
  62. package/styles/context-menu/bootstrap-dark.css +6 -0
  63. package/styles/context-menu/bootstrap.css +6 -0
  64. package/styles/context-menu/bootstrap4.css +6 -0
  65. package/styles/context-menu/bootstrap5-dark.css +6 -0
  66. package/styles/context-menu/bootstrap5.3.css +6 -0
  67. package/styles/context-menu/bootstrap5.css +6 -0
  68. package/styles/context-menu/fabric-dark.css +6 -0
  69. package/styles/context-menu/fabric.css +6 -0
  70. package/styles/context-menu/fluent-dark.css +6 -0
  71. package/styles/context-menu/fluent.css +6 -0
  72. package/styles/context-menu/fluent2.css +6 -0
  73. package/styles/context-menu/highcontrast-light.css +6 -0
  74. package/styles/context-menu/highcontrast.css +6 -0
  75. package/styles/context-menu/material-dark.css +6 -0
  76. package/styles/context-menu/material.css +6 -0
  77. package/styles/context-menu/material3-dark.css +6 -0
  78. package/styles/context-menu/material3.css +6 -0
  79. package/styles/context-menu/tailwind-dark.css +6 -0
  80. package/styles/context-menu/tailwind.css +6 -0
  81. package/styles/context-menu/tailwind3.css +6 -0
  82. package/styles/fabric-dark-lite.css +43 -3
  83. package/styles/fabric-dark.css +45 -5
  84. package/styles/fabric-lite.css +44 -4
  85. package/styles/fabric.css +46 -6
  86. package/styles/fluent-dark-lite.css +50 -10
  87. package/styles/fluent-dark.css +53 -13
  88. package/styles/fluent-lite.css +50 -10
  89. package/styles/fluent.css +53 -13
  90. package/styles/fluent2-lite.css +43 -3
  91. package/styles/fluent2.css +45 -5
  92. package/styles/highcontrast-light-lite.css +43 -3
  93. package/styles/highcontrast-light.css +45 -5
  94. package/styles/highcontrast-lite.css +44 -4
  95. package/styles/highcontrast.css +46 -6
  96. package/styles/material-dark-lite.css +45 -5
  97. package/styles/material-dark.css +47 -7
  98. package/styles/material-lite.css +44 -4
  99. package/styles/material.css +46 -6
  100. package/styles/material3-dark-lite.css +43 -3
  101. package/styles/material3-dark.css +46 -7
  102. package/styles/material3-lite.css +43 -3
  103. package/styles/material3.css +46 -7
  104. package/styles/pager/_bds-definition.scss +1 -1
  105. package/styles/pager/_bigger.scss +0 -1
  106. package/styles/pager/_bootstrap-dark-definition.scss +1 -1
  107. package/styles/pager/_bootstrap-definition.scss +1 -1
  108. package/styles/pager/_bootstrap4-definition.scss +1 -1
  109. package/styles/pager/_bootstrap5-definition.scss +2 -2
  110. package/styles/pager/_bootstrap5.3-definition.scss +1 -1
  111. package/styles/pager/_fabric-dark-definition.scss +1 -1
  112. package/styles/pager/_fabric-definition.scss +1 -1
  113. package/styles/pager/_fluent-definition.scss +2 -2
  114. package/styles/pager/_fluent2-definition.scss +1 -1
  115. package/styles/pager/_fusionnew-definition.scss +1 -1
  116. package/styles/pager/_highcontrast-definition.scss +1 -1
  117. package/styles/pager/_highcontrast-light-definition.scss +1 -1
  118. package/styles/pager/_layout.scss +8 -0
  119. package/styles/pager/_material-dark-definition.scss +1 -1
  120. package/styles/pager/_material-definition.scss +1 -1
  121. package/styles/pager/_material3-definition.scss +1 -1
  122. package/styles/pager/_tailwind-definition.scss +1 -1
  123. package/styles/pager/_tailwind3-definition.scss +2 -2
  124. package/styles/pager/bds.css +13 -3
  125. package/styles/pager/bootstrap-dark.css +13 -3
  126. package/styles/pager/bootstrap.css +13 -3
  127. package/styles/pager/bootstrap4.css +13 -3
  128. package/styles/pager/bootstrap5-dark.css +8 -4
  129. package/styles/pager/bootstrap5.3.css +7 -3
  130. package/styles/pager/bootstrap5.css +8 -4
  131. package/styles/pager/fabric-dark.css +13 -3
  132. package/styles/pager/fabric.css +13 -3
  133. package/styles/pager/fluent-dark.css +14 -4
  134. package/styles/pager/fluent.css +14 -4
  135. package/styles/pager/fluent2.css +13 -3
  136. package/styles/pager/highcontrast-light.css +13 -3
  137. package/styles/pager/highcontrast.css +13 -3
  138. package/styles/pager/material-dark.css +13 -3
  139. package/styles/pager/material.css +13 -3
  140. package/styles/pager/material3-dark.css +13 -4
  141. package/styles/pager/material3.css +13 -4
  142. package/styles/pager/tailwind-dark.css +13 -3
  143. package/styles/pager/tailwind.css +13 -3
  144. package/styles/pager/tailwind3.css +14 -4
  145. package/styles/tab/_bootstrap-dark-definition.scss +3 -3
  146. package/styles/tab/_bootstrap-definition.scss +3 -3
  147. package/styles/tab/_bootstrap4-definition.scss +3 -3
  148. package/styles/tab/_bootstrap5-definition.scss +3 -3
  149. package/styles/tab/_bootstrap5.3-definition.scss +3 -3
  150. package/styles/tab/_fabric-definition.scss +1 -1
  151. package/styles/tab/_fluent-definition.scss +4 -4
  152. package/styles/tab/_highcontrast-definition.scss +1 -1
  153. package/styles/tab/_material-definition.scss +1 -1
  154. package/styles/tab/_tailwind-definition.scss +3 -3
  155. package/styles/tab/_tailwind3-definition.scss +3 -3
  156. package/styles/tab/bootstrap-dark.css +2 -2
  157. package/styles/tab/bootstrap.css +2 -2
  158. package/styles/tab/bootstrap4.css +3 -3
  159. package/styles/tab/bootstrap5-dark.css +2 -2
  160. package/styles/tab/bootstrap5.3.css +3 -3
  161. package/styles/tab/bootstrap5.css +3 -3
  162. package/styles/tab/fabric.css +1 -1
  163. package/styles/tab/fluent-dark.css +7 -7
  164. package/styles/tab/fluent.css +7 -7
  165. package/styles/tab/highcontrast.css +1 -1
  166. package/styles/tab/material.css +1 -1
  167. package/styles/tab/tailwind-dark.css +4 -4
  168. package/styles/tab/tailwind.css +4 -4
  169. package/styles/tab/tailwind3.css +3 -3
  170. package/styles/tailwind-dark-lite.css +47 -7
  171. package/styles/tailwind-dark.css +49 -9
  172. package/styles/tailwind-lite.css +47 -7
  173. package/styles/tailwind.css +49 -9
  174. package/styles/tailwind3-lite.css +46 -6
  175. package/styles/tailwind3.css +49 -9
  176. package/styles/toolbar/_bootstrap-dark-definition.scss +1 -1
  177. package/styles/toolbar/_layout.scss +13 -1
  178. package/styles/toolbar/_material-dark-definition.scss +2 -2
  179. package/styles/toolbar/bds.css +8 -2
  180. package/styles/toolbar/bootstrap-dark.css +10 -4
  181. package/styles/toolbar/bootstrap.css +8 -2
  182. package/styles/toolbar/bootstrap4.css +8 -2
  183. package/styles/toolbar/bootstrap5-dark.css +8 -2
  184. package/styles/toolbar/bootstrap5.3.css +8 -2
  185. package/styles/toolbar/bootstrap5.css +8 -2
  186. package/styles/toolbar/fabric-dark.css +8 -2
  187. package/styles/toolbar/fabric.css +8 -2
  188. package/styles/toolbar/fluent-dark.css +8 -2
  189. package/styles/toolbar/fluent.css +8 -2
  190. package/styles/toolbar/fluent2.css +8 -2
  191. package/styles/toolbar/highcontrast-light.css +8 -2
  192. package/styles/toolbar/highcontrast.css +8 -2
  193. package/styles/toolbar/material-dark.css +10 -4
  194. package/styles/toolbar/material.css +8 -2
  195. package/styles/toolbar/material3-dark.css +8 -2
  196. package/styles/toolbar/material3.css +8 -2
  197. package/styles/toolbar/tailwind-dark.css +8 -2
  198. package/styles/toolbar/tailwind.css +8 -2
  199. package/styles/toolbar/tailwind3.css +8 -2
  200. package/styles/treeview/_layout.scss +4 -0
  201. package/styles/treeview/_material3-definition.scss +1 -1
  202. package/styles/treeview/bds.css +3 -0
  203. package/styles/treeview/bootstrap-dark.css +3 -0
  204. package/styles/treeview/bootstrap.css +3 -0
  205. package/styles/treeview/bootstrap4.css +3 -0
  206. package/styles/treeview/bootstrap5-dark.css +3 -0
  207. package/styles/treeview/bootstrap5.3.css +3 -0
  208. package/styles/treeview/bootstrap5.css +3 -0
  209. package/styles/treeview/fabric-dark.css +3 -0
  210. package/styles/treeview/fabric.css +3 -0
  211. package/styles/treeview/fluent-dark.css +3 -0
  212. package/styles/treeview/fluent.css +3 -0
  213. package/styles/treeview/fluent2.css +3 -0
  214. package/styles/treeview/highcontrast-light.css +3 -0
  215. package/styles/treeview/highcontrast.css +3 -0
  216. package/styles/treeview/material-dark.css +3 -0
  217. package/styles/treeview/material.css +3 -0
  218. package/styles/treeview/material3-dark.css +4 -1
  219. package/styles/treeview/material3.css +4 -1
  220. package/styles/treeview/tailwind-dark.css +3 -0
  221. package/styles/treeview/tailwind.css +3 -0
  222. package/styles/treeview/tailwind3.css +3 -0
@@ -4018,6 +4018,38 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4018
4018
  }
4019
4019
  return clst;
4020
4020
  };
4021
+ Toolbar.prototype.getNextFocusableItem = function (currentItem, action) {
4022
+ var selector = "." + CLS_ITEM + ":not(." + CLS_DISABLE$2 + "):not(." + CLS_SEPARATOR + "):not(." + CLS_HIDDEN + ")";
4023
+ var items = Array.from(this.element.querySelectorAll(selector));
4024
+ var currentIndex = items.indexOf(currentItem);
4025
+ if (currentIndex < 0) {
4026
+ return null;
4027
+ }
4028
+ var nextIndex;
4029
+ switch (action) {
4030
+ case 'moveRight':
4031
+ case 'moveDown':
4032
+ case 'tab':
4033
+ nextIndex = (currentIndex + 1) % items.length;
4034
+ break;
4035
+ case 'moveLeft':
4036
+ case 'moveUp':
4037
+ nextIndex = (currentIndex - 1 + items.length) % items.length;
4038
+ break;
4039
+ case 'home':
4040
+ nextIndex = 0;
4041
+ break;
4042
+ case 'end':
4043
+ nextIndex = items.length - 1;
4044
+ break;
4045
+ default:
4046
+ nextIndex = currentIndex;
4047
+ }
4048
+ if (nextIndex >= 0 && nextIndex < items.length) {
4049
+ return items[parseInt(nextIndex.toString(), 10)];
4050
+ }
4051
+ return null;
4052
+ };
4021
4053
  Toolbar.prototype.keyHandling = function (clst, e, trgt, navChk, scrollChk) {
4022
4054
  var popObj = this.popObj;
4023
4055
  var rootEle = this.element;
@@ -4083,19 +4115,30 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4083
4115
  if (!this.isVertical) {
4084
4116
  if (popObj && closest(trgt, '.e-popup')) {
4085
4117
  var popEle = popObj.element;
4086
- var popFrstEle = popEle.firstElementChild;
4087
- if ((value === 'previous' && popFrstEle === clst)) {
4088
- popEle.lastElementChild.firstChild.focus();
4118
+ if ((value === 'previous' && popEle.firstElementChild === clst)) {
4119
+ var lastVisibleEle = this.focusLastVisibleEle([].slice.call(popEle.children));
4120
+ if (lastVisibleEle) {
4121
+ this.elementFocus(lastVisibleEle);
4122
+ }
4089
4123
  }
4090
4124
  else if (value === 'next' && popEle.lastElementChild === clst) {
4091
- popFrstEle.firstChild.focus();
4125
+ var firstVisibleEle = this.focusFirstVisibleEle([].slice.call(popEle.children));
4126
+ if (firstVisibleEle) {
4127
+ this.elementFocus(firstVisibleEle);
4128
+ }
4092
4129
  }
4093
4130
  else {
4094
4131
  this.eleFocus(clst, value);
4095
4132
  }
4096
4133
  }
4097
4134
  else if (e.action === 'moveDown' && popObj && isVisible(popObj.element)) {
4098
- this.elementFocus(clst);
4135
+ var skipEle = this.eleContains(clst);
4136
+ if (skipEle) {
4137
+ this.eleFocus(clst, value);
4138
+ }
4139
+ else {
4140
+ this.elementFocus(clst);
4141
+ }
4099
4142
  }
4100
4143
  }
4101
4144
  else {
@@ -4141,8 +4184,10 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4141
4184
  }
4142
4185
  };
4143
4186
  Toolbar.prototype.keyActionHandler = function (e) {
4187
+ var _this = this;
4144
4188
  var trgt = e.target;
4145
- if (trgt.tagName === 'INPUT' || trgt.tagName === 'TEXTAREA' || this.element.classList.contains(CLS_DISABLE$2)) {
4189
+ if ((e.action === 'home' || e.action === 'end' || e.action === 'moveRight' || e.action === 'moveLeft' || e.action === 'moveUp' || e.action === 'moveDown')
4190
+ && (trgt.tagName === 'INPUT' || trgt.tagName === 'TEXTAREA' || this.element.classList.contains(CLS_DISABLE$2))) {
4146
4191
  return;
4147
4192
  }
4148
4193
  e.preventDefault();
@@ -4150,7 +4195,19 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4150
4195
  var tbarScrollChk = trgt.classList.contains(CLS_TBARSCRLNAV);
4151
4196
  var clst = this.clstElement(tbrNavChk, trgt);
4152
4197
  if (clst || tbarScrollChk) {
4153
- this.keyHandling(clst, e, trgt, tbrNavChk, tbarScrollChk);
4198
+ var currentItem = clst;
4199
+ var nextItem = this.getNextFocusableItem(currentItem, e.action);
4200
+ var keyDownEventArgs = {
4201
+ originalEvent: e,
4202
+ currentItem: currentItem,
4203
+ nextItem: nextItem,
4204
+ cancel: false
4205
+ };
4206
+ this.trigger('keyDown', keyDownEventArgs, function (keyDownArgs) {
4207
+ if (!keyDownArgs.cancel) {
4208
+ _this.keyHandling(clst, e, trgt, tbrNavChk, tbarScrollChk);
4209
+ }
4210
+ });
4154
4211
  }
4155
4212
  };
4156
4213
  /**
@@ -4189,7 +4246,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4189
4246
  var index = 0;
4190
4247
  while (index < nodes.length) {
4191
4248
  var ele = nodes[parseInt(index.toString(), 10)];
4192
- if (!ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
4249
+ if (!ele.classList.contains(CLS_SEPARATOR) && !ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
4193
4250
  return ele;
4194
4251
  }
4195
4252
  index++;
@@ -4201,7 +4258,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4201
4258
  var index = nodes.length - 1;
4202
4259
  while (index >= 0) {
4203
4260
  var ele = nodes[parseInt(index.toString(), 10)];
4204
- if (!ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
4261
+ if (!ele.classList.contains(CLS_SEPARATOR) && !ele.classList.contains(CLS_HIDDEN) && !ele.classList.contains(CLS_DISABLE$2)) {
4205
4262
  return ele;
4206
4263
  }
4207
4264
  index--;
@@ -5689,10 +5746,6 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
5689
5746
  return isNullOrUndefined(ele.getAttribute('data-tabindex')) ? '-1' : ele.getAttribute('data-tabindex');
5690
5747
  };
5691
5748
  Toolbar.prototype.itemClick = function (e) {
5692
- var itemClosest = !isNullOrUndefined(closest(e.currentTarget, '.' + CLS_TEMPLATE));
5693
- if (itemClosest) {
5694
- return;
5695
- }
5696
5749
  this.activeEleSwitch(e.currentTarget);
5697
5750
  };
5698
5751
  Toolbar.prototype.activeEleSwitch = function (ele) {
@@ -6055,6 +6108,9 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
6055
6108
  __decorate$3([
6056
6109
  Event()
6057
6110
  ], Toolbar.prototype, "beforeCreate", void 0);
6111
+ __decorate$3([
6112
+ Event()
6113
+ ], Toolbar.prototype, "keyDown", void 0);
6058
6114
  Toolbar = __decorate$3([
6059
6115
  NotifyPropertyChanges
6060
6116
  ], Toolbar);
@@ -7481,6 +7537,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
7481
7537
  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;
7482
7538
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7483
7539
  };
7540
+ var CONTEXTMENUTEMPLATE = 'e-contextmenu-template';
7484
7541
  /**
7485
7542
  * The ContextMenu is a graphical user interface that appears on the user right click/touch hold operation.
7486
7543
  * ```html
@@ -7518,6 +7575,7 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
7518
7575
  };
7519
7576
  ContextMenu.prototype.initialize = function () {
7520
7577
  this.template = this.itemTemplate ? this.itemTemplate : null;
7578
+ this.addTemplateClass();
7521
7579
  _super.prototype.initialize.call(this);
7522
7580
  attributes(this.element, { 'role': 'menubar', 'tabindex': '0' });
7523
7581
  this.element.style.zIndex = getZindexPartial(this.element).toString();
@@ -7543,6 +7601,12 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
7543
7601
  ContextMenu.prototype.close = function () {
7544
7602
  _super.prototype.closeMenu.call(this);
7545
7603
  };
7604
+ ContextMenu.prototype.addTemplateClass = function () {
7605
+ if (!isNullOrUndefined(this.itemTemplate) && typeof this.itemTemplate === 'function' ||
7606
+ (typeof this.itemTemplate === 'string' && this.itemTemplate !== '')) {
7607
+ addClass([this.element], CONTEXTMENUTEMPLATE);
7608
+ }
7609
+ };
7546
7610
  /**
7547
7611
  * Called internally if any of the property value changed.
7548
7612
  *
@@ -7566,6 +7630,8 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
7566
7630
  break;
7567
7631
  case 'itemTemplate':
7568
7632
  this.itemTemplate = newProp.itemTemplate;
7633
+ removeClass([this.element], CONTEXTMENUTEMPLATE);
7634
+ this.addTemplateClass();
7569
7635
  this.refresh();
7570
7636
  }
7571
7637
  }
@@ -9281,7 +9347,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9281
9347
  }
9282
9348
  break;
9283
9349
  case 'openPopup':
9284
- e.preventDefault();
9350
+ if (!isNullOrUndefined(e.target) && (e.target.classList.contains(CLS_WRAP))) {
9351
+ e.preventDefault();
9352
+ }
9285
9353
  if (!isNullOrUndefined(this.popEle) && this.popEle.classList.contains(CLS_POPUP_CLOSE)) {
9286
9354
  this.popObj.show(this.show);
9287
9355
  }
@@ -12252,7 +12320,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12252
12320
  activeElement_1.classList.add(ITEM_ANIMATION_ACTIVE);
12253
12321
  }
12254
12322
  start_1 = liEle_1.offsetHeight;
12255
- end_1 = select('.' + TEXTWRAP, currLi).offsetHeight;
12323
+ var computedStyle = window.getComputedStyle(liEle_1);
12324
+ var paddingTop = parseFloat(computedStyle.paddingTop);
12325
+ var paddingBottom = parseFloat(computedStyle.paddingBottom);
12326
+ end_1 = select('.' + TEXTWRAP, currLi).offsetHeight + paddingBottom + paddingTop;
12256
12327
  },
12257
12328
  progress: function (args) {
12258
12329
  args.element.style.display = 'block';
@@ -13903,6 +13974,15 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13903
13974
  _this.dragAction(e, virtualEle);
13904
13975
  },
13905
13976
  dragStop: function (e) {
13977
+ if (!e.target) {
13978
+ if (e.helper && e.helper.parentNode) {
13979
+ detach(e.helper);
13980
+ }
13981
+ document.body.style.cursor = '';
13982
+ removeClass([_this.element], DRAGGING);
13983
+ _this.dragStartAction = false;
13984
+ return;
13985
+ }
13906
13986
  removeClass([_this.element], DRAGGING);
13907
13987
  if (!e.target.classList.contains('e-sibling')) {
13908
13988
  _this.removeVirtualEle();
@@ -13939,6 +14019,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13939
14019
  });
13940
14020
  this.dropObj = new Droppable(this.element, {
13941
14021
  out: function (e) {
14022
+ if (!e.target) {
14023
+ return;
14024
+ }
13942
14025
  if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) &&
13943
14026
  (_this.dropObj.dragData.default && _this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
13944
14027
  document.body.style.cursor = 'not-allowed';
@@ -13977,6 +14060,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13977
14060
  }
13978
14061
  };
13979
14062
  TreeView.prototype.dragAction = function (e, virtualEle) {
14063
+ if (!e.target) {
14064
+ return;
14065
+ }
13980
14066
  var dropRoot = closest(e.target, '.' + DROPPABLE);
13981
14067
  var dropWrap = closest(e.target, '.' + TEXTWRAP);
13982
14068
  var icon = select('div.' + ICON, virtualEle);
@@ -15704,7 +15790,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
15704
15790
  }
15705
15791
  this.groupedData = this.getGroupedData(this.treeData, this.fields.parentID);
15706
15792
  }
15707
- this.setNodeFocusable();
15793
+ var fNode = select('.' + LISTITEM + '[tabindex="0"]', this.element);
15794
+ if (isNullOrUndefined(fNode)) {
15795
+ this.setNodeFocusable();
15796
+ }
15708
15797
  this.updateCheckedStateFromDS();
15709
15798
  if (this.showCheckBox && dropLi) {
15710
15799
  this.ensureParentCheckState(dropLi);
@@ -16098,7 +16187,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
16098
16187
  * @returns {void}
16099
16188
  */
16100
16189
  TreeView.prototype.uncheckAll = function (nodes) {
16101
- if (this.showCheckBox) {
16190
+ if (this.showCheckBox && this.checkedNodes.length > 0) {
16102
16191
  this.doCheckBoxAction(nodes, false);
16103
16192
  }
16104
16193
  };
@@ -16458,6 +16547,8 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
16458
16547
  var sibling = document.querySelector('.e-main-content') || this.targetEle;
16459
16548
  if (this.target && this.showBackdrop && sibling && !isNullOrUndefined(this.defaultBackdropDiv)) {
16460
16549
  removeClass([this.defaultBackdropDiv], DEFAULTBACKDROP);
16550
+ this.defaultBackdropDiv.remove();
16551
+ this.defaultBackdropDiv = null;
16461
16552
  }
16462
16553
  else if (this.showBackdrop && this.modal) {
16463
16554
  this.modal.style.display = 'none';
@@ -16560,7 +16651,9 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
16560
16651
  removeClass([_this.element], CLOSE);
16561
16652
  setStyleAttribute(_this.element, { 'width': formatUnit(_this.width) });
16562
16653
  _this.setType(_this.type);
16563
- _this.createBackDrop();
16654
+ if (_this.targetEle && !_this.targetEle.querySelector('.e-sidebar-overlay')) {
16655
+ _this.createBackDrop();
16656
+ }
16564
16657
  _this.setAnimation();
16565
16658
  if (_this.type === 'Slide') {
16566
16659
  document.body.classList.add('e-sidebar-overflow');
@@ -17982,9 +18075,6 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
17982
18075
  }
17983
18076
  break;
17984
18077
  case 'enableTouchSwipe':
17985
- if (!this.enableTouchSwipe && this.touchModule) {
17986
- this.touchModule.destroy();
17987
- }
17988
18078
  if (this.element.querySelector("." + CLS_ITEMS$2)) {
17989
18079
  this.renderTouchActions();
17990
18080
  }
@@ -18387,9 +18477,6 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
18387
18477
  this.keyModule = new KeyboardEvents(this.element, { keyAction: this.keyHandler.bind(this), keyConfigs: this.keyConfigs });
18388
18478
  };
18389
18479
  Carousel.prototype.renderTouchActions = function () {
18390
- if (!this.enableTouchSwipe) {
18391
- return;
18392
- }
18393
18480
  this.touchModule = new Touch(this.element, { swipe: this.swipeHandler.bind(this) });
18394
18481
  };
18395
18482
  Carousel.prototype.applyAnimation = function () {
@@ -18957,7 +19044,7 @@ var Carousel = /** @__PURE__ @class */ (function (_super) {
18957
19044
  }
18958
19045
  };
18959
19046
  Carousel.prototype.wireEvents = function () {
18960
- if (this.animationEffect !== 'Custom' && this.enableTouchSwipe) {
19047
+ if (this.animationEffect !== 'Custom') {
18961
19048
  this.swipeModehandlers();
18962
19049
  }
18963
19050
  EventHandler.add(this.element, 'focusin focusout', this.onFocusActions, this);
@@ -19847,11 +19934,6 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
19847
19934
  Stepper.prototype.updateAnimation = function () {
19848
19935
  var progressEle = this.element.querySelector('.e-progressbar-value');
19849
19936
  if (this.animation.enable) {
19850
- if (this.animation.duration >= 0) {
19851
- if (progressEle) {
19852
- progressEle.style.setProperty('--duration', ((this.animation.duration) + 'ms'));
19853
- }
19854
- }
19855
19937
  if (this.animation.delay >= 0) {
19856
19938
  if (progressEle) {
19857
19939
  progressEle.style.setProperty('--delay', ((this.animation.delay) + 'ms'));
@@ -20430,6 +20512,9 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
20430
20512
  }
20431
20513
  };
20432
20514
  Stepper.prototype.navigationHandler = function (index, stepStatus, isUpdated) {
20515
+ if (index !== this.activeStep && this.progressbar) {
20516
+ this.progressbar.style.transitionDuration = this.animation.duration + 'ms';
20517
+ }
20433
20518
  index = Math.min(index, this.steps.length - 1);
20434
20519
  var Itemslength = this.stepperItemElements.length;
20435
20520
  if (index >= 0 && index < Itemslength - 1) {
@@ -20500,6 +20585,9 @@ var Stepper = /** @__PURE__ @class */ (function (_super) {
20500
20585
  this.updateIndicatorStatus(i, itemElement);
20501
20586
  }
20502
20587
  this.updateStepInteractions();
20588
+ if (this.progressbar) {
20589
+ this.progressbar.style.transitionDuration = '0ms';
20590
+ }
20503
20591
  };
20504
20592
  Stepper.prototype.calculateProgressbarPos = function () {
20505
20593
  var _this = this;