@syncfusion/ej2-navigations 28.2.12 → 29.1.34

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 (201) hide show
  1. package/README.md +1 -1
  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 +96 -18
  6. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  7. package/dist/es6/ej2-navigations.es5.js +96 -18
  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 +19 -26
  13. package/src/common/menu-base.d.ts +5 -0
  14. package/src/common/menu-base.js +60 -6
  15. package/src/sidebar/sidebar.d.ts +1 -0
  16. package/src/sidebar/sidebar.js +8 -1
  17. package/src/tab/tab-model.d.ts +1 -1
  18. package/src/tab/tab.d.ts +3 -3
  19. package/src/tab/tab.js +20 -4
  20. package/src/treeview/treeview.js +7 -6
  21. package/styles/accordion/_bootstrap-dark-definition.scss +4 -2
  22. package/styles/accordion/_bootstrap4-definition.scss +7 -5
  23. package/styles/accordion/bootstrap-dark.css +12 -12
  24. package/styles/accordion/bootstrap4.css +4 -4
  25. package/styles/accordion/bootstrap5-dark.css +37 -37
  26. package/styles/accordion/bootstrap5.css +16 -16
  27. package/styles/accordion/fabric.css +11 -11
  28. package/styles/accordion/tailwind-dark.css +2 -2
  29. package/styles/bds-lite.css +11 -1
  30. package/styles/bds.css +11 -1
  31. package/styles/bootstrap-dark-lite.css +60 -50
  32. package/styles/bootstrap-dark.css +60 -50
  33. package/styles/bootstrap-lite.css +11 -1
  34. package/styles/bootstrap.css +11 -1
  35. package/styles/bootstrap4-lite.css +88 -78
  36. package/styles/bootstrap4.css +89 -79
  37. package/styles/bootstrap5-dark-lite.css +223 -213
  38. package/styles/bootstrap5-dark.css +223 -213
  39. package/styles/bootstrap5-lite.css +84 -74
  40. package/styles/bootstrap5.3-lite.css +12 -8
  41. package/styles/bootstrap5.3.css +18 -8
  42. package/styles/bootstrap5.css +84 -74
  43. package/styles/breadcrumb/_bigger.scss +3 -1
  44. package/styles/breadcrumb/_bootstrap4-definition.scss +6 -4
  45. package/styles/breadcrumb/_bootstrap5-definition.scss +5 -3
  46. package/styles/breadcrumb/_fusionnew-definition.scss +9 -3
  47. package/styles/breadcrumb/_layout.scss +3 -1
  48. package/styles/breadcrumb/bootstrap-dark.css +2 -2
  49. package/styles/breadcrumb/bootstrap4.css +4 -4
  50. package/styles/breadcrumb/bootstrap5-dark.css +12 -12
  51. package/styles/breadcrumb/bootstrap5.css +3 -3
  52. package/styles/breadcrumb/fabric-dark.css +3 -3
  53. package/styles/context-menu/_bootstrap4-definition.scss +3 -1
  54. package/styles/context-menu/_fusionnew-definition.scss +1 -0
  55. package/styles/context-menu/_theme.scss +9 -1
  56. package/styles/context-menu/bds.css +1 -1
  57. package/styles/context-menu/bootstrap-dark.css +1 -1
  58. package/styles/context-menu/bootstrap.css +1 -1
  59. package/styles/context-menu/bootstrap4.css +2 -2
  60. package/styles/context-menu/bootstrap5-dark.css +8 -8
  61. package/styles/context-menu/bootstrap5.3.css +1 -1
  62. package/styles/context-menu/bootstrap5.css +1 -1
  63. package/styles/context-menu/fabric-dark.css +1 -1
  64. package/styles/context-menu/fabric.css +1 -1
  65. package/styles/context-menu/fluent-dark.css +1 -1
  66. package/styles/context-menu/fluent.css +1 -1
  67. package/styles/context-menu/fluent2.css +1 -1
  68. package/styles/context-menu/highcontrast-light.css +1 -1
  69. package/styles/context-menu/highcontrast.css +1 -1
  70. package/styles/context-menu/material-dark.css +2 -1
  71. package/styles/context-menu/material.css +1 -1
  72. package/styles/context-menu/material3-dark.css +2 -1
  73. package/styles/context-menu/material3.css +2 -1
  74. package/styles/context-menu/tailwind-dark.css +1 -1
  75. package/styles/context-menu/tailwind.css +1 -1
  76. package/styles/context-menu/tailwind3.css +1 -1
  77. package/styles/fabric-dark-lite.css +17 -7
  78. package/styles/fabric-dark.css +17 -7
  79. package/styles/fabric-lite.css +48 -38
  80. package/styles/fabric.css +48 -38
  81. package/styles/fluent-dark-lite.css +21 -11
  82. package/styles/fluent-dark.css +21 -11
  83. package/styles/fluent-lite.css +21 -11
  84. package/styles/fluent.css +21 -11
  85. package/styles/fluent2-lite.css +11 -1
  86. package/styles/fluent2.css +11 -1
  87. package/styles/h-scroll/_bootstrap4-definition.scss +4 -2
  88. package/styles/h-scroll/bootstrap4.css +5 -5
  89. package/styles/h-scroll/bootstrap5-dark.css +6 -6
  90. package/styles/h-scroll/fabric.css +1 -1
  91. package/styles/highcontrast-light-lite.css +11 -1
  92. package/styles/highcontrast-light.css +11 -1
  93. package/styles/highcontrast-lite.css +11 -1
  94. package/styles/highcontrast.css +11 -1
  95. package/styles/material-dark-lite.css +14 -3
  96. package/styles/material-dark.css +14 -3
  97. package/styles/material-lite.css +19 -9
  98. package/styles/material.css +19 -9
  99. package/styles/material3-dark-lite.css +12 -1
  100. package/styles/material3-dark.css +19 -2
  101. package/styles/material3-lite.css +12 -1
  102. package/styles/material3.css +19 -2
  103. package/styles/menu/_bootstrap4-definition.scss +4 -2
  104. package/styles/menu/_theme.scss +7 -6
  105. package/styles/menu/bootstrap4.css +13 -13
  106. package/styles/menu/bootstrap5-dark.css +14 -14
  107. package/styles/pager/_bigger.scss +3 -1
  108. package/styles/pager/_bootstrap-dark-definition.scss +3 -2
  109. package/styles/pager/_bootstrap4-definition.scss +2 -1
  110. package/styles/pager/bootstrap-dark.css +4 -4
  111. package/styles/pager/bootstrap4.css +1 -1
  112. package/styles/pager/bootstrap5-dark.css +13 -13
  113. package/styles/pager/bootstrap5.css +4 -4
  114. package/styles/pager/fabric.css +2 -2
  115. package/styles/pager/material3-dark.css +7 -1
  116. package/styles/pager/material3.css +7 -1
  117. package/styles/sidebar/bootstrap5-dark.css +1 -1
  118. package/styles/stepper/_bootstrap4-definition.scss +4 -2
  119. package/styles/stepper/_material-dark-definition.scss +4 -2
  120. package/styles/stepper/_material-definition.scss +7 -5
  121. package/styles/stepper/bootstrap-dark.css +2 -2
  122. package/styles/stepper/bootstrap4.css +2 -2
  123. package/styles/stepper/bootstrap5-dark.css +20 -20
  124. package/styles/stepper/bootstrap5.css +2 -2
  125. package/styles/stepper/fabric-dark.css +2 -2
  126. package/styles/stepper/fabric.css +2 -2
  127. package/styles/stepper/fluent-dark.css +1 -1
  128. package/styles/stepper/fluent.css +1 -1
  129. package/styles/stepper/material-dark.css +2 -2
  130. package/styles/stepper/material.css +8 -8
  131. package/styles/tab/_bootstrap-dark-definition.scss +8 -6
  132. package/styles/tab/_bootstrap4-definition.scss +13 -11
  133. package/styles/tab/_bootstrap5-definition.scss +3 -1
  134. package/styles/tab/_bootstrap5.3-definition.scss +3 -1
  135. package/styles/tab/_fluent-definition.scss +4 -2
  136. package/styles/tab/_layout.scss +4 -0
  137. package/styles/tab/bds.css +5 -0
  138. package/styles/tab/bootstrap-dark.css +34 -29
  139. package/styles/tab/bootstrap.css +5 -0
  140. package/styles/tab/bootstrap4.css +32 -27
  141. package/styles/tab/bootstrap5-dark.css +48 -43
  142. package/styles/tab/bootstrap5.3.css +5 -0
  143. package/styles/tab/bootstrap5.css +27 -22
  144. package/styles/tab/fabric-dark.css +5 -0
  145. package/styles/tab/fabric.css +9 -4
  146. package/styles/tab/fluent-dark.css +12 -7
  147. package/styles/tab/fluent.css +12 -7
  148. package/styles/tab/fluent2.css +5 -0
  149. package/styles/tab/highcontrast-light.css +5 -0
  150. package/styles/tab/highcontrast.css +5 -0
  151. package/styles/tab/material-dark.css +5 -0
  152. package/styles/tab/material.css +5 -0
  153. package/styles/tab/material3-dark.css +5 -0
  154. package/styles/tab/material3.css +5 -0
  155. package/styles/tab/tailwind-dark.css +5 -0
  156. package/styles/tab/tailwind.css +5 -0
  157. package/styles/tab/tailwind3.css +5 -0
  158. package/styles/tailwind-dark-lite.css +15 -5
  159. package/styles/tailwind-dark.css +15 -5
  160. package/styles/tailwind-lite.css +13 -3
  161. package/styles/tailwind.css +13 -3
  162. package/styles/tailwind3-lite.css +12 -2
  163. package/styles/tailwind3.css +13 -2
  164. package/styles/toolbar/_bootstrap4-definition.scss +8 -6
  165. package/styles/toolbar/_material-dark-definition.scss +3 -1
  166. package/styles/toolbar/_material-definition.scss +3 -1
  167. package/styles/toolbar/bootstrap4.css +12 -12
  168. package/styles/toolbar/bootstrap5-dark.css +47 -47
  169. package/styles/toolbar/bootstrap5.css +23 -23
  170. package/styles/toolbar/fabric.css +9 -9
  171. package/styles/treeview/_bigger.scss +5 -1
  172. package/styles/treeview/_bootstrap4-definition.scss +6 -4
  173. package/styles/treeview/_bootstrap5-definition.scss +4 -2
  174. package/styles/treeview/_bootstrap5.3-definition.scss +1 -1
  175. package/styles/treeview/_fluent-definition.scss +3 -1
  176. package/styles/treeview/_layout.scss +6 -2
  177. package/styles/treeview/_tailwind-definition.scss +3 -1
  178. package/styles/treeview/_theme.scss +3 -1
  179. package/styles/treeview/bds.css +5 -0
  180. package/styles/treeview/bootstrap-dark.css +5 -0
  181. package/styles/treeview/bootstrap.css +5 -0
  182. package/styles/treeview/bootstrap4.css +14 -9
  183. package/styles/treeview/bootstrap5-dark.css +17 -12
  184. package/styles/treeview/bootstrap5.3.css +12 -7
  185. package/styles/treeview/bootstrap5.css +8 -3
  186. package/styles/treeview/fabric-dark.css +5 -0
  187. package/styles/treeview/fabric.css +12 -7
  188. package/styles/treeview/fluent-dark.css +7 -2
  189. package/styles/treeview/fluent.css +7 -2
  190. package/styles/treeview/fluent2.css +5 -0
  191. package/styles/treeview/highcontrast-light.css +5 -0
  192. package/styles/treeview/highcontrast.css +5 -0
  193. package/styles/treeview/material-dark.css +5 -0
  194. package/styles/treeview/material.css +5 -0
  195. package/styles/treeview/material3-dark.css +5 -0
  196. package/styles/treeview/material3.css +5 -0
  197. package/styles/treeview/tailwind-dark.css +7 -2
  198. package/styles/treeview/tailwind.css +7 -2
  199. package/styles/treeview/tailwind3.css +7 -1
  200. package/styles/v-scroll/fabric-dark.css +1 -1
  201. package/styles/v-scroll/fabric.css +1 -1
@@ -1,4 +1,4 @@
1
- import { Browser, getUniqueID, Touch, EventHandler, isNullOrUndefined, selectAll, detach, classList, Property, NotifyPropertyChanges, Component, createElement, removeClass, select, ChildProperty, Collection, Animation, getValue, setValue, append, addClass, isBlazor, rippleEffect, KeyboardEvents, closest, getInstance, isVisible, SanitizeHtmlHelper, Event, Complex, formatUnit, setStyleAttribute, attributes, compile, isRippleEnabled, animationMode, remove, getRandomId, L10n, Draggable, isUndefined, getElement, Droppable, matches, extend, merge, initializeCSPTemplate } from '@syncfusion/ej2-base';
1
+ import { Browser, getUniqueID, Touch, EventHandler, isNullOrUndefined, selectAll, detach, classList, Property, NotifyPropertyChanges, Component, createElement, removeClass, select, ChildProperty, Collection, Animation, getValue, setValue, append, closest, addClass, isBlazor, rippleEffect, KeyboardEvents, getInstance, isVisible, SanitizeHtmlHelper, Event, Complex, formatUnit, setStyleAttribute, attributes, compile, isRippleEnabled, animationMode, remove, getRandomId, L10n, Draggable, isUndefined, getElement, Droppable, matches, extend, merge, initializeCSPTemplate } from '@syncfusion/ej2-base';
2
2
  import { ListBase } from '@syncfusion/ej2-lists';
3
3
  import { getScrollableParent, Popup, getZindexPartial, fit, isCollide, calculatePosition, createSpinner, showSpinner, hideSpinner, Tooltip } from '@syncfusion/ej2-popups';
4
4
  import { Button, createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';
@@ -1213,6 +1213,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1213
1213
  _this.tempItem = [];
1214
1214
  _this.showSubMenuOn = 'Auto';
1215
1215
  _this.isAnimationNone = false;
1216
+ _this.isKBDAction = false;
1216
1217
  return _this;
1217
1218
  }
1218
1219
  /**
@@ -1288,6 +1289,30 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1288
1289
  });
1289
1290
  }
1290
1291
  };
1292
+ MenuBase.prototype.enableTouchScroll = function (scrollList) {
1293
+ var touchStartY = 0;
1294
+ this.touchStartFn = function (e) {
1295
+ touchStartY = e.touches[0].clientY;
1296
+ };
1297
+ this.touchMoveFn = function (e) {
1298
+ var touchEndY = e.touches[0].clientY;
1299
+ var touchDiff = touchStartY - touchEndY;
1300
+ var atTop = scrollList.scrollTop === 0;
1301
+ var atBottom = scrollList.scrollTop + scrollList.clientHeight === scrollList.scrollHeight;
1302
+ if ((atTop && touchDiff < 0) || (atBottom && touchDiff > 0)) {
1303
+ e.preventDefault();
1304
+ }
1305
+ touchStartY = touchEndY;
1306
+ };
1307
+ scrollList.addEventListener('touchstart', this.touchStartFn, { passive: false });
1308
+ scrollList.addEventListener('touchmove', this.touchMoveFn, { passive: false });
1309
+ };
1310
+ MenuBase.prototype.touchOutsideHandler = function (e) {
1311
+ var target = e.target;
1312
+ if (!closest(target, '.e-' + this.getModuleName() + '-wrapper')) {
1313
+ this.closeMenu();
1314
+ }
1315
+ };
1291
1316
  MenuBase.prototype.initialize = function () {
1292
1317
  var wrapper = this.getWrapper();
1293
1318
  if (!wrapper) {
@@ -1388,6 +1413,10 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1388
1413
  EventHandler.add(document, 'click', this.delegateClickHandler, this);
1389
1414
  this.wireKeyboardEvent(wrapper);
1390
1415
  this.rippleFn = rippleEffect(wrapper, { selector: '.' + ITEM });
1416
+ if (!this.isMenu && this.enableScrolling) {
1417
+ this.enableTouchScroll(wrapper);
1418
+ document.addEventListener('touchstart', this.touchOutsideHandler.bind(this), { passive: true });
1419
+ }
1391
1420
  };
1392
1421
  MenuBase.prototype.wireKeyboardEvent = function (element) {
1393
1422
  var keyConfigs = {
@@ -1439,6 +1468,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1439
1468
  if (this.enableScrolling && e.keyCode === 13 && trgt.classList.contains('e-scroll-nav')) {
1440
1469
  this.removeLIStateByClass([FOCUSED, SELECTED], [closest(trgt, '.e-' + this.getModuleName() + '-wrapper')]);
1441
1470
  }
1471
+ this.isKBDAction = true;
1442
1472
  if (actionNeeded) {
1443
1473
  switch (e.action) {
1444
1474
  case RIGHTARROW:
@@ -1496,6 +1526,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1496
1526
  }
1497
1527
  break;
1498
1528
  }
1529
+ if (this.isAnimationNone) {
1530
+ this.isKBDAction = false;
1531
+ }
1499
1532
  if (actionNeeded) {
1500
1533
  e.action = actionName;
1501
1534
  }
@@ -2284,8 +2317,15 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2284
2317
  }
2285
2318
  else {
2286
2319
  if (Browser.isDevice) {
2287
- top = Number(this.element.style.top.replace(px, ''));
2288
- left = Number(this.element.style.left.replace(px, ''));
2320
+ if (!this.isMenu && this.enableScrolling) {
2321
+ var menuScrollElement = document.querySelector('.e-menu-vscroll');
2322
+ top = Number(menuScrollElement.style.top.replace('px', ''));
2323
+ left = Number(menuScrollElement.style.left.replace('px', ''));
2324
+ }
2325
+ else {
2326
+ top = Number(this.element.style.top.replace(px, ''));
2327
+ left = Number(this.element.style.left.replace(px, ''));
2328
+ }
2289
2329
  }
2290
2330
  else {
2291
2331
  var x = this.enableRtl ? 'left' : 'right';
@@ -2301,7 +2341,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2301
2341
  if (this.enableRtl || xCollision) {
2302
2342
  left = (this.enableRtl && xCollision) ? left : left - ul.offsetWidth;
2303
2343
  }
2304
- if (collide.indexOf('bottom') > -1) {
2344
+ if (collide.indexOf('bottom') > -1 && (this.isMenu || !this.enableScrolling)) {
2305
2345
  offset = this.callFit(ul, false, true, top, left);
2306
2346
  top = offset.top;
2307
2347
  }
@@ -2603,6 +2643,10 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2603
2643
  if (sli) {
2604
2644
  sli.classList.remove(SELECTED);
2605
2645
  }
2646
+ var scrollMenu = this.enableScrolling && !this.isMenu ? closest(cli.parentElement, '.e-menu-vscroll') : null;
2647
+ if (scrollMenu) {
2648
+ destroyScroll(getInstance(scrollMenu, VScroll), scrollMenu);
2649
+ }
2606
2650
  detach(cli.parentNode);
2607
2651
  this.navIdx.pop();
2608
2652
  }
@@ -3054,6 +3098,11 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3054
3098
  EventHandler.remove(document, 'click', this.delegateClickHandler);
3055
3099
  this.unWireKeyboardEvent(wrapper);
3056
3100
  this.rippleFn();
3101
+ if (!this.isMenu && this.enableScrolling) {
3102
+ wrapper.removeEventListener('touchstart', this.touchStartFn);
3103
+ wrapper.removeEventListener('touchmove', this.touchMoveFn);
3104
+ document.removeEventListener('touchstart', this.touchOutsideHandler);
3105
+ }
3057
3106
  };
3058
3107
  MenuBase.prototype.unWireKeyboardEvent = function (element) {
3059
3108
  var keyboardModule = getInstance(element, KeyboardEvents);
@@ -3116,6 +3165,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3116
3165
  else {
3117
3166
  _this.end(options.element, isMenuOpen);
3118
3167
  }
3168
+ _this.isKBDAction = false;
3119
3169
  }
3120
3170
  });
3121
3171
  }
@@ -3141,14 +3191,14 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3141
3191
  scrollMenu.style.display = 'block';
3142
3192
  }
3143
3193
  this.triggerOpen(ul);
3144
- if (ul.querySelector('.' + FOCUSED)) {
3194
+ if (ul.querySelector('.' + FOCUSED) && this.isKBDAction) {
3145
3195
  ul.querySelector('.' + FOCUSED).focus();
3146
3196
  }
3147
3197
  else {
3148
3198
  var ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
3149
3199
  if (this.currentTarget) {
3150
3200
  if (!(this.currentTarget.classList.contains('e-numerictextbox') || this.currentTarget.classList.contains('e-textbox') || this.currentTarget.tagName === 'INPUT')) {
3151
- if (ele) {
3201
+ if (ele && this.isKBDAction) {
3152
3202
  ele.querySelector('.' + SELECTED).focus();
3153
3203
  }
3154
3204
  else {
@@ -3157,7 +3207,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3157
3207
  }
3158
3208
  }
3159
3209
  else {
3160
- if (ele) {
3210
+ if (ele && this.isKBDAction) {
3161
3211
  ele.querySelector('.' + SELECTED).focus();
3162
3212
  }
3163
3213
  else {
@@ -3291,6 +3341,10 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
3291
3341
  if (Browser.isDevice && !ul.classList.contains('e-contextmenu')) {
3292
3342
  ul.children[idx + 1].classList.remove(disabled);
3293
3343
  }
3344
+ else if (this.enableScrolling && !ul.classList.contains('e-menu-parent')) {
3345
+ var mainUl = ul.querySelector('.e-menu-parent');
3346
+ mainUl.children[idx].classList.remove(disabled);
3347
+ }
3294
3348
  else {
3295
3349
  ul.children[idx].classList.remove(disabled);
3296
3350
  }
@@ -8254,7 +8308,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8254
8308
  attrs: { 'role': 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + this.tabId + '_' + index }
8255
8309
  });
8256
8310
  if (['Dynamic', 'Demand'].indexOf(this.loadOn) !== -1 ||
8257
- (this.loadOn === 'Init' && index === Number(this.extIndex(this.itemIndexArray[0])))) {
8311
+ (this.loadOn === 'Init' && index === this.selectedItem)) {
8258
8312
  addClass([contentElement], CLS_ACTIVE$1);
8259
8313
  }
8260
8314
  return contentElement;
@@ -8841,7 +8895,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8841
8895
  if (this.isTemplate === true) {
8842
8896
  var cnt = selectAll('.' + CLS_CONTENT$1 + ' > .' + CLS_ITEM$2, this.element);
8843
8897
  for (var i = 0; i < cnt.length; i++) {
8844
- cnt[i].setAttribute('style', 'display:block; visibility: visible');
8898
+ cnt[i].style.display = 'block';
8899
+ cnt[i].style.visibility = 'visible';
8845
8900
  this.maxHeight = Math.max(this.maxHeight, this.getHeight(cnt[i]));
8846
8901
  cnt[i].style.removeProperty('display');
8847
8902
  cnt[i].style.removeProperty('visibility');
@@ -9654,6 +9709,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9654
9709
  item.disabled = item.disabled || false;
9655
9710
  item.visible = item.visible || true;
9656
9711
  }
9712
+ if (items && items.length !== 0 && this.element && this.element.classList.contains(CLS_HIDDEN$1)) {
9713
+ this.element.classList.remove(CLS_HIDDEN$1);
9714
+ }
9657
9715
  this.trigger('adding', addArgs, function (tabAddingArgs) {
9658
9716
  if (!tabAddingArgs.cancel) {
9659
9717
  _this.addingTabContent(items, index);
@@ -9782,6 +9840,16 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9782
9840
  _this.tbItem = selectAll('.' + CLS_TB_ITEM, _this.getTabHeader());
9783
9841
  index = _this.getSelectingTabIndex(index);
9784
9842
  index = !isNaN(index) && index >= 0 && _this.tbItem.length > index ? index : 0;
9843
+ var tabItem = _this.tbItem[index];
9844
+ if (tabItem) {
9845
+ if (tabItem.classList.contains(CLS_HIDDEN$1)) {
9846
+ tabItem.classList.remove(CLS_HIDDEN$1);
9847
+ }
9848
+ var firstChild = tabItem.firstElementChild;
9849
+ if (firstChild && firstChild.hasAttribute('aria-hidden')) {
9850
+ firstChild.removeAttribute('aria-hidden');
9851
+ }
9852
+ }
9785
9853
  _this.selectedItem = index;
9786
9854
  _this.select(index);
9787
9855
  }
@@ -9794,7 +9862,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9794
9862
  _this.tbItem = selectAll('.' + CLS_TB_ITEM, _this.getTabHeader());
9795
9863
  }
9796
9864
  if (selectAll('.' + CLS_TB_ITEM, _this.element).length === 0) {
9797
- _this.hdrEle.style.display = 'none';
9865
+ var cnt = select('.' + CLS_CONTENT$1, _this.element);
9866
+ detach(_this.hdrEle);
9867
+ detach(cnt);
9798
9868
  }
9799
9869
  _this.enableAnimation = true;
9800
9870
  }
@@ -9804,7 +9874,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9804
9874
  * Shows or hides the Tab that is in the specified index.
9805
9875
  *
9806
9876
  * @param {number} index - Index value of target item.
9807
- * @param {boolean} value - Based on this Boolean value, item will be hide (false) or show (true). By default, value is true.
9877
+ * @param {boolean} value - Based on this Boolean value, item will be hide (true) or show (false). By default, value is true.
9808
9878
  * @returns {void}.
9809
9879
  */
9810
9880
  Tab.prototype.hideTab = function (index, value) {
@@ -11189,7 +11259,8 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11189
11259
  this.trigger('drawNode', eventArgs);
11190
11260
  if (e.curData[this.fields.selectable] === false && !this.showCheckBox) {
11191
11261
  e.item.classList.add(PREVENTSELECT);
11192
- e.item.firstElementChild.setAttribute('style', 'cursor: not-allowed');
11262
+ var firstChild = e.item.firstElementChild;
11263
+ firstChild.style.cursor = 'not-allowed';
11193
11264
  }
11194
11265
  }
11195
11266
  };
@@ -13521,7 +13592,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13521
13592
  this.trigger('nodeEditing', eventArgs, function (observedArgs) {
13522
13593
  if (!observedArgs.cancel) {
13523
13594
  var inpWidth = textEle.offsetWidth + 5;
13524
- var style_1 = 'width:' + inpWidth + 'px';
13595
+ var widthSize_1 = inpWidth + 'px';
13525
13596
  addClass([liEle], EDITING);
13526
13597
  if (!isNullOrUndefined(_this.nodeTemplateFn)) {
13527
13598
  _this.destroyTemplate(liEle);
@@ -13529,16 +13600,16 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13529
13600
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13530
13601
  if (_this.isReact) {
13531
13602
  setTimeout(function () {
13532
- _this.renderTextBox(eventArgs, textEle, style_1);
13603
+ _this.renderTextBox(eventArgs, textEle, widthSize_1);
13533
13604
  }, 5);
13534
13605
  }
13535
13606
  else {
13536
- _this.renderTextBox(eventArgs, textEle, style_1);
13607
+ _this.renderTextBox(eventArgs, textEle, widthSize_1);
13537
13608
  }
13538
13609
  }
13539
13610
  });
13540
13611
  };
13541
- TreeView.prototype.renderTextBox = function (eventArgs, textEle, style) {
13612
+ TreeView.prototype.renderTextBox = function (eventArgs, textEle, widthSize) {
13542
13613
  textEle.innerHTML = eventArgs.innerHtml;
13543
13614
  var inpEle = select('.' + TREEINPUT, textEle);
13544
13615
  this.inputObj = Input.createInput({
@@ -13547,7 +13618,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13547
13618
  enableRtl: this.enableRtl
13548
13619
  }
13549
13620
  }, this.createElement);
13550
- this.inputObj.container.setAttribute('style', style);
13621
+ this.inputObj.container.style.width = widthSize;
13551
13622
  inpEle.focus();
13552
13623
  var inputEle = inpEle;
13553
13624
  inputEle.setSelectionRange(0, inputEle.value.length);
@@ -16304,7 +16375,7 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
16304
16375
  if (!isNullOrUndefined(this.tabIndex)) {
16305
16376
  this.element.setAttribute('tabindex', this.tabIndex);
16306
16377
  }
16307
- if (this.type === 'Auto' && !Browser.isDevice) {
16378
+ if (this.type === 'Auto' && !Browser.isDevice && this.checkMediaQuery()) {
16308
16379
  this.show();
16309
16380
  }
16310
16381
  else if (!this.isOpen) {
@@ -16530,6 +16601,13 @@ var Sidebar = /** @__PURE__ @class */ (function (_super) {
16530
16601
  }
16531
16602
  }
16532
16603
  };
16604
+ Sidebar.prototype.checkMediaQuery = function () {
16605
+ if (isNullOrUndefined(this.mediaQuery)) {
16606
+ return true;
16607
+ }
16608
+ return (typeof (this.mediaQuery) === 'string') ?
16609
+ window.matchMedia(this.mediaQuery).matches : (this.mediaQuery).matches;
16610
+ };
16533
16611
  Sidebar.prototype.resize = function () {
16534
16612
  if (!isNullOrUndefined(this.width) && this.width !== 'auto' && typeof this.width === 'string' && !this.width.includes('px')) {
16535
16613
  this.setType(this.type);