@syncfusion/ej2-dropdowns 29.2.8 → 29.2.11-81740

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 (314) hide show
  1. package/{README.md → ReadMe.md} +217 -217
  2. package/dist/ej2-dropdowns.umd.min.js +1 -10
  3. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-dropdowns.es2015.js +186 -95
  5. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  6. package/dist/es6/ej2-dropdowns.es5.js +352 -258
  7. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  8. package/license +2 -2
  9. package/package.json +36 -36
  10. package/src/auto-complete/auto-complete-model.d.ts +190 -190
  11. package/src/auto-complete/auto-complete.d.ts +12 -12
  12. package/src/auto-complete/auto-complete.js +21 -21
  13. package/src/combo-box/combo-box-model.d.ts +232 -232
  14. package/src/combo-box/combo-box.d.ts +26 -26
  15. package/src/combo-box/combo-box.js +29 -29
  16. package/src/common/incremental-search.js +1 -1
  17. package/src/common/virtual-scroll.js +46 -46
  18. package/src/drop-down-base/drop-down-base-model.d.ts +205 -205
  19. package/src/drop-down-base/drop-down-base.d.ts +15 -15
  20. package/src/drop-down-base/drop-down-base.js +21 -21
  21. package/src/drop-down-list/drop-down-list-model.d.ts +310 -310
  22. package/src/drop-down-list/drop-down-list.d.ts +5 -5
  23. package/src/drop-down-list/drop-down-list.js +21 -21
  24. package/src/drop-down-tree/drop-down-tree-model.d.ts +493 -493
  25. package/src/drop-down-tree/drop-down-tree.d.ts +2 -1
  26. package/src/drop-down-tree/drop-down-tree.js +24 -19
  27. package/src/list-box/list-box-model.d.ts +237 -237
  28. package/src/list-box/list-box.d.ts +2 -2
  29. package/src/list-box/list-box.js +19 -19
  30. package/src/mention/mention-model.d.ts +272 -272
  31. package/src/mention/mention.d.ts +1 -1
  32. package/src/mention/mention.js +29 -27
  33. package/src/multi-select/multi-select-model.d.ts +564 -564
  34. package/src/multi-select/multi-select.d.ts +2 -1
  35. package/src/multi-select/multi-select.js +143 -56
  36. package/styles/auto-complete/_all.scss +1 -1
  37. package/styles/auto-complete/_bds-definition.scss +2 -2
  38. package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
  39. package/styles/auto-complete/_bootstrap-definition.scss +2 -2
  40. package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
  41. package/styles/auto-complete/_bootstrap5-definition.scss +2 -2
  42. package/styles/auto-complete/_bootstrap5.3-definition.scss +2 -2
  43. package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
  44. package/styles/auto-complete/_fabric-definition.scss +2 -2
  45. package/styles/auto-complete/_fluent-definition.scss +2 -2
  46. package/styles/auto-complete/_fluent2-definition.scss +2 -2
  47. package/styles/auto-complete/_fusionnew-definition.scss +2 -2
  48. package/styles/auto-complete/_highcontrast-definition.scss +2 -2
  49. package/styles/auto-complete/_highcontrast-light-definition.scss +2 -2
  50. package/styles/auto-complete/_material-dark-definition.scss +2 -2
  51. package/styles/auto-complete/_material-definition.scss +2 -2
  52. package/styles/auto-complete/_material3-definition.scss +2 -2
  53. package/styles/auto-complete/_tailwind-definition.scss +2 -2
  54. package/styles/auto-complete/_tailwind3-definition.scss +2 -2
  55. package/styles/auto-complete/material3-dark.scss +1 -1
  56. package/styles/auto-complete/material3.scss +1 -1
  57. package/styles/combo-box/_all.scss +1 -1
  58. package/styles/combo-box/_bds-definition.scss +2 -2
  59. package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
  60. package/styles/combo-box/_bootstrap-definition.scss +2 -2
  61. package/styles/combo-box/_bootstrap4-definition.scss +11 -11
  62. package/styles/combo-box/_bootstrap5-definition.scss +2 -2
  63. package/styles/combo-box/_bootstrap5.3-definition.scss +2 -2
  64. package/styles/combo-box/_fabric-dark-definition.scss +2 -2
  65. package/styles/combo-box/_fabric-definition.scss +2 -2
  66. package/styles/combo-box/_fluent-definition.scss +2 -2
  67. package/styles/combo-box/_fluent2-definition.scss +2 -2
  68. package/styles/combo-box/_fusionnew-definition.scss +2 -2
  69. package/styles/combo-box/_highcontrast-definition.scss +2 -2
  70. package/styles/combo-box/_highcontrast-light-definition.scss +3 -3
  71. package/styles/combo-box/_material-dark-definition.scss +2 -2
  72. package/styles/combo-box/_material-definition.scss +2 -2
  73. package/styles/combo-box/_material3-definition.scss +2 -2
  74. package/styles/combo-box/_tailwind-definition.scss +2 -2
  75. package/styles/combo-box/_tailwind3-definition.scss +2 -2
  76. package/styles/combo-box/material3-dark.scss +1 -1
  77. package/styles/combo-box/material3.scss +1 -1
  78. package/styles/drop-down-base/_all.scss +2 -2
  79. package/styles/drop-down-base/_bds-definition.scss +112 -112
  80. package/styles/drop-down-base/_bigger.scss +198 -198
  81. package/styles/drop-down-base/_bootstrap-dark-definition.scss +80 -80
  82. package/styles/drop-down-base/_bootstrap-definition.scss +78 -78
  83. package/styles/drop-down-base/_bootstrap4-definition.scss +83 -83
  84. package/styles/drop-down-base/_bootstrap5-definition.scss +98 -98
  85. package/styles/drop-down-base/_bootstrap5.3-definition.scss +98 -98
  86. package/styles/drop-down-base/_definition.scss +23 -23
  87. package/styles/drop-down-base/_fabric-dark-definition.scss +81 -81
  88. package/styles/drop-down-base/_fabric-definition.scss +79 -79
  89. package/styles/drop-down-base/_fluent-definition.scss +102 -102
  90. package/styles/drop-down-base/_fluent2-definition.scss +113 -113
  91. package/styles/drop-down-base/_fusionnew-definition.scss +98 -98
  92. package/styles/drop-down-base/_highcontrast-definition.scss +96 -96
  93. package/styles/drop-down-base/_highcontrast-light-definition.scss +96 -96
  94. package/styles/drop-down-base/_layout.scss +148 -148
  95. package/styles/drop-down-base/_material-dark-definition.scss +82 -82
  96. package/styles/drop-down-base/_material-definition.scss +81 -81
  97. package/styles/drop-down-base/_material3-definition.scss +73 -73
  98. package/styles/drop-down-base/_tailwind-definition.scss +107 -107
  99. package/styles/drop-down-base/_tailwind3-definition.scss +98 -98
  100. package/styles/drop-down-base/_theme.scss +303 -303
  101. package/styles/drop-down-base/material3-dark.scss +1 -1
  102. package/styles/drop-down-base/material3.scss +1 -1
  103. package/styles/drop-down-list/_all.scss +3 -3
  104. package/styles/drop-down-list/_bds-definition.scss +100 -100
  105. package/styles/drop-down-list/_bigger.scss +713 -713
  106. package/styles/drop-down-list/_bootstrap-dark-definition.scss +94 -94
  107. package/styles/drop-down-list/_bootstrap-definition.scss +93 -93
  108. package/styles/drop-down-list/_bootstrap4-definition.scss +122 -122
  109. package/styles/drop-down-list/_bootstrap5-definition.scss +135 -135
  110. package/styles/drop-down-list/_bootstrap5.3-definition.scss +136 -136
  111. package/styles/drop-down-list/_fabric-dark-definition.scss +72 -72
  112. package/styles/drop-down-list/_fabric-definition.scss +69 -69
  113. package/styles/drop-down-list/_fluent-definition.scss +128 -128
  114. package/styles/drop-down-list/_fluent2-definition.scss +101 -101
  115. package/styles/drop-down-list/_fusionnew-definition.scss +134 -134
  116. package/styles/drop-down-list/_highcontrast-definition.scss +83 -83
  117. package/styles/drop-down-list/_highcontrast-light-definition.scss +85 -85
  118. package/styles/drop-down-list/_layout.scss +284 -284
  119. package/styles/drop-down-list/_material-dark-definition.scss +110 -110
  120. package/styles/drop-down-list/_material-definition.scss +112 -112
  121. package/styles/drop-down-list/_material3-definition.scss +114 -114
  122. package/styles/drop-down-list/_tailwind-definition.scss +100 -100
  123. package/styles/drop-down-list/_tailwind3-definition.scss +135 -135
  124. package/styles/drop-down-list/_theme.scss +17 -17
  125. package/styles/drop-down-list/icons/_bds.scss +14 -14
  126. package/styles/drop-down-list/icons/_bootstrap-dark.scss +18 -18
  127. package/styles/drop-down-list/icons/_bootstrap.scss +18 -18
  128. package/styles/drop-down-list/icons/_bootstrap4.scss +18 -18
  129. package/styles/drop-down-list/icons/_bootstrap5.3.scss +18 -18
  130. package/styles/drop-down-list/icons/_bootstrap5.scss +18 -18
  131. package/styles/drop-down-list/icons/_fabric-dark.scss +18 -18
  132. package/styles/drop-down-list/icons/_fabric.scss +18 -18
  133. package/styles/drop-down-list/icons/_fluent.scss +18 -18
  134. package/styles/drop-down-list/icons/_fluent2.scss +18 -18
  135. package/styles/drop-down-list/icons/_fusionnew.scss +14 -14
  136. package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
  137. package/styles/drop-down-list/icons/_highcontrast.scss +18 -18
  138. package/styles/drop-down-list/icons/_material-dark.scss +18 -18
  139. package/styles/drop-down-list/icons/_material.scss +18 -18
  140. package/styles/drop-down-list/icons/_material3.scss +18 -18
  141. package/styles/drop-down-list/icons/_tailwind.scss +18 -18
  142. package/styles/drop-down-list/icons/_tailwind3.scss +14 -14
  143. package/styles/drop-down-list/material3-dark.scss +1 -1
  144. package/styles/drop-down-list/material3.scss +1 -1
  145. package/styles/drop-down-tree/_all.scss +2 -2
  146. package/styles/drop-down-tree/_bds-definition.scss +74 -74
  147. package/styles/drop-down-tree/_bigger.scss +561 -561
  148. package/styles/drop-down-tree/_bootstrap-dark-definition.scss +81 -81
  149. package/styles/drop-down-tree/_bootstrap-definition.scss +81 -81
  150. package/styles/drop-down-tree/_bootstrap4-definition.scss +85 -85
  151. package/styles/drop-down-tree/_bootstrap5-definition.scss +73 -73
  152. package/styles/drop-down-tree/_bootstrap5.3-definition.scss +74 -74
  153. package/styles/drop-down-tree/_fabric-dark-definition.scss +81 -81
  154. package/styles/drop-down-tree/_fabric-definition.scss +81 -81
  155. package/styles/drop-down-tree/_fluent-definition.scss +78 -78
  156. package/styles/drop-down-tree/_fluent2-definition.scss +85 -85
  157. package/styles/drop-down-tree/_fusionnew-definition.scss +69 -69
  158. package/styles/drop-down-tree/_highcontrast-definition.scss +81 -81
  159. package/styles/drop-down-tree/_highcontrast-light-definition.scss +81 -81
  160. package/styles/drop-down-tree/_layout.scss +942 -942
  161. package/styles/drop-down-tree/_material-dark-definition.scss +82 -82
  162. package/styles/drop-down-tree/_material-definition.scss +84 -84
  163. package/styles/drop-down-tree/_material3-definition.scss +84 -84
  164. package/styles/drop-down-tree/_tailwind-definition.scss +74 -74
  165. package/styles/drop-down-tree/_tailwind3-definition.scss +75 -75
  166. package/styles/drop-down-tree/_theme.scss +135 -135
  167. package/styles/drop-down-tree/icons/_bds.scss +11 -11
  168. package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
  169. package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
  170. package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
  171. package/styles/drop-down-tree/icons/_bootstrap5.3.scss +11 -11
  172. package/styles/drop-down-tree/icons/_bootstrap5.scss +11 -11
  173. package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
  174. package/styles/drop-down-tree/icons/_fabric.scss +11 -11
  175. package/styles/drop-down-tree/icons/_fluent.scss +11 -11
  176. package/styles/drop-down-tree/icons/_fluent2.scss +14 -14
  177. package/styles/drop-down-tree/icons/_fusionnew.scss +11 -11
  178. package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
  179. package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
  180. package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
  181. package/styles/drop-down-tree/icons/_material.scss +11 -11
  182. package/styles/drop-down-tree/icons/_material3.scss +11 -11
  183. package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
  184. package/styles/drop-down-tree/icons/_tailwind.scss +11 -11
  185. package/styles/drop-down-tree/icons/_tailwind3.scss +11 -11
  186. package/styles/drop-down-tree/material3-dark.scss +1 -1
  187. package/styles/drop-down-tree/material3.scss +1 -1
  188. package/styles/list-box/_all.scss +2 -2
  189. package/styles/list-box/_bds-definition.scss +136 -136
  190. package/styles/list-box/_bigger.scss +190 -190
  191. package/styles/list-box/_bootstrap-dark-definition.scss +126 -126
  192. package/styles/list-box/_bootstrap-definition.scss +119 -119
  193. package/styles/list-box/_bootstrap4-definition.scss +126 -126
  194. package/styles/list-box/_bootstrap5-definition.scss +121 -121
  195. package/styles/list-box/_bootstrap5.3-definition.scss +123 -123
  196. package/styles/list-box/_fabric-dark-definition.scss +124 -124
  197. package/styles/list-box/_fabric-definition.scss +119 -119
  198. package/styles/list-box/_fluent-definition.scss +120 -120
  199. package/styles/list-box/_fluent2-definition.scss +121 -121
  200. package/styles/list-box/_fusionnew-definition.scss +111 -111
  201. package/styles/list-box/_highcontrast-definition.scss +119 -119
  202. package/styles/list-box/_highcontrast-light-definition.scss +124 -124
  203. package/styles/list-box/_layout.scss +496 -496
  204. package/styles/list-box/_material-dark-definition.scss +124 -124
  205. package/styles/list-box/_material-definition.scss +119 -119
  206. package/styles/list-box/_material3-definition.scss +119 -119
  207. package/styles/list-box/_tailwind-definition.scss +119 -119
  208. package/styles/list-box/_tailwind3-definition.scss +123 -123
  209. package/styles/list-box/_theme.scss +327 -327
  210. package/styles/list-box/icons/_bds.scss +25 -25
  211. package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
  212. package/styles/list-box/icons/_bootstrap.scss +25 -25
  213. package/styles/list-box/icons/_bootstrap4.scss +25 -25
  214. package/styles/list-box/icons/_bootstrap5.3.scss +25 -25
  215. package/styles/list-box/icons/_bootstrap5.scss +25 -25
  216. package/styles/list-box/icons/_fabric-dark.scss +25 -25
  217. package/styles/list-box/icons/_fabric.scss +25 -25
  218. package/styles/list-box/icons/_fluent.scss +25 -25
  219. package/styles/list-box/icons/_fluent2.scss +25 -25
  220. package/styles/list-box/icons/_fusionnew.scss +25 -25
  221. package/styles/list-box/icons/_highcontrast-light.scss +25 -25
  222. package/styles/list-box/icons/_highcontrast.scss +25 -25
  223. package/styles/list-box/icons/_material-dark.scss +25 -25
  224. package/styles/list-box/icons/_material.scss +25 -25
  225. package/styles/list-box/icons/_material3.scss +25 -25
  226. package/styles/list-box/icons/_tailwind-dark.scss +25 -25
  227. package/styles/list-box/icons/_tailwind.scss +25 -25
  228. package/styles/list-box/icons/_tailwind3.scss +25 -25
  229. package/styles/list-box/material3-dark.scss +1 -1
  230. package/styles/list-box/material3.scss +1 -1
  231. package/styles/material3-dark.scss +1 -1
  232. package/styles/material3.scss +1 -1
  233. package/styles/mention/_all.scss +1 -1
  234. package/styles/mention/_bds-definition.scss +1 -1
  235. package/styles/mention/_bootstrap-dark-definition.scss +3 -3
  236. package/styles/mention/_bootstrap-definition.scss +3 -3
  237. package/styles/mention/_bootstrap4-definition.scss +3 -3
  238. package/styles/mention/_bootstrap5-definition.scss +1 -1
  239. package/styles/mention/_bootstrap5.3-definition.scss +1 -1
  240. package/styles/mention/_fabric-dark-definition.scss +2 -2
  241. package/styles/mention/_fabric-definition.scss +3 -3
  242. package/styles/mention/_fluent-definition.scss +1 -1
  243. package/styles/mention/_fluent2-definition.scss +1 -1
  244. package/styles/mention/_fusionnew-definition.scss +1 -1
  245. package/styles/mention/_highcontrast-definition.scss +3 -3
  246. package/styles/mention/_highcontrast-light-definition.scss +3 -3
  247. package/styles/mention/_layout.scss +6 -6
  248. package/styles/mention/_material-dark-definition.scss +3 -3
  249. package/styles/mention/_material-definition.scss +3 -3
  250. package/styles/mention/_material3-definition.scss +1 -1
  251. package/styles/mention/_tailwind-definition.scss +1 -1
  252. package/styles/mention/_tailwind3-definition.scss +1 -1
  253. package/styles/mention/material3-dark.scss +1 -1
  254. package/styles/mention/material3.scss +1 -1
  255. package/styles/multi-select/_all.scss +2 -2
  256. package/styles/multi-select/_bds-definition.scss +231 -231
  257. package/styles/multi-select/_bigger.scss +2002 -2002
  258. package/styles/multi-select/_bootstrap-dark-definition.scss +198 -198
  259. package/styles/multi-select/_bootstrap-definition.scss +187 -187
  260. package/styles/multi-select/_bootstrap4-definition.scss +236 -236
  261. package/styles/multi-select/_bootstrap5-definition.scss +229 -229
  262. package/styles/multi-select/_bootstrap5.3-definition.scss +229 -229
  263. package/styles/multi-select/_fabric-dark-definition.scss +190 -190
  264. package/styles/multi-select/_fabric-definition.scss +181 -181
  265. package/styles/multi-select/_fluent-definition.scss +236 -236
  266. package/styles/multi-select/_fluent2-definition.scss +234 -234
  267. package/styles/multi-select/_fusionnew-definition.scss +222 -222
  268. package/styles/multi-select/_highcontrast-definition.scss +302 -302
  269. package/styles/multi-select/_highcontrast-light-definition.scss +296 -296
  270. package/styles/multi-select/_layout.scss +1335 -1335
  271. package/styles/multi-select/_material-dark-definition.scss +248 -248
  272. package/styles/multi-select/_material-definition.scss +250 -250
  273. package/styles/multi-select/_material3-definition.scss +233 -233
  274. package/styles/multi-select/_tailwind-definition.scss +231 -231
  275. package/styles/multi-select/_tailwind3-definition.scss +227 -227
  276. package/styles/multi-select/_theme.scss +564 -564
  277. package/styles/multi-select/icons/_bds.scss +26 -26
  278. package/styles/multi-select/icons/_bootstrap-dark.scss +30 -30
  279. package/styles/multi-select/icons/_bootstrap.scss +30 -30
  280. package/styles/multi-select/icons/_bootstrap4.scss +32 -32
  281. package/styles/multi-select/icons/_bootstrap5.3.scss +30 -30
  282. package/styles/multi-select/icons/_bootstrap5.scss +30 -30
  283. package/styles/multi-select/icons/_fabric-dark.scss +30 -30
  284. package/styles/multi-select/icons/_fabric.scss +30 -30
  285. package/styles/multi-select/icons/_fluent.scss +38 -38
  286. package/styles/multi-select/icons/_fluent2.scss +347 -347
  287. package/styles/multi-select/icons/_fusionnew.scss +26 -26
  288. package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
  289. package/styles/multi-select/icons/_highcontrast.scss +30 -30
  290. package/styles/multi-select/icons/_material-dark.scss +348 -348
  291. package/styles/multi-select/icons/_material.scss +348 -348
  292. package/styles/multi-select/icons/_material3.scss +350 -350
  293. package/styles/multi-select/icons/_tailwind.scss +30 -30
  294. package/styles/multi-select/icons/_tailwind3.scss +26 -26
  295. package/styles/multi-select/material3-dark.scss +1 -1
  296. package/styles/multi-select/material3.scss +1 -1
  297. package/.eslintrc.json +0 -261
  298. package/dist/ej2-dropdowns.min.js +0 -10
  299. package/dist/global/ej2-dropdowns.min.js +0 -11
  300. package/dist/global/ej2-dropdowns.min.js.map +0 -1
  301. package/dist/global/index.d.ts +0 -14
  302. package/helpers/e2e/autocomplete.d.ts +0 -16
  303. package/helpers/e2e/autocomplete.js +0 -60
  304. package/helpers/e2e/combobox.d.ts +0 -17
  305. package/helpers/e2e/combobox.js +0 -63
  306. package/helpers/e2e/dropdownlist.d.ts +0 -20
  307. package/helpers/e2e/dropdownlist.js +0 -72
  308. package/helpers/e2e/index.d.ts +0 -4
  309. package/helpers/e2e/index.js +0 -11
  310. package/helpers/e2e/listboxHelper.d.ts +0 -22
  311. package/helpers/e2e/listboxHelper.js +0 -56
  312. package/helpers/e2e/multiselect.d.ts +0 -31
  313. package/helpers/e2e/multiselect.js +0 -105
  314. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { compile, Property, EventHandler, Animation, AnimationModel, KeyboardEventArgs, formatUnit, append, attributes } from '@syncfusion/ej2-base';import { isNullOrUndefined, detach, Event, EmitType, Complex, addClass, removeClass, closest, isUndefined, getValue, NotifyPropertyChanges, Browser } from '@syncfusion/ej2-base';import { FieldSettingsModel } from '../drop-down-base/drop-down-base-model';import { FieldSettings, FilteringEventArgs, FilterType } from '../drop-down-base/drop-down-base';import { DropDownBase, PopupEventArgs, SelectEventArgs, BeforeOpenEventArgs, dropDownBaseClasses } from '../drop-down-base/drop-down-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { SortOrder } from '@syncfusion/ej2-lists';import { Popup, isCollide, createSpinner, showSpinner, hideSpinner, getZindexPartial } from '@syncfusion/ej2-popups';import { highlightSearch, revertHighlightSearch } from '../common/highlight-search';
1
+ import { compile, Property, EventHandler, Animation, AnimationModel, KeyboardEventArgs, formatUnit, append, attributes } from '@syncfusion/ej2-base';
2
2
  import {MentionChangeEventArgs} from "./mention";
3
3
 
4
4
  /**
@@ -7,296 +7,296 @@ import {MentionChangeEventArgs} from "./mention";
7
7
  export interface MentionModel {
8
8
 
9
9
  /**
10
- * Defines class/multiple classes separated by a space for the mention component.
11
- *
12
- * @default null
13
- */
14
- cssClass?: string;
10
+ * Defines class/multiple classes separated by a space for the mention component.
11
+ *
12
+ * @default null
13
+ */
14
+ cssClass?: string;
15
15
 
16
16
  /**
17
- * Specifies the symbol or single character which triggers the search action in the mention component.
18
- *
19
- * @default '@'
20
- * @aspType char
21
- */
22
- mentionChar?: string;
17
+ * Specifies the symbol or single character which triggers the search action in the mention component.
18
+ *
19
+ * @default '@'
20
+ * @aspType char
21
+ */
22
+ mentionChar?: string;
23
23
 
24
24
  /**
25
- * Specifies whether to show the configured mentionChar with the text.
26
- *
27
- * @default false
28
- */
29
- showMentionChar?: boolean;
25
+ * Specifies whether to show the configured mentionChar with the text.
26
+ *
27
+ * @default false
28
+ */
29
+ showMentionChar?: boolean;
30
30
 
31
31
  /**
32
- * Defines whether to allow the space in the middle of mention while searching.
33
- * When disabled, the space ends the mention component search.
34
- *
35
- * @default false
36
- */
37
- allowSpaces?: boolean;
32
+ * Defines whether to allow the space in the middle of mention while searching.
33
+ * When disabled, the space ends the mention component search.
34
+ *
35
+ * @default false
36
+ */
37
+ allowSpaces?: boolean;
38
38
 
39
39
  /**
40
- * Specifies the custom suffix to append along with the mention component selected item while inserting.
41
- * You can append space or new line character as suffix.
42
- *
43
- * @default null
44
- */
45
- suffixText?: string;
40
+ * Specifies the custom suffix to append along with the mention component selected item while inserting.
41
+ * You can append space or new line character as suffix.
42
+ *
43
+ * @default null
44
+ */
45
+ suffixText?: string;
46
46
 
47
47
  /**
48
- * Specifies the number of items in the suggestion list.
49
- *
50
- * @default 25
51
- * @aspType int
52
- */
53
- suggestionCount?: number;
48
+ * Specifies the number of items in the suggestion list.
49
+ *
50
+ * @default 25
51
+ * @aspType int
52
+ */
53
+ suggestionCount?: number;
54
54
 
55
55
  /**
56
- * Specifies the minimum length of user input to initiate the search action.
57
- * The default value is zero, where suggestion the list opened as soon as the user inputs the mention character.
58
- *
59
- * @default 0
60
- * @aspType int
61
- */
62
- minLength?: number;
56
+ * Specifies the minimum length of user input to initiate the search action.
57
+ * The default value is zero, where suggestion the list opened as soon as the user inputs the mention character.
58
+ *
59
+ * @default 0
60
+ * @aspType int
61
+ */
62
+ minLength?: number;
63
63
 
64
64
  /**
65
- * Specifies the order to sort the data source. The possible sort orders are,
66
- * * `None` - The data source is not sorted.
67
- * * `Ascending` - The data source is sorted in ascending order.
68
- * * `Descending` - The data source is sorted in descending order.
69
- *
70
- * @default 'None'
71
- */
72
- sortOrder?: SortOrder;
65
+ * Specifies the order to sort the data source. The possible sort orders are,
66
+ * * `None` - The data source is not sorted.
67
+ * * `Ascending` - The data source is sorted in ascending order.
68
+ * * `Descending` - The data source is sorted in descending order.
69
+ *
70
+ * @default 'None'
71
+ */
72
+ sortOrder?: SortOrder;
73
73
 
74
74
  /**
75
- * Specifies whether the searches are case sensitive to find suggestions.
76
- *
77
- * @default true
78
- */
79
- ignoreCase?: boolean;
75
+ * Specifies whether the searches are case sensitive to find suggestions.
76
+ *
77
+ * @default true
78
+ */
79
+ ignoreCase?: boolean;
80
80
 
81
81
  /**
82
- * Specifies whether a space is required before the mention character to trigger the suggestion list.
83
- * When set to false, the suggestion list will be triggered even without a space before the mention character.
84
- *
85
- * @default true
86
- */
87
- requireLeadingSpace?: boolean;
82
+ * Specifies whether a space is required before the mention character to trigger the suggestion list.
83
+ * When set to false, the suggestion list will be triggered even without a space before the mention character.
84
+ *
85
+ * @default true
86
+ */
87
+ requireLeadingSpace?: boolean;
88
88
 
89
89
  /**
90
- * Specifies whether to highlight the searched characters on suggestion list items.
91
- *
92
- * @default false
93
- */
94
- highlight?: boolean;
95
-
96
- /**
97
- * Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
98
- *
99
- * @default 'en-US'
100
- */
101
- locale?: string;
102
-
103
- /**
104
- * Specifies the width of the popup in pixels/number/percentage. The number value is considered as pixels.
105
- *
106
- * @default 'auto'
107
- * @aspType string
108
- */
109
- popupWidth?: string | number;
110
-
111
- /**
112
- * Specifies the height of the popup in pixels/number/percentage. The number value is considered as pixels.
113
- *
114
- * @default '300px'
115
- * @aspType string
116
- */
117
- popupHeight?: string | number;
118
-
119
- /**
120
- * Specifies the delay time in milliseconds for filtering operations.
121
- *
122
- * @default 300
123
- */
124
- debounceDelay?: number;
125
-
126
- /**
127
- * Specifies the template for the selected value from the suggestion list.
128
- *
129
- * @default null
130
- * @aspType string
131
- */
132
- displayTemplate?: string | Function;
133
-
134
- /**
135
- * Specifies the template for the suggestion list.
136
- *
137
- * @default null
138
- */
139
- itemTemplate?: string;
140
-
141
- /**
142
- * Specifies the template for no matched item which is displayed when there are no items to display in the suggestion list.
143
- *
144
- * @default 'No records found'
145
- */
146
- noRecordsTemplate?: string;
147
-
148
- /**
149
- * Specifies the template for showing until data is loaded in the popup.
150
- *
151
- * @default null
152
- * @aspType string
153
- */
154
- spinnerTemplate?: string | Function;
155
-
156
- /**
157
- * Specifies the target selector where the mention component needs to be displayed.
158
- * The mention component listens to the target's user input and displays suggestions as soon as the user inputs the mention character.
159
- *
160
- */
161
- target?: HTMLElement | string;
162
-
163
- /**
164
- * Accepts the list items either through local or remote service and binds it to the component.
165
- * It can be an array of JSON Objects or an instance of `DataManager`.
166
- *
167
- * @default []
168
- */
169
- dataSource?: { [key: string]: Object }[] | DataManager | string[] | number[] | boolean[];
170
-
171
- /**
172
- * Specifies the external query, which can be customized and filtered against the data source.
173
- *
174
- * @default null
175
- */
176
- query?: Query;
177
-
178
- /**
179
- * Determines on which filter type, the component needs to be considered on search action.
180
- * and its supported data types are
181
- *
182
- * <table>
183
- * <tr>
184
- * <td colSpan=1 rowSpan=1>
185
- * FilterType<br/></td><td colSpan=1 rowSpan=1>
186
- * Description<br/></td><td colSpan=1 rowSpan=1>
187
- * Supported Types<br/></td></tr>
188
- * <tr>
189
- * <td colSpan=1 rowSpan=1>
190
- * StartsWith<br/></td><td colSpan=1 rowSpan=1>
191
- * Checks whether a value begins with the specified value.<br/></td><td colSpan=1 rowSpan=1>
192
- * String<br/></td></tr>
193
- * <tr>
194
- * <td colSpan=1 rowSpan=1>
195
- * EndsWith<br/></td><td colSpan=1 rowSpan=1>
196
- * Checks whether a value ends with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
197
- * <br/>String<br/></td></tr>
198
- * <tr>
199
- * <td colSpan=1 rowSpan=1>
200
- * Contains<br/></td><td colSpan=1 rowSpan=1>
201
- * Checks whether a value contains with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
202
- * <br/>String<br/></td></tr>
203
- * </table>
204
- *
205
- * The default value set to `Contains`, all the suggestion items which contain typed characters to listed in the suggestion popup.
206
- *
207
- * @default 'Contains'
208
- */
209
- filterType?: FilterType;
210
-
211
- /**
212
- * Defines the fields of the Mention to map with the data source and binds the data to the component.
213
- * * text - Specifies the text that maps the text filed from the data source for each list item.
214
- * * value - Specifies the value that maps the value filed from the data source for each list item.
215
- * * iconCss - Specifies the iconCss that map the icon class filed from the data source for each list item.
216
- * * groupBy - Specifies the groupBy that groups the list items with its related items by mapping groupBy field.
217
- *
218
- * @default
219
- * {
220
- * text: null, value: null, iconCss: null, groupBy: null
221
- * }
222
- */
223
- fields?: FieldSettingsModel;
224
-
225
- /**
226
- * Triggers before fetching data from the remote server.
227
- *
228
- * @event actionBegin
229
- */
230
- actionBegin?: EmitType<Object>;
231
-
232
- /**
233
- * Triggers after data is fetched successfully from the remote server.
234
- *
235
- * @event actionComplete
236
- */
237
- actionComplete?: EmitType<Object>;
238
-
239
- /**
240
- * Triggers when the data fetch request from the remote server fails.
241
- *
242
- * @event actionFailure
243
- */
244
- actionFailure?: EmitType<Object>;
245
-
246
- /**
247
- * Triggers when an item in a popup is selected and updated in an editor.
248
- *
249
- * @event change
250
- */
251
- change?: EmitType<MentionChangeEventArgs>;
252
-
253
- /**
254
- * Triggers before the popup is opened.
255
- *
256
- * @event beforeOpen
257
- */
258
- beforeOpen?: EmitType<PopupEventArgs>;
259
-
260
- /**
261
- * Triggers after the popup opens.
262
- *
263
- * @event opened
264
- */
265
- opened?: EmitType<PopupEventArgs>;
266
-
267
- /**
268
- * Triggers after the popup is closed.
269
- *
270
- * @event closed
271
- */
272
- closed?: EmitType<PopupEventArgs>;
273
-
274
- /**
275
- * Triggers when an item in the popup is selected by the user either with the mouse/tap or with keyboard navigation.
276
- *
277
- * @event select
278
- */
279
- select?: EmitType<SelectEventArgs>;
280
-
281
- /**
282
- * Triggers on typing a character in the component.
283
- *
284
- * @event filtering
285
- */
286
- filtering?: EmitType<FilteringEventArgs>;
287
-
288
- /**
289
- * Triggers when the component is created.
290
- *
291
- * @event created
292
- */
293
- created?: EmitType<Object>;
294
-
295
- /**
296
-      * Triggers when the component is destroyed.
297
- *
298
-      * @event destroyed
299
-      */
300
- destroyed?: EmitType<Object>;
90
+ * Specifies whether to highlight the searched characters on suggestion list items.
91
+ *
92
+ * @default false
93
+ */
94
+ highlight?: boolean;
95
+
96
+ /**
97
+ * Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
98
+ *
99
+ * @default 'en-US'
100
+ */
101
+ locale?: string;
102
+
103
+ /**
104
+ * Specifies the width of the popup in pixels/number/percentage. The number value is considered as pixels.
105
+ *
106
+ * @default 'auto'
107
+ * @aspType string
108
+ */
109
+ popupWidth?: string | number;
110
+
111
+ /**
112
+ * Specifies the height of the popup in pixels/number/percentage. The number value is considered as pixels.
113
+ *
114
+ * @default '300px'
115
+ * @aspType string
116
+ */
117
+ popupHeight?: string | number;
118
+
119
+ /**
120
+ * Specifies the delay time in milliseconds for filtering operations.
121
+ *
122
+ * @default 300
123
+ */
124
+ debounceDelay?: number;
125
+
126
+ /**
127
+ * Specifies the template for the selected value from the suggestion list.
128
+ *
129
+ * @default null
130
+ * @aspType string
131
+ */
132
+ displayTemplate?: string | Function;
133
+
134
+ /**
135
+ * Specifies the template for the suggestion list.
136
+ *
137
+ * @default null
138
+ */
139
+ itemTemplate?: string;
140
+
141
+ /**
142
+ * Specifies the template for no matched item which is displayed when there are no items to display in the suggestion list.
143
+ *
144
+ * @default 'No records found'
145
+ */
146
+ noRecordsTemplate?: string;
147
+
148
+ /**
149
+ * Specifies the template for showing until data is loaded in the popup.
150
+ *
151
+ * @default null
152
+ * @aspType string
153
+ */
154
+ spinnerTemplate?: string | Function;
155
+
156
+ /**
157
+ * Specifies the target selector where the mention component needs to be displayed.
158
+ * The mention component listens to the target's user input and displays suggestions as soon as the user inputs the mention character.
159
+ *
160
+ */
161
+ target?: HTMLElement | string;
162
+
163
+ /**
164
+ * Accepts the list items either through local or remote service and binds it to the component.
165
+ * It can be an array of JSON Objects or an instance of `DataManager`.
166
+ *
167
+ * @default []
168
+ */
169
+ dataSource?: { [key: string]: Object }[] | DataManager | string[] | number[] | boolean[];
170
+
171
+ /**
172
+ * Specifies the external query, which can be customized and filtered against the data source.
173
+ *
174
+ * @default null
175
+ */
176
+ query?: Query;
177
+
178
+ /**
179
+ * Determines on which filter type, the component needs to be considered on search action.
180
+ * and its supported data types are
181
+ *
182
+ * <table>
183
+ * <tr>
184
+ * <td colSpan=1 rowSpan=1>
185
+ * FilterType<br/></td><td colSpan=1 rowSpan=1>
186
+ * Description<br/></td><td colSpan=1 rowSpan=1>
187
+ * Supported Types<br/></td></tr>
188
+ * <tr>
189
+ * <td colSpan=1 rowSpan=1>
190
+ * StartsWith<br/></td><td colSpan=1 rowSpan=1>
191
+ * Checks whether a value begins with the specified value.<br/></td><td colSpan=1 rowSpan=1>
192
+ * String<br/></td></tr>
193
+ * <tr>
194
+ * <td colSpan=1 rowSpan=1>
195
+ * EndsWith<br/></td><td colSpan=1 rowSpan=1>
196
+ * Checks whether a value ends with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
197
+ * <br/>String<br/></td></tr>
198
+ * <tr>
199
+ * <td colSpan=1 rowSpan=1>
200
+ * Contains<br/></td><td colSpan=1 rowSpan=1>
201
+ * Checks whether a value contains with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
202
+ * <br/>String<br/></td></tr>
203
+ * </table>
204
+ *
205
+ * The default value set to `Contains`, all the suggestion items which contain typed characters to listed in the suggestion popup.
206
+ *
207
+ * @default 'Contains'
208
+ */
209
+ filterType?: FilterType;
210
+
211
+ /**
212
+ * Defines the fields of the Mention to map with the data source and binds the data to the component.
213
+ * * text - Specifies the text that maps the text filed from the data source for each list item.
214
+ * * value - Specifies the value that maps the value filed from the data source for each list item.
215
+ * * iconCss - Specifies the iconCss that map the icon class filed from the data source for each list item.
216
+ * * groupBy - Specifies the groupBy that groups the list items with its related items by mapping groupBy field.
217
+ *
218
+ * @default
219
+ * {
220
+ * text: null, value: null, iconCss: null, groupBy: null
221
+ * }
222
+ */
223
+ fields?: FieldSettingsModel;
224
+
225
+ /**
226
+ * Triggers before fetching data from the remote server.
227
+ *
228
+ * @event actionBegin
229
+ */
230
+ actionBegin?: EmitType<Object>;
231
+
232
+ /**
233
+ * Triggers after data is fetched successfully from the remote server.
234
+ *
235
+ * @event actionComplete
236
+ */
237
+ actionComplete?: EmitType<Object>;
238
+
239
+ /**
240
+ * Triggers when the data fetch request from the remote server fails.
241
+ *
242
+ * @event actionFailure
243
+ */
244
+ actionFailure?: EmitType<Object>;
245
+
246
+ /**
247
+ * Triggers when an item in a popup is selected and updated in an editor.
248
+ *
249
+ * @event change
250
+ */
251
+ change?: EmitType<MentionChangeEventArgs>;
252
+
253
+ /**
254
+ * Triggers before the popup is opened.
255
+ *
256
+ * @event beforeOpen
257
+ */
258
+ beforeOpen?: EmitType<PopupEventArgs>;
259
+
260
+ /**
261
+ * Triggers after the popup opens.
262
+ *
263
+ * @event opened
264
+ */
265
+ opened?: EmitType<PopupEventArgs>;
266
+
267
+ /**
268
+ * Triggers after the popup is closed.
269
+ *
270
+ * @event closed
271
+ */
272
+ closed?: EmitType<PopupEventArgs>;
273
+
274
+ /**
275
+ * Triggers when an item in the popup is selected by the user either with the mouse/tap or with keyboard navigation.
276
+ *
277
+ * @event select
278
+ */
279
+ select?: EmitType<SelectEventArgs>;
280
+
281
+ /**
282
+ * Triggers on typing a character in the component.
283
+ *
284
+ * @event filtering
285
+ */
286
+ filtering?: EmitType<FilteringEventArgs>;
287
+
288
+ /**
289
+ * Triggers when the component is created.
290
+ *
291
+ * @event created
292
+ */
293
+ created?: EmitType<Object>;
294
+
295
+ /**
296
+      * Triggers when the component is destroyed.
297
+ *
298
+      * @event destroyed
299
+      */
300
+ destroyed?: EmitType<Object>;
301
301
 
302
302
  }
@@ -468,7 +468,7 @@ export declare class Mention extends DropDownBase {
468
468
  *
469
469
  * @param {string | number | object | HTMLLIElement} item - Specifies the item to be disabled.
470
470
  * @returns {void}
471
-
471
+ * @deprecated
472
472
  */
473
473
  disableItem(item: string | number | object | HTMLLIElement): void;
474
474
  /**
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { compile, Property, EventHandler, Animation, formatUnit, append, attributes } from '@syncfusion/ej2-base';
21
21
  import { isNullOrUndefined, detach, Event, Complex, addClass, removeClass, closest, isUndefined, getValue, NotifyPropertyChanges, Browser } from '@syncfusion/ej2-base';
22
22
  import { FieldSettings } from '../drop-down-base/drop-down-base';
@@ -370,12 +370,14 @@ var Mention = /** @class */ (function (_super) {
370
370
  var isValid = currentRange && mentionRegex.test(currentRange) ? false : true;
371
371
  var lastWordRange = this.getLastLetter(currentRange);
372
372
  var previousChar = currentRange ? currentRange.charAt(Math.max(0, currentRange.indexOf(this.mentionChar) - 1)) : '';
373
- if (isValid && this.allowSpaces && currentRange && currentRange.includes(this.mentionChar) && currentRange.split(this.mentionChar).pop() !== ''
374
- && (!this.requireLeadingSpace || (this.requireLeadingSpace && (previousChar === ' ' || currentRange.indexOf(this.mentionChar) === 0)))) {
375
- lastWordRange = this.mentionChar + currentRange.split(this.mentionChar).pop();
376
- }
377
- if (!this.requireLeadingSpace && lastWordRange && lastWordRange.includes(this.mentionChar)) {
378
- lastWordRange = this.mentionChar + lastWordRange.split(this.mentionChar).pop();
373
+ if (!this.allowSpaces) {
374
+ if (isValid && currentRange && currentRange.includes(this.mentionChar) && currentRange.split(this.mentionChar).pop() !== ''
375
+ && (!this.requireLeadingSpace || (this.requireLeadingSpace && (previousChar === ' ' || currentRange.indexOf(this.mentionChar) === 0)))) {
376
+ lastWordRange = this.mentionChar + currentRange.split(this.mentionChar).pop();
377
+ }
378
+ if (!this.requireLeadingSpace && lastWordRange && lastWordRange.includes(this.mentionChar)) {
379
+ lastWordRange = this.mentionChar + lastWordRange.split(this.mentionChar).pop();
380
+ }
379
381
  }
380
382
  var lastTwoLetters = this.mentionChar.toString() + this.mentionChar.toString();
381
383
  // eslint-disable-next-line security/detect-non-literal-regexp
@@ -388,7 +390,7 @@ var Mention = /** @class */ (function (_super) {
388
390
  this.hidePopup();
389
391
  return;
390
392
  }
391
- if (((!currentRange || !lastWordRange) || (!lastWordRange.includes(this.mentionChar) && !this.requireLeadingSpace)) || e.code === 'Enter' || e.keyCode === 27 ||
393
+ if (((!currentRange || !lastWordRange) || (!lastWordRange.includes(this.mentionChar) && !this.requireLeadingSpace && !this.allowSpaces)) || e.code === 'Enter' || e.keyCode === 27 ||
392
394
  (lastWordRange.match(Regex) && lastWordRange.match(Regex).length > 1) ||
393
395
  (this.isContentEditable(this.inputElement) && this.range.startContainer &&
394
396
  this.range.startContainer.previousElementSibling && this.range.startContainer.previousElementSibling.tagName !== 'BR' && this.range.startContainer.textContent.split('').length > 0 &&
@@ -1588,7 +1590,7 @@ var Mention = /** @class */ (function (_super) {
1588
1590
  *
1589
1591
  * @param {string | number | object | HTMLLIElement} item - Specifies the item to be disabled.
1590
1592
  * @returns {void}
1591
-
1593
+ * @deprecated
1592
1594
  */
1593
1595
  Mention.prototype.disableItem = function (item) {
1594
1596
  if (this.fields.disabled) {