@syncfusion/ej2-dropdowns 24.1.44 → 24.1.45-12082

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 (310) hide show
  1. package/CHANGELOG.md +2101 -2083
  2. package/{README.md → ReadMe.md} +217 -217
  3. package/dist/ej2-dropdowns.min.js +1 -10
  4. package/dist/ej2-dropdowns.umd.min.js +1 -10
  5. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-dropdowns.es2015.js +74 -68
  7. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  8. package/dist/es6/ej2-dropdowns.es5.js +216 -210
  9. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  10. package/dist/global/ej2-dropdowns.min.js +1 -10
  11. package/dist/global/ej2-dropdowns.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/dist/ts/auto-complete/auto-complete.ts +623 -0
  14. package/dist/ts/combo-box/combo-box.ts +1099 -0
  15. package/dist/ts/common/highlight-search.ts +57 -0
  16. package/dist/ts/common/incremental-search.ts +172 -0
  17. package/dist/ts/common/interface.ts +74 -0
  18. package/dist/ts/common/virtual-scroll.ts +388 -0
  19. package/dist/ts/drop-down-base/drop-down-base.ts +1986 -0
  20. package/dist/ts/drop-down-list/drop-down-list.ts +4261 -0
  21. package/dist/ts/drop-down-tree/drop-down-tree.ts +3747 -0
  22. package/dist/ts/list-box/list-box.ts +2772 -0
  23. package/dist/ts/mention/mention.ts +1875 -0
  24. package/dist/ts/multi-select/checkbox-selection.ts +550 -0
  25. package/dist/ts/multi-select/float-label.ts +176 -0
  26. package/dist/ts/multi-select/interface.ts +70 -0
  27. package/dist/ts/multi-select/multi-select.ts +4882 -0
  28. package/helpers/e2e/autocomplete.js +13 -13
  29. package/helpers/e2e/combobox.js +13 -13
  30. package/helpers/e2e/dropdownlist.js +13 -13
  31. package/helpers/e2e/index.js +3 -3
  32. package/helpers/e2e/listboxHelper.js +13 -13
  33. package/helpers/e2e/multiselect.js +13 -13
  34. package/license +2 -2
  35. package/package.json +80 -80
  36. package/src/auto-complete/auto-complete-model.d.ts +188 -188
  37. package/src/auto-complete/auto-complete.d.ts +12 -12
  38. package/src/auto-complete/auto-complete.js +21 -21
  39. package/src/combo-box/combo-box-model.d.ts +224 -224
  40. package/src/combo-box/combo-box.d.ts +27 -27
  41. package/src/combo-box/combo-box.js +29 -29
  42. package/src/common/virtual-scroll.js +46 -46
  43. package/src/drop-down-base/drop-down-base-model.d.ts +200 -200
  44. package/src/drop-down-base/drop-down-base.d.ts +16 -16
  45. package/src/drop-down-base/drop-down-base.js +20 -20
  46. package/src/drop-down-list/drop-down-list-model.d.ts +202 -202
  47. package/src/drop-down-list/drop-down-list.d.ts +5 -4
  48. package/src/drop-down-list/drop-down-list.js +29 -22
  49. package/src/drop-down-tree/drop-down-tree-model.d.ts +468 -468
  50. package/src/drop-down-tree/drop-down-tree.d.ts +0 -1
  51. package/src/drop-down-tree/drop-down-tree.js +19 -27
  52. package/src/list-box/list-box-model.d.ts +193 -193
  53. package/src/list-box/list-box.d.ts +2 -2
  54. package/src/list-box/list-box.js +19 -19
  55. package/src/mention/mention-model.d.ts +261 -261
  56. package/src/mention/mention.js +27 -20
  57. package/src/multi-select/multi-select-model.d.ts +512 -512
  58. package/src/multi-select/multi-select.js +20 -20
  59. package/styles/auto-complete/_all.scss +1 -1
  60. package/styles/auto-complete/_bds-definition.scss +2 -0
  61. package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
  62. package/styles/auto-complete/_bootstrap-definition.scss +2 -2
  63. package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
  64. package/styles/auto-complete/_bootstrap5-definition.scss +2 -2
  65. package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
  66. package/styles/auto-complete/_fabric-definition.scss +2 -2
  67. package/styles/auto-complete/_fluent-definition.scss +2 -2
  68. package/styles/auto-complete/_fusionnew-definition.scss +2 -2
  69. package/styles/auto-complete/_highcontrast-definition.scss +2 -2
  70. package/styles/auto-complete/_highcontrast-light-definition.scss +2 -2
  71. package/styles/auto-complete/_material-dark-definition.scss +2 -2
  72. package/styles/auto-complete/_material-definition.scss +2 -2
  73. package/styles/auto-complete/_material3-definition.scss +2 -2
  74. package/styles/auto-complete/_tailwind-definition.scss +2 -2
  75. package/styles/auto-complete/material3-dark.scss +1 -1
  76. package/styles/auto-complete/material3.scss +1 -1
  77. package/styles/bootstrap-dark.css +5 -0
  78. package/styles/bootstrap.css +5 -0
  79. package/styles/bootstrap4.css +5 -0
  80. package/styles/bootstrap5-dark.css +5 -0
  81. package/styles/bootstrap5.css +5 -0
  82. package/styles/combo-box/_all.scss +1 -1
  83. package/styles/combo-box/_bds-definition.scss +2 -0
  84. package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
  85. package/styles/combo-box/_bootstrap-definition.scss +2 -2
  86. package/styles/combo-box/_bootstrap4-definition.scss +11 -11
  87. package/styles/combo-box/_bootstrap5-definition.scss +2 -2
  88. package/styles/combo-box/_fabric-dark-definition.scss +2 -2
  89. package/styles/combo-box/_fabric-definition.scss +2 -2
  90. package/styles/combo-box/_fluent-definition.scss +2 -2
  91. package/styles/combo-box/_fusionnew-definition.scss +2 -2
  92. package/styles/combo-box/_highcontrast-definition.scss +2 -2
  93. package/styles/combo-box/_highcontrast-light-definition.scss +3 -3
  94. package/styles/combo-box/_material-dark-definition.scss +2 -2
  95. package/styles/combo-box/_material-definition.scss +2 -2
  96. package/styles/combo-box/_material3-definition.scss +2 -2
  97. package/styles/combo-box/_tailwind-definition.scss +2 -2
  98. package/styles/combo-box/material3-dark.scss +1 -1
  99. package/styles/combo-box/material3.scss +1 -1
  100. package/styles/drop-down-base/_all.scss +2 -2
  101. package/styles/drop-down-base/_bds-definition.scss +129 -0
  102. package/styles/drop-down-base/_bootstrap-dark-definition.scss +83 -83
  103. package/styles/drop-down-base/_bootstrap-definition.scss +83 -83
  104. package/styles/drop-down-base/_bootstrap4-definition.scss +90 -90
  105. package/styles/drop-down-base/_bootstrap5-definition.scss +117 -117
  106. package/styles/drop-down-base/_definition.scss +23 -23
  107. package/styles/drop-down-base/_fabric-dark-definition.scss +86 -86
  108. package/styles/drop-down-base/_fabric-definition.scss +84 -84
  109. package/styles/drop-down-base/_fluent-definition.scss +121 -121
  110. package/styles/drop-down-base/_fusionnew-definition.scss +117 -117
  111. package/styles/drop-down-base/_highcontrast-definition.scss +105 -105
  112. package/styles/drop-down-base/_highcontrast-light-definition.scss +105 -105
  113. package/styles/drop-down-base/_layout.scss +192 -192
  114. package/styles/drop-down-base/_material-dark-definition.scss +86 -86
  115. package/styles/drop-down-base/_material-definition.scss +85 -85
  116. package/styles/drop-down-base/_material3-definition.scss +87 -87
  117. package/styles/drop-down-base/_tailwind-definition.scss +129 -129
  118. package/styles/drop-down-base/_theme.scss +391 -391
  119. package/styles/drop-down-base/material3-dark.scss +1 -1
  120. package/styles/drop-down-base/material3.scss +1 -1
  121. package/styles/drop-down-list/_all.scss +3 -3
  122. package/styles/drop-down-list/_bds-definition.scss +134 -0
  123. package/styles/drop-down-list/_bootstrap-dark-definition.scss +157 -157
  124. package/styles/drop-down-list/_bootstrap-definition.scss +156 -156
  125. package/styles/drop-down-list/_bootstrap4-definition.scss +202 -202
  126. package/styles/drop-down-list/_bootstrap5-definition.scss +201 -201
  127. package/styles/drop-down-list/_fabric-dark-definition.scss +128 -128
  128. package/styles/drop-down-list/_fabric-definition.scss +124 -124
  129. package/styles/drop-down-list/_fluent-definition.scss +185 -185
  130. package/styles/drop-down-list/_fusionnew-definition.scss +201 -201
  131. package/styles/drop-down-list/_highcontrast-definition.scss +142 -142
  132. package/styles/drop-down-list/_highcontrast-light-definition.scss +144 -144
  133. package/styles/drop-down-list/_layout.scss +315 -310
  134. package/styles/drop-down-list/_material-dark-definition.scss +143 -143
  135. package/styles/drop-down-list/_material-definition.scss +167 -167
  136. package/styles/drop-down-list/_material3-definition.scss +180 -180
  137. package/styles/drop-down-list/_tailwind-definition.scss +134 -134
  138. package/styles/drop-down-list/_theme.scss +10 -10
  139. package/styles/drop-down-list/bootstrap-dark.css +5 -0
  140. package/styles/drop-down-list/bootstrap.css +5 -0
  141. package/styles/drop-down-list/bootstrap4.css +5 -0
  142. package/styles/drop-down-list/bootstrap5-dark.css +5 -0
  143. package/styles/drop-down-list/bootstrap5.css +5 -0
  144. package/styles/drop-down-list/fabric-dark.css +5 -0
  145. package/styles/drop-down-list/fabric.css +5 -0
  146. package/styles/drop-down-list/fluent-dark.css +5 -0
  147. package/styles/drop-down-list/fluent.css +5 -0
  148. package/styles/drop-down-list/highcontrast-light.css +5 -0
  149. package/styles/drop-down-list/highcontrast.css +5 -0
  150. package/styles/drop-down-list/icons/_bootstrap-dark.scss +14 -14
  151. package/styles/drop-down-list/icons/_bootstrap.scss +14 -14
  152. package/styles/drop-down-list/icons/_bootstrap4.scss +14 -14
  153. package/styles/drop-down-list/icons/_bootstrap5.scss +14 -14
  154. package/styles/drop-down-list/icons/_fabric-dark.scss +14 -14
  155. package/styles/drop-down-list/icons/_fabric.scss +14 -14
  156. package/styles/drop-down-list/icons/_fluent.scss +14 -14
  157. package/styles/drop-down-list/icons/_fusionnew.scss +14 -14
  158. package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
  159. package/styles/drop-down-list/icons/_highcontrast.scss +14 -14
  160. package/styles/drop-down-list/icons/_material-dark.scss +14 -14
  161. package/styles/drop-down-list/icons/_material.scss +14 -14
  162. package/styles/drop-down-list/icons/_material3.scss +14 -14
  163. package/styles/drop-down-list/icons/_tailwind.scss +14 -14
  164. package/styles/drop-down-list/material-dark.css +5 -0
  165. package/styles/drop-down-list/material.css +5 -0
  166. package/styles/drop-down-list/material3-dark.css +5 -0
  167. package/styles/drop-down-list/material3-dark.scss +1 -1
  168. package/styles/drop-down-list/material3.css +5 -0
  169. package/styles/drop-down-list/material3.scss +1 -1
  170. package/styles/drop-down-list/tailwind-dark.css +5 -0
  171. package/styles/drop-down-list/tailwind.css +5 -0
  172. package/styles/drop-down-tree/_all.scss +2 -2
  173. package/styles/drop-down-tree/_bds-definition.scss +61 -0
  174. package/styles/drop-down-tree/_bootstrap-dark-definition.scss +71 -71
  175. package/styles/drop-down-tree/_bootstrap-definition.scss +70 -70
  176. package/styles/drop-down-tree/_bootstrap4-definition.scss +71 -71
  177. package/styles/drop-down-tree/_bootstrap5-definition.scss +59 -59
  178. package/styles/drop-down-tree/_fabric-dark-definition.scss +71 -71
  179. package/styles/drop-down-tree/_fabric-definition.scss +71 -71
  180. package/styles/drop-down-tree/_fluent-definition.scss +65 -65
  181. package/styles/drop-down-tree/_fusionnew-definition.scss +59 -59
  182. package/styles/drop-down-tree/_highcontrast-definition.scss +71 -71
  183. package/styles/drop-down-tree/_highcontrast-light-definition.scss +71 -71
  184. package/styles/drop-down-tree/_layout.scss +1423 -1423
  185. package/styles/drop-down-tree/_material-dark-definition.scss +72 -72
  186. package/styles/drop-down-tree/_material-definition.scss +72 -72
  187. package/styles/drop-down-tree/_material3-definition.scss +76 -76
  188. package/styles/drop-down-tree/_tailwind-definition.scss +61 -61
  189. package/styles/drop-down-tree/_theme.scss +132 -132
  190. package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
  191. package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
  192. package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
  193. package/styles/drop-down-tree/icons/_bootstrap5.scss +11 -11
  194. package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
  195. package/styles/drop-down-tree/icons/_fabric.scss +11 -11
  196. package/styles/drop-down-tree/icons/_fluent.scss +11 -11
  197. package/styles/drop-down-tree/icons/_fusionnew.scss +11 -11
  198. package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
  199. package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
  200. package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
  201. package/styles/drop-down-tree/icons/_material.scss +11 -11
  202. package/styles/drop-down-tree/icons/_material3.scss +11 -11
  203. package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
  204. package/styles/drop-down-tree/icons/_tailwind.scss +11 -11
  205. package/styles/drop-down-tree/material3-dark.scss +1 -1
  206. package/styles/drop-down-tree/material3.scss +1 -1
  207. package/styles/fabric-dark.css +5 -0
  208. package/styles/fabric.css +5 -0
  209. package/styles/fluent-dark.css +5 -0
  210. package/styles/fluent.css +5 -0
  211. package/styles/highcontrast-light.css +5 -0
  212. package/styles/highcontrast.css +5 -0
  213. package/styles/list-box/_all.scss +2 -2
  214. package/styles/list-box/_bds-definition.scss +119 -0
  215. package/styles/list-box/_bootstrap-dark-definition.scss +126 -126
  216. package/styles/list-box/_bootstrap-definition.scss +119 -119
  217. package/styles/list-box/_bootstrap4-definition.scss +124 -124
  218. package/styles/list-box/_bootstrap5-definition.scss +120 -120
  219. package/styles/list-box/_fabric-dark-definition.scss +126 -126
  220. package/styles/list-box/_fabric-definition.scss +119 -119
  221. package/styles/list-box/_fluent-definition.scss +120 -120
  222. package/styles/list-box/_fusionnew-definition.scss +111 -111
  223. package/styles/list-box/_highcontrast-definition.scss +119 -119
  224. package/styles/list-box/_highcontrast-light-definition.scss +126 -126
  225. package/styles/list-box/_layout.scss +542 -542
  226. package/styles/list-box/_material-dark-definition.scss +126 -126
  227. package/styles/list-box/_material-definition.scss +119 -119
  228. package/styles/list-box/_material3-definition.scss +119 -119
  229. package/styles/list-box/_tailwind-definition.scss +119 -119
  230. package/styles/list-box/_theme.scss +382 -382
  231. package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
  232. package/styles/list-box/icons/_bootstrap.scss +25 -25
  233. package/styles/list-box/icons/_bootstrap4.scss +25 -25
  234. package/styles/list-box/icons/_bootstrap5.scss +25 -25
  235. package/styles/list-box/icons/_fabric-dark.scss +25 -25
  236. package/styles/list-box/icons/_fabric.scss +25 -25
  237. package/styles/list-box/icons/_fluent.scss +25 -25
  238. package/styles/list-box/icons/_fusionnew.scss +25 -25
  239. package/styles/list-box/icons/_highcontrast-light.scss +25 -25
  240. package/styles/list-box/icons/_highcontrast.scss +25 -25
  241. package/styles/list-box/icons/_material-dark.scss +25 -25
  242. package/styles/list-box/icons/_material.scss +25 -25
  243. package/styles/list-box/icons/_material3.scss +25 -25
  244. package/styles/list-box/icons/_tailwind-dark.scss +25 -25
  245. package/styles/list-box/icons/_tailwind.scss +25 -25
  246. package/styles/list-box/material3-dark.scss +1 -1
  247. package/styles/list-box/material3.scss +1 -1
  248. package/styles/material-dark.css +5 -0
  249. package/styles/material.css +5 -0
  250. package/styles/material3-dark.css +5 -0
  251. package/styles/material3-dark.scss +1 -1
  252. package/styles/material3.css +5 -0
  253. package/styles/material3.scss +1 -1
  254. package/styles/mention/_all.scss +1 -1
  255. package/styles/mention/_bds-definition.scss +1 -0
  256. package/styles/mention/_bootstrap-dark-definition.scss +3 -3
  257. package/styles/mention/_bootstrap-definition.scss +3 -3
  258. package/styles/mention/_bootstrap4-definition.scss +3 -3
  259. package/styles/mention/_bootstrap5-definition.scss +1 -1
  260. package/styles/mention/_fabric-dark-definition.scss +2 -2
  261. package/styles/mention/_fabric-definition.scss +3 -3
  262. package/styles/mention/_fluent-definition.scss +1 -1
  263. package/styles/mention/_fusionnew-definition.scss +1 -1
  264. package/styles/mention/_highcontrast-definition.scss +3 -3
  265. package/styles/mention/_highcontrast-light-definition.scss +3 -3
  266. package/styles/mention/_layout.scss +6 -6
  267. package/styles/mention/_material-dark-definition.scss +3 -3
  268. package/styles/mention/_material-definition.scss +3 -3
  269. package/styles/mention/_material3-definition.scss +1 -1
  270. package/styles/mention/_tailwind-definition.scss +1 -1
  271. package/styles/mention/material3-dark.scss +1 -1
  272. package/styles/mention/material3.scss +1 -1
  273. package/styles/multi-select/_all.scss +2 -2
  274. package/styles/multi-select/_bds-definition.scss +235 -0
  275. package/styles/multi-select/_bootstrap-dark-definition.scss +203 -203
  276. package/styles/multi-select/_bootstrap-definition.scss +192 -192
  277. package/styles/multi-select/_bootstrap4-definition.scss +278 -278
  278. package/styles/multi-select/_bootstrap5-definition.scss +230 -230
  279. package/styles/multi-select/_fabric-dark-definition.scss +192 -192
  280. package/styles/multi-select/_fabric-definition.scss +183 -183
  281. package/styles/multi-select/_fluent-definition.scss +241 -241
  282. package/styles/multi-select/_fusionnew-definition.scss +227 -227
  283. package/styles/multi-select/_highcontrast-definition.scss +303 -303
  284. package/styles/multi-select/_highcontrast-light-definition.scss +297 -297
  285. package/styles/multi-select/_layout.scss +2199 -2199
  286. package/styles/multi-select/_material-dark-definition.scss +230 -230
  287. package/styles/multi-select/_material-definition.scss +223 -223
  288. package/styles/multi-select/_material3-definition.scss +246 -246
  289. package/styles/multi-select/_tailwind-definition.scss +235 -235
  290. package/styles/multi-select/_theme.scss +586 -586
  291. package/styles/multi-select/icons/_bootstrap-dark.scss +26 -26
  292. package/styles/multi-select/icons/_bootstrap.scss +26 -26
  293. package/styles/multi-select/icons/_bootstrap4.scss +37 -37
  294. package/styles/multi-select/icons/_bootstrap5.scss +26 -26
  295. package/styles/multi-select/icons/_fabric-dark.scss +26 -26
  296. package/styles/multi-select/icons/_fabric.scss +26 -26
  297. package/styles/multi-select/icons/_fluent.scss +55 -55
  298. package/styles/multi-select/icons/_fusionnew.scss +26 -26
  299. package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
  300. package/styles/multi-select/icons/_highcontrast.scss +26 -26
  301. package/styles/multi-select/icons/_material-dark.scss +693 -693
  302. package/styles/multi-select/icons/_material.scss +693 -693
  303. package/styles/multi-select/icons/_material3.scss +692 -692
  304. package/styles/multi-select/icons/_tailwind.scss +26 -26
  305. package/styles/multi-select/material3-dark.scss +1 -1
  306. package/styles/multi-select/material3.scss +1 -1
  307. package/styles/tailwind-dark.css +5 -0
  308. package/styles/tailwind.css +5 -0
  309. package/.eslintrc.json +0 -260
  310. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { KeyboardEvents, 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 { KeyboardEvents, compile, Property, EventHandler, Animation, AnimationModel, KeyboardEventArgs, formatUnit, append, attributes } from '@syncfusion/ej2-base';
2
2
  import {MentionChangeEventArgs} from "./mention";
3
3
 
4
4
  /**
@@ -7,281 +7,281 @@ 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;
80
-
81
- /**
82
- * Specifies whether to highlight the searched characters on suggestion list items.
83
- *
84
- * @default false
85
- */
86
- highlight?: boolean;
87
-
88
- /**
89
- * Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
90
- *
91
- * @default 'en-US'
92
- */
93
- locale?: string;
94
-
95
- /**
96
- * Specifies the width of the popup in pixels/number/percentage. The number value is considered as pixels.
97
- *
98
- * @default 'auto'
99
- * @aspType string
100
- */
101
- popupWidth?: string | number;
102
-
103
- /**
104
- * Specifies the height of the popup in pixels/number/percentage. The number value is considered as pixels.
105
- *
106
- * @default '300px'
107
- * @aspType string
108
- */
109
- popupHeight?: string | number;
110
-
111
- /**
112
- * Specifies the template for the selected value from the suggestion list.
113
- *
114
- * @default null
115
- * @aspType string
116
- */
117
- displayTemplate?: string | Function;
118
-
119
- /**
120
- * Specifies the template for the suggestion list.
121
- *
122
- * @default null
123
- */
124
- itemTemplate?: string;
125
-
126
- /**
127
- * Specifies the template for no matched item which is displayed when there are no items to display in the suggestion list.
128
- *
129
- * @default 'No records found'
130
- */
131
- noRecordsTemplate?: string;
132
-
133
- /**
134
- * Specifies the template for showing until data is loaded in the popup.
135
- *
136
- * @default null
137
- * @aspType string
138
- */
139
- spinnerTemplate?: string | Function;
140
-
141
- /**
142
- * Specifies the target selector where the mention component needs to be displayed.
143
- * The mention component listens to the target's user input and displays suggestions as soon as the user inputs the mention character.
144
- *
145
- */
146
- target?: HTMLElement | string;
147
-
148
- /**
149
- * Accepts the list items either through local or remote service and binds it to the component.
150
- * It can be an array of JSON Objects or an instance of `DataManager`.
151
- *
152
- * @default []
153
- */
154
- dataSource?: { [key: string]: Object }[] | DataManager | string[] | number[] | boolean[];
155
-
156
- /**
157
- * Specifies the external query, which can be customized and filtered against the data source.
158
- *
159
- * @default null
160
- */
161
- query?: Query;
162
-
163
- /**
164
- * Determines on which filter type, the component needs to be considered on search action.
165
- * and its supported data types are
166
- *
167
- * <table>
168
- * <tr>
169
- * <td colSpan=1 rowSpan=1>
170
- * FilterType<br/></td><td colSpan=1 rowSpan=1>
171
- * Description<br/></td><td colSpan=1 rowSpan=1>
172
- * Supported Types<br/></td></tr>
173
- * <tr>
174
- * <td colSpan=1 rowSpan=1>
175
- * StartsWith<br/></td><td colSpan=1 rowSpan=1>
176
- * Checks whether a value begins with the specified value.<br/></td><td colSpan=1 rowSpan=1>
177
- * String<br/></td></tr>
178
- * <tr>
179
- * <td colSpan=1 rowSpan=1>
180
- * EndsWith<br/></td><td colSpan=1 rowSpan=1>
181
- * Checks whether a value ends with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
182
- * <br/>String<br/></td></tr>
183
- * <tr>
184
- * <td colSpan=1 rowSpan=1>
185
- * Contains<br/></td><td colSpan=1 rowSpan=1>
186
- * Checks whether a value contains with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
187
- * <br/>String<br/></td></tr>
188
- * </table>
189
- *
190
- * The default value set to `Contains`, all the suggestion items which contain typed characters to listed in the suggestion popup.
191
- *
192
- * @default 'Contains'
193
- */
194
- filterType?: FilterType;
195
-
196
- /**
197
- * Defines the fields of the Mention to map with the data source and binds the data to the component.
198
- * * text - Specifies the text that maps the text filed from the data source for each list item.
199
- * * value - Specifies the value that maps the value filed from the data source for each list item.
200
- * * iconCss - Specifies the iconCss that map the icon class filed from the data source for each list item.
201
- * * groupBy - Specifies the groupBy that groups the list items with its related items by mapping groupBy field.
202
- *
203
- * @default
204
- * {
205
- * text: null, value: null, iconCss: null, groupBy: null
206
- * }
207
- */
208
- fields?: FieldSettingsModel;
209
-
210
- /**
211
- * Triggers before fetching data from the remote server.
212
- *
213
- * @event actionBegin
214
- */
215
- actionBegin?: EmitType<Object>;
216
-
217
- /**
218
- * Triggers after data is fetched successfully from the remote server.
219
- *
220
- * @event actionComplete
221
- */
222
- actionComplete?: EmitType<Object>;
223
-
224
- /**
225
- * Triggers when the data fetch request from the remote server fails.
226
- *
227
- * @event actionFailure
228
- */
229
- actionFailure?: EmitType<Object>;
230
-
231
- /**
232
- * Triggers when an item in a popup is selected and updated in an editor.
233
- *
234
- * @event change
235
- */
236
- change?: EmitType<MentionChangeEventArgs>;
237
-
238
- /**
239
- * Triggers before the popup is opened.
240
- *
241
- * @event beforeOpen
242
- */
243
- beforeOpen?: EmitType<PopupEventArgs>;
244
-
245
- /**
246
- * Triggers after the popup opens.
247
- *
248
- * @event opened
249
- */
250
- opened?: EmitType<PopupEventArgs>;
251
-
252
- /**
253
- * Triggers after the popup is closed.
254
- *
255
- * @event closed
256
- */
257
- closed?: EmitType<PopupEventArgs>;
258
-
259
- /**
260
- * Triggers when an item in the popup is selected by the user either with the mouse/tap or with keyboard navigation.
261
- *
262
- * @event select
263
- */
264
- select?: EmitType<SelectEventArgs>;
265
-
266
- /**
267
- * Triggers on typing a character in the component.
268
- *
269
- * @event filtering
270
- */
271
- filtering?: EmitType<FilteringEventArgs>;
272
-
273
- /**
274
- * Triggers when the component is created.
275
- *
276
- * @event created
277
- */
278
- created?: EmitType<Object>;
279
-
280
- /**
281
-      * Triggers when the component is destroyed.
282
- *
283
-      * @event destroyed
284
-      */
285
- destroyed?: EmitType<Object>;
75
+ * Specifies whether the searches are case sensitive to find suggestions.
76
+ *
77
+ * @default true
78
+ */
79
+ ignoreCase?: boolean;
80
+
81
+ /**
82
+ * Specifies whether to highlight the searched characters on suggestion list items.
83
+ *
84
+ * @default false
85
+ */
86
+ highlight?: boolean;
87
+
88
+ /**
89
+ * Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
90
+ *
91
+ * @default 'en-US'
92
+ */
93
+ locale?: string;
94
+
95
+ /**
96
+ * Specifies the width of the popup in pixels/number/percentage. The number value is considered as pixels.
97
+ *
98
+ * @default 'auto'
99
+ * @aspType string
100
+ */
101
+ popupWidth?: string | number;
102
+
103
+ /**
104
+ * Specifies the height of the popup in pixels/number/percentage. The number value is considered as pixels.
105
+ *
106
+ * @default '300px'
107
+ * @aspType string
108
+ */
109
+ popupHeight?: string | number;
110
+
111
+ /**
112
+ * Specifies the template for the selected value from the suggestion list.
113
+ *
114
+ * @default null
115
+ * @aspType string
116
+ */
117
+ displayTemplate?: string | Function;
118
+
119
+ /**
120
+ * Specifies the template for the suggestion list.
121
+ *
122
+ * @default null
123
+ */
124
+ itemTemplate?: string;
125
+
126
+ /**
127
+ * Specifies the template for no matched item which is displayed when there are no items to display in the suggestion list.
128
+ *
129
+ * @default 'No records found'
130
+ */
131
+ noRecordsTemplate?: string;
132
+
133
+ /**
134
+ * Specifies the template for showing until data is loaded in the popup.
135
+ *
136
+ * @default null
137
+ * @aspType string
138
+ */
139
+ spinnerTemplate?: string | Function;
140
+
141
+ /**
142
+ * Specifies the target selector where the mention component needs to be displayed.
143
+ * The mention component listens to the target's user input and displays suggestions as soon as the user inputs the mention character.
144
+ *
145
+ */
146
+ target?: HTMLElement | string;
147
+
148
+ /**
149
+ * Accepts the list items either through local or remote service and binds it to the component.
150
+ * It can be an array of JSON Objects or an instance of `DataManager`.
151
+ *
152
+ * @default []
153
+ */
154
+ dataSource?: { [key: string]: Object }[] | DataManager | string[] | number[] | boolean[];
155
+
156
+ /**
157
+ * Specifies the external query, which can be customized and filtered against the data source.
158
+ *
159
+ * @default null
160
+ */
161
+ query?: Query;
162
+
163
+ /**
164
+ * Determines on which filter type, the component needs to be considered on search action.
165
+ * and its supported data types are
166
+ *
167
+ * <table>
168
+ * <tr>
169
+ * <td colSpan=1 rowSpan=1>
170
+ * FilterType<br/></td><td colSpan=1 rowSpan=1>
171
+ * Description<br/></td><td colSpan=1 rowSpan=1>
172
+ * Supported Types<br/></td></tr>
173
+ * <tr>
174
+ * <td colSpan=1 rowSpan=1>
175
+ * StartsWith<br/></td><td colSpan=1 rowSpan=1>
176
+ * Checks whether a value begins with the specified value.<br/></td><td colSpan=1 rowSpan=1>
177
+ * String<br/></td></tr>
178
+ * <tr>
179
+ * <td colSpan=1 rowSpan=1>
180
+ * EndsWith<br/></td><td colSpan=1 rowSpan=1>
181
+ * Checks whether a value ends with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
182
+ * <br/>String<br/></td></tr>
183
+ * <tr>
184
+ * <td colSpan=1 rowSpan=1>
185
+ * Contains<br/></td><td colSpan=1 rowSpan=1>
186
+ * Checks whether a value contains with a specified value.<br/><br/></td><td colSpan=1 rowSpan=1>
187
+ * <br/>String<br/></td></tr>
188
+ * </table>
189
+ *
190
+ * The default value set to `Contains`, all the suggestion items which contain typed characters to listed in the suggestion popup.
191
+ *
192
+ * @default 'Contains'
193
+ */
194
+ filterType?: FilterType;
195
+
196
+ /**
197
+ * Defines the fields of the Mention to map with the data source and binds the data to the component.
198
+ * * text - Specifies the text that maps the text filed from the data source for each list item.
199
+ * * value - Specifies the value that maps the value filed from the data source for each list item.
200
+ * * iconCss - Specifies the iconCss that map the icon class filed from the data source for each list item.
201
+ * * groupBy - Specifies the groupBy that groups the list items with its related items by mapping groupBy field.
202
+ *
203
+ * @default
204
+ * {
205
+ * text: null, value: null, iconCss: null, groupBy: null
206
+ * }
207
+ */
208
+ fields?: FieldSettingsModel;
209
+
210
+ /**
211
+ * Triggers before fetching data from the remote server.
212
+ *
213
+ * @event actionBegin
214
+ */
215
+ actionBegin?: EmitType<Object>;
216
+
217
+ /**
218
+ * Triggers after data is fetched successfully from the remote server.
219
+ *
220
+ * @event actionComplete
221
+ */
222
+ actionComplete?: EmitType<Object>;
223
+
224
+ /**
225
+ * Triggers when the data fetch request from the remote server fails.
226
+ *
227
+ * @event actionFailure
228
+ */
229
+ actionFailure?: EmitType<Object>;
230
+
231
+ /**
232
+ * Triggers when an item in a popup is selected and updated in an editor.
233
+ *
234
+ * @event change
235
+ */
236
+ change?: EmitType<MentionChangeEventArgs>;
237
+
238
+ /**
239
+ * Triggers before the popup is opened.
240
+ *
241
+ * @event beforeOpen
242
+ */
243
+ beforeOpen?: EmitType<PopupEventArgs>;
244
+
245
+ /**
246
+ * Triggers after the popup opens.
247
+ *
248
+ * @event opened
249
+ */
250
+ opened?: EmitType<PopupEventArgs>;
251
+
252
+ /**
253
+ * Triggers after the popup is closed.
254
+ *
255
+ * @event closed
256
+ */
257
+ closed?: EmitType<PopupEventArgs>;
258
+
259
+ /**
260
+ * Triggers when an item in the popup is selected by the user either with the mouse/tap or with keyboard navigation.
261
+ *
262
+ * @event select
263
+ */
264
+ select?: EmitType<SelectEventArgs>;
265
+
266
+ /**
267
+ * Triggers on typing a character in the component.
268
+ *
269
+ * @event filtering
270
+ */
271
+ filtering?: EmitType<FilteringEventArgs>;
272
+
273
+ /**
274
+ * Triggers when the component is created.
275
+ *
276
+ * @event created
277
+ */
278
+ created?: EmitType<Object>;
279
+
280
+ /**
281
+      * Triggers when the component is destroyed.
282
+ *
283
+      * @event destroyed
284
+      */
285
+ destroyed?: EmitType<Object>;
286
286
 
287
287
  }
@@ -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 { KeyboardEvents, 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';
@@ -305,7 +305,8 @@ var Mention = /** @class */ (function (_super) {
305
305
  return;
306
306
  }
307
307
  this.isTyped = e.code !== 'Enter' && e.code !== 'Space' && e.code !== 'ArrowDown' && e.code !== 'ArrowUp' ? true : false;
308
- if (document.activeElement != this.inputElement) {
308
+ var isRteImage = document.activeElement.parentElement && document.activeElement.parentElement.querySelector('.e-rte-image') ? true : false;
309
+ if (document.activeElement != this.inputElement && !isRteImage) {
309
310
  this.inputElement.focus();
310
311
  }
311
312
  if (this.isContentEditable(this.inputElement)) {
@@ -1177,6 +1178,12 @@ var Mention = /** @class */ (function (_super) {
1177
1178
  if (this.isPopupOpen) {
1178
1179
  this.hidePopup();
1179
1180
  }
1181
+ //New event to update the RichTextEditor value, when a mention item is selected using mouse click action.
1182
+ if (!isNullOrUndefined(e.pointerType) && e.pointerType === 'mouse') {
1183
+ var event_1 = new CustomEvent('content-changed', { detail: { click: true } });
1184
+ this.inputElement.dispatchEvent(event_1);
1185
+ }
1186
+ ;
1180
1187
  this.onChangeEvent(e);
1181
1188
  }
1182
1189
  else {