@syncfusion/ej2-dropdowns 24.1.43 → 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 (327) hide show
  1. package/CHANGELOG.md +2101 -2058
  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 +94 -74
  7. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  8. package/dist/es6/ej2-dropdowns.es5.js +236 -216
  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 +31 -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 +20 -28
  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 +34 -22
  55. package/src/mention/mention-model.d.ts +261 -261
  56. package/src/mention/mention.js +29 -22
  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 +9 -0
  78. package/styles/bootstrap.css +9 -0
  79. package/styles/bootstrap4.css +9 -0
  80. package/styles/bootstrap5-dark.css +9 -0
  81. package/styles/bootstrap5.css +9 -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 -1418
  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/bootstrap-dark.css +4 -0
  191. package/styles/drop-down-tree/bootstrap.css +4 -0
  192. package/styles/drop-down-tree/bootstrap4.css +4 -0
  193. package/styles/drop-down-tree/bootstrap5-dark.css +4 -0
  194. package/styles/drop-down-tree/bootstrap5.css +4 -0
  195. package/styles/drop-down-tree/fabric-dark.css +4 -0
  196. package/styles/drop-down-tree/fabric.css +4 -0
  197. package/styles/drop-down-tree/fluent-dark.css +4 -0
  198. package/styles/drop-down-tree/fluent.css +4 -0
  199. package/styles/drop-down-tree/highcontrast-light.css +4 -0
  200. package/styles/drop-down-tree/highcontrast.css +4 -0
  201. package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
  202. package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
  203. package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
  204. package/styles/drop-down-tree/icons/_bootstrap5.scss +11 -11
  205. package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
  206. package/styles/drop-down-tree/icons/_fabric.scss +11 -11
  207. package/styles/drop-down-tree/icons/_fluent.scss +11 -11
  208. package/styles/drop-down-tree/icons/_fusionnew.scss +11 -11
  209. package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
  210. package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
  211. package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
  212. package/styles/drop-down-tree/icons/_material.scss +11 -11
  213. package/styles/drop-down-tree/icons/_material3.scss +11 -11
  214. package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
  215. package/styles/drop-down-tree/icons/_tailwind.scss +11 -11
  216. package/styles/drop-down-tree/material-dark.css +4 -0
  217. package/styles/drop-down-tree/material.css +4 -0
  218. package/styles/drop-down-tree/material3-dark.css +4 -0
  219. package/styles/drop-down-tree/material3-dark.scss +1 -1
  220. package/styles/drop-down-tree/material3.css +4 -0
  221. package/styles/drop-down-tree/material3.scss +1 -1
  222. package/styles/drop-down-tree/tailwind-dark.css +4 -0
  223. package/styles/drop-down-tree/tailwind.css +4 -0
  224. package/styles/fabric-dark.css +9 -0
  225. package/styles/fabric.css +9 -0
  226. package/styles/fluent-dark.css +9 -0
  227. package/styles/fluent.css +9 -0
  228. package/styles/highcontrast-light.css +9 -0
  229. package/styles/highcontrast.css +9 -0
  230. package/styles/list-box/_all.scss +2 -2
  231. package/styles/list-box/_bds-definition.scss +119 -0
  232. package/styles/list-box/_bootstrap-dark-definition.scss +126 -126
  233. package/styles/list-box/_bootstrap-definition.scss +119 -119
  234. package/styles/list-box/_bootstrap4-definition.scss +124 -124
  235. package/styles/list-box/_bootstrap5-definition.scss +120 -120
  236. package/styles/list-box/_fabric-dark-definition.scss +126 -126
  237. package/styles/list-box/_fabric-definition.scss +119 -119
  238. package/styles/list-box/_fluent-definition.scss +120 -120
  239. package/styles/list-box/_fusionnew-definition.scss +111 -111
  240. package/styles/list-box/_highcontrast-definition.scss +119 -119
  241. package/styles/list-box/_highcontrast-light-definition.scss +126 -126
  242. package/styles/list-box/_layout.scss +542 -542
  243. package/styles/list-box/_material-dark-definition.scss +126 -126
  244. package/styles/list-box/_material-definition.scss +119 -119
  245. package/styles/list-box/_material3-definition.scss +119 -119
  246. package/styles/list-box/_tailwind-definition.scss +119 -119
  247. package/styles/list-box/_theme.scss +382 -382
  248. package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
  249. package/styles/list-box/icons/_bootstrap.scss +25 -25
  250. package/styles/list-box/icons/_bootstrap4.scss +25 -25
  251. package/styles/list-box/icons/_bootstrap5.scss +25 -25
  252. package/styles/list-box/icons/_fabric-dark.scss +25 -25
  253. package/styles/list-box/icons/_fabric.scss +25 -25
  254. package/styles/list-box/icons/_fluent.scss +25 -25
  255. package/styles/list-box/icons/_fusionnew.scss +25 -25
  256. package/styles/list-box/icons/_highcontrast-light.scss +25 -25
  257. package/styles/list-box/icons/_highcontrast.scss +25 -25
  258. package/styles/list-box/icons/_material-dark.scss +25 -25
  259. package/styles/list-box/icons/_material.scss +25 -25
  260. package/styles/list-box/icons/_material3.scss +25 -25
  261. package/styles/list-box/icons/_tailwind-dark.scss +25 -25
  262. package/styles/list-box/icons/_tailwind.scss +25 -25
  263. package/styles/list-box/material3-dark.scss +1 -1
  264. package/styles/list-box/material3.scss +1 -1
  265. package/styles/material-dark.css +9 -0
  266. package/styles/material.css +9 -0
  267. package/styles/material3-dark.css +9 -0
  268. package/styles/material3-dark.scss +1 -1
  269. package/styles/material3.css +9 -0
  270. package/styles/material3.scss +1 -1
  271. package/styles/mention/_all.scss +1 -1
  272. package/styles/mention/_bds-definition.scss +1 -0
  273. package/styles/mention/_bootstrap-dark-definition.scss +3 -3
  274. package/styles/mention/_bootstrap-definition.scss +3 -3
  275. package/styles/mention/_bootstrap4-definition.scss +3 -3
  276. package/styles/mention/_bootstrap5-definition.scss +1 -1
  277. package/styles/mention/_fabric-dark-definition.scss +2 -2
  278. package/styles/mention/_fabric-definition.scss +3 -3
  279. package/styles/mention/_fluent-definition.scss +1 -1
  280. package/styles/mention/_fusionnew-definition.scss +1 -1
  281. package/styles/mention/_highcontrast-definition.scss +3 -3
  282. package/styles/mention/_highcontrast-light-definition.scss +3 -3
  283. package/styles/mention/_layout.scss +6 -6
  284. package/styles/mention/_material-dark-definition.scss +3 -3
  285. package/styles/mention/_material-definition.scss +3 -3
  286. package/styles/mention/_material3-definition.scss +1 -1
  287. package/styles/mention/_tailwind-definition.scss +1 -1
  288. package/styles/mention/material3-dark.scss +1 -1
  289. package/styles/mention/material3.scss +1 -1
  290. package/styles/multi-select/_all.scss +2 -2
  291. package/styles/multi-select/_bds-definition.scss +235 -0
  292. package/styles/multi-select/_bootstrap-dark-definition.scss +203 -203
  293. package/styles/multi-select/_bootstrap-definition.scss +192 -192
  294. package/styles/multi-select/_bootstrap4-definition.scss +278 -278
  295. package/styles/multi-select/_bootstrap5-definition.scss +230 -230
  296. package/styles/multi-select/_fabric-dark-definition.scss +192 -192
  297. package/styles/multi-select/_fabric-definition.scss +183 -183
  298. package/styles/multi-select/_fluent-definition.scss +241 -241
  299. package/styles/multi-select/_fusionnew-definition.scss +227 -227
  300. package/styles/multi-select/_highcontrast-definition.scss +303 -303
  301. package/styles/multi-select/_highcontrast-light-definition.scss +297 -297
  302. package/styles/multi-select/_layout.scss +2199 -2199
  303. package/styles/multi-select/_material-dark-definition.scss +230 -230
  304. package/styles/multi-select/_material-definition.scss +223 -223
  305. package/styles/multi-select/_material3-definition.scss +246 -246
  306. package/styles/multi-select/_tailwind-definition.scss +235 -235
  307. package/styles/multi-select/_theme.scss +586 -586
  308. package/styles/multi-select/icons/_bootstrap-dark.scss +26 -26
  309. package/styles/multi-select/icons/_bootstrap.scss +26 -26
  310. package/styles/multi-select/icons/_bootstrap4.scss +37 -37
  311. package/styles/multi-select/icons/_bootstrap5.scss +26 -26
  312. package/styles/multi-select/icons/_fabric-dark.scss +26 -26
  313. package/styles/multi-select/icons/_fabric.scss +26 -26
  314. package/styles/multi-select/icons/_fluent.scss +55 -55
  315. package/styles/multi-select/icons/_fusionnew.scss +26 -26
  316. package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
  317. package/styles/multi-select/icons/_highcontrast.scss +26 -26
  318. package/styles/multi-select/icons/_material-dark.scss +693 -693
  319. package/styles/multi-select/icons/_material.scss +693 -693
  320. package/styles/multi-select/icons/_material3.scss +692 -692
  321. package/styles/multi-select/icons/_tailwind.scss +26 -26
  322. package/styles/multi-select/material3-dark.scss +1 -1
  323. package/styles/multi-select/material3.scss +1 -1
  324. package/styles/tailwind-dark.css +9 -0
  325. package/styles/tailwind.css +9 -0
  326. package/.eslintrc.json +0 -260
  327. package/tslint.json +0 -111
@@ -238,52 +238,52 @@ function revertHighlightSearch(content) {
238
238
  }
239
239
  }
240
240
 
241
- var __assign = (undefined && undefined.__assign) || function () {
242
- __assign = Object.assign || function(t) {
243
- for (var s, i = 1, n = arguments.length; i < n; i++) {
244
- s = arguments[i];
245
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
246
- t[p] = s[p];
247
- }
248
- return t;
249
- };
250
- return __assign.apply(this, arguments);
251
- };
252
- var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
253
- return new (P || (P = Promise))(function (resolve, reject) {
254
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
255
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
256
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
257
- step((generator = generator.apply(thisArg, _arguments || [])).next());
258
- });
259
- };
260
- var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
261
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
262
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
263
- function verb(n) { return function (v) { return step([n, v]); }; }
264
- function step(op) {
265
- if (f) throw new TypeError("Generator is already executing.");
266
- while (_) try {
267
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
268
- if (y = 0, t) op = [op[0] & 2, t.value];
269
- switch (op[0]) {
270
- case 0: case 1: t = op; break;
271
- case 4: _.label++; return { value: op[1], done: false };
272
- case 5: _.label++; y = op[1]; op = [0]; continue;
273
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
274
- default:
275
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
276
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
277
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
278
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
279
- if (t[2]) _.ops.pop();
280
- _.trys.pop(); continue;
281
- }
282
- op = body.call(thisArg, _);
283
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
284
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
285
- }
286
- };
241
+ var __assign = (undefined && undefined.__assign) || function () {
242
+ __assign = Object.assign || function(t) {
243
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
244
+ s = arguments[i];
245
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
246
+ t[p] = s[p];
247
+ }
248
+ return t;
249
+ };
250
+ return __assign.apply(this, arguments);
251
+ };
252
+ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
253
+ return new (P || (P = Promise))(function (resolve, reject) {
254
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
255
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
256
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
257
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
258
+ });
259
+ };
260
+ var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
261
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
262
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
263
+ function verb(n) { return function (v) { return step([n, v]); }; }
264
+ function step(op) {
265
+ if (f) throw new TypeError("Generator is already executing.");
266
+ while (_) try {
267
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
268
+ if (y = 0, t) op = [op[0] & 2, t.value];
269
+ switch (op[0]) {
270
+ case 0: case 1: t = op; break;
271
+ case 4: _.label++; return { value: op[1], done: false };
272
+ case 5: _.label++; y = op[1]; op = [0]; continue;
273
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
274
+ default:
275
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
276
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
277
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
278
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
279
+ if (t[2]) _.ops.pop();
280
+ _.trys.pop(); continue;
281
+ }
282
+ op = body.call(thisArg, _);
283
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
284
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
285
+ }
286
+ };
287
287
  var VirtualScroll = /** @__PURE__ @class */ (function () {
288
288
  function VirtualScroll(parent) {
289
289
  var _this = this;
@@ -651,25 +651,25 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
651
651
  * Common source
652
652
  */
653
653
 
654
- var __extends = (undefined && undefined.__extends) || (function () {
655
- var extendStatics = function (d, b) {
656
- extendStatics = Object.setPrototypeOf ||
657
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
658
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
659
- return extendStatics(d, b);
660
- };
661
- return function (d, b) {
662
- extendStatics(d, b);
663
- function __() { this.constructor = d; }
664
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
665
- };
666
- })();
667
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
668
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
669
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
670
- 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;
671
- return c > 3 && r && Object.defineProperty(target, key, r), r;
672
- };
654
+ var __extends = (undefined && undefined.__extends) || (function () {
655
+ var extendStatics = function (d, b) {
656
+ extendStatics = Object.setPrototypeOf ||
657
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
658
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
659
+ return extendStatics(d, b);
660
+ };
661
+ return function (d, b) {
662
+ extendStatics(d, b);
663
+ function __() { this.constructor = d; }
664
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
665
+ };
666
+ })();
667
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
668
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
669
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
670
+ 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;
671
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
672
+ };
673
673
  var FieldSettings = /** @__PURE__ @class */ (function (_super) {
674
674
  __extends(FieldSettings, _super);
675
675
  function FieldSettings() {
@@ -2210,25 +2210,25 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
2210
2210
  * export all modules from current location
2211
2211
  */
2212
2212
 
2213
- var __extends$1 = (undefined && undefined.__extends) || (function () {
2214
- var extendStatics = function (d, b) {
2215
- extendStatics = Object.setPrototypeOf ||
2216
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2217
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2218
- return extendStatics(d, b);
2219
- };
2220
- return function (d, b) {
2221
- extendStatics(d, b);
2222
- function __() { this.constructor = d; }
2223
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2224
- };
2225
- })();
2226
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2227
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2228
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2229
- 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;
2230
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2231
- };
2213
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
2214
+ var extendStatics = function (d, b) {
2215
+ extendStatics = Object.setPrototypeOf ||
2216
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2217
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2218
+ return extendStatics(d, b);
2219
+ };
2220
+ return function (d, b) {
2221
+ extendStatics(d, b);
2222
+ function __() { this.constructor = d; }
2223
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2224
+ };
2225
+ })();
2226
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2227
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2228
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2229
+ 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;
2230
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2231
+ };
2232
2232
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
2233
2233
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
2234
2234
  // don't use space in classnames
@@ -3110,6 +3110,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3110
3110
  if (this.getModuleName() === 'dropdownlist') {
3111
3111
  if (!this.beforePopupOpen) {
3112
3112
  this.showPopup();
3113
+ e.preventDefault();
3113
3114
  }
3114
3115
  }
3115
3116
  break;
@@ -4545,6 +4546,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4545
4546
  _this.setFooterTemplate(popupEle);
4546
4547
  }
4547
4548
  document.body.appendChild(popupEle);
4549
+ popupEle.style.top = '0px';
4548
4550
  if (_this.enableVirtualization && _this.itemTemplate) {
4549
4551
  var listitems = popupEle.querySelectorAll('li.e-list-item:not(.e-virtual-list)');
4550
4552
  _this.listItemHeight = listitems.length > 0 ? Math.ceil(listitems[0].getBoundingClientRect().height) : 0;
@@ -4793,9 +4795,16 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4793
4795
  DropDownList.prototype.scrollHandler = function () {
4794
4796
  if (Browser.isDevice && ((this.getModuleName() === 'dropdownlist' &&
4795
4797
  !this.isFilterLayout()) || (this.getModuleName() === 'combobox' && !this.allowFiltering && this.isDropDownClick))) {
4796
- this.hidePopup();
4798
+ if (this.element && !(this.isElementInViewport(this.element))) {
4799
+ this.hidePopup();
4800
+ }
4797
4801
  }
4798
4802
  };
4803
+ DropDownList.prototype.isElementInViewport = function (element) {
4804
+ var elementRect = element.getBoundingClientRect();
4805
+ return (elementRect.top >= 0 && elementRect.left >= 0 && elementRect.bottom <= window.innerHeight && elementRect.right <= window.innerWidth);
4806
+ };
4807
+
4799
4808
  DropDownList.prototype.setSearchBoxPosition = function () {
4800
4809
  var searchBoxHeight = this.filterInput.parentElement.getBoundingClientRect().height;
4801
4810
  this.popupObj.element.style.maxHeight = '100%';
@@ -5940,7 +5949,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
5940
5949
  if (!this.enabled) {
5941
5950
  return;
5942
5951
  }
5943
- if (!this.enableVirtualization && this.getModuleName() === 'combobox') {
5952
+ if (!this.enableVirtualization && (this.getModuleName() === 'combobox' || this.getModuleName() === 'autocomplete')) {
5944
5953
  this.isTyped = true;
5945
5954
  }
5946
5955
  this.hidePopup(e);
@@ -6144,25 +6153,25 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
6144
6153
  * export all modules from current location
6145
6154
  */
6146
6155
 
6147
- var __extends$2 = (undefined && undefined.__extends) || (function () {
6148
- var extendStatics = function (d, b) {
6149
- extendStatics = Object.setPrototypeOf ||
6150
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6151
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6152
- return extendStatics(d, b);
6153
- };
6154
- return function (d, b) {
6155
- extendStatics(d, b);
6156
- function __() { this.constructor = d; }
6157
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6158
- };
6159
- })();
6160
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6161
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6162
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6163
- 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;
6164
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6165
- };
6156
+ var __extends$2 = (undefined && undefined.__extends) || (function () {
6157
+ var extendStatics = function (d, b) {
6158
+ extendStatics = Object.setPrototypeOf ||
6159
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6160
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6161
+ return extendStatics(d, b);
6162
+ };
6163
+ return function (d, b) {
6164
+ extendStatics(d, b);
6165
+ function __() { this.constructor = d; }
6166
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6167
+ };
6168
+ })();
6169
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6170
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6171
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6172
+ 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;
6173
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6174
+ };
6166
6175
  var RTL = 'e-rtl';
6167
6176
  var DROPDOWNTREE = 'e-ddt';
6168
6177
  var HIDDENELEMENT = 'e-ddt-hidden';
@@ -6391,7 +6400,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
6391
6400
  var popupDiv = select('#' + this.element.id + '_options', document);
6392
6401
  detach(popupDiv ? popupDiv : isTree.parentElement);
6393
6402
  }
6394
- this.ensureAutoCheck();
6395
6403
  if (this.element.tagName === 'INPUT') {
6396
6404
  this.inputEle = this.element;
6397
6405
  if (isNullOrUndefined(this.inputEle.getAttribute('role'))) {
@@ -6478,11 +6486,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
6478
6486
  || this.noRecordsTemplate || this.customTemplate;
6479
6487
  this.renderComplete();
6480
6488
  };
6481
- DropDownTree.prototype.ensureAutoCheck = function () {
6482
- if (this.allowFiltering && this.treeSettings.autoCheck) {
6483
- this.setProperties({ treeSettings: { autoCheck: false } }, true);
6484
- }
6485
- };
6486
6489
  DropDownTree.prototype.hideCheckAll = function (flag) {
6487
6490
  var checkAllEle = !isNullOrUndefined(this.popupEle) ? this.popupEle.querySelector('.' + CHECKALLPARENT) : null;
6488
6491
  if (!isNullOrUndefined(checkAllEle)) {
@@ -8644,7 +8647,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
8644
8647
  else {
8645
8648
  this.treeObj.uncheckAll();
8646
8649
  }
8647
- this.checkSelectAll = true;
8650
+ this.checkSelectAll = state;
8648
8651
  }
8649
8652
  else if (this.allowMultiSelection) {
8650
8653
  if (!state) {
@@ -8675,7 +8678,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
8675
8678
  DropDownTree.prototype.updateTreeSettings = function (prop) {
8676
8679
  var value = Object.keys(prop.treeSettings)[0];
8677
8680
  if (value === 'autoCheck') {
8678
- this.ensureAutoCheck();
8679
8681
  this.treeObj.autoCheck = this.treeSettings.autoCheck;
8680
8682
  }
8681
8683
  else if (value === 'loadOnDemand') {
@@ -8796,7 +8798,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
8796
8798
  this.destroyFilter();
8797
8799
  }
8798
8800
  }
8799
- this.ensureAutoCheck();
8800
8801
  };
8801
8802
  DropDownTree.prototype.updateFilterPlaceHolder = function () {
8802
8803
  if (this.filterObj) {
@@ -9371,25 +9372,25 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
9371
9372
  * export all modules from current location
9372
9373
  */
9373
9374
 
9374
- var __extends$3 = (undefined && undefined.__extends) || (function () {
9375
- var extendStatics = function (d, b) {
9376
- extendStatics = Object.setPrototypeOf ||
9377
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9378
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
9379
- return extendStatics(d, b);
9380
- };
9381
- return function (d, b) {
9382
- extendStatics(d, b);
9383
- function __() { this.constructor = d; }
9384
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9385
- };
9386
- })();
9387
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9388
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9389
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9390
- 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;
9391
- return c > 3 && r && Object.defineProperty(target, key, r), r;
9392
- };
9375
+ var __extends$3 = (undefined && undefined.__extends) || (function () {
9376
+ var extendStatics = function (d, b) {
9377
+ extendStatics = Object.setPrototypeOf ||
9378
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9379
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
9380
+ return extendStatics(d, b);
9381
+ };
9382
+ return function (d, b) {
9383
+ extendStatics(d, b);
9384
+ function __() { this.constructor = d; }
9385
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9386
+ };
9387
+ })();
9388
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9389
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9390
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9391
+ 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;
9392
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
9393
+ };
9393
9394
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
9394
9395
  /// <reference path='../drop-down-list/drop-down-list-model.d.ts'/>
9395
9396
  var SPINNER_CLASS = 'e-atc-spinner-icon';
@@ -10311,25 +10312,25 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
10311
10312
  * export all modules from current location
10312
10313
  */
10313
10314
 
10314
- var __extends$4 = (undefined && undefined.__extends) || (function () {
10315
- var extendStatics = function (d, b) {
10316
- extendStatics = Object.setPrototypeOf ||
10317
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10318
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10319
- return extendStatics(d, b);
10320
- };
10321
- return function (d, b) {
10322
- extendStatics(d, b);
10323
- function __() { this.constructor = d; }
10324
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10325
- };
10326
- })();
10327
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10328
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10329
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10330
- 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;
10331
- return c > 3 && r && Object.defineProperty(target, key, r), r;
10332
- };
10315
+ var __extends$4 = (undefined && undefined.__extends) || (function () {
10316
+ var extendStatics = function (d, b) {
10317
+ extendStatics = Object.setPrototypeOf ||
10318
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10319
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10320
+ return extendStatics(d, b);
10321
+ };
10322
+ return function (d, b) {
10323
+ extendStatics(d, b);
10324
+ function __() { this.constructor = d; }
10325
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10326
+ };
10327
+ })();
10328
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10329
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10330
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10331
+ 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;
10332
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10333
+ };
10333
10334
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
10334
10335
  /// <reference path='../combo-box/combo-box-model.d.ts'/>
10335
10336
  dropDownListClasses.root = 'e-autocomplete';
@@ -10947,25 +10948,25 @@ function encodePlaceholder(placeholder) {
10947
10948
  }
10948
10949
  /* eslint-enable valid-jsdoc */
10949
10950
 
10950
- var __extends$5 = (undefined && undefined.__extends) || (function () {
10951
- var extendStatics = function (d, b) {
10952
- extendStatics = Object.setPrototypeOf ||
10953
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10954
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10955
- return extendStatics(d, b);
10956
- };
10957
- return function (d, b) {
10958
- extendStatics(d, b);
10959
- function __() { this.constructor = d; }
10960
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10961
- };
10962
- })();
10963
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10964
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10965
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10966
- 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;
10967
- return c > 3 && r && Object.defineProperty(target, key, r), r;
10968
- };
10951
+ var __extends$5 = (undefined && undefined.__extends) || (function () {
10952
+ var extendStatics = function (d, b) {
10953
+ extendStatics = Object.setPrototypeOf ||
10954
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10955
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10956
+ return extendStatics(d, b);
10957
+ };
10958
+ return function (d, b) {
10959
+ extendStatics(d, b);
10960
+ function __() { this.constructor = d; }
10961
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10962
+ };
10963
+ })();
10964
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10965
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10966
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10967
+ 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;
10968
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10969
+ };
10969
10970
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
10970
10971
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
10971
10972
  var FOCUS = 'e-input-focus';
@@ -14784,10 +14785,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14784
14785
  if (!args.cancel) {
14785
14786
  if (!_this.ulElement) {
14786
14787
  _this.beforePopupOpen = true;
14787
- _super.prototype.render.call(_this, e);
14788
14788
  if (_this.mode === 'CheckBox' && Browser.isDevice && _this.allowFiltering) {
14789
14789
  _this.notify('popupFullScreen', { module: 'CheckBoxSelection', enable: _this.mode === 'CheckBox' });
14790
14790
  }
14791
+ _super.prototype.render.call(_this, e);
14791
14792
  return;
14792
14793
  }
14793
14794
  if (_this.mode === 'CheckBox' && Browser.isDevice && _this.allowFiltering) {
@@ -15847,25 +15848,25 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
15847
15848
  * export all modules from current location
15848
15849
  */
15849
15850
 
15850
- var __extends$6 = (undefined && undefined.__extends) || (function () {
15851
- var extendStatics = function (d, b) {
15852
- extendStatics = Object.setPrototypeOf ||
15853
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15854
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15855
- return extendStatics(d, b);
15856
- };
15857
- return function (d, b) {
15858
- extendStatics(d, b);
15859
- function __() { this.constructor = d; }
15860
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15861
- };
15862
- })();
15863
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15864
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15865
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15866
- 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;
15867
- return c > 3 && r && Object.defineProperty(target, key, r), r;
15868
- };
15851
+ var __extends$6 = (undefined && undefined.__extends) || (function () {
15852
+ var extendStatics = function (d, b) {
15853
+ extendStatics = Object.setPrototypeOf ||
15854
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15855
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15856
+ return extendStatics(d, b);
15857
+ };
15858
+ return function (d, b) {
15859
+ extendStatics(d, b);
15860
+ function __() { this.constructor = d; }
15861
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15862
+ };
15863
+ })();
15864
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15865
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15866
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15867
+ 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;
15868
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
15869
+ };
15869
15870
  // eslint-disable-next-line @typescript-eslint/triple-slash-reference
15870
15871
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
15871
15872
  /**
@@ -16192,6 +16193,8 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
16192
16193
  };
16193
16194
  ListBox.prototype.onActionComplete = function (ulElement, list, e) {
16194
16195
  var searchEle;
16196
+ var filterElem;
16197
+ var txtLength;
16195
16198
  if (this.allowFiltering && this.list.getElementsByClassName('e-filter-parent')[0]) {
16196
16199
  searchEle = this.list.getElementsByClassName('e-filter-parent')[0].cloneNode(true);
16197
16200
  }
@@ -16201,6 +16204,12 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
16201
16204
  ulElement.removeChild(noRecElem);
16202
16205
  }
16203
16206
  }
16207
+ if (this.allowFiltering) {
16208
+ filterElem = this.list.getElementsByClassName('e-input-filter')[0];
16209
+ if (filterElem) {
16210
+ txtLength = filterElem.selectionStart;
16211
+ }
16212
+ }
16204
16213
  _super.prototype.onActionComplete.call(this, ulElement, list, e);
16205
16214
  if (this.allowFiltering && !isNullOrUndefined(searchEle)) {
16206
16215
  this.list.insertBefore(searchEle, this.list.firstElementChild);
@@ -16230,8 +16239,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
16230
16239
  this.isDataSourceUpdate = false;
16231
16240
  }
16232
16241
  if (this.allowFiltering) {
16233
- var filterElem = this.list.getElementsByClassName('e-input-filter')[0];
16234
- var txtLength = this.filterInput.value.length;
16242
+ filterElem = this.list.getElementsByClassName('e-input-filter')[0];
16235
16243
  filterElem.selectionStart = txtLength;
16236
16244
  filterElem.selectionEnd = txtLength;
16237
16245
  filterElem.focus();
@@ -17621,7 +17629,8 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
17621
17629
  e.stopPropagation();
17622
17630
  };
17623
17631
  ListBox.prototype.keyDownHandler = function (e) {
17624
- if ([32, 35, 36, 37, 38, 39, 40, 65].indexOf(e.keyCode) > -1 && !this.allowFiltering) {
17632
+ if ([32, 35, 36, 37, 38, 39, 40, 65].indexOf(e.keyCode) > -1 && (!this.allowFiltering ||
17633
+ (this.allowFiltering && e.target !== this.filterInput))) {
17625
17634
  if (e.target && e.target.className.indexOf('e-edit-template') > -1) {
17626
17635
  return;
17627
17636
  }
@@ -17715,6 +17724,10 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
17715
17724
  };
17716
17725
  ListBox.prototype.KeyUp = function (e) {
17717
17726
  var _this = this;
17727
+ if (this.allowFiltering && e.ctrlKey && e.keyCode === 65) {
17728
+ e.preventDefault();
17729
+ return;
17730
+ }
17718
17731
  var char = String.fromCharCode(e.keyCode);
17719
17732
  var isWordCharacter = char.match(/\w/);
17720
17733
  if (!isNullOrUndefined(isWordCharacter)) {
@@ -18311,25 +18324,25 @@ var listBoxClasses = {
18311
18324
  * export all modules from current location
18312
18325
  */
18313
18326
 
18314
- var __extends$7 = (undefined && undefined.__extends) || (function () {
18315
- var extendStatics = function (d, b) {
18316
- extendStatics = Object.setPrototypeOf ||
18317
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18318
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
18319
- return extendStatics(d, b);
18320
- };
18321
- return function (d, b) {
18322
- extendStatics(d, b);
18323
- function __() { this.constructor = d; }
18324
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18325
- };
18326
- })();
18327
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
18328
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
18329
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
18330
- 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;
18331
- return c > 3 && r && Object.defineProperty(target, key, r), r;
18332
- };
18327
+ var __extends$7 = (undefined && undefined.__extends) || (function () {
18328
+ var extendStatics = function (d, b) {
18329
+ extendStatics = Object.setPrototypeOf ||
18330
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
18331
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
18332
+ return extendStatics(d, b);
18333
+ };
18334
+ return function (d, b) {
18335
+ extendStatics(d, b);
18336
+ function __() { this.constructor = d; }
18337
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18338
+ };
18339
+ })();
18340
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
18341
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
18342
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
18343
+ 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;
18344
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
18345
+ };
18333
18346
  /**
18334
18347
  * The Mention component is used to list someone or something based on user input in textarea, input,
18335
18348
  * or any other editable element from which the user can select.
@@ -18611,7 +18624,8 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
18611
18624
  return;
18612
18625
  }
18613
18626
  this.isTyped = e.code !== 'Enter' && e.code !== 'Space' && e.code !== 'ArrowDown' && e.code !== 'ArrowUp' ? true : false;
18614
- if (document.activeElement != this.inputElement) {
18627
+ var isRteImage = document.activeElement.parentElement && document.activeElement.parentElement.querySelector('.e-rte-image') ? true : false;
18628
+ if (document.activeElement != this.inputElement && !isRteImage) {
18615
18629
  this.inputElement.focus();
18616
18630
  }
18617
18631
  if (this.isContentEditable(this.inputElement)) {
@@ -18634,7 +18648,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
18634
18648
  if ((!currentRange || !lastWordRange) || e.code === 'Enter' || e.keyCode === 27 ||
18635
18649
  (lastWordRange.match(Regex) && lastWordRange.match(Regex).length > 1) ||
18636
18650
  (this.isContentEditable(this.inputElement) && this.range.startContainer &&
18637
- this.range.startContainer.previousElementSibling && this.range.startContainer.textContent.split('').length > 0 &&
18651
+ this.range.startContainer.previousElementSibling && this.range.startContainer.previousElementSibling.tagName !== 'BR' && this.range.startContainer.textContent.split('').length > 0 &&
18638
18652
  (rangetextContent.length === 1 || rangetextContent[rangetextContent.length - 2].indexOf('') === -1 ||
18639
18653
  this.range.startContainer.nodeType === 1))) {
18640
18654
  if (this.allowSpaces && currentRange && currentRange.trim() !== '' && charRegex.test(currentRange) && currentRange.indexOf(this.mentionChar) !== -1
@@ -18672,7 +18686,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
18672
18686
  if (isNullOrUndefined(this.list)) {
18673
18687
  this.initValue();
18674
18688
  }
18675
- if (!this.isPopupOpen && e.keyCode !== 38 && e.keyCode !== 40) {
18689
+ if (!this.isPopupOpen && e.keyCode !== 38 && e.keyCode !== 40 && this.queryString.length >= this.minLength) {
18676
18690
  this.didPopupOpenByTypingInitialChar = true;
18677
18691
  this.showPopup();
18678
18692
  if (this.initRemoteRender && this.list.querySelectorAll('li').length === 0) {
@@ -19483,6 +19497,12 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
19483
19497
  if (this.isPopupOpen) {
19484
19498
  this.hidePopup();
19485
19499
  }
19500
+ //New event to update the RichTextEditor value, when a mention item is selected using mouse click action.
19501
+ if (!isNullOrUndefined(e.pointerType) && e.pointerType === 'mouse') {
19502
+ var event_1 = new CustomEvent('content-changed', { detail: { click: true } });
19503
+ this.inputElement.dispatchEvent(event_1);
19504
+ }
19505
+
19486
19506
  this.onChangeEvent(e);
19487
19507
  }
19488
19508
  else {