@syncfusion/ej2-navigations 17.3.9-beta → 17.3.14-96615

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 (314) hide show
  1. package/.eslintrc.json +244 -0
  2. package/CHANGELOG.md +898 -800
  3. package/README.md +163 -163
  4. package/dist/ej2-navigations.umd.min.js +1 -10
  5. package/dist/ej2-navigations.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-navigations.es2015.js +325 -170
  7. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-navigations.es5.js +455 -300
  9. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  10. package/dist/global/ej2-navigations.min.js +1 -10
  11. package/dist/global/ej2-navigations.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/dist/ts/accordion/accordion.ts +1312 -0
  14. package/dist/ts/common/h-scroll.ts +459 -0
  15. package/dist/ts/common/menu-base.ts +2131 -0
  16. package/dist/ts/common/v-scroll.ts +430 -0
  17. package/dist/ts/context-menu/context-menu.ts +119 -0
  18. package/dist/ts/menu/menu.ts +270 -0
  19. package/dist/ts/sidebar/sidebar.ts +817 -0
  20. package/dist/ts/tab/tab.ts +1761 -0
  21. package/dist/ts/toolbar/toolbar.ts +2076 -0
  22. package/dist/ts/treeview/treeview.ts +5050 -0
  23. package/helpers/e2e/index.js +3 -3
  24. package/license +10 -10
  25. package/package.json +135 -149
  26. package/src/accordion/accordion-model.d.ts +156 -156
  27. package/src/accordion/accordion.d.ts +1 -0
  28. package/src/accordion/accordion.js +40 -41
  29. package/src/common/h-scroll-model.d.ts +5 -5
  30. package/src/common/h-scroll.js +19 -20
  31. package/src/common/menu-base-model.d.ts +157 -157
  32. package/src/common/menu-base.d.ts +19 -0
  33. package/src/common/menu-base.js +94 -24
  34. package/src/common/v-scroll-model.d.ts +5 -5
  35. package/src/common/v-scroll.js +19 -19
  36. package/src/context-menu/context-menu-model.d.ts +15 -15
  37. package/src/context-menu/context-menu.js +19 -19
  38. package/src/menu/menu-model.d.ts +30 -30
  39. package/src/menu/menu.js +19 -19
  40. package/src/sidebar/sidebar-model.d.ts +136 -136
  41. package/src/sidebar/sidebar.js +19 -19
  42. package/src/tab/tab-model.d.ts +215 -215
  43. package/src/tab/tab.d.ts +3 -0
  44. package/src/tab/tab.js +117 -82
  45. package/src/toolbar/toolbar-model.d.ts +175 -175
  46. package/src/toolbar/toolbar.d.ts +1 -0
  47. package/src/toolbar/toolbar.js +30 -24
  48. package/src/treeview/treeview-model.d.ts +323 -323
  49. package/src/treeview/treeview.js +79 -33
  50. package/styles/accordion/_all.scss +2 -2
  51. package/styles/accordion/_bootstrap-dark-definition.scss +69 -69
  52. package/styles/accordion/_bootstrap-definition.scss +76 -76
  53. package/styles/accordion/_bootstrap4-definition.scss +82 -82
  54. package/styles/accordion/_fabric-dark-definition.scss +74 -74
  55. package/styles/accordion/_fabric-definition.scss +78 -78
  56. package/styles/accordion/_highcontrast-definition.scss +106 -106
  57. package/styles/accordion/_highcontrast-light-definition.scss +104 -104
  58. package/styles/accordion/_layout.scss +447 -447
  59. package/styles/accordion/_material-dark-definition.scss +75 -75
  60. package/styles/accordion/_material-definition.scss +72 -72
  61. package/styles/accordion/_theme.scss +479 -479
  62. package/styles/accordion/icons/_bootstrap-dark.scss +17 -17
  63. package/styles/accordion/icons/_bootstrap.scss +17 -17
  64. package/styles/accordion/icons/_bootstrap4.scss +17 -17
  65. package/styles/accordion/icons/_fabric-dark.scss +17 -17
  66. package/styles/accordion/icons/_fabric.scss +17 -17
  67. package/styles/accordion/icons/_highcontrast-light.scss +17 -17
  68. package/styles/accordion/icons/_highcontrast.scss +17 -17
  69. package/styles/accordion/icons/_material-dark.scss +17 -17
  70. package/styles/accordion/icons/_material.scss +17 -17
  71. package/styles/bootstrap-dark.css +7 -9
  72. package/styles/bootstrap.css +7 -9
  73. package/styles/bootstrap4.css +7 -9
  74. package/styles/bootstrap5-dark.css +0 -0
  75. package/styles/bootstrap5-dark.scss +0 -0
  76. package/styles/bootstrap5.css +0 -0
  77. package/styles/bootstrap5.scss +0 -0
  78. package/styles/context-menu/_all.scss +2 -2
  79. package/styles/context-menu/_bootstrap-dark-definition.scss +54 -54
  80. package/styles/context-menu/_bootstrap-definition.scss +52 -52
  81. package/styles/context-menu/_bootstrap4-definition.scss +52 -52
  82. package/styles/context-menu/_fabric-dark-definition.scss +54 -54
  83. package/styles/context-menu/_fabric-definition.scss +52 -52
  84. package/styles/context-menu/_highcontrast-definition.scss +52 -52
  85. package/styles/context-menu/_highcontrast-light-definition.scss +54 -54
  86. package/styles/context-menu/_layout-mixin.scss +175 -175
  87. package/styles/context-menu/_layout.scss +70 -70
  88. package/styles/context-menu/_material-dark-definition.scss +54 -54
  89. package/styles/context-menu/_material-definition.scss +52 -52
  90. package/styles/context-menu/_theme-mixin.scss +59 -59
  91. package/styles/context-menu/_theme.scss +36 -36
  92. package/styles/context-menu/bootstrap-dark.css +0 -1
  93. package/styles/context-menu/bootstrap.css +0 -1
  94. package/styles/context-menu/bootstrap4.css +0 -1
  95. package/styles/context-menu/fabric-dark.css +0 -1
  96. package/styles/context-menu/fabric.css +0 -1
  97. package/styles/context-menu/highcontrast-light.css +0 -1
  98. package/styles/context-menu/highcontrast.css +0 -1
  99. package/styles/context-menu/icons/_bootstrap-dark.scss +30 -30
  100. package/styles/context-menu/icons/_bootstrap.scss +30 -30
  101. package/styles/context-menu/icons/_bootstrap4.scss +30 -30
  102. package/styles/context-menu/icons/_fabric-dark.scss +30 -30
  103. package/styles/context-menu/icons/_fabric.scss +30 -30
  104. package/styles/context-menu/icons/_highcontrast-light.scss +30 -30
  105. package/styles/context-menu/icons/_highcontrast.scss +30 -30
  106. package/styles/context-menu/icons/_material-dark.scss +30 -30
  107. package/styles/context-menu/icons/_material.scss +30 -30
  108. package/styles/context-menu/material-dark.css +0 -1
  109. package/styles/context-menu/material.css +3 -4
  110. package/styles/fabric-dark.css +7 -9
  111. package/styles/fabric.css +7 -9
  112. package/styles/h-scroll/_all.scss +2 -2
  113. package/styles/h-scroll/_bootstrap-dark-definition.scss +49 -49
  114. package/styles/h-scroll/_bootstrap-definition.scss +50 -50
  115. package/styles/h-scroll/_bootstrap4-definition.scss +49 -49
  116. package/styles/h-scroll/_fabric-dark-definition.scss +50 -50
  117. package/styles/h-scroll/_fabric-definition.scss +48 -48
  118. package/styles/h-scroll/_highcontrast-definition.scss +52 -52
  119. package/styles/h-scroll/_highcontrast-light-definition.scss +54 -54
  120. package/styles/h-scroll/_layout.scss +198 -198
  121. package/styles/h-scroll/_material-dark-definition.scss +77 -77
  122. package/styles/h-scroll/_material-definition.scss +77 -77
  123. package/styles/h-scroll/_theme.scss +157 -157
  124. package/styles/h-scroll/icons/_bootstrap-dark.scss +49 -49
  125. package/styles/h-scroll/icons/_bootstrap.scss +49 -49
  126. package/styles/h-scroll/icons/_bootstrap4.scss +49 -49
  127. package/styles/h-scroll/icons/_fabric-dark.scss +49 -49
  128. package/styles/h-scroll/icons/_fabric.scss +49 -49
  129. package/styles/h-scroll/icons/_highcontrast-light.scss +49 -49
  130. package/styles/h-scroll/icons/_highcontrast.scss +49 -49
  131. package/styles/h-scroll/icons/_material-dark.scss +49 -49
  132. package/styles/h-scroll/icons/_material.scss +49 -49
  133. package/styles/highcontrast-light.css +7 -9
  134. package/styles/highcontrast.css +7 -9
  135. package/styles/material-dark.css +7 -9
  136. package/styles/material.css +21 -14
  137. package/styles/menu/_all.scss +2 -2
  138. package/styles/menu/_bootstrap-dark-definition.scss +63 -63
  139. package/styles/menu/_bootstrap-definition.scss +65 -65
  140. package/styles/menu/_bootstrap4-definition.scss +64 -64
  141. package/styles/menu/_fabric-dark-definition.scss +63 -63
  142. package/styles/menu/_fabric-definition.scss +64 -64
  143. package/styles/menu/_highcontrast-definition.scss +65 -65
  144. package/styles/menu/_highcontrast-light-definition.scss +61 -61
  145. package/styles/menu/_layout.scss +638 -638
  146. package/styles/menu/_material-dark-definition.scss +63 -63
  147. package/styles/menu/_material-definition.scss +64 -64
  148. package/styles/menu/_theme.scss +243 -243
  149. package/styles/menu/bootstrap-dark.css +0 -1
  150. package/styles/menu/bootstrap.css +0 -1
  151. package/styles/menu/bootstrap.scss +1 -0
  152. package/styles/menu/bootstrap4.css +0 -1
  153. package/styles/menu/fabric-dark.css +0 -1
  154. package/styles/menu/fabric.css +0 -1
  155. package/styles/menu/fabric.scss +1 -0
  156. package/styles/menu/highcontrast-light.css +0 -1
  157. package/styles/menu/highcontrast.css +0 -1
  158. package/styles/menu/highcontrast.scss +1 -0
  159. package/styles/menu/icons/_bootstrap-dark.scss +127 -127
  160. package/styles/menu/icons/_bootstrap.scss +127 -127
  161. package/styles/menu/icons/_bootstrap4.scss +127 -127
  162. package/styles/menu/icons/_fabric-dark.scss +127 -127
  163. package/styles/menu/icons/_fabric.scss +127 -127
  164. package/styles/menu/icons/_highcontrast-light.scss +127 -127
  165. package/styles/menu/icons/_highcontrast.scss +127 -127
  166. package/styles/menu/icons/_material-dark.scss +127 -127
  167. package/styles/menu/icons/_material.scss +127 -127
  168. package/styles/menu/material-dark.css +0 -1
  169. package/styles/menu/material.css +2 -3
  170. package/styles/menu/material.scss +1 -0
  171. package/styles/sidebar/_all.scss +3 -3
  172. package/styles/sidebar/_bootstrap-dark-definition.scss +4 -4
  173. package/styles/sidebar/_bootstrap-definition.scss +4 -4
  174. package/styles/sidebar/_bootstrap4-definition.scss +4 -4
  175. package/styles/sidebar/_fabric-dark-definition.scss +4 -4
  176. package/styles/sidebar/_fabric-definition.scss +6 -6
  177. package/styles/sidebar/_highcontrast-definition.scss +4 -4
  178. package/styles/sidebar/_highcontrast-light-definition.scss +4 -4
  179. package/styles/sidebar/_icons.scss +1 -1
  180. package/styles/sidebar/_material-dark-definition.scss +4 -4
  181. package/styles/sidebar/_material-definition.scss +6 -6
  182. package/styles/sidebar/_theme.scss +168 -168
  183. package/styles/sidebar/bootstrap-dark.css +0 -1
  184. package/styles/sidebar/bootstrap.css +0 -1
  185. package/styles/sidebar/bootstrap4.css +0 -1
  186. package/styles/sidebar/fabric-dark.css +0 -1
  187. package/styles/sidebar/fabric.css +0 -1
  188. package/styles/sidebar/highcontrast-light.css +0 -1
  189. package/styles/sidebar/highcontrast.css +0 -1
  190. package/styles/sidebar/material-dark.css +0 -1
  191. package/styles/sidebar/material.css +0 -1
  192. package/styles/tab/_all.scss +2 -2
  193. package/styles/tab/_bootstrap-dark-definition.scss +386 -386
  194. package/styles/tab/_bootstrap-definition.scss +396 -396
  195. package/styles/tab/_bootstrap4-definition.scss +401 -401
  196. package/styles/tab/_fabric-dark-definition.scss +394 -394
  197. package/styles/tab/_fabric-definition.scss +410 -410
  198. package/styles/tab/_highcontrast-definition.scss +434 -434
  199. package/styles/tab/_highcontrast-light-definition.scss +423 -423
  200. package/styles/tab/_icons.scss +43 -43
  201. package/styles/tab/_layout.scss +3528 -3521
  202. package/styles/tab/_material-dark-definition.scss +407 -407
  203. package/styles/tab/_material-definition.scss +416 -416
  204. package/styles/tab/_theme.scss +1751 -1751
  205. package/styles/tab/bootstrap-dark.css +7 -2
  206. package/styles/tab/bootstrap.css +7 -2
  207. package/styles/tab/bootstrap4.css +7 -2
  208. package/styles/tab/fabric-dark.css +7 -2
  209. package/styles/tab/fabric.css +7 -2
  210. package/styles/tab/highcontrast-light.css +7 -2
  211. package/styles/tab/highcontrast.css +7 -2
  212. package/styles/tab/icons/_bootstrap-dark.scss +132 -132
  213. package/styles/tab/icons/_bootstrap.scss +132 -132
  214. package/styles/tab/icons/_bootstrap4.scss +132 -132
  215. package/styles/tab/icons/_fabric-dark.scss +132 -132
  216. package/styles/tab/icons/_fabric.scss +132 -132
  217. package/styles/tab/icons/_highcontrast-light.scss +132 -132
  218. package/styles/tab/icons/_highcontrast.scss +132 -132
  219. package/styles/tab/icons/_material-dark.scss +132 -132
  220. package/styles/tab/icons/_material.scss +132 -132
  221. package/styles/tab/material-dark.css +7 -2
  222. package/styles/tab/material.css +7 -2
  223. package/styles/tailwind-dark.css +0 -0
  224. package/styles/tailwind-dark.scss +0 -0
  225. package/styles/tailwind.css +0 -0
  226. package/styles/tailwind.scss +0 -0
  227. package/styles/toolbar/_all.scss +2 -2
  228. package/styles/toolbar/_bootstrap-dark-definition.scss +135 -135
  229. package/styles/toolbar/_bootstrap-definition.scss +134 -134
  230. package/styles/toolbar/_bootstrap4-definition.scss +139 -139
  231. package/styles/toolbar/_fabric-dark-definition.scss +155 -155
  232. package/styles/toolbar/_fabric-definition.scss +139 -139
  233. package/styles/toolbar/_highcontrast-definition.scss +149 -149
  234. package/styles/toolbar/_highcontrast-light-definition.scss +164 -164
  235. package/styles/toolbar/_layout.scss +1460 -1460
  236. package/styles/toolbar/_material-dark-definition.scss +180 -180
  237. package/styles/toolbar/_material-definition.scss +164 -164
  238. package/styles/toolbar/_theme.scss +451 -451
  239. package/styles/toolbar/bootstrap-dark.css +0 -1
  240. package/styles/toolbar/bootstrap.css +0 -1
  241. package/styles/toolbar/bootstrap.scss +1 -0
  242. package/styles/toolbar/bootstrap4.css +0 -1
  243. package/styles/toolbar/fabric-dark.css +0 -1
  244. package/styles/toolbar/fabric.css +0 -1
  245. package/styles/toolbar/fabric.scss +1 -0
  246. package/styles/toolbar/highcontrast-light.css +0 -1
  247. package/styles/toolbar/highcontrast.css +0 -1
  248. package/styles/toolbar/highcontrast.scss +1 -0
  249. package/styles/toolbar/icons/_bootstrap-dark.scss +16 -16
  250. package/styles/toolbar/icons/_bootstrap.scss +16 -16
  251. package/styles/toolbar/icons/_bootstrap4.scss +16 -16
  252. package/styles/toolbar/icons/_fabric-dark.scss +16 -16
  253. package/styles/toolbar/icons/_fabric.scss +16 -16
  254. package/styles/toolbar/icons/_highcontrast-light.scss +16 -16
  255. package/styles/toolbar/icons/_highcontrast.scss +16 -16
  256. package/styles/toolbar/icons/_material-dark.scss +16 -16
  257. package/styles/toolbar/icons/_material.scss +16 -16
  258. package/styles/toolbar/material-dark.css +0 -1
  259. package/styles/toolbar/material.css +0 -1
  260. package/styles/toolbar/material.scss +1 -0
  261. package/styles/treeview/_all.scss +2 -2
  262. package/styles/treeview/_bootstrap-dark-definition.scss +131 -131
  263. package/styles/treeview/_bootstrap-definition.scss +127 -127
  264. package/styles/treeview/_bootstrap4-definition.scss +153 -153
  265. package/styles/treeview/_fabric-dark-definition.scss +130 -130
  266. package/styles/treeview/_fabric-definition.scss +126 -126
  267. package/styles/treeview/_highcontrast-definition.scss +132 -132
  268. package/styles/treeview/_highcontrast-light-definition.scss +137 -137
  269. package/styles/treeview/_layout.scss +551 -551
  270. package/styles/treeview/_material-dark-definition.scss +126 -126
  271. package/styles/treeview/_material-definition.scss +126 -126
  272. package/styles/treeview/_theme.scss +331 -331
  273. package/styles/treeview/bootstrap-dark.css +0 -3
  274. package/styles/treeview/bootstrap.css +0 -3
  275. package/styles/treeview/bootstrap4.css +0 -3
  276. package/styles/treeview/fabric-dark.css +0 -3
  277. package/styles/treeview/fabric.css +0 -3
  278. package/styles/treeview/highcontrast-light.css +0 -3
  279. package/styles/treeview/highcontrast.css +0 -3
  280. package/styles/treeview/icons/_bootstrap-dark.scss +39 -39
  281. package/styles/treeview/icons/_bootstrap.scss +39 -39
  282. package/styles/treeview/icons/_bootstrap4.scss +39 -39
  283. package/styles/treeview/icons/_fabric-dark.scss +43 -43
  284. package/styles/treeview/icons/_fabric.scss +43 -43
  285. package/styles/treeview/icons/_highcontrast-light.scss +43 -43
  286. package/styles/treeview/icons/_highcontrast.scss +43 -43
  287. package/styles/treeview/icons/_material-dark.scss +43 -43
  288. package/styles/treeview/icons/_material.scss +43 -43
  289. package/styles/treeview/material-dark.css +0 -3
  290. package/styles/treeview/material.css +9 -3
  291. package/styles/v-scroll/_all.scss +2 -2
  292. package/styles/v-scroll/_bootstrap-dark-definition.scss +50 -50
  293. package/styles/v-scroll/_bootstrap-definition.scss +49 -49
  294. package/styles/v-scroll/_bootstrap4-definition.scss +49 -49
  295. package/styles/v-scroll/_fabric-dark-definition.scss +51 -51
  296. package/styles/v-scroll/_fabric-definition.scss +50 -50
  297. package/styles/v-scroll/_highcontrast-definition.scss +51 -51
  298. package/styles/v-scroll/_highcontrast-light-definition.scss +52 -52
  299. package/styles/v-scroll/_layout.scss +162 -162
  300. package/styles/v-scroll/_material-dark-definition.scss +78 -78
  301. package/styles/v-scroll/_material-definition.scss +77 -77
  302. package/styles/v-scroll/_theme.scss +133 -133
  303. package/styles/v-scroll/icons/_bootstrap-dark.scss +26 -26
  304. package/styles/v-scroll/icons/_bootstrap.scss +26 -26
  305. package/styles/v-scroll/icons/_bootstrap4.scss +26 -26
  306. package/styles/v-scroll/icons/_fabric-dark.scss +26 -26
  307. package/styles/v-scroll/icons/_fabric.scss +26 -26
  308. package/styles/v-scroll/icons/_highcontrast-light.scss +26 -26
  309. package/styles/v-scroll/icons/_highcontrast.scss +26 -26
  310. package/styles/v-scroll/icons/_material-dark.scss +26 -26
  311. package/styles/v-scroll/icons/_material.scss +26 -26
  312. package/tslint.json +111 -0
  313. package/.gitlab/merge_request_templates/Bug.md +0 -63
  314. package/.gitlab/merge_request_templates/feature.md +0 -39
@@ -1,29 +1,29 @@
1
- import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Droppable, Event, EventHandler, KeyboardEvents, L10n, NotifyPropertyChanges, Property, Touch, addClass, append, attributes, blazorTemplates, classList, closest, compile, createElement, detach, extend, formatUnit, getElement, getInstance, getUniqueID, getValue, isBlazor, isNullOrUndefined, isUndefined, isVisible, matches, remove, removeClass, resetBlazorTemplate, rippleEffect, select, selectAll, setStyleAttribute, setValue, updateBlazorTemplate } from '@syncfusion/ej2-base';
1
+ import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Droppable, Event, EventHandler, KeyboardEvents, L10n, NotifyPropertyChanges, Property, Touch, addClass, append, attributes, blazorTemplates, classList, closest, compile, createElement, detach, extend, formatUnit, getElement, getInstance, getRandomId, getUniqueID, getValue, isBlazor, isNullOrUndefined, isUndefined, isVisible, matches, remove, removeClass, resetBlazorTemplate, rippleEffect, select, selectAll, setStyleAttribute, setValue, updateBlazorTemplate } from '@syncfusion/ej2-base';
2
2
  import { ListBase } from '@syncfusion/ej2-lists';
3
3
  import { Popup, calculatePosition, createSpinner, fit, getScrollableParent, getZindexPartial, hideSpinner, isCollide, showSpinner } from '@syncfusion/ej2-popups';
4
4
  import { Button, createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';
5
5
  import { DataManager, Query } from '@syncfusion/ej2-data';
6
6
  import { Input } from '@syncfusion/ej2-inputs';
7
7
 
8
- var __extends = (undefined && undefined.__extends) || (function () {
9
- var extendStatics = function (d, b) {
10
- extendStatics = Object.setPrototypeOf ||
11
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
13
- return extendStatics(d, b);
14
- };
15
- return function (d, b) {
16
- extendStatics(d, b);
17
- function __() { this.constructor = d; }
18
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19
- };
20
- })();
21
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
22
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
24
- 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;
25
- return c > 3 && r && Object.defineProperty(target, key, r), r;
26
- };
8
+ var __extends = (undefined && undefined.__extends) || (function () {
9
+ var extendStatics = function (d, b) {
10
+ extendStatics = Object.setPrototypeOf ||
11
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
13
+ return extendStatics(d, b);
14
+ };
15
+ return function (d, b) {
16
+ extendStatics(d, b);
17
+ function __() { this.constructor = d; }
18
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19
+ };
20
+ })();
21
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
22
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
24
+ 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;
25
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
26
+ };
27
27
  var CLS_ROOT = 'e-hscroll';
28
28
  var CLS_RTL = 'e-rtl';
29
29
  var CLS_DISABLE = 'e-overlay';
@@ -210,7 +210,6 @@ var HScroll = /** @__PURE__ @class */ (function (_super) {
210
210
  var navLeftItem = this.createElement('div', { className: CLS_NAVLEFTARROW + ' ' + CLS_NAVARROW + ' e-icons' });
211
211
  navEle.appendChild(navLeftItem);
212
212
  nav.appendChild(navItem);
213
- nav.setAttribute('tabindex', '0');
214
213
  element.appendChild(nav);
215
214
  element.insertBefore(navEle, element.firstChild);
216
215
  if (this.ieCheck) {
@@ -495,25 +494,25 @@ var HScroll = /** @__PURE__ @class */ (function (_super) {
495
494
  return HScroll;
496
495
  }(Component));
497
496
 
498
- var __extends$1 = (undefined && undefined.__extends) || (function () {
499
- var extendStatics = function (d, b) {
500
- extendStatics = Object.setPrototypeOf ||
501
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
502
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
503
- return extendStatics(d, b);
504
- };
505
- return function (d, b) {
506
- extendStatics(d, b);
507
- function __() { this.constructor = d; }
508
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
509
- };
510
- })();
511
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
512
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
513
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
514
- 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;
515
- return c > 3 && r && Object.defineProperty(target, key, r), r;
516
- };
497
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
498
+ var extendStatics = function (d, b) {
499
+ extendStatics = Object.setPrototypeOf ||
500
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
501
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
502
+ return extendStatics(d, b);
503
+ };
504
+ return function (d, b) {
505
+ extendStatics(d, b);
506
+ function __() { this.constructor = d; }
507
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
508
+ };
509
+ })();
510
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
511
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
512
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
513
+ 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;
514
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
515
+ };
517
516
  var CLS_ROOT$1 = 'e-vscroll';
518
517
  var CLS_RTL$1 = 'e-rtl';
519
518
  var CLS_DISABLE$1 = 'e-overlay';
@@ -943,25 +942,25 @@ var VScroll = /** @__PURE__ @class */ (function (_super) {
943
942
  return VScroll;
944
943
  }(Component));
945
944
 
946
- var __extends$2 = (undefined && undefined.__extends) || (function () {
947
- var extendStatics = function (d, b) {
948
- extendStatics = Object.setPrototypeOf ||
949
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
950
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
951
- return extendStatics(d, b);
952
- };
953
- return function (d, b) {
954
- extendStatics(d, b);
955
- function __() { this.constructor = d; }
956
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
957
- };
958
- })();
959
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
960
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
961
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
962
- 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;
963
- return c > 3 && r && Object.defineProperty(target, key, r), r;
964
- };
945
+ var __extends$2 = (undefined && undefined.__extends) || (function () {
946
+ var extendStatics = function (d, b) {
947
+ extendStatics = Object.setPrototypeOf ||
948
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
949
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
950
+ return extendStatics(d, b);
951
+ };
952
+ return function (d, b) {
953
+ extendStatics(d, b);
954
+ function __() { this.constructor = d; }
955
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
956
+ };
957
+ })();
958
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
959
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
960
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
961
+ 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;
962
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
963
+ };
965
964
  var ENTER = 'enter';
966
965
  var ESCAPE = 'escape';
967
966
  var FOCUSED = 'e-focused';
@@ -1013,6 +1012,17 @@ var FieldSettings = /** @__PURE__ @class */ (function (_super) {
1013
1012
  ], FieldSettings.prototype, "children", void 0);
1014
1013
  return FieldSettings;
1015
1014
  }(ChildProperty));
1015
+ var REGX_IOS = /(ipad|iphone|ipod touch)/i;
1016
+ var REGX_BROWSER = {
1017
+ OPERA: /(opera|opr)(?:.*version|)[ /]([\w.]+)/i,
1018
+ EDGE: /(edge)(?:.*version|)[ /]([\w.]+)/i,
1019
+ CHROME: /(chrome|crios)[ /]([\w.]+)/i,
1020
+ PANTHOMEJS: /(phantomjs)[ /]([\w.]+)/i,
1021
+ SAFARI: /(safari)[ /]([\w.]+)/i,
1022
+ WEBKIT: /(webkit)[ /]([\w.]+)/i,
1023
+ MSIE: /(msie|trident) ([\w.]+)/i,
1024
+ MOZILLA: /(mozilla)(?:.*? rv:([\w.]+)|)/i
1025
+ };
1016
1026
  /**
1017
1027
  * Specifies menu items.
1018
1028
  */
@@ -1196,7 +1206,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1196
1206
  EventHandler.add(target, 'click', this.menuHeaderClickHandler, this);
1197
1207
  }
1198
1208
  else {
1199
- if (Browser.isIos) {
1209
+ if (this.menuIos()) {
1200
1210
  new Touch(target, { tapHold: this.touchHandler.bind(this) });
1201
1211
  }
1202
1212
  else {
@@ -1206,6 +1216,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1206
1216
  }
1207
1217
  this.targetElement = target;
1208
1218
  if (!this.isMenu) {
1219
+ EventHandler.add(this.targetElement, 'scroll', this.scrollHandler, this);
1209
1220
  for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
1210
1221
  var parent_1 = _a[_i];
1211
1222
  EventHandler.add(parent_1, 'scroll', this.scrollHandler, this);
@@ -1223,6 +1234,22 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
1223
1234
  this.wireKeyboardEvent(wrapper);
1224
1235
  this.rippleFn = rippleEffect(wrapper, { selector: '.' + ITEM });
1225
1236
  };
1237
+ MenuBase.prototype.menuIos = function () {
1238
+ return this.getValue('isIos', REGX_IOS);
1239
+ };
1240
+ MenuBase.prototype.getValue = function (key, regX) {
1241
+ var browserDetails = typeof window !== 'undefined' ? window.browserDetails : {};
1242
+ if (typeof navigator !== 'undefined' && navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 && Browser.isTouch === true && !REGX_BROWSER.CHROME.test(navigator.userAgent)) {
1243
+ browserDetails['isIos'] = true;
1244
+ browserDetails['isDevice'] = true;
1245
+ browserDetails['isTouch'] = true;
1246
+ browserDetails['isPointer'] = true;
1247
+ }
1248
+ if ('undefined' === typeof browserDetails["" + key]) {
1249
+ return browserDetails["" + key] = regX.test(Browser.userAgent);
1250
+ }
1251
+ return browserDetails["" + key];
1252
+ };
1226
1253
  MenuBase.prototype.wireKeyboardEvent = function (element) {
1227
1254
  var keyConfigs = {
1228
1255
  downarrow: DOWNARROW,
@@ -2001,7 +2028,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2001
2028
  if (this.isMenu) {
2002
2029
  if (!this.showItemOnClick && (trgt.parentElement !== wrapper && !closest(trgt, '.e-' + this.getModuleName() + '-popup'))
2003
2030
  && (!cli || (cli && !this.getIndex(cli.id, true).length))) {
2004
- this.removeLIStateByClass([FOCUSED, SELECTED], [wrapper]);
2031
+ this.removeLIStateByClass([FOCUSED], [wrapper]);
2005
2032
  if (this.navIdx.length) {
2006
2033
  this.isClosed = true;
2007
2034
  this.closeMenu(null, e);
@@ -2068,6 +2095,9 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2068
2095
  return false;
2069
2096
  };
2070
2097
  MenuBase.prototype.menuHeaderClickHandler = function (e) {
2098
+ if (closest(e.target, '.e-menu-wrapper').querySelector('ul.e-menu-parent').id !== this.element.id) {
2099
+ return;
2100
+ }
2071
2101
  this.element.classList.contains('e-hide-menu') ? this.openHamburgerMenu(e) : this.closeHamburgerMenu(e);
2072
2102
  };
2073
2103
  MenuBase.prototype.clickHandler = function (e) {
@@ -2078,9 +2108,16 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2078
2108
  var wrapper = this.getWrapper();
2079
2109
  var trgt = e.target;
2080
2110
  var cli = this.cli = this.getLI(trgt);
2111
+ var regex = new RegExp('-ej2menu-(.*)-popup');
2081
2112
  var cliWrapper = cli ? closest(cli, '.e-' + this.getModuleName() + '-wrapper') : null;
2082
2113
  var isInstLI = cli && cliWrapper && (this.isMenu ? this.getIndex(cli.id, true).length > 0
2083
2114
  : wrapper.firstElementChild.id === cliWrapper.firstElementChild.id);
2115
+ if (cli && cliWrapper && this.isMenu) {
2116
+ var cliWrapperId = cliWrapper.id ? regex.exec(cliWrapper.id)[1] : cliWrapper.querySelector('.e-menu-parent').id;
2117
+ if (this.element.id !== cliWrapperId) {
2118
+ return;
2119
+ }
2120
+ }
2084
2121
  if (isInstLI && e.type === 'click' && !cli.classList.contains(HEADER)) {
2085
2122
  this.setLISelected(cli);
2086
2123
  var navIdx = this.getIndex(cli.id, true);
@@ -2142,7 +2179,11 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2142
2179
  this.menuHeaderClickHandler(e);
2143
2180
  }
2144
2181
  else {
2145
- if (trgt.tagName !== 'UL' || trgt.parentElement !== wrapper) {
2182
+ if (trgt.tagName !== 'UL' || (this.isMenu ? trgt.parentElement.classList.contains('e-menu-wrapper') &&
2183
+ !this.getIndex(trgt.querySelector('.' + ITEM).id, true).length : trgt.parentElement !== wrapper)) {
2184
+ if (!cli) {
2185
+ this.removeLIStateByClass([SELECTED], [wrapper]);
2186
+ }
2146
2187
  if (!cli || !cli.querySelector('.' + CARET)) {
2147
2188
  this.closeMenu(null, e);
2148
2189
  }
@@ -2155,7 +2196,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2155
2196
  if (this.showSubMenu) {
2156
2197
  var idx = this.navIdx.concat(this.cliIdx);
2157
2198
  var item = this.getItem(idx);
2158
- if (item[this.getField('children', idx.length - 1)] &&
2199
+ if (item && item[this.getField('children', idx.length - 1)] &&
2159
2200
  item[this.getField('children', idx.length - 1)].length) {
2160
2201
  if (e.type === 'mouseover' || (Browser.isDevice && this.isMenu)) {
2161
2202
  this.setLISelected(this.cli);
@@ -2203,6 +2244,13 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2203
2244
  }
2204
2245
  return items;
2205
2246
  };
2247
+ MenuBase.prototype.setItems = function (newItems, navIdx) {
2248
+ var items = this.getItems(navIdx);
2249
+ items.splice(0, items.length);
2250
+ for (var i = 0; i < newItems.length; i++) {
2251
+ items.splice(i, 0, newItems[i]);
2252
+ }
2253
+ };
2206
2254
  MenuBase.prototype.getIdx = function (ul, li, skipHdr) {
2207
2255
  if (skipHdr === void 0) { skipHdr = true; }
2208
2256
  var idx = Array.prototype.indexOf.call(ul.querySelectorAll('li'), li);
@@ -2313,8 +2361,8 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2313
2361
  idx = navIdx.pop();
2314
2362
  item = this_1.getItems(navIdx);
2315
2363
  this_1.insertAfter([item[idx]], item[idx].text);
2316
- item = this_1.getItems(navIdx);
2317
2364
  this_1.removeItem(item, navIdx, idx);
2365
+ this_1.setItems(item, navIdx);
2318
2366
  }
2319
2367
  navIdx.length = 0;
2320
2368
  }
@@ -2378,6 +2426,7 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2378
2426
  }
2379
2427
  }
2380
2428
  if (!this.isMenu) {
2429
+ EventHandler.remove(this.targetElement, 'scroll', this.scrollHandler);
2381
2430
  for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
2382
2431
  var parent_2 = _a[_i];
2383
2432
  EventHandler.remove(parent_2, 'scroll', this.scrollHandler);
@@ -2550,8 +2599,28 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2550
2599
  var idx;
2551
2600
  var navIdx;
2552
2601
  var disabled = DISABLED;
2602
+ var skipItem;
2553
2603
  for (var i = 0; i < items.length; i++) {
2554
2604
  navIdx = this.getIndex(items[i], isUniqueId);
2605
+ if (this.navIdx.length) {
2606
+ if (navIdx.length !== 1) {
2607
+ skipItem = false;
2608
+ for (var i_1 = 0, len = navIdx.length - 1; i_1 < len; i_1++) {
2609
+ if (navIdx[i_1] !== this.navIdx[i_1]) {
2610
+ skipItem = true;
2611
+ break;
2612
+ }
2613
+ }
2614
+ if (skipItem) {
2615
+ continue;
2616
+ }
2617
+ }
2618
+ }
2619
+ else {
2620
+ if (navIdx.length !== 1) {
2621
+ continue;
2622
+ }
2623
+ }
2555
2624
  idx = navIdx.pop();
2556
2625
  ul = this.getUlByNavIdx(navIdx.length);
2557
2626
  if (ul) {
@@ -2823,25 +2892,25 @@ var MenuBase = /** @__PURE__ @class */ (function (_super) {
2823
2892
  * Navigation Common modules
2824
2893
  */
2825
2894
 
2826
- var __extends$3 = (undefined && undefined.__extends) || (function () {
2827
- var extendStatics = function (d, b) {
2828
- extendStatics = Object.setPrototypeOf ||
2829
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2830
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2831
- return extendStatics(d, b);
2832
- };
2833
- return function (d, b) {
2834
- extendStatics(d, b);
2835
- function __() { this.constructor = d; }
2836
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2837
- };
2838
- })();
2839
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2840
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2841
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2842
- 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;
2843
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2844
- };
2895
+ var __extends$3 = (undefined && undefined.__extends) || (function () {
2896
+ var extendStatics = function (d, b) {
2897
+ extendStatics = Object.setPrototypeOf ||
2898
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2899
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2900
+ return extendStatics(d, b);
2901
+ };
2902
+ return function (d, b) {
2903
+ extendStatics(d, b);
2904
+ function __() { this.constructor = d; }
2905
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2906
+ };
2907
+ })();
2908
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2909
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2910
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2911
+ 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;
2912
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2913
+ };
2845
2914
  var CLS_VERTICAL = 'e-vertical';
2846
2915
  var CLS_ITEMS = 'e-toolbar-items';
2847
2916
  var CLS_ITEM = 'e-toolbar-item';
@@ -3358,7 +3427,8 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
3358
3427
  }
3359
3428
  if (!eventArgs.cancel) {
3360
3429
  this.trigger('clicked', eventArgs, function (clickedArgs) {
3361
- if (!isNullOrUndefined(_this.popObj) && isPopupElement && !clickedArgs.cancel && _this.overflowMode === 'Popup') {
3430
+ if (!isNullOrUndefined(_this.popObj) && isPopupElement && !clickedArgs.cancel && _this.overflowMode === 'Popup' &&
3431
+ clickedArgs.item && clickedArgs.item.type !== 'Input') {
3362
3432
  _this.popObj.hide({ name: 'FadeOut', duration: 100 });
3363
3433
  }
3364
3434
  });
@@ -3544,8 +3614,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
3544
3614
  this.removePositioning();
3545
3615
  }
3546
3616
  if (this.checkOverflow(ele, innerItems) || priorityCheck) {
3547
- this.createPopupEle(ele, [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, ele)));
3548
- this.element.querySelector('.' + CLS_TBARNAV).setAttribute('tabIndex', '0');
3617
+ this.setOverflowAttributes(ele);
3549
3618
  }
3550
3619
  this.toolbarAlign(innerItems);
3551
3620
  break;
@@ -3568,13 +3637,17 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
3568
3637
  if (this.tbarAlign) {
3569
3638
  this.removePositioning();
3570
3639
  }
3571
- this.createPopupEle(ele, [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, ele)));
3572
- this.element.querySelector('.' + CLS_TBARNAV).setAttribute('tabIndex', '0');
3640
+ this.setOverflowAttributes(ele);
3573
3641
  }
3574
3642
  this.toolbarAlign(innerItems);
3575
3643
  }
3576
3644
  }
3577
3645
  };
3646
+ Toolbar.prototype.setOverflowAttributes = function (ele) {
3647
+ this.createPopupEle(ele, [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, ele)));
3648
+ this.element.querySelector('.' + CLS_TBARNAV).setAttribute('tabIndex', '0');
3649
+ this.element.querySelector('.' + CLS_TBARNAV).setAttribute('role', 'list');
3650
+ };
3578
3651
  Toolbar.prototype.separator = function () {
3579
3652
  var element = this.element;
3580
3653
  var eleItem = [].slice.call(element.querySelectorAll('.' + CLS_SEPARATOR));
@@ -3912,6 +3985,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
3912
3985
  var navItem = this.createElement('div', { className: CLS_POPUPDOWN + ' e-icons' });
3913
3986
  nav.appendChild(navItem);
3914
3987
  nav.setAttribute('tabindex', '0');
3988
+ nav.setAttribute('role', 'list');
3915
3989
  element.appendChild(nav);
3916
3990
  };
3917
3991
  Toolbar.prototype.tbarPriRef = function (inEle, indx, sepPri, el, des, elWid, wid, ig) {
@@ -4550,6 +4624,7 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4550
4624
  case 'Button':
4551
4625
  dom = this.buttonRendering(item, innerEle);
4552
4626
  dom.setAttribute('tabindex', '-1');
4627
+ dom.setAttribute('aria-label', (item.text || item.tooltipText));
4553
4628
  innerEle.appendChild(dom);
4554
4629
  innerEle.addEventListener('click', this.itemClick.bind(this));
4555
4630
  break;
@@ -4885,25 +4960,25 @@ var Toolbar = /** @__PURE__ @class */ (function (_super) {
4885
4960
  * Toolbar modules
4886
4961
  */
4887
4962
 
4888
- var __extends$4 = (undefined && undefined.__extends) || (function () {
4889
- var extendStatics = function (d, b) {
4890
- extendStatics = Object.setPrototypeOf ||
4891
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4892
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
4893
- return extendStatics(d, b);
4894
- };
4895
- return function (d, b) {
4896
- extendStatics(d, b);
4897
- function __() { this.constructor = d; }
4898
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4899
- };
4900
- })();
4901
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4902
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4903
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4904
- 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;
4905
- return c > 3 && r && Object.defineProperty(target, key, r), r;
4906
- };
4963
+ var __extends$4 = (undefined && undefined.__extends) || (function () {
4964
+ var extendStatics = function (d, b) {
4965
+ extendStatics = Object.setPrototypeOf ||
4966
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4967
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
4968
+ return extendStatics(d, b);
4969
+ };
4970
+ return function (d, b) {
4971
+ extendStatics(d, b);
4972
+ function __() { this.constructor = d; }
4973
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4974
+ };
4975
+ })();
4976
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4977
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4978
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4979
+ 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;
4980
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
4981
+ };
4907
4982
  var CLS_ACRDN_ROOT = 'e-acrdn-root';
4908
4983
  var CLS_ROOT$2 = 'e-accordion';
4909
4984
  var CLS_ITEM$1 = 'e-acrdn-item';
@@ -5148,12 +5223,20 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5148
5223
  };
5149
5224
  Accordion.prototype.updateContentBlazorTemplate = function (item, index) {
5150
5225
  if (this.itemTemplate && isBlazor() && !this.isStringTemplate) {
5151
- updateBlazorTemplate(this.element.id + '_itemTemplate', 'ItemTemplate', this);
5226
+ updateBlazorTemplate(this.element.id + '_itemTemplate', 'ItemTemplate', this, false);
5152
5227
  }
5153
5228
  if (item && item.content && isBlazor() && !this.isStringTemplate && item.content.indexOf('<div>Blazor') === 0) {
5154
5229
  updateBlazorTemplate(this.element.id + index + '_content', 'ContentTemplate', item);
5155
5230
  }
5156
5231
  };
5232
+ Accordion.prototype.updateHeaderBlazorTemplate = function (item, index) {
5233
+ if (this.headerTemplate && isBlazor() && !this.isStringTemplate) {
5234
+ updateBlazorTemplate(this.element.id + '_headerTemplate', 'HeaderTemplate', this, false);
5235
+ }
5236
+ if (item && item.header && isBlazor() && !this.isStringTemplate && item.header.indexOf('<div>Blazor') === 0) {
5237
+ updateBlazorTemplate(this.element.id + index + '_header', 'HeaderTemplate', item);
5238
+ }
5239
+ };
5157
5240
  Accordion.prototype.focusIn = function (e) {
5158
5241
  e.target.parentElement.classList.add(CLS_ITEMFOCUS);
5159
5242
  };
@@ -5225,9 +5308,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5225
5308
  EventHandler.add(innerDataSourceItem.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);
5226
5309
  }
5227
5310
  });
5228
- if (this.headerTemplate && isBlazor() && !this.isStringTemplate) {
5229
- updateBlazorTemplate(this.element.id + '_headerTemplate', 'headerTemplate', this);
5230
- }
5311
+ this.updateHeaderBlazorTemplate();
5231
5312
  }
5232
5313
  else {
5233
5314
  var items = this.items;
@@ -5235,9 +5316,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5235
5316
  items.forEach(function (item, index) {
5236
5317
  innerItem = _this.renderInnerItem(item, index);
5237
5318
  ele.appendChild(innerItem);
5238
- if (item.header && isBlazor() && !_this.isStringTemplate && item.header.indexOf('<div>Blazor') === 0) {
5239
- updateBlazorTemplate(_this.element.id + index + '_header', 'HeaderTemplate', item);
5240
- }
5319
+ _this.updateHeaderBlazorTemplate(item, index);
5241
5320
  if (innerItem.childElementCount > 0) {
5242
5321
  EventHandler.add(innerItem.querySelector('.' + CLS_HEADER), 'focus', _this.focusIn, _this);
5243
5322
  EventHandler.add(innerItem.querySelector('.' + CLS_HEADER), 'blur', _this.focusOut, _this);
@@ -5283,18 +5362,8 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5283
5362
  eventArgs.originalEvent = e;
5284
5363
  var ctnCheck = !isNullOrUndefined(tglIcon) && acrdnItem.childElementCount <= 1;
5285
5364
  if (ctnCheck && (isNullOrUndefined(acrdnCtn) || !isNullOrUndefined(select('.' + CLS_HEADER + ' .' + CLS_TOOGLEICN, acrdnCtnItem)))) {
5286
- if (this.dataSource.length > 0) {
5287
- this.dataSource.forEach(function (item, index) {
5288
- var itemEle = _this.getItemElements();
5289
- var ele = itemEle[index];
5290
- var ctn = _this.contentRendering(index);
5291
- ele.appendChild(ctn);
5292
- });
5293
- this.updateContentBlazorTemplate(eventArgs.item, index);
5294
- }
5295
- else {
5296
- acrdnItem.appendChild(this.contentRendering(index));
5297
- }
5365
+ acrdnItem.appendChild(this.contentRendering(index));
5366
+ this.updateContentBlazorTemplate(eventArgs.item, index);
5298
5367
  this.ariaAttrUpdate(acrdnItem);
5299
5368
  }
5300
5369
  this.trigger('clicked', eventArgs);
@@ -5403,7 +5472,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5403
5472
  var header = this.createElement('div', { className: CLS_HEADER, id: getUniqueID('acrdn_header') });
5404
5473
  var items = this.getItems();
5405
5474
  var ariaAttr = {
5406
- 'tabindex': '0', 'role': 'heading', 'aria-expanded': 'false', 'aria-selected': 'false',
5475
+ 'tabindex': '0', 'role': 'heading', 'aria-selected': 'false',
5407
5476
  'aria-disabled': 'false', 'aria-level': items.length.toString()
5408
5477
  };
5409
5478
  attributes(header, ariaAttr);
@@ -5413,6 +5482,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5413
5482
  var innerEle;
5414
5483
  innerEle = this.createElement('div', { className: CLS_ITEM$1 });
5415
5484
  innerEle.id = getUniqueID('acrdn_item');
5485
+ attributes(innerEle, { 'aria-expanded': 'false' });
5416
5486
  if (this.headerTemplate) {
5417
5487
  var ctnEle = this.headerEleGenerate();
5418
5488
  var hdrEle = this.createElement('div', { className: CLS_HEADERCTN });
@@ -5547,6 +5617,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5547
5617
  var content = select('.' + CLS_CONTENT, itemEle);
5548
5618
  header.setAttribute('aria-controls', content.id);
5549
5619
  content.setAttribute('aria-labelledby', header.id);
5620
+ content.setAttribute('role', 'definition');
5550
5621
  };
5551
5622
  Accordion.prototype.contentRendering = function (index) {
5552
5623
  var itemcnt = this.createElement('div', { className: CLS_CONTENT + ' ' + CLS_CTNHIDE, id: getUniqueID('acrdn_panel') });
@@ -5641,7 +5712,8 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5641
5712
  if (progress === 'end') {
5642
5713
  this.add(trgtItemEle, CLS_ACTIVE);
5643
5714
  trgt.setAttribute('aria-hidden', 'false');
5644
- attributes(trgt.previousElementSibling, { 'aria-selected': 'true', 'aria-expanded': 'true' });
5715
+ attributes(trgtItemEle, { 'aria-expanded': 'true' });
5716
+ attributes(trgt.previousElementSibling, { 'aria-selected': 'true' });
5645
5717
  icon.classList.remove(CLS_TOGANIMATE);
5646
5718
  this.trigger('expanded', eventArgs);
5647
5719
  }
@@ -5753,7 +5825,8 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5753
5825
  icon.classList.remove(CLS_TOGANIMATE);
5754
5826
  this.remove(trgtItemEle, CLS_ACTIVE);
5755
5827
  trgt.setAttribute('aria-hidden', 'true');
5756
- attributes(trgt.previousElementSibling, { 'aria-selected': 'false', 'aria-expanded': 'false' });
5828
+ attributes(trgtItemEle, { 'aria-expanded': 'false' });
5829
+ attributes(trgt.previousElementSibling, { 'aria-selected': 'false' });
5757
5830
  this.trigger('expanded', eventArgs);
5758
5831
  }
5759
5832
  };
@@ -5806,6 +5879,7 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
5806
5879
  else {
5807
5880
  ele.insertBefore(innerItemEle, itemEle[index]);
5808
5881
  }
5882
+ this.updateHeaderBlazorTemplate();
5809
5883
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'focus', this.focusIn, this);
5810
5884
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'blur', this.focusOut, this);
5811
5885
  this.itemAttribUpdate();
@@ -6129,25 +6203,25 @@ var Accordion = /** @__PURE__ @class */ (function (_super) {
6129
6203
  * Accordion all modules
6130
6204
  */
6131
6205
 
6132
- var __extends$5 = (undefined && undefined.__extends) || (function () {
6133
- var extendStatics = function (d, b) {
6134
- extendStatics = Object.setPrototypeOf ||
6135
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6136
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6137
- return extendStatics(d, b);
6138
- };
6139
- return function (d, b) {
6140
- extendStatics(d, b);
6141
- function __() { this.constructor = d; }
6142
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6143
- };
6144
- })();
6145
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6146
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6147
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6148
- 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;
6149
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6150
- };
6206
+ var __extends$5 = (undefined && undefined.__extends) || (function () {
6207
+ var extendStatics = function (d, b) {
6208
+ extendStatics = Object.setPrototypeOf ||
6209
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6210
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6211
+ return extendStatics(d, b);
6212
+ };
6213
+ return function (d, b) {
6214
+ extendStatics(d, b);
6215
+ function __() { this.constructor = d; }
6216
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6217
+ };
6218
+ })();
6219
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6220
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6221
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6222
+ 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;
6223
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6224
+ };
6151
6225
  /// <reference path='../common/menu-base-model.d.ts'/>
6152
6226
  /**
6153
6227
  * The ContextMenu is a graphical user interface that appears on the user right click/touch hold operation.
@@ -6251,25 +6325,25 @@ var ContextMenu = /** @__PURE__ @class */ (function (_super) {
6251
6325
  * ContextMenu modules
6252
6326
  */
6253
6327
 
6254
- var __extends$6 = (undefined && undefined.__extends) || (function () {
6255
- var extendStatics = function (d, b) {
6256
- extendStatics = Object.setPrototypeOf ||
6257
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6258
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6259
- return extendStatics(d, b);
6260
- };
6261
- return function (d, b) {
6262
- extendStatics(d, b);
6263
- function __() { this.constructor = d; }
6264
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6265
- };
6266
- })();
6267
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6268
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6269
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6270
- 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;
6271
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6272
- };
6328
+ var __extends$6 = (undefined && undefined.__extends) || (function () {
6329
+ var extendStatics = function (d, b) {
6330
+ extendStatics = Object.setPrototypeOf ||
6331
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6332
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6333
+ return extendStatics(d, b);
6334
+ };
6335
+ return function (d, b) {
6336
+ extendStatics(d, b);
6337
+ function __() { this.constructor = d; }
6338
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6339
+ };
6340
+ })();
6341
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6342
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6343
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6344
+ 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;
6345
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6346
+ };
6273
6347
  /// <reference path='../common/menu-base-model.d.ts'/>
6274
6348
  var VMENU = 'e-vertical';
6275
6349
  var SCROLLABLE = 'e-scrollable';
@@ -6513,27 +6587,28 @@ var Menu = /** @__PURE__ @class */ (function (_super) {
6513
6587
  * Menu modules
6514
6588
  */
6515
6589
 
6516
- var __extends$7 = (undefined && undefined.__extends) || (function () {
6517
- var extendStatics = function (d, b) {
6518
- extendStatics = Object.setPrototypeOf ||
6519
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6520
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6521
- return extendStatics(d, b);
6522
- };
6523
- return function (d, b) {
6524
- extendStatics(d, b);
6525
- function __() { this.constructor = d; }
6526
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6527
- };
6528
- })();
6529
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6530
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6531
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6532
- 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;
6533
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6534
- };
6590
+ var __extends$7 = (undefined && undefined.__extends) || (function () {
6591
+ var extendStatics = function (d, b) {
6592
+ extendStatics = Object.setPrototypeOf ||
6593
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6594
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6595
+ return extendStatics(d, b);
6596
+ };
6597
+ return function (d, b) {
6598
+ extendStatics(d, b);
6599
+ function __() { this.constructor = d; }
6600
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6601
+ };
6602
+ })();
6603
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6604
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6605
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6606
+ 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;
6607
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6608
+ };
6535
6609
  var CLS_TAB = 'e-tab';
6536
6610
  var CLS_HEADER$1 = 'e-tab-header';
6611
+ var CLS_BLA_TEM = 'blazor-template';
6537
6612
  var CLS_CONTENT$1 = 'e-content';
6538
6613
  var CLS_NEST$1 = 'e-nested';
6539
6614
  var CLS_ITEMS$1 = 'e-items';
@@ -6571,6 +6646,7 @@ var CLS_VERTICAL$1 = 'e-vertical';
6571
6646
  var CLS_VLEFT = 'e-vertical-left';
6572
6647
  var CLS_VRIGHT = 'e-vertical-right';
6573
6648
  var CLS_HBOTTOM = 'e-horizontal-bottom';
6649
+ var CLS_FILL = 'e-fill-mode';
6574
6650
  var TabActionSettings = /** @__PURE__ @class */ (function (_super) {
6575
6651
  __extends$7(TabActionSettings, _super);
6576
6652
  function TabActionSettings() {
@@ -6751,6 +6827,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
6751
6827
  */
6752
6828
  Tab.prototype.render = function () {
6753
6829
  this.btnCls = this.createElement('span', { className: CLS_ICONS + ' ' + CLS_ICON_CLOSE, attrs: { title: this.title } });
6830
+ this.tabId = this.element.id.length > 0 ? ('-' + this.element.id) : getRandomId();
6754
6831
  this.renderContainer();
6755
6832
  this.wireEvents();
6756
6833
  this.initRender = false;
@@ -6801,7 +6878,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
6801
6878
  var _this = this;
6802
6879
  var hdrPlace = this.headerPlacement;
6803
6880
  var tabItems = [];
6804
- this.hdrEle = select('.' + CLS_HEADER$1, this.element);
6881
+ this.hdrEle = this.getTabHeader();
6805
6882
  this.addVerticalClass();
6806
6883
  if (!this.isTemplate) {
6807
6884
  tabItems = this.parseObject(this.items, 0);
@@ -6819,12 +6896,13 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
6819
6896
  while (this.hdrEle.firstElementChild) {
6820
6897
  detach(this.hdrEle.firstElementChild);
6821
6898
  }
6822
- this.hdrEle.appendChild(this.createElement('div', { className: CLS_ITEMS$1 }));
6899
+ var tabItems_1 = this.createElement('div', { className: CLS_ITEMS$1 });
6900
+ this.hdrEle.appendChild(tabItems_1);
6823
6901
  hdrItems.forEach(function (item, index) {
6824
6902
  _this.lastIndex = index;
6825
6903
  var attr = {
6826
- className: CLS_ITEM$2, id: CLS_ITEM$2 + '_' + index,
6827
- attrs: { role: 'tab', 'aria-controls': CLS_CONTENT$1 + '_' + index, 'aria-selected': 'false' }
6904
+ className: CLS_ITEM$2, id: CLS_ITEM$2 + _this.tabId + '_' + index,
6905
+ attrs: { role: 'tab', 'aria-controls': CLS_CONTENT$1 + _this.tabId + '_' + index, 'aria-selected': 'false' }
6828
6906
  };
6829
6907
  var txt = _this.createElement('span', {
6830
6908
  className: CLS_TEXT, innerHTML: item, attrs: { 'role': 'presentation' }
@@ -6833,8 +6911,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
6833
6911
  className: CLS_TEXT_WRAP, innerHTML: txt + _this.btnCls.outerHTML
6834
6912
  }).outerHTML;
6835
6913
  var wrap = _this.createElement('div', { className: CLS_WRAP, innerHTML: cont, attrs: { tabIndex: '-1' } });
6836
- select('.' + CLS_ITEMS$1, _this.element).appendChild(_this.createElement('div', attr));
6837
- selectAll('.' + CLS_ITEM$2, _this.element)[index].appendChild(wrap);
6914
+ tabItems_1.appendChild(_this.createElement('div', attr));
6915
+ selectAll('.' + CLS_ITEM$2, tabItems_1)[index].appendChild(wrap);
6838
6916
  });
6839
6917
  }
6840
6918
  }
@@ -6849,6 +6927,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
6849
6927
  this.tbObj.isStringTemplate = true;
6850
6928
  this.tbObj.createElement = this.createElement;
6851
6929
  this.tbObj.appendTo(this.hdrEle);
6930
+ attributes(this.hdrEle, { 'aria-label': 'tab-header' });
6852
6931
  for (var i = 0; i < this.items.length; i++) {
6853
6932
  var item = this.items[i];
6854
6933
  if (item.headerTemplate && isBlazor() && !this.isStringTemplate &&
@@ -6868,8 +6947,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
6868
6947
  for (var i = 0; i < hdrItem.length; i++) {
6869
6948
  if (contents.length - 1 >= i) {
6870
6949
  contents.item(i).className += CLS_ITEM$2;
6871
- attributes(contents.item(i), { 'role': 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + '_' + i });
6872
- contents.item(i).id = CLS_CONTENT$1 + '_' + i;
6950
+ attributes(contents.item(i), { 'role': 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + this.tabId + '_' + i });
6951
+ contents.item(i).id = CLS_CONTENT$1 + this.tabId + '_' + i;
6873
6952
  }
6874
6953
  }
6875
6954
  }
@@ -6935,13 +7014,13 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
6935
7014
  var wrap = _this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
6936
7015
  wrap.appendChild(tCont);
6937
7016
  if (_this.itemIndexArray === []) {
6938
- _this.itemIndexArray.push(CLS_ITEM$2 + '_' + _this.lastIndex);
7017
+ _this.itemIndexArray.push(CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex);
6939
7018
  }
6940
7019
  else {
6941
- _this.itemIndexArray.splice((index + i), 0, CLS_ITEM$2 + '_' + _this.lastIndex);
7020
+ _this.itemIndexArray.splice((index + i), 0, CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex);
6942
7021
  }
6943
7022
  var attrObj = {
6944
- id: CLS_ITEM$2 + '_' + _this.lastIndex, role: 'tab', 'aria-selected': 'false'
7023
+ id: CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex, role: 'tab', 'aria-selected': 'false'
6945
7024
  };
6946
7025
  var tItem = { htmlAttributes: attrObj, template: wrap };
6947
7026
  tItem.cssClass = item.cssClass + ' ' + disabled + ' ' + ((css !== '') ? 'e-i' + pos : '') + ' ' + ((!txtEmpty) ? CLS_ICON : '');
@@ -6959,14 +7038,11 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
6959
7038
  (this.isIconAlone) ? this.element.classList.add(CLS_ICON_TAB) : this.element.classList.remove(CLS_ICON_TAB);
6960
7039
  return tItems;
6961
7040
  };
6962
- Tab.prototype.removeActiveClass = function (id) {
6963
- var hdrActEle = selectAll(':root .' + CLS_HEADER$1 + ' .' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1, this.element)[0];
6964
- var selectEle = select('.' + CLS_HEADER$1, this.element);
6965
- if (this.headerPlacement === 'Bottom') {
6966
- hdrActEle = selectAll(':root .' + CLS_HEADER$1 + ' .' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1, selectEle)[0];
6967
- }
6968
- if (!isNullOrUndefined(hdrActEle)) {
6969
- hdrActEle.classList.remove(CLS_ACTIVE$1);
7041
+ Tab.prototype.removeActiveClass = function () {
7042
+ var tabHeader = this.getTabHeader();
7043
+ if (tabHeader) {
7044
+ var tabItems = selectAll('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1, tabHeader);
7045
+ [].slice.call(tabItems).forEach(function (node) { return node.classList.remove(CLS_ACTIVE$1); });
6970
7046
  }
6971
7047
  };
6972
7048
  Tab.prototype.checkPopupOverflow = function (ele) {
@@ -7025,8 +7101,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7025
7101
  var checkRTL = this.enableRtl || this.element.classList.contains(CLS_RTL$4);
7026
7102
  if (this.isPopup || prev <= current) {
7027
7103
  if (this.animation.previous.effect === 'SlideLeftIn') {
7028
- animation = { name: 'SlideLeftOut',
7029
- duration: this.animation.previous.duration, timingFunction: this.animation.previous.easing };
7104
+ animation = {
7105
+ name: 'SlideLeftOut',
7106
+ duration: this.animation.previous.duration, timingFunction: this.animation.previous.easing
7107
+ };
7030
7108
  }
7031
7109
  else {
7032
7110
  animation = null;
@@ -7034,8 +7112,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7034
7112
  }
7035
7113
  else {
7036
7114
  if (this.animation.next.effect === 'SlideRightIn') {
7037
- animation = { name: 'SlideRightOut',
7038
- duration: this.animation.next.duration, timingFunction: this.animation.next.easing };
7115
+ animation = {
7116
+ name: 'SlideRightOut',
7117
+ duration: this.animation.next.duration, timingFunction: this.animation.next.easing
7118
+ };
7039
7119
  }
7040
7120
  else {
7041
7121
  animation = null;
@@ -7147,11 +7227,24 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7147
7227
  }
7148
7228
  }
7149
7229
  };
7230
+ Tab.prototype.getTabHeader = function () {
7231
+ var headers = [].slice.call(this.element.children).filter(function (e) { return e.classList.contains(CLS_HEADER$1); });
7232
+ if (headers.length > 0) {
7233
+ return headers[0];
7234
+ }
7235
+ else {
7236
+ var wrap = [].slice.call(this.element.children).filter(function (e) { return !e.classList.contains(CLS_BLA_TEM); })[0];
7237
+ if (!wrap) {
7238
+ return undefined;
7239
+ }
7240
+ return [].slice.call(wrap.children).filter(function (e) { return e.classList.contains(CLS_HEADER$1); })[0];
7241
+ }
7242
+ };
7150
7243
  Tab.prototype.getEleIndex = function (item) {
7151
- return Array.prototype.indexOf.call(selectAll('.' + CLS_HEADER$1 + ' .' + CLS_TB_ITEM, this.element), item);
7244
+ return Array.prototype.indexOf.call(selectAll('.' + CLS_TB_ITEM, this.getTabHeader()), item);
7152
7245
  };
7153
7246
  Tab.prototype.extIndex = function (id) {
7154
- return id.replace(CLS_ITEM$2 + '_', '');
7247
+ return id.replace(CLS_ITEM$2 + this.tabId + '_', '');
7155
7248
  };
7156
7249
  Tab.prototype.expTemplateContent = function () {
7157
7250
  var _this = this;
@@ -7236,10 +7329,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7236
7329
  Tab.prototype.getTrgContent = function (cntEle, no) {
7237
7330
  var ele;
7238
7331
  if (this.element.classList.contains(CLS_NEST$1)) {
7239
- ele = select('.' + CLS_NEST$1 + '> .' + CLS_CONTENT$1 + ' > #' + CLS_CONTENT$1 + '_' + no, this.element);
7332
+ ele = select('.' + CLS_NEST$1 + '> .' + CLS_CONTENT$1 + ' > #' + CLS_CONTENT$1 + this.tabId + '_' + no, this.element);
7240
7333
  }
7241
7334
  else {
7242
- ele = this.findEle(cntEle.children, CLS_CONTENT$1 + '_' + no);
7335
+ ele = this.findEle(cntEle.children, CLS_CONTENT$1 + this.tabId + '_' + no);
7243
7336
  }
7244
7337
  return ele;
7245
7338
  };
@@ -7311,10 +7404,13 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7311
7404
  }
7312
7405
  };
7313
7406
  Tab.prototype.setContentHeight = function (val) {
7407
+ if (this.element.classList.contains(CLS_FILL)) {
7408
+ removeClass([this.element], [CLS_FILL]);
7409
+ }
7314
7410
  if (isNullOrUndefined(this.cntEle)) {
7315
7411
  return;
7316
7412
  }
7317
- var hdrEle = select('.' + CLS_HEADER$1, this.element);
7413
+ var hdrEle = this.getTabHeader();
7318
7414
  if (this.heightAdjustMode === 'None') {
7319
7415
  if (this.height === 'auto') {
7320
7416
  return;
@@ -7326,8 +7422,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7326
7422
  }
7327
7423
  }
7328
7424
  else if (this.heightAdjustMode === 'Fill') {
7425
+ addClass([this.element], [CLS_FILL]);
7329
7426
  setStyleAttribute(this.element, { 'height': '100%' });
7330
- setStyleAttribute(this.cntEle, { 'height': 'auto' });
7427
+ setStyleAttribute(this.cntEle, { 'height': '100%' });
7331
7428
  }
7332
7429
  else if (this.heightAdjustMode === 'Auto') {
7333
7430
  var cnt = selectAll('.' + CLS_CONTENT$1 + ' > .' + CLS_ITEM$2, this.element);
@@ -7343,8 +7440,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7343
7440
  this.cntEle = select('.' + CLS_CONTENT$1, this.element);
7344
7441
  if (val === true) {
7345
7442
  this.cntEle.appendChild(this.createElement('div', {
7346
- id: (CLS_CONTENT$1 + '_' + 0), className: CLS_ITEM$2 + ' ' + CLS_ACTIVE$1,
7347
- attrs: { 'role': 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + '_' + 0 }
7443
+ id: (CLS_CONTENT$1 + this.tabId + '_' + 0), className: CLS_ITEM$2 + ' ' + CLS_ACTIVE$1,
7444
+ attrs: { 'role': 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + this.tabId + '_' + 0 }
7348
7445
  }));
7349
7446
  }
7350
7447
  var ele = this.cntEle.children.item(0);
@@ -7372,18 +7469,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7372
7469
  parseFloat(cs.getPropertyValue('margin-top')) + parseFloat(cs.getPropertyValue('margin-bottom'));
7373
7470
  };
7374
7471
  Tab.prototype.setActiveBorder = function () {
7375
- var trg;
7376
7472
  var bar;
7377
7473
  var scrollCnt;
7378
- var trgHdrEle;
7379
- if (this.headerPlacement === 'Bottom') {
7380
- trgHdrEle = select('.' + CLS_HEADER$1, this.element);
7381
- trg = select('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1, trgHdrEle);
7382
- }
7383
- else {
7384
- trgHdrEle = select('.' + CLS_HEADER$1, this.element);
7385
- trg = select('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1, this.element);
7386
- }
7474
+ var trgHdrEle = this.getTabHeader();
7475
+ var trg = select('.' + CLS_TB_ITEM + '.' + CLS_ACTIVE$1, trgHdrEle);
7387
7476
  if (trg === null) {
7388
7477
  return;
7389
7478
  }
@@ -7419,7 +7508,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7419
7508
  }
7420
7509
  };
7421
7510
  Tab.prototype.setActive = function (value) {
7422
- this.tbItem = selectAll('.' + CLS_HEADER$1 + ' .' + CLS_TB_ITEM, this.element);
7511
+ this.tbItem = selectAll('.' + CLS_TB_ITEM, this.getTabHeader());
7423
7512
  var trg = this.tbItem[value];
7424
7513
  if (value >= 0) {
7425
7514
  this.setProperties({ selectedItem: value }, true);
@@ -7436,20 +7525,20 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7436
7525
  if (!isNullOrUndefined(prev)) {
7437
7526
  prev.removeAttribute('aria-controls');
7438
7527
  }
7439
- attributes(trg, { 'aria-controls': CLS_CONTENT$1 + '_' + value });
7528
+ attributes(trg, { 'aria-controls': CLS_CONTENT$1 + this.tabId + '_' + value });
7440
7529
  }
7441
7530
  var id = trg.id;
7442
- this.removeActiveClass(id);
7531
+ this.removeActiveClass();
7443
7532
  trg.classList.add(CLS_ACTIVE$1);
7444
7533
  trg.setAttribute('aria-selected', 'true');
7445
7534
  var no = Number(this.extIndex(id));
7446
7535
  if (isNullOrUndefined(this.prevActiveEle)) {
7447
- this.prevActiveEle = CLS_CONTENT$1 + '_' + no;
7536
+ this.prevActiveEle = CLS_CONTENT$1 + this.tabId + '_' + no;
7448
7537
  }
7449
7538
  attributes(this.element, { 'aria-activedescendant': id });
7450
7539
  if (this.isTemplate) {
7451
7540
  if (select('.' + CLS_CONTENT$1, this.element).children.length > 0) {
7452
- var trg_1 = this.findEle(select('.' + CLS_CONTENT$1, this.element).children, CLS_CONTENT$1 + '_' + no);
7541
+ var trg_1 = this.findEle(select('.' + CLS_CONTENT$1, this.element).children, CLS_CONTENT$1 + this.tabId + '_' + no);
7453
7542
  if (!isNullOrUndefined(trg_1)) {
7454
7543
  trg_1.classList.add(CLS_ACTIVE$1);
7455
7544
  }
@@ -7461,8 +7550,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7461
7550
  var item = this.getTrgContent(this.cntEle, this.extIndex(id));
7462
7551
  if (isNullOrUndefined(item)) {
7463
7552
  this.cntEle.appendChild(this.createElement('div', {
7464
- id: CLS_CONTENT$1 + '_' + this.extIndex(id), className: CLS_ITEM$2 + ' ' + CLS_ACTIVE$1,
7465
- attrs: { role: 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + '_' + this.extIndex(id) }
7553
+ id: CLS_CONTENT$1 + this.tabId + '_' + this.extIndex(id), className: CLS_ITEM$2 + ' ' + CLS_ACTIVE$1,
7554
+ attrs: { role: 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + this.tabId + '_' + this.extIndex(id) }
7466
7555
  }));
7467
7556
  var eleTrg = this.getTrgContent(this.cntEle, this.extIndex(id));
7468
7557
  var itemIndex = Array.prototype.indexOf.call(this.itemIndexArray, trg.id);
@@ -7484,7 +7573,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7484
7573
  previousIndex: this.prevIndex,
7485
7574
  selectedItem: trg,
7486
7575
  selectedIndex: value,
7487
- selectedContent: select('#' + CLS_CONTENT$1 + '_' + this.selectingID, this.content),
7576
+ selectedContent: select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.selectingID, this.content),
7488
7577
  isSwiped: this.isSwipeed
7489
7578
  };
7490
7579
  if (!this.initRender || this.selectedItem !== 0) {
@@ -7493,7 +7582,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7493
7582
  };
7494
7583
  Tab.prototype.setItems = function (items) {
7495
7584
  this.isReplace = true;
7496
- this.tbItems = select('.' + CLS_HEADER$1 + ' .' + CLS_TB_ITEMS, this.element);
7585
+ this.tbItems = select('.' + CLS_TB_ITEMS, this.getTabHeader());
7497
7586
  this.tbObj.items = this.parseObject(items, 0);
7498
7587
  this.tbObj.dataBind();
7499
7588
  this.isReplace = false;
@@ -7600,9 +7689,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7600
7689
  }
7601
7690
  this.element.classList.add(CLS_FOCUS);
7602
7691
  var trg = e.target;
7603
- var actEle = select('.' + CLS_HEADER$1 + ' .' + CLS_ACTIVE$1, this.element);
7604
- var tabItem = selectAll('.' + CLS_TB_ITEM + ':not(.' + CLS_TB_POPUP + ')', this.element);
7605
- this.popEle = select('.' + CLS_HEADER$1 + ' .' + CLS_TB_POP, this.element);
7692
+ var tabHeader = this.getTabHeader();
7693
+ var actEle = select('.' + CLS_ACTIVE$1, tabHeader);
7694
+ this.popEle = select('.' + CLS_TB_POP, tabHeader);
7606
7695
  if (!isNullOrUndefined(this.popEle)) {
7607
7696
  this.popObj = this.popEle.ej2_instances[0];
7608
7697
  }
@@ -7700,8 +7789,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7700
7789
  var property = Object.keys(newProp.items[index])[0];
7701
7790
  var oldVal = Object(oldProp.items[index])[property];
7702
7791
  var newVal = Object(newProp.items[index])[property];
7703
- var hdrItem = select('.' + CLS_TB_ITEMS + ' #' + CLS_ITEM$2 + '_' + index, this.element);
7704
- var cntItem = select('.' + CLS_CONTENT$1 + ' #' + CLS_CONTENT$1 + '_' + index, this.element);
7792
+ var hdrItem = select('.' + CLS_TB_ITEMS + ' #' + CLS_ITEM$2 + this.tabId + '_' + index, this.element);
7793
+ var cntItem = select('.' + CLS_CONTENT$1 + ' #' + CLS_CONTENT$1 + this.tabId + '_' + index, this.element);
7705
7794
  if (property === 'header' || property === 'headerTemplate') {
7706
7795
  var icon = (isNullOrUndefined(this.items[index].header) ||
7707
7796
  isNullOrUndefined(this.items[index].header.iconCss)) ? '' : this.items[index].header.iconCss;
@@ -7761,6 +7850,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7761
7850
  this.reRenderItems();
7762
7851
  }
7763
7852
  else {
7853
+ var items = newProp.items;
7854
+ for (var i = 0; i < items.length; i++) {
7855
+ this.resetBlazorTemplates(items[i], i);
7856
+ }
7764
7857
  this.setItems(newProp.items);
7765
7858
  if (this.templateEle.length > 0) {
7766
7859
  this.expTemplateContent();
@@ -7774,6 +7867,17 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7774
7867
  }
7775
7868
  }
7776
7869
  };
7870
+ Tab.prototype.resetBlazorTemplates = function (item, index) {
7871
+ if (!isBlazor()) {
7872
+ return;
7873
+ }
7874
+ if (item.headerTemplate && !this.isStringTemplate && (item.headerTemplate).indexOf('<div>Blazor') === 0) {
7875
+ resetBlazorTemplate(this.element.id + index + '_' + 'headerTemplate', 'HeaderTemplate');
7876
+ }
7877
+ if (item.content && !this.isStringTemplate && item.content.indexOf('<div>Blazor') === 0) {
7878
+ resetBlazorTemplate(this.element.id + index + '_' + 'content', 'ContentTemplate');
7879
+ }
7880
+ };
7777
7881
  /**
7778
7882
  * Enables or disables the specified Tab item. On passing value as `false`, the item will be disabled.
7779
7883
  * @param {number} index - Index value of target Tab item.
@@ -7848,7 +7952,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7848
7952
  if (!isNullOrUndefined(this.bdrLine)) {
7849
7953
  this.bdrLine.classList.add(CLS_HIDDEN$1);
7850
7954
  }
7851
- this.tbItems = select('.' + CLS_HEADER$1 + ' .' + CLS_TB_ITEMS, this.element);
7955
+ this.tbItems = select('.' + CLS_TB_ITEMS, this.getTabHeader());
7852
7956
  this.isAdd = true;
7853
7957
  var tabItems = this.parseObject(items, index);
7854
7958
  this.isAdd = false;
@@ -7864,7 +7968,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7864
7968
  if (_this.isTemplate && !isNullOrUndefined(item.header) && !isNullOrUndefined(item.header.text)) {
7865
7969
  var no = lastEleIndex + place;
7866
7970
  var ele = _this.createElement('div', {
7867
- id: CLS_CONTENT$1 + '_' + no, className: CLS_ITEM$2, attrs: { role: 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + '_' + no }
7971
+ id: CLS_CONTENT$1 + _this.tabId + '_' + no, className: CLS_ITEM$2,
7972
+ attrs: { role: 'tabpanel', 'aria-labelledby': CLS_ITEM$2 + _this.tabId + '_' + no }
7868
7973
  });
7869
7974
  _this.cntEle.insertBefore(ele, _this.cntEle.children[(index + place)]);
7870
7975
  var eleTrg = _this.getTrgContent(_this.cntEle, no.toString());
@@ -7897,11 +8002,12 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7897
8002
  var removeArgs = { removedItem: trg, removedIndex: index, cancel: false };
7898
8003
  this.trigger('removing', removeArgs, function (tabRemovingArgs) {
7899
8004
  if (!tabRemovingArgs.cancel) {
8005
+ _this.resetBlazorTemplates(_this.items[index], index);
7900
8006
  _this.tbObj.removeItems(index);
7901
8007
  _this.items.splice(index, 1);
7902
8008
  _this.itemIndexArray.splice(index, 1);
7903
8009
  _this.refreshActiveBorder();
7904
- var cntTrg = select('#' + CLS_CONTENT$1 + '_' + _this.extIndex(trg.id), select('.' + CLS_CONTENT$1, _this.element));
8010
+ var cntTrg = select('#' + CLS_CONTENT$1 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_CONTENT$1, _this.element));
7905
8011
  if (!isNullOrUndefined(cntTrg)) {
7906
8012
  detach(cntTrg);
7907
8013
  }
@@ -7987,8 +8093,9 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7987
8093
  */
7988
8094
  Tab.prototype.select = function (args) {
7989
8095
  var _this = this;
7990
- this.tbItems = select('.' + CLS_HEADER$1 + ' .' + CLS_TB_ITEMS, this.element);
7991
- this.tbItem = selectAll('.' + CLS_HEADER$1 + ' .' + CLS_TB_ITEM, this.element);
8096
+ var tabHeader = this.getTabHeader();
8097
+ this.tbItems = select('.' + CLS_TB_ITEMS, tabHeader);
8098
+ this.tbItem = selectAll('.' + CLS_TB_ITEM, tabHeader);
7992
8099
  this.content = select('.' + CLS_CONTENT$1, this.element);
7993
8100
  this.prevItem = this.tbItem[this.prevIndex];
7994
8101
  if (isNullOrUndefined(this.selectedItem) || (this.selectedItem < 0) || (this.tbItem.length <= this.selectedItem) || isNaN(this.selectedItem)) {
@@ -8012,10 +8119,12 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8012
8119
  previousIndex: this.prevIndex,
8013
8120
  selectedItem: this.tbItem[this.selectedItem],
8014
8121
  selectedIndex: this.selectedItem,
8015
- selectedContent: !isNullOrUndefined(this.content) ? select('#' + CLS_CONTENT$1 + '_' + this.selectedID, this.content) : null,
8122
+ selectedContent: !isNullOrUndefined(this.content) ?
8123
+ select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.selectedID, this.content) : null,
8016
8124
  selectingItem: trg,
8017
8125
  selectingIndex: args,
8018
- selectingContent: !isNullOrUndefined(this.content) ? select('#' + CLS_CONTENT$1 + '_' + this.selectingID, this.content) : null,
8126
+ selectingContent: !isNullOrUndefined(this.content) ?
8127
+ select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.selectingID, this.content) : null,
8019
8128
  isSwiped: this.isSwipeed,
8020
8129
  cancel: false
8021
8130
  };
@@ -8215,25 +8324,25 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
8215
8324
  * Tab modules
8216
8325
  */
8217
8326
 
8218
- var __extends$8 = (undefined && undefined.__extends) || (function () {
8219
- var extendStatics = function (d, b) {
8220
- extendStatics = Object.setPrototypeOf ||
8221
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8222
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8223
- return extendStatics(d, b);
8224
- };
8225
- return function (d, b) {
8226
- extendStatics(d, b);
8227
- function __() { this.constructor = d; }
8228
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8229
- };
8230
- })();
8231
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8232
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8233
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8234
- 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;
8235
- return c > 3 && r && Object.defineProperty(target, key, r), r;
8236
- };
8327
+ var __extends$8 = (undefined && undefined.__extends) || (function () {
8328
+ var extendStatics = function (d, b) {
8329
+ extendStatics = Object.setPrototypeOf ||
8330
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8331
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
8332
+ return extendStatics(d, b);
8333
+ };
8334
+ return function (d, b) {
8335
+ extendStatics(d, b);
8336
+ function __() { this.constructor = d; }
8337
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8338
+ };
8339
+ })();
8340
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8341
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8342
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8343
+ 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;
8344
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8345
+ };
8237
8346
  var ROOT = 'e-treeview';
8238
8347
  var CONTROL = 'e-control';
8239
8348
  var COLLAPSIBLE = 'e-icon-collapsible';
@@ -9447,7 +9556,8 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
9447
9556
  var eUids = this.expandedNodes;
9448
9557
  if (this.isInitalExpand && eUids.length > 0) {
9449
9558
  this.setProperties({ expandedNodes: [] }, true);
9450
- if (this.fields.dataSource instanceof DataManager) {
9559
+ // tslint:disable
9560
+ if (this.fields.dataSource instanceof DataManager && (this.fields.dataSource.adaptorName !== 'BlazorAdaptor')) {
9451
9561
  this.expandGivenNodes(eUids);
9452
9562
  }
9453
9563
  else {
@@ -9674,7 +9784,12 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
9674
9784
  removeClass([liEle], NODECOLLAPSED);
9675
9785
  var id = liEle.getAttribute('data-uid');
9676
9786
  if (!isNullOrUndefined(id) && this.expandedNodes.indexOf(id) === -1) {
9677
- this.expandedNodes.push(id);
9787
+ if (this.isBlazorPlatform) {
9788
+ this.setProperties({ expandedNodes: [].concat([], this.expandedNodes, [id]) }, true);
9789
+ }
9790
+ else {
9791
+ this.expandedNodes.push(id);
9792
+ }
9678
9793
  }
9679
9794
  };
9680
9795
  TreeView.prototype.collapseNode = function (currLi, icon, e) {
@@ -9759,7 +9874,14 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
9759
9874
  }
9760
9875
  var index = this.expandedNodes.indexOf(liEle.getAttribute('data-uid'));
9761
9876
  if (index > -1) {
9762
- this.expandedNodes.splice(index, 1);
9877
+ if (this.isBlazorPlatform) {
9878
+ var removeVal = this.expandedNodes.slice(0);
9879
+ removeVal.splice(index, 1);
9880
+ this.setProperties({ expandedNodes: [].concat([], removeVal) }, true);
9881
+ }
9882
+ else {
9883
+ this.expandedNodes.splice(index, 1);
9884
+ }
9763
9885
  }
9764
9886
  };
9765
9887
  TreeView.prototype.disableExpandAttr = function (liEle) {
@@ -9809,6 +9931,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
9809
9931
  mapper_2.dataSource.executeQuery(this.getQuery(mapper_2, parentLi.getAttribute('data-uid'))).then(function (e) {
9810
9932
  _this.treeList.pop();
9811
9933
  childItems = e.result;
9934
+ if (_this.dataType === 1) {
9935
+ _this.dataType = 2;
9936
+ }
9812
9937
  _this.loadChild(childItems, mapper_2, eicon, parentLi, expandChild, callback, loaded);
9813
9938
  if (_this.nodeTemplate && _this.isBlazorPlatform && !_this.isStringTemplate) {
9814
9939
  _this.updateBlazorTemplate();
@@ -10829,14 +10954,14 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
10829
10954
  newText = observedArgs.cancel ? observedArgs.oldText : observedArgs.newText;
10830
10955
  var newData = setValue(_this.editFields.text, newText, _this.editData);
10831
10956
  if (!isNullOrUndefined(_this.nodeTemplateFn)) {
10832
- txtEle.innerHTML = '';
10957
+ txtEle.innerText = '';
10833
10958
  var tempArr = _this.nodeTemplateFn(newData, undefined, undefined, _this.element.id + 'nodeTemplate', _this.isStringTemplate);
10834
10959
  tempArr = Array.prototype.slice.call(tempArr);
10835
10960
  append(tempArr, txtEle);
10836
10961
  _this.updateBlazorTemplate();
10837
10962
  }
10838
10963
  else {
10839
- txtEle.innerHTML = newText;
10964
+ txtEle.innerText = newText;
10840
10965
  }
10841
10966
  if (isInput) {
10842
10967
  removeClass([liEle], EDITING);
@@ -10980,11 +11105,13 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
10980
11105
  }
10981
11106
  var eventArgs = _this.getDragEvent(e.event, _this, null, e.target, null, virtualEle, level);
10982
11107
  if (eventArgs.draggedNode.classList.contains(EDITING)) {
11108
+ _this.dragObj.intDestroy(e.event);
10983
11109
  _this.dragCancelAction(virtualEle);
10984
11110
  }
10985
11111
  else {
10986
11112
  _this.trigger('nodeDragStart', eventArgs, function (observedArgs) {
10987
11113
  if (observedArgs.cancel) {
11114
+ _this.dragObj.intDestroy(e.event);
10988
11115
  _this.dragCancelAction(virtualEle);
10989
11116
  }
10990
11117
  else {
@@ -11065,15 +11192,17 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11065
11192
  if (dropRoot) {
11066
11193
  var dropLi = closest(e.target, '.' + LISTITEM);
11067
11194
  var checkWrapper = closest(e.target, '.' + CHECKBOXWRAP);
11195
+ var collapse = closest(e.target, '.' + COLLAPSIBLE);
11196
+ var expand = closest(e.target, '.' + EXPANDABLE);
11068
11197
  if (!dropRoot.classList.contains(ROOT) || (dropWrap &&
11069
11198
  (!dropLi.isSameNode(this.dragLi) && !this.isDescendant(this.dragLi, dropLi)))) {
11070
- if (dropLi && e && (e.event.offsetY < 7) && !checkWrapper) {
11199
+ if ((dropLi && e && (!expand && !collapse) && (e.event.offsetY < 7) && !checkWrapper) || (((expand && e.event.offsetY < 5) || (collapse && e.event.offsetX < 3)))) {
11071
11200
  addClass([icon], DROPNEXT);
11072
11201
  var virEle = this.createElement('div', { className: SIBLING });
11073
11202
  var index = this.fullRowSelect ? (1) : (0);
11074
11203
  dropLi.insertBefore(virEle, dropLi.children[index]);
11075
11204
  }
11076
- else if (dropLi && e && (e.target.offsetHeight > 0 && e.event.offsetY > (e.target.offsetHeight - 10)) && !checkWrapper) {
11205
+ else if ((dropLi && e && (!expand && !collapse) && (e.target.offsetHeight > 0 && e.event.offsetY > (e.target.offsetHeight - 10)) && !checkWrapper) || (((expand && e.event.offsetY > 19) || (collapse && e.event.offsetX > 19)))) {
11077
11206
  addClass([icon], DROPNEXT);
11078
11207
  var virEle = this.createElement('div', { className: SIBLING });
11079
11208
  var index = this.fullRowSelect ? (2) : (1);
@@ -11173,7 +11302,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11173
11302
  };
11174
11303
  TreeView.prototype.appendNode = function (dropTarget, dragLi, dropLi, e, dragObj, offsetY) {
11175
11304
  var checkWrapper = closest(dropTarget, '.' + CHECKBOXWRAP);
11176
- if (!dragLi.classList.contains('e-disable') && !dropLi.classList.contains('e-disable') && !checkWrapper) {
11305
+ var collapse = closest(e.target, '.' + COLLAPSIBLE);
11306
+ var expand = closest(e.target, '.' + EXPANDABLE);
11307
+ if (!dragLi.classList.contains('e-disable') && !checkWrapper && ((expand && e.event.offsetY < 5) || (collapse && e.event.offsetX < 3) || (expand && e.event.offsetY > 19) || (collapse && e.event.offsetX > 19) || (!expand && !collapse))) {
11177
11308
  if (dropTarget.nodeName === 'LI') {
11178
11309
  this.dropAsSiblingNode(dragLi, dropLi, e, dragObj);
11179
11310
  }
@@ -11182,11 +11313,14 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11182
11313
  this.dropAsSiblingNode(dragLi, dropLi, e, dragObj);
11183
11314
  }
11184
11315
  }
11316
+ else if ((dropTarget.classList.contains('e-icon-collapsible')) || (dropTarget.classList.contains('e-icon-expandable'))) {
11317
+ this.dropAsSiblingNode(dragLi, dropLi, e, dragObj);
11318
+ }
11185
11319
  else {
11186
11320
  this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY);
11187
11321
  }
11188
11322
  }
11189
- else if (checkWrapper) {
11323
+ else {
11190
11324
  this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY, true);
11191
11325
  }
11192
11326
  };
@@ -11201,7 +11335,21 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
11201
11335
  else if (e.event.offsetY < 2) {
11202
11336
  pre = true;
11203
11337
  }
11204
- dropUl.insertBefore(dragLi, pre ? e.target : e.target.nextElementSibling);
11338
+ else if (e.target.classList.contains('e-icon-expandable') || (e.target.classList.contains('e-icon-collapsible'))) {
11339
+ if ((e.event.offsetY < 5) || (e.event.offsetX < 3)) {
11340
+ pre = true;
11341
+ }
11342
+ else if ((e.event.offsetY > 15) || (e.event.offsetX > 17)) {
11343
+ pre = false;
11344
+ }
11345
+ }
11346
+ if ((e.target.classList.contains('e-icon-expandable')) || (e.target.classList.contains('e-icon-collapsible'))) {
11347
+ var target = e.target.closest('li');
11348
+ dropUl.insertBefore(dragLi, pre ? target : target.nextElementSibling);
11349
+ }
11350
+ else {
11351
+ dropUl.insertBefore(dragLi, pre ? e.target : e.target.nextElementSibling);
11352
+ }
11205
11353
  this.moveData(dragLi, dropLi, dropUl, pre, dragObj);
11206
11354
  this.updateElement(dragParentUl, dragParentLi);
11207
11355
  this.updateAriaLevel(dragLi);
@@ -12123,6 +12271,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12123
12271
  * @returns void
12124
12272
  * @private
12125
12273
  */
12274
+ // tslint:disable-next-line:max-func-body-length
12126
12275
  TreeView.prototype.onPropertyChanged = function (newProp, oldProp) {
12127
12276
  for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
12128
12277
  var prop = _a[_i];
@@ -12164,10 +12313,14 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12164
12313
  break;
12165
12314
  case 'expandedNodes':
12166
12315
  this.isAnimate = false;
12167
- this.setProperties({ expandedNodes: [] }, true);
12316
+ if (!this.isBlazorPlatform) {
12317
+ this.setProperties({ expandedNodes: [] }, true);
12318
+ }
12168
12319
  this.collapseAll();
12169
12320
  this.isInitalExpand = true;
12170
- this.setProperties({ expandedNodes: isNullOrUndefined(newProp.expandedNodes) ? [] : newProp.expandedNodes }, true);
12321
+ if (!this.isBlazorPlatform) {
12322
+ this.setProperties({ expandedNodes: isNullOrUndefined(newProp.expandedNodes) ? [] : newProp.expandedNodes }, true);
12323
+ }
12171
12324
  this.doExpandAction();
12172
12325
  this.isInitalExpand = false;
12173
12326
  this.isAnimate = true;
@@ -12236,7 +12389,9 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12236
12389
  this.setCssClass(this.cssClass, null);
12237
12390
  this.setDragAndDrop(false);
12238
12391
  this.setFullRow(false);
12239
- this.element.innerHTML = '';
12392
+ if (this.ulElement && this.ulElement.parentElement) {
12393
+ this.ulElement.parentElement.removeChild(this.ulElement);
12394
+ }
12240
12395
  _super.prototype.destroy.call(this);
12241
12396
  };
12242
12397
  /**
@@ -12291,7 +12446,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12291
12446
  if (this.showCheckBox && dropLi) {
12292
12447
  this.ensureParentCheckState(dropLi);
12293
12448
  }
12294
- if (this.fields.dataSource instanceof DataManager === false) {
12449
+ if ((this.fields.dataSource instanceof DataManager === false) || (this.fields.dataSource instanceof DataManager) && (this.fields.dataSource.adaptorName === 'BlazorAdaptor')) {
12295
12450
  this.preventExpand = false;
12296
12451
  this.triggerEvent();
12297
12452
  }
@@ -12631,25 +12786,25 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12631
12786
  * TreeView modules
12632
12787
  */
12633
12788
 
12634
- var __extends$9 = (undefined && undefined.__extends) || (function () {
12635
- var extendStatics = function (d, b) {
12636
- extendStatics = Object.setPrototypeOf ||
12637
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12638
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12639
- return extendStatics(d, b);
12640
- };
12641
- return function (d, b) {
12642
- extendStatics(d, b);
12643
- function __() { this.constructor = d; }
12644
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12645
- };
12646
- })();
12647
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12648
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12649
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
12650
- 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;
12651
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12652
- };
12789
+ var __extends$9 = (undefined && undefined.__extends) || (function () {
12790
+ var extendStatics = function (d, b) {
12791
+ extendStatics = Object.setPrototypeOf ||
12792
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
12793
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12794
+ return extendStatics(d, b);
12795
+ };
12796
+ return function (d, b) {
12797
+ extendStatics(d, b);
12798
+ function __() { this.constructor = d; }
12799
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12800
+ };
12801
+ })();
12802
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12803
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12804
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
12805
+ 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;
12806
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
12807
+ };
12653
12808
  var CONTROL$1 = 'e-control';
12654
12809
  var ROOT$1 = 'e-sidebar';
12655
12810
  var DOCKER = 'e-dock';