@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
@@ -297,6 +297,7 @@ var Carousel = /** @class */ (function (_super) {
297
297
  };
298
298
  Carousel.prototype.initialize = function () {
299
299
  var carouselClasses = [];
300
+ carouselClasses.push(CLS_CAROUSEL);
300
301
  if (this.cssClass) {
301
302
  carouselClasses.push(this.cssClass);
302
303
  }
@@ -311,7 +312,7 @@ var Carousel = /** @class */ (function (_super) {
311
312
  }
312
313
  addClass([this.element], carouselClasses);
313
314
  setStyleAttribute(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
314
- attributes(this.element, { 'tabindex': '0', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
315
+ attributes(this.element, { 'tabindex': '0', 'role': 'group', 'aria-roledescription': 'carousel', 'aria-label': this.localeObj.getConstant('slideShow') });
315
316
  if (!isNullOrUndefined(this.htmlAttributes)) {
316
317
  this.setHtmlAttributes(this.htmlAttributes, this.element);
317
318
  }
@@ -385,7 +386,7 @@ var Carousel = /** @class */ (function (_super) {
385
386
  className: CLS_ITEM + " " + (item.cssClass ? item.cssClass : '') + " " + (this.selectedIndex === index && !isClone ? CLS_ACTIVE : ''),
386
387
  attrs: {
387
388
  'aria-hidden': this.selectedIndex === index && !isClone ? 'false' : 'true', 'data-index': index.toString(),
388
- 'aria-role': 'group', 'aria-roledescription': 'slide'
389
+ 'role': 'group', 'aria-roledescription': 'slide'
389
390
  }
390
391
  });
391
392
  if (isClone) {
@@ -1092,6 +1093,13 @@ var Carousel = /** @class */ (function (_super) {
1092
1093
  EventHandler.add(this.itemsContainer, 'mouseup touchend', this.swipStop, this);
1093
1094
  }
1094
1095
  };
1096
+ Carousel.prototype.resizeHandler = function () {
1097
+ if (this.itemsContainer && this.itemsContainer.firstElementChild) {
1098
+ var numOfItems = this.getNumOfItems();
1099
+ var slideWidth = this.itemsContainer.firstElementChild.clientWidth;
1100
+ this.itemsContainer.style.transform = this.getTranslateX(slideWidth, this.selectedIndex + numOfItems);
1101
+ }
1102
+ };
1095
1103
  Carousel.prototype.wireEvents = function () {
1096
1104
  if (!(this.animationEffect === 'Custom')) {
1097
1105
  this.swipeModehandlers();
@@ -1100,6 +1108,7 @@ var Carousel = /** @class */ (function (_super) {
1100
1108
  EventHandler.add(this.element, 'mouseenter mouseleave', this.onHoverActions, this);
1101
1109
  EventHandler.add(this.element.firstElementChild, 'animationend', this.onTransitionEnd, this);
1102
1110
  EventHandler.add(this.element.firstElementChild, 'transitionend', this.onTransitionEnd, this);
1111
+ EventHandler.add(window, 'resize', this.resizeHandler, this);
1103
1112
  };
1104
1113
  Carousel.prototype.unWireEvents = function () {
1105
1114
  var _this = this;
@@ -1119,6 +1128,7 @@ var Carousel = /** @class */ (function (_super) {
1119
1128
  EventHandler.remove(this.element.firstElementChild, 'transitionend', this.onTransitionEnd);
1120
1129
  EventHandler.clearEvents(this.element);
1121
1130
  EventHandler.clearEvents(this.itemsContainer);
1131
+ EventHandler.remove(window, 'resize', this.resizeHandler);
1122
1132
  };
1123
1133
  /**
1124
1134
  * Method to transit from the current slide to the previous slide.
@@ -302,10 +302,10 @@ var MenuBase = /** @class */ (function (_super) {
302
302
  }
303
303
  this.targetElement = target;
304
304
  if (!this.isMenu) {
305
- EventHandler.add(this.targetElement, 'scroll', this.scrollHandler, this);
305
+ EventHandler.add(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
306
306
  for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
307
307
  var parent_1 = _a[_i];
308
- EventHandler.add(parent_1, 'scroll', this.scrollHandler, this);
308
+ EventHandler.add(parent_1, 'mousewheel DOMMouseScroll', this.scrollHandler, this);
309
309
  }
310
310
  }
311
311
  }
@@ -483,7 +483,7 @@ var MenuBase = /** @class */ (function (_super) {
483
483
  var popups_1 = [];
484
484
  var allPopup = selectAll('.' + POPUP);
485
485
  allPopup.forEach(function (elem) {
486
- if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + "-" + elem.id.split('-')[3]) {
486
+ if (_this.element.id === elem.id.split('-')[2] || elem.id.split('-')[2] + '-' + elem.id.split('-')[3]) {
487
487
  popups_1.push(elem);
488
488
  }
489
489
  });
@@ -650,7 +650,7 @@ var MenuBase = /** @class */ (function (_super) {
650
650
  _this.afterCloseMenu(e);
651
651
  }
652
652
  else if (isOpen && !_this.hamburgerMode && closedLi && !trgtLi && _this.keyType !== 'left' && (_this.navIdx.length || !_this.isMenu && _this.navIdx.length === 0)) {
653
- var ele = (e && e.target.classList.contains('e-vscroll'))
653
+ var ele = (e && (e.target.classList.contains('e-vscroll') || e.target.classList.contains('e-scroll-nav')))
654
654
  ? closest(e.target, '.e-menu-wrapper') : null;
655
655
  if (ele) {
656
656
  ele = ele.querySelector('.e-menu-item');
@@ -659,7 +659,9 @@ var MenuBase = /** @class */ (function (_super) {
659
659
  }
660
660
  }
661
661
  else {
662
- _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
662
+ if (!(e && e.target.classList.contains('e-nav-arrow'))) {
663
+ _this.closeMenu(_this.navIdx[_this.navIdx.length - 1], e);
664
+ }
663
665
  }
664
666
  }
665
667
  else if (isOpen && !isIterated && !ulIndex && ((_this.hamburgerMode && _this.navIdx.length) ||
@@ -851,7 +853,7 @@ var MenuBase = /** @class */ (function (_super) {
851
853
  if (isNullOrUndefined(e)) {
852
854
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
853
855
  var ev = document.createEvent('MouseEvents');
854
- ev.initEvent("click", true, false);
856
+ ev.initEvent('click', true, false);
855
857
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
856
858
  var targetEvent = this.copyObject(ev, {});
857
859
  targetEvent.target = targetEvent.srcElement = target;
@@ -864,6 +866,7 @@ var MenuBase = /** @class */ (function (_super) {
864
866
  }
865
867
  }
866
868
  };
869
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
867
870
  MenuBase.prototype.copyObject = function (source, destination) {
868
871
  for (var prop in source) {
869
872
  destination["" + prop] = source["" + prop];
@@ -1431,6 +1434,9 @@ var MenuBase = /** @class */ (function (_super) {
1431
1434
  if (!cli.classList.contains(SEPARATOR)) {
1432
1435
  this.showSubMenu = true;
1433
1436
  var cul = cli.parentNode;
1437
+ if (isNullOrUndefined(cul)) {
1438
+ return;
1439
+ }
1434
1440
  this.cliIdx = this.getIdx(cul, cli);
1435
1441
  if (this.isMenu || !Browser.isDevice) {
1436
1442
  var culIdx = this.isMenu ? Array.prototype.indexOf.call([wrapper].concat(this.getPopups()), closest(cul, '.' + 'e-' + this.getModuleName() + '-wrapper'))
@@ -1491,6 +1497,9 @@ var MenuBase = /** @class */ (function (_super) {
1491
1497
  }
1492
1498
  };
1493
1499
  MenuBase.prototype.afterCloseMenu = function (e) {
1500
+ if (isNullOrUndefined(e)) {
1501
+ return;
1502
+ }
1494
1503
  var isHeader;
1495
1504
  if (this.showSubMenu) {
1496
1505
  if (this.showItemOnClick && this.navIdx.length === 0) {
@@ -1663,7 +1672,12 @@ var MenuBase = /** @class */ (function (_super) {
1663
1672
  }
1664
1673
  break;
1665
1674
  case 'enableRtl':
1666
- wrapper.classList.toggle(RTL);
1675
+ if (this_1.enableRtl) {
1676
+ wrapper.classList.add(RTL);
1677
+ }
1678
+ else {
1679
+ wrapper.classList.remove(RTL);
1680
+ }
1667
1681
  break;
1668
1682
  case 'showItemOnClick':
1669
1683
  this_1.unWireEvents();
@@ -1828,10 +1842,10 @@ var MenuBase = /** @class */ (function (_super) {
1828
1842
  }
1829
1843
  }
1830
1844
  if (!this.isMenu) {
1831
- EventHandler.remove(this.targetElement, 'scroll', this.scrollHandler);
1845
+ EventHandler.remove(this.targetElement, 'mousewheel DOMMouseScroll', this.scrollHandler);
1832
1846
  for (var _i = 0, _a = getScrollableParent(this.targetElement); _i < _a.length; _i++) {
1833
1847
  var parent_2 = _a[_i];
1834
- EventHandler.remove(parent_2, 'scroll', this.scrollHandler);
1848
+ EventHandler.remove(parent_2, 'mousewheel DOMMouseScroll', this.scrollHandler);
1835
1849
  }
1836
1850
  }
1837
1851
  }
@@ -2107,7 +2121,7 @@ var MenuBase = /** @class */ (function (_super) {
2107
2121
  if (ishide && validUl === items[i]) {
2108
2122
  ul.children[index].classList.add(HIDE);
2109
2123
  }
2110
- else {
2124
+ else if (!ishide && validUl === items[i]) {
2111
2125
  ul.children[index].classList.remove(HIDE);
2112
2126
  }
2113
2127
  }
@@ -1,4 +1,4 @@
1
- import { attributes, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { Browser, Complex, getUniqueID, SanitizeHtmlHelper, compile } from '@syncfusion/ej2-base';import { MenuBase, FieldSettings } from '../common/menu-base';import { MenuItemModel, FieldSettingsModel } from '../common/menu-base-model';
1
+ import { attributes, NotifyPropertyChanges, INotifyPropertyChanged, Property } from '@syncfusion/ej2-base';import { Browser, Complex, getUniqueID, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { MenuBase, FieldSettings } from '../common/menu-base';import { MenuItemModel, FieldSettingsModel } from '../common/menu-base-model';
2
2
  import {Orientation} from "./menu";
3
3
  import {MenuBaseModel} from "../common/menu-base-model";
4
4
 
@@ -174,7 +174,7 @@ var Sidebar = /** @class */ (function (_super) {
174
174
  this.show();
175
175
  }
176
176
  else if (!this.isOpen) {
177
- addClass([this.element], CLOSE);
177
+ addClass([this.element], [CLOSE, DISABLEANIMATION]);
178
178
  }
179
179
  };
180
180
  Sidebar.prototype.checkType = function (val) {
@@ -629,7 +629,7 @@ var Sidebar = /** @class */ (function (_super) {
629
629
  }
630
630
  this.destroyBackDrop();
631
631
  if (this.element) {
632
- removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION]);
632
+ removeClass([this.element], [OPEN, CLOSE, PUSH, SLIDE, OVER, LEFT, RIGHT, TRASITION, DISABLEANIMATION]);
633
633
  removeClass([this.element], SIDEBARABSOLUTE);
634
634
  this.element.style.width = '';
635
635
  this.element.style.zIndex = '';
@@ -1,4 +1,4 @@
1
- import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance, isNullOrUndefined } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, MouseEventArgs, Effect, Browser, formatUnit, DomElements, L10n } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';import { EventHandler, rippleEffect, Touch, SwipeEventArgs, compile, Animation, AnimationModel, BaseEventArgs } from '@syncfusion/ej2-base';import { getRandomId, SanitizeHtmlHelper, Draggable, DragEventArgs as DragArgs, DropEventArgs } from '@syncfusion/ej2-base';import { Base } from '@syncfusion/ej2-base';import { Popup, PopupModel } from '@syncfusion/ej2-popups';import { Toolbar, OverflowMode, ClickEventArgs } from '../toolbar/toolbar';
1
+ import { Component, Property, Event, EmitType, closest, Collection, Complex, attributes, detach, Instance, isNullOrUndefined, animationMode } from '@syncfusion/ej2-base';import { INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';import { KeyboardEvents, KeyboardEventArgs, MouseEventArgs, Effect, Browser, formatUnit, DomElements, L10n } from '@syncfusion/ej2-base';import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';import { EventHandler, rippleEffect, Touch, SwipeEventArgs, compile, Animation, AnimationModel, BaseEventArgs } from '@syncfusion/ej2-base';import { getRandomId, SanitizeHtmlHelper, Draggable, DragEventArgs as DragArgs, DropEventArgs } from '@syncfusion/ej2-base';import { Base } from '@syncfusion/ej2-base';import { Popup, PopupModel } from '@syncfusion/ej2-popups';import { Toolbar, OverflowMode, ClickEventArgs } from '../toolbar/toolbar';
2
2
  import {HeaderPosition,HeightStyles,ContentLoad,AddEventArgs,SelectingEventArgs,SelectEventArgs,RemoveEventArgs,DragEventArgs} from "./tab";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -304,17 +304,25 @@ export interface TabModel extends ComponentModel{
304
304
 
305
305
  /**
306
306
  * Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
307
- * for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
307
+ * for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
308
+ *
308
309
  * @default null
309
310
  */
310
311
  dragArea?: string;
311
312
 
312
313
  /**
313
314
  * Sets true to allow drag and drop the Tab items
315
+ *
314
316
  * @default false
315
317
  */
316
318
  allowDragAndDrop?: boolean;
317
319
 
320
+ /**
321
+ * Specifies whether the templates need to be cleared or not while changing the Tab items dynamically.
322
+ * @default true
323
+ */
324
+ clearTemplates?: boolean;
325
+
318
326
  /**
319
327
  * Specifies the animation configuration settings while showing the content of the Tab.
320
328
  *
package/src/tab/tab.d.ts CHANGED
@@ -289,6 +289,9 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
289
289
  private draggingItems;
290
290
  private draggableItems;
291
291
  private tbId;
292
+ private isAngular;
293
+ private isReact;
294
+ private isVue;
292
295
  private resizeContext;
293
296
  /**
294
297
  * Contains the keyboard configuration of the Tab.
@@ -422,14 +425,21 @@ export declare class Tab extends Component<HTMLElement> implements INotifyProper
422
425
  /**
423
426
  * Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
424
427
  * for the draggable element movement. By default, the draggable element movement occurs in the toolbar.
428
+ *
425
429
  * @default null
426
430
  */
427
431
  dragArea: string;
428
432
  /**
429
433
  * Sets true to allow drag and drop the Tab items
434
+ *
430
435
  * @default false
431
436
  */
432
437
  allowDragAndDrop: boolean;
438
+ /**
439
+ * Specifies whether the templates need to be cleared or not while changing the Tab items dynamically.
440
+ * @default true
441
+ */
442
+ clearTemplates: boolean;
433
443
  /**
434
444
  * Specifies the animation configuration settings while showing the content of the Tab.
435
445
  *
package/src/tab/tab.js CHANGED
@@ -17,7 +17,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
18
  return c > 3 && r && Object.defineProperty(target, key, r), r;
19
19
  };
20
- import { Component, Property, Event, closest, Collection, Complex, attributes, detach, isNullOrUndefined } from '@syncfusion/ej2-base';
20
+ import { Component, Property, Event, closest, Collection, Complex, attributes, detach, isNullOrUndefined, animationMode } from '@syncfusion/ej2-base';
21
21
  import { NotifyPropertyChanges, ChildProperty, select, isVisible } from '@syncfusion/ej2-base';
22
22
  import { KeyboardEvents, Browser, formatUnit, L10n } from '@syncfusion/ej2-base';
23
23
  import { setStyleAttribute as setStyle, isNullOrUndefined as isNOU, selectAll, addClass, removeClass, remove } from '@syncfusion/ej2-base';
@@ -311,11 +311,20 @@ var Tab = /** @class */ (function (_super) {
311
311
  * @returns {void}
312
312
  */
313
313
  Tab.prototype.render = function () {
314
+ var _this = this;
314
315
  this.btnCls = this.createElement('span', { className: CLS_ICONS + ' ' + CLS_ICON_CLOSE, attrs: { title: this.title } });
315
316
  this.tabId = this.element.id.length > 0 ? ('-' + this.element.id) : getRandomId();
316
317
  this.renderContainer();
317
318
  this.wireEvents();
318
319
  this.initRender = false;
320
+ if (this.isReact && this.portals && this.portals.length > 0) {
321
+ this.renderReactTemplates(function () {
322
+ if (!isNOU(_this.tbObj)) {
323
+ _this.tbObj.refreshOverflow();
324
+ }
325
+ _this.refreshActiveBorder();
326
+ });
327
+ }
319
328
  };
320
329
  Tab.prototype.renderContainer = function () {
321
330
  var ele = this.element;
@@ -529,10 +538,7 @@ var Tab = /** @class */ (function (_super) {
529
538
  tCont.appendChild(_this.btnCls.cloneNode(true));
530
539
  var wrap = _this.createElement('div', { className: CLS_WRAP, attrs: wrapAttrs });
531
540
  wrap.appendChild(tCont);
532
- if (_this.itemIndexArray === []) {
533
- _this.itemIndexArray.push(CLS_ITEM + _this.tabId + '_' + _this.lastIndex);
534
- }
535
- else {
541
+ if (_this.itemIndexArray instanceof Array) {
536
542
  _this.itemIndexArray.splice((index + i), 0, CLS_ITEM + _this.tabId + '_' + _this.lastIndex);
537
543
  }
538
544
  var attrObj = {
@@ -690,10 +696,9 @@ var Tab = /** @class */ (function (_super) {
690
696
  if (!isNOU(newCnt)) {
691
697
  this.prevActiveEle = newCnt.id;
692
698
  }
693
- var isPrevent = isNOU(this.animation) || this.animation.next === {} || this.animation.previous === {}
694
- || isNOU(this.animation.next.effect) || isNOU(this.animation.previous.effect)
695
- || this.animation.previous.effect == 'None' || this.animation.next.effect == 'None';
696
- if (this.initRender || value === false || this.animation === {} || isPrevent) {
699
+ var isPrevent = isNOU(this.animation) || isNOU(this.animation.next.effect) || isNOU(this.animation.previous.effect)
700
+ || this.animation.previous.effect === 'None' || this.animation.next.effect === 'None';
701
+ if (this.initRender || value === false || isPrevent) {
697
702
  if (oldCnt && oldCnt !== newCnt) {
698
703
  oldCnt.classList.remove(CLS_ACTIVE);
699
704
  }
@@ -705,7 +710,7 @@ var Tab = /** @class */ (function (_super) {
705
710
  var openEff = this.animation.previous.effect;
706
711
  animateObj = {
707
712
  name: ((openEff === 'None') ? '' : ((openEff !== 'SlideLeftIn') ? openEff : 'SlideLeftIn')),
708
- duration: this.animation.previous.duration,
713
+ duration: (this.animation.previous.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.previous.duration,
709
714
  timingFunction: this.animation.previous.easing
710
715
  };
711
716
  }
@@ -713,7 +718,7 @@ var Tab = /** @class */ (function (_super) {
713
718
  var clsEff = this.animation.next.effect;
714
719
  animateObj = {
715
720
  name: ((clsEff === 'None') ? '' : ((clsEff !== 'SlideRightIn') ? clsEff : 'SlideRightIn')),
716
- duration: this.animation.next.duration,
721
+ duration: (this.animation.next.duration === 0 && animationMode === 'Enable') ? 600 : this.animation.next.duration,
717
722
  timingFunction: this.animation.next.easing
718
723
  };
719
724
  }
@@ -823,7 +828,7 @@ var Tab = /** @class */ (function (_super) {
823
828
  };
824
829
  Tab.prototype.getContent = function (ele, cnt, callType, index) {
825
830
  var eleStr;
826
- cnt = isNOU(cnt) ? "" : cnt;
831
+ cnt = isNOU(cnt) ? '' : cnt;
827
832
  if (typeof cnt === 'string' || isNOU(cnt.innerHTML)) {
828
833
  if (typeof cnt === 'string' && this.enableHtmlSanitizer) {
829
834
  cnt = SanitizeHtmlHelper.sanitize(cnt);
@@ -1174,7 +1179,7 @@ var Tab = /** @class */ (function (_super) {
1174
1179
  };
1175
1180
  Tab.prototype.showPopup = function (config) {
1176
1181
  var tbPop = select('.e-popup.e-toolbar-pop', this.hdrEle);
1177
- if (tbPop.classList.contains('e-popup-close')) {
1182
+ if (tbPop && tbPop.classList.contains('e-popup-close')) {
1178
1183
  var tbPopObj = (tbPop && tbPop.ej2_instances[0]);
1179
1184
  tbPopObj.position.X = (this.headerPlacement === 'Left') ? 'left' : 'right';
1180
1185
  tbPopObj.dataBind();
@@ -1489,6 +1494,9 @@ var Tab = /** @class */ (function (_super) {
1489
1494
  }
1490
1495
  };
1491
1496
  Tab.prototype.clearTabTemplate = function (templateEle, templateName, className) {
1497
+ if (!this.clearTemplates) {
1498
+ return;
1499
+ }
1492
1500
  if (this.registeredTemplate && this.registeredTemplate[templateName]) {
1493
1501
  var registeredTemplates = this.registeredTemplate;
1494
1502
  for (var index = 0; index < registeredTemplates[templateName].length; index++) {
@@ -1622,8 +1630,8 @@ var Tab = /** @class */ (function (_super) {
1622
1630
  clonedElement: this.cloneElement,
1623
1631
  cancel: false
1624
1632
  };
1625
- this.trigger('onDragStart', dragArgs, function (tabitemDragArgs) {
1626
- if (tabitemDragArgs.cancel) {
1633
+ this.trigger('onDragStart', dragArgs, function (tabItemDragArgs) {
1634
+ if (tabItemDragArgs.cancel) {
1627
1635
  var dragObj = e.element.ej2_instances[0];
1628
1636
  if (!isNullOrUndefined(dragObj)) {
1629
1637
  dragObj.intDestroy(e.event);
@@ -1968,7 +1976,9 @@ var Tab = /** @class */ (function (_super) {
1968
1976
  }
1969
1977
  }
1970
1978
  this.setActiveBorder();
1971
- item.setAttribute('aria-hidden', '' + value);
1979
+ if (!isNullOrUndefined(item.firstElementChild)) {
1980
+ item.firstElementChild.setAttribute('aria-hidden', '' + value);
1981
+ }
1972
1982
  if (this.overflowMode === 'Popup' && this.tbObj) {
1973
1983
  this.tbObj.refreshOverflow();
1974
1984
  }
@@ -2389,6 +2399,9 @@ var Tab = /** @class */ (function (_super) {
2389
2399
  __decorate([
2390
2400
  Property(false)
2391
2401
  ], Tab.prototype, "allowDragAndDrop", void 0);
2402
+ __decorate([
2403
+ Property(true)
2404
+ ], Tab.prototype, "clearTemplates", void 0);
2392
2405
  __decorate([
2393
2406
  Complex({}, TabAnimationSettings)
2394
2407
  ], Tab.prototype, "animation", void 0);
@@ -235,6 +235,8 @@ export interface ToolbarModel extends ComponentModel{
235
235
  * * Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
236
236
  * * If the popup content overflows the height of the page, the rest of the elements will be hidden.
237
237
  *
238
+ * {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
239
+ *
238
240
  * @default null
239
241
  */
240
242
  scrollStep?: number;
@@ -304,6 +304,8 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
304
304
  * * Extended - Hide the overflowing toolbar items in the next row. Show the overflowing toolbar items when you click the expand icons.
305
305
  * * If the popup content overflows the height of the page, the rest of the elements will be hidden.
306
306
  *
307
+ * {% codeBlock src='toolbar/scrollStep/index.md' %}{% endcodeBlock %}
308
+ *
307
309
  * @default null
308
310
  */
309
311
  scrollStep: number;
@@ -502,6 +504,7 @@ export declare class Toolbar extends Component<HTMLElement> implements INotifyPr
502
504
  private orientationChange;
503
505
  private extendedOpen;
504
506
  private updateHideEleTabIndex;
507
+ private clearToolbarTemplate;
505
508
  /**
506
509
  * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
507
510
  *
@@ -683,10 +683,16 @@ var Toolbar = /** @class */ (function (_super) {
683
683
  * @returns {void}
684
684
  */
685
685
  Toolbar.prototype.render = function () {
686
+ var _this = this;
686
687
  this.initialize();
687
688
  this.renderControl();
688
689
  this.wireEvents();
689
690
  this.renderComplete();
691
+ if (this.isReact && this.portals && this.portals.length > 0) {
692
+ this.renderReactTemplates(function () {
693
+ _this.refreshOverflow();
694
+ });
695
+ }
690
696
  };
691
697
  Toolbar.prototype.initialize = function () {
692
698
  var width = formatUnit(this.width);
@@ -1814,7 +1820,7 @@ var Toolbar = /** @class */ (function (_super) {
1814
1820
  this.tbarAlgEle[(this.items[parseInt(eleIdx.toString(), 10)].align + 's').toLowerCase()].splice(parseInt(indexAgn.toString(), 10), 1);
1815
1821
  }
1816
1822
  if (this.isReact) {
1817
- this.clearTemplate();
1823
+ this.clearToolbarTemplate(innerItems[parseInt(index.toString(), 10)]);
1818
1824
  }
1819
1825
  var btnItem = innerItems[parseInt(index.toString(), 10)].querySelector('.e-control.e-btn');
1820
1826
  if (!isNOU(btnItem) && !isNOU(btnItem.ej2_instances[0]) && !(btnItem.ej2_instances[0].isDestroyed)) {
@@ -1863,7 +1869,7 @@ var Toolbar = /** @class */ (function (_super) {
1863
1869
  var tempArray = void 0;
1864
1870
  if (!isNOU(templateFn)) {
1865
1871
  var toolbarTemplateID = this.element.id + index + '_template';
1866
- tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate);
1872
+ tempArray = templateFn({}, this, 'template', toolbarTemplateID, this.isStringTemplate, undefined, undefined, this.root);
1867
1873
  }
1868
1874
  if (!isNOU(tempArray) && tempArray.length > 0) {
1869
1875
  [].slice.call(tempArray).forEach(function (ele) {
@@ -1931,7 +1937,8 @@ var Toolbar = /** @class */ (function (_super) {
1931
1937
  var dom;
1932
1938
  var innerEle = this.createElement('div', { className: CLS_ITEM });
1933
1939
  var tempDom = this.createElement('div', {
1934
- innerHTML: this.enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
1940
+ innerHTML: this.enableHtmlSanitizer && !isNOU(item.tooltipText) ?
1941
+ SanitizeHtmlHelper.sanitize(item.tooltipText) : item.tooltipText
1935
1942
  });
1936
1943
  if (!this.tbarEle) {
1937
1944
  this.tbarEle = [];
@@ -2009,7 +2016,12 @@ var Toolbar = /** @class */ (function (_super) {
2009
2016
  };
2010
2017
  Toolbar.prototype.activeEleRemove = function (curEle) {
2011
2018
  if (!isNOU(this.activeEle)) {
2012
- this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
2019
+ if (!curEle.parentElement.classList.contains(CLS_TEMPLATE)) {
2020
+ this.activeEle.setAttribute('tabindex', this.getDataTabindex(this.activeEle));
2021
+ }
2022
+ else {
2023
+ this.activeEle.removeAttribute('tabindex');
2024
+ }
2013
2025
  }
2014
2026
  this.activeEle = curEle;
2015
2027
  if (this.getDataTabindex(this.activeEle) === '-1') {
@@ -2127,6 +2139,30 @@ var Toolbar = /** @class */ (function (_super) {
2127
2139
  nextEle = innerItems[++eleIndex];
2128
2140
  }
2129
2141
  };
2142
+ Toolbar.prototype.clearToolbarTemplate = function (templateEle) {
2143
+ if (this.registeredTemplate && this.registeredTemplate["" + 'template']) {
2144
+ var registeredTemplates = this.registeredTemplate;
2145
+ for (var index = 0; index < registeredTemplates["" + 'template'].length; index++) {
2146
+ var registeredItem = registeredTemplates["" + 'template'][parseInt(index.toString(), 10)].rootNodes[0];
2147
+ var closestItem = closest(registeredItem, '.' + CLS_ITEM);
2148
+ if (!isNOU(closestItem) && closestItem === templateEle) {
2149
+ this.clearTemplate(['template'], [registeredTemplates["" + 'template'][parseInt(index.toString(), 10)]]);
2150
+ break;
2151
+ }
2152
+ }
2153
+ }
2154
+ else if (this.portals && this.portals.length > 0) {
2155
+ var portals = this.portals;
2156
+ for (var index = 0; index < portals.length; index++) {
2157
+ var portalItem = portals[parseInt(index.toString(), 10)];
2158
+ var closestItem = closest(portalItem.containerInfo, '.' + CLS_ITEM);
2159
+ if (!isNOU(closestItem) && closestItem === templateEle) {
2160
+ this.clearTemplate(['template'], index);
2161
+ break;
2162
+ }
2163
+ }
2164
+ }
2165
+ };
2130
2166
  /**
2131
2167
  * Gets called when the model property changes.The data that describes the old and new values of the property that changed.
2132
2168
  *
@@ -2149,31 +2185,29 @@ var Toolbar = /** @class */ (function (_super) {
2149
2185
  var index = parseInt(Object.keys(newProp.items)[parseInt(i.toString(), 10)], 10);
2150
2186
  var property = Object.keys(newProp.items[parseInt(index.toString(), 10)])[0];
2151
2187
  var newProperty = Object(newProp.items[parseInt(index.toString(), 10)])["" + property];
2152
- if (typeof newProperty !== 'function') {
2153
- if (this.tbarAlign || property === 'align') {
2154
- this.refresh();
2155
- this.trigger('created');
2156
- break;
2157
- }
2158
- var popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
2159
- var booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
2160
- if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
2161
- --this.popupPriCount;
2162
- }
2163
- if (isNOU(this.scrollModule)) {
2164
- this.destroyMode();
2165
- }
2166
- var itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
2167
- if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
2168
- this.clearTemplate();
2169
- }
2170
- detach(itemCol[parseInt(index.toString(), 10)]);
2171
- this.tbarEle.splice(index, 1);
2172
- this.addItems([this.items[parseInt(index.toString(), 10)]], index);
2173
- this.items.splice(index, 1);
2174
- if (this.items[parseInt(index.toString(), 10)].template) {
2175
- this.tbarEle.splice(this.items.length, 1);
2176
- }
2188
+ if (this.tbarAlign || property === 'align') {
2189
+ this.refresh();
2190
+ this.trigger('created');
2191
+ break;
2192
+ }
2193
+ var popupPriCheck = property === 'showAlwaysInPopup' && !newProperty;
2194
+ var booleanCheck = property === 'overflow' && this.popupPriCount !== 0;
2195
+ if ((popupPriCheck) || (this.items[parseInt(index.toString(), 10)].showAlwaysInPopup) && booleanCheck) {
2196
+ --this.popupPriCount;
2197
+ }
2198
+ if (isNOU(this.scrollModule)) {
2199
+ this.destroyMode();
2200
+ }
2201
+ var itemCol = [].slice.call(selectAll('.' + CLS_ITEMS + ' .' + CLS_ITEM, tEle));
2202
+ if (this.isReact && this.items[parseInt(index.toString(), 10)].template) {
2203
+ this.clearToolbarTemplate(itemCol[parseInt(index.toString(), 10)]);
2204
+ }
2205
+ detach(itemCol[parseInt(index.toString(), 10)]);
2206
+ this.tbarEle.splice(index, 1);
2207
+ this.addItems([this.items[parseInt(index.toString(), 10)]], index);
2208
+ this.items.splice(index, 1);
2209
+ if (this.items[parseInt(index.toString(), 10)].template) {
2210
+ this.tbarEle.splice(this.items.length, 1);
2177
2211
  }
2178
2212
  }
2179
2213
  }
@@ -1,4 +1,4 @@
1
- import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { Property, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Complex } from '@syncfusion/ej2-base';import { Event, EventHandler, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { rippleEffect, Effect, Animation, AnimationOptions, RippleOptions, remove } from '@syncfusion/ej2-base';import { Draggable, DragEventArgs, Droppable, DropEventArgs } from '@syncfusion/ej2-base';import { getElement } from '@syncfusion/ej2-base';import { addClass, removeClass, closest, matches, detach, select, selectAll, isVisible, append } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { isNullOrUndefined as isNOU, Touch, TapEventArgs, getValue, setValue, extend, merge, attributes } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions, AriaAttributesMapping, FieldsMapping } from '@syncfusion/ej2-lists';import { createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';import { Input, InputObject } from '@syncfusion/ej2-inputs';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
1
+ import { Component, EmitType, isUndefined, Browser, compile, isNullOrUndefined, SanitizeHtmlHelper, animationMode } from '@syncfusion/ej2-base';import { Property, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, Complex } from '@syncfusion/ej2-base';import { Event, EventHandler, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { rippleEffect, Effect, Animation, AnimationOptions, RippleOptions, remove } from '@syncfusion/ej2-base';import { Draggable, DragEventArgs, Droppable, DropEventArgs } from '@syncfusion/ej2-base';import { getElement } from '@syncfusion/ej2-base';import { addClass, removeClass, closest, matches, detach, select, selectAll, isVisible, append } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { isNullOrUndefined as isNOU, Touch, TapEventArgs, getValue, setValue, extend, merge, attributes } from '@syncfusion/ej2-base';import { ListBase, ListBaseOptions, AriaAttributesMapping, FieldsMapping } from '@syncfusion/ej2-lists';import { createCheckBox, rippleMouseHandler } from '@syncfusion/ej2-buttons';import { Input, InputObject } from '@syncfusion/ej2-inputs';import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';
2
2
  import {ExpandOnSettings,SortOrder,FailureEventArgs,DataBoundEventArgs,DataSourceChangedEventArgs,DrawNodeEventArgs,NodeKeyPressEventArgs,NodeCheckEventArgs,NodeClickEventArgs,NodeExpandEventArgs,DragAndDropEventArgs,NodeEditEventArgs,NodeSelectEventArgs} from "./treeview";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -548,7 +548,7 @@ export interface TreeViewModel extends ComponentModel{
548
548
  /**
549
549
       * Event callback that is raised when the TreeView node is dragged (moved) continuously.
550
550
  *
551
-
551
+ * @deprecated
552
552
       * @event
553
553
       */
554
554
  nodeDragging?: EmitType<DragAndDropEventArgs>;
@@ -325,7 +325,7 @@ export interface NodeData {
325
325
  * Interface for Failure event arguments
326
326
  */
327
327
  export interface FailureEventArgs {
328
- /** Represents the Error object that contains information about the error that occurred. This property allows you to access details such as the error message, stack trace, error code, or any additional information associated with the error. */
328
+ /** Defines the error information. */
329
329
  error?: Error;
330
330
  }
331
331
  /**
@@ -899,7 +899,7 @@ export declare class TreeView extends Component<HTMLElement> implements INotifyP
899
899
  /**
900
900
  * Event callback that is raised when the TreeView node is dragged (moved) continuously.
901
901
  *
902
-
902
+ * @deprecated
903
903
  * @event
904
904
  */
905
905
  nodeDragging: EmitType<DragAndDropEventArgs>;