@syncfusion/ej2-dropdowns 25.2.3 → 25.2.5-30068

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 (418) hide show
  1. package/CHANGELOG.md +2186 -2140
  2. package/{README.md → ReadMe.md} +217 -217
  3. package/dist/ej2-dropdowns.umd.min.js +1 -10
  4. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-dropdowns.es2015.js +293 -197
  6. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  7. package/dist/es6/ej2-dropdowns.es5.js +460 -363
  8. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  9. package/helpers/e2e/autocomplete.js +13 -13
  10. package/helpers/e2e/combobox.js +13 -13
  11. package/helpers/e2e/dropdownlist.js +13 -13
  12. package/helpers/e2e/index.js +3 -3
  13. package/helpers/e2e/listboxHelper.js +13 -13
  14. package/helpers/e2e/multiselect.js +13 -13
  15. package/license +2 -2
  16. package/package.json +80 -80
  17. package/src/auto-complete/auto-complete-model.d.ts +190 -190
  18. package/src/auto-complete/auto-complete.d.ts +12 -12
  19. package/src/auto-complete/auto-complete.js +21 -21
  20. package/src/combo-box/combo-box-model.d.ts +233 -233
  21. package/src/combo-box/combo-box.d.ts +27 -27
  22. package/src/combo-box/combo-box.js +29 -29
  23. package/src/common/virtual-scroll.js +46 -46
  24. package/src/drop-down-base/drop-down-base-model.d.ts +200 -200
  25. package/src/drop-down-base/drop-down-base.d.ts +24 -20
  26. package/src/drop-down-base/drop-down-base.js +60 -39
  27. package/src/drop-down-list/drop-down-list-model.d.ts +209 -209
  28. package/src/drop-down-list/drop-down-list.d.ts +5 -5
  29. package/src/drop-down-list/drop-down-list.js +53 -31
  30. package/src/drop-down-tree/drop-down-tree-model.d.ts +473 -473
  31. package/src/drop-down-tree/drop-down-tree.d.ts +1 -1
  32. package/src/drop-down-tree/drop-down-tree.js +29 -25
  33. package/src/list-box/list-box-model.d.ts +237 -237
  34. package/src/list-box/list-box.d.ts +2 -2
  35. package/src/list-box/list-box.js +19 -19
  36. package/src/mention/mention-model.d.ts +261 -261
  37. package/src/mention/mention.js +19 -19
  38. package/src/multi-select/float-label.js +1 -0
  39. package/src/multi-select/multi-select-model.d.ts +526 -526
  40. package/src/multi-select/multi-select.d.ts +2 -0
  41. package/src/multi-select/multi-select.js +182 -133
  42. package/styles/auto-complete/_all.scss +1 -1
  43. package/styles/auto-complete/_bds-definition.scss +2 -2
  44. package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
  45. package/styles/auto-complete/_bootstrap-definition.scss +2 -2
  46. package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
  47. package/styles/auto-complete/_bootstrap5-definition.scss +2 -2
  48. package/styles/auto-complete/_bootstrap5.3-definition.scss +2 -0
  49. package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
  50. package/styles/auto-complete/_fabric-definition.scss +2 -2
  51. package/styles/auto-complete/_fluent-definition.scss +2 -2
  52. package/styles/auto-complete/_fluent2-definition.scss +2 -0
  53. package/styles/auto-complete/_fusionnew-definition.scss +2 -2
  54. package/styles/auto-complete/_highcontrast-definition.scss +2 -2
  55. package/styles/auto-complete/_highcontrast-light-definition.scss +2 -2
  56. package/styles/auto-complete/_material-dark-definition.scss +2 -2
  57. package/styles/auto-complete/_material-definition.scss +2 -2
  58. package/styles/auto-complete/_material3-definition.scss +2 -2
  59. package/styles/auto-complete/_tailwind-definition.scss +2 -2
  60. package/styles/auto-complete/fluent2.css +1129 -0
  61. package/styles/auto-complete/fluent2.scss +4 -0
  62. package/styles/auto-complete/material3-dark.css +1 -1
  63. package/styles/auto-complete/material3-dark.scss +1 -1
  64. package/styles/auto-complete/material3.css +1 -1
  65. package/styles/auto-complete/material3.scss +1 -1
  66. package/styles/bootstrap-dark.css +72 -300
  67. package/styles/bootstrap-dark.scss +28 -8
  68. package/styles/bootstrap.css +72 -306
  69. package/styles/bootstrap.scss +28 -8
  70. package/styles/bootstrap4.css +72 -350
  71. package/styles/bootstrap4.scss +28 -8
  72. package/styles/bootstrap5-dark.css +72 -301
  73. package/styles/bootstrap5-dark.scss +28 -8
  74. package/styles/bootstrap5.css +72 -301
  75. package/styles/bootstrap5.scss +28 -8
  76. package/styles/combo-box/_all.scss +1 -1
  77. package/styles/combo-box/_bds-definition.scss +2 -2
  78. package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
  79. package/styles/combo-box/_bootstrap-definition.scss +2 -2
  80. package/styles/combo-box/_bootstrap4-definition.scss +11 -11
  81. package/styles/combo-box/_bootstrap5-definition.scss +2 -2
  82. package/styles/combo-box/_bootstrap5.3-definition.scss +2 -0
  83. package/styles/combo-box/_fabric-dark-definition.scss +2 -2
  84. package/styles/combo-box/_fabric-definition.scss +2 -2
  85. package/styles/combo-box/_fluent-definition.scss +2 -2
  86. package/styles/combo-box/_fluent2-definition.scss +2 -0
  87. package/styles/combo-box/_fusionnew-definition.scss +2 -2
  88. package/styles/combo-box/_highcontrast-definition.scss +2 -2
  89. package/styles/combo-box/_highcontrast-light-definition.scss +3 -3
  90. package/styles/combo-box/_material-dark-definition.scss +2 -2
  91. package/styles/combo-box/_material-definition.scss +2 -2
  92. package/styles/combo-box/_material3-definition.scss +2 -2
  93. package/styles/combo-box/_tailwind-definition.scss +2 -2
  94. package/styles/combo-box/fluent2.css +1129 -0
  95. package/styles/combo-box/fluent2.scss +4 -0
  96. package/styles/combo-box/material3-dark.css +1 -1
  97. package/styles/combo-box/material3-dark.scss +1 -1
  98. package/styles/combo-box/material3.css +1 -1
  99. package/styles/combo-box/material3.scss +1 -1
  100. package/styles/drop-down-base/_all.scss +2 -2
  101. package/styles/drop-down-base/_bds-definition.scss +134 -134
  102. package/styles/drop-down-base/_bootstrap-dark-definition.scss +83 -83
  103. package/styles/drop-down-base/_bootstrap-definition.scss +83 -83
  104. package/styles/drop-down-base/_bootstrap4-definition.scss +90 -90
  105. package/styles/drop-down-base/_bootstrap5-definition.scss +117 -117
  106. package/styles/drop-down-base/_bootstrap5.3-definition.scss +117 -0
  107. package/styles/drop-down-base/_definition.scss +23 -23
  108. package/styles/drop-down-base/_fabric-dark-definition.scss +86 -86
  109. package/styles/drop-down-base/_fabric-definition.scss +84 -84
  110. package/styles/drop-down-base/_fluent-definition.scss +121 -121
  111. package/styles/drop-down-base/_fluent2-definition.scss +134 -0
  112. package/styles/drop-down-base/_fusionnew-definition.scss +117 -117
  113. package/styles/drop-down-base/_highcontrast-definition.scss +105 -105
  114. package/styles/drop-down-base/_highcontrast-light-definition.scss +105 -105
  115. package/styles/drop-down-base/_layout.scss +197 -187
  116. package/styles/drop-down-base/_material-dark-definition.scss +86 -86
  117. package/styles/drop-down-base/_material-definition.scss +85 -85
  118. package/styles/drop-down-base/_material3-definition.scss +76 -87
  119. package/styles/drop-down-base/_tailwind-definition.scss +129 -129
  120. package/styles/drop-down-base/_theme.scss +382 -391
  121. package/styles/drop-down-base/fluent2.css +1446 -0
  122. package/styles/drop-down-base/fluent2.scss +3 -0
  123. package/styles/drop-down-base/material3-dark.css +1 -1
  124. package/styles/drop-down-base/material3-dark.scss +1 -1
  125. package/styles/drop-down-base/material3.css +1 -1
  126. package/styles/drop-down-base/material3.scss +1 -1
  127. package/styles/drop-down-list/_all.scss +3 -3
  128. package/styles/drop-down-list/_bds-definition.scss +134 -134
  129. package/styles/drop-down-list/_bootstrap-dark-definition.scss +157 -157
  130. package/styles/drop-down-list/_bootstrap-definition.scss +156 -156
  131. package/styles/drop-down-list/_bootstrap4-definition.scss +202 -202
  132. package/styles/drop-down-list/_bootstrap5-definition.scss +201 -201
  133. package/styles/drop-down-list/_bootstrap5.3-definition.scss +201 -0
  134. package/styles/drop-down-list/_fabric-dark-definition.scss +128 -128
  135. package/styles/drop-down-list/_fabric-definition.scss +124 -124
  136. package/styles/drop-down-list/_fluent-definition.scss +185 -185
  137. package/styles/drop-down-list/_fluent2-definition.scss +134 -0
  138. package/styles/drop-down-list/_fusionnew-definition.scss +201 -201
  139. package/styles/drop-down-list/_highcontrast-definition.scss +142 -142
  140. package/styles/drop-down-list/_highcontrast-light-definition.scss +144 -144
  141. package/styles/drop-down-list/_layout.scss +317 -315
  142. package/styles/drop-down-list/_material-dark-definition.scss +143 -143
  143. package/styles/drop-down-list/_material-definition.scss +167 -167
  144. package/styles/drop-down-list/_material3-definition.scss +172 -180
  145. package/styles/drop-down-list/_tailwind-definition.scss +134 -134
  146. package/styles/drop-down-list/_theme.scss +10 -10
  147. package/styles/drop-down-list/bootstrap-dark.css +5 -0
  148. package/styles/drop-down-list/bootstrap.css +5 -0
  149. package/styles/drop-down-list/bootstrap4.css +5 -0
  150. package/styles/drop-down-list/bootstrap5-dark.css +5 -0
  151. package/styles/drop-down-list/bootstrap5.css +5 -0
  152. package/styles/drop-down-list/fabric-dark.css +5 -0
  153. package/styles/drop-down-list/fabric.css +5 -0
  154. package/styles/drop-down-list/fluent-dark.css +5 -0
  155. package/styles/drop-down-list/fluent.css +5 -0
  156. package/styles/drop-down-list/fluent2.css +1617 -0
  157. package/styles/drop-down-list/fluent2.scss +9 -0
  158. package/styles/drop-down-list/highcontrast-light.css +5 -0
  159. package/styles/drop-down-list/highcontrast.css +5 -0
  160. package/styles/drop-down-list/icons/_bds.scss +14 -14
  161. package/styles/drop-down-list/icons/_bootstrap-dark.scss +14 -14
  162. package/styles/drop-down-list/icons/_bootstrap.scss +14 -14
  163. package/styles/drop-down-list/icons/_bootstrap4.scss +14 -14
  164. package/styles/drop-down-list/icons/_bootstrap5.3.scss +14 -0
  165. package/styles/drop-down-list/icons/_bootstrap5.scss +14 -14
  166. package/styles/drop-down-list/icons/_fabric-dark.scss +14 -14
  167. package/styles/drop-down-list/icons/_fabric.scss +14 -14
  168. package/styles/drop-down-list/icons/_fluent.scss +14 -14
  169. package/styles/drop-down-list/icons/_fluent2.scss +14 -0
  170. package/styles/drop-down-list/icons/_fusionnew.scss +14 -14
  171. package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
  172. package/styles/drop-down-list/icons/_highcontrast.scss +14 -14
  173. package/styles/drop-down-list/icons/_material-dark.scss +14 -14
  174. package/styles/drop-down-list/icons/_material.scss +14 -14
  175. package/styles/drop-down-list/icons/_material3.scss +14 -14
  176. package/styles/drop-down-list/icons/_tailwind.scss +14 -14
  177. package/styles/drop-down-list/material-dark.css +5 -0
  178. package/styles/drop-down-list/material.css +5 -0
  179. package/styles/drop-down-list/material3-dark.css +6 -1
  180. package/styles/drop-down-list/material3-dark.scss +1 -1
  181. package/styles/drop-down-list/material3.css +6 -1
  182. package/styles/drop-down-list/material3.scss +1 -1
  183. package/styles/drop-down-list/tailwind-dark.css +5 -0
  184. package/styles/drop-down-list/tailwind.css +5 -0
  185. package/styles/drop-down-tree/_all.scss +2 -2
  186. package/styles/drop-down-tree/_bds-definition.scss +67 -61
  187. package/styles/drop-down-tree/_bootstrap-dark-definition.scss +73 -72
  188. package/styles/drop-down-tree/_bootstrap-definition.scss +72 -71
  189. package/styles/drop-down-tree/_bootstrap4-definition.scss +74 -72
  190. package/styles/drop-down-tree/_bootstrap5-definition.scss +66 -60
  191. package/styles/drop-down-tree/_bootstrap5.3-definition.scss +66 -0
  192. package/styles/drop-down-tree/_fabric-dark-definition.scss +73 -72
  193. package/styles/drop-down-tree/_fabric-definition.scss +73 -72
  194. package/styles/drop-down-tree/_fluent-definition.scss +71 -66
  195. package/styles/drop-down-tree/_fluent2-definition.scss +76 -0
  196. package/styles/drop-down-tree/_fusionnew-definition.scss +61 -60
  197. package/styles/drop-down-tree/_highcontrast-definition.scss +73 -72
  198. package/styles/drop-down-tree/_highcontrast-light-definition.scss +73 -72
  199. package/styles/drop-down-tree/_layout.scss +1389 -1423
  200. package/styles/drop-down-tree/_material-dark-definition.scss +74 -73
  201. package/styles/drop-down-tree/_material-definition.scss +74 -73
  202. package/styles/drop-down-tree/_material3-definition.scss +75 -76
  203. package/styles/drop-down-tree/_tailwind-definition.scss +67 -61
  204. package/styles/drop-down-tree/_theme.scss +130 -132
  205. package/styles/drop-down-tree/bootstrap-dark.css +20 -21
  206. package/styles/drop-down-tree/bootstrap.css +20 -21
  207. package/styles/drop-down-tree/bootstrap4.css +21 -22
  208. package/styles/drop-down-tree/bootstrap5-dark.css +20 -19
  209. package/styles/drop-down-tree/bootstrap5.css +20 -19
  210. package/styles/drop-down-tree/fabric-dark.css +20 -21
  211. package/styles/drop-down-tree/fabric.css +20 -21
  212. package/styles/drop-down-tree/fluent-dark.css +28 -27
  213. package/styles/drop-down-tree/fluent.css +28 -27
  214. package/styles/drop-down-tree/fluent2.css +1671 -0
  215. package/styles/drop-down-tree/fluent2.scss +9 -0
  216. package/styles/drop-down-tree/highcontrast-light.css +20 -21
  217. package/styles/drop-down-tree/highcontrast.css +20 -15
  218. package/styles/drop-down-tree/icons/_bds.scss +11 -11
  219. package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
  220. package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
  221. package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
  222. package/styles/drop-down-tree/icons/_bootstrap5.3.scss +11 -0
  223. package/styles/drop-down-tree/icons/_bootstrap5.scss +11 -11
  224. package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
  225. package/styles/drop-down-tree/icons/_fabric.scss +11 -11
  226. package/styles/drop-down-tree/icons/_fluent.scss +11 -11
  227. package/styles/drop-down-tree/icons/_fluent2.scss +14 -0
  228. package/styles/drop-down-tree/icons/_fusionnew.scss +11 -11
  229. package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
  230. package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
  231. package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
  232. package/styles/drop-down-tree/icons/_material.scss +11 -11
  233. package/styles/drop-down-tree/icons/_material3.scss +11 -11
  234. package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
  235. package/styles/drop-down-tree/icons/_tailwind.scss +11 -11
  236. package/styles/drop-down-tree/material-dark.css +28 -34
  237. package/styles/drop-down-tree/material.css +31 -40
  238. package/styles/drop-down-tree/material3-dark.css +17 -21
  239. package/styles/drop-down-tree/material3-dark.scss +1 -1
  240. package/styles/drop-down-tree/material3.css +17 -21
  241. package/styles/drop-down-tree/material3.scss +1 -1
  242. package/styles/drop-down-tree/tailwind-dark.css +29 -20
  243. package/styles/drop-down-tree/tailwind.css +29 -20
  244. package/styles/fabric-dark.css +72 -300
  245. package/styles/fabric-dark.scss +28 -8
  246. package/styles/fabric.css +72 -306
  247. package/styles/fabric.scss +28 -8
  248. package/styles/fluent-dark.css +80 -315
  249. package/styles/fluent-dark.scss +28 -8
  250. package/styles/fluent.css +80 -315
  251. package/styles/fluent.scss +28 -8
  252. package/styles/fluent2.css +4541 -0
  253. package/styles/fluent2.scss +28 -0
  254. package/styles/highcontrast-light.css +72 -300
  255. package/styles/highcontrast-light.scss +28 -8
  256. package/styles/highcontrast.css +72 -300
  257. package/styles/highcontrast.scss +28 -8
  258. package/styles/list-box/_all.scss +2 -2
  259. package/styles/list-box/_bds-definition.scss +136 -136
  260. package/styles/list-box/_bigger.scss +164 -0
  261. package/styles/list-box/_bootstrap-dark-definition.scss +124 -126
  262. package/styles/list-box/_bootstrap-definition.scss +119 -119
  263. package/styles/list-box/_bootstrap4-definition.scss +124 -124
  264. package/styles/list-box/_bootstrap5-definition.scss +121 -120
  265. package/styles/list-box/_bootstrap5.3-definition.scss +121 -0
  266. package/styles/list-box/_fabric-dark-definition.scss +124 -126
  267. package/styles/list-box/_fabric-definition.scss +119 -119
  268. package/styles/list-box/_fluent-definition.scss +120 -120
  269. package/styles/list-box/_fluent2-definition.scss +119 -0
  270. package/styles/list-box/_fusionnew-definition.scss +111 -111
  271. package/styles/list-box/_highcontrast-definition.scss +119 -119
  272. package/styles/list-box/_highcontrast-light-definition.scss +124 -126
  273. package/styles/list-box/_layout.scss +455 -546
  274. package/styles/list-box/_material-dark-definition.scss +124 -126
  275. package/styles/list-box/_material-definition.scss +119 -119
  276. package/styles/list-box/_material3-definition.scss +119 -119
  277. package/styles/list-box/_tailwind-definition.scss +119 -119
  278. package/styles/list-box/_theme.scss +314 -382
  279. package/styles/list-box/bootstrap-dark.css +43 -215
  280. package/styles/list-box/bootstrap.css +43 -221
  281. package/styles/list-box/bootstrap4.css +42 -264
  282. package/styles/list-box/bootstrap5-dark.css +43 -215
  283. package/styles/list-box/bootstrap5.css +43 -215
  284. package/styles/list-box/fabric-dark.css +43 -215
  285. package/styles/list-box/fabric.css +43 -221
  286. package/styles/list-box/fluent-dark.css +43 -221
  287. package/styles/list-box/fluent.css +43 -221
  288. package/styles/list-box/fluent2.css +1896 -0
  289. package/styles/list-box/fluent2.scss +5 -0
  290. package/styles/list-box/highcontrast-light.css +43 -215
  291. package/styles/list-box/highcontrast.css +43 -221
  292. package/styles/list-box/icons/_bds.scss +25 -25
  293. package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
  294. package/styles/list-box/icons/_bootstrap.scss +25 -25
  295. package/styles/list-box/icons/_bootstrap4.scss +25 -25
  296. package/styles/list-box/icons/_bootstrap5.3.scss +25 -0
  297. package/styles/list-box/icons/_bootstrap5.scss +25 -25
  298. package/styles/list-box/icons/_fabric-dark.scss +25 -25
  299. package/styles/list-box/icons/_fabric.scss +25 -25
  300. package/styles/list-box/icons/_fluent.scss +25 -25
  301. package/styles/list-box/icons/_fluent2.scss +25 -0
  302. package/styles/list-box/icons/_fusionnew.scss +25 -25
  303. package/styles/list-box/icons/_highcontrast-light.scss +25 -25
  304. package/styles/list-box/icons/_highcontrast.scss +25 -25
  305. package/styles/list-box/icons/_material-dark.scss +25 -25
  306. package/styles/list-box/icons/_material.scss +25 -25
  307. package/styles/list-box/icons/_material3.scss +25 -25
  308. package/styles/list-box/icons/_tailwind-dark.scss +25 -25
  309. package/styles/list-box/icons/_tailwind.scss +25 -25
  310. package/styles/list-box/material-dark.css +43 -215
  311. package/styles/list-box/material.css +43 -221
  312. package/styles/list-box/material3-dark.css +44 -216
  313. package/styles/list-box/material3-dark.scss +1 -1
  314. package/styles/list-box/material3.css +44 -216
  315. package/styles/list-box/material3.scss +1 -1
  316. package/styles/list-box/tailwind-dark.css +45 -233
  317. package/styles/list-box/tailwind.css +45 -233
  318. package/styles/material-dark.css +80 -325
  319. package/styles/material-dark.scss +28 -8
  320. package/styles/material.css +84 -354
  321. package/styles/material.scss +28 -8
  322. package/styles/material3-dark.css +79 -337
  323. package/styles/material3-dark.scss +28 -8
  324. package/styles/material3.css +79 -337
  325. package/styles/material3.scss +28 -8
  326. package/styles/mention/_all.scss +1 -1
  327. package/styles/mention/_bds-definition.scss +1 -1
  328. package/styles/mention/_bootstrap-dark-definition.scss +3 -3
  329. package/styles/mention/_bootstrap-definition.scss +3 -3
  330. package/styles/mention/_bootstrap4-definition.scss +3 -3
  331. package/styles/mention/_bootstrap5-definition.scss +1 -1
  332. package/styles/mention/_bootstrap5.3-definition.scss +1 -0
  333. package/styles/mention/_fabric-dark-definition.scss +2 -2
  334. package/styles/mention/_fabric-definition.scss +3 -3
  335. package/styles/mention/_fluent-definition.scss +1 -1
  336. package/styles/mention/_fluent2-definition.scss +1 -0
  337. package/styles/mention/_fusionnew-definition.scss +1 -1
  338. package/styles/mention/_highcontrast-definition.scss +3 -3
  339. package/styles/mention/_highcontrast-light-definition.scss +3 -3
  340. package/styles/mention/_layout.scss +6 -6
  341. package/styles/mention/_material-dark-definition.scss +3 -3
  342. package/styles/mention/_material-definition.scss +3 -3
  343. package/styles/mention/_material3-definition.scss +1 -1
  344. package/styles/mention/_tailwind-definition.scss +1 -1
  345. package/styles/mention/fluent2.css +1106 -0
  346. package/styles/mention/fluent2.scss +6 -0
  347. package/styles/mention/material3-dark.css +1 -1
  348. package/styles/mention/material3-dark.scss +1 -1
  349. package/styles/mention/material3.css +1 -1
  350. package/styles/mention/material3.scss +1 -1
  351. package/styles/multi-select/_all.scss +2 -2
  352. package/styles/multi-select/_bds-definition.scss +235 -235
  353. package/styles/multi-select/_bootstrap-dark-definition.scss +207 -207
  354. package/styles/multi-select/_bootstrap-definition.scss +196 -196
  355. package/styles/multi-select/_bootstrap4-definition.scss +278 -278
  356. package/styles/multi-select/_bootstrap5-definition.scss +230 -230
  357. package/styles/multi-select/_bootstrap5.3-definition.scss +230 -0
  358. package/styles/multi-select/_fabric-dark-definition.scss +192 -192
  359. package/styles/multi-select/_fabric-definition.scss +183 -183
  360. package/styles/multi-select/_fluent-definition.scss +246 -246
  361. package/styles/multi-select/_fluent2-definition.scss +237 -0
  362. package/styles/multi-select/_fusionnew-definition.scss +227 -227
  363. package/styles/multi-select/_highcontrast-definition.scss +303 -303
  364. package/styles/multi-select/_highcontrast-light-definition.scss +297 -297
  365. package/styles/multi-select/_layout.scss +2200 -2206
  366. package/styles/multi-select/_material-dark-definition.scss +241 -241
  367. package/styles/multi-select/_material-definition.scss +234 -234
  368. package/styles/multi-select/_material3-definition.scss +231 -246
  369. package/styles/multi-select/_tailwind-definition.scss +235 -235
  370. package/styles/multi-select/_theme.scss +585 -586
  371. package/styles/multi-select/bootstrap-dark.css +4 -10
  372. package/styles/multi-select/bootstrap.css +4 -10
  373. package/styles/multi-select/bootstrap4.css +4 -10
  374. package/styles/multi-select/bootstrap5-dark.css +4 -11
  375. package/styles/multi-select/bootstrap5.css +4 -11
  376. package/styles/multi-select/fabric-dark.css +4 -10
  377. package/styles/multi-select/fabric.css +4 -10
  378. package/styles/multi-select/fluent-dark.css +4 -11
  379. package/styles/multi-select/fluent.css +4 -11
  380. package/styles/multi-select/fluent2.css +2590 -0
  381. package/styles/multi-select/fluent2.scss +9 -0
  382. package/styles/multi-select/highcontrast-light.css +4 -10
  383. package/styles/multi-select/highcontrast.css +4 -10
  384. package/styles/multi-select/icons/_bds.scss +26 -26
  385. package/styles/multi-select/icons/_bootstrap-dark.scss +26 -26
  386. package/styles/multi-select/icons/_bootstrap.scss +26 -26
  387. package/styles/multi-select/icons/_bootstrap4.scss +37 -37
  388. package/styles/multi-select/icons/_bootstrap5.3.scss +26 -0
  389. package/styles/multi-select/icons/_bootstrap5.scss +26 -26
  390. package/styles/multi-select/icons/_fabric-dark.scss +26 -26
  391. package/styles/multi-select/icons/_fabric.scss +26 -26
  392. package/styles/multi-select/icons/_fluent.scss +55 -55
  393. package/styles/multi-select/icons/_fluent2.scss +692 -0
  394. package/styles/multi-select/icons/_fusionnew.scss +26 -26
  395. package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
  396. package/styles/multi-select/icons/_highcontrast.scss +26 -26
  397. package/styles/multi-select/icons/_material-dark.scss +693 -693
  398. package/styles/multi-select/icons/_material.scss +693 -693
  399. package/styles/multi-select/icons/_material3.scss +695 -692
  400. package/styles/multi-select/icons/_tailwind.scss +26 -26
  401. package/styles/multi-select/material-dark.css +4 -10
  402. package/styles/multi-select/material.css +5 -11
  403. package/styles/multi-select/material3-dark.css +15 -18
  404. package/styles/multi-select/material3-dark.scss +1 -1
  405. package/styles/multi-select/material3.css +15 -18
  406. package/styles/multi-select/material3.scss +1 -1
  407. package/styles/multi-select/tailwind-dark.css +4 -10
  408. package/styles/multi-select/tailwind.css +4 -10
  409. package/styles/tailwind-dark.css +83 -319
  410. package/styles/tailwind-dark.scss +28 -8
  411. package/styles/tailwind.css +83 -319
  412. package/styles/tailwind.scss +28 -8
  413. package/.eslintrc.json +0 -260
  414. package/dist/ej2-dropdowns.min.js +0 -10
  415. package/dist/global/ej2-dropdowns.min.js +0 -11
  416. package/dist/global/ej2-dropdowns.min.js.map +0 -1
  417. package/dist/global/index.d.ts +0 -14
  418. package/tslint.json +0 -111
@@ -237,14 +237,14 @@ function revertHighlightSearch(content) {
237
237
  }
238
238
  }
239
239
 
240
- var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
241
- return new (P || (P = Promise))(function (resolve, reject) {
242
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
243
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
244
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
245
- step((generator = generator.apply(thisArg, _arguments || [])).next());
246
- });
247
- };
240
+ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
241
+ return new (P || (P = Promise))(function (resolve, reject) {
242
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
243
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
244
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
245
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
246
+ });
247
+ };
248
248
  class VirtualScroll {
249
249
  constructor(parent) {
250
250
  this.sentinelInfo = {
@@ -735,12 +735,12 @@ class VirtualScroll {
735
735
  * Common source
736
736
  */
737
737
 
738
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
739
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
740
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
741
- 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;
742
- return c > 3 && r && Object.defineProperty(target, key, r), r;
743
- };
738
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
739
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
740
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
741
+ 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;
742
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
743
+ };
744
744
  class FieldSettings extends ChildProperty {
745
745
  }
746
746
  __decorate([
@@ -797,7 +797,6 @@ let DropDownBase = class DropDownBase extends Component {
797
797
  constructor(options, element) {
798
798
  super(options, element);
799
799
  this.preventChange = false;
800
- this.isAngular = false;
801
800
  this.isPreventChange = false;
802
801
  this.isDynamicDataChange = false;
803
802
  this.addedNewItem = false;
@@ -840,6 +839,8 @@ let DropDownBase = class DropDownBase extends Component {
840
839
  this.appendUncheckList = false;
841
840
  this.getInitialData = false;
842
841
  this.preventPopupOpen = true;
842
+ this.virtualSelectAllState = false;
843
+ this.CurrentEvent = null;
843
844
  this.virtualListInfo = {
844
845
  currentPageNumber: null,
845
846
  direction: null,
@@ -1434,8 +1435,8 @@ let DropDownBase = class DropDownBase extends Component {
1434
1435
  if (!isWhereExist) {
1435
1436
  this.remoteDataCount = e.count;
1436
1437
  }
1437
- this.dataCount = e.count;
1438
- this.totalItemCount = e.count;
1438
+ this.dataCount = !this.virtualSelectAll ? e.count : this.dataCount;
1439
+ this.totalItemCount = !this.virtualSelectAll ? e.count : this.totalItemCount;
1439
1440
  ulElement = this.renderItems(listItems, fields);
1440
1441
  this.appendUncheckList = false;
1441
1442
  this.onActionComplete(ulElement, listItems, e);
@@ -1461,6 +1462,12 @@ let DropDownBase = class DropDownBase extends Component {
1461
1462
  if (this.isVirtualizationEnabled) {
1462
1463
  this.getFilteringSkeletonCount();
1463
1464
  }
1465
+ if (this.virtualSelectAll && this.virtualSelectAllData) {
1466
+ this.virtualSelectionAll(this.virtualSelectAllState, this.liCollections, this.CurrentEvent);
1467
+ this.virtualSelectAllState = false;
1468
+ this.CurrentEvent = null;
1469
+ this.virtualSelectAll = false;
1470
+ }
1464
1471
  }
1465
1472
  });
1466
1473
  }).catch((e) => {
@@ -1512,11 +1519,11 @@ let DropDownBase = class DropDownBase extends Component {
1512
1519
  }
1513
1520
  }
1514
1521
  }
1515
- if (isReOrder && (!(this.dataSource instanceof DataManager) && !this.isCustomDataUpdated)) {
1522
+ if (isReOrder && (!(this.dataSource instanceof DataManager) && !this.isCustomDataUpdated) && !this.virtualSelectAll) {
1516
1523
  // eslint-disable @typescript-eslint/no-explicit-any
1517
1524
  this.dataCount = this.totalItemCount = this.virtualSelectAll ? listItems.length : listItems.count;
1518
1525
  }
1519
- listItems = this.isVirtualizationEnabled && !this.virtualSelectAll ? listItems.result : listItems;
1526
+ listItems = this.isVirtualizationEnabled ? listItems.result : listItems;
1520
1527
  // eslint-enable @typescript-eslint/no-explicit-any
1521
1528
  const localDataArgs = { cancel: false, result: listItems };
1522
1529
  this.isPreventChange = this.isAngular && this.preventChange ? true : this.isPreventChange;
@@ -1555,6 +1562,9 @@ let DropDownBase = class DropDownBase extends Component {
1555
1562
  updatePopupState() {
1556
1563
  // Used this method in component side.
1557
1564
  }
1565
+ virtualSelectionAll(state, li, event) {
1566
+ // Used this method in component side.
1567
+ }
1558
1568
  updateRemoteData() {
1559
1569
  this.setListData(this.dataSource, this.fields, this.query);
1560
1570
  }
@@ -1845,10 +1855,14 @@ let DropDownBase = class DropDownBase extends Component {
1845
1855
  }
1846
1856
  }
1847
1857
  updateGroupFixedHeader(element, target) {
1848
- this.fixedHeaderElement.innerHTML = element.innerHTML;
1849
- this.fixedHeaderElement.style.position = 'fixed';
1850
- this.fixedHeaderElement.style.top = this.list.parentElement.offsetTop + this.list.offsetTop + 'px';
1851
- this.fixedHeaderElement.style.display = 'block';
1858
+ if (this.fixedHeaderElement) {
1859
+ if (!isNullOrUndefined(element.innerHTML)) {
1860
+ this.fixedHeaderElement.innerHTML = element.innerHTML;
1861
+ }
1862
+ this.fixedHeaderElement.style.position = 'fixed';
1863
+ this.fixedHeaderElement.style.top = (this.list.parentElement.offsetTop + this.list.offsetTop) - window.scrollY + 'px';
1864
+ this.fixedHeaderElement.style.display = 'block';
1865
+ }
1852
1866
  }
1853
1867
  getValidLi() {
1854
1868
  if (this.isVirtualizationEnabled) {
@@ -2039,12 +2053,15 @@ let DropDownBase = class DropDownBase extends Component {
2039
2053
  * @param {string | number | boolean} value - Specifies given value.
2040
2054
  * @returns {number} Returns the index of the item.
2041
2055
  */
2042
- getIndexByValueFilter(value) {
2056
+ getIndexByValueFilter(value, ulElement) {
2043
2057
  let index;
2044
- const listItems = this.renderItems(this.selectData, this.fields);
2045
- if (listItems && listItems.children) {
2046
- for (let i = 0; i < listItems.children.length; i++) {
2047
- if (!isNullOrUndefined(value) && listItems.children[i].getAttribute('data-value') === value.toString()) {
2058
+ if (!ulElement) {
2059
+ return null;
2060
+ }
2061
+ const listItems = ulElement.querySelectorAll('li' + ':not(.e-list-group-item)');
2062
+ if (listItems) {
2063
+ for (let i = 0; i < listItems.length; i++) {
2064
+ if (!isNullOrUndefined(value) && listItems[i].getAttribute('data-value') === value.toString()) {
2048
2065
  index = i;
2049
2066
  break;
2050
2067
  }
@@ -2205,6 +2222,7 @@ let DropDownBase = class DropDownBase extends Component {
2205
2222
  const group = this.element.querySelector('select>optgroup');
2206
2223
  if ((this.fields.groupBy || !isNullOrUndefined(group)) && !this.isGroupChecking) {
2207
2224
  EventHandler.add(this.list, 'scroll', this.setFloatingHeader, this);
2225
+ EventHandler.add(document, 'scroll', this.updateGroupFixedHeader, this);
2208
2226
  }
2209
2227
  if (this.getModuleName() === 'dropdownbase') {
2210
2228
  if (this.element.getAttribute('tabindex')) {
@@ -2456,12 +2474,15 @@ let DropDownBase = class DropDownBase extends Component {
2456
2474
  * @returns {void}
2457
2475
  */
2458
2476
  destroy() {
2459
- if (document.body.contains(this.list)) {
2460
- EventHandler.remove(this.list, 'scroll', this.setFloatingHeader);
2461
- if (!isNullOrUndefined(this.rippleFun)) {
2462
- this.rippleFun();
2477
+ if (document) {
2478
+ EventHandler.remove(document, 'scroll', this.updateGroupFixedHeader);
2479
+ if (document.body.contains(this.list)) {
2480
+ EventHandler.remove(this.list, 'scroll', this.setFloatingHeader);
2481
+ if (!isNullOrUndefined(this.rippleFun)) {
2482
+ this.rippleFun();
2483
+ }
2484
+ detach(this.list);
2463
2485
  }
2464
- detach(this.list);
2465
2486
  }
2466
2487
  this.liCollections = null;
2467
2488
  this.ulElement = null;
@@ -2539,12 +2560,12 @@ DropDownBase = __decorate([
2539
2560
  * export all modules from current location
2540
2561
  */
2541
2562
 
2542
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2543
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2544
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2545
- 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;
2546
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2547
- };
2563
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2564
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2565
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2566
+ 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;
2567
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2568
+ };
2548
2569
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
2549
2570
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
2550
2571
  // don't use space in classnames
@@ -2605,11 +2626,16 @@ let DropDownList = class DropDownList extends DropDownBase {
2605
2626
  super(options, element);
2606
2627
  this.isListSearched = false;
2607
2628
  this.preventChange = false;
2608
- this.isAngular = false;
2609
2629
  this.isTouched = false;
2610
2630
  this.IsScrollerAtEnd = function () {
2611
2631
  return this.list && this.list.scrollTop + this.list.clientHeight >= this.list.scrollHeight;
2612
2632
  };
2633
+ this.removeAllChildren = function (element) {
2634
+ while (element.children[0]) {
2635
+ this.removeAllChildren(element.children[0]);
2636
+ element.removeChild(element.children[0]);
2637
+ }
2638
+ };
2613
2639
  }
2614
2640
  /**
2615
2641
  * Initialize the event handler.
@@ -3496,7 +3522,7 @@ let DropDownList = class DropDownList extends DropDownBase {
3496
3522
  }
3497
3523
  if (this.allowFiltering && !this.enableVirtualization && this.getModuleName() !== 'autocomplete') {
3498
3524
  let value = this.getItemData().value;
3499
- let filterIndex = this.getIndexByValueFilter(value);
3525
+ let filterIndex = this.getIndexByValueFilter(value, this.actionCompleteData.ulElement);
3500
3526
  if (!isNullOrUndefined(filterIndex)) {
3501
3527
  this.activeIndex = filterIndex;
3502
3528
  }
@@ -3838,7 +3864,7 @@ let DropDownList = class DropDownList extends DropDownBase {
3838
3864
  value = 'null';
3839
3865
  }
3840
3866
  if (this.allowFiltering && !this.enableVirtualization && this.getModuleName() !== 'autocomplete') {
3841
- let filterIndex = this.getIndexByValueFilter(value);
3867
+ let filterIndex = this.getIndexByValueFilter(value, this.actionCompleteData.ulElement);
3842
3868
  if (!isNullOrUndefined(filterIndex)) {
3843
3869
  this.activeIndex = filterIndex;
3844
3870
  }
@@ -3880,7 +3906,7 @@ let DropDownList = class DropDownList extends DropDownBase {
3880
3906
  this.inputElement.style.display = 'block';
3881
3907
  }
3882
3908
  if (!isNullOrUndefined(dataItem.value) && !this.enableVirtualization && this.allowFiltering) {
3883
- this.activeIndex = this.getIndexByValueFilter(dataItem.value);
3909
+ this.activeIndex = this.getIndexByValueFilter(dataItem.value, this.actionCompleteData.ulElement);
3884
3910
  }
3885
3911
  const clearIcon = dropDownListClasses.clearIcon;
3886
3912
  const isFilterElement = this.isFiltering() && this.filterInput && (this.getModuleName() === 'combobox');
@@ -4953,7 +4979,7 @@ let DropDownList = class DropDownList extends DropDownBase {
4953
4979
  this.popupContentElement.setAttribute('id', 'no-record');
4954
4980
  }
4955
4981
  this.inputElement.setAttribute('aria-expanded', 'true');
4956
- this.inputElement.setAttribute('aria-controls', this.element.id);
4982
+ this.inputElement.setAttribute('aria-controls', this.element.id + '_popup');
4957
4983
  const inputParent = this.isFiltering() ? this.filterInput.parentElement : this.inputWrapper.container;
4958
4984
  addClass([inputParent], [dropDownListClasses.inputFocus]);
4959
4985
  const animModel = { name: 'FadeIn', duration: 100 };
@@ -5328,6 +5354,14 @@ let DropDownList = class DropDownList extends DropDownBase {
5328
5354
  this.keyboardEvent = null;
5329
5355
  EventHandler.remove(document, 'mousedown', this.onDocumentClick);
5330
5356
  this.isActive = false;
5357
+ if (this.getModuleName() === 'dropdownlist') {
5358
+ Input.destroy({
5359
+ element: this.filterInput,
5360
+ floatLabelType: this.floatLabelType,
5361
+ properties: { placeholder: this.filterBarPlaceholder },
5362
+ buttons: this.clearIconElement,
5363
+ }, this.clearIconElement);
5364
+ }
5331
5365
  this.filterInputObj = null;
5332
5366
  this.isDropDownClick = false;
5333
5367
  this.preventAutoFill = false;
@@ -5358,6 +5392,11 @@ let DropDownList = class DropDownList extends DropDownBase {
5358
5392
  }
5359
5393
  if (this.allowFiltering && this.getModuleName() === 'dropdownlist') {
5360
5394
  this.filterInput.removeAttribute('aria-activedescendant');
5395
+ this.filterInput.removeAttribute('aria-disabled');
5396
+ this.filterInput.removeAttribute('role');
5397
+ this.filterInput.removeAttribute('autocomplete');
5398
+ this.filterInput.removeAttribute('autocapitalize');
5399
+ this.filterInput.removeAttribute('spellcheck');
5361
5400
  }
5362
5401
  this.filterInput = null;
5363
5402
  }
@@ -5477,6 +5516,7 @@ let DropDownList = class DropDownList extends DropDownBase {
5477
5516
  destroyPopup() {
5478
5517
  this.isPopupOpen = false;
5479
5518
  this.isFilterFocus = false;
5519
+ this.inputElement.removeAttribute('aria-controls');
5480
5520
  if (this.popupObj) {
5481
5521
  this.popupObj.destroy();
5482
5522
  detach(this.popupObj.element);
@@ -5567,7 +5607,6 @@ let DropDownList = class DropDownList extends DropDownBase {
5567
5607
  attributes(this.targetElement(), { 'aria-label': this.getModuleName() });
5568
5608
  this.inputElement.setAttribute('aria-label', this.getModuleName());
5569
5609
  this.inputElement.setAttribute('aria-expanded', 'false');
5570
- this.inputElement.setAttribute('aria-controls', this.element.id + '_popups');
5571
5610
  }
5572
5611
  attributes(this.targetElement(), this.getAriaAttributes());
5573
5612
  this.updateDataAttribute(this.htmlAttributes);
@@ -5784,8 +5823,8 @@ let DropDownList = class DropDownList extends DropDownBase {
5784
5823
  */
5785
5824
  onPropertyChanged(newProp, oldProp) {
5786
5825
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5787
- if (!isNullOrUndefined(newProp.dataSource) && !this.isTouched && (isNullOrUndefined(newProp.value) && isNullOrUndefined(newProp.index)) && !isNullOrUndefined(this.preselectedIndex)) {
5788
- newProp.index = this.preselectedIndex;
5826
+ if (!isNullOrUndefined(newProp.dataSource) && !this.isTouched && (isNullOrUndefined(newProp.value) && isNullOrUndefined(newProp.index)) && !isNullOrUndefined(this.preselectedIndex) && !isNullOrUndefined(this.index)) {
5827
+ newProp.index = this.index;
5789
5828
  }
5790
5829
  if (!isNullOrUndefined(newProp.value) || !isNullOrUndefined(newProp.index)) {
5791
5830
  this.isTouched = true;
@@ -6298,10 +6337,12 @@ let DropDownList = class DropDownList extends DropDownBase {
6298
6337
  this.inputWrapper.container.parentElement.insertBefore(this.element, this.inputWrapper.container);
6299
6338
  detach(this.inputWrapper.container);
6300
6339
  }
6301
- this.hiddenElement = null;
6340
+ delete this.hiddenElement;
6302
6341
  this.filterInput = null;
6303
- this.inputWrapper = null;
6304
6342
  this.keyboardModule = null;
6343
+ if (!isNullOrUndefined(this.ulElement)) {
6344
+ this.removeAllChildren(this.ulElement);
6345
+ }
6305
6346
  this.ulElement = null;
6306
6347
  this.list = null;
6307
6348
  this.clearIconElement = null;
@@ -6325,10 +6366,12 @@ let DropDownList = class DropDownList extends DropDownBase {
6325
6366
  Input.destroy({
6326
6367
  element: this.inputElement,
6327
6368
  floatLabelType: this.floatLabelType,
6328
- properties: this.properties
6369
+ properties: this.properties,
6370
+ buttons: this.inputWrapper.container.querySelectorAll('.e-input-group-icon')[0],
6329
6371
  }, this.clearButton);
6330
6372
  this.clearButton = null;
6331
6373
  this.inputElement = null;
6374
+ this.inputWrapper = null;
6332
6375
  super.destroy();
6333
6376
  }
6334
6377
  /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
@@ -6460,12 +6503,12 @@ DropDownList = __decorate$1([
6460
6503
  * export all modules from current location
6461
6504
  */
6462
6505
 
6463
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6464
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6465
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6466
- 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;
6467
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6468
- };
6506
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6507
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6508
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6509
+ 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;
6510
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6511
+ };
6469
6512
  const RTL = 'e-rtl';
6470
6513
  const DROPDOWNTREE = 'e-ddt';
6471
6514
  const HIDDENELEMENT = 'e-ddt-hidden';
@@ -8029,10 +8072,14 @@ let DropDownTree = class DropDownTree extends Component {
8029
8072
  focusedElement.focus();
8030
8073
  addClass([focusedElement], ['e-node-focus']);
8031
8074
  }
8032
- if (this.checkSelectAll && this.checkBoxElement) {
8033
- const wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
8034
- this.changeState(wrap, 'check');
8035
- this.checkSelectAll = false;
8075
+ if (this.treeObj.checkedNodes.length > 0) {
8076
+ const nodes = this.treeObj.element.querySelectorAll('li');
8077
+ const checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
8078
+ if ((checkedNodes.length === nodes.length || this.checkSelectAll) && this.checkBoxElement) {
8079
+ const wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
8080
+ this.changeState(wrap, 'check');
8081
+ this.checkSelectAll = false;
8082
+ }
8036
8083
  }
8037
8084
  if (this.allowFiltering) {
8038
8085
  removeClass([this.inputWrapper], [INPUTFOCUS]);
@@ -8379,6 +8426,8 @@ let DropDownTree = class DropDownTree extends Component {
8379
8426
  if (this.showCheckBox) {
8380
8427
  return;
8381
8428
  }
8429
+ const eventArgs = this.getEventArgs(args);
8430
+ this.trigger('select', eventArgs);
8382
8431
  let selectedText;
8383
8432
  if (args.isInteracted) {
8384
8433
  const id = getValue('id', args.nodeData).toString();
@@ -8406,8 +8455,6 @@ let DropDownTree = class DropDownTree extends Component {
8406
8455
  this.setMultiSelect();
8407
8456
  }
8408
8457
  }
8409
- const eventArgs = this.getEventArgs(args);
8410
- this.trigger('select', eventArgs);
8411
8458
  if (this.isValueChange && !this.changeOnBlur) {
8412
8459
  this.triggerChangeEvent(this.keyEventArgs);
8413
8460
  this.isValueChange = false;
@@ -9723,12 +9770,12 @@ DropDownTree = __decorate$2([
9723
9770
  * export all modules from current location
9724
9771
  */
9725
9772
 
9726
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9727
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9728
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9729
- 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;
9730
- return c > 3 && r && Object.defineProperty(target, key, r), r;
9731
- };
9773
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9774
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9775
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9776
+ 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;
9777
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
9778
+ };
9732
9779
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
9733
9780
  /// <reference path='../drop-down-list/drop-down-list-model.d.ts'/>
9734
9781
  const SPINNER_CLASS = 'e-atc-spinner-icon';
@@ -10698,12 +10745,12 @@ ComboBox = __decorate$3([
10698
10745
  * export all modules from current location
10699
10746
  */
10700
10747
 
10701
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10702
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10703
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10704
- 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;
10705
- return c > 3 && r && Object.defineProperty(target, key, r), r;
10706
- };
10748
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10749
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10750
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10751
+ 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;
10752
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10753
+ };
10707
10754
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
10708
10755
  /// <reference path='../combo-box/combo-box-model.d.ts'/>
10709
10756
  dropDownListClasses.root = 'e-autocomplete';
@@ -11241,6 +11288,7 @@ function createFloatLabel(overAllWrapper, searchWrapper, element, inputElement,
11241
11288
  element.id = id;
11242
11289
  if (!isNullOrUndefined(element.id) && element.id !== '') {
11243
11290
  floatLabelElement.id = 'label_' + element.id.replace(/ /g, '_');
11291
+ floatLabelElement.setAttribute('for', element.id);
11244
11292
  attributes(inputElement, { 'aria-labelledby': floatLabelElement.id });
11245
11293
  }
11246
11294
  if (!isNullOrUndefined(inputElement.placeholder) && inputElement.placeholder !== '') {
@@ -11368,12 +11416,12 @@ function encodePlaceholder(placeholder) {
11368
11416
  }
11369
11417
  /* eslint-enable valid-jsdoc */
11370
11418
 
11371
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11372
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11373
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
11374
- 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;
11375
- return c > 3 && r && Object.defineProperty(target, key, r), r;
11376
- };
11419
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11420
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11421
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
11422
+ 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;
11423
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
11424
+ };
11377
11425
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
11378
11426
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
11379
11427
  const FOCUS = 'e-input-focus';
@@ -11448,6 +11496,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
11448
11496
  this.resetMainList = null;
11449
11497
  this.resetFilteredData = false;
11450
11498
  this.preventSetCurrentData = false;
11499
+ this.isSelectAllLoop = false;
11451
11500
  this.scrollFocusStatus = false;
11452
11501
  this.keyDownStatus = false;
11453
11502
  this.IsScrollerAtEnd = function () {
@@ -11772,7 +11821,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
11772
11821
  if (!isNullOrUndefined(this.value)) {
11773
11822
  this.tempValues = this.allowObjectBinding ? this.value.slice() : this.value.slice();
11774
11823
  }
11775
- let customValue = this.allowObjectBinding ? this.getDataByValue(value) : this.getFormattedValue(value);
11824
+ let customValue = this.allowObjectBinding ? this.getDataByValue(this.getFormattedValue(value)) : this.getFormattedValue(value);
11776
11825
  if (this.allowCustomValue && (value !== 'false' && customValue === false || (!isNullOrUndefined(customValue) &&
11777
11826
  customValue.toString() === 'NaN'))) {
11778
11827
  customValue = value;
@@ -12146,6 +12195,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
12146
12195
  if (this.enableVirtualization && (this.viewPortInfo.endIndex != 0) && !this.virtualSelectAll) {
12147
12196
  return this.virtualFilterQuery(filterQuery);
12148
12197
  }
12198
+ if (this.virtualSelectAll) {
12199
+ return query ? query.take(this.maximumSelectionLength).requiresCount() : this.query ? this.query.take(this.maximumSelectionLength).requiresCount() : new Query().take(this.maximumSelectionLength).requiresCount();
12200
+ }
12149
12201
  return query ? query : this.query ? this.query : new Query();
12150
12202
  }
12151
12203
  }
@@ -13311,7 +13363,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13311
13363
  this.removeChipSelection();
13312
13364
  this.addChipSelection(temp, e);
13313
13365
  }
13314
- const currentChip = this.allowObjectBinding ? this.getDataByValue(selectedElem.getAttribute('data-value')) : selectedElem.getAttribute('data-value');
13366
+ const currentChip = this.allowObjectBinding ? this.getDataByValue(this.getFormattedValue(selectedElem.getAttribute('data-value'))) : selectedElem.getAttribute('data-value');
13315
13367
  this.removeValue(currentChip, e);
13316
13368
  this.makeTextBoxEmpty();
13317
13369
  }
@@ -13497,7 +13549,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13497
13549
  if (this.enabled && !this.readonly) {
13498
13550
  const element = e.target.parentElement;
13499
13551
  const customVal = element.getAttribute('data-value');
13500
- let value = this.allowObjectBinding ? this.getDataByValue(customVal) : this.getFormattedValue(customVal);
13552
+ let value = this.allowObjectBinding ? this.getDataByValue(this.getFormattedValue(customVal)) : this.getFormattedValue(customVal);
13501
13553
  if (this.allowCustomValue && ((customVal !== 'false' && value === false) ||
13502
13554
  (!isNullOrUndefined(value) && value.toString() === 'NaN'))) {
13503
13555
  value = customVal;
@@ -13587,8 +13639,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13587
13639
  dropDownBaseClasses.selected;
13588
13640
  if (index !== -1) {
13589
13641
  const currentValue = this.allowObjectBinding ? getValue(((this.fields.value) ? this.fields.value : ''), value) : value;
13590
- const element = this.findListElement(this.list, 'li', 'data-value', currentValue);
13591
- const val = this.getDataByValue(value);
13642
+ const element = this.virtualSelectAll ? null : this.findListElement(this.list, 'li', 'data-value', currentValue);
13643
+ const val = this.allowObjectBinding ? value : this.getDataByValue(value);
13592
13644
  const eventArgs = {
13593
13645
  e: eve,
13594
13646
  item: element,
@@ -13771,9 +13823,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13771
13823
  this.value = [];
13772
13824
  }
13773
13825
  let currentValue = this.allowObjectBinding ? this.getDataByValue(value) : value;
13774
- if ((this.allowObjectBinding && !this.isObjectInArray(value, this.value)) || (!this.allowObjectBinding && this.value.indexOf(currentValue) < 0)) {
13826
+ if ((this.allowObjectBinding && !this.isObjectInArray(this.getDataByValue(value), this.value)) || (!this.allowObjectBinding && this.value.indexOf(currentValue) < 0)) {
13775
13827
  this.setProperties({ value: [].concat([], this.value, [currentValue]) }, true);
13776
- if (this.enableVirtualization) {
13828
+ if (this.enableVirtualization && !this.isSelectAllLoop) {
13777
13829
  let data = this.viewWrapper.innerHTML;
13778
13830
  let temp;
13779
13831
  data += (this.value.length === 1) ? '' : this.delimiterChar + ' ';
@@ -14609,7 +14661,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
14609
14661
  if (!this.enableVirtualization) {
14610
14662
  this.listData = this.mainData;
14611
14663
  }
14612
- if (!isNullOrUndefined(this.hiddenElement)) {
14664
+ if (!isNullOrUndefined(this.hiddenElement) && !this.enableVirtualization) {
14613
14665
  this.hiddenElement.innerHTML = '';
14614
14666
  }
14615
14667
  if (!isNullOrUndefined(this.value)) {
@@ -14637,7 +14689,27 @@ let MultiSelect = class MultiSelect extends DropDownBase {
14637
14689
  let textValues = this.text != null && this.text != "" ? this.text + ',' + temp : temp;
14638
14690
  data += temp + delimiterChar + ' ';
14639
14691
  text.push(textValues);
14640
- hiddenElementContent += `<option selected value="${valueItem}">${index}</option>`;
14692
+ hiddenElementContent = this.hiddenElement.innerHTML;
14693
+ if ((e && e.currentTarget && e.currentTarget.classList.contains('e-chips-close')) || (e && (e.key === 'Backspace'))) {
14694
+ var item = e.target.parentElement.getAttribute('data-value');
14695
+ if (e.key === 'Backspace') {
14696
+ const lastChild = this.hiddenElement.lastChild;
14697
+ if (lastChild) {
14698
+ this.hiddenElement.removeChild(lastChild);
14699
+ }
14700
+ }
14701
+ else {
14702
+ this.hiddenElement.childNodes.forEach((option) => {
14703
+ if (option.value === item) {
14704
+ option.parentNode.removeChild(option);
14705
+ }
14706
+ });
14707
+ }
14708
+ hiddenElementContent = this.hiddenElement.innerHTML;
14709
+ }
14710
+ else {
14711
+ hiddenElementContent += "<option selected value=\"" + value + "\">" + index + "</option>";
14712
+ }
14641
14713
  break;
14642
14714
  }
14643
14715
  else {
@@ -14856,7 +14928,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
14856
14928
  }
14857
14929
  updateListSelection(li, e, length) {
14858
14930
  const customVal = li.getAttribute('data-value');
14859
- let value = this.allowObjectBinding ? this.getDataByValue(customVal) : this.getFormattedValue(customVal);
14931
+ let value = this.allowObjectBinding ? this.getDataByValue(this.getFormattedValue(customVal)) : this.getFormattedValue(customVal);
14860
14932
  if (this.allowCustomValue && ((customVal !== 'false' && value === false) ||
14861
14933
  (!isNullOrUndefined(value) && value.toString() === 'NaN'))) {
14862
14934
  value = customVal;
@@ -15560,14 +15632,14 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15560
15632
  let li;
15561
15633
  if (!isNullOrUndefined(this.list)) {
15562
15634
  li = this.list.querySelectorAll(state ?
15563
- 'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide)' :
15564
- 'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
15635
+ 'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide):not(.e-virtual-list)' :
15636
+ 'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide):not(.e-virtual-list)');
15565
15637
  }
15566
15638
  if (this.value && this.value.length && event && event.target
15567
15639
  && closest(event.target, '.e-close-hooker') && this.allowFiltering) {
15568
15640
  li = this.mainList.querySelectorAll(state ?
15569
- 'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide)' :
15570
- 'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
15641
+ 'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide):not(.e-virtual-list)' :
15642
+ 'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide):not(.e-virtual-list)');
15571
15643
  }
15572
15644
  if (this.enableGroupCheckBox && this.mode === 'CheckBox' && !isNullOrUndefined(this.fields.groupBy)) {
15573
15645
  let target = (event ? (this.groupTemplate ? closest(event.target, '.e-list-group-item') : event.target) : null);
@@ -15629,8 +15701,109 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15629
15701
  }
15630
15702
  this.addValidInputClass();
15631
15703
  }
15704
+ virtualSelectionAll(state, li, event) {
15705
+ let index = 0;
15706
+ let length = li.length;
15707
+ let count = this.maximumSelectionLength;
15708
+ if (state) {
15709
+ length = this.virtualSelectAllData && this.virtualSelectAllData.length != 0 ? this.virtualSelectAllData.length : length;
15710
+ this.listData = this.virtualSelectAllData;
15711
+ const ulElement = this.createListItems(this.virtualSelectAllData.slice(0, 30), this.fields);
15712
+ const firstItems = ulElement.querySelectorAll('li');
15713
+ const fragment = document.createDocumentFragment();
15714
+ firstItems.forEach((node) => {
15715
+ fragment.appendChild(node.cloneNode(true));
15716
+ });
15717
+ li.forEach((node) => {
15718
+ fragment.appendChild(node.cloneNode(true));
15719
+ });
15720
+ const concatenatedNodeList = fragment.childNodes;
15721
+ if (this.virtualSelectAllData instanceof Array) {
15722
+ while (index < length && index <= 50 && index < count) {
15723
+ this.isSelectAllTarget = (length === index + 1);
15724
+ if (concatenatedNodeList[index]) {
15725
+ let value = this.allowObjectBinding ? this.getDataByValue(concatenatedNodeList[index].getAttribute('data-value')) : this.getFormattedValue(concatenatedNodeList[index].getAttribute('data-value'));
15726
+ if (((!this.allowObjectBinding && this.value && this.value.indexOf(value) >= 0) || (this.allowObjectBinding && this.indexOfObjectInArray(value, this.value) >= 0))) {
15727
+ index++;
15728
+ continue;
15729
+ }
15730
+ this.updateListSelection(concatenatedNodeList[index], event, length - index);
15731
+ }
15732
+ else {
15733
+ let value = getValue((this.fields.value) ? this.fields.value : '', this.virtualSelectAllData[index]);
15734
+ value = this.allowObjectBinding ? this.getDataByValue(value) : value;
15735
+ if (((!this.allowObjectBinding && this.value && this.value.indexOf(value) >= 0) || (this.allowObjectBinding && this.indexOfObjectInArray(value, this.value) >= 0))) {
15736
+ index++;
15737
+ continue;
15738
+ }
15739
+ if (this.value && value != null && Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(value) < 0) || (this.allowObjectBinding && !this.isObjectInArray(value, this.value)))) {
15740
+ this.dispatchSelect(value, event, null, false, length);
15741
+ }
15742
+ }
15743
+ index++;
15744
+ }
15745
+ if (length > 50) {
15746
+ setTimeout(() => {
15747
+ if (this.virtualSelectAllData && this.virtualSelectAllData.length > 0) {
15748
+ this.virtualSelectAllData.map((obj) => {
15749
+ if (this.value && obj[this.fields.value] != null && Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(obj[this.fields.value]) < 0) || (this.allowObjectBinding && !this.isObjectInArray(obj[this.fields.value], this.value)))) {
15750
+ this.dispatchSelect(obj[this.fields.value], event, null, false, length);
15751
+ }
15752
+ });
15753
+ }
15754
+ this.updatedataValueItems(event);
15755
+ this.isSelectAllLoop = false;
15756
+ if (!this.changeOnBlur) {
15757
+ this.updateValueState(event, this.value, this.tempValues);
15758
+ this.isSelectAll = this.isSelectAll ? !this.isSelectAll : this.isSelectAll;
15759
+ }
15760
+ this.updateHiddenElement();
15761
+ if (this.popupWrapper && li[index - 1] && li[index - 1].classList.contains('e-item-focus')) {
15762
+ const selectAllParent = document.getElementsByClassName('e-selectall-parent')[0];
15763
+ if (selectAllParent && selectAllParent.classList.contains('e-item-focus')) {
15764
+ li[index - 1].classList.remove('e-item-focus');
15765
+ }
15766
+ }
15767
+ }, 0);
15768
+ }
15769
+ }
15770
+ }
15771
+ else {
15772
+ if (this.virtualSelectAllData && this.virtualSelectAllData.length > 0) {
15773
+ this.virtualSelectAllData.map((obj) => {
15774
+ this.virtualSelectAll = true;
15775
+ this.removeValue(this.value[index], event, this.value.length - index);
15776
+ });
15777
+ }
15778
+ this.updatedataValueItems(event);
15779
+ if (!this.changeOnBlur) {
15780
+ this.updateValueState(event, this.value, this.tempValues);
15781
+ this.isSelectAll = this.isSelectAll ? !this.isSelectAll : this.isSelectAll;
15782
+ }
15783
+ this.updateHiddenElement();
15784
+ this.value = [];
15785
+ this.virtualSelectAll = false;
15786
+ if (!isNullOrUndefined(this.viewPortInfo.startIndex) && !isNullOrUndefined(this.viewPortInfo.endIndex)) {
15787
+ this.notify("setCurrentViewDataAsync", {
15788
+ component: this.getModuleName(),
15789
+ module: "VirtualScroll",
15790
+ });
15791
+ }
15792
+ }
15793
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15794
+ const virtualTrackElement = this.list.getElementsByClassName('e-virtual-ddl')[0];
15795
+ if (virtualTrackElement) {
15796
+ (virtualTrackElement).style = this.GetVirtualTrackHeight();
15797
+ }
15798
+ this.UpdateSkeleton();
15799
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15800
+ const virtualContentElement = this.list.getElementsByClassName('e-virtual-ddl-content')[0];
15801
+ if (virtualContentElement) {
15802
+ (virtualContentElement).style = this.getTransformValues();
15803
+ }
15804
+ }
15632
15805
  updateValue(event, li, state) {
15633
- const length = li.length;
15806
+ let length = li.length;
15634
15807
  const beforeSelectArgs = {
15635
15808
  event: event,
15636
15809
  items: state ? li : [],
@@ -15651,95 +15824,14 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15651
15824
  }
15652
15825
  if (!beforeSelectArgs.preventSelectEvent) {
15653
15826
  if (this.enableVirtualization) {
15654
- if (state) {
15655
- this.virtualSelectAll = true;
15827
+ this.virtualSelectAll = true;
15828
+ this.virtualSelectAllState = state;
15829
+ this.CurrentEvent = event;
15830
+ if (!this.virtualSelectAllData) {
15656
15831
  this.resetList(this.dataSource, this.fields, new Query());
15657
- if (this.virtualSelectAllData instanceof Array) {
15658
- for (var i = 0; i < this.virtualSelectAllData.length; i++) {
15659
- if (li[this.skeletonCount + i]) {
15660
- let value = this.allowObjectBinding ? this.getDataByValue(li[this.skeletonCount + i].getAttribute('data-value')) : this.getFormattedValue(li[this.skeletonCount + i].getAttribute('data-value'));
15661
- if (((!this.allowObjectBinding && this.value && this.value.indexOf(value) === 1) || (this.allowObjectBinding && this.indexOfObjectInArray(value, this.value) === 1))) {
15662
- continue;
15663
- }
15664
- this.updateListSelection(li[this.skeletonCount + i], event, length - i);
15665
- }
15666
- else {
15667
- if (this.fields) {
15668
- let value = getValue(this.fields.value, this.virtualSelectAllData[i]);
15669
- value = this.allowObjectBinding ? this.getDataByValue(value) : value;
15670
- if (((!this.allowObjectBinding && this.value && this.value.indexOf(value) === 1) || (this.allowObjectBinding && this.indexOfObjectInArray(value, this.value) === 1))) {
15671
- continue;
15672
- }
15673
- if (this.value && value != null && Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(value) < 0) || (this.allowObjectBinding && !this.isObjectInArray(value, this.value)))) {
15674
- this.dispatchSelect(value, event, null, false, length);
15675
- }
15676
- }
15677
- }
15678
- }
15679
- if (this.virtualSelectAllData && this.value.length != this.virtualSelectAllData.length && this.virtualItemStartIndex != 0) {
15680
- if (this.virtualItemStartIndex > this.itemCount) {
15681
- for (var i = 0; i < this.itemCount; i++) {
15682
- if (this.fields) {
15683
- let value = getValue(this.fields.value, this.virtualSelectAllData[i]);
15684
- value = this.allowObjectBinding ? this.getDataByValue(value) : value;
15685
- if (this.value && value != null && Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(value) < 0) || (this.allowObjectBinding && !this.isObjectInArray(value, this.value)))) {
15686
- this.setProperties({ value: [].concat([], this.value, this.allowObjectBinding ? [this.virtualSelectAllData[i]] : [value]) }, true);
15687
- }
15688
- }
15689
- }
15690
- }
15691
- }
15692
- else {
15693
- for (var i = 0; i < this.virtualItemStartIndex; i++) {
15694
- if (this.fields) {
15695
- var value = getValue(this.fields.value, this.virtualSelectAllData[i]);
15696
- value = this.allowObjectBinding ? this.getDataByValue(value) : value;
15697
- if (Array.isArray(this.value) && ((!this.allowObjectBinding && this.value.indexOf(value) < 0) || (this.allowObjectBinding && !this.isObjectInArray(value, this.value)))) {
15698
- this.setProperties({ value: [].concat([], this.value, this.allowObjectBinding ? [this.virtualSelectAllData[i]] : [value]) }, true);
15699
- }
15700
- }
15701
- }
15702
- }
15703
- }
15704
15832
  }
15705
- else {
15706
- while (index < this.value.length && index <= 50 && index < count && this.value.length > 0) {
15707
- this.removeValue(this.value[index], event, this.value.length - index);
15708
- index++;
15709
- }
15710
- if (length > 50) {
15711
- setTimeout(() => {
15712
- while (index < this.value.length && index < count && this.value.length > 0) {
15713
- this.removeValue(value[index], event, this.value.length - index);
15714
- index++;
15715
- }
15716
- this.updatedataValueItems(event);
15717
- if (!this.changeOnBlur) {
15718
- this.updateValueState(event, this.value, this.tempValues);
15719
- this.isSelectAll = this.isSelectAll ? !this.isSelectAll : this.isSelectAll;
15720
- }
15721
- this.updateHiddenElement();
15722
- }, 0);
15723
- }
15724
- this.value = [];
15725
- this.virtualSelectAll = false;
15726
- if (!isNullOrUndefined(this.viewPortInfo.startIndex) && !isNullOrUndefined(this.viewPortInfo.endIndex)) {
15727
- this.notify("setCurrentViewDataAsync", {
15728
- component: this.getModuleName(),
15729
- module: "VirtualScroll",
15730
- });
15731
- }
15732
- }
15733
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
15734
- const virtualTrackElement = this.list.getElementsByClassName('e-virtual-ddl')[0];
15735
- if (virtualTrackElement) {
15736
- (virtualTrackElement).style = this.GetVirtualTrackHeight();
15737
- }
15738
- this.UpdateSkeleton();
15739
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
15740
- const virtualContentElement = this.list.getElementsByClassName('e-virtual-ddl-content')[0];
15741
- if (virtualContentElement) {
15742
- (virtualContentElement).style = this.getTransformValues();
15833
+ if (this.virtualSelectAllData) {
15834
+ this.virtualSelectionAll(state, li, event);
15743
15835
  }
15744
15836
  }
15745
15837
  else {
@@ -15828,7 +15920,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15828
15920
  this.updateValueState(event, this.value, this.tempValues);
15829
15921
  this.isSelectAll = this.isSelectAll ? !this.isSelectAll : this.isSelectAll;
15830
15922
  }
15831
- this.updateHiddenElement();
15923
+ if ((this.enableVirtualization && this.value && this.value.length > 0) || !this.enableVirtualization) {
15924
+ this.updateHiddenElement();
15925
+ }
15832
15926
  }
15833
15927
  }
15834
15928
  updateHiddenElement() {
@@ -15872,7 +15966,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15872
15966
  }
15873
15967
  if (this.mode === 'CheckBox') {
15874
15968
  this.updateDelimView();
15875
- if (!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) {
15969
+ if ((!(isRemoveAll || this.isSelectAll) && this.isSelectAllTarget) || (this.isSelectAll && this.isSelectAllTarget)) {
15876
15970
  this.updateDelimeter(this.delimiterChar, event);
15877
15971
  }
15878
15972
  this.refreshInputHight();
@@ -15932,7 +16026,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15932
16026
  }
15933
16027
  this.selectAllItem(state, event);
15934
16028
  }
15935
- this.virtualSelectAll = false;
16029
+ if (!(this.dataSource instanceof DataManager) || (this.dataSource instanceof DataManager && this.virtualSelectAllData)) {
16030
+ this.virtualSelectAll = false;
16031
+ }
15936
16032
  }
15937
16033
  /**
15938
16034
  * Get the properties to be maintained in the persisted state.
@@ -17511,12 +17607,12 @@ class CheckBoxSelection {
17511
17607
  * export all modules from current location
17512
17608
  */
17513
17609
 
17514
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17515
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17516
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17517
- 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;
17518
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17519
- };
17610
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17611
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17612
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17613
+ 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;
17614
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
17615
+ };
17520
17616
  var ListBox_1;
17521
17617
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
17522
17618
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
@@ -19980,12 +20076,12 @@ const listBoxClasses = {
19980
20076
  * export all modules from current location
19981
20077
  */
19982
20078
 
19983
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
19984
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19985
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
19986
- 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;
19987
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19988
- };
20079
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
20080
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20081
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20082
+ 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;
20083
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
20084
+ };
19989
20085
  /**
19990
20086
  * The Mention component is used to list someone or something based on user input in textarea, input,
19991
20087
  * or any other editable element from which the user can select.