@syncfusion/ej2-navigations 19.3.56 → 19.4.41

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 (255) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +63 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/feature.md +39 -0
  3. package/CHANGELOG.md +57 -0
  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 +513 -144
  7. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-navigations.es5.js +520 -145
  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 +11 -11
  14. package/src/accordion/accordion-model.d.ts +5 -5
  15. package/src/accordion/accordion.d.ts +5 -5
  16. package/src/accordion/accordion.js +2 -19
  17. package/src/breadcrumb/breadcrumb-model.d.ts +23 -11
  18. package/src/breadcrumb/breadcrumb.d.ts +33 -10
  19. package/src/breadcrumb/breadcrumb.js +320 -78
  20. package/src/common/v-scroll.js +1 -1
  21. package/src/sidebar/sidebar.js +4 -4
  22. package/src/tab/tab-model.d.ts +14 -6
  23. package/src/tab/tab.d.ts +33 -16
  24. package/src/tab/tab.js +66 -31
  25. package/src/toolbar/toolbar-model.d.ts +7 -7
  26. package/src/toolbar/toolbar.d.ts +6 -6
  27. package/src/toolbar/toolbar.js +81 -13
  28. package/src/treeview/treeview-model.d.ts +10 -0
  29. package/src/treeview/treeview.d.ts +13 -0
  30. package/src/treeview/treeview.js +48 -0
  31. package/styles/accordion/_bootstrap-dark-definition.scss +4 -0
  32. package/styles/accordion/_bootstrap-definition.scss +4 -0
  33. package/styles/accordion/_bootstrap4-definition.scss +4 -0
  34. package/styles/accordion/_bootstrap5-definition.scss +39 -35
  35. package/styles/accordion/_fabric-dark-definition.scss +4 -0
  36. package/styles/accordion/_fabric-definition.scss +4 -0
  37. package/styles/accordion/_fluent-definition.scss +85 -0
  38. package/styles/accordion/_highcontrast-definition.scss +5 -1
  39. package/styles/accordion/_highcontrast-light-definition.scss +4 -0
  40. package/styles/accordion/_layout.scss +6 -14
  41. package/styles/accordion/_material-dark-definition.scss +4 -0
  42. package/styles/accordion/_material-definition.scss +4 -0
  43. package/styles/accordion/_tailwind-definition.scss +83 -79
  44. package/styles/accordion/_theme.scss +12 -11
  45. package/styles/accordion/bootstrap4.css +1 -2
  46. package/styles/accordion/bootstrap5-dark.css +11 -2
  47. package/styles/accordion/bootstrap5.css +11 -2
  48. package/styles/accordion/highcontrast-light.css +0 -4
  49. package/styles/accordion/highcontrast.css +1 -5
  50. package/styles/accordion/icons/_fluent.scss +17 -0
  51. package/styles/accordion/icons/_tailwind.scss +17 -17
  52. package/styles/bootstrap-dark.css +317 -84
  53. package/styles/bootstrap.css +316 -83
  54. package/styles/bootstrap4.css +317 -76
  55. package/styles/bootstrap5-dark.css +339 -75
  56. package/styles/bootstrap5.css +341 -77
  57. package/styles/breadcrumb/_bootstrap-dark-definition.scss +14 -0
  58. package/styles/breadcrumb/_bootstrap-definition.scss +13 -0
  59. package/styles/breadcrumb/_bootstrap4-definition.scss +13 -0
  60. package/styles/breadcrumb/_bootstrap5-definition.scss +15 -2
  61. package/styles/breadcrumb/_fabric-dark-definition.scss +13 -0
  62. package/styles/breadcrumb/_fabric-definition.scss +13 -0
  63. package/styles/breadcrumb/_fluent-definition.scss +59 -0
  64. package/styles/breadcrumb/_highcontrast-definition.scss +13 -0
  65. package/styles/breadcrumb/_highcontrast-light-definition.scss +13 -0
  66. package/styles/breadcrumb/_layout.scss +171 -22
  67. package/styles/breadcrumb/_material-dark-definition.scss +13 -0
  68. package/styles/breadcrumb/_material-definition.scss +13 -0
  69. package/styles/breadcrumb/_tailwind-dark-definition.scss +13 -0
  70. package/styles/breadcrumb/_tailwind-definition.scss +13 -0
  71. package/styles/breadcrumb/_theme.scss +27 -8
  72. package/styles/breadcrumb/bootstrap-dark.css +194 -17
  73. package/styles/breadcrumb/bootstrap.css +194 -17
  74. package/styles/breadcrumb/bootstrap4.css +194 -17
  75. package/styles/breadcrumb/bootstrap5-dark.css +198 -24
  76. package/styles/breadcrumb/bootstrap5.css +198 -24
  77. package/styles/breadcrumb/fabric-dark.css +197 -20
  78. package/styles/breadcrumb/fabric.css +197 -20
  79. package/styles/breadcrumb/highcontrast-light.css +200 -22
  80. package/styles/breadcrumb/highcontrast.css +200 -22
  81. package/styles/breadcrumb/icons/_bootstrap-dark.scss +2 -1
  82. package/styles/breadcrumb/icons/_bootstrap.scss +2 -1
  83. package/styles/breadcrumb/icons/_bootstrap4.scss +2 -1
  84. package/styles/breadcrumb/icons/_bootstrap5.scss +2 -1
  85. package/styles/breadcrumb/icons/_fabric-dark.scss +2 -1
  86. package/styles/breadcrumb/icons/_fabric.scss +2 -1
  87. package/styles/breadcrumb/icons/_fluent.scss +25 -0
  88. package/styles/breadcrumb/icons/_highcontrast-light.scss +2 -1
  89. package/styles/breadcrumb/icons/_highcontrast.scss +2 -1
  90. package/styles/breadcrumb/icons/_material-dark.scss +2 -1
  91. package/styles/breadcrumb/icons/_material.scss +2 -1
  92. package/styles/breadcrumb/icons/_tailwind-dark.scss +2 -1
  93. package/styles/breadcrumb/icons/_tailwind.scss +2 -1
  94. package/styles/breadcrumb/material-dark.css +186 -13
  95. package/styles/breadcrumb/material.css +186 -13
  96. package/styles/breadcrumb/tailwind-dark.css +195 -22
  97. package/styles/breadcrumb/tailwind.css +195 -22
  98. package/styles/context-menu/_bootstrap-dark-definition.scss +1 -1
  99. package/styles/context-menu/_bootstrap-definition.scss +1 -1
  100. package/styles/context-menu/_bootstrap4-definition.scss +1 -1
  101. package/styles/context-menu/_bootstrap5-definition.scss +5 -5
  102. package/styles/context-menu/_fluent-definition.scss +52 -0
  103. package/styles/context-menu/_material-dark-definition.scss +1 -1
  104. package/styles/context-menu/_material-definition.scss +1 -1
  105. package/styles/context-menu/_tailwind-definition.scss +1 -1
  106. package/styles/context-menu/bootstrap-dark.css +1 -1
  107. package/styles/context-menu/bootstrap.css +1 -1
  108. package/styles/context-menu/bootstrap4.css +1 -1
  109. package/styles/context-menu/bootstrap5-dark.css +5 -5
  110. package/styles/context-menu/bootstrap5.css +6 -6
  111. package/styles/context-menu/icons/_fluent.scss +32 -0
  112. package/styles/context-menu/material-dark.css +1 -1
  113. package/styles/context-menu/material.css +1 -1
  114. package/styles/context-menu/tailwind-dark.css +1 -1
  115. package/styles/context-menu/tailwind.css +1 -1
  116. package/styles/fabric-dark.css +305 -41
  117. package/styles/fabric.css +308 -44
  118. package/styles/h-scroll/_fluent-definition.scss +78 -0
  119. package/styles/h-scroll/_tailwind-definition.scss +78 -78
  120. package/styles/h-scroll/_theme.scss +1 -1
  121. package/styles/h-scroll/bootstrap-dark.css +1 -1
  122. package/styles/h-scroll/bootstrap.css +1 -1
  123. package/styles/h-scroll/bootstrap4.css +1 -1
  124. package/styles/h-scroll/bootstrap5-dark.css +1 -1
  125. package/styles/h-scroll/bootstrap5.css +1 -1
  126. package/styles/h-scroll/fabric-dark.css +1 -1
  127. package/styles/h-scroll/fabric.css +1 -1
  128. package/styles/h-scroll/highcontrast-light.css +1 -1
  129. package/styles/h-scroll/highcontrast.css +1 -1
  130. package/styles/h-scroll/icons/_fluent.scss +49 -0
  131. package/styles/h-scroll/icons/_tailwind.scss +49 -49
  132. package/styles/h-scroll/material-dark.css +1 -1
  133. package/styles/h-scroll/material.css +1 -1
  134. package/styles/h-scroll/tailwind-dark.css +1 -1
  135. package/styles/h-scroll/tailwind.css +1 -1
  136. package/styles/highcontrast-light.css +317 -47
  137. package/styles/highcontrast.css +322 -52
  138. package/styles/material-dark.css +295 -32
  139. package/styles/material.css +296 -33
  140. package/styles/menu/_fluent-definition.scss +68 -0
  141. package/styles/menu/_layout.scss +1 -1
  142. package/styles/menu/_theme.scss +9 -0
  143. package/styles/menu/bootstrap-dark.css +1 -1
  144. package/styles/menu/bootstrap.css +1 -1
  145. package/styles/menu/bootstrap4.css +1 -1
  146. package/styles/menu/bootstrap5-dark.css +4 -4
  147. package/styles/menu/bootstrap5.css +5 -5
  148. package/styles/menu/icons/_fluent.scss +133 -0
  149. package/styles/menu/material-dark.css +1 -1
  150. package/styles/menu/material.css +1 -1
  151. package/styles/menu/tailwind-dark.css +1 -1
  152. package/styles/menu/tailwind.css +1 -1
  153. package/styles/sidebar/_bootstrap5-definition.scss +5 -5
  154. package/styles/sidebar/_fluent-definition.scss +5 -0
  155. package/styles/sidebar/_theme.scss +4 -2
  156. package/styles/sidebar/bootstrap5-dark.css +0 -1
  157. package/styles/sidebar/bootstrap5.css +0 -1
  158. package/styles/sidebar/tailwind-dark.css +0 -1
  159. package/styles/sidebar/tailwind.css +0 -1
  160. package/styles/tab/_bootstrap-dark-definition.scss +10 -1
  161. package/styles/tab/_bootstrap-definition.scss +10 -1
  162. package/styles/tab/_bootstrap4-definition.scss +9 -1
  163. package/styles/tab/_bootstrap5-definition.scss +401 -401
  164. package/styles/tab/_fabric-dark-definition.scss +10 -0
  165. package/styles/tab/_fabric-definition.scss +10 -0
  166. package/styles/tab/_fluent-definition.scss +409 -0
  167. package/styles/tab/_highcontrast-definition.scss +10 -0
  168. package/styles/tab/_highcontrast-light-definition.scss +10 -0
  169. package/styles/tab/_layout.scss +145 -0
  170. package/styles/tab/_material-dark-definition.scss +10 -0
  171. package/styles/tab/_material-definition.scss +10 -0
  172. package/styles/tab/_tailwind-definition.scss +431 -420
  173. package/styles/tab/_theme.scss +188 -113
  174. package/styles/tab/bootstrap-dark.css +43 -18
  175. package/styles/tab/bootstrap.css +42 -17
  176. package/styles/tab/bootstrap4.css +47 -28
  177. package/styles/tab/bootstrap5-dark.css +53 -30
  178. package/styles/tab/bootstrap5.css +53 -30
  179. package/styles/tab/fabric-dark.css +43 -20
  180. package/styles/tab/fabric.css +46 -23
  181. package/styles/tab/highcontrast-light.css +52 -19
  182. package/styles/tab/highcontrast.css +56 -23
  183. package/styles/tab/icons/_bootstrap-dark.scss +2 -2
  184. package/styles/tab/icons/_fabric-dark.scss +2 -2
  185. package/styles/tab/icons/_fluent.scss +140 -0
  186. package/styles/tab/icons/_tailwind.scss +140 -140
  187. package/styles/tab/material-dark.css +42 -15
  188. package/styles/tab/material.css +42 -15
  189. package/styles/tab/tailwind-dark.css +42 -17
  190. package/styles/tab/tailwind.css +42 -17
  191. package/styles/tailwind-dark.css +313 -50
  192. package/styles/tailwind.css +313 -50
  193. package/styles/toolbar/_bootstrap-dark-definition.scss +7 -1
  194. package/styles/toolbar/_bootstrap-definition.scss +7 -1
  195. package/styles/toolbar/_bootstrap4-definition.scss +8 -2
  196. package/styles/toolbar/_bootstrap5-definition.scss +104 -86
  197. package/styles/toolbar/_fabric-dark-definition.scss +7 -0
  198. package/styles/toolbar/_fabric-definition.scss +7 -0
  199. package/styles/toolbar/_fluent-definition.scss +149 -0
  200. package/styles/toolbar/_highcontrast-definition.scss +7 -0
  201. package/styles/toolbar/_highcontrast-light-definition.scss +7 -0
  202. package/styles/toolbar/_layout.scss +27 -72
  203. package/styles/toolbar/_material-dark-definition.scss +7 -1
  204. package/styles/toolbar/_material-definition.scss +7 -1
  205. package/styles/toolbar/_tailwind-definition.scss +149 -143
  206. package/styles/toolbar/_theme.scss +12 -15
  207. package/styles/toolbar/bootstrap-dark.css +17 -46
  208. package/styles/toolbar/bootstrap.css +17 -46
  209. package/styles/toolbar/bootstrap4.css +12 -26
  210. package/styles/toolbar/bootstrap5-dark.css +6 -7
  211. package/styles/toolbar/bootstrap5.css +6 -7
  212. package/styles/toolbar/fabric-dark.css +4 -0
  213. package/styles/toolbar/fabric.css +4 -0
  214. package/styles/toolbar/highcontrast-light.css +4 -1
  215. package/styles/toolbar/highcontrast.css +4 -1
  216. package/styles/toolbar/icons/_fluent.scss +16 -0
  217. package/styles/toolbar/icons/_tailwind.scss +16 -16
  218. package/styles/toolbar/material-dark.css +4 -1
  219. package/styles/toolbar/material.css +5 -2
  220. package/styles/toolbar/tailwind-dark.css +8 -6
  221. package/styles/toolbar/tailwind.css +8 -6
  222. package/styles/treeview/_bootstrap-dark-definition.scss +11 -0
  223. package/styles/treeview/_bootstrap-definition.scss +11 -0
  224. package/styles/treeview/_bootstrap4-definition.scss +11 -0
  225. package/styles/treeview/_bootstrap5-definition.scss +120 -109
  226. package/styles/treeview/_fabric-dark-definition.scss +11 -0
  227. package/styles/treeview/_fabric-definition.scss +11 -0
  228. package/styles/treeview/_fluent-definition.scss +120 -0
  229. package/styles/treeview/_highcontrast-definition.scss +11 -0
  230. package/styles/treeview/_highcontrast-light-definition.scss +11 -0
  231. package/styles/treeview/_layout.scss +116 -20
  232. package/styles/treeview/_material-dark-definition.scss +13 -0
  233. package/styles/treeview/_material-definition.scss +11 -0
  234. package/styles/treeview/_tailwind-definition.scss +12 -0
  235. package/styles/treeview/_theme.scss +5 -5
  236. package/styles/treeview/bootstrap-dark.css +60 -0
  237. package/styles/treeview/bootstrap.css +60 -0
  238. package/styles/treeview/bootstrap4.css +60 -0
  239. package/styles/treeview/bootstrap5-dark.css +61 -1
  240. package/styles/treeview/bootstrap5.css +61 -1
  241. package/styles/treeview/fabric-dark.css +60 -0
  242. package/styles/treeview/fabric.css +60 -0
  243. package/styles/treeview/highcontrast-light.css +60 -0
  244. package/styles/treeview/highcontrast.css +60 -0
  245. package/styles/treeview/icons/_bootstrap5.scss +43 -43
  246. package/styles/treeview/icons/_fluent.scss +43 -0
  247. package/styles/treeview/icons/_tailwind-dark.scss +43 -43
  248. package/styles/treeview/material-dark.css +60 -0
  249. package/styles/treeview/material.css +60 -0
  250. package/styles/treeview/tailwind-dark.css +65 -1
  251. package/styles/treeview/tailwind.css +65 -1
  252. package/styles/v-scroll/_fluent-definition.scss +49 -0
  253. package/styles/v-scroll/_tailwind-definition.scss +49 -49
  254. package/styles/v-scroll/icons/_fluent.scss +26 -0
  255. package/styles/v-scroll/icons/_tailwind.scss +26 -26
@@ -17,11 +17,21 @@ 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, NotifyPropertyChanges, ChildProperty, Property, Collection, append, extend, Event, EventHandler, closest, addClass, removeClass } from '@syncfusion/ej2-base';
20
+ import { Component, NotifyPropertyChanges, ChildProperty, Property, Collection, append, extend, Event, EventHandler, closest, addClass, removeClass, detach, remove } from '@syncfusion/ej2-base';
21
21
  import { ListBase } from '@syncfusion/ej2-lists';
22
+ import { Popup } from '@syncfusion/ej2-popups';
22
23
  var ICONRIGHT = 'e-icon-right';
23
24
  var ITEMTEXTCLASS = 'e-breadcrumb-text';
24
25
  var ICONCLASS = 'e-breadcrumb-icon';
26
+ var MENUCLASS = 'e-breadcrumb-menu';
27
+ var ITEMCLASS = 'e-breadcrumb-item';
28
+ var POPUPCLASS = 'e-breadcrumb-popup';
29
+ var WRAPMODECLASS = 'e-breadcrumb-wrap-mode';
30
+ var SCROLLMODECLASS = 'e-breadcrumb-scroll-mode';
31
+ var TABINDEX = 'tabindex';
32
+ var DISABLEDCLASS = 'e-disabled';
33
+ var ARIADISABLED = 'aria-disabled';
34
+ var DOT = '.';
25
35
  var BreadcrumbItem = /** @class */ (function (_super) {
26
36
  __extends(BreadcrumbItem, _super);
27
37
  function BreadcrumbItem() {
@@ -36,6 +46,9 @@ var BreadcrumbItem = /** @class */ (function (_super) {
36
46
  __decorate([
37
47
  Property(null)
38
48
  ], BreadcrumbItem.prototype, "iconCss", void 0);
49
+ __decorate([
50
+ Property(false)
51
+ ], BreadcrumbItem.prototype, "disabled", void 0);
39
52
  return BreadcrumbItem;
40
53
  }(ChildProperty));
41
54
  export { BreadcrumbItem };
@@ -91,20 +104,49 @@ var Breadcrumb = /** @class */ (function (_super) {
91
104
  if (this.enableRtl) {
92
105
  this.element.classList.add('e-rtl');
93
106
  }
94
- this.setWidth();
107
+ if (this.disabled) {
108
+ this.element.classList.add(DISABLEDCLASS);
109
+ this.element.setAttribute(ARIADISABLED, 'true');
110
+ }
111
+ if (this.overflowMode === 'Wrap') {
112
+ this.element.classList.add(WRAPMODECLASS);
113
+ }
114
+ else if (this.overflowMode === 'Scroll') {
115
+ this.element.classList.add(SCROLLMODECLASS);
116
+ }
95
117
  this.initItems();
96
118
  this.initPvtProps();
97
119
  };
98
120
  Breadcrumb.prototype.initPvtProps = function () {
99
- if (this.overflowMode === 'Default' && this._maxItems > 0) {
100
- this.startIndex = this.items.length - (this._maxItems - 1);
101
- this.endIndex = this.items.length - 1;
121
+ if (this.overflowMode === 'Hidden' && this._maxItems > 0) {
122
+ this.endIndex = this.getEndIndex();
123
+ this.startIndex = this.endIndex + 1 - (this._maxItems - 1);
124
+ }
125
+ if (this.overflowMode === 'Menu') {
126
+ if (this._maxItems >= 0) {
127
+ this.startIndex = this._maxItems > 1 ? 1 : 0;
128
+ this.endIndex = this.getEndIndex();
129
+ this.popupUl = this.createElement('ul', { attrs: { TABINDEX: '0', 'role': 'menu' } });
130
+ }
131
+ else {
132
+ this.startIndex = this.endIndex = null;
133
+ }
102
134
  }
103
135
  };
104
- Breadcrumb.prototype.setWidth = function () {
105
- if (this.width) {
106
- this.element.style.width = this.width;
136
+ Breadcrumb.prototype.getEndIndex = function () {
137
+ var _this = this;
138
+ var endIndex;
139
+ if (this.activeItem) {
140
+ this.items.forEach(function (item, idx) {
141
+ if (item.url === _this.activeItem || item.text === _this.activeItem) {
142
+ endIndex = idx;
143
+ }
144
+ });
145
+ }
146
+ else {
147
+ endIndex = this.items.length - 1;
107
148
  }
149
+ return endIndex;
108
150
  };
109
151
  Breadcrumb.prototype.initItems = function () {
110
152
  if (!this.items.length) {
@@ -112,7 +154,7 @@ var Breadcrumb = /** @class */ (function (_super) {
112
154
  var uri = void 0;
113
155
  var items = [];
114
156
  if (this.url) {
115
- var url = new URL(this.url);
157
+ var url = new URL(this.url, window.location.origin);
116
158
  baseUri = url.origin + '/';
117
159
  uri = url.href.split(baseUri)[1].split('/');
118
160
  }
@@ -139,13 +181,19 @@ var Breadcrumb = /** @class */ (function (_super) {
139
181
  if (itemsLength) {
140
182
  var isActiveItem = void 0;
141
183
  var isLastItem = void 0;
184
+ var isLastItemInPopup_1;
142
185
  var j_1 = 0;
186
+ var wrapDiv = void 0;
143
187
  var len = (itemsLength * 2) - 1;
144
- var ol = this.createElement('ol');
188
+ var isItemCancelled_1 = false;
189
+ var ol = this.createElement('ol', { className: this.overflowMode === 'Wrap' ? 'e-breadcrumb-wrapped-ol' : '' });
190
+ var firstOl = this.createElement('ol', { className: this.overflowMode === 'Wrap' ? 'e-breadcrumb-first-ol' : '' });
145
191
  var showIcon = this.hasField(items, 'iconCss');
146
- var isDisabled_1 = this.element.classList.contains('e-disabled');
147
- var isCollasped = (this.overflowMode === 'Collapsed' && this._maxItems > 0 && itemsLength > this.maxItems && !this.isExpanded);
148
- var isDefaultOverflowMode_1 = (this.overflowMode === 'Default' && this._maxItems > 0);
192
+ var isCollasped = (this.overflowMode === 'Collapsed' && this._maxItems > 0 && itemsLength > this._maxItems && !this.isExpanded);
193
+ var isDefaultOverflowMode_1 = (this.overflowMode === 'Hidden' && this._maxItems > 0);
194
+ if (this.overflowMode === 'Menu' && this.popupUl) {
195
+ this.popupUl.innerHTML = '';
196
+ }
149
197
  var listBaseOptions = {
150
198
  moduleName: this.getModuleName(),
151
199
  showIcon: showIcon,
@@ -154,7 +202,9 @@ var Breadcrumb = /** @class */ (function (_super) {
154
202
  var isLastItem = args.curData.isLastItem;
155
203
  if (isLastItem && args.item.children.length && !_this.itemTemplate) {
156
204
  delete args.curData.isLastItem;
157
- args.item.innerHTML = _this.createElement('span', { className: ITEMTEXTCLASS, innerHTML: args.item.children[0].innerHTML }).outerHTML;
205
+ if (!isLastItemInPopup_1 && !_this.enableActiveItemNavigation) {
206
+ args.item.innerHTML = _this.createElement('span', { className: ITEMTEXTCLASS, innerHTML: args.item.children[0].innerHTML }).outerHTML;
207
+ }
158
208
  }
159
209
  if (args.curData.iconCss && !args.curData.text && !_this.itemTemplate) {
160
210
  args.item.classList.add('e-icon-item');
@@ -162,41 +212,40 @@ var Breadcrumb = /** @class */ (function (_super) {
162
212
  if (isDefaultOverflowMode_1) {
163
213
  args.item.setAttribute('item-index', j_1.toString());
164
214
  }
165
- if (args.item.querySelector('.' + ITEMTEXTCLASS)) {
166
- EventHandler.add(args.item.querySelector('.' + ITEMTEXTCLASS), 'focus', function () {
167
- args.item.classList.add('e-focus');
168
- }, _this);
169
- EventHandler.add(args.item.querySelector('.' + ITEMTEXTCLASS), 'focusout', function () {
170
- args.item.classList.remove('e-focus');
171
- }, _this);
172
- }
173
215
  var eventArgs = {
174
216
  item: extend({}, args.curData.properties ?
175
- args.curData.properties : args.curData), element: args.item
217
+ args.curData.properties : args.curData), element: args.item, cancel: false
176
218
  };
177
219
  _this.trigger('beforeItemRender', eventArgs);
178
- var isItemDisabled = isDisabled_1 || eventArgs.element.classList.contains('e-disabled');
220
+ isItemCancelled_1 = eventArgs.cancel;
179
221
  var containsRightIcon = (isIconRight || eventArgs.element.classList.contains(ICONRIGHT));
180
222
  if (containsRightIcon && args.curData.iconCss && !_this.itemTemplate) {
181
- args.item.querySelector('.e-anchor-wrap').append(args.item.querySelector('.' + ICONCLASS));
223
+ args.item.querySelector('.e-anchor-wrap').appendChild(args.item.querySelector(DOT + ICONCLASS));
182
224
  }
183
- if (isItemDisabled) {
184
- args.item.setAttribute('aria-disabled', 'true');
225
+ if (eventArgs.item.disabled) {
226
+ args.item.setAttribute(ARIADISABLED, 'true');
227
+ args.item.classList.add(DISABLEDCLASS);
228
+ }
229
+ if ((eventArgs.item.disabled || _this.disabled) && args.item.children.length && !_this.itemTemplate) {
230
+ args.item.children[0].setAttribute(TABINDEX, '-1');
185
231
  }
186
232
  if (args.curData.isEmptyUrl) {
187
233
  args.item.children[0].removeAttribute('href');
188
- if ((!isLastItem || (isLastItem && _this.enableActiveItemNavigation)) && !isItemDisabled) {
189
- args.item.children[0].setAttribute('tabindex', '0');
234
+ if ((!isLastItem || (isLastItem && _this.enableActiveItemNavigation)) && !(eventArgs.item.disabled || _this.disabled)) {
235
+ args.item.children[0].setAttribute(TABINDEX, '0');
190
236
  EventHandler.add(args.item.children[0], 'keydown', _this.keyDownHandler, _this);
191
237
  }
192
238
  }
239
+ if (isLastItem) {
240
+ args.item.setAttribute('data-active-item', '');
241
+ }
193
242
  if (!_this.itemTemplate) {
194
243
  _this.beforeItemRenderChanges(args.curData, eventArgs.item, args.item, containsRightIcon);
195
244
  }
196
245
  }
197
246
  };
198
247
  for (var i = 0; i < len; (i % 2 && j_1++), i++) {
199
- isActiveItem = (this.activeItem && this.activeItem === items[j_1].url);
248
+ isActiveItem = (this.activeItem && (this.activeItem === items[j_1].url || this.activeItem === items[j_1].text));
200
249
  if (isCollasped && i > 1 && i < len - 2) {
201
250
  continue;
202
251
  }
@@ -206,10 +255,11 @@ var Breadcrumb = /** @class */ (function (_super) {
206
255
  }
207
256
  if (i % 2) {
208
257
  // separator item
258
+ wrapDiv = this.createElement('div', { className: 'e-breadcrumb-item-wrapper' });
209
259
  listBaseOptions.template = this.separatorTemplate ? this.separatorTemplate : '/';
210
260
  listBaseOptions.itemClass = 'e-breadcrumb-separator';
211
261
  isSingleLevel = false;
212
- item = [{ previousItem: item.pop(), nextItem: items[j_1] }];
262
+ item = [{ previousItem: items[j_1], nextItem: items[j_1 + 1] }];
213
263
  }
214
264
  else {
215
265
  // list item
@@ -226,47 +276,129 @@ var Breadcrumb = /** @class */ (function (_super) {
226
276
  if (!item[0].url && !this.itemTemplate) {
227
277
  item = [extend({}, item[0], { isEmptyUrl: true, url: '#' })];
228
278
  }
229
- isLastItem = isDefaultOverflowMode_1 && (j_1 === this.endIndex);
230
- if ((((i === len - 1 || isLastItem) && !this.itemTemplate) || isActiveItem) && !this.enableActiveItemNavigation) {
279
+ isLastItem = (isDefaultOverflowMode_1 || this.overflowMode === 'Menu') && (j_1 === this.endIndex);
280
+ if (((i === len - 1 || isLastItem) && !this.itemTemplate) || isActiveItem) {
231
281
  item[0].isLastItem = true;
232
282
  }
233
283
  }
234
- append(ListBase.createList(this.createElement, item, listBaseOptions, isSingleLevel, this)
235
- .childNodes, ol);
284
+ var parent_1 = ol;
285
+ var lastPopupItemIdx = this.startIndex + this.endIndex - this._maxItems;
286
+ if (this.overflowMode === 'Menu' && ((j_1 >= this.startIndex && (j_1 <= lastPopupItemIdx && (i % 2 ? !(j_1 === lastPopupItemIdx) : true)) && this.endIndex >= this._maxItems && this._maxItems > 0) || this._maxItems === 0)) {
287
+ if (i % 2) {
288
+ continue;
289
+ }
290
+ else {
291
+ parent_1 = this.popupUl;
292
+ if (isLastItem) {
293
+ isLastItemInPopup_1 = true;
294
+ }
295
+ }
296
+ }
297
+ else if (this.overflowMode === 'Wrap') {
298
+ if (i === 0) {
299
+ parent_1 = firstOl;
300
+ }
301
+ else {
302
+ parent_1 = wrapDiv;
303
+ }
304
+ }
305
+ var li = ListBase.createList(this.createElement, item, listBaseOptions, isSingleLevel, this).childNodes;
306
+ if (!isItemCancelled_1) {
307
+ append(li, parent_1);
308
+ }
309
+ else if (isDefaultOverflowMode_1 || isCollasped || this.overflowMode === 'Menu' || this.overflowMode === 'Wrap') {
310
+ items.splice(j_1, 1);
311
+ this.initPvtProps();
312
+ return this.reRenderItems();
313
+ }
314
+ else if ((i === len - 1 || isLastItem)) {
315
+ remove(parent_1.lastElementChild);
316
+ }
317
+ if (this.overflowMode === 'Wrap' && i !== 0 && i % 2 === 0) {
318
+ ol.appendChild(wrapDiv);
319
+ }
236
320
  if (isCollasped && i === 1) {
237
- var li = this.createElement('li', { className: 'e-icons e-breadcrumb-collapsed', attrs: { 'tabindex': '0' } });
238
- EventHandler.add(li, 'keyup', this.expandHandler, this);
239
- ol.append(li);
321
+ var li_1 = this.createElement('li', { className: 'e-icons e-breadcrumb-collapsed', attrs: { TABINDEX: '0' } });
322
+ EventHandler.add(li_1, 'keyup', this.expandHandler, this);
323
+ ol.appendChild(li_1);
324
+ }
325
+ if (this.overflowMode === 'Menu' && this.startIndex === i && this.endIndex >= this._maxItems && this._maxItems >= 0) {
326
+ var menu = this.getMenuElement();
327
+ EventHandler.add(menu, 'keyup', this.keyDownHandler, this);
328
+ ol.appendChild(menu);
240
329
  }
241
330
  if (isActiveItem || isLastItem) {
242
331
  break;
243
332
  }
333
+ if (isItemCancelled_1) {
334
+ i++;
335
+ }
244
336
  }
245
337
  if (this.isReact) {
246
338
  this.renderReactTemplates();
247
339
  }
248
- this.element.append(ol);
340
+ if (this.overflowMode === 'Wrap') {
341
+ this.element.appendChild(firstOl);
342
+ }
343
+ this.element.appendChild(ol);
249
344
  this.calculateMaxItems();
250
345
  }
251
346
  };
252
347
  Breadcrumb.prototype.calculateMaxItems = function () {
253
- if (!this._maxItems) {
254
- if (this.overflowMode === 'Default' || this.overflowMode === 'Collapsed') {
255
- var width = this.element.offsetWidth;
256
- var liWidth = this.element.children[0].children[0].offsetWidth;
257
- var liElems = [].slice.call(this.element.children[0].children).reverse();
258
- for (var i = 0; i < liElems.length; i++) {
259
- if (liWidth > width) {
260
- this._maxItems = Math.ceil((i - 1) / 2) + 1;
348
+ if (this.overflowMode === 'Hidden' || this.overflowMode === 'Collapsed' || this.overflowMode === 'Menu') {
349
+ var maxItems = void 0;
350
+ var width = this.element.offsetWidth;
351
+ var liElems = [].slice.call(this.element.children[0].children).reverse();
352
+ var liWidth = this.overflowMode === 'Menu' ? 0 : liElems[liElems.length - 1].offsetWidth + (liElems[liElems.length - 2] ? liElems[liElems.length - 2].offsetWidth : 0);
353
+ if (this.overflowMode === 'Menu') {
354
+ var menuEle = this.getMenuElement();
355
+ this.element.appendChild(menuEle);
356
+ liWidth += menuEle.offsetWidth;
357
+ remove(menuEle);
358
+ }
359
+ for (var i = 0; i < liElems.length - 2; i++) {
360
+ if (liWidth > width) {
361
+ maxItems = Math.ceil((i - 1) / 2) + ((this.overflowMode === 'Menu' && i <= 2) ? 0 : 1);
362
+ if (((this.maxItems > maxItems && !(this.maxItems > -1 && maxItems == -1)) || this.maxItems == -1) && this._maxItems != maxItems) {
363
+ this._maxItems = maxItems;
261
364
  this.initPvtProps();
262
365
  return this.reRenderItems();
263
366
  }
264
367
  else {
368
+ break;
369
+ }
370
+ }
371
+ else {
372
+ if (this.overflowMode === 'Menu' && i === 2) {
373
+ liWidth += liElems[liElems.length - 1].offsetWidth + liElems[liElems.length - 2].offsetWidth;
374
+ if (liWidth > width) {
375
+ this._maxItems = 1;
376
+ this.initPvtProps();
377
+ return this.reRenderItems();
378
+ }
379
+ }
380
+ if (!(this.overflowMode === 'Menu' && liElems[i].classList.contains(MENUCLASS))) {
265
381
  liWidth += liElems[i].offsetWidth;
266
382
  }
267
383
  }
268
384
  }
269
385
  }
386
+ else if ((this.overflowMode === 'Wrap' || this.overflowMode === 'Scroll') && this._maxItems > 0) {
387
+ var width = 0;
388
+ var liElems = this.element.querySelectorAll(DOT + ITEMCLASS);
389
+ if (liElems.length > this._maxItems + this._maxItems - 1) {
390
+ for (var i = this.overflowMode === 'Wrap' ? 1 : 0; i < this._maxItems + this._maxItems - 1; i++) {
391
+ width += liElems[i].offsetWidth;
392
+ }
393
+ width = width + 5 + (parseInt(getComputedStyle(this.element.children[0]).paddingLeft, 10) * 2);
394
+ if (this.overflowMode === 'Wrap') {
395
+ this.element.querySelector('.e-breadcrumb-wrapped-ol').style.width = width + 'px';
396
+ }
397
+ else {
398
+ this.element.style.width = width + 'px';
399
+ }
400
+ }
401
+ }
270
402
  };
271
403
  Breadcrumb.prototype.hasField = function (items, field) {
272
404
  for (var i = 0, len = items.length; i < len; i++) {
@@ -276,6 +408,9 @@ var Breadcrumb = /** @class */ (function (_super) {
276
408
  }
277
409
  return false;
278
410
  };
411
+ Breadcrumb.prototype.getMenuElement = function () {
412
+ return this.createElement('li', { className: 'e-icons e-breadcrumb-menu', attrs: { TABINDEX: '0' } });
413
+ };
279
414
  Breadcrumb.prototype.beforeItemRenderChanges = function (prevItem, currItem, elem, isRightIcon) {
280
415
  var wrapElem = elem.querySelector('.e-anchor-wrap');
281
416
  if (currItem.text !== prevItem.text) {
@@ -285,15 +420,15 @@ var Breadcrumb = /** @class */ (function (_super) {
285
420
  }
286
421
  });
287
422
  }
288
- if (currItem.iconCss !== prevItem.iconCss) {
289
- var iconElem = elem.querySelector('.' + ICONCLASS);
423
+ if (currItem.iconCss !== prevItem.iconCss && wrapElem) { // wrapElem - for checking it is item not a separator
424
+ var iconElem = elem.querySelector(DOT + ICONCLASS);
290
425
  if (iconElem) {
291
426
  if (currItem.iconCss) {
292
427
  removeClass([iconElem], prevItem.iconCss.split(' '));
293
428
  addClass([iconElem], currItem.iconCss.split(' '));
294
429
  }
295
430
  else {
296
- iconElem.remove();
431
+ remove(iconElem);
297
432
  }
298
433
  }
299
434
  else if (currItem.iconCss) {
@@ -323,31 +458,86 @@ var Breadcrumb = /** @class */ (function (_super) {
323
458
  this.renderItems(this.items);
324
459
  };
325
460
  Breadcrumb.prototype.clickHandler = function (e) {
326
- var li = closest(e.target, '.e-breadcrumb-item');
327
- if (li && (closest(e.target, '.' + ITEMTEXTCLASS) || this.itemTemplate)) {
328
- var idx = [].slice.call(li.parentElement.children).indexOf(li);
329
- idx = Math.floor(idx / 2);
330
- if (this.overflowMode === 'Default' && this._maxItems > 0 && this.endIndex !== 0) {
461
+ var li = closest(e.target, DOT + ITEMCLASS + ':not(.e-breadcrumb-separator)');
462
+ if (!this.enableNavigation) {
463
+ e.preventDefault();
464
+ }
465
+ if (li && (closest(e.target, DOT + ITEMTEXTCLASS) || this.itemTemplate)) {
466
+ var idx = void 0;
467
+ if (this.overflowMode === 'Wrap') {
468
+ idx = [].slice.call(this.element.querySelectorAll(DOT + ITEMCLASS)).indexOf(li);
469
+ }
470
+ else {
471
+ idx = [].slice.call(li.parentElement.children).indexOf(li);
472
+ }
473
+ if (this.overflowMode === 'Menu') {
474
+ if (closest(e.target, DOT + POPUPCLASS)) {
475
+ idx += this.startIndex;
476
+ this.endIndex = idx;
477
+ if (e.type === 'keydown') {
478
+ this.documentClickHandler(e);
479
+ }
480
+ }
481
+ else if (this.element.querySelector(DOT + MENUCLASS)) {
482
+ if (idx > [].slice.call(this.element.children[0].children).indexOf(this.element.querySelector(DOT + MENUCLASS))) {
483
+ idx += (this.popupUl.childElementCount * 2) - 2;
484
+ idx = Math.floor(idx / 2);
485
+ this.endIndex = idx;
486
+ }
487
+ else {
488
+ this.startIndex = this.endIndex = idx;
489
+ }
490
+ }
491
+ else {
492
+ idx = Math.floor(idx / 2);
493
+ this.startIndex = this.endIndex = idx;
494
+ }
495
+ }
496
+ else {
497
+ idx = Math.floor(idx / 2);
498
+ }
499
+ if (this.overflowMode === 'Hidden' && this._maxItems > 0 && this.endIndex !== 0) {
331
500
  idx = parseInt(li.getAttribute('item-index'), 10);
332
501
  if (this.startIndex > 1) {
333
502
  this.startIndex -= (this.endIndex - idx);
334
503
  }
335
504
  this.endIndex = idx;
336
- this.reRenderItems();
337
505
  }
338
506
  this.trigger('itemClick', { element: li, item: this.items[idx], event: e });
339
- if (this.items[idx].url) {
340
- this.activeItem = this.items[idx].url;
341
- this.dataBind();
342
- }
343
- }
344
- if (!this.enableNavigation) {
345
- e.preventDefault();
507
+ this.activeItem = this.items[idx].url || this.items[idx].text;
508
+ this.dataBind();
346
509
  }
347
510
  if (e.target.classList.contains('e-breadcrumb-collapsed')) {
348
511
  this.isExpanded = true;
349
512
  this.reRenderItems();
350
513
  }
514
+ if (e.target.classList.contains(MENUCLASS)) {
515
+ this.renderPopup();
516
+ }
517
+ };
518
+ Breadcrumb.prototype.renderPopup = function () {
519
+ var _this = this;
520
+ var wrapper = this.createElement('div', { className: POPUPCLASS + ' ' + this.cssClass + (this.enableRtl ? ' e-rtl' : '') });
521
+ document.body.appendChild(wrapper);
522
+ this.popupObj = new Popup(wrapper, {
523
+ content: this.popupUl,
524
+ relateTo: this.element.querySelector(DOT + MENUCLASS),
525
+ enableRtl: this.enableRtl,
526
+ position: { X: 'left', Y: 'bottom' },
527
+ collision: { X: 'fit', Y: 'flip' },
528
+ open: function () {
529
+ _this.popupUl.focus();
530
+ }
531
+ });
532
+ this.popupWireEvents();
533
+ this.popupObj.show();
534
+ };
535
+ Breadcrumb.prototype.documentClickHandler = function (e) {
536
+ if (this.overflowMode === 'Menu' && this.popupObj && this.popupObj.element.classList.contains('e-popup-open') && !closest(e.target, DOT + MENUCLASS)) {
537
+ this.popupObj.hide();
538
+ this.popupObj.destroy();
539
+ detach(this.popupObj.element);
540
+ }
351
541
  };
352
542
  Breadcrumb.prototype.resize = function () {
353
543
  this._maxItems = this.maxItems;
@@ -365,6 +555,11 @@ var Breadcrumb = /** @class */ (function (_super) {
365
555
  this.clickHandler(e);
366
556
  }
367
557
  };
558
+ Breadcrumb.prototype.popupKeyDownHandler = function (e) {
559
+ if (e.key === 'Escape') {
560
+ this.documentClickHandler(e);
561
+ }
562
+ };
368
563
  /**
369
564
  * Called internally if any of the property value changed.
370
565
  *
@@ -377,26 +572,37 @@ var Breadcrumb = /** @class */ (function (_super) {
377
572
  for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
378
573
  var prop = _a[_i];
379
574
  switch (prop) {
380
- case 'activeItem':
381
575
  case 'items':
382
576
  case 'enableActiveItemNavigation':
383
577
  this.reRenderItems();
384
578
  break;
579
+ case 'activeItem':
580
+ this._maxItems = this.maxItems;
581
+ this.initPvtProps();
582
+ this.reRenderItems();
583
+ break;
385
584
  case 'overflowMode':
386
585
  case 'maxItems':
586
+ this._maxItems = this.maxItems;
387
587
  this.initPvtProps();
388
588
  this.reRenderItems();
589
+ if (oldProp.overflowMode === 'Wrap') {
590
+ this.element.classList.remove(WRAPMODECLASS);
591
+ }
592
+ else if (newProp.overflowMode === 'Wrap') {
593
+ this.element.classList.add(WRAPMODECLASS);
594
+ }
595
+ if (oldProp.overflowMode === 'Scroll') {
596
+ this.element.classList.remove(SCROLLMODECLASS);
597
+ }
598
+ else if (newProp.overflowMode === 'Scroll') {
599
+ this.element.classList.add(SCROLLMODECLASS);
600
+ }
389
601
  break;
390
602
  case 'url':
391
603
  this.initItems();
392
604
  this.reRenderItems();
393
605
  break;
394
- case 'width':
395
- this.setWidth();
396
- this._maxItems = this.maxItems;
397
- this.initPvtProps();
398
- this.reRenderItems();
399
- break;
400
606
  case 'cssClass':
401
607
  if (oldProp.cssClass) {
402
608
  removeClass([this.element], oldProp.cssClass.split(' '));
@@ -413,16 +619,31 @@ var Breadcrumb = /** @class */ (function (_super) {
413
619
  case 'enableRtl':
414
620
  this.element.classList.toggle('e-rtl');
415
621
  break;
622
+ case 'disabled':
623
+ this.element.classList.toggle(DISABLEDCLASS);
624
+ this.element.setAttribute(ARIADISABLED, newProp.disabled + '');
625
+ break;
416
626
  }
417
627
  }
418
628
  };
419
629
  Breadcrumb.prototype.wireEvents = function () {
630
+ this.delegateClickHanlder = this.documentClickHandler.bind(this);
631
+ EventHandler.add(document, 'click', this.delegateClickHanlder, this);
420
632
  EventHandler.add(this.element, 'click', this.clickHandler, this);
421
633
  window.addEventListener('resize', this.resize.bind(this));
422
634
  };
635
+ Breadcrumb.prototype.popupWireEvents = function () {
636
+ EventHandler.add(this.popupObj.element, 'click', this.clickHandler, this);
637
+ EventHandler.add(this.popupObj.element, 'keydown', this.popupKeyDownHandler, this);
638
+ };
423
639
  Breadcrumb.prototype.unWireEvents = function () {
640
+ EventHandler.remove(document, 'click', this.delegateClickHanlder);
424
641
  EventHandler.remove(this.element, 'click', this.clickHandler);
425
642
  window.removeEventListener('resize', this.resize.bind(this));
643
+ if (this.popupObj) {
644
+ EventHandler.remove(this.popupObj.element, 'click', this.clickHandler);
645
+ EventHandler.remove(this.popupObj.element, 'keydown', this.popupKeyDownHandler);
646
+ }
426
647
  };
427
648
  /**
428
649
  * Get the properties to be maintained in the persisted state.
@@ -447,11 +668,32 @@ var Breadcrumb = /** @class */ (function (_super) {
447
668
  * @returns {void}
448
669
  */
449
670
  Breadcrumb.prototype.destroy = function () {
450
- this.unWireEvents();
451
- this.element.innerHTML = '';
671
+ var _this = this;
672
+ var classes = [];
673
+ var attributes = ['aria-label'];
452
674
  if (this.cssClass) {
453
- removeClass([this.element], this.cssClass.split(' '));
675
+ classes.concat(this.cssClass.split(' '));
676
+ }
677
+ if (this.enableRtl) {
678
+ classes.push('e-rtl');
679
+ }
680
+ if (this.disabled) {
681
+ classes.push(DISABLEDCLASS);
682
+ attributes.push(ARIADISABLED);
683
+ }
684
+ if (this.overflowMode === 'Wrap') {
685
+ classes.push(WRAPMODECLASS);
686
+ }
687
+ else if (this.overflowMode === 'Scroll') {
688
+ classes.push(SCROLLMODECLASS);
454
689
  }
690
+ this.unWireEvents();
691
+ this.element.innerHTML = '';
692
+ removeClass([this.element], classes);
693
+ attributes.forEach(function (attribute) {
694
+ _this.element.removeAttribute(attribute);
695
+ });
696
+ _super.prototype.destroy.call(this);
455
697
  };
456
698
  __decorate([
457
699
  Property('')
@@ -463,17 +705,14 @@ var Breadcrumb = /** @class */ (function (_super) {
463
705
  Property('')
464
706
  ], Breadcrumb.prototype, "activeItem", void 0);
465
707
  __decorate([
466
- Property(0)
708
+ Property(-1)
467
709
  ], Breadcrumb.prototype, "maxItems", void 0);
468
710
  __decorate([
469
- Property('Default')
711
+ Property('Menu')
470
712
  ], Breadcrumb.prototype, "overflowMode", void 0);
471
713
  __decorate([
472
714
  Property('')
473
715
  ], Breadcrumb.prototype, "cssClass", void 0);
474
- __decorate([
475
- Property('')
476
- ], Breadcrumb.prototype, "width", void 0);
477
716
  __decorate([
478
717
  Property(null)
479
718
  ], Breadcrumb.prototype, "itemTemplate", void 0);
@@ -486,6 +725,9 @@ var Breadcrumb = /** @class */ (function (_super) {
486
725
  __decorate([
487
726
  Property(false)
488
727
  ], Breadcrumb.prototype, "enableActiveItemNavigation", void 0);
728
+ __decorate([
729
+ Property(false)
730
+ ], Breadcrumb.prototype, "disabled", void 0);
489
731
  __decorate([
490
732
  Property('')
491
733
  ], Breadcrumb.prototype, "locale", void 0);
@@ -122,7 +122,7 @@ var VScroll = /** @class */ (function (_super) {
122
122
  }
123
123
  scrollBar.appendChild(scrollCnt);
124
124
  ele.appendChild(scrollBar);
125
- scrollBar.style.overflowY = 'hidden';
125
+ scrollBar.style.overflow = 'hidden';
126
126
  this.scrollEle = scrollBar;
127
127
  this.scrollItems = scrollCnt;
128
128
  };