@syncfusion/ej2-navigations 22.2.5 → 22.2.8-184993

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 (382) hide show
  1. package/CHANGELOG.md +97 -5
  2. package/README.md +1 -1
  3. package/dist/ej2-navigations.min.js +1 -10
  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 +189 -96
  7. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  8. package/dist/es6/ej2-navigations.es5.js +191 -94
  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/package.json +165 -165
  14. package/src/accordion/accordion-model.d.ts +1 -1
  15. package/src/accordion/accordion.d.ts +3 -2
  16. package/src/accordion/accordion.js +34 -31
  17. package/src/appbar/appbar.js +1 -0
  18. package/src/breadcrumb/breadcrumb-model.d.ts +1 -1
  19. package/src/breadcrumb/breadcrumb.js +10 -2
  20. package/src/carousel/carousel.d.ts +1 -0
  21. package/src/carousel/carousel.js +12 -2
  22. package/src/common/menu-base.js +24 -10
  23. package/src/menu/menu-model.d.ts +1 -1
  24. package/src/sidebar/sidebar.js +2 -2
  25. package/src/tab/tab-model.d.ts +10 -2
  26. package/src/tab/tab.d.ts +10 -0
  27. package/src/tab/tab.js +29 -16
  28. package/src/toolbar/toolbar-model.d.ts +2 -0
  29. package/src/toolbar/toolbar.d.ts +3 -0
  30. package/src/toolbar/toolbar.js +63 -29
  31. package/src/treeview/treeview-model.d.ts +2 -2
  32. package/src/treeview/treeview.d.ts +2 -2
  33. package/src/treeview/treeview.js +19 -5
  34. package/styles/accordion/_theme.scss +5 -0
  35. package/styles/accordion/bootstrap-dark.css +3 -0
  36. package/styles/accordion/bootstrap-dark.scss +1 -1
  37. package/styles/accordion/bootstrap.css +3 -0
  38. package/styles/accordion/bootstrap.scss +1 -1
  39. package/styles/accordion/bootstrap4.css +3 -0
  40. package/styles/accordion/bootstrap4.scss +1 -1
  41. package/styles/accordion/bootstrap5-dark.css +3 -0
  42. package/styles/accordion/bootstrap5-dark.scss +1 -1
  43. package/styles/accordion/bootstrap5.css +3 -0
  44. package/styles/accordion/bootstrap5.scss +1 -1
  45. package/styles/accordion/fabric-dark.css +3 -0
  46. package/styles/accordion/fabric-dark.scss +1 -1
  47. package/styles/accordion/fabric.css +3 -0
  48. package/styles/accordion/fabric.scss +1 -1
  49. package/styles/accordion/fluent-dark.css +3 -0
  50. package/styles/accordion/fluent-dark.scss +1 -1
  51. package/styles/accordion/fluent.css +3 -0
  52. package/styles/accordion/fluent.scss +1 -1
  53. package/styles/accordion/highcontrast-light.css +3 -0
  54. package/styles/accordion/highcontrast-light.scss +1 -1
  55. package/styles/accordion/highcontrast.css +3 -0
  56. package/styles/accordion/highcontrast.scss +1 -1
  57. package/styles/accordion/material-dark.css +3 -1
  58. package/styles/accordion/material-dark.scss +1 -1
  59. package/styles/accordion/material.css +3 -1
  60. package/styles/accordion/material.scss +1 -1
  61. package/styles/accordion/material3-dark.css +3 -1
  62. package/styles/accordion/material3-dark.scss +1 -1
  63. package/styles/accordion/material3.css +3 -1
  64. package/styles/accordion/material3.scss +1 -1
  65. package/styles/accordion/tailwind-dark.css +3 -1
  66. package/styles/accordion/tailwind-dark.scss +1 -1
  67. package/styles/accordion/tailwind.css +3 -1
  68. package/styles/accordion/tailwind.scss +1 -1
  69. package/styles/appbar/bootstrap-dark.scss +1 -1
  70. package/styles/appbar/bootstrap.scss +1 -1
  71. package/styles/appbar/bootstrap4.scss +1 -1
  72. package/styles/appbar/bootstrap5-dark.scss +1 -1
  73. package/styles/appbar/bootstrap5.scss +1 -1
  74. package/styles/appbar/fabric-dark.scss +1 -1
  75. package/styles/appbar/fabric.scss +1 -1
  76. package/styles/appbar/fluent-dark.scss +1 -1
  77. package/styles/appbar/fluent.scss +1 -1
  78. package/styles/appbar/highcontrast-light.scss +1 -1
  79. package/styles/appbar/highcontrast.scss +1 -1
  80. package/styles/appbar/material-dark.css +0 -1
  81. package/styles/appbar/material-dark.scss +1 -1
  82. package/styles/appbar/material.css +0 -1
  83. package/styles/appbar/material.scss +1 -1
  84. package/styles/appbar/material3-dark.css +0 -1
  85. package/styles/appbar/material3-dark.scss +1 -1
  86. package/styles/appbar/material3.css +0 -1
  87. package/styles/appbar/material3.scss +1 -1
  88. package/styles/appbar/tailwind-dark.css +0 -1
  89. package/styles/appbar/tailwind-dark.scss +1 -1
  90. package/styles/appbar/tailwind.css +0 -1
  91. package/styles/appbar/tailwind.scss +1 -1
  92. package/styles/bootstrap-dark.css +17 -9
  93. package/styles/bootstrap.css +17 -9
  94. package/styles/bootstrap4.css +25 -14
  95. package/styles/bootstrap5-dark.css +21 -13
  96. package/styles/bootstrap5.css +21 -13
  97. package/styles/breadcrumb/bootstrap-dark.scss +1 -1
  98. package/styles/breadcrumb/bootstrap.scss +1 -1
  99. package/styles/breadcrumb/bootstrap4.scss +1 -1
  100. package/styles/breadcrumb/bootstrap5-dark.scss +1 -1
  101. package/styles/breadcrumb/bootstrap5.scss +1 -1
  102. package/styles/breadcrumb/fabric-dark.scss +1 -1
  103. package/styles/breadcrumb/fabric.scss +1 -1
  104. package/styles/breadcrumb/fluent-dark.scss +1 -1
  105. package/styles/breadcrumb/fluent.scss +1 -1
  106. package/styles/breadcrumb/highcontrast-light.scss +1 -1
  107. package/styles/breadcrumb/highcontrast.scss +1 -1
  108. package/styles/breadcrumb/material-dark.css +0 -1
  109. package/styles/breadcrumb/material-dark.scss +1 -1
  110. package/styles/breadcrumb/material.css +0 -1
  111. package/styles/breadcrumb/material.scss +1 -1
  112. package/styles/breadcrumb/material3-dark.css +0 -1
  113. package/styles/breadcrumb/material3-dark.scss +1 -1
  114. package/styles/breadcrumb/material3.css +0 -1
  115. package/styles/breadcrumb/material3.scss +1 -1
  116. package/styles/breadcrumb/tailwind-dark.css +0 -1
  117. package/styles/breadcrumb/tailwind-dark.scss +1 -1
  118. package/styles/breadcrumb/tailwind.css +0 -1
  119. package/styles/breadcrumb/tailwind.scss +1 -1
  120. package/styles/carousel/bootstrap-dark.scss +1 -1
  121. package/styles/carousel/bootstrap.scss +1 -1
  122. package/styles/carousel/bootstrap4.scss +1 -1
  123. package/styles/carousel/bootstrap5-dark.scss +1 -1
  124. package/styles/carousel/bootstrap5.scss +1 -1
  125. package/styles/carousel/fabric-dark.scss +1 -1
  126. package/styles/carousel/fabric.scss +1 -1
  127. package/styles/carousel/fluent-dark.scss +1 -1
  128. package/styles/carousel/fluent.scss +1 -1
  129. package/styles/carousel/highcontrast-light.scss +1 -1
  130. package/styles/carousel/highcontrast.scss +1 -1
  131. package/styles/carousel/material-dark.css +0 -1
  132. package/styles/carousel/material-dark.scss +1 -1
  133. package/styles/carousel/material.css +0 -1
  134. package/styles/carousel/material.scss +1 -1
  135. package/styles/carousel/material3-dark.css +0 -1
  136. package/styles/carousel/material3-dark.scss +1 -1
  137. package/styles/carousel/material3.css +0 -1
  138. package/styles/carousel/material3.scss +1 -1
  139. package/styles/carousel/tailwind-dark.css +0 -1
  140. package/styles/carousel/tailwind-dark.scss +1 -1
  141. package/styles/carousel/tailwind.css +0 -1
  142. package/styles/carousel/tailwind.scss +1 -1
  143. package/styles/context-menu/bootstrap-dark.scss +1 -1
  144. package/styles/context-menu/bootstrap.scss +1 -1
  145. package/styles/context-menu/bootstrap4.scss +1 -1
  146. package/styles/context-menu/bootstrap5-dark.scss +1 -1
  147. package/styles/context-menu/bootstrap5.scss +1 -1
  148. package/styles/context-menu/fabric-dark.scss +1 -1
  149. package/styles/context-menu/fabric.scss +1 -1
  150. package/styles/context-menu/fluent-dark.scss +1 -1
  151. package/styles/context-menu/fluent.scss +1 -1
  152. package/styles/context-menu/highcontrast-light.scss +1 -1
  153. package/styles/context-menu/highcontrast.scss +1 -1
  154. package/styles/context-menu/material-dark.css +0 -1
  155. package/styles/context-menu/material-dark.scss +1 -1
  156. package/styles/context-menu/material.css +0 -1
  157. package/styles/context-menu/material.scss +1 -1
  158. package/styles/context-menu/material3-dark.css +0 -1
  159. package/styles/context-menu/material3-dark.scss +1 -1
  160. package/styles/context-menu/material3.css +0 -1
  161. package/styles/context-menu/material3.scss +1 -1
  162. package/styles/context-menu/tailwind-dark.css +0 -1
  163. package/styles/context-menu/tailwind-dark.scss +1 -1
  164. package/styles/context-menu/tailwind.css +0 -1
  165. package/styles/context-menu/tailwind.scss +1 -1
  166. package/styles/fabric-dark.css +17 -9
  167. package/styles/fabric.css +17 -9
  168. package/styles/fluent-dark.css +17 -9
  169. package/styles/fluent.css +17 -9
  170. package/styles/h-scroll/bootstrap-dark.scss +1 -1
  171. package/styles/h-scroll/bootstrap.scss +1 -1
  172. package/styles/h-scroll/bootstrap4.scss +1 -1
  173. package/styles/h-scroll/bootstrap5-dark.scss +1 -1
  174. package/styles/h-scroll/bootstrap5.scss +1 -1
  175. package/styles/h-scroll/fabric-dark.scss +1 -1
  176. package/styles/h-scroll/fabric.scss +1 -1
  177. package/styles/h-scroll/fluent-dark.scss +1 -1
  178. package/styles/h-scroll/fluent.scss +1 -1
  179. package/styles/h-scroll/highcontrast-light.scss +1 -1
  180. package/styles/h-scroll/highcontrast.scss +1 -1
  181. package/styles/h-scroll/material-dark.css +0 -1
  182. package/styles/h-scroll/material-dark.scss +1 -1
  183. package/styles/h-scroll/material.css +0 -1
  184. package/styles/h-scroll/material.scss +1 -1
  185. package/styles/h-scroll/material3-dark.css +0 -1
  186. package/styles/h-scroll/material3-dark.scss +1 -1
  187. package/styles/h-scroll/material3.css +0 -1
  188. package/styles/h-scroll/material3.scss +1 -1
  189. package/styles/h-scroll/tailwind-dark.css +0 -1
  190. package/styles/h-scroll/tailwind-dark.scss +1 -1
  191. package/styles/h-scroll/tailwind.css +0 -1
  192. package/styles/h-scroll/tailwind.scss +1 -1
  193. package/styles/highcontrast-light.css +17 -9
  194. package/styles/highcontrast.css +17 -9
  195. package/styles/material-dark.css +17 -10
  196. package/styles/material.css +17 -10
  197. package/styles/material3-dark.css +19 -12
  198. package/styles/material3-dark.scss +1 -1
  199. package/styles/material3.css +19 -12
  200. package/styles/material3.scss +1 -1
  201. package/styles/menu/_theme.scss +8 -3
  202. package/styles/menu/bootstrap-dark.css +14 -9
  203. package/styles/menu/bootstrap-dark.scss +1 -1
  204. package/styles/menu/bootstrap.css +14 -9
  205. package/styles/menu/bootstrap.scss +1 -1
  206. package/styles/menu/bootstrap4.css +22 -14
  207. package/styles/menu/bootstrap4.scss +1 -1
  208. package/styles/menu/bootstrap5-dark.css +14 -9
  209. package/styles/menu/bootstrap5-dark.scss +1 -1
  210. package/styles/menu/bootstrap5.css +14 -9
  211. package/styles/menu/bootstrap5.scss +1 -1
  212. package/styles/menu/fabric-dark.css +14 -9
  213. package/styles/menu/fabric-dark.scss +1 -1
  214. package/styles/menu/fabric.css +14 -9
  215. package/styles/menu/fabric.scss +1 -1
  216. package/styles/menu/fluent-dark.css +14 -9
  217. package/styles/menu/fluent-dark.scss +1 -1
  218. package/styles/menu/fluent.css +14 -9
  219. package/styles/menu/fluent.scss +1 -1
  220. package/styles/menu/highcontrast-light.css +14 -9
  221. package/styles/menu/highcontrast-light.scss +1 -1
  222. package/styles/menu/highcontrast.css +14 -9
  223. package/styles/menu/highcontrast.scss +1 -1
  224. package/styles/menu/material-dark.css +14 -10
  225. package/styles/menu/material-dark.scss +1 -1
  226. package/styles/menu/material.css +14 -10
  227. package/styles/menu/material.scss +1 -1
  228. package/styles/menu/material3-dark.css +14 -10
  229. package/styles/menu/material3-dark.scss +1 -1
  230. package/styles/menu/material3.css +14 -10
  231. package/styles/menu/material3.scss +1 -1
  232. package/styles/menu/tailwind-dark.css +14 -10
  233. package/styles/menu/tailwind-dark.scss +1 -1
  234. package/styles/menu/tailwind.css +14 -10
  235. package/styles/menu/tailwind.scss +1 -1
  236. package/styles/pager/bootstrap-dark.scss +1 -1
  237. package/styles/pager/bootstrap.scss +1 -1
  238. package/styles/pager/bootstrap4.scss +1 -1
  239. package/styles/pager/bootstrap5-dark.scss +1 -1
  240. package/styles/pager/bootstrap5.scss +1 -1
  241. package/styles/pager/fabric-dark.scss +1 -1
  242. package/styles/pager/fabric.scss +1 -1
  243. package/styles/pager/fluent-dark.scss +1 -1
  244. package/styles/pager/fluent.scss +1 -1
  245. package/styles/pager/highcontrast-light.scss +1 -1
  246. package/styles/pager/highcontrast.scss +1 -1
  247. package/styles/pager/material-dark.css +0 -1
  248. package/styles/pager/material-dark.scss +1 -1
  249. package/styles/pager/material.css +0 -1
  250. package/styles/pager/material.scss +1 -1
  251. package/styles/pager/material3-dark.css +0 -1
  252. package/styles/pager/material3-dark.scss +1 -1
  253. package/styles/pager/material3.css +0 -1
  254. package/styles/pager/material3.scss +1 -1
  255. package/styles/pager/tailwind-dark.css +0 -1
  256. package/styles/pager/tailwind-dark.scss +1 -1
  257. package/styles/pager/tailwind.css +0 -1
  258. package/styles/pager/tailwind.scss +1 -1
  259. package/styles/sidebar/bootstrap-dark.scss +1 -1
  260. package/styles/sidebar/bootstrap.scss +1 -1
  261. package/styles/sidebar/bootstrap4.scss +1 -1
  262. package/styles/sidebar/bootstrap5-dark.scss +1 -1
  263. package/styles/sidebar/bootstrap5.scss +1 -1
  264. package/styles/sidebar/fabric-dark.scss +1 -1
  265. package/styles/sidebar/fabric.scss +1 -1
  266. package/styles/sidebar/fluent-dark.scss +1 -1
  267. package/styles/sidebar/fluent.scss +1 -1
  268. package/styles/sidebar/highcontrast-light.scss +1 -1
  269. package/styles/sidebar/highcontrast.scss +1 -1
  270. package/styles/sidebar/material-dark.css +0 -1
  271. package/styles/sidebar/material-dark.scss +1 -1
  272. package/styles/sidebar/material.css +0 -1
  273. package/styles/sidebar/material.scss +1 -1
  274. package/styles/sidebar/material3-dark.css +0 -1
  275. package/styles/sidebar/material3-dark.scss +1 -1
  276. package/styles/sidebar/material3.css +0 -1
  277. package/styles/sidebar/material3.scss +1 -1
  278. package/styles/sidebar/tailwind-dark.css +0 -1
  279. package/styles/sidebar/tailwind-dark.scss +1 -1
  280. package/styles/sidebar/tailwind.css +0 -1
  281. package/styles/sidebar/tailwind.scss +1 -1
  282. package/styles/tab/_tailwind-definition.scss +2 -2
  283. package/styles/tab/bootstrap-dark.scss +1 -1
  284. package/styles/tab/bootstrap.scss +1 -1
  285. package/styles/tab/bootstrap4.scss +1 -1
  286. package/styles/tab/bootstrap5-dark.scss +1 -1
  287. package/styles/tab/bootstrap5.scss +1 -1
  288. package/styles/tab/fabric-dark.scss +1 -1
  289. package/styles/tab/fabric.scss +1 -1
  290. package/styles/tab/fluent-dark.scss +1 -1
  291. package/styles/tab/fluent.scss +1 -1
  292. package/styles/tab/highcontrast-light.scss +1 -1
  293. package/styles/tab/highcontrast.scss +1 -1
  294. package/styles/tab/material-dark.css +0 -1
  295. package/styles/tab/material-dark.scss +1 -1
  296. package/styles/tab/material.css +0 -1
  297. package/styles/tab/material.scss +1 -1
  298. package/styles/tab/material3-dark.css +0 -1
  299. package/styles/tab/material3-dark.scss +1 -1
  300. package/styles/tab/material3.css +0 -1
  301. package/styles/tab/material3.scss +1 -1
  302. package/styles/tab/tailwind-dark.css +2 -3
  303. package/styles/tab/tailwind-dark.scss +1 -1
  304. package/styles/tab/tailwind.css +2 -3
  305. package/styles/tab/tailwind.scss +1 -1
  306. package/styles/tailwind-dark.css +21 -26
  307. package/styles/tailwind.css +21 -26
  308. package/styles/toolbar/_bootstrap5-definition.scss +4 -4
  309. package/styles/toolbar/_material3-definition.scss +1 -1
  310. package/styles/toolbar/_tailwind-definition.scss +2 -2
  311. package/styles/toolbar/bootstrap-dark.scss +1 -1
  312. package/styles/toolbar/bootstrap.scss +1 -1
  313. package/styles/toolbar/bootstrap4.scss +1 -1
  314. package/styles/toolbar/bootstrap5-dark.css +4 -4
  315. package/styles/toolbar/bootstrap5-dark.scss +1 -1
  316. package/styles/toolbar/bootstrap5.css +4 -4
  317. package/styles/toolbar/bootstrap5.scss +1 -1
  318. package/styles/toolbar/fabric-dark.scss +1 -1
  319. package/styles/toolbar/fabric.scss +1 -1
  320. package/styles/toolbar/fluent-dark.scss +1 -1
  321. package/styles/toolbar/fluent.scss +1 -1
  322. package/styles/toolbar/highcontrast-light.scss +1 -1
  323. package/styles/toolbar/highcontrast.scss +1 -1
  324. package/styles/toolbar/material-dark.css +0 -1
  325. package/styles/toolbar/material-dark.scss +1 -1
  326. package/styles/toolbar/material.css +0 -1
  327. package/styles/toolbar/material.scss +1 -1
  328. package/styles/toolbar/material3-dark.css +1 -2
  329. package/styles/toolbar/material3-dark.scss +1 -1
  330. package/styles/toolbar/material3.css +1 -2
  331. package/styles/toolbar/material3.scss +1 -1
  332. package/styles/toolbar/tailwind-dark.css +2 -3
  333. package/styles/toolbar/tailwind-dark.scss +1 -1
  334. package/styles/toolbar/tailwind.css +2 -3
  335. package/styles/toolbar/tailwind.scss +1 -1
  336. package/styles/treeview/_layout.scss +4 -1
  337. package/styles/treeview/bootstrap-dark.scss +1 -1
  338. package/styles/treeview/bootstrap.scss +1 -1
  339. package/styles/treeview/bootstrap4.scss +1 -1
  340. package/styles/treeview/bootstrap5-dark.scss +1 -1
  341. package/styles/treeview/bootstrap5.scss +1 -1
  342. package/styles/treeview/fabric-dark.scss +1 -1
  343. package/styles/treeview/fabric.scss +1 -1
  344. package/styles/treeview/fluent-dark.scss +1 -1
  345. package/styles/treeview/fluent.scss +1 -1
  346. package/styles/treeview/highcontrast-light.scss +1 -1
  347. package/styles/treeview/highcontrast.scss +1 -1
  348. package/styles/treeview/material-dark.css +0 -1
  349. package/styles/treeview/material-dark.scss +1 -1
  350. package/styles/treeview/material.css +0 -1
  351. package/styles/treeview/material.scss +1 -1
  352. package/styles/treeview/material3-dark.css +1 -2
  353. package/styles/treeview/material3-dark.scss +1 -1
  354. package/styles/treeview/material3.css +1 -2
  355. package/styles/treeview/material3.scss +1 -1
  356. package/styles/treeview/tailwind-dark.css +0 -1
  357. package/styles/treeview/tailwind-dark.scss +1 -1
  358. package/styles/treeview/tailwind.css +0 -1
  359. package/styles/treeview/tailwind.scss +1 -1
  360. package/styles/v-scroll/bootstrap-dark.scss +1 -1
  361. package/styles/v-scroll/bootstrap.scss +1 -1
  362. package/styles/v-scroll/bootstrap4.scss +1 -1
  363. package/styles/v-scroll/bootstrap5-dark.scss +1 -1
  364. package/styles/v-scroll/bootstrap5.scss +1 -1
  365. package/styles/v-scroll/fabric-dark.scss +1 -1
  366. package/styles/v-scroll/fabric.scss +1 -1
  367. package/styles/v-scroll/fluent-dark.scss +1 -1
  368. package/styles/v-scroll/fluent.scss +1 -1
  369. package/styles/v-scroll/highcontrast-light.scss +1 -1
  370. package/styles/v-scroll/highcontrast.scss +1 -1
  371. package/styles/v-scroll/material-dark.css +0 -1
  372. package/styles/v-scroll/material-dark.scss +1 -1
  373. package/styles/v-scroll/material.css +0 -1
  374. package/styles/v-scroll/material.scss +1 -1
  375. package/styles/v-scroll/material3-dark.css +0 -1
  376. package/styles/v-scroll/material3-dark.scss +1 -1
  377. package/styles/v-scroll/material3.css +0 -1
  378. package/styles/v-scroll/material3.scss +1 -1
  379. package/styles/v-scroll/tailwind-dark.css +0 -1
  380. package/styles/v-scroll/tailwind-dark.scss +1 -1
  381. package/styles/v-scroll/tailwind.css +0 -1
  382. package/styles/v-scroll/tailwind.scss +1 -1
@@ -1,4 +1,4 @@
1
- import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Droppable, Event, EventHandler, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getElement, getInstance, getRandomId, getUniqueID, getValue, isBlazor, isNullOrUndefined, isRippleEnabled, isUndefined, isVisible, matches, merge, remove, removeClass, rippleEffect, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
1
+ import { Animation, Browser, ChildProperty, Collection, Complex, Component, Draggable, Droppable, Event, EventHandler, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, animationMode, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getElement, getInstance, getRandomId, getUniqueID, getValue, initializeCSPTemplate, isBlazor, isNullOrUndefined, isRippleEnabled, isUndefined, isVisible, matches, merge, remove, removeClass, rippleEffect, select, selectAll, setStyleAttribute, setValue } 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';
@@ -1284,9 +1284,9 @@ let MenuBase = class MenuBase extends Component {
1284
1284
  }
1285
1285
  this.targetElement = target;
1286
1286
  if (!this.isMenu) {
1287
- EventHandler.add(this.targetElement, 'scroll', this.scrollHandler, this);
1287
+ EventHandler.add(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
1288
1288
  for (const parent of getScrollableParent(this.targetElement)) {
1289
- EventHandler.add(parent, 'scroll', this.scrollHandler, this);
1289
+ EventHandler.add(parent, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
1290
1290
  }
1291
1291
  }
1292
1292
  }
@@ -1462,7 +1462,7 @@ let MenuBase = class MenuBase extends Component {
1462
1462
  const popups = [];
1463
1463
  const allPopup = selectAll('.' + POPUP);
1464
1464
  allPopup.forEach((elem) => {
1465
- if (this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + "-" + elem.id.split('-')[3]) {
1465
+ if (this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + '-' + elem.id.split('-')[3]) {
1466
1466
  popups.push(elem);
1467
1467
  }
1468
1468
  });
@@ -1626,7 +1626,7 @@ let MenuBase = class MenuBase extends Component {
1626
1626
  this.afterCloseMenu(e);
1627
1627
  }
1628
1628
  else if (isOpen && !this.hamburgerMode && closedLi && !trgtLi && this.keyType !== 'left' && (this.navIdx.length || !this.isMenu && this.navIdx.length === 0)) {
1629
- let ele = (e && e.target.classList.contains('e-vscroll'))
1629
+ let ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
1630
1630
  ? closest(e.target, '.e-menu-wrapper') : null;
1631
1631
  if (ele) {
1632
1632
  ele = ele.querySelector('.e-menu-item');
@@ -1635,7 +1635,9 @@ let MenuBase = class MenuBase extends Component {
1635
1635
  }
1636
1636
  }
1637
1637
  else {
1638
- this.closeMenu(this.navIdx[this.navIdx.length - 1], e);
1638
+ if (!(e && e.target.classList.contains('e-nav-arrow'))) {
1639
+ this.closeMenu(this.navIdx[this.navIdx.length - 1], e);
1640
+ }
1639
1641
  }
1640
1642
  }
1641
1643
  else if (isOpen && !isIterated && !ulIndex && ((this.hamburgerMode && this.navIdx.length) ||
@@ -1821,9 +1823,9 @@ let MenuBase = class MenuBase extends Component {
1821
1823
  if (isNullOrUndefined(e)) {
1822
1824
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1823
1825
  const ev = document.createEvent('MouseEvents');
1824
- ev.initEvent("click", true, false);
1826
+ ev.initEvent('click', true, false);
1825
1827
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1826
- let targetEvent = this.copyObject(ev, {});
1828
+ const targetEvent = this.copyObject(ev, {});
1827
1829
  targetEvent.target = targetEvent.srcElement = target;
1828
1830
  targetEvent.currentTarget = target;
1829
1831
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1834,6 +1836,7 @@ let MenuBase = class MenuBase extends Component {
1834
1836
  }
1835
1837
  }
1836
1838
  }
1839
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1837
1840
  copyObject(source, destination) {
1838
1841
  for (const prop in source) {
1839
1842
  destination[`${prop}`] = source[`${prop}`];
@@ -2391,6 +2394,9 @@ let MenuBase = class MenuBase extends Component {
2391
2394
  if (!cli.classList.contains(SEPARATOR)) {
2392
2395
  this.showSubMenu = true;
2393
2396
  const cul = cli.parentNode;
2397
+ if (isNullOrUndefined(cul)) {
2398
+ return;
2399
+ }
2394
2400
  this.cliIdx = this.getIdx(cul, cli);
2395
2401
  if (this.isMenu || !Browser.isDevice) {
2396
2402
  const culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
@@ -2451,6 +2457,9 @@ let MenuBase = class MenuBase extends Component {
2451
2457
  }
2452
2458
  }
2453
2459
  afterCloseMenu(e) {
2460
+ if (isNullOrUndefined(e)) {
2461
+ return;
2462
+ }
2454
2463
  let isHeader;
2455
2464
  if (this.showSubMenu) {
2456
2465
  if (this.showItemOnClick && this.navIdx.length === 0) {
@@ -2621,7 +2630,12 @@ let MenuBase = class MenuBase extends Component {
2621
2630
  }
2622
2631
  break;
2623
2632
  case 'enableRtl':
2624
- wrapper.classList.toggle(RTL);
2633
+ if (this.enableRtl) {
2634
+ wrapper.classList.add(RTL);
2635
+ }
2636
+ else {
2637
+ wrapper.classList.remove(RTL);
2638
+ }
2625
2639
  break;
2626
2640
  case 'showItemOnClick':
2627
2641
  this.unWireEvents();
@@ -2780,9 +2794,9 @@ let MenuBase = class MenuBase extends Component {
2780
2794
  }
2781
2795
  }
2782
2796
  if (!this.isMenu) {
2783
- EventHandler.remove(this.targetElement, 'scroll', this.scrollHandler);
2797
+ EventHandler.remove(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler);
2784
2798
  for (const parent of getScrollableParent(this.targetElement)) {
2785
- EventHandler.remove(parent, 'scroll', this.scrollHandler);
2799
+ EventHandler.remove(parent, 'mousewheel DOMMouseScroll', this.scrollHandler);
2786
2800
  }
2787
2801
  }
2788
2802
  }
@@ -3047,11 +3061,11 @@ let MenuBase = class MenuBase extends Component {
3047
3061
  index = navIdx.pop();
3048
3062
  ul = this.getUlByNavIdx(navIdx.length);
3049
3063
  if (ul) {
3050
- let validUl = isUniqueId ? ul.children[index].id : ul.children[index].textContent;
3064
+ const validUl = isUniqueId ? ul.children[index].id : ul.children[index].textContent;
3051
3065
  if (ishide && validUl === items[i]) {
3052
3066
  ul.children[index].classList.add(HIDE);
3053
3067
  }
3054
- else {
3068
+ else if (!ishide && validUl === items[i]) {
3055
3069
  ul.children[index].classList.remove(HIDE);
3056
3070
  }
3057
3071
  }
@@ -3921,6 +3935,11 @@ let Toolbar = class Toolbar extends Component {
3921
3935
  this.renderControl();
3922
3936
  this.wireEvents();
3923
3937
  this.renderComplete();
3938
+ if (this.isReact && this.portals && this.portals.length > 0) {
3939
+ this.renderReactTemplates(() => {
3940
+ this.refreshOverflow();
3941
+ });
3942
+ }
3924
3943
  }
3925
3944
  initialize() {
3926
3945
  const width = formatUnit(this.width);
@@ -5035,7 +5054,7 @@ let Toolbar = class Toolbar extends Component {
5035
5054
  this.tbarAlgEle[(this.items[parseInt(eleIdx.toString(), 10)].align + 's').toLowerCase()].splice(parseInt(indexAgn.toString(), 10), 1);
5036
5055
  }
5037
5056
  if (this.isReact) {
5038
- this.clearTemplate();
5057
+ this.clearToolbarTemplate(innerItems[parseInt(index.toString(), 10)]);
5039
5058
  }
5040
5059
  const btnItem = innerItems[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');
5041
5060
  if (!isNullOrUndefined(btnItem) && !isNullOrUndefined(btnItem.ej2_instances[0]) && !(btnItem.ej2_instances[0].isDestroyed)) {
@@ -5084,7 +5103,7 @@ let Toolbar = class Toolbar extends Component {
5084
5103
  let tempArray;
5085
5104
  if (!isNullOrUndefined(templateFn)) {
5086
5105
  const toolbarTemplateID = this.element.id + index + '_template';
5087
- tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate);
5106
+ tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate, undefined, undefined, this.root);
5088
5107
  }
5089
5108
  if (!isNullOrUndefined(tempArray) && tempArray.length > 0) {
5090
5109
  [].slice.call(tempArray).forEach((ele) => {
@@ -5152,7 +5171,8 @@ let Toolbar = class Toolbar extends Component {
5152
5171
  let dom;
5153
5172
  const innerEle = this.createElement('div', { className: CLS_ITEM });
5154
5173
  const tempDom = this.createElement('div', {
5155
- innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5174
+ innerHTML: this.enableHtmlSanitizer && !isNullOrUndefined(item.tooltipText) ?
5175
+ SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
5156
5176
  });
5157
5177
  if (!this.tbarEle) {
5158
5178
  this.tbarEle = [];
@@ -5230,7 +5250,12 @@ let Toolbar = class Toolbar extends Component {
5230
5250
  }
5231
5251
  activeEleRemove(curEle) {
5232
5252
  if (!isNullOrUndefined(this.activeEle)) {
5233
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5253
+ if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
5254
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
5255
+ }
5256
+ else {
5257
+ this.activeEle.removeAttribute('tabindex');
5258
+ }
5234
5259
  }
5235
5260
  this.activeEle = curEle;
5236
5261
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -5347,6 +5372,30 @@ let Toolbar = class Toolbar extends Component {
5347
5372
  nextEle = innerItems[++eleIndex];
5348
5373
  }
5349
5374
  }
5375
+ clearToolbarTemplate(templateEle) {
5376
+ if (this.registeredTemplate && this.registeredTemplate[`${'template'}`]) {
5377
+ const registeredTemplates = this.registeredTemplate;
5378
+ for (let index = 0; index < registeredTemplates[`${'template'}`].length; index++) {
5379
+ const registeredItem = registeredTemplates[`${'template'}`][parseInt(index.toString(), 10)].rootNodes[0];
5380
+ const closestItem = closest(registeredItem, '.' + CLS_ITEM);
5381
+ if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
5382
+ this.clearTemplate(['template'], [registeredTemplates[`${'template'}`][parseInt(index.toString(), 10)]]);
5383
+ break;
5384
+ }
5385
+ }
5386
+ }
5387
+ else if (this.portals && this.portals.length > 0) {
5388
+ const portals = this.portals;
5389
+ for (let index = 0; index < portals.length; index++) {
5390
+ const portalItem = portals[parseInt(index.toString(), 10)];
5391
+ const closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM);
5392
+ if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
5393
+ this.clearTemplate(['template'], index);
5394
+ break;
5395
+ }
5396
+ }
5397
+ }
5398
+ }
5350
5399
  /**
5351
5400
  * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
5352
5401
  *
@@ -5368,31 +5417,29 @@ let Toolbar = class Toolbar extends Component {
5368
5417
  const index = parseInt(Object.keys(newProp.items)[parseInt(i.toString(), 10)], 10);
5369
5418
  const property = Object.keys(newProp.items[parseInt(index.toString(), 10)])[0];
5370
5419
  const newProperty = Object(newProp.items[parseInt(index.toString(), 10)])[`${property}`];
5371
- if (typeof newProperty !== 'function') {
5372
- if (this.tbarAlign || property === 'align') {
5373
- this.refresh();
5374
- this.trigger('created');
5375
- break;
5376
- }
5377
- const popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
5378
- const booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
5379
- if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
5380
- --this.popupPriCount;
5381
- }
5382
- if (isNullOrUndefined(this.scrollModule)) {
5383
- this.destroyMode();
5384
- }
5385
- const itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
5386
- if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
5387
- this.clearTemplate();
5388
- }
5389
- detach(itemCol[parseInt(index.toString(), 10)]);
5390
- this.tbarEle.splice(index, 1);
5391
- this.addItems([this.items[parseInt(index.toString(), 10)]], index);
5392
- this.items.splice(index, 1);
5393
- if (this.items[parseInt(index.toString(), 10)].template) {
5394
- this.tbarEle.splice(this.items.length, 1);
5395
- }
5420
+ if (this.tbarAlign || property === 'align') {
5421
+ this.refresh();
5422
+ this.trigger('created');
5423
+ break;
5424
+ }
5425
+ const popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
5426
+ const booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
5427
+ if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
5428
+ --this.popupPriCount;
5429
+ }
5430
+ if (isNullOrUndefined(this.scrollModule)) {
5431
+ this.destroyMode();
5432
+ }
5433
+ const itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
5434
+ if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
5435
+ this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
5436
+ }
5437
+ detach(itemCol[parseInt(index.toString(), 10)]);
5438
+ this.tbarEle.splice(index, 1);
5439
+ this.addItems([this.items[parseInt(index.toString(), 10)]], index);
5440
+ this.items.splice(index, 1);
5441
+ if (this.items[parseInt(index.toString(), 10)].template) {
5442
+ this.tbarEle.splice(this.items.length, 1);
5396
5443
  }
5397
5444
  }
5398
5445
  }
@@ -5685,7 +5732,7 @@ let Accordion = class Accordion extends Component {
5685
5732
  }
5686
5733
  const ele = this.element;
5687
5734
  super.destroy();
5688
- this.unwireEvents();
5735
+ this.unWireEvents();
5689
5736
  this.isDestroy = true;
5690
5737
  this.restoreContent(null);
5691
5738
  [].slice.call(ele.children).forEach((el) => {
@@ -5772,7 +5819,7 @@ let Accordion = class Accordion extends Component {
5772
5819
  }
5773
5820
  }
5774
5821
  }
5775
- unwireEvents() {
5822
+ unWireEvents() {
5776
5823
  EventHandler.remove(this.element, 'click', this.clickHandler);
5777
5824
  if (!isNullOrUndefined(this.keyModule)) {
5778
5825
  this.keyModule.destroy();
@@ -6088,7 +6135,7 @@ let Accordion = class Accordion extends Component {
6088
6135
  const ctnEle = this.headerEleGenerate();
6089
6136
  const hdrEle = this.createElement('div', { className: CLS_HEADERCTN });
6090
6137
  ctnEle.appendChild(hdrEle);
6091
- ctnEle.appendChild(this.fetchElement(hdrEle, item.header, index, true));
6138
+ ctnEle.appendChild(this.fetchElement(hdrEle, item.header, index));
6092
6139
  innerEle.appendChild(ctnEle);
6093
6140
  }
6094
6141
  let hdr = select('.' + CLS_HEADER, innerEle);
@@ -6150,8 +6197,7 @@ let Accordion = class Accordion extends Component {
6150
6197
  return true;
6151
6198
  }
6152
6199
  }
6153
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6154
- fetchElement(ele, value, index, isHeader) {
6200
+ fetchElement(ele, value, index) {
6155
6201
  let templateFn;
6156
6202
  let temString;
6157
6203
  try {
@@ -6169,9 +6215,11 @@ let Accordion = class Accordion extends Component {
6169
6215
  if (typeof (value) === 'string') {
6170
6216
  ele.innerHTML = SanitizeHtmlHelper.sanitize(value);
6171
6217
  }
6172
- else if (!isNullOrUndefined(this.trgtEle) && (value instanceof (HTMLElement))) {
6218
+ else if (value instanceof (HTMLElement)) {
6173
6219
  ele.appendChild(value);
6174
- ele.firstElementChild.style.display = '';
6220
+ if (this.trgtEle) {
6221
+ ele.firstElementChild.style.display = '';
6222
+ }
6175
6223
  }
6176
6224
  else {
6177
6225
  templateFn = compile(value);
@@ -6235,7 +6283,7 @@ let Accordion = class Accordion extends Component {
6235
6283
  this.items[parseInt(index.toString(), 10)].content =
6236
6284
  SanitizeHtmlHelper.sanitize(this.items[parseInt(index.toString(), 10)].content);
6237
6285
  }
6238
- itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index, false));
6286
+ itemcnt.appendChild(this.fetchElement(ctn, this.items[parseInt(index.toString(), 10)].content, index));
6239
6287
  }
6240
6288
  return itemcnt;
6241
6289
  }
@@ -6268,7 +6316,7 @@ let Accordion = class Accordion extends Component {
6268
6316
  expandState.classList.remove(CLS_EXPANDSTATE);
6269
6317
  }
6270
6318
  trgtItemEle.classList.add(CLS_EXPANDSTATE);
6271
- if ((animation.name === 'None')) {
6319
+ if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
6272
6320
  this.expandProgress('begin', icon, trgt, trgtItemEle, expandArgs);
6273
6321
  this.expandProgress('end', icon, trgt, trgtItemEle, expandArgs);
6274
6322
  }
@@ -6279,6 +6327,10 @@ let Accordion = class Accordion extends Component {
6279
6327
  });
6280
6328
  }
6281
6329
  expandAnimation(ef, icn, trgt, trgtItemEle, animate, args) {
6330
+ if (ef === 'None' && animationMode === 'Enable') {
6331
+ ef = 'SlideDown';
6332
+ animate.name = 'SlideDown';
6333
+ }
6282
6334
  let height;
6283
6335
  this.lastActiveItemId = trgtItemEle.id;
6284
6336
  if (ef === 'SlideDown') {
@@ -6372,7 +6424,7 @@ let Accordion = class Accordion extends Component {
6372
6424
  this.expandedItemsPop(trgtItemEle);
6373
6425
  trgtItemEle.classList.remove(CLS_EXPANDSTATE);
6374
6426
  icon.classList.add(CLS_TOGANIMATE);
6375
- if ((animation.name === 'None')) {
6427
+ if ((animation.name === 'None' && animationMode !== 'Enable') || (animationMode === 'Disable')) {
6376
6428
  this.collapseProgress('begin', icon, trgt, trgtItemEle, expandArgs);
6377
6429
  this.collapseProgress('end', icon, trgt, trgtItemEle, expandArgs);
6378
6430
  }
@@ -6383,6 +6435,10 @@ let Accordion = class Accordion extends Component {
6383
6435
  });
6384
6436
  }
6385
6437
  collapseAnimation(ef, trgt, trgtItEl, icn, animate, args) {
6438
+ if (ef === 'None' && animationMode === 'Enable') {
6439
+ ef = 'SlideUp';
6440
+ animate.name = 'SlideUp';
6441
+ }
6386
6442
  let height;
6387
6443
  let trgtHeight;
6388
6444
  let itemHeight;
@@ -6482,7 +6538,7 @@ let Accordion = class Accordion extends Component {
6482
6538
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'focus', this.focusIn, this);
6483
6539
  EventHandler.add(innerItemEle.querySelector('.' + CLS_HEADER), 'blur', this.focusOut, this);
6484
6540
  this.expandedIndices = [];
6485
- this.expandedItemRefresh(ele);
6541
+ this.expandedItemRefresh();
6486
6542
  if (addItem && addItem.expanded) {
6487
6543
  this.expandItem(true, itemIndex);
6488
6544
  }
@@ -6492,8 +6548,7 @@ let Accordion = class Accordion extends Component {
6492
6548
  this.renderReactTemplates();
6493
6549
  }
6494
6550
  }
6495
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6496
- expandedItemRefresh(ele) {
6551
+ expandedItemRefresh() {
6497
6552
  const itemEle = this.getItemElements();
6498
6553
  [].slice.call(itemEle).forEach((el) => {
6499
6554
  if (el.classList.contains(CLS_SLCTED)) {
@@ -6508,8 +6563,12 @@ let Accordion = class Accordion extends Component {
6508
6563
  * @returns {void}.
6509
6564
  */
6510
6565
  removeItem(index) {
6511
- if (this.isReact) {
6512
- this.clearTemplate(['headerTemplate', 'itemTemplate'], index);
6566
+ if (this.isReact || this.isAngular) {
6567
+ const item = selectAll('.' + CLS_ITEM$1, this.element)[parseInt(index.toString(), 10)];
6568
+ const header = select('.' + CLS_HEADERCTN, item);
6569
+ const content = select('.' + CLS_CTENT, item);
6570
+ this.clearAccordionTemplate(header, this.dataSource.length > 0 ? 'headerTemplate' : 'header', CLS_HEADERCTN);
6571
+ this.clearAccordionTemplate(content, this.dataSource.length > 0 ? 'itemTemplate' : 'content', CLS_CTENT);
6513
6572
  }
6514
6573
  const itemEle = this.getItemElements();
6515
6574
  const ele = itemEle[parseInt(index.toString(), 10)];
@@ -6521,7 +6580,7 @@ let Accordion = class Accordion extends Component {
6521
6580
  detach(ele);
6522
6581
  items.splice(index, 1);
6523
6582
  this.expandedIndices = [];
6524
- this.expandedItemRefresh(this.element);
6583
+ this.expandedItemRefresh();
6525
6584
  }
6526
6585
  /**
6527
6586
  * Sets focus to the specified index item header in Accordion.
@@ -6697,28 +6756,18 @@ let Accordion = class Accordion extends Component {
6697
6756
  }
6698
6757
  }
6699
6758
  setTemplate(template, toElement, index) {
6700
- toElement.innerHTML = '';
6701
- this.templateCompile(toElement, template, index);
6759
+ this.fetchElement(toElement, template, index);
6702
6760
  if (this.isReact) {
6703
6761
  this.renderReactTemplates();
6704
6762
  }
6705
6763
  }
6706
- templateCompile(ele, cnt, index) {
6707
- const tempEle = this.createElement('div');
6708
- this.fetchElement(tempEle, cnt, index, false);
6709
- if (tempEle.childNodes.length !== 0) {
6710
- [].slice.call(tempEle.childNodes).forEach((childEle) => {
6711
- ele.appendChild(childEle);
6712
- });
6713
- }
6714
- }
6715
6764
  clearAccordionTemplate(templateEle, templateName, className) {
6716
6765
  if (this.registeredTemplate && this.registeredTemplate[`${templateName}`]) {
6717
6766
  const registeredTemplates = this.registeredTemplate;
6718
6767
  for (let index = 0; index < registeredTemplates[`${templateName}`].length; index++) {
6719
6768
  const registeredItem = registeredTemplates[`${templateName}`][parseInt(index.toString(), 10)].rootNodes[0];
6720
- const closestItem = closest(registeredItem.containerInfo, '.' + className);
6721
- if (!isNullOrUndefined(closestItem) && closestItem === templateEle) {
6769
+ const closestItem = closest(registeredItem, '.' + className);
6770
+ if (!isNullOrUndefined(closestItem) && closestItem === templateEle || isNullOrUndefined(registeredItem.parentNode)) {
6722
6771
  this.clearTemplate([templateName], [registeredTemplates[`${templateName}`][parseInt(index.toString(), 10)]]);
6723
6772
  break;
6724
6773
  }
@@ -6787,7 +6836,8 @@ let Accordion = class Accordion extends Component {
6787
6836
  if (property[parseInt(k.toString(), 10)] === 'disabled' && !isNullOrUndefined(item)) {
6788
6837
  this.enableItem(index, !newVal);
6789
6838
  }
6790
- if (property[parseInt(k.toString(), 10)] === 'content' && !isNullOrUndefined(item) && item.children.length === 2) {
6839
+ if (property.indexOf('header') < 0 && property[parseInt(k.toString(), 10)] === 'content'
6840
+ && !isNullOrUndefined(item) && item.children.length === 2) {
6791
6841
  if (typeof newVal === 'function') {
6792
6842
  if (this.isAngular || this.isReact) {
6793
6843
  this.clearAccordionTemplate(content, property[parseInt(k.toString(), 10)], CLS_CTENT);
@@ -7567,6 +7617,14 @@ let Tab = class Tab extends Component {
7567
7617
  this.renderContainer();
7568
7618
  this.wireEvents();
7569
7619
  this.initRender = false;
7620
+ if (this.isReact && this.portals && this.portals.length > 0) {
7621
+ this.renderReactTemplates(() => {
7622
+ if (!isNullOrUndefined(this.tbObj)) {
7623
+ this.tbObj.refreshOverflow();
7624
+ }
7625
+ this.refreshActiveBorder();
7626
+ });
7627
+ }
7570
7628
  }
7571
7629
  renderContainer() {
7572
7630
  const ele = this.element;
@@ -7777,10 +7835,7 @@ let Tab = class Tab extends Component {
7777
7835
  tCont.appendChild(this.btnCls.cloneNode(true));
7778
7836
  const wrap = this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
7779
7837
  wrap.appendChild(tCont);
7780
- if (this.itemIndexArray === []) {
7781
- this.itemIndexArray.push(CLS_ITEM$2 + this.tabId + '_' + this.lastIndex);
7782
- }
7783
- else {
7838
+ if (this.itemIndexArray instanceof Array) {
7784
7839
  this.itemIndexArray.splice((index + i), 0, CLS_ITEM$2 + this.tabId + '_' + this.lastIndex);
7785
7840
  }
7786
7841
  const attrObj = {
@@ -7936,10 +7991,9 @@ let Tab = class Tab extends Component {
7936
7991
  if (!isNullOrUndefined(newCnt)) {
7937
7992
  this.prevActiveEle = newCnt.id;
7938
7993
  }
7939
- const isPrevent = isNullOrUndefined(this.animation) || this.animation.next === {} || this.animation.previous === {}
7940
- || isNullOrUndefined(this.animation.next.effect) || isNullOrUndefined(this.animation.previous.effect)
7941
- || this.animation.previous.effect == 'None' || this.animation.next.effect == 'None';
7942
- if (this.initRender || value === false || this.animation === {} || isPrevent) {
7994
+ const isPrevent = isNullOrUndefined(this.animation) || isNullOrUndefined(this.animation.next.effect) || isNullOrUndefined(this.animation.previous.effect)
7995
+ || this.animation.previous.effect === 'None' || this.animation.next.effect === 'None';
7996
+ if (this.initRender || value === false || isPrevent) {
7943
7997
  if (oldCnt && oldCnt !== newCnt) {
7944
7998
  oldCnt.classList.remove(CLS_ACTIVE$1);
7945
7999
  }
@@ -7951,7 +8005,7 @@ let Tab = class Tab extends Component {
7951
8005
  const openEff = this.animation.previous.effect;
7952
8006
  animateObj = {
7953
8007
  name: ((openEff === 'None') ? '' : ((openEff !== 'SlideLeftIn') ? openEff : 'SlideLeftIn')),
7954
- duration: this.animation.previous.duration,
8008
+ duration: (this.animation.previous.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.previous.duration,
7955
8009
  timingFunction: this.animation.previous.easing
7956
8010
  };
7957
8011
  }
@@ -7959,7 +8013,7 @@ let Tab = class Tab extends Component {
7959
8013
  const clsEff = this.animation.next.effect;
7960
8014
  animateObj = {
7961
8015
  name: ((clsEff === 'None') ? '' : ((clsEff !== 'SlideRightIn') ? clsEff : 'SlideRightIn')),
7962
- duration: this.animation.next.duration,
8016
+ duration: (this.animation.next.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.next.duration,
7963
8017
  timingFunction: this.animation.next.easing
7964
8018
  };
7965
8019
  }
@@ -8068,7 +8122,7 @@ let Tab = class Tab extends Component {
8068
8122
  }
8069
8123
  getContent(ele, cnt, callType, index) {
8070
8124
  let eleStr;
8071
- cnt = isNullOrUndefined(cnt) ? "" : cnt;
8125
+ cnt = isNullOrUndefined(cnt) ? '' : cnt;
8072
8126
  if (typeof cnt === 'string' || isNullOrUndefined(cnt.innerHTML)) {
8073
8127
  if (typeof cnt === 'string' && this.enableHtmlSanitizer) {
8074
8128
  cnt = SanitizeHtmlHelper.sanitize(cnt);
@@ -8417,7 +8471,7 @@ let Tab = class Tab extends Component {
8417
8471
  }
8418
8472
  showPopup(config) {
8419
8473
  const tbPop = select('.e-popup.e-toolbar-pop', this.hdrEle);
8420
- if (tbPop.classList.contains('e-popup-close')) {
8474
+ if (tbPop && tbPop.classList.contains('e-popup-close')) {
8421
8475
  const tbPopObj = (tbPop && tbPop.ej2_instances[0]);
8422
8476
  tbPopObj.position.X = (this.headerPlacement === 'Left') ? 'left' : 'right';
8423
8477
  tbPopObj.dataBind();
@@ -8731,6 +8785,9 @@ let Tab = class Tab extends Component {
8731
8785
  }
8732
8786
  }
8733
8787
  clearTabTemplate(templateEle, templateName, className) {
8788
+ if (!this.clearTemplates) {
8789
+ return;
8790
+ }
8734
8791
  if (this.registeredTemplate && this.registeredTemplate[templateName]) {
8735
8792
  const registeredTemplates = this.registeredTemplate;
8736
8793
  for (let index = 0; index < registeredTemplates[templateName].length; index++) {
@@ -8862,8 +8919,8 @@ let Tab = class Tab extends Component {
8862
8919
  clonedElement: this.cloneElement,
8863
8920
  cancel: false
8864
8921
  };
8865
- this.trigger('onDragStart', dragArgs, (tabitemDragArgs) => {
8866
- if (tabitemDragArgs.cancel) {
8922
+ this.trigger('onDragStart', dragArgs, (tabItemDragArgs) => {
8923
+ if (tabItemDragArgs.cancel) {
8867
8924
  const dragObj = e.element.ej2_instances[0];
8868
8925
  if (!isNullOrUndefined(dragObj)) {
8869
8926
  dragObj.intDestroy(e.event);
@@ -9204,7 +9261,9 @@ let Tab = class Tab extends Component {
9204
9261
  }
9205
9262
  }
9206
9263
  this.setActiveBorder();
9207
- item.setAttribute('aria-hidden', '' + value);
9264
+ if (!isNullOrUndefined(item.firstElementChild)) {
9265
+ item.firstElementChild.setAttribute('aria-hidden', '' + value);
9266
+ }
9208
9267
  if (this.overflowMode === 'Popup' && this.tbObj) {
9209
9268
  this.tbObj.refreshOverflow();
9210
9269
  }
@@ -9621,6 +9680,9 @@ __decorate$7([
9621
9680
  __decorate$7([
9622
9681
  Property(false)
9623
9682
  ], Tab.prototype, "allowDragAndDrop", void 0);
9683
+ __decorate$7([
9684
+ Property(true)
9685
+ ], Tab.prototype, "clearTemplates", void 0);
9624
9686
  __decorate$7([
9625
9687
  Complex({}, TabAnimationSettings)
9626
9688
  ], Tab.prototype, "animation", void 0);
@@ -10489,6 +10551,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
10489
10551
  }
10490
10552
  }
10491
10553
  let eNodes = selectAll('.' + EXPANDED, element);
10554
+ if (!this.loadOnDemand && this.fields.dataSource instanceof DataManager) {
10555
+ this.isInitalExpand = this.treeData.filter(e => e[this.fields.expanded] == true).length > 0 ? true : this.isInitalExpand;
10556
+ }
10492
10557
  if (!this.isInitalExpand) {
10493
10558
  for (let i = 0; i < eNodes.length; i++) {
10494
10559
  this.renderChildNodes(eNodes[i]);
@@ -10993,6 +11058,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
10993
11058
  }
10994
11059
  doExpandAction() {
10995
11060
  let eUids = this.expandedNodes;
11061
+ if (!this.loadOnDemand && this.fields.dataSource instanceof DataManager) {
11062
+ this.isInitalExpand = this.treeData.filter(e => e[this.fields.expanded] == true).length > 0 ? true : this.isInitalExpand;
11063
+ }
10996
11064
  if (this.isInitalExpand && eUids.length > 0) {
10997
11065
  this.setProperties({ expandedNodes: [] }, true);
10998
11066
  /* eslint-disable */
@@ -11184,7 +11252,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11184
11252
  if (this.isAnimate && !this.isRefreshed) {
11185
11253
  this.aniObj.animate(ul, {
11186
11254
  name: this.animation.expand.effect,
11187
- duration: this.animation.expand.duration,
11255
+ duration: (this.animation.expand.duration === 0 && animationMode === 'Enable') ? 400 : this.animation.expand.duration,
11188
11256
  timingFunction: this.animation.expand.easing,
11189
11257
  begin: (args) => {
11190
11258
  liEle.style.overflow = 'hidden';
@@ -11284,7 +11352,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11284
11352
  if (this.isAnimate) {
11285
11353
  this.aniObj.animate(ul, {
11286
11354
  name: this.animation.collapse.effect,
11287
- duration: this.animation.collapse.duration,
11355
+ duration: (this.animation.collapse.duration === 0 && animationMode === 'Enable') ? 400 : this.animation.collapse.duration,
11288
11356
  timingFunction: this.animation.collapse.easing,
11289
11357
  begin: (args) => {
11290
11358
  liEle.style.overflow = 'hidden';
@@ -11430,6 +11498,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11430
11498
  if (callback) {
11431
11499
  callback();
11432
11500
  }
11501
+ if (expandChild) {
11502
+ this.expandedNodes.push(parentLi.getAttribute('data-uid'));
11503
+ }
11433
11504
  if (this.treeList.length === 0 && !this.isLoaded) {
11434
11505
  this.finalize();
11435
11506
  }
@@ -12852,6 +12923,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12852
12923
  else {
12853
12924
  this.dropAsChildNode(dragLi, dropLi, dragObj, null, e, offsetY, true);
12854
12925
  }
12926
+ if (this.showCheckBox) {
12927
+ this.ensureIndeterminate();
12928
+ }
12855
12929
  }
12856
12930
  dropAsSiblingNode(dragLi, dropLi, e, dragObj) {
12857
12931
  let dropUl = closest(dropLi, '.' + PARENTITEM);
@@ -14402,9 +14476,9 @@ let TreeView = TreeView_1 = class TreeView extends Component {
14402
14476
  }
14403
14477
  }
14404
14478
  else if (this.dataType == 2) {
14405
- parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId).reverse();
14479
+ parentsId = this.getHierarchicalParentId(node, this.treeData, parentsId);
14406
14480
  }
14407
- this.expandAll(parentsId);
14481
+ this.expandAll(parentsId.reverse());
14408
14482
  let liEle = this.getElement(node);
14409
14483
  if (!isNullOrUndefined(liEle)) {
14410
14484
  if (typeof node == 'object') {
@@ -14962,7 +15036,7 @@ let Sidebar = class Sidebar extends Component {
14962
15036
  this.show();
14963
15037
  }
14964
15038
  else if (!this.isOpen) {
14965
- addClass([this.element], CLOSE);
15039
+ addClass([this.element], [CLOSE, DISABLEANIMATION]);
14966
15040
  }
14967
15041
  }
14968
15042
  checkType(val) {
@@ -15414,7 +15488,7 @@ let Sidebar = class Sidebar extends Component {
15414
15488
  }
15415
15489
  this.destroyBackDrop();
15416
15490
  if (this.element) {
15417
- removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION]);
15491
+ removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION, DISABLEANIMATION]);
15418
15492
  removeClass([this.element], SIDEBARABSOLUTE);
15419
15493
  this.element.style.width = '';
15420
15494
  this.element.style.zIndex = '';
@@ -15778,7 +15852,14 @@ let Breadcrumb = class Breadcrumb extends Component {
15778
15852
  if (i % 2) {
15779
15853
  // separator item
15780
15854
  wrapDiv = this.createElement('div', { className: 'e-breadcrumb-item-wrapper' });
15781
- listBaseOptions.template = this.separatorTemplate ? this.separatorTemplate : '/';
15855
+ if ((this.separatorTemplate && this.separatorTemplate === '/') || isNullOrUndefined(this.separatorTemplate)) {
15856
+ listBaseOptions.template = initializeCSPTemplate(function () {
15857
+ return '/';
15858
+ });
15859
+ }
15860
+ else {
15861
+ listBaseOptions.template = this.separatorTemplate;
15862
+ }
15782
15863
  listBaseOptions.itemClass = 'e-breadcrumb-separator';
15783
15864
  isSingleLevel = false;
15784
15865
  item = [{ previousItem: items[j], nextItem: items[j + 1] }];
@@ -15787,6 +15868,7 @@ let Breadcrumb = class Breadcrumb extends Component {
15787
15868
  // list item
15788
15869
  listBaseOptions.itemClass = '';
15789
15870
  if (this.itemTemplate) {
15871
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15790
15872
  listBaseOptions.template = this.itemTemplate;
15791
15873
  isSingleLevel = false;
15792
15874
  }
@@ -16546,6 +16628,7 @@ let Carousel = class Carousel extends Component {
16546
16628
  }
16547
16629
  initialize() {
16548
16630
  const carouselClasses = [];
16631
+ carouselClasses.push(CLS_CAROUSEL);
16549
16632
  if (this.cssClass) {
16550
16633
  carouselClasses.push(this.cssClass);
16551
16634
  }
@@ -16560,7 +16643,7 @@ let Carousel = class Carousel extends Component {
16560
16643
  }
16561
16644
  addClass([this.element], carouselClasses);
16562
16645
  setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
16563
- attributes(this.element, { 'tabindex': '0', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
16646
+ attributes(this.element, { 'tabindex': '0', 'role': 'group', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
16564
16647
  if (!isNullOrUndefined(this.htmlAttributes)) {
16565
16648
  this.setHtmlAttributes(this.htmlAttributes, this.element);
16566
16649
  }
@@ -16631,7 +16714,7 @@ let Carousel = class Carousel extends Component {
16631
16714
  className: `${CLS_ITEM$3} ${item.cssClass ? item.cssClass : ''} ${this.selectedIndex === index && !isClone ? CLS_ACTIVE$2 : ''}`,
16632
16715
  attrs: {
16633
16716
  'aria-hidden': this.selectedIndex === index && !isClone ? 'false' : 'true', 'data-index': index.toString(),
16634
- 'aria-role': 'group', 'aria-roledescription': 'slide'
16717
+ 'role': 'group', 'aria-roledescription': 'slide'
16635
16718
  }
16636
16719
  });
16637
16720
  if (isClone) {
@@ -17328,6 +17411,13 @@ let Carousel = class Carousel extends Component {
17328
17411
  EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
17329
17412
  }
17330
17413
  }
17414
+ resizeHandler() {
17415
+ if (this.itemsContainer && this.itemsContainer.firstElementChild) {
17416
+ const numOfItems = this.getNumOfItems();
17417
+ const slideWidth = this.itemsContainer.firstElementChild.clientWidth;
17418
+ this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
17419
+ }
17420
+ }
17331
17421
  wireEvents() {
17332
17422
  if (!(this.animationEffect === 'Custom')) {
17333
17423
  this.swipeModehandlers();
@@ -17336,6 +17426,7 @@ let Carousel = class Carousel extends Component {
17336
17426
  EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
17337
17427
  EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
17338
17428
  EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
17429
+ EventHandler.add(window, 'resize', this.resizeHandler, this);
17339
17430
  }
17340
17431
  unWireEvents() {
17341
17432
  const indicators = [].slice.call(this.element.querySelectorAll(`.${CLS_INDICATOR_BAR}`));
@@ -17354,6 +17445,7 @@ let Carousel = class Carousel extends Component {
17354
17445
  EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
17355
17446
  EventHandler.clearEvents(this.element);
17356
17447
  EventHandler.clearEvents(this.itemsContainer);
17448
+ EventHandler.remove(window, 'resize', this.resizeHandler);
17357
17449
  }
17358
17450
  /**
17359
17451
  * Method to transit from the current slide to the previous slide.
@@ -17596,6 +17688,7 @@ let AppBar = class AppBar extends Component {
17596
17688
  // pre render code
17597
17689
  }
17598
17690
  render() {
17691
+ this.element.classList.add(CLS_APPBAR);
17599
17692
  if (this.element.tagName !== 'HEADER') {
17600
17693
  this.element.setAttribute('role', 'header');
17601
17694
  }