@syncfusion/ej2-dropdowns 20.2.50 → 20.3.48

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 (361) hide show
  1. package/CHANGELOG.md +18 -24
  2. package/dist/ej2-dropdowns.min.js +10 -0
  3. package/dist/ej2-dropdowns.umd.min.js +2 -2
  4. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-dropdowns.es2015.js +1424 -51
  6. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  7. package/dist/es6/ej2-dropdowns.es5.js +1450 -55
  8. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  9. package/dist/global/ej2-dropdowns.min.js +2 -2
  10. package/dist/global/ej2-dropdowns.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/mention.d.ts +4 -0
  13. package/mention.js +4 -0
  14. package/package.json +12 -12
  15. package/src/auto-complete/auto-complete.js +2 -2
  16. package/src/combo-box/combo-box.js +0 -3
  17. package/src/drop-down-base/drop-down-base.d.ts +2 -0
  18. package/src/drop-down-base/drop-down-base.js +8 -2
  19. package/src/drop-down-list/drop-down-list.d.ts +1 -0
  20. package/src/drop-down-list/drop-down-list.js +23 -22
  21. package/src/index.d.ts +1 -0
  22. package/src/index.js +1 -0
  23. package/src/list-box/list-box.js +16 -11
  24. package/src/mention/index.d.ts +5 -0
  25. package/src/mention/index.js +4 -0
  26. package/src/mention/mention-model.d.ts +285 -0
  27. package/src/mention/mention.d.ts +452 -0
  28. package/src/mention/mention.js +1383 -0
  29. package/src/multi-select/checkbox-selection.js +1 -4
  30. package/src/multi-select/multi-select.d.ts +1 -0
  31. package/src/multi-select/multi-select.js +20 -11
  32. package/styles/auto-complete/_all.scss +1 -1
  33. package/styles/auto-complete/_bootstrap-dark-definition.scss +1 -1
  34. package/styles/auto-complete/_bootstrap-definition.scss +1 -1
  35. package/styles/auto-complete/_bootstrap4-definition.scss +2 -2
  36. package/styles/auto-complete/_bootstrap5-definition.scss +1 -1
  37. package/styles/auto-complete/_fabric-dark-definition.scss +1 -1
  38. package/styles/auto-complete/_fabric-definition.scss +1 -1
  39. package/styles/auto-complete/_fluent-definition.scss +1 -1
  40. package/styles/auto-complete/_fusionnew-definition.scss +1 -1
  41. package/styles/auto-complete/_highcontrast-definition.scss +1 -1
  42. package/styles/auto-complete/_highcontrast-light-definition.scss +1 -1
  43. package/styles/auto-complete/_material-dark-definition.scss +1 -1
  44. package/styles/auto-complete/_material-definition.scss +1 -1
  45. package/styles/auto-complete/_material3-definition.scss +1 -1
  46. package/styles/auto-complete/_tailwind-definition.scss +1 -1
  47. package/styles/auto-complete/bootstrap-dark.css +3 -1
  48. package/styles/auto-complete/bootstrap.css +3 -1
  49. package/styles/auto-complete/bootstrap4.css +3 -1
  50. package/styles/auto-complete/bootstrap5-dark.css +3 -1
  51. package/styles/auto-complete/bootstrap5.css +3 -1
  52. package/styles/auto-complete/fabric-dark.css +3 -1
  53. package/styles/auto-complete/fabric.css +3 -1
  54. package/styles/auto-complete/fluent-dark.css +3 -1
  55. package/styles/auto-complete/fluent.css +3 -1
  56. package/styles/auto-complete/highcontrast-light.css +3 -1
  57. package/styles/auto-complete/highcontrast.css +3 -1
  58. package/styles/auto-complete/material-dark.css +3 -1
  59. package/styles/auto-complete/material.css +3 -1
  60. package/styles/auto-complete/tailwind-dark.css +3 -1
  61. package/styles/auto-complete/tailwind.css +3 -1
  62. package/styles/bootstrap-dark.css +94 -42
  63. package/styles/bootstrap-dark.scss +1 -0
  64. package/styles/bootstrap.css +94 -42
  65. package/styles/bootstrap.scss +1 -0
  66. package/styles/bootstrap4.css +95 -42
  67. package/styles/bootstrap4.scss +1 -0
  68. package/styles/bootstrap5-dark.css +101 -44
  69. package/styles/bootstrap5-dark.scss +1 -0
  70. package/styles/bootstrap5.css +101 -44
  71. package/styles/bootstrap5.scss +1 -0
  72. package/styles/combo-box/_all.scss +1 -1
  73. package/styles/combo-box/_bootstrap-dark-definition.scss +1 -1
  74. package/styles/combo-box/_bootstrap-definition.scss +1 -1
  75. package/styles/combo-box/_bootstrap4-definition.scss +2 -2
  76. package/styles/combo-box/_bootstrap5-definition.scss +1 -1
  77. package/styles/combo-box/_fabric-dark-definition.scss +1 -1
  78. package/styles/combo-box/_fabric-definition.scss +1 -1
  79. package/styles/combo-box/_fluent-definition.scss +1 -1
  80. package/styles/combo-box/_fusionnew-definition.scss +1 -1
  81. package/styles/combo-box/_highcontrast-definition.scss +1 -1
  82. package/styles/combo-box/_highcontrast-light-definition.scss +1 -1
  83. package/styles/combo-box/_material-dark-definition.scss +1 -1
  84. package/styles/combo-box/_material-definition.scss +1 -1
  85. package/styles/combo-box/_material3-definition.scss +1 -1
  86. package/styles/combo-box/_tailwind-definition.scss +1 -1
  87. package/styles/combo-box/bootstrap-dark.css +3 -1
  88. package/styles/combo-box/bootstrap.css +3 -1
  89. package/styles/combo-box/bootstrap4.css +3 -1
  90. package/styles/combo-box/bootstrap5-dark.css +3 -1
  91. package/styles/combo-box/bootstrap5.css +3 -1
  92. package/styles/combo-box/fabric-dark.css +3 -1
  93. package/styles/combo-box/fabric.css +3 -1
  94. package/styles/combo-box/fluent-dark.css +3 -1
  95. package/styles/combo-box/fluent.css +3 -1
  96. package/styles/combo-box/highcontrast-light.css +3 -1
  97. package/styles/combo-box/highcontrast.css +3 -1
  98. package/styles/combo-box/material-dark.css +3 -1
  99. package/styles/combo-box/material.css +3 -1
  100. package/styles/combo-box/tailwind-dark.css +3 -1
  101. package/styles/combo-box/tailwind.css +3 -1
  102. package/styles/drop-down-base/_all.scss +1 -1
  103. package/styles/drop-down-base/_bootstrap-dark-definition.scss +8 -2
  104. package/styles/drop-down-base/_bootstrap-definition.scss +6 -1
  105. package/styles/drop-down-base/_bootstrap4-definition.scss +6 -1
  106. package/styles/drop-down-base/_bootstrap5-definition.scss +8 -3
  107. package/styles/drop-down-base/_fabric-dark-definition.scss +6 -1
  108. package/styles/drop-down-base/_fabric-definition.scss +6 -1
  109. package/styles/drop-down-base/_fluent-definition.scss +8 -2
  110. package/styles/drop-down-base/_fusionnew-definition.scss +8 -3
  111. package/styles/drop-down-base/_highcontrast-definition.scss +16 -6
  112. package/styles/drop-down-base/_highcontrast-light-definition.scss +18 -7
  113. package/styles/drop-down-base/_layout.scss +44 -3
  114. package/styles/drop-down-base/_material-dark-definition.scss +7 -1
  115. package/styles/drop-down-base/_material-definition.scss +6 -0
  116. package/styles/drop-down-base/_material3-definition.scss +8 -3
  117. package/styles/drop-down-base/_tailwind-definition.scss +8 -3
  118. package/styles/drop-down-base/_theme.scss +4 -4
  119. package/styles/drop-down-base/bootstrap-dark.css +42 -1
  120. package/styles/drop-down-base/bootstrap.css +42 -1
  121. package/styles/drop-down-base/bootstrap4.css +42 -1
  122. package/styles/drop-down-base/bootstrap5-dark.css +42 -1
  123. package/styles/drop-down-base/bootstrap5.css +42 -1
  124. package/styles/drop-down-base/fabric-dark.css +42 -1
  125. package/styles/drop-down-base/fabric.css +42 -1
  126. package/styles/drop-down-base/fluent-dark.css +42 -1
  127. package/styles/drop-down-base/fluent.css +42 -1
  128. package/styles/drop-down-base/highcontrast-light.css +42 -1
  129. package/styles/drop-down-base/highcontrast.css +42 -1
  130. package/styles/drop-down-base/material-dark.css +42 -1
  131. package/styles/drop-down-base/material.css +42 -1
  132. package/styles/drop-down-base/tailwind-dark.css +42 -1
  133. package/styles/drop-down-base/tailwind.css +42 -1
  134. package/styles/drop-down-list/_all.scss +2 -1
  135. package/styles/drop-down-list/_bootstrap-dark-definition.scss +2 -1
  136. package/styles/drop-down-list/_bootstrap-definition.scss +2 -1
  137. package/styles/drop-down-list/_bootstrap4-definition.scss +3 -1
  138. package/styles/drop-down-list/_bootstrap5-definition.scss +3 -3
  139. package/styles/drop-down-list/_fabric-dark-definition.scss +2 -1
  140. package/styles/drop-down-list/_fabric-definition.scss +2 -0
  141. package/styles/drop-down-list/_fluent-definition.scss +2 -1
  142. package/styles/drop-down-list/_fusionnew-definition.scss +3 -3
  143. package/styles/drop-down-list/_highcontrast-definition.scss +21 -10
  144. package/styles/drop-down-list/_highcontrast-light-definition.scss +22 -11
  145. package/styles/drop-down-list/_layout.scss +8 -9
  146. package/styles/drop-down-list/_material-dark-definition.scss +2 -2
  147. package/styles/drop-down-list/_material-definition.scss +1 -0
  148. package/styles/drop-down-list/_material3-definition.scss +3 -3
  149. package/styles/drop-down-list/_tailwind-definition.scss +1 -0
  150. package/styles/drop-down-list/_theme.scss +3 -3
  151. package/styles/drop-down-list/bootstrap-dark.css +5 -0
  152. package/styles/drop-down-list/bootstrap.css +5 -0
  153. package/styles/drop-down-list/bootstrap4.css +5 -0
  154. package/styles/drop-down-list/bootstrap5-dark.css +6 -0
  155. package/styles/drop-down-list/bootstrap5.css +6 -0
  156. package/styles/drop-down-list/fabric-dark.css +5 -0
  157. package/styles/drop-down-list/fabric.css +5 -0
  158. package/styles/drop-down-list/fluent-dark.css +6 -0
  159. package/styles/drop-down-list/fluent.css +6 -0
  160. package/styles/drop-down-list/highcontrast-light.css +5 -0
  161. package/styles/drop-down-list/highcontrast.css +5 -0
  162. package/styles/drop-down-list/icons/_bootstrap.scss +0 -1
  163. package/styles/drop-down-list/icons/_fabric.scss +0 -1
  164. package/styles/drop-down-list/icons/_material.scss +0 -1
  165. package/styles/drop-down-list/material-dark.css +5 -0
  166. package/styles/drop-down-list/material.css +5 -0
  167. package/styles/drop-down-list/tailwind-dark.css +6 -0
  168. package/styles/drop-down-list/tailwind.css +6 -0
  169. package/styles/drop-down-tree/_all.scss +1 -1
  170. package/styles/drop-down-tree/_bootstrap-dark-definition.scss +1 -1
  171. package/styles/drop-down-tree/_bootstrap-definition.scss +1 -1
  172. package/styles/drop-down-tree/_bootstrap4-definition.scss +1 -1
  173. package/styles/drop-down-tree/_bootstrap5-definition.scss +2 -2
  174. package/styles/drop-down-tree/_fabric-dark-definition.scss +1 -1
  175. package/styles/drop-down-tree/_fabric-definition.scss +2 -2
  176. package/styles/drop-down-tree/_fluent-definition.scss +2 -2
  177. package/styles/drop-down-tree/_fusionnew-definition.scss +2 -2
  178. package/styles/drop-down-tree/_highcontrast-definition.scss +1 -1
  179. package/styles/drop-down-tree/_highcontrast-light-definition.scss +1 -1
  180. package/styles/drop-down-tree/_layout.scss +1 -2
  181. package/styles/drop-down-tree/_material-dark-definition.scss +2 -2
  182. package/styles/drop-down-tree/_material-definition.scss +2 -2
  183. package/styles/drop-down-tree/_material3-definition.scss +2 -2
  184. package/styles/drop-down-tree/_tailwind-definition.scss +2 -2
  185. package/styles/drop-down-tree/bootstrap-dark.css +4 -0
  186. package/styles/drop-down-tree/bootstrap.css +4 -0
  187. package/styles/drop-down-tree/bootstrap4.css +4 -0
  188. package/styles/drop-down-tree/bootstrap5-dark.css +5 -0
  189. package/styles/drop-down-tree/bootstrap5.css +5 -0
  190. package/styles/drop-down-tree/fabric-dark.css +4 -0
  191. package/styles/drop-down-tree/fabric.css +4 -0
  192. package/styles/drop-down-tree/fluent-dark.css +5 -0
  193. package/styles/drop-down-tree/fluent.css +5 -0
  194. package/styles/drop-down-tree/highcontrast-light.css +4 -0
  195. package/styles/drop-down-tree/highcontrast.css +4 -0
  196. package/styles/drop-down-tree/icons/_bootstrap.scss +0 -1
  197. package/styles/drop-down-tree/icons/_bootstrap4.scss +0 -1
  198. package/styles/drop-down-tree/icons/_fabric.scss +0 -1
  199. package/styles/drop-down-tree/icons/_highcontrast-light.scss +0 -1
  200. package/styles/drop-down-tree/icons/_highcontrast.scss +0 -1
  201. package/styles/drop-down-tree/icons/_material-dark.scss +0 -1
  202. package/styles/drop-down-tree/icons/_material.scss +0 -1
  203. package/styles/drop-down-tree/material-dark.css +4 -0
  204. package/styles/drop-down-tree/material.css +4 -0
  205. package/styles/drop-down-tree/tailwind-dark.css +5 -0
  206. package/styles/drop-down-tree/tailwind.css +5 -0
  207. package/styles/fabric-dark.css +94 -42
  208. package/styles/fabric-dark.scss +1 -0
  209. package/styles/fabric.css +94 -42
  210. package/styles/fabric.scss +1 -0
  211. package/styles/fluent-dark.css +101 -44
  212. package/styles/fluent-dark.scss +1 -0
  213. package/styles/fluent.css +101 -44
  214. package/styles/fluent.scss +1 -0
  215. package/styles/highcontrast-light.css +97 -42
  216. package/styles/highcontrast-light.scss +1 -0
  217. package/styles/highcontrast.css +97 -42
  218. package/styles/highcontrast.scss +1 -0
  219. package/styles/list-box/_all.scss +1 -1
  220. package/styles/list-box/_bootstrap-dark-definition.scss +2 -0
  221. package/styles/list-box/_bootstrap-definition.scss +1 -0
  222. package/styles/list-box/_bootstrap4-definition.scss +1 -0
  223. package/styles/list-box/_bootstrap5-definition.scss +3 -0
  224. package/styles/list-box/_fabric-dark-definition.scss +3 -1
  225. package/styles/list-box/_fabric-definition.scss +1 -0
  226. package/styles/list-box/_fluent-definition.scss +3 -0
  227. package/styles/list-box/_fusionnew-definition.scss +1 -0
  228. package/styles/list-box/_highcontrast-definition.scss +1 -0
  229. package/styles/list-box/_highcontrast-light-definition.scss +3 -1
  230. package/styles/list-box/_layout.scss +8 -17
  231. package/styles/list-box/_material-dark-definition.scss +2 -0
  232. package/styles/list-box/_material-definition.scss +1 -0
  233. package/styles/list-box/_material3-definition.scss +1 -0
  234. package/styles/list-box/_tailwind-definition.scss +3 -0
  235. package/styles/list-box/_theme.scss +11 -25
  236. package/styles/list-box/bootstrap-dark.css +12 -33
  237. package/styles/list-box/bootstrap.css +14 -35
  238. package/styles/list-box/bootstrap4.css +14 -35
  239. package/styles/list-box/bootstrap5-dark.css +15 -36
  240. package/styles/list-box/bootstrap5.css +15 -36
  241. package/styles/list-box/fabric-dark.css +12 -33
  242. package/styles/list-box/fabric.css +14 -35
  243. package/styles/list-box/fluent-dark.css +15 -36
  244. package/styles/list-box/fluent.css +15 -36
  245. package/styles/list-box/highcontrast-light.css +12 -33
  246. package/styles/list-box/highcontrast.css +14 -35
  247. package/styles/list-box/icons/_bootstrap-dark.scss +2 -2
  248. package/styles/list-box/icons/_bootstrap.scss +1 -1
  249. package/styles/list-box/icons/_bootstrap4.scss +1 -1
  250. package/styles/list-box/icons/_bootstrap5.scss +1 -1
  251. package/styles/list-box/icons/_fabric-dark.scss +1 -1
  252. package/styles/list-box/icons/_fabric.scss +1 -1
  253. package/styles/list-box/icons/_fluent.scss +1 -1
  254. package/styles/list-box/icons/_fusionnew.scss +1 -1
  255. package/styles/list-box/icons/_highcontrast-light.scss +1 -1
  256. package/styles/list-box/icons/_highcontrast.scss +1 -1
  257. package/styles/list-box/icons/_material-dark.scss +1 -1
  258. package/styles/list-box/icons/_material.scss +2 -2
  259. package/styles/list-box/icons/_material3.scss +1 -1
  260. package/styles/list-box/icons/_tailwind-dark.scss +1 -1
  261. package/styles/list-box/icons/_tailwind.scss +1 -1
  262. package/styles/list-box/material-dark.css +12 -33
  263. package/styles/list-box/material.css +14 -35
  264. package/styles/list-box/tailwind-dark.css +15 -36
  265. package/styles/list-box/tailwind.css +15 -36
  266. package/styles/material-dark.css +94 -42
  267. package/styles/material-dark.scss +1 -0
  268. package/styles/material.css +94 -42
  269. package/styles/material.scss +1 -0
  270. package/styles/mention/_all.scss +1 -0
  271. package/styles/mention/_bootstrap-dark-definition.scss +3 -0
  272. package/styles/mention/_bootstrap-definition.scss +3 -0
  273. package/styles/mention/_bootstrap4-definition.scss +3 -0
  274. package/styles/mention/_bootstrap5-dark-definition.scss +1 -0
  275. package/styles/mention/_bootstrap5-definition.scss +1 -0
  276. package/styles/mention/_fabric-dark-definition.scss +2 -0
  277. package/styles/mention/_fabric-definition.scss +3 -0
  278. package/styles/mention/_fluent-dark-definition.scss +1 -0
  279. package/styles/mention/_fluent-definition.scss +1 -0
  280. package/styles/mention/_fusionnew-definition.scss +1 -0
  281. package/styles/mention/_highcontrast-definition.scss +3 -0
  282. package/styles/mention/_highcontrast-light-definition.scss +3 -0
  283. package/styles/mention/_layout.scss +6 -0
  284. package/styles/mention/_material-dark-definition.scss +3 -0
  285. package/styles/mention/_material-definition.scss +3 -0
  286. package/styles/mention/_material3-definition.scss +1 -0
  287. package/styles/mention/_tailwind-dark-definition.scss +1 -0
  288. package/styles/mention/_tailwind-definition.scss +1 -0
  289. package/styles/mention/bootstrap-dark.css +29 -0
  290. package/styles/mention/bootstrap-dark.scss +6 -0
  291. package/styles/mention/bootstrap.css +29 -0
  292. package/styles/mention/bootstrap.scss +6 -0
  293. package/styles/mention/bootstrap4.css +47 -0
  294. package/styles/mention/bootstrap4.scss +6 -0
  295. package/styles/mention/bootstrap5-dark.css +58 -0
  296. package/styles/mention/bootstrap5-dark.scss +6 -0
  297. package/styles/mention/bootstrap5.css +58 -0
  298. package/styles/mention/bootstrap5.scss +6 -0
  299. package/styles/mention/fabric-dark.css +29 -0
  300. package/styles/mention/fabric-dark.scss +6 -0
  301. package/styles/mention/fabric.css +29 -0
  302. package/styles/mention/fabric.scss +6 -0
  303. package/styles/mention/fluent-dark.css +58 -0
  304. package/styles/mention/fluent-dark.scss +6 -0
  305. package/styles/mention/fluent.css +58 -0
  306. package/styles/mention/fluent.scss +6 -0
  307. package/styles/mention/highcontrast-light.css +43 -0
  308. package/styles/mention/highcontrast-light.scss +6 -0
  309. package/styles/mention/highcontrast.css +43 -0
  310. package/styles/mention/highcontrast.scss +6 -0
  311. package/styles/mention/material-dark.css +29 -0
  312. package/styles/mention/material-dark.scss +6 -0
  313. package/styles/mention/material.css +29 -0
  314. package/styles/mention/material.scss +6 -0
  315. package/styles/mention/tailwind-dark.css +68 -0
  316. package/styles/mention/tailwind-dark.scss +6 -0
  317. package/styles/mention/tailwind.css +68 -0
  318. package/styles/mention/tailwind.scss +6 -0
  319. package/styles/multi-select/_all.scss +1 -1
  320. package/styles/multi-select/_bootstrap-dark-definition.scss +4 -1
  321. package/styles/multi-select/_bootstrap-definition.scss +2 -0
  322. package/styles/multi-select/_bootstrap4-definition.scss +5 -2
  323. package/styles/multi-select/_bootstrap5-definition.scss +2 -2
  324. package/styles/multi-select/_fabric-dark-definition.scss +5 -3
  325. package/styles/multi-select/_fabric-definition.scss +4 -2
  326. package/styles/multi-select/_fluent-definition.scss +2 -1
  327. package/styles/multi-select/_fusionnew-definition.scss +2 -2
  328. package/styles/multi-select/_highcontrast-definition.scss +47 -24
  329. package/styles/multi-select/_highcontrast-light-definition.scss +48 -25
  330. package/styles/multi-select/_layout.scss +59 -71
  331. package/styles/multi-select/_material-dark-definition.scss +3 -1
  332. package/styles/multi-select/_material-definition.scss +1 -0
  333. package/styles/multi-select/_material3-definition.scss +2 -2
  334. package/styles/multi-select/_tailwind-definition.scss +2 -3
  335. package/styles/multi-select/_theme.scss +16 -21
  336. package/styles/multi-select/bootstrap-dark.css +10 -6
  337. package/styles/multi-select/bootstrap.css +10 -6
  338. package/styles/multi-select/bootstrap4.css +10 -6
  339. package/styles/multi-select/bootstrap5-dark.css +11 -6
  340. package/styles/multi-select/bootstrap5.css +11 -6
  341. package/styles/multi-select/fabric-dark.css +10 -6
  342. package/styles/multi-select/fabric.css +10 -6
  343. package/styles/multi-select/fluent-dark.css +11 -6
  344. package/styles/multi-select/fluent.css +11 -6
  345. package/styles/multi-select/highcontrast-light.css +13 -6
  346. package/styles/multi-select/highcontrast.css +13 -6
  347. package/styles/multi-select/icons/_bootstrap5.scss +0 -1
  348. package/styles/multi-select/icons/_fluent.scss +0 -1
  349. package/styles/multi-select/icons/_fusionnew.scss +0 -1
  350. package/styles/multi-select/icons/_material-dark.scss +53 -54
  351. package/styles/multi-select/icons/_material.scss +53 -54
  352. package/styles/multi-select/icons/_material3.scss +0 -1
  353. package/styles/multi-select/icons/_tailwind.scss +0 -1
  354. package/styles/multi-select/material-dark.css +10 -6
  355. package/styles/multi-select/material.css +10 -6
  356. package/styles/multi-select/tailwind-dark.css +11 -6
  357. package/styles/multi-select/tailwind.css +11 -6
  358. package/styles/tailwind-dark.css +102 -44
  359. package/styles/tailwind-dark.scss +1 -0
  360. package/styles/tailwind.css +102 -44
  361. package/styles/tailwind.scss +1 -0
@@ -0,0 +1,452 @@
1
+ import { KeyboardEventArgs } from '@syncfusion/ej2-base';
2
+ import { EmitType } from '@syncfusion/ej2-base';
3
+ import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';
4
+ import { FilteringEventArgs, FilterType } from '../drop-down-base/drop-down-base';
5
+ import { DropDownBase, PopupEventArgs, SelectEventArgs } from '../drop-down-base/drop-down-base';
6
+ import { DataManager, Query } from '@syncfusion/ej2-data';
7
+ import { MentionModel } from '../mention/mention-model';
8
+ import { SortOrder } from '@syncfusion/ej2-lists';
9
+ export interface MentionChangeEventArgs extends SelectEventArgs {
10
+ /**
11
+ * Specifies the selected value.
12
+ *
13
+ * @isGenericType true
14
+ */
15
+ value: number | string | boolean;
16
+ /**
17
+ * Specifies the element of previous selected list item.
18
+ */
19
+ previousItem: HTMLLIElement;
20
+ /**
21
+ * Specifies the previously selected item as a JSON Object from the data source.
22
+ *
23
+ */
24
+ previousItemData: FieldSettingsModel;
25
+ /**
26
+ * Specifies the component root element.
27
+ */
28
+ element: HTMLElement;
29
+ }
30
+ /**
31
+ * The Mention component is used to list someone or something based on user input in textarea, input,
32
+ * or any other editable element from which the user can select.
33
+ */
34
+ export declare class Mention extends DropDownBase {
35
+ private initRemoteRender;
36
+ private inputElement;
37
+ private popupObj;
38
+ private isPopupOpen;
39
+ private isSelected;
40
+ private selectedLI;
41
+ private previousSelectedLI;
42
+ private previousItemData;
43
+ private activeIndex;
44
+ private keyConfigure;
45
+ private isFiltered;
46
+ private beforePopupOpen;
47
+ private listHeight;
48
+ private range;
49
+ private displayTempElement;
50
+ private isCollided;
51
+ private spinnerElement;
52
+ private spinnerTemplateElement;
53
+ private lineBreak;
54
+ private selectedElementID;
55
+ /**
56
+ * Defines class/multiple classes separated by a space for the mention component.
57
+ *
58
+ * @default null
59
+ */
60
+ cssClass: string;
61
+ /**
62
+ * Specifies the symbol or single character which triggers the search action in the mention component.
63
+ *
64
+ * @default '@'
65
+ * @aspType char
66
+ */
67
+ mentionChar: string;
68
+ /**
69
+ * Specifies whether to show the configured mentionChar with the text.
70
+ *
71
+ * @default false
72
+ */
73
+ showMentionChar: boolean;
74
+ /**
75
+ * Defines whether to allow the space in the middle of mention while searching.
76
+ * When disabled, the space ends the mention component search.
77
+ *
78
+ * @default false
79
+ */
80
+ allowSpaces: boolean;
81
+ /**
82
+ * Specifies the custom suffix to append along with the mention component selected item while inserting.
83
+ * You can append space or new line character as suffix.
84
+ *
85
+ * @default null
86
+ */
87
+ suffixText: string;
88
+ /**
89
+ * Specifies the number of items in the suggestion list.
90
+ *
91
+ * @default 25
92
+ * @aspType int
93
+ */
94
+ suggestionCount: number;
95
+ /**
96
+ * Specifies the minimum length of user input to initiate the search action.
97
+ * The default value is zero, where suggestion the list opened as soon as the user inputs the mention character.
98
+ *
99
+ * @default 0
100
+ * @aspType int
101
+ */
102
+ minLength: number;
103
+ /**
104
+ * Specifies the order to sort the data source. The possible sort orders are,
105
+ * * `None` - The data source is not sorted.
106
+ * * `Ascending` - The data source is sorted in ascending order.
107
+ * * `Descending` - The data source is sorted in descending order.
108
+ *
109
+ * @default 'None'
110
+ */
111
+ sortOrder: SortOrder;
112
+ /**
113
+ * Specifies whether the searches are case sensitive to find suggestions.
114
+ *
115
+ * @default true
116
+ */
117
+ ignoreCase: boolean;
118
+ /**
119
+ * Specifies whether to highlight the searched characters on suggestion list items.
120
+ *
121
+ * @default false
122
+ */
123
+ highlight: boolean;
124
+ /**
125
+ * Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
126
+ *
127
+ * @default 'en-US'
128
+ */
129
+ locale: string;
130
+ /**
131
+ * Specifies the width of the popup in pixels/number/percentage. The number value is considered as pixels.
132
+ *
133
+ * @default 'auto'
134
+ * @aspType string
135
+ */
136
+ popupWidth: string | number;
137
+ /**
138
+ * Specifies the height of the popup in pixels/number/percentage. The number value is considered as pixels.
139
+ *
140
+ * @default '300px'
141
+ * @aspType string
142
+ */
143
+ popupHeight: string | number;
144
+ /**
145
+ * Specifies the template for the selected value from the suggestion list.
146
+ *
147
+ * @default null
148
+ */
149
+ displayTemplate: string;
150
+ /**
151
+ * Specifies the template for the suggestion list.
152
+ *
153
+ * @default null
154
+ */
155
+ itemTemplate: string;
156
+ /**
157
+ * Specifies the template for no matched item which is displayed when there are no items to display in the suggestion list.
158
+ *
159
+ * @default 'No records found'
160
+ */
161
+ noRecordsTemplate: string;
162
+ /**
163
+ * Specifies the template for showing until data is loaded in the popup.
164
+ *
165
+ * @default null
166
+ */
167
+ spinnerTemplate: string;
168
+ /**
169
+ * Specifies the target selector where the mention component needs to be displayed.
170
+ * The mention component listens to the target's user input and displays suggestions as soon as the user inputs the mention character.
171
+ *
172
+ */
173
+ target: HTMLElement | string;
174
+ /**
175
+ * Accepts the list items either through local or remote service and binds it to the component.
176
+ * It can be an array of JSON Objects or an instance of `DataManager`.
177
+ *
178
+ * @default []
179
+ */
180
+ dataSource: {
181
+ [key: string]: Object;
182
+ }[] | DataManager | string[] | number[] | boolean[];
183
+ /**
184
+ * Specifies the external query, which can be customized and filtered against the data source.
185
+ *
186
+ * @default null
187
+ */
188
+ query: Query;
189
+ /**
190
+ * Determines on which filter type, the component needs to be considered on search action.
191
+ * and its supported data types are
192
+ *
193
+ * <table>
194
+ * <tr>
195
+ * <td colSpan=1 rowSpan=1>
196
+ * FilterType<br/></td><td colSpan=1 rowSpan=1>
197
+ * Description<br/></td><td colSpan=1 rowSpan=1>
198
+ * Supported Types<br/></td></tr>
199
+ * <tr>
200
+ * <td colSpan=1 rowSpan=1>
201
+ * StartsWith<br/></td><td colSpan=1 rowSpan=1>
202
+ * Checks whether a value begins with the specified value.<br/></td><td colSpan=1 rowSpan=1>
203
+ * String<br/></td></tr>
204
+ * <tr>
205
+ * <td colSpan=1 rowSpan=1>
206
+ * EndsWith<br/></td><td colSpan=1 rowSpan=1>
207
+ * Checks whether a value ends with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
208
+ * <br/>String<br/></td></tr>
209
+ * <tr>
210
+ * <td colSpan=1 rowSpan=1>
211
+ * Contains<br/></td><td colSpan=1 rowSpan=1>
212
+ * Checks whether a value contains with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
213
+ * <br/>String<br/></td></tr>
214
+ * </table>
215
+ *
216
+ * The default value set to `Contains`, all the suggestion items which contain typed characters to listed in the suggestion popup.
217
+ *
218
+ * @default 'Contains'
219
+ */
220
+ filterType: FilterType;
221
+ /**
222
+ * Defines the fields of the Mention to map with the data source and binds the data to the component.
223
+ * * text - Specifies the text that maps the text filed from the data source for each list item.
224
+ * * value - Specifies the value that maps the value filed from the data source for each list item.
225
+ * * iconCss - Specifies the iconCss that map the icon class filed from the data source for each list item.
226
+ * * groupBy - Specifies the groupBy that groups the list items with its related items by mapping groupBy field.
227
+ *
228
+ * @default
229
+ * {
230
+ * text: null, value: null, iconCss: null, groupBy: null
231
+ * }
232
+ */
233
+ fields: FieldSettingsModel;
234
+ /**
235
+ * Triggers before fetching data from the remote server.
236
+ *
237
+ * @event actionBegin
238
+ */
239
+ actionBegin: EmitType<Object>;
240
+ /**
241
+ * Triggers after data is fetched successfully from the remote server.
242
+ *
243
+ * @event actionComplete
244
+ */
245
+ actionComplete: EmitType<Object>;
246
+ /**
247
+ * Triggers when the data fetch request from the remote server fails.
248
+ *
249
+ * @event actionFailure
250
+ */
251
+ actionFailure: EmitType<Object>;
252
+ /**
253
+ * Triggers when an item in a popup is selected and updated in an editor.
254
+ *
255
+ * @event change
256
+ */
257
+ change: EmitType<MentionChangeEventArgs>;
258
+ /**
259
+ * Triggers before the popup is opened.
260
+ *
261
+ * @event beforeOpen
262
+ */
263
+ beforeOpen: EmitType<PopupEventArgs>;
264
+ /**
265
+ * Triggers after the popup opens.
266
+ *
267
+ * @event opened
268
+ */
269
+ opened: EmitType<PopupEventArgs>;
270
+ /**
271
+ * Triggers after the popup is closed.
272
+ *
273
+ * @event closed
274
+ */
275
+ closed: EmitType<PopupEventArgs>;
276
+ /**
277
+ * Triggers when an item in the popup is selected by the user either with the mouse/tap or with keyboard navigation.
278
+ *
279
+ * @event select
280
+ */
281
+ select: EmitType<SelectEventArgs>;
282
+ /**
283
+ * Triggers on typing a character in the component.
284
+ *
285
+ * @event filtering
286
+ */
287
+ filtering: EmitType<FilteringEventArgs>;
288
+ /**
289
+ * Triggers when the component is created.
290
+ *
291
+ * @event created
292
+ */
293
+ created: EmitType<Object>;
294
+ /**
295
+ * Triggers when the component is destroyed.
296
+ *
297
+ * @event destroyed
298
+ */
299
+ destroyed: EmitType<Object>;
300
+ /**
301
+ * * Constructor for creating the widget
302
+ *
303
+ * @param {MentionModel} options - Specifies the MentionComponent model.
304
+ * @param {string | HTMLElement} element - Specifies the element to render as component.
305
+ * @private
306
+ */
307
+ constructor(options?: MentionModel, element?: string | HTMLElement);
308
+ /**
309
+ * When property value changes happened, then onPropertyChanged method will execute the respective changes in this component.
310
+ *
311
+ * @param {MentionModel} newProp - Returns the dynamic property value of the component.
312
+ * @param {MentionModel} oldProp - Returns the previous property value of the component.
313
+ * @private
314
+ * @returns {void}
315
+ */
316
+ onPropertyChanged(newProp: MentionModel, oldProp: MentionModel): void;
317
+ private updateCssClass;
318
+ private setCssClass;
319
+ private initializeData;
320
+ /**
321
+ * Execute before render the list items
322
+ *
323
+ * @private
324
+ * @returns {void}
325
+ */
326
+ protected preRender(): void;
327
+ /**
328
+ * To Initialize the control rendering
329
+ *
330
+ * @private
331
+ * @returns {void}
332
+ */
333
+ render(): void;
334
+ private wireEvent;
335
+ private unWireEvent;
336
+ private bindCommonEvent;
337
+ /**
338
+ * Hides the spinner loader.
339
+ *
340
+ * @returns {void}
341
+ */
342
+ hideSpinner(): void;
343
+ private hideWaitingSpinner;
344
+ /**
345
+ * Shows the spinner loader.
346
+ *
347
+ * @returns {void}
348
+ */
349
+ private showWaitingSpinner;
350
+ private keyActionHandler;
351
+ private updateUpDownAction;
352
+ private isSelectFocusItem;
353
+ private unBindCommonEvent;
354
+ private onKeyUp;
355
+ private isMatchedText;
356
+ private getCurrentRange;
357
+ private searchLists;
358
+ private filterAction;
359
+ protected onActionComplete(ulElement: HTMLElement, list: {
360
+ [key: string]: Object;
361
+ }[], e?: Object, isUpdated?: boolean): void;
362
+ private setDataIndex;
363
+ protected listOption(dataSource: {
364
+ [key: string]: Object;
365
+ }[], fieldsSettings: FieldSettingsModel): FieldSettingsModel;
366
+ private elementValue;
367
+ protected getQuery(query: Query): Query;
368
+ private renderHightSearch;
369
+ private getTextRange;
370
+ private getLastLetter;
371
+ private isContentEditable;
372
+ /**
373
+ * Opens the popup that displays the list of items.
374
+ *
375
+ * @returns {void}
376
+ */
377
+ showPopup(): void;
378
+ /**
379
+ * Hides the popup if it is in an open state.
380
+ *
381
+ * @returns {void}
382
+ */
383
+ hidePopup(e?: MouseEvent | KeyboardEventArgs): void;
384
+ private closePopup;
385
+ private renderPopup;
386
+ private checkCollision;
387
+ private getTriggerCharPosition;
388
+ private initializePopup;
389
+ private setWidth;
390
+ private destroyPopup;
391
+ private onDocumentClick;
392
+ private getCoordinates;
393
+ private initValue;
394
+ private updateValues;
395
+ protected renderList(): void;
396
+ /**
397
+ * Event binding for list
398
+ *
399
+ * @returns {void}
400
+ */
401
+ private wireListEvents;
402
+ /**
403
+ * Event un binding for list items.
404
+ *
405
+ * @returns {void}
406
+ */
407
+ private unWireListEvents;
408
+ private onMouseClick;
409
+ private updateSelectedItem;
410
+ private setSelection;
411
+ private setSelectOptions;
412
+ private setScrollPosition;
413
+ private scrollBottom;
414
+ private scrollTop;
415
+ private selectEventCallback;
416
+ private detachChanges;
417
+ private setValue;
418
+ private mentionVal;
419
+ private setDisplayTemplate;
420
+ private setSpinnerTemplate;
421
+ private onChangeEvent;
422
+ private detachMentionChanges;
423
+ private getItemData;
424
+ private removeSelection;
425
+ private onMouseOver;
426
+ private setHover;
427
+ private removeHover;
428
+ private isValidLI;
429
+ private onMouseLeave;
430
+ /**
431
+ * Search the entered text and show it in the suggestion list if available.
432
+ *
433
+ * @returns {void}
434
+ */
435
+ search(text: string, positionX: number, positionY: number): void;
436
+ /**
437
+ * Removes the component from the DOM and detaches all its related event handlers. Also it removes the attributes and classes.
438
+ *
439
+ * @method destroy
440
+ * @returns {void}
441
+ */
442
+ destroy(): void;
443
+ protected getLocaleName(): string;
444
+ protected getNgDirective(): string;
445
+ /**
446
+ * Return the module name of this component.
447
+ *
448
+ * @private
449
+ * @returns {string} Return the module name of this component.
450
+ */
451
+ getModuleName(): string;
452
+ }