@syncfusion/ej2-navigations 20.4.52 → 21.1.35

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 (257) hide show
  1. package/CHANGELOG.md +32 -4
  2. package/README.md +213 -143
  3. package/dist/ej2-navigations.min.js +2 -2
  4. package/dist/ej2-navigations.umd.min.js +2 -2
  5. package/dist/ej2-navigations.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es2015.js +128 -34
  7. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-navigations.es5.js +127 -33
  9. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  10. package/dist/global/ej2-navigations.min.js +2 -2
  11. package/dist/global/ej2-navigations.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +13 -12
  14. package/src/accordion/accordion-model.d.ts +4 -4
  15. package/src/accordion/accordion.d.ts +8 -4
  16. package/src/appbar/appbar-model.d.ts +9 -9
  17. package/src/appbar/appbar.d.ts +24 -21
  18. package/src/breadcrumb/breadcrumb-model.d.ts +4 -2
  19. package/src/breadcrumb/breadcrumb.d.ts +32 -3
  20. package/src/breadcrumb/breadcrumb.js +32 -0
  21. package/src/carousel/carousel-model.d.ts +7 -7
  22. package/src/carousel/carousel.d.ts +24 -20
  23. package/src/carousel/carousel.js +25 -11
  24. package/src/common/menu-base.d.ts +13 -2
  25. package/src/menu/menu.d.ts +5 -1
  26. package/src/sidebar/sidebar.d.ts +26 -2
  27. package/src/sidebar/sidebar.js +1 -1
  28. package/src/tab/tab-model.d.ts +20 -20
  29. package/src/tab/tab.d.ts +38 -21
  30. package/src/tab/tab.js +32 -5
  31. package/src/toolbar/toolbar-model.d.ts +22 -16
  32. package/src/toolbar/toolbar.d.ts +48 -16
  33. package/src/toolbar/toolbar.js +10 -4
  34. package/src/treeview/treeview-model.d.ts +4 -4
  35. package/src/treeview/treeview.d.ts +32 -4
  36. package/src/treeview/treeview.js +26 -11
  37. package/styles/accordion/_bootstrap-dark-definition.scss +0 -1
  38. package/styles/accordion/_bootstrap-definition.scss +0 -1
  39. package/styles/accordion/_bootstrap4-definition.scss +0 -1
  40. package/styles/accordion/_bootstrap5-definition.scss +6 -7
  41. package/styles/accordion/_fabric-dark-definition.scss +0 -1
  42. package/styles/accordion/_fabric-definition.scss +0 -1
  43. package/styles/accordion/_fluent-definition.scss +5 -6
  44. package/styles/accordion/_fusionnew-definition.scss +0 -1
  45. package/styles/accordion/_highcontrast-definition.scss +0 -1
  46. package/styles/accordion/_highcontrast-light-definition.scss +0 -1
  47. package/styles/accordion/_layout.scss +0 -1
  48. package/styles/accordion/_material-dark-definition.scss +0 -1
  49. package/styles/accordion/_material-definition.scss +0 -1
  50. package/styles/accordion/_tailwind-definition.scss +5 -6
  51. package/styles/accordion/bootstrap-dark.css +0 -1
  52. package/styles/accordion/bootstrap.css +0 -1
  53. package/styles/accordion/bootstrap4.css +0 -1
  54. package/styles/accordion/bootstrap5-dark.css +3 -4
  55. package/styles/accordion/bootstrap5.css +3 -4
  56. package/styles/accordion/fabric-dark.css +0 -1
  57. package/styles/accordion/fabric.css +0 -1
  58. package/styles/accordion/fluent-dark.css +3 -4
  59. package/styles/accordion/fluent.css +3 -4
  60. package/styles/accordion/highcontrast-light.css +0 -1
  61. package/styles/accordion/highcontrast.css +0 -1
  62. package/styles/accordion/material-dark.css +0 -1
  63. package/styles/accordion/material.css +0 -1
  64. package/styles/accordion/tailwind-dark.css +3 -4
  65. package/styles/accordion/tailwind.css +3 -4
  66. package/styles/appbar/_bootstrap5-definition.scss +2 -2
  67. package/styles/appbar/_fluent-definition.scss +2 -2
  68. package/styles/appbar/_layout.scss +3 -0
  69. package/styles/appbar/_tailwind-definition.scss +2 -2
  70. package/styles/appbar/bootstrap-dark.css +3 -0
  71. package/styles/appbar/bootstrap.css +3 -0
  72. package/styles/appbar/bootstrap4.css +3 -0
  73. package/styles/appbar/bootstrap5-dark.css +3 -0
  74. package/styles/appbar/bootstrap5.css +3 -0
  75. package/styles/appbar/fabric-dark.css +3 -0
  76. package/styles/appbar/fabric.css +3 -0
  77. package/styles/appbar/fluent-dark.css +3 -0
  78. package/styles/appbar/fluent.css +3 -0
  79. package/styles/appbar/highcontrast-light.css +3 -0
  80. package/styles/appbar/highcontrast.css +3 -0
  81. package/styles/appbar/material-dark.css +3 -0
  82. package/styles/appbar/material.css +3 -0
  83. package/styles/appbar/tailwind-dark.css +3 -0
  84. package/styles/appbar/tailwind.css +3 -0
  85. package/styles/bootstrap-dark.css +669 -938
  86. package/styles/bootstrap.css +658 -927
  87. package/styles/bootstrap4.css +724 -993
  88. package/styles/bootstrap5-dark.css +685 -954
  89. package/styles/bootstrap5.css +686 -955
  90. package/styles/breadcrumb/_bootstrap5-definition.scss +2 -2
  91. package/styles/breadcrumb/_fluent-definition.scss +2 -2
  92. package/styles/breadcrumb/_layout.scss +2 -2
  93. package/styles/breadcrumb/_tailwind-definition.scss +2 -2
  94. package/styles/breadcrumb/_theme.scss +18 -2
  95. package/styles/carousel/_layout.scss +7 -0
  96. package/styles/carousel/bootstrap-dark.css +4 -0
  97. package/styles/carousel/bootstrap.css +4 -0
  98. package/styles/carousel/bootstrap4.css +4 -0
  99. package/styles/carousel/bootstrap5-dark.css +4 -0
  100. package/styles/carousel/bootstrap5.css +4 -0
  101. package/styles/carousel/fabric-dark.css +4 -0
  102. package/styles/carousel/fabric.css +4 -0
  103. package/styles/carousel/fluent-dark.css +4 -0
  104. package/styles/carousel/fluent.css +4 -0
  105. package/styles/carousel/highcontrast-light.css +4 -0
  106. package/styles/carousel/highcontrast.css +4 -0
  107. package/styles/carousel/material-dark.css +4 -0
  108. package/styles/carousel/material.css +4 -0
  109. package/styles/carousel/tailwind-dark.css +4 -0
  110. package/styles/carousel/tailwind.css +4 -0
  111. package/styles/context-menu/_bootstrap5-definition.scss +3 -3
  112. package/styles/context-menu/_fluent-definition.scss +2 -2
  113. package/styles/context-menu/_tailwind-definition.scss +3 -3
  114. package/styles/fabric-dark.css +669 -938
  115. package/styles/fabric.css +669 -938
  116. package/styles/fluent-dark.css +677 -946
  117. package/styles/fluent.css +677 -946
  118. package/styles/h-scroll/_bootstrap-dark-definition.scss +0 -1
  119. package/styles/h-scroll/_bootstrap-definition.scss +0 -1
  120. package/styles/h-scroll/_bootstrap4-definition.scss +0 -1
  121. package/styles/h-scroll/_bootstrap5-definition.scss +0 -1
  122. package/styles/h-scroll/_fabric-dark-definition.scss +0 -1
  123. package/styles/h-scroll/_fabric-definition.scss +0 -1
  124. package/styles/h-scroll/_fluent-definition.scss +0 -1
  125. package/styles/h-scroll/_fusionnew-definition.scss +0 -1
  126. package/styles/h-scroll/_highcontrast-definition.scss +0 -1
  127. package/styles/h-scroll/_highcontrast-light-definition.scss +0 -1
  128. package/styles/h-scroll/_layout.scss +1 -0
  129. package/styles/h-scroll/_material-dark-definition.scss +0 -1
  130. package/styles/h-scroll/_material-definition.scss +0 -1
  131. package/styles/h-scroll/_tailwind-definition.scss +0 -1
  132. package/styles/h-scroll/_theme.scss +0 -1
  133. package/styles/h-scroll/bootstrap-dark.css +1 -1
  134. package/styles/h-scroll/bootstrap.css +1 -1
  135. package/styles/h-scroll/bootstrap4.css +1 -1
  136. package/styles/h-scroll/bootstrap5-dark.css +1 -1
  137. package/styles/h-scroll/bootstrap5.css +1 -1
  138. package/styles/h-scroll/fabric-dark.css +1 -1
  139. package/styles/h-scroll/fabric.css +1 -1
  140. package/styles/h-scroll/fluent-dark.css +1 -1
  141. package/styles/h-scroll/fluent.css +1 -1
  142. package/styles/h-scroll/highcontrast-light.css +1 -1
  143. package/styles/h-scroll/highcontrast.css +1 -1
  144. package/styles/h-scroll/material-dark.css +1 -1
  145. package/styles/h-scroll/material.css +1 -1
  146. package/styles/h-scroll/tailwind-dark.css +1 -1
  147. package/styles/h-scroll/tailwind.css +1 -1
  148. package/styles/highcontrast-light.css +668 -937
  149. package/styles/highcontrast.css +675 -944
  150. package/styles/material-dark.css +669 -938
  151. package/styles/material.css +661 -930
  152. package/styles/menu/_bootstrap5-definition.scss +2 -2
  153. package/styles/menu/_layout.scss +1 -1
  154. package/styles/menu/_tailwind-definition.scss +2 -2
  155. package/styles/menu/_theme.scss +31 -15
  156. package/styles/menu/bootstrap-dark.css +7 -7
  157. package/styles/menu/bootstrap.css +7 -7
  158. package/styles/menu/bootstrap4.css +10 -10
  159. package/styles/menu/bootstrap5-dark.css +7 -7
  160. package/styles/menu/bootstrap5.css +7 -7
  161. package/styles/menu/fabric-dark.css +7 -7
  162. package/styles/menu/fabric.css +7 -7
  163. package/styles/menu/fluent-dark.css +7 -7
  164. package/styles/menu/fluent.css +7 -7
  165. package/styles/menu/highcontrast-light.css +7 -7
  166. package/styles/menu/highcontrast.css +7 -7
  167. package/styles/menu/icons/_material3.scss +12 -12
  168. package/styles/menu/material-dark.css +7 -7
  169. package/styles/menu/material.css +7 -7
  170. package/styles/menu/tailwind-dark.css +7 -7
  171. package/styles/menu/tailwind.css +7 -7
  172. package/styles/pager/_bootstrap5-definition.scss +1 -1
  173. package/styles/pager/_fusionnew-definition.scss +1 -1
  174. package/styles/sidebar/_theme.scss +1 -1
  175. package/styles/tab/_bootstrap-dark-definition.scss +0 -2
  176. package/styles/tab/_bootstrap-definition.scss +0 -2
  177. package/styles/tab/_bootstrap4-definition.scss +1 -3
  178. package/styles/tab/_bootstrap5-definition.scss +12 -14
  179. package/styles/tab/_fabric-dark-definition.scss +0 -2
  180. package/styles/tab/_fabric-definition.scss +0 -2
  181. package/styles/tab/_fluent-definition.scss +4 -6
  182. package/styles/tab/_fusionnew-definition.scss +2 -4
  183. package/styles/tab/_highcontrast-definition.scss +0 -2
  184. package/styles/tab/_highcontrast-light-definition.scss +0 -2
  185. package/styles/tab/_layout.scss +8 -6
  186. package/styles/tab/_material-dark-definition.scss +0 -2
  187. package/styles/tab/_material-definition.scss +0 -2
  188. package/styles/tab/_tailwind-definition.scss +3 -5
  189. package/styles/tab/_theme.scss +0 -1
  190. package/styles/tab/bootstrap-dark.css +5 -2
  191. package/styles/tab/bootstrap.css +5 -2
  192. package/styles/tab/bootstrap4.css +12 -9
  193. package/styles/tab/bootstrap5-dark.css +11 -8
  194. package/styles/tab/bootstrap5.css +11 -8
  195. package/styles/tab/fabric-dark.css +7 -4
  196. package/styles/tab/fabric.css +7 -4
  197. package/styles/tab/fluent-dark.css +8 -5
  198. package/styles/tab/fluent.css +8 -5
  199. package/styles/tab/highcontrast-light.css +10 -7
  200. package/styles/tab/highcontrast.css +10 -7
  201. package/styles/tab/material-dark.css +4 -1
  202. package/styles/tab/material.css +4 -1
  203. package/styles/tab/tailwind-dark.css +8 -5
  204. package/styles/tab/tailwind.css +8 -5
  205. package/styles/tailwind-dark.css +668 -937
  206. package/styles/tailwind.css +668 -937
  207. package/styles/toolbar/_bootstrap-dark-definition.scss +13 -41
  208. package/styles/toolbar/_bootstrap-definition.scss +13 -41
  209. package/styles/toolbar/_bootstrap4-definition.scss +15 -43
  210. package/styles/toolbar/_bootstrap5-definition.scss +21 -49
  211. package/styles/toolbar/_fabric-dark-definition.scss +14 -43
  212. package/styles/toolbar/_fabric-definition.scss +15 -43
  213. package/styles/toolbar/_fluent-definition.scss +22 -50
  214. package/styles/toolbar/_fusionnew-definition.scss +17 -45
  215. package/styles/toolbar/_highcontrast-definition.scss +15 -43
  216. package/styles/toolbar/_highcontrast-light-definition.scss +14 -43
  217. package/styles/toolbar/_layout.scss +684 -977
  218. package/styles/toolbar/_material-dark-definition.scss +19 -49
  219. package/styles/toolbar/_material-definition.scss +21 -49
  220. package/styles/toolbar/_tailwind-definition.scss +21 -49
  221. package/styles/toolbar/_theme.scss +205 -294
  222. package/styles/toolbar/bootstrap-dark.css +647 -925
  223. package/styles/toolbar/bootstrap.css +638 -916
  224. package/styles/toolbar/bootstrap4.css +657 -935
  225. package/styles/toolbar/bootstrap5-dark.css +658 -936
  226. package/styles/toolbar/bootstrap5.css +658 -936
  227. package/styles/toolbar/fabric-dark.css +645 -923
  228. package/styles/toolbar/fabric.css +651 -929
  229. package/styles/toolbar/fluent-dark.css +650 -928
  230. package/styles/toolbar/fluent.css +650 -928
  231. package/styles/toolbar/highcontrast-light.css +642 -920
  232. package/styles/toolbar/highcontrast.css +647 -925
  233. package/styles/toolbar/material-dark.css +649 -927
  234. package/styles/toolbar/material.css +646 -924
  235. package/styles/toolbar/tailwind-dark.css +647 -925
  236. package/styles/toolbar/tailwind.css +645 -923
  237. package/styles/treeview/_bootstrap5-definition.scss +5 -5
  238. package/styles/treeview/_fluent-definition.scss +5 -5
  239. package/styles/treeview/_layout.scss +8 -4
  240. package/styles/treeview/_tailwind-definition.scss +5 -5
  241. package/styles/treeview/_theme.scss +3 -0
  242. package/GitLeaksReport.json +0 -1
  243. package/gitleaks-ci/gitleaks +0 -0
  244. package/gitleaks-ci.tar.gz +0 -0
  245. package/styles/accordion/_material3-definition.scss +0 -181
  246. package/styles/appbar/_material3-definition.scss +0 -8
  247. package/styles/breadcrumb/_material3-definition.scss +0 -59
  248. package/styles/carousel/_material3-definition.scss +0 -22
  249. package/styles/context-menu/_material3-definition.scss +0 -52
  250. package/styles/h-scroll/_material3-definition.scss +0 -84
  251. package/styles/menu/_material3-definition.scss +0 -67
  252. package/styles/pager/_material3-definition.scss +0 -146
  253. package/styles/sidebar/_material3-definition.scss +0 -6
  254. package/styles/tab/_material3-definition.scss +0 -658
  255. package/styles/toolbar/_material3-definition.scss +0 -248
  256. package/styles/treeview/_material3-definition.scss +0 -120
  257. package/styles/v-scroll/_material3-definition.scss +0 -49
@@ -4742,7 +4742,9 @@ let Toolbar = class Toolbar extends Component {
4742
4742
  innerEle.forEach((ele) => {
4743
4743
  if (ele.tagName === 'DIV') {
4744
4744
  this.tbarEle.push(ele);
4745
- ele.setAttribute('aria-disabled', 'false');
4745
+ if (!isNullOrUndefined(ele.firstElementChild)) {
4746
+ ele.firstElementChild.setAttribute('aria-disabled', 'false');
4747
+ }
4746
4748
  this.add(ele, CLS_ITEM);
4747
4749
  }
4748
4750
  });
@@ -4796,11 +4798,15 @@ let Toolbar = class Toolbar extends Component {
4796
4798
  const enable = (isEnable, ele) => {
4797
4799
  if (isEnable) {
4798
4800
  ele.classList.remove(CLS_DISABLE$2);
4799
- ele.setAttribute('aria-disabled', 'false');
4801
+ if (!isNullOrUndefined(ele.firstElementChild)) {
4802
+ ele.firstElementChild.setAttribute('aria-disabled', 'false');
4803
+ }
4800
4804
  }
4801
4805
  else {
4802
4806
  ele.classList.add(CLS_DISABLE$2);
4803
- ele.setAttribute('aria-disabled', 'true');
4807
+ if (!isNullOrUndefined(ele.firstElementChild)) {
4808
+ ele.firstElementChild.setAttribute('aria-disabled', 'true');
4809
+ }
4804
4810
  }
4805
4811
  };
4806
4812
  if (!isNullOrUndefined(len) && len >= 1) {
@@ -5075,7 +5081,6 @@ let Toolbar = class Toolbar extends Component {
5075
5081
  renderSubComponent(item, index) {
5076
5082
  let dom;
5077
5083
  const innerEle = this.createElement('div', { className: CLS_ITEM });
5078
- innerEle.setAttribute('aria-disabled', 'false');
5079
5084
  const tempDom = this.createElement('div', {
5080
5085
  innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5081
5086
  });
@@ -5101,6 +5106,7 @@ let Toolbar = class Toolbar extends Component {
5101
5106
  dom.setAttribute('tabindex', isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString());
5102
5107
  dom.setAttribute('data-tabindex', isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString());
5103
5108
  dom.setAttribute('aria-label', (item.text || item.tooltipText));
5109
+ dom.setAttribute('aria-disabled', 'false');
5104
5110
  innerEle.appendChild(dom);
5105
5111
  innerEle.addEventListener('click', this.itemClick.bind(this));
5106
5112
  break;
@@ -5400,7 +5406,7 @@ let Toolbar = class Toolbar extends Component {
5400
5406
  */
5401
5407
  hideItem(index, value) {
5402
5408
  const isElement = (typeof (index) === 'object') ? true : false;
5403
- let eleIndex = index;
5409
+ const eleIndex = index;
5404
5410
  let ele;
5405
5411
  if (!isElement && isNullOrUndefined(eleIndex)) {
5406
5412
  return;
@@ -7542,7 +7548,7 @@ let Tab = class Tab extends Component {
7542
7548
  }).outerHTML;
7543
7549
  const wrap = this.createElement('div', {
7544
7550
  className: CLS_WRAP, innerHTML: cont,
7545
- attrs: { role: 'tab', tabIndex: '-1', 'aria-selected': 'false', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index }
7551
+ attrs: { role: 'tab', tabIndex: '-1', 'aria-selected': 'false', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index, 'aria-disabled': 'false' }
7546
7552
  });
7547
7553
  tabItems.appendChild(this.createElement('div', attr));
7548
7554
  selectAll('.' + CLS_ITEM$2, tabItems)[index].appendChild(wrap);
@@ -7670,7 +7676,7 @@ let Tab = class Tab extends Component {
7670
7676
  }
7671
7677
  }
7672
7678
  const tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();
7673
- const wrapAttrs = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'false' };
7679
+ const wrapAttrs = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'false', 'aria-disabled': 'false' };
7674
7680
  tCont.appendChild(this.btnCls.cloneNode(true));
7675
7681
  const wrap = this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
7676
7682
  wrap.appendChild(tCont);
@@ -8484,6 +8490,7 @@ let Tab = class Tab extends Component {
8484
8490
  const scrCnt = select('.' + this.scrCntClass, this.tbItems);
8485
8491
  if (!this.isVertical() && !isNullOrUndefined(scrCnt)) {
8486
8492
  const scrBar = select('.e-hscroll-bar', this.tbItems);
8493
+ scrBar.removeAttribute('tabindex');
8487
8494
  const scrStart = scrBar.scrollLeft;
8488
8495
  const scrEnd = scrStart + scrBar.offsetWidth;
8489
8496
  const eleStart = target.offsetLeft;
@@ -8853,7 +8860,7 @@ let Tab = class Tab extends Component {
8853
8860
  this.items[index].disabled = !value;
8854
8861
  this.dataBind();
8855
8862
  }
8856
- tbItems.setAttribute('aria-disabled', (value === true) ? 'false' : 'true');
8863
+ tbItems.firstElementChild.setAttribute('aria-disabled', (value === true) ? 'false' : 'true');
8857
8864
  }
8858
8865
  /**
8859
8866
  * Adds new items to the Tab that accepts an array as Tab items.
@@ -8971,6 +8978,32 @@ let Tab = class Tab extends Component {
8971
8978
  this.refreshActiveBorder();
8972
8979
  const cntTrg = select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.extIndex(trg.id), select('.' + CLS_CONTENT$1, this.element));
8973
8980
  if (!isNullOrUndefined(cntTrg)) {
8981
+ const registeredTemplate = this.registeredTemplate;
8982
+ const portal = this.portals;
8983
+ if (registeredTemplate && registeredTemplate.content) {
8984
+ var templateToClear = [];
8985
+ for (let i = 0; i < registeredTemplate.content.length; i++) {
8986
+ let registeredItem = registeredTemplate.content[i].rootNodes[0];
8987
+ let closestItem = closest(registeredItem, '.' + CLS_ITEM$2);
8988
+ if (!isNullOrUndefined(registeredItem) && closestItem === cntTrg) {
8989
+ templateToClear.push(registeredTemplate.content[i]);
8990
+ break;
8991
+ }
8992
+ }
8993
+ if (templateToClear.length > 0) {
8994
+ this.clearTemplate(['content'], templateToClear);
8995
+ }
8996
+ }
8997
+ else if (portal) {
8998
+ for (var i = 0; i < portal.length; i++) {
8999
+ var portalItem = portal[i];
9000
+ var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM$2);
9001
+ if (!isNullOrUndefined(portalItem) && closestItem === cntTrg) {
9002
+ this.clearTemplate(['content'], i);
9003
+ break;
9004
+ }
9005
+ }
9006
+ }
8974
9007
  detach(cntTrg);
8975
9008
  }
8976
9009
  this.trigger('removed', tabRemovingArgs);
@@ -9342,7 +9375,7 @@ let Tab = class Tab extends Component {
9342
9375
  }
9343
9376
  }
9344
9377
  const tabIndex = isNullOrUndefined(item.tabIndex) ? '-1' : item.tabIndex.toString();
9345
- const wrapAtt = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'true' };
9378
+ const wrapAtt = (item.disabled) ? {} : { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-selected': 'true', 'aria-disabled': 'false' };
9346
9379
  tConts.appendChild(this.btnCls.cloneNode(true));
9347
9380
  const wraper = this.createElement('div', { className: CLS_WRAP, attrs: wrapAtt });
9348
9381
  wraper.appendChild(tConts);
@@ -9404,7 +9437,7 @@ let Tab = class Tab extends Component {
9404
9437
  const tabIndex = element.firstElementChild.getAttribute('data-tabindex');
9405
9438
  const wrap = this.createElement('div', {
9406
9439
  className: CLS_WRAP, innerHTML: conte,
9407
- attrs: { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index, 'aria-selected': 'true' }
9440
+ attrs: { tabIndex: tabIndex, 'data-tabindex': tabIndex, role: 'tab', 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + index, 'aria-selected': 'true', 'aria-disabled': 'false' }
9408
9441
  });
9409
9442
  tabItems.insertBefore(this.createElement('div', attr), tabItems.children[index + 1]);
9410
9443
  this.element.querySelector('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1).appendChild(wrap);
@@ -11469,6 +11502,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11469
11502
  if (this.isLoaded) {
11470
11503
  eventArgs.nodeData = this.getNodeData(li);
11471
11504
  this.trigger('nodeSelected', eventArgs);
11505
+ this.isRightClick = false;
11472
11506
  }
11473
11507
  this.isRightClick = false;
11474
11508
  }
@@ -12101,7 +12135,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12101
12135
  focusIn() {
12102
12136
  if (!this.mouseDownStatus) {
12103
12137
  let focusedElement = this.getFocusedNode();
12104
- focusedElement.setAttribute("tanindex", "0");
12138
+ focusedElement.setAttribute("tabindex", "0");
12105
12139
  addClass([focusedElement], [HOVER, FOCUS]);
12106
12140
  EventHandler.add(focusedElement, 'blur', this.focusOut, this);
12107
12141
  }
@@ -12314,7 +12348,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12314
12348
  this.renderReactTemplates();
12315
12349
  }
12316
12350
  else {
12317
- txtEle.innerText = newText;
12351
+ this.enableHtmlSanitizer ? txtEle.innerText = newText : txtEle.innerHTML = newText;
12318
12352
  }
12319
12353
  if (isInput) {
12320
12354
  removeClass([liEle], EDITING);
@@ -12511,7 +12545,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12511
12545
  });
12512
12546
  this.dropObj = new Droppable(this.element, {
12513
12547
  out: (e) => {
12514
- if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING)) {
12548
+ if (!isNullOrUndefined(e) && !e.target.classList.contains(SIBLING) && (this.dropObj.dragData.default && this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
12515
12549
  document.body.style.cursor = 'not-allowed';
12516
12550
  }
12517
12551
  },
@@ -13208,15 +13242,29 @@ let TreeView = TreeView_1 = class TreeView extends Component {
13208
13242
  }
13209
13243
  }
13210
13244
  if (!refNode && ((this.sortOrder === 'Ascending') || (this.sortOrder === 'Descending'))) {
13211
- let cNodes = dropUl.childNodes;
13212
- for (let i = 0; i < li.length; i++) {
13213
- for (let j = 0; j < cNodes.length; j++) {
13214
- let returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
13215
- if (returnValue) {
13216
- dropUl.insertBefore(li[i], cNodes[j]);
13217
- break;
13245
+ if (dropUl.childNodes.length === 0) {
13246
+ for (let i = 0; i < li.length; i++) {
13247
+ dropUl.insertBefore(li[i], refNode);
13248
+ }
13249
+ if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
13250
+ this.preventExpand = false;
13251
+ let dropIcon = select('div.' + ICON, dropLi);
13252
+ if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
13253
+ this.expandAction(dropLi, dropIcon, null);
13254
+ }
13255
+ }
13256
+ }
13257
+ else {
13258
+ let cNodes = dropUl.childNodes;
13259
+ for (let i = 0; i < li.length; i++) {
13260
+ for (let j = 0; j < cNodes.length; j++) {
13261
+ let returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
13262
+ if (returnValue) {
13263
+ dropUl.insertBefore(li[i], cNodes[j]);
13264
+ break;
13265
+ }
13266
+ dropUl.insertBefore(li[i], cNodes[cNodes.length]);
13218
13267
  }
13219
- dropUl.insertBefore(li[i], cNodes[cNodes.length]);
13220
13268
  }
13221
13269
  }
13222
13270
  }
@@ -14758,7 +14806,7 @@ let Sidebar = class Sidebar extends Component {
14758
14806
  setStyleAttribute(this.element, { 'z-index': '' + this.zIndex });
14759
14807
  }
14760
14808
  addClass() {
14761
- if (this.element.tagName === "EJS-SIDEBAR") {
14809
+ if (this.element.tagName === 'EJS-SIDEBAR') {
14762
14810
  addClass([this.element], DISPLAY);
14763
14811
  }
14764
14812
  const classELement = document.querySelector('.e-main-content');
@@ -15347,6 +15395,38 @@ const TABINDEX = 'tabindex';
15347
15395
  const DISABLEDCLASS = 'e-disabled';
15348
15396
  const ARIADISABLED = 'aria-disabled';
15349
15397
  const DOT = '.';
15398
+ /**
15399
+ * Defines the Breadcrumb overflow modes.
15400
+ */
15401
+ var BreadcrumbOverflowMode;
15402
+ (function (BreadcrumbOverflowMode) {
15403
+ /**
15404
+ * Hidden mode shows the maximum number of items possible in the container space and hides the remaining items.
15405
+ * Clicking on a previous item will make the hidden item visible.
15406
+ */
15407
+ BreadcrumbOverflowMode["Hidden"] = "Hidden";
15408
+ /**
15409
+ * Collapsed mode shows the first and last Breadcrumb items and hides the remaining items with a collapsed icon.
15410
+ * When the collapsed icon is clicked, all items become visible and navigable.
15411
+ */
15412
+ BreadcrumbOverflowMode["Collapsed"] = "Collapsed";
15413
+ /**
15414
+ * Menu mode shows the number of Breadcrumb items that can be accommodated within the container space and creates a submenu with the remaining items.
15415
+ */
15416
+ BreadcrumbOverflowMode["Menu"] = "Menu";
15417
+ /**
15418
+ * Wrap mode wraps the items to multiple lines when the Breadcrumb’s width exceeds the container space.
15419
+ */
15420
+ BreadcrumbOverflowMode["Wrap"] = "Wrap";
15421
+ /**
15422
+ * Scroll mode shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
15423
+ */
15424
+ BreadcrumbOverflowMode["Scroll"] = "Scroll";
15425
+ /**
15426
+ * None mode shows all the items in a single line.
15427
+ */
15428
+ BreadcrumbOverflowMode["None"] = "None";
15429
+ })(BreadcrumbOverflowMode || (BreadcrumbOverflowMode = {}));
15350
15430
  class BreadcrumbItem extends ChildProperty {
15351
15431
  }
15352
15432
  __decorate$10([
@@ -16168,6 +16248,7 @@ let Carousel = class Carousel extends Component {
16168
16248
  }
16169
16249
  onPropertyChanged(newProp, oldProp) {
16170
16250
  let target;
16251
+ let rtlElement;
16171
16252
  for (const prop of Object.keys(newProp)) {
16172
16253
  switch (prop) {
16173
16254
  case 'animationEffect':
@@ -16203,11 +16284,20 @@ let Carousel = class Carousel extends Component {
16203
16284
  }
16204
16285
  break;
16205
16286
  case 'enableRtl':
16287
+ rtlElement = [].slice.call(this.element.querySelectorAll(`.${CLS_PREV_BUTTON},
16288
+ .${CLS_NEXT_BUTTON}, .${CLS_PLAY_BUTTON}`));
16289
+ rtlElement.push(this.element);
16206
16290
  if (this.enableRtl) {
16207
- addClass([this.element], CLS_RTL$5);
16291
+ addClass(rtlElement, CLS_RTL$5);
16208
16292
  }
16209
16293
  else {
16210
- removeClass([this.element], CLS_RTL$5);
16294
+ removeClass(rtlElement, CLS_RTL$5);
16295
+ }
16296
+ if (this.partialVisible) {
16297
+ const itemsContainer = this.element.querySelector(`.${CLS_ITEMS$2}`);
16298
+ const cloneCount = this.loop ? 2 : 0;
16299
+ const slideWidth = itemsContainer.firstElementChild.clientWidth;
16300
+ itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
16211
16301
  }
16212
16302
  break;
16213
16303
  case 'buttonsVisibility':
@@ -16354,12 +16444,16 @@ let Carousel = class Carousel extends Component {
16354
16444
  const slideWidth = itemsContainer.firstElementChild.clientWidth;
16355
16445
  const cloneCount = this.loop ? 2 : 0;
16356
16446
  itemsContainer.style.transitionProperty = 'none';
16357
- itemsContainer.style.transform = `translateX(${-(slideWidth) * (this.selectedIndex + cloneCount)}px)`;
16447
+ itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + cloneCount);
16358
16448
  }
16359
16449
  this.autoSlide();
16360
16450
  this.renderTouchActions();
16361
16451
  this.renderKeyboardActions();
16362
16452
  }
16453
+ getTranslateX(slideWidth, count = 1) {
16454
+ return this.enableRtl ? `translateX(${(slideWidth) * (count)}px)` :
16455
+ `translateX(${-(slideWidth) * (count)}px)`;
16456
+ }
16363
16457
  renderSlide(item, itemTemplate, index, container, isClone = false) {
16364
16458
  const itemEle = this.createElement('div', {
16365
16459
  id: getUniqueID('carousel_item'),
@@ -16411,7 +16505,7 @@ let Carousel = class Carousel extends Component {
16411
16505
  }
16412
16506
  else {
16413
16507
  const button = this.createElement('button', {
16414
- attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide') }
16508
+ attrs: { 'aria-label': this.localeObj.getConstant(direction === 'Previous' ? 'previousSlide' : 'nextSlide'), 'type': 'button' }
16415
16509
  });
16416
16510
  const buttonObj = new Button({
16417
16511
  cssClass: CLS_FLAT + ' ' + CLS_ROUND + ' ' + (direction === 'Previous' ? CLS_PREV_BUTTON : CLS_NEXT_BUTTON),
@@ -16440,7 +16534,7 @@ let Carousel = class Carousel extends Component {
16440
16534
  }
16441
16535
  else {
16442
16536
  const playButton = this.createElement('button', {
16443
- attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition') }
16537
+ attrs: { 'aria-label': this.localeObj.getConstant(this.autoPlay ? 'pauseSlideTransition' : 'playSlideTransition'), 'type': 'button' }
16444
16538
  });
16445
16539
  const isLastSlide = this.selectedIndex === this.slideItems.length - 1 && !this.loop;
16446
16540
  const buttonObj = new Button({
@@ -16483,7 +16577,7 @@ let Carousel = class Carousel extends Component {
16483
16577
  append(template, indicatorBar);
16484
16578
  }
16485
16579
  else {
16486
- const indicator = this.createElement('button', { className: CLS_INDICATOR$1 });
16580
+ const indicator = this.createElement('button', { className: CLS_INDICATOR$1, attrs: { 'type': 'button' } });
16487
16581
  indicatorBar.appendChild(indicator);
16488
16582
  indicator.appendChild(this.createElement('div', {
16489
16583
  attrs: {
@@ -16634,17 +16728,17 @@ let Carousel = class Carousel extends Component {
16634
16728
  container.style.transitionProperty = 'transform';
16635
16729
  if (this.loop) {
16636
16730
  if (this.slideChangedEventArgs.currentIndex === 0 && this.slideChangedEventArgs.slideDirection === 'Next') {
16637
- container.style.transform = `translateX(${-(slideWidth) * (allSlides.length + 2)}px)`;
16731
+ container.style.transform = this.getTranslateX(slideWidth, allSlides.length + 2);
16638
16732
  }
16639
16733
  else if (this.slideChangedEventArgs.currentIndex === this.slideItems.length - 1 && this.slideChangedEventArgs.slideDirection === 'Previous') {
16640
- container.style.transform = `translateX(${-(slideWidth)}px)`;
16734
+ container.style.transform = this.getTranslateX(slideWidth);
16641
16735
  }
16642
16736
  else {
16643
- container.style.transform = `translateX(${-(slideWidth) * (currentIndex + 2)}px)`;
16737
+ container.style.transform = this.getTranslateX(slideWidth, currentIndex + 2);
16644
16738
  }
16645
16739
  }
16646
16740
  else {
16647
- container.style.transform = `translateX(${-(slideWidth) * (currentIndex)}px)`;
16741
+ container.style.transform = this.getTranslateX(slideWidth, currentIndex);
16648
16742
  }
16649
16743
  }
16650
16744
  if (this.animationEffect === 'Slide') {
@@ -16686,7 +16780,7 @@ let Carousel = class Carousel extends Component {
16686
16780
  const container = this.element.querySelector('.' + CLS_ITEMS$2);
16687
16781
  const slideWidth = this.slideChangedEventArgs.currentSlide.clientWidth;
16688
16782
  container.style.transitionProperty = 'none';
16689
- container.style.transform = `translate(${-(slideWidth) * (this.slideChangedEventArgs.currentIndex + 2)}px)`;
16783
+ container.style.transform = this.getTranslateX(slideWidth, this.slideChangedEventArgs.currentIndex + 2);
16690
16784
  }
16691
16785
  addClass([this.slideChangedEventArgs.currentSlide], CLS_ACTIVE$2);
16692
16786
  removeClass([this.slideChangedEventArgs.previousSlide], CLS_ACTIVE$2);
@@ -17316,5 +17410,5 @@ AppBar = __decorate$12([
17316
17410
  * Navigation all modules
17317
17411
  */
17318
17412
 
17319
- export { MenuAnimationSettings, MenuItem, FieldSettings, HScroll, VScroll, addScrolling, destroyScroll, Item, Toolbar, AccordionActionSettings, AccordionAnimationSettings, AccordionItem, Accordion, ContextMenu, Menu, TabActionSettings, TabAnimationSettings, Header, TabItem, Tab, FieldsSettings, ActionSettings, NodeAnimationSettings, TreeView, Sidebar, BreadcrumbItem, Breadcrumb, CarouselItem, Carousel, AppBar };
17413
+ export { MenuAnimationSettings, MenuItem, FieldSettings, HScroll, VScroll, addScrolling, destroyScroll, Item, Toolbar, AccordionActionSettings, AccordionAnimationSettings, AccordionItem, Accordion, ContextMenu, Menu, TabActionSettings, TabAnimationSettings, Header, TabItem, Tab, FieldsSettings, ActionSettings, NodeAnimationSettings, TreeView, Sidebar, BreadcrumbOverflowMode, BreadcrumbItem, Breadcrumb, CarouselItem, Carousel, AppBar };
17320
17414
  //# sourceMappingURL=ej2-navigations.es2015.js.map