@syncfusion/ej2-dropdowns 20.2.40 → 20.2.43-1234

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 (381) hide show
  1. package/.eslintrc.json +16 -1
  2. package/CHANGELOG.md +116 -3
  3. package/GitLeaksReport.json +1 -0
  4. package/{README.md → ReadMe.md} +1 -1
  5. package/dist/ej2-dropdowns.min.js +1 -0
  6. package/dist/ej2-dropdowns.umd.min.js +1 -10
  7. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  8. package/dist/es6/ej2-dropdowns.es2015.js +2248 -468
  9. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  10. package/dist/es6/ej2-dropdowns.es5.js +2291 -481
  11. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  12. package/dist/global/ej2-dropdowns.min.js +1 -10
  13. package/dist/global/ej2-dropdowns.min.js.map +1 -1
  14. package/dist/global/index.d.ts +0 -9
  15. package/gitleaks-ci/gitleaks +0 -0
  16. package/gitleaks-ci.tar.gz +0 -0
  17. package/mention.d.ts +4 -0
  18. package/mention.js +4 -0
  19. package/package.json +76 -76
  20. package/src/auto-complete/auto-complete-model.d.ts +12 -11
  21. package/src/auto-complete/auto-complete.d.ts +20 -18
  22. package/src/auto-complete/auto-complete.js +67 -37
  23. package/src/combo-box/combo-box-model.d.ts +17 -17
  24. package/src/combo-box/combo-box.d.ts +33 -33
  25. package/src/combo-box/combo-box.js +33 -29
  26. package/src/common/incremental-search.d.ts +3 -4
  27. package/src/common/incremental-search.js +22 -7
  28. package/src/drop-down-base/drop-down-base-model.d.ts +13 -31
  29. package/src/drop-down-base/drop-down-base.d.ts +22 -41
  30. package/src/drop-down-base/drop-down-base.js +75 -59
  31. package/src/drop-down-list/drop-down-list-model.d.ts +19 -1
  32. package/src/drop-down-list/drop-down-list.d.ts +35 -11
  33. package/src/drop-down-list/drop-down-list.js +195 -110
  34. package/src/drop-down-tree/drop-down-tree-model.d.ts +16 -2
  35. package/src/drop-down-tree/drop-down-tree.d.ts +15 -1
  36. package/src/drop-down-tree/drop-down-tree.js +49 -14
  37. package/src/index.d.ts +1 -0
  38. package/src/index.js +1 -0
  39. package/src/list-box/list-box-model.d.ts +18 -0
  40. package/src/list-box/list-box.d.ts +23 -1
  41. package/src/list-box/list-box.js +78 -35
  42. package/src/mention/index.d.ts +5 -0
  43. package/src/mention/index.js +4 -0
  44. package/src/mention/mention-model.d.ts +285 -0
  45. package/src/mention/mention.d.ts +457 -0
  46. package/src/mention/mention.js +1465 -0
  47. package/src/multi-select/checkbox-selection.js +11 -12
  48. package/src/multi-select/float-label.js +4 -2
  49. package/src/multi-select/multi-select-model.d.ts +1 -1
  50. package/src/multi-select/multi-select.d.ts +10 -5
  51. package/src/multi-select/multi-select.js +312 -188
  52. package/styles/auto-complete/_all.scss +1 -1
  53. package/styles/auto-complete/_bootstrap-dark-definition.scss +1 -1
  54. package/styles/auto-complete/_bootstrap-definition.scss +1 -1
  55. package/styles/auto-complete/_bootstrap4-definition.scss +2 -2
  56. package/styles/auto-complete/_bootstrap5-definition.scss +1 -1
  57. package/styles/auto-complete/_fabric-dark-definition.scss +1 -1
  58. package/styles/auto-complete/_fabric-definition.scss +1 -1
  59. package/styles/auto-complete/_fluent-definition.scss +1 -1
  60. package/styles/auto-complete/_fusionnew-definition.scss +1 -1
  61. package/styles/auto-complete/_highcontrast-definition.scss +1 -1
  62. package/styles/auto-complete/_highcontrast-light-definition.scss +1 -1
  63. package/styles/auto-complete/_material-dark-definition.scss +1 -1
  64. package/styles/auto-complete/_material-definition.scss +1 -1
  65. package/styles/auto-complete/_material3-definition.scss +1 -1
  66. package/styles/auto-complete/_tailwind-definition.scss +1 -1
  67. package/styles/auto-complete/bootstrap-dark.css +3 -1
  68. package/styles/auto-complete/bootstrap.css +3 -1
  69. package/styles/auto-complete/bootstrap4.css +3 -1
  70. package/styles/auto-complete/bootstrap5-dark.css +3 -1
  71. package/styles/auto-complete/bootstrap5.css +3 -1
  72. package/styles/auto-complete/fabric-dark.css +3 -1
  73. package/styles/auto-complete/fabric.css +3 -1
  74. package/styles/auto-complete/fluent-dark.css +3 -1
  75. package/styles/auto-complete/fluent.css +3 -1
  76. package/styles/auto-complete/highcontrast-light.css +3 -1
  77. package/styles/auto-complete/highcontrast.css +3 -1
  78. package/styles/auto-complete/material-dark.css +3 -1
  79. package/styles/auto-complete/material.css +3 -1
  80. package/styles/auto-complete/tailwind-dark.css +3 -1
  81. package/styles/auto-complete/tailwind.css +3 -1
  82. package/styles/bootstrap-dark.css +121 -44
  83. package/styles/bootstrap-dark.scss +1 -0
  84. package/styles/bootstrap.css +121 -44
  85. package/styles/bootstrap.scss +1 -0
  86. package/styles/bootstrap4.css +134 -55
  87. package/styles/bootstrap4.scss +1 -0
  88. package/styles/bootstrap5-dark.css +135 -50
  89. package/styles/bootstrap5-dark.scss +1 -0
  90. package/styles/bootstrap5.css +135 -50
  91. package/styles/bootstrap5.scss +1 -0
  92. package/styles/combo-box/_all.scss +1 -1
  93. package/styles/combo-box/_bootstrap-dark-definition.scss +1 -1
  94. package/styles/combo-box/_bootstrap-definition.scss +1 -1
  95. package/styles/combo-box/_bootstrap4-definition.scss +2 -2
  96. package/styles/combo-box/_bootstrap5-definition.scss +1 -1
  97. package/styles/combo-box/_fabric-dark-definition.scss +1 -1
  98. package/styles/combo-box/_fabric-definition.scss +1 -1
  99. package/styles/combo-box/_fluent-definition.scss +1 -1
  100. package/styles/combo-box/_fusionnew-definition.scss +1 -1
  101. package/styles/combo-box/_highcontrast-definition.scss +1 -1
  102. package/styles/combo-box/_highcontrast-light-definition.scss +1 -1
  103. package/styles/combo-box/_material-dark-definition.scss +1 -1
  104. package/styles/combo-box/_material-definition.scss +1 -1
  105. package/styles/combo-box/_material3-definition.scss +1 -1
  106. package/styles/combo-box/_tailwind-definition.scss +1 -1
  107. package/styles/combo-box/bootstrap-dark.css +3 -1
  108. package/styles/combo-box/bootstrap.css +3 -1
  109. package/styles/combo-box/bootstrap4.css +3 -1
  110. package/styles/combo-box/bootstrap5-dark.css +3 -1
  111. package/styles/combo-box/bootstrap5.css +3 -1
  112. package/styles/combo-box/fabric-dark.css +3 -1
  113. package/styles/combo-box/fabric.css +3 -1
  114. package/styles/combo-box/fluent-dark.css +3 -1
  115. package/styles/combo-box/fluent.css +3 -1
  116. package/styles/combo-box/highcontrast-light.css +3 -1
  117. package/styles/combo-box/highcontrast.css +3 -1
  118. package/styles/combo-box/material-dark.css +3 -1
  119. package/styles/combo-box/material.css +3 -1
  120. package/styles/combo-box/tailwind-dark.css +3 -1
  121. package/styles/combo-box/tailwind.css +3 -1
  122. package/styles/drop-down-base/_all.scss +1 -1
  123. package/styles/drop-down-base/_bootstrap-dark-definition.scss +9 -2
  124. package/styles/drop-down-base/_bootstrap-definition.scss +7 -1
  125. package/styles/drop-down-base/_bootstrap4-definition.scss +7 -1
  126. package/styles/drop-down-base/_bootstrap5-definition.scss +9 -3
  127. package/styles/drop-down-base/_fabric-dark-definition.scss +7 -1
  128. package/styles/drop-down-base/_fabric-definition.scss +7 -1
  129. package/styles/drop-down-base/_fluent-definition.scss +9 -2
  130. package/styles/drop-down-base/_fusionnew-definition.scss +9 -3
  131. package/styles/drop-down-base/_highcontrast-definition.scss +17 -6
  132. package/styles/drop-down-base/_highcontrast-light-definition.scss +19 -7
  133. package/styles/drop-down-base/_layout.scss +44 -3
  134. package/styles/drop-down-base/_material-dark-definition.scss +8 -1
  135. package/styles/drop-down-base/_material-definition.scss +7 -0
  136. package/styles/drop-down-base/_material3-definition.scss +9 -3
  137. package/styles/drop-down-base/_tailwind-definition.scss +9 -3
  138. package/styles/drop-down-base/_theme.scss +4 -4
  139. package/styles/drop-down-base/bootstrap-dark.css +42 -1
  140. package/styles/drop-down-base/bootstrap.css +42 -1
  141. package/styles/drop-down-base/bootstrap4.css +42 -1
  142. package/styles/drop-down-base/bootstrap5-dark.css +42 -1
  143. package/styles/drop-down-base/bootstrap5.css +42 -1
  144. package/styles/drop-down-base/fabric-dark.css +42 -1
  145. package/styles/drop-down-base/fabric.css +42 -1
  146. package/styles/drop-down-base/fluent-dark.css +42 -1
  147. package/styles/drop-down-base/fluent.css +42 -1
  148. package/styles/drop-down-base/highcontrast-light.css +42 -1
  149. package/styles/drop-down-base/highcontrast.css +42 -1
  150. package/styles/drop-down-base/material-dark.css +42 -1
  151. package/styles/drop-down-base/material.css +42 -1
  152. package/styles/drop-down-base/tailwind-dark.css +42 -1
  153. package/styles/drop-down-base/tailwind.css +42 -1
  154. package/styles/drop-down-list/_all.scss +2 -1
  155. package/styles/drop-down-list/_bootstrap-dark-definition.scss +2 -1
  156. package/styles/drop-down-list/_bootstrap-definition.scss +2 -1
  157. package/styles/drop-down-list/_bootstrap4-definition.scss +3 -1
  158. package/styles/drop-down-list/_bootstrap5-definition.scss +3 -3
  159. package/styles/drop-down-list/_fabric-dark-definition.scss +2 -1
  160. package/styles/drop-down-list/_fabric-definition.scss +2 -0
  161. package/styles/drop-down-list/_fluent-definition.scss +2 -1
  162. package/styles/drop-down-list/_fusionnew-definition.scss +3 -3
  163. package/styles/drop-down-list/_highcontrast-definition.scss +21 -10
  164. package/styles/drop-down-list/_highcontrast-light-definition.scss +22 -11
  165. package/styles/drop-down-list/_layout.scss +11 -9
  166. package/styles/drop-down-list/_material-dark-definition.scss +2 -2
  167. package/styles/drop-down-list/_material-definition.scss +1 -0
  168. package/styles/drop-down-list/_material3-definition.scss +3 -3
  169. package/styles/drop-down-list/_tailwind-definition.scss +1 -0
  170. package/styles/drop-down-list/_theme.scss +3 -3
  171. package/styles/drop-down-list/bootstrap-dark.css +8 -0
  172. package/styles/drop-down-list/bootstrap.css +8 -0
  173. package/styles/drop-down-list/bootstrap4.css +8 -0
  174. package/styles/drop-down-list/bootstrap5-dark.css +9 -0
  175. package/styles/drop-down-list/bootstrap5.css +9 -0
  176. package/styles/drop-down-list/fabric-dark.css +8 -0
  177. package/styles/drop-down-list/fabric.css +8 -0
  178. package/styles/drop-down-list/fluent-dark.css +9 -0
  179. package/styles/drop-down-list/fluent.css +9 -0
  180. package/styles/drop-down-list/highcontrast-light.css +8 -0
  181. package/styles/drop-down-list/highcontrast.css +8 -0
  182. package/styles/drop-down-list/icons/_bootstrap.scss +0 -1
  183. package/styles/drop-down-list/icons/_fabric.scss +0 -1
  184. package/styles/drop-down-list/icons/_material.scss +0 -1
  185. package/styles/drop-down-list/material-dark.css +8 -0
  186. package/styles/drop-down-list/material.css +8 -0
  187. package/styles/drop-down-list/tailwind-dark.css +9 -0
  188. package/styles/drop-down-list/tailwind.css +9 -0
  189. package/styles/drop-down-tree/_all.scss +1 -1
  190. package/styles/drop-down-tree/_bootstrap-dark-definition.scss +1 -1
  191. package/styles/drop-down-tree/_bootstrap-definition.scss +1 -1
  192. package/styles/drop-down-tree/_bootstrap4-definition.scss +1 -1
  193. package/styles/drop-down-tree/_bootstrap5-definition.scss +2 -2
  194. package/styles/drop-down-tree/_fabric-dark-definition.scss +1 -1
  195. package/styles/drop-down-tree/_fabric-definition.scss +2 -2
  196. package/styles/drop-down-tree/_fluent-definition.scss +2 -2
  197. package/styles/drop-down-tree/_fusionnew-definition.scss +2 -2
  198. package/styles/drop-down-tree/_highcontrast-definition.scss +1 -1
  199. package/styles/drop-down-tree/_highcontrast-light-definition.scss +1 -1
  200. package/styles/drop-down-tree/_layout.scss +10 -3
  201. package/styles/drop-down-tree/_material-dark-definition.scss +2 -2
  202. package/styles/drop-down-tree/_material-definition.scss +2 -2
  203. package/styles/drop-down-tree/_material3-definition.scss +2 -2
  204. package/styles/drop-down-tree/_tailwind-definition.scss +2 -2
  205. package/styles/drop-down-tree/bootstrap-dark.css +4 -0
  206. package/styles/drop-down-tree/bootstrap.css +4 -0
  207. package/styles/drop-down-tree/bootstrap4.css +4 -0
  208. package/styles/drop-down-tree/bootstrap5-dark.css +9 -1
  209. package/styles/drop-down-tree/bootstrap5.css +9 -1
  210. package/styles/drop-down-tree/fabric-dark.css +4 -0
  211. package/styles/drop-down-tree/fabric.css +4 -0
  212. package/styles/drop-down-tree/fluent-dark.css +5 -0
  213. package/styles/drop-down-tree/fluent.css +5 -0
  214. package/styles/drop-down-tree/highcontrast-light.css +4 -0
  215. package/styles/drop-down-tree/highcontrast.css +4 -0
  216. package/styles/drop-down-tree/icons/_bootstrap.scss +0 -1
  217. package/styles/drop-down-tree/icons/_bootstrap4.scss +0 -1
  218. package/styles/drop-down-tree/icons/_fabric.scss +0 -1
  219. package/styles/drop-down-tree/icons/_highcontrast-light.scss +0 -1
  220. package/styles/drop-down-tree/icons/_highcontrast.scss +0 -1
  221. package/styles/drop-down-tree/icons/_material-dark.scss +0 -1
  222. package/styles/drop-down-tree/icons/_material.scss +0 -1
  223. package/styles/drop-down-tree/material-dark.css +4 -0
  224. package/styles/drop-down-tree/material.css +4 -0
  225. package/styles/drop-down-tree/tailwind-dark.css +5 -0
  226. package/styles/drop-down-tree/tailwind.css +5 -0
  227. package/styles/fabric-dark.css +129 -52
  228. package/styles/fabric-dark.scss +1 -0
  229. package/styles/fabric.css +129 -52
  230. package/styles/fabric.scss +1 -0
  231. package/styles/fluent-dark.css +129 -47
  232. package/styles/fluent-dark.scss +1 -0
  233. package/styles/fluent.css +129 -47
  234. package/styles/fluent.scss +1 -0
  235. package/styles/highcontrast-light.css +124 -44
  236. package/styles/highcontrast-light.scss +1 -0
  237. package/styles/highcontrast.css +133 -53
  238. package/styles/highcontrast.scss +1 -0
  239. package/styles/list-box/_all.scss +1 -1
  240. package/styles/list-box/_bootstrap-dark-definition.scss +2 -0
  241. package/styles/list-box/_bootstrap-definition.scss +1 -0
  242. package/styles/list-box/_bootstrap4-definition.scss +1 -0
  243. package/styles/list-box/_bootstrap5-definition.scss +3 -0
  244. package/styles/list-box/_fabric-dark-definition.scss +3 -1
  245. package/styles/list-box/_fabric-definition.scss +1 -0
  246. package/styles/list-box/_fluent-definition.scss +3 -0
  247. package/styles/list-box/_fusionnew-definition.scss +1 -0
  248. package/styles/list-box/_highcontrast-definition.scss +1 -0
  249. package/styles/list-box/_highcontrast-light-definition.scss +3 -1
  250. package/styles/list-box/_layout.scss +8 -17
  251. package/styles/list-box/_material-dark-definition.scss +2 -0
  252. package/styles/list-box/_material-definition.scss +1 -0
  253. package/styles/list-box/_material3-definition.scss +1 -0
  254. package/styles/list-box/_tailwind-definition.scss +3 -0
  255. package/styles/list-box/_theme.scss +11 -25
  256. package/styles/list-box/bootstrap-dark.css +12 -33
  257. package/styles/list-box/bootstrap.css +14 -35
  258. package/styles/list-box/bootstrap4.css +14 -35
  259. package/styles/list-box/bootstrap5-dark.css +15 -36
  260. package/styles/list-box/bootstrap5.css +15 -36
  261. package/styles/list-box/fabric-dark.css +12 -33
  262. package/styles/list-box/fabric.css +14 -35
  263. package/styles/list-box/fluent-dark.css +15 -36
  264. package/styles/list-box/fluent.css +15 -36
  265. package/styles/list-box/highcontrast-light.css +12 -33
  266. package/styles/list-box/highcontrast.css +14 -35
  267. package/styles/list-box/icons/_bootstrap-dark.scss +2 -2
  268. package/styles/list-box/icons/_bootstrap.scss +1 -1
  269. package/styles/list-box/icons/_bootstrap4.scss +1 -1
  270. package/styles/list-box/icons/_bootstrap5.scss +1 -1
  271. package/styles/list-box/icons/_fabric-dark.scss +1 -1
  272. package/styles/list-box/icons/_fabric.scss +1 -1
  273. package/styles/list-box/icons/_fluent.scss +1 -1
  274. package/styles/list-box/icons/_fusionnew.scss +1 -1
  275. package/styles/list-box/icons/_highcontrast-light.scss +1 -1
  276. package/styles/list-box/icons/_highcontrast.scss +1 -1
  277. package/styles/list-box/icons/_material-dark.scss +1 -1
  278. package/styles/list-box/icons/_material.scss +2 -2
  279. package/styles/list-box/icons/_material3.scss +1 -1
  280. package/styles/list-box/icons/_tailwind-dark.scss +1 -1
  281. package/styles/list-box/icons/_tailwind.scss +1 -1
  282. package/styles/list-box/material-dark.css +12 -33
  283. package/styles/list-box/material.css +14 -35
  284. package/styles/list-box/tailwind-dark.css +15 -36
  285. package/styles/list-box/tailwind.css +15 -36
  286. package/styles/material-dark.css +120 -43
  287. package/styles/material-dark.scss +1 -0
  288. package/styles/material.css +120 -43
  289. package/styles/material.scss +1 -0
  290. package/styles/mention/_all.scss +1 -0
  291. package/styles/mention/_bootstrap-dark-definition.scss +3 -0
  292. package/styles/mention/_bootstrap-definition.scss +3 -0
  293. package/styles/mention/_bootstrap4-definition.scss +3 -0
  294. package/styles/mention/_bootstrap5-dark-definition.scss +1 -0
  295. package/styles/mention/_bootstrap5-definition.scss +1 -0
  296. package/styles/mention/_fabric-dark-definition.scss +2 -0
  297. package/styles/mention/_fabric-definition.scss +3 -0
  298. package/styles/mention/_fluent-dark-definition.scss +1 -0
  299. package/styles/mention/_fluent-definition.scss +1 -0
  300. package/styles/mention/_fusionnew-definition.scss +1 -0
  301. package/styles/mention/_highcontrast-definition.scss +3 -0
  302. package/styles/mention/_highcontrast-light-definition.scss +3 -0
  303. package/styles/mention/_layout.scss +6 -0
  304. package/styles/mention/_material-dark-definition.scss +3 -0
  305. package/styles/mention/_material-definition.scss +3 -0
  306. package/styles/mention/_material3-definition.scss +1 -0
  307. package/styles/mention/_tailwind-dark-definition.scss +1 -0
  308. package/styles/mention/_tailwind-definition.scss +1 -0
  309. package/styles/mention/bootstrap-dark.css +29 -0
  310. package/styles/mention/bootstrap-dark.scss +6 -0
  311. package/styles/mention/bootstrap.css +29 -0
  312. package/styles/mention/bootstrap.scss +6 -0
  313. package/styles/mention/bootstrap4.css +47 -0
  314. package/styles/mention/bootstrap4.scss +6 -0
  315. package/styles/mention/bootstrap5-dark.css +58 -0
  316. package/styles/mention/bootstrap5-dark.scss +6 -0
  317. package/styles/mention/bootstrap5.css +58 -0
  318. package/styles/mention/bootstrap5.scss +6 -0
  319. package/styles/mention/fabric-dark.css +29 -0
  320. package/styles/mention/fabric-dark.scss +6 -0
  321. package/styles/mention/fabric.css +29 -0
  322. package/styles/mention/fabric.scss +6 -0
  323. package/styles/mention/fluent-dark.css +58 -0
  324. package/styles/mention/fluent-dark.scss +6 -0
  325. package/styles/mention/fluent.css +58 -0
  326. package/styles/mention/fluent.scss +6 -0
  327. package/styles/mention/highcontrast-light.css +43 -0
  328. package/styles/mention/highcontrast-light.scss +6 -0
  329. package/styles/mention/highcontrast.css +43 -0
  330. package/styles/mention/highcontrast.scss +6 -0
  331. package/styles/mention/material-dark.css +29 -0
  332. package/styles/mention/material-dark.scss +6 -0
  333. package/styles/mention/material.css +29 -0
  334. package/styles/mention/material.scss +6 -0
  335. package/styles/mention/tailwind-dark.css +68 -0
  336. package/styles/mention/tailwind-dark.scss +6 -0
  337. package/styles/mention/tailwind.css +68 -0
  338. package/styles/mention/tailwind.scss +6 -0
  339. package/styles/multi-select/_all.scss +1 -1
  340. package/styles/multi-select/_bootstrap-dark-definition.scss +11 -1
  341. package/styles/multi-select/_bootstrap-definition.scss +9 -0
  342. package/styles/multi-select/_bootstrap4-definition.scss +20 -9
  343. package/styles/multi-select/_bootstrap5-definition.scss +11 -3
  344. package/styles/multi-select/_fabric-dark-definition.scss +16 -7
  345. package/styles/multi-select/_fabric-definition.scss +15 -6
  346. package/styles/multi-select/_fluent-definition.scss +11 -2
  347. package/styles/multi-select/_fusionnew-definition.scss +10 -2
  348. package/styles/multi-select/_highcontrast-definition.scss +59 -29
  349. package/styles/multi-select/_highcontrast-light-definition.scss +55 -25
  350. package/styles/multi-select/_layout.scss +91 -78
  351. package/styles/multi-select/_material-dark-definition.scss +10 -1
  352. package/styles/multi-select/_material-definition.scss +8 -0
  353. package/styles/multi-select/_material3-definition.scss +9 -2
  354. package/styles/multi-select/_tailwind-definition.scss +11 -4
  355. package/styles/multi-select/_theme.scss +20 -21
  356. package/styles/multi-select/bootstrap-dark.css +34 -8
  357. package/styles/multi-select/bootstrap.css +34 -8
  358. package/styles/multi-select/bootstrap4.css +46 -19
  359. package/styles/multi-select/bootstrap5-dark.css +38 -11
  360. package/styles/multi-select/bootstrap5.css +38 -11
  361. package/styles/multi-select/fabric-dark.css +42 -16
  362. package/styles/multi-select/fabric.css +42 -16
  363. package/styles/multi-select/fluent-dark.css +36 -9
  364. package/styles/multi-select/fluent.css +36 -9
  365. package/styles/multi-select/highcontrast-light.css +37 -8
  366. package/styles/multi-select/highcontrast.css +46 -17
  367. package/styles/multi-select/icons/_bootstrap5.scss +0 -1
  368. package/styles/multi-select/icons/_fluent.scss +0 -1
  369. package/styles/multi-select/icons/_fusionnew.scss +0 -1
  370. package/styles/multi-select/icons/_material-dark.scss +53 -54
  371. package/styles/multi-select/icons/_material.scss +53 -54
  372. package/styles/multi-select/icons/_material3.scss +0 -1
  373. package/styles/multi-select/icons/_tailwind.scss +0 -1
  374. package/styles/multi-select/material-dark.css +33 -7
  375. package/styles/multi-select/material.css +33 -7
  376. package/styles/multi-select/tailwind-dark.css +38 -9
  377. package/styles/multi-select/tailwind.css +38 -9
  378. package/styles/tailwind-dark.css +132 -47
  379. package/styles/tailwind-dark.scss +1 -0
  380. package/styles/tailwind.css +132 -47
  381. package/styles/tailwind.scss +1 -0
@@ -28,7 +28,7 @@ export interface ComboBoxModel extends DropDownListModel{
28
28
  * {% codeBlock src='combobox/htmlAttributes/index.md' %}{% endcodeBlock %}
29
29
  *
30
30
  * @default {}
31
-
31
+ * @deprecated
32
32
  */
33
33
  htmlAttributes?: { [key: string]: string };
34
34
 
@@ -43,7 +43,7 @@ export interface ComboBoxModel extends DropDownListModel{
43
43
  * {% codeBlock src="combobox/allow-filtering-api/index.html" %}{% endcodeBlock %}
44
44
  *
45
45
  * @default false
46
-
46
+ * @deprecated
47
47
  */
48
48
  allowFiltering?: boolean;
49
49
 
@@ -54,7 +54,7 @@ export interface ComboBoxModel extends DropDownListModel{
54
54
  * {% codeBlock src='combobox/query/index.md' %}{% endcodeBlock %}
55
55
  *
56
56
  * @default null
57
-
57
+ * @deprecated
58
58
  */
59
59
  query?: Query;
60
60
 
@@ -66,7 +66,7 @@ export interface ComboBoxModel extends DropDownListModel{
66
66
  * {% codeBlock src="combobox/index-api/index.html" %}{% endcodeBlock %}
67
67
  *
68
68
  * @default null
69
-
69
+ * @deprecated
70
70
  */
71
71
  index?: number;
72
72
 
@@ -82,7 +82,7 @@ export interface ComboBoxModel extends DropDownListModel{
82
82
  * Enable or disable rendering component in right to left direction.
83
83
  *
84
84
  * @default false
85
-
85
+ * @deprecated
86
86
  */
87
87
  enableRtl?: boolean;
88
88
 
@@ -124,7 +124,7 @@ export interface ComboBoxModel extends DropDownListModel{
124
124
  * @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
125
125
  * @aspType Syncfusion.EJ2.Inputs.FloatLabelType
126
126
  * @isEnumeration true
127
-
127
+ * @deprecated
128
128
  */
129
129
  floatLabelType?: FloatLabelType;
130
130
 
@@ -133,7 +133,7 @@ export interface ComboBoxModel extends DropDownListModel{
133
133
  *
134
134
  * @default null
135
135
  * @private
136
-
136
+ * @deprecated
137
137
  */
138
138
  filterBarPlaceholder?: string;
139
139
 
@@ -141,7 +141,7 @@ export interface ComboBoxModel extends DropDownListModel{
141
141
  * Sets CSS classes to the root element of the component that allows customization of appearance.
142
142
  *
143
143
  * @default null
144
-
144
+ * @deprecated
145
145
  */
146
146
  cssClass?: string;
147
147
 
@@ -150,7 +150,7 @@ export interface ComboBoxModel extends DropDownListModel{
150
150
  * > For more details about the available template options refer to [`Template`](../../drop-down-list/templates) documentation.
151
151
  *
152
152
  * @default null
153
-
153
+ * @deprecated
154
154
  */
155
155
  headerTemplate?: string;
156
156
 
@@ -159,7 +159,7 @@ export interface ComboBoxModel extends DropDownListModel{
159
159
  * > For more details about the available template options refer to [`Template`](../../drop-down-list/templates) documentation.
160
160
  *
161
161
  * @default null
162
-
162
+ * @deprecated
163
163
  */
164
164
  footerTemplate?: string;
165
165
 
@@ -167,7 +167,7 @@ export interface ComboBoxModel extends DropDownListModel{
167
167
  * Specifies a short hint that describes the expected value of the DropDownList component.
168
168
  *
169
169
  * @default null
170
-
170
+ * @deprecated
171
171
  */
172
172
  placeholder?: string;
173
173
 
@@ -177,7 +177,7 @@ export interface ComboBoxModel extends DropDownListModel{
177
177
  *
178
178
  * @default '100%'
179
179
  * @aspType string
180
-
180
+ * @deprecated
181
181
  */
182
182
  width?: string | number;
183
183
 
@@ -188,7 +188,7 @@ export interface ComboBoxModel extends DropDownListModel{
188
188
  *
189
189
  * @default '300px'
190
190
  * @aspType string
191
-
191
+ * @deprecated
192
192
  */
193
193
  popupHeight?: string | number;
194
194
 
@@ -200,7 +200,7 @@ export interface ComboBoxModel extends DropDownListModel{
200
200
  *
201
201
  * @default '100%'
202
202
  * @aspType string
203
-
203
+ * @deprecated
204
204
  */
205
205
  popupWidth?: string | number;
206
206
 
@@ -208,7 +208,7 @@ export interface ComboBoxModel extends DropDownListModel{
208
208
  * When set to true, the user interactions on the component are disabled.
209
209
  *
210
210
  * @default false
211
-
211
+ * @deprecated
212
212
  */
213
213
  readonly?: boolean;
214
214
 
@@ -216,7 +216,7 @@ export interface ComboBoxModel extends DropDownListModel{
216
216
  * Gets or sets the display text of the selected item in the component.
217
217
  *
218
218
  * @default null
219
-
219
+ * @deprecated
220
220
  */
221
221
  text?: string;
222
222
 
@@ -225,7 +225,7 @@ export interface ComboBoxModel extends DropDownListModel{
225
225
  *
226
226
  * @default null
227
227
  * @isGenericType true
228
-
228
+ * @deprecated
229
229
  */
230
230
  value?: number | string | boolean;
231
231
 
@@ -42,7 +42,7 @@ export declare class ComboBox extends DropDownList {
42
42
  * {% codeBlock src='combobox/htmlAttributes/index.md' %}{% endcodeBlock %}
43
43
  *
44
44
  * @default {}
45
-
45
+ * @deprecated
46
46
  */
47
47
  htmlAttributes: {
48
48
  [key: string]: string;
@@ -58,7 +58,7 @@ export declare class ComboBox extends DropDownList {
58
58
  * {% codeBlock src="combobox/allow-filtering-api/index.html" %}{% endcodeBlock %}
59
59
  *
60
60
  * @default false
61
-
61
+ * @deprecated
62
62
  */
63
63
  allowFiltering: boolean;
64
64
  /**
@@ -68,7 +68,7 @@ export declare class ComboBox extends DropDownList {
68
68
  * {% codeBlock src='combobox/query/index.md' %}{% endcodeBlock %}
69
69
  *
70
70
  * @default null
71
-
71
+ * @deprecated
72
72
  */
73
73
  query: Query;
74
74
  /**
@@ -79,7 +79,7 @@ export declare class ComboBox extends DropDownList {
79
79
  * {% codeBlock src="combobox/index-api/index.html" %}{% endcodeBlock %}
80
80
  *
81
81
  * @default null
82
-
82
+ * @deprecated
83
83
  */
84
84
  index: number;
85
85
  /**
@@ -93,7 +93,7 @@ export declare class ComboBox extends DropDownList {
93
93
  * Enable or disable rendering component in right to left direction.
94
94
  *
95
95
  * @default false
96
-
96
+ * @deprecated
97
97
  */
98
98
  enableRtl: boolean;
99
99
  /**
@@ -131,7 +131,7 @@ export declare class ComboBox extends DropDownList {
131
131
  * @default Syncfusion.EJ2.Inputs.FloatLabelType.Never
132
132
  * @aspType Syncfusion.EJ2.Inputs.FloatLabelType
133
133
  * @isEnumeration true
134
-
134
+ * @deprecated
135
135
  */
136
136
  floatLabelType: FloatLabelType;
137
137
  /**
@@ -139,14 +139,14 @@ export declare class ComboBox extends DropDownList {
139
139
  *
140
140
  * @default null
141
141
  * @private
142
-
142
+ * @deprecated
143
143
  */
144
144
  filterBarPlaceholder: string;
145
145
  /**
146
146
  * Sets CSS classes to the root element of the component that allows customization of appearance.
147
147
  *
148
148
  * @default null
149
-
149
+ * @deprecated
150
150
  */
151
151
  cssClass: string;
152
152
  /**
@@ -154,7 +154,7 @@ export declare class ComboBox extends DropDownList {
154
154
  * > For more details about the available template options refer to [`Template`](../../drop-down-list/templates) documentation.
155
155
  *
156
156
  * @default null
157
-
157
+ * @deprecated
158
158
  */
159
159
  headerTemplate: string;
160
160
  /**
@@ -162,14 +162,14 @@ export declare class ComboBox extends DropDownList {
162
162
  * > For more details about the available template options refer to [`Template`](../../drop-down-list/templates) documentation.
163
163
  *
164
164
  * @default null
165
-
165
+ * @deprecated
166
166
  */
167
167
  footerTemplate: string;
168
168
  /**
169
169
  * Specifies a short hint that describes the expected value of the DropDownList component.
170
170
  *
171
171
  * @default null
172
-
172
+ * @deprecated
173
173
  */
174
174
  placeholder: string;
175
175
  /**
@@ -178,7 +178,7 @@ export declare class ComboBox extends DropDownList {
178
178
  *
179
179
  * @default '100%'
180
180
  * @aspType string
181
-
181
+ * @deprecated
182
182
  */
183
183
  width: string | number;
184
184
  /**
@@ -188,7 +188,7 @@ export declare class ComboBox extends DropDownList {
188
188
  *
189
189
  * @default '300px'
190
190
  * @aspType string
191
-
191
+ * @deprecated
192
192
  */
193
193
  popupHeight: string | number;
194
194
  /**
@@ -199,21 +199,21 @@ export declare class ComboBox extends DropDownList {
199
199
  *
200
200
  * @default '100%'
201
201
  * @aspType string
202
-
202
+ * @deprecated
203
203
  */
204
204
  popupWidth: string | number;
205
205
  /**
206
206
  * When set to true, the user interactions on the component are disabled.
207
207
  *
208
208
  * @default false
209
-
209
+ * @deprecated
210
210
  */
211
211
  readonly: boolean;
212
212
  /**
213
213
  * Gets or sets the display text of the selected item in the component.
214
214
  *
215
215
  * @default null
216
-
216
+ * @deprecated
217
217
  */
218
218
  text: string;
219
219
  /**
@@ -221,7 +221,7 @@ export declare class ComboBox extends DropDownList {
221
221
  *
222
222
  * @default null
223
223
  * @isGenericType true
224
-
224
+ * @deprecated
225
225
  */
226
226
  value: number | string | boolean;
227
227
  /**
@@ -265,14 +265,14 @@ export declare class ComboBox extends DropDownList {
265
265
  * Shows the spinner loader.
266
266
  *
267
267
  * @returns {void}
268
-
268
+ * @deprecated
269
269
  */
270
270
  showSpinner(): void;
271
271
  /**
272
272
  * Hides the spinner loader.
273
273
  *
274
274
  * @returns {void}
275
-
275
+ * @deprecated
276
276
  */
277
277
  hideSpinner(): void;
278
278
  protected setAutoFill(activeElement: Element, isHover?: boolean): void;
@@ -318,10 +318,10 @@ export declare class ComboBox extends DropDownList {
318
318
  * Adds a new item to the combobox popup list. By default, new item appends to the list as the last item,
319
319
  * but you can insert based on the index parameter.
320
320
  *
321
- * @param { Object[] } items - Specifies an array of JSON data or a JSON data.
321
+ * @param { Object[] } items - Specifies an array of JSON data or a JSON data.
322
322
  * @param { number } itemIndex - Specifies the index to place the newly added item in the popup list.
323
323
  * @returns {void}
324
-
324
+ * @deprecated
325
325
  */
326
326
  addItem(items: {
327
327
  [key: string]: Object;
@@ -331,11 +331,11 @@ export declare class ComboBox extends DropDownList {
331
331
  /**
332
332
  * To filter the data from given data source by using query
333
333
  *
334
- * @param {Object[] | DataManager } dataSource - Set the data source to filter.
335
- * @param {Query} query - Specify the query to filter the data.
336
- * @param {FieldSettingsModel} fields - Specify the fields to map the column in the data table.
334
+ * @param {Object[] | DataManager } dataSource - Set the data source to filter.
335
+ * @param {Query} query - Specify the query to filter the data.
336
+ * @param {FieldSettingsModel} fields - Specify the fields to map the column in the data table.
337
337
  * @returns {void}
338
-
338
+ * @deprecated
339
339
  */
340
340
  filter(dataSource: {
341
341
  [key: string]: Object;
@@ -344,16 +344,16 @@ export declare class ComboBox extends DropDownList {
344
344
  * Opens the popup that displays the list of items.
345
345
  *
346
346
  * @returns {void}
347
-
347
+ * @deprecated
348
348
  */
349
- showPopup(): void;
349
+ showPopup(e?: MouseEvent | KeyboardEventArgs | TouchEvent): void;
350
350
  /**
351
351
  * Hides the popup if it is in open state.
352
352
  *
353
353
  * @returns {void}
354
-
354
+ * @deprecated
355
355
  */
356
- hidePopup(e?: MouseEvent | KeyboardEventArgs): void;
356
+ hidePopup(e?: MouseEvent | KeyboardEventArgs | TouchEvent): void;
357
357
  /**
358
358
  * Sets the focus to the component for interaction.
359
359
  *
@@ -364,21 +364,21 @@ export declare class ComboBox extends DropDownList {
364
364
  * Allows you to clear the selected values from the component.
365
365
  *
366
366
  * @returns {void}
367
-
367
+ * @deprecated
368
368
  */
369
369
  clear(): void;
370
370
  /**
371
371
  * Moves the focus from the component if the component is already focused.
372
372
  *
373
373
  * @returns {void}
374
-
374
+ * @deprecated
375
375
  */
376
376
  focusOut(e?: MouseEvent | KeyboardEventArgs): void;
377
377
  /**
378
378
  * Gets all the list items bound on this component.
379
379
  *
380
380
  * @returns {Element[]}
381
-
381
+ * @deprecated
382
382
  */
383
383
  getItems(): Element[];
384
384
  /**
@@ -386,7 +386,7 @@ export declare class ComboBox extends DropDownList {
386
386
  *
387
387
  * @param { string | number } value - Specifies the value of the list item.
388
388
  * @returns {Object}
389
-
389
+ * @deprecated
390
390
  */
391
391
  getDataByValue(value: string | number | boolean): {
392
392
  [key: string]: Object;
@@ -178,15 +178,12 @@ var ComboBox = /** @class */ (function (_super) {
178
178
  };
179
179
  ComboBox.prototype.getAriaAttributes = function () {
180
180
  var ariaAttributes = {
181
- 'aria-owns': this.element.id + '_options',
182
181
  'role': 'combobox',
183
182
  'aria-autocomplete': 'both',
184
183
  'aria-labelledby': this.hiddenElement.id,
185
- 'aria-hasPopup': 'true',
186
184
  'aria-expanded': 'false',
187
185
  'aria-readonly': this.readonly.toString(),
188
186
  'autocomplete': 'off',
189
- 'autocorrect': 'off',
190
187
  'autocapitalize': 'off',
191
188
  'spellcheck': 'false'
192
189
  };
@@ -229,7 +226,7 @@ var ComboBox = /** @class */ (function (_super) {
229
226
  };
230
227
  ComboBox.prototype.getFocusElement = function () {
231
228
  var dataItem = this.isSelectCustom ? { text: '' } : this.getItemData();
232
- var selected = this.list.querySelector('.' + dropDownListClasses.selected);
229
+ var selected = !isNullOrUndefined(this.list) ? this.list.querySelector('.' + dropDownListClasses.selected) : this.list;
233
230
  var isSelected = dataItem.text === this.inputElement.value && !isNullOrUndefined(selected);
234
231
  if (isSelected) {
235
232
  return selected;
@@ -237,7 +234,9 @@ var ComboBox = /** @class */ (function (_super) {
237
234
  if ((Browser.isDevice && !this.isDropDownClick || !Browser.isDevice) &&
238
235
  !isNullOrUndefined(this.liCollections) && this.liCollections.length > 0) {
239
236
  var inputValue = this.inputElement.value;
240
- var activeItem = Search(inputValue, this.liCollections, this.filterType, true);
237
+ var dataSource = this.sortedData;
238
+ var type = this.typeOfData(dataSource).typeof;
239
+ var activeItem = Search(inputValue, this.liCollections, this.filterType, true, dataSource, this.fields, type);
241
240
  var activeElement = activeItem.item;
242
241
  if (!isNullOrUndefined(activeElement)) {
243
242
  var count = this.getIndexByValue(activeElement.getAttribute('data-value')) - 1;
@@ -278,14 +277,14 @@ var ComboBox = /** @class */ (function (_super) {
278
277
  this.itemData = this.getDataByValue(this.value);
279
278
  var dataItem = this.getItemData();
280
279
  if (!(this.allowCustom && isNullOrUndefined(dataItem.value) && isNullOrUndefined(dataItem.text))) {
281
- this.setProperties({ 'value': dataItem.value, 'text': dataItem.text }, !this.allowCustom);
280
+ this.setProperties({ 'value': dataItem.value }, !this.allowCustom);
282
281
  }
283
282
  };
284
283
  /**
285
284
  * Shows the spinner loader.
286
285
  *
287
286
  * @returns {void}
288
-
287
+ * @deprecated
289
288
  */
290
289
  ComboBox.prototype.showSpinner = function () {
291
290
  if (isNullOrUndefined(this.spinnerElement)) {
@@ -305,7 +304,7 @@ var ComboBox = /** @class */ (function (_super) {
305
304
  * Hides the spinner loader.
306
305
  *
307
306
  * @returns {void}
308
-
307
+ * @deprecated
309
308
  */
310
309
  ComboBox.prototype.hideSpinner = function () {
311
310
  if (!isNullOrUndefined(this.spinnerElement)) {
@@ -387,9 +386,11 @@ var ComboBox = /** @class */ (function (_super) {
387
386
  }
388
387
  else if (this.inputElement.value === '') {
389
388
  this.activeIndex = null;
390
- this.list.scrollTop = 0;
391
- var focusItem = this.list.querySelector('.' + dropDownListClasses.li);
392
- this.setHoverList(focusItem);
389
+ if (!isNullOrUndefined(this.list)) {
390
+ this.list.scrollTop = 0;
391
+ var focusItem = this.list.querySelector('.' + dropDownListClasses.li);
392
+ this.setHoverList(focusItem);
393
+ }
393
394
  }
394
395
  else {
395
396
  this.activeIndex = null;
@@ -400,7 +401,7 @@ var ComboBox = /** @class */ (function (_super) {
400
401
  }
401
402
  };
402
403
  ComboBox.prototype.incrementalSearch = function (e) {
403
- this.showPopup();
404
+ this.showPopup(e);
404
405
  if (!isNullOrUndefined(this.listData)) {
405
406
  this.inlineSearch(e);
406
407
  e.preventDefault();
@@ -486,6 +487,7 @@ var ComboBox = /** @class */ (function (_super) {
486
487
  this.preventFocus = false;
487
488
  }
488
489
  this.onFocus(e);
490
+ Input.calculateWidth(this.inputElement, this.inputWrapper.container);
489
491
  };
490
492
  ComboBox.prototype.dropDownClick = function (e) {
491
493
  e.preventDefault();
@@ -637,10 +639,10 @@ var ComboBox = /** @class */ (function (_super) {
637
639
  * Adds a new item to the combobox popup list. By default, new item appends to the list as the last item,
638
640
  * but you can insert based on the index parameter.
639
641
  *
640
- * @param { Object[] } items - Specifies an array of JSON data or a JSON data.
642
+ * @param { Object[] } items - Specifies an array of JSON data or a JSON data.
641
643
  * @param { number } itemIndex - Specifies the index to place the newly added item in the popup list.
642
644
  * @returns {void}
643
-
645
+ * @deprecated
644
646
  */
645
647
  ComboBox.prototype.addItem = function (items, itemIndex) {
646
648
  _super.prototype.addItem.call(this, items, itemIndex);
@@ -648,11 +650,11 @@ var ComboBox = /** @class */ (function (_super) {
648
650
  /**
649
651
  * To filter the data from given data source by using query
650
652
  *
651
- * @param {Object[] | DataManager } dataSource - Set the data source to filter.
652
- * @param {Query} query - Specify the query to filter the data.
653
- * @param {FieldSettingsModel} fields - Specify the fields to map the column in the data table.
653
+ * @param {Object[] | DataManager } dataSource - Set the data source to filter.
654
+ * @param {Query} query - Specify the query to filter the data.
655
+ * @param {FieldSettingsModel} fields - Specify the fields to map the column in the data table.
654
656
  * @returns {void}
655
-
657
+ * @deprecated
656
658
  */
657
659
  ComboBox.prototype.filter = function (dataSource, query, fields) {
658
660
  _super.prototype.filter.call(this, dataSource, query, fields);
@@ -661,17 +663,17 @@ var ComboBox = /** @class */ (function (_super) {
661
663
  * Opens the popup that displays the list of items.
662
664
  *
663
665
  * @returns {void}
664
-
666
+ * @deprecated
665
667
  */
666
- ComboBox.prototype.showPopup = function () {
667
- _super.prototype.showPopup.call(this);
668
+ ComboBox.prototype.showPopup = function (e) {
669
+ _super.prototype.showPopup.call(this, e);
668
670
  };
669
671
  /* eslint-disable valid-jsdoc, jsdoc/require-param */
670
672
  /**
671
673
  * Hides the popup if it is in open state.
672
674
  *
673
675
  * @returns {void}
674
-
676
+ * @deprecated
675
677
  */
676
678
  ComboBox.prototype.hidePopup = function (e) {
677
679
  /* eslint-enable valid-jsdoc, jsdoc/require-param */
@@ -687,7 +689,7 @@ var ComboBox = /** @class */ (function (_super) {
687
689
  this.removeFillSelection();
688
690
  }
689
691
  var dataItem = this.isSelectCustom ? { text: '' } : this.getItemData();
690
- var selected = this.list.querySelector('.' + dropDownListClasses.selected);
692
+ var selected = !isNullOrUndefined(this.list) ? this.list.querySelector('.' + dropDownListClasses.selected) : null;
691
693
  if (this.inputElement && dataItem.text === this.inputElement.value && !isNullOrUndefined(selected)) {
692
694
  if (this.isSelected) {
693
695
  this.onChangeEvent(e);
@@ -697,10 +699,12 @@ var ComboBox = /** @class */ (function (_super) {
697
699
  return;
698
700
  }
699
701
  if (this.getModuleName() === 'combobox' && this.inputElement.value.trim() !== '') {
700
- var searchItem = Search(this.inputElement.value, this.liCollections, 'Equal', true);
702
+ var dataSource = this.sortedData;
703
+ var type = this.typeOfData(dataSource).typeof;
704
+ var searchItem = Search(this.inputElement.value, this.liCollections, 'Equal', true, dataSource, this.fields, type);
701
705
  this.selectedLI = searchItem.item;
702
706
  if (isNullOrUndefined(searchItem.index)) {
703
- searchItem.index = Search(this.inputElement.value, this.liCollections, 'StartsWith', true).index;
707
+ searchItem.index = Search(this.inputElement.value, this.liCollections, 'StartsWith', true, dataSource, this.fields, type).index;
704
708
  }
705
709
  this.activeIndex = searchItem.index;
706
710
  if (!isNullOrUndefined(this.selectedLI)) {
@@ -738,7 +742,7 @@ var ComboBox = /** @class */ (function (_super) {
738
742
  * Allows you to clear the selected values from the component.
739
743
  *
740
744
  * @returns {void}
741
-
745
+ * @deprecated
742
746
  */
743
747
  ComboBox.prototype.clear = function () {
744
748
  this.value = null;
@@ -748,7 +752,7 @@ var ComboBox = /** @class */ (function (_super) {
748
752
  * Moves the focus from the component if the component is already focused.
749
753
  *
750
754
  * @returns {void}
751
-
755
+ * @deprecated
752
756
  */
753
757
  ComboBox.prototype.focusOut = function (e) {
754
758
  /* eslint-enable valid-jsdoc, jsdoc/require-param */
@@ -759,7 +763,7 @@ var ComboBox = /** @class */ (function (_super) {
759
763
  * Gets all the list items bound on this component.
760
764
  *
761
765
  * @returns {Element[]}
762
-
766
+ * @deprecated
763
767
  */
764
768
  ComboBox.prototype.getItems = function () {
765
769
  return _super.prototype.getItems.call(this);
@@ -769,7 +773,7 @@ var ComboBox = /** @class */ (function (_super) {
769
773
  *
770
774
  * @param { string | number } value - Specifies the value of the list item.
771
775
  * @returns {Object}
772
-
776
+ * @deprecated
773
777
  */
774
778
  ComboBox.prototype.getDataByValue = function (value) {
775
779
  return _super.prototype.getDataByValue.call(this, value);
@@ -1,6 +1,3 @@
1
- /**
2
- * IncrementalSearch module file
3
- */
4
1
  export declare type SearchType = 'StartsWith' | 'Equal' | 'EndsWith' | 'Contains';
5
2
  /**
6
3
  * Search and focus the list item based on key code matches with list text content
@@ -23,7 +20,9 @@ export declare function incrementalSearch(keyCode: number, items: HTMLElement[],
23
20
  * @param {boolean} ignoreCase - Specifies the case sensitive option for search operation.
24
21
  * @returns {Element | number} Returns the search matched items.
25
22
  */
26
- export declare function Search(inputVal: string, items: HTMLElement[], searchType: SearchType, ignoreCase?: boolean): {
23
+ export declare function Search(inputVal: string, items: HTMLElement[], searchType: SearchType, ignoreCase?: boolean, dataSource?: string[] | number[] | boolean[] | {
24
+ [key: string]: Object;
25
+ }[], fields?: any, type?: string): {
27
26
  [key: string]: Element | number;
28
27
  };
29
28
  export declare function escapeCharRegExp(value: string): string;
@@ -1,6 +1,3 @@
1
- /**
2
- * IncrementalSearch module file
3
- */
4
1
  var queryString = '';
5
2
  var prevString = '';
6
3
  var matches = [];
@@ -73,7 +70,7 @@ export function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, ele
73
70
  * @param {boolean} ignoreCase - Specifies the case sensitive option for search operation.
74
71
  * @returns {Element | number} Returns the search matched items.
75
72
  */
76
- export function Search(inputVal, items, searchType, ignoreCase) {
73
+ export function Search(inputVal, items, searchType, ignoreCase, dataSource, fields, type) {
77
74
  var listItems = items;
78
75
  ignoreCase = ignoreCase !== undefined && ignoreCase !== null ? ignoreCase : true;
79
76
  var itemData = { item: null, index: null };
@@ -81,14 +78,32 @@ export function Search(inputVal, items, searchType, ignoreCase) {
81
78
  var strLength = inputVal.length;
82
79
  var queryStr = ignoreCase ? inputVal.toLocaleLowerCase() : inputVal;
83
80
  queryStr = escapeCharRegExp(queryStr);
84
- for (var i = 0, itemsData = listItems; i < itemsData.length; i++) {
81
+ var _loop_1 = function (i, itemsData) {
85
82
  var item = itemsData[i];
86
- var text = (ignoreCase ? item.textContent.toLocaleLowerCase() : item.textContent).replace(/^\s+|\s+$/g, '');
83
+ var text = void 0;
84
+ var filterValue;
85
+ if (items && dataSource) {
86
+ var checkField_1 = item;
87
+ var fieldValue_1 = fields.text.split('.');
88
+ dataSource.filter(function (data) {
89
+ Array.prototype.slice.call(fieldValue_1).forEach(function (value) {
90
+ if (type === 'object' && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && checkField_1.getAttribute('data-value') === data[fields.value] || type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1) {
91
+ filterValue = type === 'object' ? data[value] : data;
92
+ }
93
+ });
94
+ });
95
+ }
96
+ text = dataSource && filterValue ? (ignoreCase ? filterValue.toLocaleLowerCase() : filterValue).replace(/^\s+|\s+$/g, '') : (ignoreCase ? item.textContent.toLocaleLowerCase() : item.textContent).replace(/^\s+|\s+$/g, '');
87
97
  if ((searchType === 'Equal' && text === queryStr) || (searchType === 'StartsWith' && text.substr(0, strLength) === queryStr) || (searchType === 'EndsWith' && text.substr(text.length - queryStr.length) === queryStr) || (searchType === 'Contains' && new RegExp(queryStr, "g").test(text))) {
88
98
  itemData.item = item;
89
99
  itemData.index = i;
90
- return { item: item, index: i };
100
+ return { value: { item: item, index: i } };
91
101
  }
102
+ };
103
+ for (var i = 0, itemsData = listItems; i < itemsData.length; i++) {
104
+ var state_1 = _loop_1(i, itemsData);
105
+ if (typeof state_1 === "object")
106
+ return state_1.value;
92
107
  }
93
108
  return itemData;
94
109
  }