@syncfusion/ej2-navigations 20.1.47 → 20.1.51-10460

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 (417) hide show
  1. package/.eslintrc.json +243 -243
  2. package/CHANGELOG.md +1601 -1570
  3. package/README.md +194 -194
  4. package/dist/ej2-navigations.min.js +1 -0
  5. package/dist/ej2-navigations.umd.min.js +1 -10
  6. package/dist/ej2-navigations.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-navigations.es2015.js +92 -80
  8. package/dist/es6/ej2-navigations.es2015.js.map +1 -1
  9. package/dist/es6/ej2-navigations.es5.js +251 -239
  10. package/dist/es6/ej2-navigations.es5.js.map +1 -1
  11. package/dist/global/ej2-navigations.min.js +1 -10
  12. package/dist/global/ej2-navigations.min.js.map +1 -1
  13. package/dist/global/index.d.ts +0 -9
  14. package/dist/ts/accordion/accordion.ts +1545 -0
  15. package/dist/ts/breadcrumb/breadcrumb.ts +873 -0
  16. package/dist/ts/carousel/carousel.ts +1181 -0
  17. package/dist/ts/common/h-scroll.ts +477 -0
  18. package/dist/ts/common/menu-base.ts +2357 -0
  19. package/dist/ts/common/menu-scroll.ts +105 -0
  20. package/dist/ts/common/v-scroll.ts +454 -0
  21. package/{src/context-menu/context-menu.d.ts → dist/ts/context-menu/context-menu.ts} +134 -88
  22. package/dist/ts/menu/menu.ts +302 -0
  23. package/dist/ts/sidebar/sidebar.ts +874 -0
  24. package/dist/ts/tab/tab.ts +2637 -0
  25. package/dist/ts/toolbar/toolbar.ts +2378 -0
  26. package/dist/ts/treeview/treeview.ts +5768 -0
  27. package/helpers/e2e/accordionHelper.js +70 -53
  28. package/helpers/e2e/contextmenuHelper.js +52 -35
  29. package/helpers/e2e/index.js +14 -12
  30. package/helpers/e2e/menuHelper.js +52 -35
  31. package/helpers/e2e/sidebarHelper.js +109 -92
  32. package/helpers/e2e/tabHelper.js +73 -56
  33. package/helpers/e2e/toolbarHelper.js +73 -56
  34. package/helpers/e2e/treeview.js +79 -61
  35. package/license +10 -10
  36. package/package.json +164 -164
  37. package/src/accordion/accordion-model.d.ts +190 -190
  38. package/src/accordion/accordion.js +19 -19
  39. package/src/breadcrumb/breadcrumb-model.d.ts +105 -105
  40. package/src/breadcrumb/breadcrumb.js +19 -19
  41. package/src/carousel/carousel-model.d.ts +148 -148
  42. package/src/carousel/carousel.js +19 -19
  43. package/src/common/h-scroll-model.d.ts +6 -6
  44. package/src/common/h-scroll.js +23 -21
  45. package/src/common/menu-base-model.d.ts +206 -206
  46. package/src/common/menu-base.js +31 -25
  47. package/src/common/v-scroll-model.d.ts +6 -6
  48. package/src/common/v-scroll.js +19 -19
  49. package/src/context-menu/context-menu-model.d.ts +18 -18
  50. package/src/context-menu/context-menu.js +19 -19
  51. package/src/menu/menu-model.d.ts +43 -43
  52. package/src/menu/menu.js +19 -19
  53. package/src/sidebar/sidebar-model.d.ts +191 -191
  54. package/src/sidebar/sidebar.js +19 -19
  55. package/src/tab/tab-model.d.ts +291 -291
  56. package/src/tab/tab.js +21 -21
  57. package/src/toolbar/toolbar-model.d.ts +195 -195
  58. package/src/toolbar/toolbar.js +23 -19
  59. package/src/treeview/treeview-model.d.ts +411 -411
  60. package/src/treeview/treeview.js +20 -20
  61. package/styles/accordion/_bds-definition.scss +167 -0
  62. package/styles/accordion/_bigger.scss +121 -0
  63. package/styles/accordion/_bootstrap5.3-definition.scss +168 -0
  64. package/styles/accordion/_fluent2-definition.scss +167 -0
  65. package/styles/accordion/_fusionnew-definition.scss +168 -0
  66. package/styles/accordion/_material3-dark-definition.scss +1 -0
  67. package/styles/accordion/_material3-definition.scss +168 -0
  68. package/styles/accordion/fluent2.scss +4 -0
  69. package/styles/accordion/icons/_bds.scss +15 -0
  70. package/styles/accordion/icons/_bootstrap5.3.scss +15 -0
  71. package/styles/accordion/icons/_fluent2.scss +15 -0
  72. package/styles/accordion/icons/_fusionnew.scss +15 -0
  73. package/styles/accordion/icons/_material3-dark.scss +1 -0
  74. package/styles/accordion/icons/_material3.scss +15 -0
  75. package/styles/accordion/material3-dark.scss +4 -0
  76. package/styles/accordion/material3.scss +4 -0
  77. package/styles/appbar/_all.scss +2 -0
  78. package/styles/appbar/_bds-definition.scss +25 -0
  79. package/styles/appbar/_bigger.scss +15 -0
  80. package/styles/appbar/_bootstrap-dark-definition.scss +6 -0
  81. package/styles/appbar/_bootstrap-definition.scss +6 -0
  82. package/styles/appbar/_bootstrap4-definition.scss +6 -0
  83. package/styles/appbar/_bootstrap5-definition.scss +6 -0
  84. package/styles/appbar/_bootstrap5.3-definition.scss +6 -0
  85. package/styles/appbar/_fabric-dark-definition.scss +6 -0
  86. package/styles/appbar/_fabric-definition.scss +6 -0
  87. package/styles/appbar/_fluent-definition.scss +6 -0
  88. package/styles/appbar/_fluent2-definition.scss +24 -0
  89. package/styles/appbar/_fusionnew-definition.scss +6 -0
  90. package/styles/appbar/_highcontrast-definition.scss +6 -0
  91. package/styles/appbar/_highcontrast-light-definition.scss +6 -0
  92. package/styles/appbar/_layout.scss +76 -0
  93. package/styles/appbar/_material-dark-definition.scss +6 -0
  94. package/styles/appbar/_material-definition.scss +6 -0
  95. package/styles/appbar/_material3-definition.scss +6 -0
  96. package/styles/appbar/_tailwind-definition.scss +6 -0
  97. package/styles/appbar/_theme.scss +216 -0
  98. package/styles/bootstrap-dark.css +1 -1
  99. package/styles/bootstrap.css +1 -1
  100. package/styles/bootstrap4.css +1 -1
  101. package/styles/bootstrap5-dark.css +1 -1
  102. package/styles/bootstrap5.css +1 -1
  103. package/styles/breadcrumb/_bds-definition.scss +60 -0
  104. package/styles/breadcrumb/_bigger.scss +160 -0
  105. package/styles/breadcrumb/_bootstrap5.3-definition.scss +61 -0
  106. package/styles/breadcrumb/_fluent2-definition.scss +61 -0
  107. package/styles/breadcrumb/_fusionnew-definition.scss +59 -0
  108. package/styles/breadcrumb/_layout.scss +1 -1
  109. package/styles/breadcrumb/_material3-dark-definition.scss +1 -0
  110. package/styles/breadcrumb/_material3-definition.scss +60 -0
  111. package/styles/breadcrumb/_tailwind-dark-definition.scss +1 -60
  112. package/styles/breadcrumb/_tailwind-definition.scss +3 -3
  113. package/styles/breadcrumb/bootstrap-dark.css +1 -1
  114. package/styles/breadcrumb/bootstrap.css +1 -1
  115. package/styles/breadcrumb/bootstrap4.css +1 -1
  116. package/styles/breadcrumb/bootstrap5-dark.css +1 -1
  117. package/styles/breadcrumb/bootstrap5.css +1 -1
  118. package/styles/breadcrumb/fabric-dark.css +1 -1
  119. package/styles/breadcrumb/fabric.css +1 -1
  120. package/styles/breadcrumb/fluent-dark.css +1 -1
  121. package/styles/breadcrumb/fluent.css +1 -1
  122. package/styles/breadcrumb/fluent2.scss +4 -0
  123. package/styles/breadcrumb/highcontrast-light.css +1 -1
  124. package/styles/breadcrumb/highcontrast.css +1 -1
  125. package/styles/breadcrumb/icons/_bds.scss +23 -0
  126. package/styles/breadcrumb/icons/_bootstrap5.3.scss +23 -0
  127. package/styles/breadcrumb/icons/_fluent2.scss +23 -0
  128. package/styles/breadcrumb/icons/_fusionnew.scss +23 -0
  129. package/styles/breadcrumb/icons/_material3-dark.scss +1 -0
  130. package/styles/breadcrumb/icons/_material3.scss +12 -0
  131. package/styles/breadcrumb/material-dark.css +1 -1
  132. package/styles/breadcrumb/material.css +1 -1
  133. package/styles/breadcrumb/material3-dark.scss +4 -0
  134. package/styles/breadcrumb/material3.scss +4 -0
  135. package/styles/breadcrumb/tailwind-dark.css +8 -8
  136. package/styles/breadcrumb/tailwind.css +8 -8
  137. package/styles/carousel/_bds-definition.scss +20 -0
  138. package/styles/carousel/_bootstrap5.3-definition.scss +20 -0
  139. package/styles/carousel/_fluent2-definition.scss +23 -0
  140. package/styles/carousel/_fusionnew-definition.scss +20 -0
  141. package/styles/carousel/_material3-dark-definition.scss +1 -0
  142. package/styles/carousel/_material3-definition.scss +21 -0
  143. package/styles/carousel/fluent2.scss +4 -0
  144. package/styles/carousel/icons/_bds.scss +30 -0
  145. package/styles/carousel/icons/_bootstrap5.3.scss +30 -0
  146. package/styles/carousel/icons/_fluent2.scss +30 -0
  147. package/styles/carousel/icons/_fusionnew.scss +30 -0
  148. package/styles/carousel/icons/_material3-dark.scss +1 -0
  149. package/styles/carousel/icons/_material3.scss +30 -0
  150. package/styles/carousel/material3-dark.scss +4 -0
  151. package/styles/carousel/material3.scss +4 -0
  152. package/styles/context-menu/_bds-definition.scss +68 -0
  153. package/styles/context-menu/_bigger.scss +96 -0
  154. package/styles/context-menu/_bootstrap5.3-definition.scss +52 -0
  155. package/styles/context-menu/_fluent2-definition.scss +52 -0
  156. package/styles/context-menu/_fusionnew-definition.scss +51 -0
  157. package/styles/context-menu/_material3-dark-definition.scss +1 -0
  158. package/styles/context-menu/_material3-definition.scss +51 -0
  159. package/styles/context-menu/fluent2.scss +4 -0
  160. package/styles/context-menu/icons/_bds.scss +31 -0
  161. package/styles/context-menu/icons/_bootstrap5.3.scss +31 -0
  162. package/styles/context-menu/icons/_fluent2.scss +31 -0
  163. package/styles/context-menu/icons/_fusionnew.scss +31 -0
  164. package/styles/context-menu/icons/_material3-dark.scss +1 -0
  165. package/styles/context-menu/icons/_material3.scss +31 -0
  166. package/styles/context-menu/material3-dark.scss +4 -0
  167. package/styles/context-menu/material3.scss +4 -0
  168. package/styles/fabric-dark.css +1 -1
  169. package/styles/fabric.css +1 -1
  170. package/styles/fluent-dark.css +1 -1
  171. package/styles/fluent.css +1 -1
  172. package/styles/fluent2.scss +34 -0
  173. package/styles/h-scroll/_bds-definition.scss +83 -0
  174. package/styles/h-scroll/_bigger.scss +39 -0
  175. package/styles/h-scroll/_bootstrap5.3-definition.scss +83 -0
  176. package/styles/h-scroll/_fluent2-definition.scss +83 -0
  177. package/styles/h-scroll/_fusionnew-definition.scss +83 -0
  178. package/styles/h-scroll/_material3-dark-definition.scss +1 -0
  179. package/styles/h-scroll/_material3-definition.scss +83 -0
  180. package/styles/h-scroll/fluent2.scss +4 -0
  181. package/styles/h-scroll/icons/_bds.scss +49 -0
  182. package/styles/h-scroll/icons/_bootstrap5.3.scss +49 -0
  183. package/styles/h-scroll/icons/_fluent2.scss +49 -0
  184. package/styles/h-scroll/icons/_fusionnew.scss +49 -0
  185. package/styles/h-scroll/icons/_material3-dark.scss +1 -0
  186. package/styles/h-scroll/icons/_material3.scss +49 -0
  187. package/styles/h-scroll/material3-dark.scss +4 -0
  188. package/styles/h-scroll/material3.scss +4 -0
  189. package/styles/highcontrast-light.css +1 -1
  190. package/styles/highcontrast.css +1 -1
  191. package/styles/material-dark.css +1 -1
  192. package/styles/material.css +1 -1
  193. package/styles/material3-dark.scss +34 -0
  194. package/styles/material3.scss +34 -0
  195. package/styles/menu/_bds-definition.scss +65 -0
  196. package/styles/menu/_bigger.scss +355 -0
  197. package/styles/menu/_bootstrap5.3-definition.scss +66 -0
  198. package/styles/menu/_fluent2-definition.scss +67 -0
  199. package/styles/menu/_fusionnew-definition.scss +66 -0
  200. package/styles/menu/_material3-dark-definition.scss +1 -0
  201. package/styles/menu/_material3-definition.scss +66 -0
  202. package/styles/menu/fluent2.scss +7 -0
  203. package/styles/menu/icons/_bds.scss +104 -0
  204. package/styles/menu/icons/_bootstrap5.3.scss +104 -0
  205. package/styles/menu/icons/_fluent2.scss +104 -0
  206. package/styles/menu/icons/_fusionnew.scss +104 -0
  207. package/styles/menu/icons/_material3-dark.scss +1 -0
  208. package/styles/menu/icons/_material3.scss +104 -0
  209. package/styles/menu/material3-dark.scss +7 -0
  210. package/styles/menu/material3.scss +7 -0
  211. package/styles/pager/_all.scss +2 -0
  212. package/styles/pager/_bds-definition.scss +152 -0
  213. package/styles/pager/_bigger.scss +311 -0
  214. package/styles/pager/_bootstrap-dark-definition.scss +151 -0
  215. package/styles/pager/_bootstrap-definition.scss +151 -0
  216. package/styles/pager/_bootstrap4-definition.scss +151 -0
  217. package/styles/pager/_bootstrap5-definition.scss +166 -0
  218. package/styles/pager/_bootstrap5.3-definition.scss +166 -0
  219. package/styles/pager/_fabric-dark-definition.scss +149 -0
  220. package/styles/pager/_fabric-definition.scss +149 -0
  221. package/styles/pager/_fluent-definition.scss +153 -0
  222. package/styles/pager/_fluent2-definition.scss +152 -0
  223. package/styles/pager/_fusionnew-definition.scss +166 -0
  224. package/styles/pager/_highcontrast-definition.scss +149 -0
  225. package/styles/pager/_highcontrast-light-definition.scss +149 -0
  226. package/styles/pager/_layout.scss +742 -0
  227. package/styles/pager/_material-dark-definition.scss +150 -0
  228. package/styles/pager/_material-definition.scss +150 -0
  229. package/styles/pager/_material3-definition.scss +166 -0
  230. package/styles/pager/_tailwind-definition.scss +152 -0
  231. package/styles/pager/_theme.scss +189 -0
  232. package/styles/pager/icons/_bds.scss +50 -0
  233. package/styles/pager/icons/_bootstrap-dark.scss +50 -0
  234. package/styles/pager/icons/_bootstrap.scss +50 -0
  235. package/styles/pager/icons/_bootstrap4.scss +50 -0
  236. package/styles/pager/icons/_bootstrap5.3.scss +50 -0
  237. package/styles/pager/icons/_bootstrap5.scss +50 -0
  238. package/styles/pager/icons/_fabric-dark.scss +50 -0
  239. package/styles/pager/icons/_fabric.scss +50 -0
  240. package/styles/pager/icons/_fluent.scss +50 -0
  241. package/styles/pager/icons/_fluent2.scss +50 -0
  242. package/styles/pager/icons/_fusionnew.scss +50 -0
  243. package/styles/pager/icons/_highcontrast-light.scss +50 -0
  244. package/styles/pager/icons/_highcontrast.scss +46 -0
  245. package/styles/pager/icons/_material-dark.scss +50 -0
  246. package/styles/pager/icons/_material.scss +46 -0
  247. package/styles/pager/icons/_material3.scss +50 -0
  248. package/styles/pager/icons/_tailwind.scss +50 -0
  249. package/styles/sidebar/_bds-definition.scss +53 -0
  250. package/styles/sidebar/_bootstrap5.3-definition.scss +6 -0
  251. package/styles/sidebar/_fluent2-definition.scss +8 -0
  252. package/styles/sidebar/_fusionnew-definition.scss +6 -0
  253. package/styles/sidebar/_material3-dark-definition.scss +1 -0
  254. package/styles/sidebar/_material3-definition.scss +4 -0
  255. package/styles/sidebar/fluent2.scss +3 -0
  256. package/styles/sidebar/material3-dark.scss +3 -0
  257. package/styles/sidebar/material3.scss +3 -0
  258. package/styles/stepper/_all.scss +2 -0
  259. package/styles/stepper/_bds-definition.scss +72 -0
  260. package/styles/stepper/_bigger.scss +53 -0
  261. package/styles/stepper/_bootstrap-dark-definition.scss +72 -0
  262. package/styles/stepper/_bootstrap-definition.scss +72 -0
  263. package/styles/stepper/_bootstrap4-definition.scss +72 -0
  264. package/styles/stepper/_bootstrap5-definition.scss +73 -0
  265. package/styles/stepper/_bootstrap5.3-definition.scss +72 -0
  266. package/styles/stepper/_fabric-dark-definition.scss +72 -0
  267. package/styles/stepper/_fabric-definition.scss +72 -0
  268. package/styles/stepper/_fluent-definition.scss +72 -0
  269. package/styles/stepper/_fluent2-definition.scss +72 -0
  270. package/styles/stepper/_fusionnew-definition.scss +72 -0
  271. package/styles/stepper/_highcontrast-definition.scss +72 -0
  272. package/styles/stepper/_highcontrast-light-definition.scss +72 -0
  273. package/styles/stepper/_layout.scss +431 -0
  274. package/styles/stepper/_material-dark-definition.scss +72 -0
  275. package/styles/stepper/_material-definition.scss +72 -0
  276. package/styles/stepper/_material3-definition.scss +72 -0
  277. package/styles/stepper/_tailwind-definition.scss +72 -0
  278. package/styles/stepper/_theme.scss +195 -0
  279. package/styles/stepper/icons/_bds.scss +5 -0
  280. package/styles/stepper/icons/_bootstrap-dark.scss +5 -0
  281. package/styles/stepper/icons/_bootstrap.scss +5 -0
  282. package/styles/stepper/icons/_bootstrap4.scss +5 -0
  283. package/styles/stepper/icons/_bootstrap5.3.scss +5 -0
  284. package/styles/stepper/icons/_bootstrap5.scss +5 -0
  285. package/styles/stepper/icons/_fabric-dark.scss +5 -0
  286. package/styles/stepper/icons/_fabric.scss +5 -0
  287. package/styles/stepper/icons/_fluent.scss +5 -0
  288. package/styles/stepper/icons/_fluent2.scss +5 -0
  289. package/styles/stepper/icons/_fusionnew.scss +5 -0
  290. package/styles/stepper/icons/_highcontrast-light.scss +5 -0
  291. package/styles/stepper/icons/_highcontrast.scss +5 -0
  292. package/styles/stepper/icons/_material-dark.scss +5 -0
  293. package/styles/stepper/icons/_material.scss +5 -0
  294. package/styles/stepper/icons/_material3.scss +5 -0
  295. package/styles/stepper/icons/_tailwind.scss +5 -0
  296. package/styles/tab/_bds-definition.scss +661 -0
  297. package/styles/tab/_bigger.scss +1270 -0
  298. package/styles/tab/_bootstrap5.3-definition.scss +636 -0
  299. package/styles/tab/_fluent2-definition.scss +667 -0
  300. package/styles/tab/_fusionnew-definition.scss +634 -0
  301. package/styles/tab/_material3-dark-definition.scss +1 -0
  302. package/styles/tab/_material3-definition.scss +636 -0
  303. package/styles/tab/fluent2.scss +5 -0
  304. package/styles/tab/icons/_bds.scss +90 -0
  305. package/styles/tab/icons/_bootstrap5.3.scss +90 -0
  306. package/styles/tab/icons/_fluent2.scss +98 -0
  307. package/styles/tab/icons/_fusionnew.scss +90 -0
  308. package/styles/tab/icons/_material3-dark.scss +1 -0
  309. package/styles/tab/icons/_material3.scss +90 -0
  310. package/styles/tab/material3-dark.scss +5 -0
  311. package/styles/tab/material3.scss +5 -0
  312. package/styles/tailwind-dark.css +8 -8
  313. package/styles/tailwind.css +8 -8
  314. package/styles/toolbar/_bds-definition.scss +197 -0
  315. package/styles/toolbar/_bigger.scss +309 -0
  316. package/styles/toolbar/_bootstrap5.3-definition.scss +198 -0
  317. package/styles/toolbar/_fluent2-definition.scss +198 -0
  318. package/styles/toolbar/_fusionnew-definition.scss +198 -0
  319. package/styles/toolbar/_material3-dark-definition.scss +1 -0
  320. package/styles/toolbar/_material3-definition.scss +199 -0
  321. package/styles/toolbar/fluent2.scss +6 -0
  322. package/styles/toolbar/icons/_bds.scss +14 -0
  323. package/styles/toolbar/icons/_bootstrap5.3.scss +14 -0
  324. package/styles/toolbar/icons/_fluent2.scss +14 -0
  325. package/styles/toolbar/icons/_fusionnew.scss +14 -0
  326. package/styles/toolbar/icons/_material3-dark.scss +1 -0
  327. package/styles/toolbar/icons/_material3.scss +14 -0
  328. package/styles/toolbar/material3-dark.scss +6 -0
  329. package/styles/toolbar/material3.scss +6 -0
  330. package/styles/treeview/_bds-definition.scss +132 -0
  331. package/styles/treeview/_bigger.scss +393 -0
  332. package/styles/treeview/_bootstrap5.3-definition.scss +119 -0
  333. package/styles/treeview/_fluent2-definition.scss +128 -0
  334. package/styles/treeview/_fusionnew-definition.scss +120 -0
  335. package/styles/treeview/_material3-dark-definition.scss +1 -0
  336. package/styles/treeview/_material3-definition.scss +110 -0
  337. package/styles/treeview/fluent2.scss +4 -0
  338. package/styles/treeview/icons/_bds.scss +44 -0
  339. package/styles/treeview/icons/_bootstrap5.3.scss +44 -0
  340. package/styles/treeview/icons/_fluent2.scss +44 -0
  341. package/styles/treeview/icons/_fusionnew.scss +44 -0
  342. package/styles/treeview/icons/_material3-dark.scss +1 -0
  343. package/styles/treeview/icons/_material3.scss +44 -0
  344. package/styles/treeview/material3-dark.scss +4 -0
  345. package/styles/treeview/material3.scss +4 -0
  346. package/styles/v-scroll/_bds-definition.scss +49 -0
  347. package/styles/v-scroll/_bigger.scss +28 -0
  348. package/styles/v-scroll/_bootstrap5.3-definition.scss +49 -0
  349. package/styles/v-scroll/_fluent2-definition.scss +49 -0
  350. package/styles/v-scroll/_fusionnew-definition.scss +49 -0
  351. package/styles/v-scroll/_material3-dark-definition.scss +1 -0
  352. package/styles/v-scroll/_material3-definition.scss +49 -0
  353. package/styles/v-scroll/fluent2.scss +4 -0
  354. package/styles/v-scroll/icons/_bds.scss +27 -0
  355. package/styles/v-scroll/icons/_bootstrap5.3.scss +27 -0
  356. package/styles/v-scroll/icons/_fluent2.scss +27 -0
  357. package/styles/v-scroll/icons/_fusionnew.scss +27 -0
  358. package/styles/v-scroll/icons/_material3-dark.scss +1 -0
  359. package/styles/v-scroll/icons/_material3.scss +27 -0
  360. package/styles/v-scroll/material3-dark.scss +4 -0
  361. package/styles/v-scroll/material3.scss +4 -0
  362. package/tslint.json +111 -111
  363. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -63
  364. package/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -39
  365. package/accordion.d.ts +0 -4
  366. package/accordion.js +0 -4
  367. package/breadcrumb.d.ts +0 -4
  368. package/breadcrumb.js +0 -4
  369. package/carousel.d.ts +0 -4
  370. package/carousel.js +0 -4
  371. package/common.d.ts +0 -4
  372. package/common.js +0 -4
  373. package/context-menu.d.ts +0 -4
  374. package/context-menu.js +0 -4
  375. package/helpers/e2e/accordionHelper.d.ts +0 -56
  376. package/helpers/e2e/contextmenuHelper.d.ts +0 -37
  377. package/helpers/e2e/index.d.ts +0 -7
  378. package/helpers/e2e/menuHelper.d.ts +0 -37
  379. package/helpers/e2e/sidebarHelper.d.ts +0 -94
  380. package/helpers/e2e/tabHelper.d.ts +0 -60
  381. package/helpers/e2e/toolbarHelper.d.ts +0 -60
  382. package/helpers/e2e/treeview.d.ts +0 -50
  383. package/index.d.ts +0 -4
  384. package/index.js +0 -4
  385. package/menu.d.ts +0 -4
  386. package/menu.js +0 -4
  387. package/sidebar.d.ts +0 -4
  388. package/sidebar.js +0 -4
  389. package/src/accordion/accordion.d.ts +0 -440
  390. package/src/accordion/index.d.ts +0 -5
  391. package/src/breadcrumb/breadcrumb.d.ts +0 -255
  392. package/src/breadcrumb/index.d.ts +0 -5
  393. package/src/carousel/carousel.d.ts +0 -338
  394. package/src/carousel/index.d.ts +0 -3
  395. package/src/common/h-scroll.d.ts +0 -105
  396. package/src/common/index.d.ts +0 -9
  397. package/src/common/menu-base.d.ts +0 -526
  398. package/src/common/menu-scroll.d.ts +0 -29
  399. package/src/common/v-scroll.d.ts +0 -106
  400. package/src/context-menu/index.d.ts +0 -5
  401. package/src/index.d.ts +0 -13
  402. package/src/menu/index.d.ts +0 -5
  403. package/src/menu/menu.d.ts +0 -121
  404. package/src/sidebar/index.d.ts +0 -5
  405. package/src/sidebar/sidebar.d.ts +0 -321
  406. package/src/tab/index.d.ts +0 -5
  407. package/src/tab/tab.d.ts +0 -650
  408. package/src/toolbar/index.d.ts +0 -5
  409. package/src/toolbar/toolbar.d.ts +0 -470
  410. package/src/treeview/index.d.ts +0 -5
  411. package/src/treeview/treeview.d.ts +0 -1256
  412. package/tab.d.ts +0 -4
  413. package/tab.js +0 -4
  414. package/toolbar.d.ts +0 -4
  415. package/toolbar.js +0 -4
  416. package/treeview.d.ts +0 -4
  417. package/treeview.js +0 -4
@@ -1,1256 +0,0 @@
1
- import { Component, EmitType } from '@syncfusion/ej2-base';
2
- import { INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base';
3
- import { KeyboardEventArgs } from '@syncfusion/ej2-base';
4
- import { Effect } from '@syncfusion/ej2-base';
5
- import { DataManager, Query } from '@syncfusion/ej2-data';
6
- import { TapEventArgs } from '@syncfusion/ej2-base';
7
- import { TreeViewModel, FieldsSettingsModel, NodeAnimationSettingsModel, ActionSettingsModel } from './treeview-model';
8
- /**
9
- * Interface for NodeExpand event arguments.
10
- */
11
- export interface NodeExpandEventArgs {
12
- /**
13
- * If you want to cancel this event then, set cancel as true. Otherwise, false.
14
- */
15
- cancel: boolean;
16
- /**
17
- * If the event is triggered by interaction, it returns true. Otherwise, it returns false.
18
- */
19
- isInteracted: boolean;
20
- /**
21
- * Return the expanded/collapsed TreeView node.
22
- */
23
- node: HTMLLIElement;
24
- /**
25
- *
26
- * Return the expanded/collapsed node as JSON object from data source.
27
- *
28
- *
29
- */
30
- nodeData: {
31
- [key: string]: Object;
32
- };
33
- event: MouseEvent | KeyboardEventArgs | TapEventArgs;
34
- }
35
- /**
36
- * Interface for NodeSelect event arguments.
37
- */
38
- export interface NodeSelectEventArgs {
39
- /**
40
- * Return the name of action like select or un-select.
41
- */
42
- action: string;
43
- /**
44
- * If you want to cancel this event then, set cancel as true. Otherwise, false.
45
- */
46
- cancel: boolean;
47
- /**
48
- * If the event is triggered by interaction, it returns true. Otherwise, it returns false.
49
- */
50
- isInteracted: boolean;
51
- /**
52
- * Return the currently selected TreeView node.
53
- */
54
- node: HTMLLIElement;
55
- /**
56
- * Return the currently selected node as JSON object from data source.
57
- *
58
- */
59
- nodeData: {
60
- [key: string]: Object;
61
- };
62
- }
63
- /**
64
- * Interface for NodeCheck event arguments.
65
- */
66
- export interface NodeCheckEventArgs {
67
- /**
68
- * Return the name of action like check or un-check.
69
- */
70
- action: string;
71
- /**
72
- * If you want to cancel this event then, set cancel as true. Otherwise, false.
73
- */
74
- cancel: boolean;
75
- /**
76
- * If the event is triggered by interaction, it returns true. Otherwise, it returns false.
77
- */
78
- isInteracted: boolean;
79
- /**
80
- * Return the currently checked TreeView node.
81
- */
82
- node: HTMLLIElement;
83
- /**
84
- * Return the currently checked node as JSON object from data source.
85
- *
86
- */
87
- data: {
88
- [key: string]: Object;
89
- }[];
90
- }
91
- /**
92
- * Interface for NodeEdit event arguments.
93
- */
94
- export interface NodeEditEventArgs {
95
- /**
96
- * If you want to cancel this event then, set cancel as true. Otherwise, false.
97
- */
98
- cancel: boolean;
99
- /**
100
- * Return the current TreeView node new text.
101
- */
102
- newText: string;
103
- /**
104
- * Return the current TreeView node.
105
- */
106
- node: HTMLLIElement;
107
- /**
108
- * Return the current node as JSON object from data source.
109
- *
110
- */
111
- nodeData: {
112
- [key: string]: Object;
113
- };
114
- /**
115
- * Return the current TreeView node old text.
116
- */
117
- oldText: string;
118
- /**
119
- * Gets or sets the inner HTML of TreeView node while editing.
120
- */
121
- innerHtml: string;
122
- }
123
- /**
124
- * Interface for DragAndDrop event arguments.
125
- */
126
- export interface DragAndDropEventArgs {
127
- /**
128
- * If you want to cancel this event then, set cancel as true. Otherwise, false.
129
- */
130
- cancel: boolean;
131
- /**
132
- * Return the cloned element
133
- */
134
- clonedNode: HTMLElement;
135
- /**
136
- * Return the actual event.
137
- */
138
- event: MouseEvent & TouchEvent;
139
- /**
140
- * Return the currently dragged TreeView node.
141
- */
142
- draggedNode: HTMLLIElement;
143
- /**
144
- * Return the currently dragged node as array of JSON object from data source.
145
- *
146
- */
147
- draggedNodeData: {
148
- [key: string]: Object;
149
- };
150
- /**
151
- * Returns the dragged/dropped element's target index position
152
- *
153
- */
154
- dropIndex: number;
155
- /**
156
- * Returns the dragged/dropped element's target level
157
- *
158
- */
159
- dropLevel: number;
160
- /**
161
- * Return the dragged element's source parent
162
- */
163
- draggedParentNode: Element;
164
- /**
165
- * Return the dragged element's destination parent
166
- */
167
- dropTarget: Element;
168
- /**
169
- * Return the cloned element's drop status icon while dragging
170
- */
171
- dropIndicator: string;
172
- /**
173
- * Return the dropped TreeView node.
174
- */
175
- droppedNode: HTMLLIElement;
176
- /**
177
- * Return the dropped node as array of JSON object from data source.
178
- *
179
- */
180
- droppedNodeData: {
181
- [key: string]: Object;
182
- };
183
- /**
184
- * Return the target element from which drag starts/end.
185
- */
186
- target: HTMLElement;
187
- /**
188
- * Return boolean value for preventing auto-expanding of parent node.
189
- */
190
- preventTargetExpand?: boolean;
191
- /**
192
- * Denotes the cloned element's drop position relative to the dropped node while dragging. The available values are,
193
- * 1. Inside – Denotes that the cloned element will be appended as the child node of the dropped node.
194
- * 2. Before - Denotes that the cloned element will be appended before the dropped node.
195
- * 3. After - Denotes that the cloned element will be appended after the dropped node.
196
- */
197
- position: string;
198
- }
199
- /**
200
- * Interface for DrawNode event arguments.
201
- */
202
- export interface DrawNodeEventArgs {
203
- /**
204
- * Return the current rendering node.
205
- */
206
- node: HTMLLIElement;
207
- /**
208
- * Return the current rendering node as JSON object.
209
- *
210
- * @isGenericType true
211
- */
212
- nodeData: {
213
- [key: string]: Object;
214
- };
215
- /**
216
- * Return the current rendering node text.
217
- */
218
- text: string;
219
- }
220
- /**
221
- * Interface for NodeClick event arguments.
222
- */
223
- export interface NodeClickEventArgs {
224
- /**
225
- * Return the actual event.
226
- */
227
- event: MouseEvent;
228
- /**
229
- * Return the current clicked TreeView node.
230
- */
231
- node: HTMLLIElement;
232
- }
233
- /**
234
- * Interface for NodeKeyPress event arguments.
235
- */
236
- export interface NodeKeyPressEventArgs {
237
- /**
238
- * If you want to cancel this event then, set cancel as true. Otherwise, false.
239
- */
240
- cancel: boolean;
241
- /**
242
- * Return the actual event.
243
- *
244
- */
245
- event: KeyboardEventArgs;
246
- /**
247
- * Return the current active TreeView node.
248
- */
249
- node: HTMLLIElement;
250
- }
251
- /**
252
- * Interface for DataBound event arguments.
253
- */
254
- export interface DataBoundEventArgs {
255
- /**
256
- * Return the TreeView data.
257
- *
258
- * @isGenericType true
259
- */
260
- data: {
261
- [key: string]: Object;
262
- }[];
263
- }
264
- /**
265
- * Interface for DataSourceChanged event arguments.
266
- */
267
- export interface DataSourceChangedEventArgs {
268
- /**
269
- * Return the updated TreeView data. The data source will be updated after performing some operation like
270
- * drag and drop, node editing, adding and removing node. If you want to get updated data source after performing operation like
271
- * selecting/unSelecting, checking/unChecking, expanding/collapsing the node, then you can use getTreeData method.
272
- *
273
- * @isGenericType true
274
- */
275
- data: {
276
- [key: string]: Object;
277
- }[];
278
- }
279
- /**
280
- * Interface that holds the node details.
281
- */
282
- export interface NodeData {
283
- /**
284
- * Specifies the ID field mapped in dataSource.
285
- */
286
- id: string;
287
- /**
288
- * Specifies the mapping field for text displayed as TreeView node's display text.
289
- */
290
- text: string;
291
- /**
292
- * Specifies the parent ID field mapped in dataSource.
293
- */
294
- parentID: string;
295
- /**
296
- * Specifies the mapping field for selected state of the TreeView node.
297
- */
298
- selected: boolean;
299
- /**
300
- * Specifies the mapping field for expand state of the TreeView node.
301
- */
302
- expanded: boolean;
303
- /**
304
- * Specifies the field for checked state of the TreeView node.
305
- */
306
- isChecked: string;
307
- /**
308
- * Specifies the mapping field for hasChildren to check whether a node has child nodes or not.
309
- */
310
- hasChildren: boolean;
311
- }
312
- /**
313
- * Interface for Failure event arguments
314
- */
315
- export interface FailureEventArgs {
316
- /** Defines the error information. */
317
- error?: Error;
318
- }
319
- /**
320
- * Configures the fields to bind to the properties of node in the TreeView component.
321
- */
322
- export declare class FieldsSettings extends ChildProperty<FieldsSettings> {
323
- /**
324
- * Binds the field settings for child nodes or mapping field for nested nodes objects that contain array of JSON objects.
325
- */
326
- child: string | FieldsSettingsModel;
327
- /**
328
- * Specifies the array of JavaScript objects or instance of DataManager to populate the nodes.
329
- *
330
- * @default []
331
- * @aspDatasourceNullIgnore
332
- * @isGenericType true
333
- */
334
- dataSource: DataManager | {
335
- [key: string]: Object;
336
- }[];
337
- /**
338
- * Specifies the mapping field for expand state of the TreeView node.
339
- */
340
- expanded: string;
341
- /**
342
- * Specifies the mapping field for hasChildren to check whether a node has child nodes or not.
343
- */
344
- hasChildren: string;
345
- /**
346
- * Specifies the mapping field for htmlAttributes to be added to the TreeView node.
347
- */
348
- htmlAttributes: string;
349
- /**
350
- * Specifies the mapping field for icon class of each TreeView node that will be added before the text.
351
- */
352
- iconCss: string;
353
- /**
354
- * Specifies the ID field mapped in dataSource.
355
- */
356
- id: string;
357
- /**
358
- * Specifies the mapping field for image URL of each TreeView node where image will be added before the text.
359
- */
360
- imageUrl: string;
361
- /**
362
- * Specifies the field for checked state of the TreeView node.
363
- */
364
- isChecked: string;
365
- /**
366
- * Specifies the parent ID field mapped in dataSource.
367
- */
368
- parentID: string;
369
- /**
370
- * Defines the external [`Query`](https://ej2.syncfusion.com/documentation/api/data/query/)
371
- * that will execute along with data processing.
372
- *
373
- * @default null
374
- */
375
- query: Query;
376
- /**
377
- * Specifies the mapping field for selected state of the TreeView node.
378
- */
379
- selected: string;
380
- /**
381
- * Specifies the table name used to fetch data from a specific table in the server.
382
- */
383
- tableName: string;
384
- /**
385
- * Specifies the mapping field for text displayed as TreeView node's display text.
386
- */
387
- text: string;
388
- /**
389
- * Specifies the mapping field for tooltip that will be displayed as hovering text of the TreeView node.
390
- */
391
- tooltip: string;
392
- /**
393
- * Specifies the mapping field for navigateUrl to be added as hyper-link of the TreeView node.
394
- */
395
- navigateUrl: string;
396
- }
397
- /**
398
- * Defines the expand type of the TreeView node.
399
- */
400
- export declare type ExpandOnSettings = 'Auto' | 'Click' | 'DblClick' | 'None';
401
- /**
402
- * Defines the sorting order type for TreeView.
403
- */
404
- export declare type SortOrder = 'None' | 'Ascending' | 'Descending';
405
- /**
406
- * Configures animation settings for the TreeView component.
407
- */
408
- export declare class ActionSettings extends ChildProperty<ActionSettings> {
409
- /**
410
- * Specifies the type of animation.
411
- *
412
- * @default 'SlideDown'
413
- */
414
- effect: Effect;
415
- /**
416
- * Specifies the duration to animate.
417
- *
418
- * @default 400
419
- */
420
- duration: number;
421
- /**
422
- * Specifies the animation timing function.
423
- *
424
- * @default 'linear'
425
- */
426
- easing: string;
427
- }
428
- /**
429
- * Configures the animation settings for expanding and collapsing nodes in TreeView.
430
- */
431
- export declare class NodeAnimationSettings extends ChildProperty<NodeAnimationSettings> {
432
- /**
433
- * Specifies the animation that applies on collapsing the nodes.
434
- *
435
- * @default { effect: 'SlideUp', duration: 400, easing: 'linear' }
436
- */
437
- collapse: ActionSettingsModel;
438
- /**
439
- * Specifies the animation that applies on expanding the nodes.
440
- *
441
- * @default { effect: 'SlideDown', duration: 400, easing: 'linear' }
442
- */
443
- expand: ActionSettingsModel;
444
- }
445
- /**
446
- * The TreeView component is used to represent hierarchical data in a tree like structure with advanced
447
- * functions to perform edit, drag and drop, selection with check-box, and more.
448
- * ```html
449
- * <div id="tree"></div>
450
- * ```
451
- * ```typescript
452
- * let treeObj: TreeView = new TreeView();
453
- * treeObj.appendTo('#tree');
454
- * ```
455
- */
456
- export declare class TreeView extends Component<HTMLElement> implements INotifyPropertyChanged {
457
- private cloneElement;
458
- private initialRender;
459
- private treeData;
460
- private rootData;
461
- private groupedData;
462
- private ulElement;
463
- private listBaseOption;
464
- private dataType;
465
- private rippleFn;
466
- private rippleIconFn;
467
- private isNumberTypeId;
468
- private expandOnType;
469
- private keyboardModule;
470
- private liList;
471
- private aniObj;
472
- private treeList;
473
- private isLoaded;
474
- private expandArgs;
475
- private oldText;
476
- private dragObj;
477
- private dropObj;
478
- private dragTarget;
479
- private dragLi;
480
- private dragData;
481
- private startNode;
482
- private nodeTemplateFn;
483
- private currentLoadData;
484
- private checkActionNodes;
485
- private touchEditObj;
486
- private touchClickObj;
487
- private dragStartAction;
488
- private touchExpandObj;
489
- private inputObj;
490
- private isAnimate;
491
- private spinnerElement;
492
- private touchClass;
493
- private editData;
494
- private editFields;
495
- private refreshData;
496
- private refreshFields;
497
- private isRefreshed;
498
- private keyConfigs;
499
- private isInitalExpand;
500
- private index;
501
- private preventExpand;
502
- private hasPid;
503
- private dragParent;
504
- private checkedElement;
505
- private ele;
506
- private disableNode;
507
- private onLoaded;
508
- private parentNodeCheck;
509
- private parentCheckData;
510
- private validArr;
511
- private validNodes;
512
- private expandChildren;
513
- private isFieldChange;
514
- private changeDataSource;
515
- private isOffline;
516
- private firstTap;
517
- private hasTemplate;
518
- private isFirstRender;
519
- /**
520
- * Indicates whether the TreeView allows drag and drop of nodes. To drag and drop a node in
521
- * desktop, hold the mouse on the node, drag it to the target node and drop the node by releasing
522
- * the mouse. For touch devices, drag and drop operation is performed by touch, touch move
523
- * and touch end. For more information on drag and drop nodes concept, refer to
524
- * [Drag and Drop](../../treeview/drag-and-drop/).
525
- *
526
- * @default false
527
- */
528
- allowDragAndDrop: boolean;
529
- /**
530
- * Enables or disables editing of the text in the TreeView node. When `allowEditing` property is set
531
- * to true, the TreeView allows you to edit the node by double clicking the node or by navigating to
532
- * the node and pressing **F2** key. For more information on node editing, refer
533
- * to [Node Editing](../../treeview/node-editing/).
534
- *
535
- * @default false
536
- */
537
- allowEditing: boolean;
538
- /**
539
- * Enables or disables multi-selection of nodes. To select multiple nodes:
540
- * * Select the nodes by holding down the CTRL key while clicking on the nodes.
541
- * * Select consecutive nodes by clicking the first node to select and hold down the **SHIFT** key
542
- * and click the last node to select.
543
- *
544
- * For more information on multi-selection, refer to
545
- * [Multi-Selection](../../treeview/multiple-selection/).
546
- *
547
- * @default false
548
- */
549
- allowMultiSelection: boolean;
550
- /**
551
- * Enables or disables text wrapping when text exceeds the bounds in the TreeView node.
552
- * When the allowTextWrap property is set to true, the TreeView node text content will wrap to the next line
553
- * when it exceeds the width of the TreeView node.
554
- * The TreeView node height will be adjusted automatically based on the TreeView node content.
555
- *
556
- * @default false
557
- */
558
- allowTextWrap: boolean;
559
- /**
560
- * Specifies the type of animation applied on expanding and collapsing the nodes along with duration.
561
- *
562
- * @default {expand: { effect: 'SlideDown', duration: 400, easing: 'linear' },
563
- * collapse: { effect: 'SlideUp', duration: 400, easing: 'linear' }}
564
- */
565
- animation: NodeAnimationSettingsModel;
566
- /**
567
- * The `checkedNodes` property is used to set the nodes that need to be checked or
568
- * get the ID of nodes that are currently checked in the TreeView component.
569
- * The `checkedNodes` property depends upon the value of `showCheckBox` property.
570
- * For more information on checkedNodes, refer to
571
- * [checkedNodes](../../treeview/check-box#checked-nodes).
572
- *
573
- * @default []
574
- */
575
- checkedNodes: string[];
576
- /**
577
- * Specifies the CSS classes to be added with root element of the TreeView to help customize the appearance of the component.
578
- *
579
- * @default ''
580
- */
581
- cssClass: string;
582
- /**
583
- * Specifies a value that indicates whether the TreeView component is disabled or not.
584
- * When set to true, user interaction will not be occurred in TreeView.
585
- *
586
- * @default false
587
- */
588
- disabled: boolean;
589
- /**
590
- * Defines the area in which the draggable element movement will be occurring. Outside that area will be restricted
591
- * for the draggable element movement. By default, the draggable element movement occurs in the entire page.
592
- *
593
- * @default null
594
- */
595
- dragArea: HTMLElement | string;
596
- /**
597
- * Defines whether to allow the cross-scripting site or not.
598
- *
599
- * @default false
600
- */
601
- enableHtmlSanitizer: boolean;
602
- /**
603
- * Enables or disables persisting TreeView state between page reloads. If enabled, following APIs will persist.
604
- * 1. `selectedNodes` - Represents the nodes that are selected in the TreeView component.
605
- * 2. `checkedNodes` - Represents the nodes that are checked in the TreeView component.
606
- * 3. `expandedNodes` - Represents the nodes that are expanded in the TreeView component.
607
- *
608
- * @default false
609
- */
610
- enablePersistence: boolean;
611
- /**
612
- * Represents the expanded nodes in the TreeView component. We can set the nodes that need to be
613
- * expanded or get the ID of the nodes that are currently expanded by using this property.
614
- *
615
- * @default []
616
- */
617
- expandedNodes: string[];
618
- /**
619
- * Specifies the action on which the node expands or collapses. The available actions are,
620
- * * `Auto` - In desktop, the expand/collapse operation happens when you double-click the node, and in mobile devices it
621
- * happens on single-click.
622
- * * `Click` - The expand/collapse operation happens when you single-click the node in both desktop and mobile devices.
623
- * * `DblClick` - The expand/collapse operation happens when you double-click the node in both desktop and mobile devices.
624
- * * `None` - The expand/collapse operation will not happen when you single-click or double-click the node in both desktop
625
- * and mobile devices.
626
- *
627
- * @default 'Auto'
628
- */
629
- expandOn: ExpandOnSettings;
630
- /**
631
- * Specifies the data source and mapping fields to render TreeView nodes.
632
- *
633
- * @default {id: 'id', text: 'text', dataSource: [], child: 'child', parentID: 'parentID', hasChildren: 'hasChildren',
634
- * expanded: 'expanded', htmlAttributes: 'htmlAttributes', iconCss: 'iconCss', imageUrl: 'imageUrl', isChecked: 'isChecked',
635
- * query: null, selected: 'selected', tableName: null, tooltip: 'tooltip', navigateUrl: 'navigateUrl'}
636
- */
637
- fields: FieldsSettingsModel;
638
- /**
639
- * On enabling this property, the entire row of the TreeView node gets selected by clicking a node.
640
- * When disabled only the corresponding node's text gets selected.
641
- * For more information on Fields concept, refer to
642
- * [Fields](../../treeview/data-binding#local-data).
643
- *
644
- * @default true
645
- */
646
- fullRowSelect: boolean;
647
- /**
648
- * By default, the load on demand (Lazy load) is set to true. By disabling this property, all the tree nodes are rendered at the
649
- * beginning itself.
650
- *
651
- * @default true
652
- */
653
- loadOnDemand: boolean;
654
- /**
655
- * Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
656
- *
657
- * @private
658
- */
659
- locale: string;
660
- /**
661
- * Specifies a template to render customized content for all the nodes. If the `nodeTemplate` property
662
- * is set, the template content overrides the displayed node text. The property accepts template string
663
- * [template string](https://ej2.syncfusion.com/documentation/common/template-engine/)
664
- * or HTML element ID holding the content. For more information on template concept, refer to
665
- * [Template](../../treeview/template/).
666
- *
667
- * @default null
668
- */
669
- nodeTemplate: string;
670
- /**
671
- * Represents the selected nodes in the TreeView component. We can set the nodes that need to be
672
- * selected or get the ID of the nodes that are currently selected by using this property.
673
- * On enabling `allowMultiSelection` property we can select multiple nodes and on disabling
674
- * it we can select only a single node.
675
- * For more information on selectedNodes, refer to
676
- * [selectedNodes](../../treeview/multiple-selection#selected-nodes).
677
- *
678
- * @default []
679
- */
680
- selectedNodes: string[];
681
- /**
682
- * Specifies a value that indicates whether the nodes are sorted in the ascending or descending order,
683
- * or are not sorted at all. The available types of sort order are,
684
- * * `None` - The nodes are not sorted.
685
- * * `Ascending` - The nodes are sorted in the ascending order.
686
- * * `Descending` - The nodes are sorted in the ascending order.
687
- *
688
- * @default 'None'
689
- */
690
- sortOrder: SortOrder;
691
- /**
692
- * Indicates that the nodes will display CheckBoxes in the TreeView.
693
- * The CheckBox will be displayed next to the expand/collapse icon of the node. For more information on CheckBoxes, refer to
694
- * [CheckBox](../../treeview/check-box/).
695
- *
696
- * @default false
697
- */
698
- showCheckBox: boolean;
699
- /**
700
- * Allow us to specify the parent and child nodes to get auto check while we check or uncheck a node.
701
- *
702
- * @default true
703
- */
704
- autoCheck: boolean;
705
- /**
706
- * If this property is set to true, then the entire TreeView node will be navigate-able instead of text element.
707
- *
708
- * @default false
709
- */
710
- fullRowNavigable: boolean;
711
- /**
712
- * Triggers when any TreeView action failed to fetch the desired results.
713
- *
714
- * @event
715
- */
716
- actionFailure: EmitType<FailureEventArgs>;
717
- /**
718
- * Triggers when the TreeView control is created successfully.
719
- *
720
- * @event
721
- */
722
- created: EmitType<Object>;
723
- /**
724
- * Triggers when data source is populated in the TreeView.
725
- *
726
- * @event
727
- */
728
- dataBound: EmitType<DataBoundEventArgs>;
729
- /**
730
- * Triggers when data source is changed in the TreeView. The data source will be changed after performing some operation like
731
- * drag and drop, node editing, adding and removing node.
732
- *
733
- * @event
734
- */
735
- dataSourceChanged: EmitType<DataSourceChangedEventArgs>;
736
- /**
737
- * Triggers before the TreeView node is appended to the TreeView element. It helps to customize specific nodes.
738
- *
739
- * @event
740
- */
741
- drawNode: EmitType<DrawNodeEventArgs>;
742
- /**
743
- * Triggers when the TreeView control is destroyed successfully.
744
- *
745
- * @event
746
- */
747
- destroyed: EmitType<Object>;
748
- /**
749
- * Triggers when key press is successful. It helps to customize the operations at key press.
750
- *
751
- * @event
752
- */
753
- keyPress: EmitType<NodeKeyPressEventArgs>;
754
- /**
755
- * Triggers when the TreeView node is checked/unchecked successfully.
756
- *
757
- * @event
758
- */
759
- nodeChecked: EmitType<NodeCheckEventArgs>;
760
- /**
761
- * Triggers before the TreeView node is to be checked/unchecked.
762
- *
763
- * @event
764
- */
765
- nodeChecking: EmitType<NodeCheckEventArgs>;
766
- /**
767
- * Triggers when the TreeView node is clicked successfully.
768
- *
769
- * @event
770
- */
771
- nodeClicked: EmitType<NodeClickEventArgs>;
772
- /**
773
- * Triggers when the TreeView node collapses successfully.
774
- *
775
- * @event
776
- */
777
- nodeCollapsed: EmitType<NodeExpandEventArgs>;
778
- /**
779
- * Triggers before the TreeView node collapses.
780
- *
781
- * @event
782
- */
783
- nodeCollapsing: EmitType<NodeExpandEventArgs>;
784
- /**
785
- * Triggers when the TreeView node is dragged (moved) continuously.
786
- *
787
-
788
- * @event
789
- */
790
- nodeDragging: EmitType<DragAndDropEventArgs>;
791
- /**
792
- * Triggers when the TreeView node drag (move) starts.
793
- *
794
- * @event
795
- */
796
- nodeDragStart: EmitType<DragAndDropEventArgs>;
797
- /**
798
- * Triggers when the TreeView node drag (move) is stopped.
799
- *
800
- * @event
801
- */
802
- nodeDragStop: EmitType<DragAndDropEventArgs>;
803
- /**
804
- * Triggers when the TreeView node is dropped on target element successfully.
805
- *
806
- * @event
807
- */
808
- nodeDropped: EmitType<DragAndDropEventArgs>;
809
- /**
810
- * Triggers when the TreeView node is renamed successfully.
811
- *
812
- * @event
813
- */
814
- nodeEdited: EmitType<NodeEditEventArgs>;
815
- /**
816
- * Triggers before the TreeView node is renamed.
817
- *
818
- * @event
819
- */
820
- nodeEditing: EmitType<NodeEditEventArgs>;
821
- /**
822
- * Triggers when the TreeView node expands successfully.
823
- *
824
- * @event
825
- */
826
- nodeExpanded: EmitType<NodeExpandEventArgs>;
827
- /**
828
- * Triggers before the TreeView node is to be expanded.
829
- *
830
- * @event
831
- */
832
- nodeExpanding: EmitType<NodeExpandEventArgs>;
833
- /**
834
- * Triggers when the TreeView node is selected/unselected successfully.
835
- *
836
- * @event
837
- */
838
- nodeSelected: EmitType<NodeSelectEventArgs>;
839
- /**
840
- * Triggers before the TreeView node is selected/unselected.
841
- *
842
- * @event
843
- */
844
- nodeSelecting: EmitType<NodeSelectEventArgs>;
845
- constructor(options?: TreeViewModel, element?: string | HTMLElement);
846
- /**
847
- * Get component name.
848
- *
849
- * @returns {string} - returns module name.
850
- * @private
851
- */
852
- getModuleName(): string;
853
- /**
854
- * Initialize the event handler
855
- *
856
- * @returns {void}
857
- */
858
- protected preRender(): void;
859
- /**
860
- * Get the properties to be maintained in the persisted state.
861
- *
862
- * @returns {string} - returns the persisted data
863
- * @hidden
864
- */
865
- getPersistData(): string;
866
- /**
867
- * To Initialize the control rendering
868
- *
869
- * @private
870
- * @returns {void}
871
- */
872
- protected render(): void;
873
- private initialize;
874
- private setDisabledMode;
875
- private setEnableRtl;
876
- private setRipple;
877
- private setFullRow;
878
- private setMultiSelect;
879
- private templateComplier;
880
- private setDataBinding;
881
- private getQuery;
882
- private getType;
883
- private setRootData;
884
- private renderItems;
885
- /**
886
- * Update the checkedNodes from datasource at initial rendering
887
- */
888
- private updateCheckedStateFromDS;
889
- /**
890
- * To check whether the list data has sub child and to change the parent check state accordingly
891
- */
892
- private getCheckedNodeDetails;
893
- /**
894
- * Update the checkedNodes and parent state when all the child Nodes are in checkedstate at initial rendering
895
- */
896
- private updateParentCheckState;
897
- /**
898
- * Change the parent to indeterminate state whenever the child is in checked state which is not rendered in DOM
899
- */
900
- private checkIndeterminateState;
901
- /**
902
- * Update the checkedNodes for child and subchild from datasource (hierarchical datasource) at initial rendering
903
- */
904
- private updateChildCheckState;
905
- private beforeNodeCreate;
906
- private frameMouseHandler;
907
- private addActionClass;
908
- private getDataType;
909
- private getGroupedData;
910
- private getSortedData;
911
- private finalizeNode;
912
- private updateCheckedProp;
913
- private ensureIndeterminate;
914
- private ensureParentCheckState;
915
- private ensureChildCheckState;
916
- private doCheckBoxAction;
917
- private updateFieldChecked;
918
- /**
919
- * Changes the parent and child check state while changing the checkedNodes via setmodel
920
- */
921
- private dynamicCheckState;
922
- /**
923
- * updates the parent and child check state while changing the checkedNodes via setmodel for listData
924
- */
925
- private updateIndeterminate;
926
- /**
927
- * updates the parent and child check state while changing the checkedNodes via setmodel for hierarchical data
928
- */
929
- private updateChildIndeterminate;
930
- private changeState;
931
- private nodeCheckAction;
932
- private addCheck;
933
- private removeCheck;
934
- private getCheckEvent;
935
- private finalize;
936
- private setTextWrap;
937
- private updateWrap;
938
- private calculateWrap;
939
- private doExpandAction;
940
- private expandGivenNodes;
941
- private expandCallback;
942
- private afterFinalized;
943
- private doSelectionAction;
944
- private selectGivenNodes;
945
- private clickHandler;
946
- private nodeCheckedEvent;
947
- private triggerClickEvent;
948
- private expandNode;
949
- private expandedNode;
950
- private addExpand;
951
- private collapseNode;
952
- private nodeCollapseAction;
953
- private collapsedNode;
954
- private removeExpand;
955
- private disableExpandAttr;
956
- private setHeight;
957
- private animateHeight;
958
- private renderChildNodes;
959
- private loadChild;
960
- private disableTreeNodes;
961
- /**
962
- * Sets the child Item in selectedState while rendering the child node
963
- */
964
- private setSelectionForChildNodes;
965
- private ensureCheckNode;
966
- private getFields;
967
- private getChildFields;
968
- private getChildMapper;
969
- private getChildNodes;
970
- private getChildGroup;
971
- private renderSubChild;
972
- private toggleSelect;
973
- private isActive;
974
- private selectNode;
975
- private nodeSelectAction;
976
- private unselectNode;
977
- private nodeUnselectAction;
978
- private setFocusElement;
979
- private addSelect;
980
- private removeSelect;
981
- private removeSelectAll;
982
- private getSelectEvent;
983
- private setExpandOnType;
984
- private expandHandler;
985
- private expandCollapseAction;
986
- private expandAction;
987
- private nodeExpandAction;
988
- private keyActionHandler;
989
- private navigateToFocus;
990
- private isVisibleInViewport;
991
- private getScrollParent;
992
- private shiftKeySelect;
993
- private checkNode;
994
- private validateCheckNode;
995
- private nodeCheckingAction;
996
- /**
997
- * Update checkedNodes when UI interaction happens before the child node renders in DOM
998
- */
999
- private ensureStateChange;
1000
- private getChildItems;
1001
- /**
1002
- * Update checkedNodes when UI interaction happens before the child node renders in DOM for hierarchical DS
1003
- */
1004
- private childStateChange;
1005
- private allCheckNode;
1006
- private openNode;
1007
- private navigateNode;
1008
- private navigateRootNode;
1009
- private getFocusedNode;
1010
- private focusNextNode;
1011
- private getNextNode;
1012
- private getPrevNode;
1013
- private getRootNode;
1014
- private getEndNode;
1015
- private setFocus;
1016
- private updateIdAttr;
1017
- private focusIn;
1018
- private focusOut;
1019
- private onMouseOver;
1020
- private setHover;
1021
- private onMouseLeave;
1022
- private removeHover;
1023
- private getNodeData;
1024
- private getText;
1025
- private getExpandEvent;
1026
- private renderNodeTemplate;
1027
- private destroyTemplate;
1028
- private reRenderNodes;
1029
- private setCssClass;
1030
- private editingHandler;
1031
- private createTextbox;
1032
- private updateOldText;
1033
- private inputFocusOut;
1034
- private appendNewText;
1035
- private updateText;
1036
- private getElement;
1037
- private getId;
1038
- private getEditEvent;
1039
- private getNodeObject;
1040
- private getChildNodeObject;
1041
- private setDragAndDrop;
1042
- private initializeDrag;
1043
- private dragCancelAction;
1044
- private dragAction;
1045
- private appendIndicator;
1046
- private dropAction;
1047
- private appendNode;
1048
- private dropAsSiblingNode;
1049
- private dropAsChildNode;
1050
- private moveData;
1051
- private expandParent;
1052
- private updateElement;
1053
- private updateAriaLevel;
1054
- private updateChildAriaLevel;
1055
- private renderVirtualEle;
1056
- private removeVirtualEle;
1057
- private destroyDrag;
1058
- private getDragEvent;
1059
- private addFullRow;
1060
- private createFullRow;
1061
- private addMultiSelect;
1062
- private collapseByLevel;
1063
- private collapseAllNodes;
1064
- private expandByLevel;
1065
- private expandAllNodes;
1066
- private getVisibleNodes;
1067
- private removeNode;
1068
- private updateInstance;
1069
- private updateList;
1070
- private updateSelectedNodes;
1071
- private updateExpandedNodes;
1072
- private removeData;
1073
- private removeChildNodes;
1074
- private doGivenAction;
1075
- private addGivenNodes;
1076
- private updateMapper;
1077
- private updateListProp;
1078
- private getDataPos;
1079
- private addChildData;
1080
- private doDisableAction;
1081
- private doEnableAction;
1082
- private nodeType;
1083
- private checkValidId;
1084
- private filterNestedChild;
1085
- private setTouchClass;
1086
- private updatePersistProp;
1087
- private removeField;
1088
- private getMapperProp;
1089
- private updateField;
1090
- private updateChildField;
1091
- private triggerEvent;
1092
- private wireInputEvents;
1093
- private wireEditingEvents;
1094
- private wireClickEvent;
1095
- private wireExpandOnEvent;
1096
- private mouseDownStatus;
1097
- private mouseDownHandler;
1098
- private preventContextMenu;
1099
- private wireEvents;
1100
- private unWireEvents;
1101
- private parents;
1102
- private isDoubleTapped;
1103
- private isDescendant;
1104
- protected showSpinner(element: HTMLElement): void;
1105
- protected hideSpinner(element: HTMLElement): void;
1106
- private setCheckedNodes;
1107
- /**
1108
- * Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel
1109
- */
1110
- private setValidCheckedNode;
1111
- /**
1112
- * Checks whether the checkedNodes entered are valid and sets the valid checkedNodes while changing via setmodel(for hierarchical DS)
1113
- */
1114
- private setChildCheckState;
1115
- private setIndeterminate;
1116
- private updatePosition;
1117
- private updateChildPosition;
1118
- private dynamicState;
1119
- private crudOperation;
1120
- private deleteSuccess;
1121
- private editSucess;
1122
- private addSuccess;
1123
- private dmFailure;
1124
- private updatePreviousText;
1125
- /**
1126
- * Called internally if any of the property value changed.
1127
- * @param {TreeView} newProp
1128
- * @param {TreeView} oldProp
1129
- * @returns void
1130
- * @private
1131
- */
1132
- onPropertyChanged(newProp: TreeViewModel, oldProp: TreeViewModel): void;
1133
- /**
1134
- * Removes the component from the DOM and detaches all its related event handlers. It also removes the attributes and classes.
1135
- */
1136
- destroy(): void;
1137
- /**
1138
- * Adds the collection of TreeView nodes based on target and index position. If target node is not specified,
1139
- * then the nodes are added as children of the given parentID or in the root level of TreeView.
1140
- * @param { { [key: string]: Object }[] } nodes - Specifies the array of JSON data that has to be added.
1141
- * @param { string | Element } target - Specifies ID of TreeView node/TreeView node as target element.
1142
- * @param { number } index - Specifies the index to place the newly added nodes in the target element.
1143
- * @param { boolean } preventTargetExpand - If set to true, the target parent node will be prevented from auto expanding.
1144
- */
1145
- addNodes(nodes: {
1146
- [key: string]: Object;
1147
- }[], target?: string | Element, index?: number, preventTargetExpand?: boolean): void;
1148
- /**
1149
- * Instead of clicking on the TreeView node for editing, we can enable it by using
1150
- * `beginEdit` property. On passing the node ID or element through this property, the edit textBox
1151
- * will be created for the particular node thus allowing us to edit it.
1152
- * @param {string | Element} node - Specifies ID of TreeView node/TreeView node.
1153
- */
1154
- beginEdit(node: string | Element): void;
1155
- /**
1156
- * Checks all the unchecked nodes. You can also check specific nodes by passing array of unchecked nodes
1157
- * as argument to this method.
1158
- * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView node.
1159
- */
1160
- checkAll(nodes?: string[] | Element[]): void;
1161
- /**
1162
- * Collapses all the expanded TreeView nodes. You can collapse specific nodes by passing array of nodes as argument to this method.
1163
- * You can also collapse all the nodes excluding the hidden nodes by setting **excludeHiddenNodes** to true. If you want to collapse
1164
- * a specific level of nodes, set **level** as argument to collapseAll method.
1165
- * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/ array of TreeView node.
1166
- * @param {number} level - TreeView nodes will collapse up to the given level.
1167
- * @param {boolean} excludeHiddenNodes - Whether or not to exclude hidden nodes of TreeView when collapsing all nodes.
1168
- */
1169
- collapseAll(nodes?: string[] | Element[], level?: number, excludeHiddenNodes?: boolean): void;
1170
- /**
1171
- * Disables the collection of nodes by passing the ID of nodes or node elements in the array.
1172
- * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView nodes.
1173
- */
1174
- disableNodes(nodes: string[] | Element[]): void;
1175
- /**
1176
- * Enables the collection of disabled nodes by passing the ID of nodes or node elements in the array.
1177
- * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView nodes.
1178
- */
1179
- enableNodes(nodes: string[] | Element[]): void;
1180
- /**
1181
- * Ensures visibility of the TreeView node by using node ID or node element.
1182
- * When many TreeView nodes are present and we need to find a particular node, `ensureVisible` property
1183
- * helps bring the node to visibility by expanding the TreeView and scrolling to the specific node.
1184
- * @param {string | Element} node - Specifies ID of TreeView node/TreeView nodes.
1185
- */
1186
- ensureVisible(node: string | Element): void;
1187
- /**
1188
- * Expands all the collapsed TreeView nodes. You can expand the specific nodes by passing the array of collapsed nodes
1189
- * as argument to this method. You can also expand all the collapsed nodes by excluding the hidden nodes by setting
1190
- * **excludeHiddenNodes** to true to this method. To expand a specific level of nodes, set **level** as argument to expandAll method.
1191
- * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView nodes.
1192
- * @param {number} level - TreeView nodes will expand up to the given level.
1193
- * @param {boolean} excludeHiddenNodes - Whether or not to exclude hidden nodes when expanding all nodes.
1194
- */
1195
- expandAll(nodes?: string[] | Element[], level?: number, excludeHiddenNodes?: boolean): void;
1196
- /**
1197
- * Gets all the checked nodes including child, whether it is loaded or not.
1198
- */
1199
- getAllCheckedNodes(): string[];
1200
- /**
1201
- * Gets all the disabled nodes including child, whether it is loaded or not.
1202
- */
1203
- getDisabledNodes(): string[];
1204
- /**
1205
- * Get the node's data such as id, text, parentID, selected, isChecked, and expanded by passing the node element or it's ID.
1206
- * @param {string | Element} node - Specifies ID of TreeView node/TreeView node.
1207
- */
1208
- getNode(node: string | Element): {
1209
- [key: string]: Object;
1210
- };
1211
- /**
1212
- * To get the updated data source of TreeView after performing some operation like drag and drop, node editing,
1213
- * node selecting/unSelecting, node expanding/collapsing, node checking/unChecking, adding and removing node.
1214
- * * If you pass the ID of TreeView node as arguments for this method then it will return the updated data source
1215
- * of the corresponding node otherwise it will return the entire updated data source of TreeView.
1216
- * * The updated data source also contains custom attributes if you specified in data source.
1217
- * @param {string | Element} node - Specifies ID of TreeView node/TreeView node.
1218
- * @isGenericType true
1219
- */
1220
- getTreeData(node?: string | Element): {
1221
- [key: string]: Object;
1222
- }[];
1223
- /**
1224
- * Moves the collection of nodes within the same TreeView based on target or its index position.
1225
- * @param {string[] | Element[]} sourceNodes - Specifies the array of TreeView nodes ID/array of TreeView node.
1226
- * @param {string | Element} target - Specifies ID of TreeView node/TreeView node as target element.
1227
- * @param {number} index - Specifies the index to place the moved nodes in the target element.
1228
- * @param { boolean } preventTargetExpand - If set to true, the target parent node will be prevented from auto expanding.
1229
- */
1230
- moveNodes(sourceNodes: string[] | Element[], target: string | Element, index: number, preventTargetExpand?: boolean): void;
1231
- /**
1232
- * Refreshes a particular node of the TreeView.
1233
- * @param {string | Element} target - Specifies the ID of TreeView node or TreeView node as target element.
1234
- * @param {{ [key: string]: Object }[]} newData - Specifies the new data of TreeView node.
1235
- */
1236
- refreshNode(target: string | Element, newData: {
1237
- [key: string]: Object;
1238
- }[]): void;
1239
- /**
1240
- * Removes the collection of TreeView nodes by passing the array of node details as argument to this method.
1241
- * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView node.
1242
- */
1243
- removeNodes(nodes: string[] | Element[]): void;
1244
- /**
1245
- * Replaces the text of the TreeView node with the given text.
1246
- * @param {string | Element} target - Specifies ID of TreeView node/TreeView node as target element.
1247
- * @param {string} newText - Specifies the new text of TreeView node.
1248
- */
1249
- updateNode(target: string | Element, newText: string): void;
1250
- /**
1251
- * Unchecks all the checked nodes. You can also uncheck the specific nodes by passing array of checked nodes
1252
- * as argument to this method.
1253
- * @param {string[] | Element[]} nodes - Specifies the array of TreeView nodes ID/array of TreeView node.
1254
- */
1255
- uncheckAll(nodes?: string[] | Element[]): void;
1256
- }