@syncfusion/ej2-dropdowns 29.2.10 → 29.2.11-81740

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/{README.md → ReadMe.md} +217 -217
  2. package/dist/ej2-dropdowns.umd.min.js +1 -10
  3. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-dropdowns.es2015.js +134 -85
  5. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  6. package/dist/es6/ej2-dropdowns.es5.js +293 -242
  7. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  8. package/license +2 -2
  9. package/package.json +36 -36
  10. package/src/auto-complete/auto-complete-model.d.ts +190 -190
  11. package/src/auto-complete/auto-complete.d.ts +12 -12
  12. package/src/auto-complete/auto-complete.js +21 -21
  13. package/src/combo-box/combo-box-model.d.ts +232 -232
  14. package/src/combo-box/combo-box.d.ts +26 -26
  15. package/src/combo-box/combo-box.js +29 -29
  16. package/src/common/incremental-search.js +1 -1
  17. package/src/common/virtual-scroll.js +46 -46
  18. package/src/drop-down-base/drop-down-base-model.d.ts +205 -205
  19. package/src/drop-down-base/drop-down-base.d.ts +15 -15
  20. package/src/drop-down-base/drop-down-base.js +20 -20
  21. package/src/drop-down-list/drop-down-list-model.d.ts +310 -310
  22. package/src/drop-down-list/drop-down-list.d.ts +5 -5
  23. package/src/drop-down-list/drop-down-list.js +21 -21
  24. package/src/drop-down-tree/drop-down-tree-model.d.ts +493 -493
  25. package/src/drop-down-tree/drop-down-tree.d.ts +1 -1
  26. package/src/drop-down-tree/drop-down-tree.js +19 -19
  27. package/src/list-box/list-box-model.d.ts +237 -237
  28. package/src/list-box/list-box.d.ts +2 -2
  29. package/src/list-box/list-box.js +19 -19
  30. package/src/mention/mention-model.d.ts +272 -272
  31. package/src/mention/mention.d.ts +1 -1
  32. package/src/mention/mention.js +29 -27
  33. package/src/multi-select/multi-select-model.d.ts +564 -564
  34. package/src/multi-select/multi-select.d.ts +2 -1
  35. package/src/multi-select/multi-select.js +90 -41
  36. package/styles/auto-complete/_all.scss +1 -1
  37. package/styles/auto-complete/_bds-definition.scss +2 -2
  38. package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
  39. package/styles/auto-complete/_bootstrap-definition.scss +2 -2
  40. package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
  41. package/styles/auto-complete/_bootstrap5-definition.scss +2 -2
  42. package/styles/auto-complete/_bootstrap5.3-definition.scss +2 -2
  43. package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
  44. package/styles/auto-complete/_fabric-definition.scss +2 -2
  45. package/styles/auto-complete/_fluent-definition.scss +2 -2
  46. package/styles/auto-complete/_fluent2-definition.scss +2 -2
  47. package/styles/auto-complete/_fusionnew-definition.scss +2 -2
  48. package/styles/auto-complete/_highcontrast-definition.scss +2 -2
  49. package/styles/auto-complete/_highcontrast-light-definition.scss +2 -2
  50. package/styles/auto-complete/_material-dark-definition.scss +2 -2
  51. package/styles/auto-complete/_material-definition.scss +2 -2
  52. package/styles/auto-complete/_material3-definition.scss +2 -2
  53. package/styles/auto-complete/_tailwind-definition.scss +2 -2
  54. package/styles/auto-complete/_tailwind3-definition.scss +2 -2
  55. package/styles/auto-complete/material3-dark.scss +1 -1
  56. package/styles/auto-complete/material3.scss +1 -1
  57. package/styles/combo-box/_all.scss +1 -1
  58. package/styles/combo-box/_bds-definition.scss +2 -2
  59. package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
  60. package/styles/combo-box/_bootstrap-definition.scss +2 -2
  61. package/styles/combo-box/_bootstrap4-definition.scss +11 -11
  62. package/styles/combo-box/_bootstrap5-definition.scss +2 -2
  63. package/styles/combo-box/_bootstrap5.3-definition.scss +2 -2
  64. package/styles/combo-box/_fabric-dark-definition.scss +2 -2
  65. package/styles/combo-box/_fabric-definition.scss +2 -2
  66. package/styles/combo-box/_fluent-definition.scss +2 -2
  67. package/styles/combo-box/_fluent2-definition.scss +2 -2
  68. package/styles/combo-box/_fusionnew-definition.scss +2 -2
  69. package/styles/combo-box/_highcontrast-definition.scss +2 -2
  70. package/styles/combo-box/_highcontrast-light-definition.scss +3 -3
  71. package/styles/combo-box/_material-dark-definition.scss +2 -2
  72. package/styles/combo-box/_material-definition.scss +2 -2
  73. package/styles/combo-box/_material3-definition.scss +2 -2
  74. package/styles/combo-box/_tailwind-definition.scss +2 -2
  75. package/styles/combo-box/_tailwind3-definition.scss +2 -2
  76. package/styles/combo-box/material3-dark.scss +1 -1
  77. package/styles/combo-box/material3.scss +1 -1
  78. package/styles/drop-down-base/_all.scss +2 -2
  79. package/styles/drop-down-base/_bds-definition.scss +112 -112
  80. package/styles/drop-down-base/_bigger.scss +198 -198
  81. package/styles/drop-down-base/_bootstrap-dark-definition.scss +80 -80
  82. package/styles/drop-down-base/_bootstrap-definition.scss +78 -78
  83. package/styles/drop-down-base/_bootstrap4-definition.scss +83 -83
  84. package/styles/drop-down-base/_bootstrap5-definition.scss +98 -98
  85. package/styles/drop-down-base/_bootstrap5.3-definition.scss +98 -98
  86. package/styles/drop-down-base/_definition.scss +23 -23
  87. package/styles/drop-down-base/_fabric-dark-definition.scss +81 -81
  88. package/styles/drop-down-base/_fabric-definition.scss +79 -79
  89. package/styles/drop-down-base/_fluent-definition.scss +102 -102
  90. package/styles/drop-down-base/_fluent2-definition.scss +113 -113
  91. package/styles/drop-down-base/_fusionnew-definition.scss +98 -98
  92. package/styles/drop-down-base/_highcontrast-definition.scss +96 -96
  93. package/styles/drop-down-base/_highcontrast-light-definition.scss +96 -96
  94. package/styles/drop-down-base/_layout.scss +148 -148
  95. package/styles/drop-down-base/_material-dark-definition.scss +82 -82
  96. package/styles/drop-down-base/_material-definition.scss +81 -81
  97. package/styles/drop-down-base/_material3-definition.scss +73 -73
  98. package/styles/drop-down-base/_tailwind-definition.scss +107 -107
  99. package/styles/drop-down-base/_tailwind3-definition.scss +98 -98
  100. package/styles/drop-down-base/_theme.scss +303 -303
  101. package/styles/drop-down-base/material3-dark.scss +1 -1
  102. package/styles/drop-down-base/material3.scss +1 -1
  103. package/styles/drop-down-list/_all.scss +3 -3
  104. package/styles/drop-down-list/_bds-definition.scss +100 -100
  105. package/styles/drop-down-list/_bigger.scss +713 -713
  106. package/styles/drop-down-list/_bootstrap-dark-definition.scss +94 -94
  107. package/styles/drop-down-list/_bootstrap-definition.scss +93 -93
  108. package/styles/drop-down-list/_bootstrap4-definition.scss +122 -122
  109. package/styles/drop-down-list/_bootstrap5-definition.scss +135 -135
  110. package/styles/drop-down-list/_bootstrap5.3-definition.scss +136 -136
  111. package/styles/drop-down-list/_fabric-dark-definition.scss +72 -72
  112. package/styles/drop-down-list/_fabric-definition.scss +69 -69
  113. package/styles/drop-down-list/_fluent-definition.scss +128 -128
  114. package/styles/drop-down-list/_fluent2-definition.scss +101 -101
  115. package/styles/drop-down-list/_fusionnew-definition.scss +134 -134
  116. package/styles/drop-down-list/_highcontrast-definition.scss +83 -83
  117. package/styles/drop-down-list/_highcontrast-light-definition.scss +85 -85
  118. package/styles/drop-down-list/_layout.scss +284 -284
  119. package/styles/drop-down-list/_material-dark-definition.scss +110 -110
  120. package/styles/drop-down-list/_material-definition.scss +112 -112
  121. package/styles/drop-down-list/_material3-definition.scss +114 -114
  122. package/styles/drop-down-list/_tailwind-definition.scss +100 -100
  123. package/styles/drop-down-list/_tailwind3-definition.scss +135 -135
  124. package/styles/drop-down-list/_theme.scss +17 -17
  125. package/styles/drop-down-list/icons/_bds.scss +14 -14
  126. package/styles/drop-down-list/icons/_bootstrap-dark.scss +18 -18
  127. package/styles/drop-down-list/icons/_bootstrap.scss +18 -18
  128. package/styles/drop-down-list/icons/_bootstrap4.scss +18 -18
  129. package/styles/drop-down-list/icons/_bootstrap5.3.scss +18 -18
  130. package/styles/drop-down-list/icons/_bootstrap5.scss +18 -18
  131. package/styles/drop-down-list/icons/_fabric-dark.scss +18 -18
  132. package/styles/drop-down-list/icons/_fabric.scss +18 -18
  133. package/styles/drop-down-list/icons/_fluent.scss +18 -18
  134. package/styles/drop-down-list/icons/_fluent2.scss +18 -18
  135. package/styles/drop-down-list/icons/_fusionnew.scss +14 -14
  136. package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
  137. package/styles/drop-down-list/icons/_highcontrast.scss +18 -18
  138. package/styles/drop-down-list/icons/_material-dark.scss +18 -18
  139. package/styles/drop-down-list/icons/_material.scss +18 -18
  140. package/styles/drop-down-list/icons/_material3.scss +18 -18
  141. package/styles/drop-down-list/icons/_tailwind.scss +18 -18
  142. package/styles/drop-down-list/icons/_tailwind3.scss +14 -14
  143. package/styles/drop-down-list/material3-dark.scss +1 -1
  144. package/styles/drop-down-list/material3.scss +1 -1
  145. package/styles/drop-down-tree/_all.scss +2 -2
  146. package/styles/drop-down-tree/_bds-definition.scss +74 -74
  147. package/styles/drop-down-tree/_bigger.scss +561 -561
  148. package/styles/drop-down-tree/_bootstrap-dark-definition.scss +81 -81
  149. package/styles/drop-down-tree/_bootstrap-definition.scss +81 -81
  150. package/styles/drop-down-tree/_bootstrap4-definition.scss +85 -85
  151. package/styles/drop-down-tree/_bootstrap5-definition.scss +73 -73
  152. package/styles/drop-down-tree/_bootstrap5.3-definition.scss +74 -74
  153. package/styles/drop-down-tree/_fabric-dark-definition.scss +81 -81
  154. package/styles/drop-down-tree/_fabric-definition.scss +81 -81
  155. package/styles/drop-down-tree/_fluent-definition.scss +78 -78
  156. package/styles/drop-down-tree/_fluent2-definition.scss +85 -85
  157. package/styles/drop-down-tree/_fusionnew-definition.scss +69 -69
  158. package/styles/drop-down-tree/_highcontrast-definition.scss +81 -81
  159. package/styles/drop-down-tree/_highcontrast-light-definition.scss +81 -81
  160. package/styles/drop-down-tree/_layout.scss +942 -942
  161. package/styles/drop-down-tree/_material-dark-definition.scss +82 -82
  162. package/styles/drop-down-tree/_material-definition.scss +84 -84
  163. package/styles/drop-down-tree/_material3-definition.scss +84 -84
  164. package/styles/drop-down-tree/_tailwind-definition.scss +74 -74
  165. package/styles/drop-down-tree/_tailwind3-definition.scss +75 -75
  166. package/styles/drop-down-tree/_theme.scss +135 -135
  167. package/styles/drop-down-tree/icons/_bds.scss +11 -11
  168. package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
  169. package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
  170. package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
  171. package/styles/drop-down-tree/icons/_bootstrap5.3.scss +11 -11
  172. package/styles/drop-down-tree/icons/_bootstrap5.scss +11 -11
  173. package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
  174. package/styles/drop-down-tree/icons/_fabric.scss +11 -11
  175. package/styles/drop-down-tree/icons/_fluent.scss +11 -11
  176. package/styles/drop-down-tree/icons/_fluent2.scss +14 -14
  177. package/styles/drop-down-tree/icons/_fusionnew.scss +11 -11
  178. package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
  179. package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
  180. package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
  181. package/styles/drop-down-tree/icons/_material.scss +11 -11
  182. package/styles/drop-down-tree/icons/_material3.scss +11 -11
  183. package/styles/drop-down-tree/icons/_tailwind-dark.scss +11 -11
  184. package/styles/drop-down-tree/icons/_tailwind.scss +11 -11
  185. package/styles/drop-down-tree/icons/_tailwind3.scss +11 -11
  186. package/styles/drop-down-tree/material3-dark.scss +1 -1
  187. package/styles/drop-down-tree/material3.scss +1 -1
  188. package/styles/list-box/_all.scss +2 -2
  189. package/styles/list-box/_bds-definition.scss +136 -136
  190. package/styles/list-box/_bigger.scss +190 -190
  191. package/styles/list-box/_bootstrap-dark-definition.scss +126 -126
  192. package/styles/list-box/_bootstrap-definition.scss +119 -119
  193. package/styles/list-box/_bootstrap4-definition.scss +126 -126
  194. package/styles/list-box/_bootstrap5-definition.scss +121 -121
  195. package/styles/list-box/_bootstrap5.3-definition.scss +123 -123
  196. package/styles/list-box/_fabric-dark-definition.scss +124 -124
  197. package/styles/list-box/_fabric-definition.scss +119 -119
  198. package/styles/list-box/_fluent-definition.scss +120 -120
  199. package/styles/list-box/_fluent2-definition.scss +121 -121
  200. package/styles/list-box/_fusionnew-definition.scss +111 -111
  201. package/styles/list-box/_highcontrast-definition.scss +119 -119
  202. package/styles/list-box/_highcontrast-light-definition.scss +124 -124
  203. package/styles/list-box/_layout.scss +496 -496
  204. package/styles/list-box/_material-dark-definition.scss +124 -124
  205. package/styles/list-box/_material-definition.scss +119 -119
  206. package/styles/list-box/_material3-definition.scss +119 -119
  207. package/styles/list-box/_tailwind-definition.scss +119 -119
  208. package/styles/list-box/_tailwind3-definition.scss +123 -123
  209. package/styles/list-box/_theme.scss +327 -327
  210. package/styles/list-box/icons/_bds.scss +25 -25
  211. package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
  212. package/styles/list-box/icons/_bootstrap.scss +25 -25
  213. package/styles/list-box/icons/_bootstrap4.scss +25 -25
  214. package/styles/list-box/icons/_bootstrap5.3.scss +25 -25
  215. package/styles/list-box/icons/_bootstrap5.scss +25 -25
  216. package/styles/list-box/icons/_fabric-dark.scss +25 -25
  217. package/styles/list-box/icons/_fabric.scss +25 -25
  218. package/styles/list-box/icons/_fluent.scss +25 -25
  219. package/styles/list-box/icons/_fluent2.scss +25 -25
  220. package/styles/list-box/icons/_fusionnew.scss +25 -25
  221. package/styles/list-box/icons/_highcontrast-light.scss +25 -25
  222. package/styles/list-box/icons/_highcontrast.scss +25 -25
  223. package/styles/list-box/icons/_material-dark.scss +25 -25
  224. package/styles/list-box/icons/_material.scss +25 -25
  225. package/styles/list-box/icons/_material3.scss +25 -25
  226. package/styles/list-box/icons/_tailwind-dark.scss +25 -25
  227. package/styles/list-box/icons/_tailwind.scss +25 -25
  228. package/styles/list-box/icons/_tailwind3.scss +25 -25
  229. package/styles/list-box/material3-dark.scss +1 -1
  230. package/styles/list-box/material3.scss +1 -1
  231. package/styles/material3-dark.scss +1 -1
  232. package/styles/material3.scss +1 -1
  233. package/styles/mention/_all.scss +1 -1
  234. package/styles/mention/_bds-definition.scss +1 -1
  235. package/styles/mention/_bootstrap-dark-definition.scss +3 -3
  236. package/styles/mention/_bootstrap-definition.scss +3 -3
  237. package/styles/mention/_bootstrap4-definition.scss +3 -3
  238. package/styles/mention/_bootstrap5-definition.scss +1 -1
  239. package/styles/mention/_bootstrap5.3-definition.scss +1 -1
  240. package/styles/mention/_fabric-dark-definition.scss +2 -2
  241. package/styles/mention/_fabric-definition.scss +3 -3
  242. package/styles/mention/_fluent-definition.scss +1 -1
  243. package/styles/mention/_fluent2-definition.scss +1 -1
  244. package/styles/mention/_fusionnew-definition.scss +1 -1
  245. package/styles/mention/_highcontrast-definition.scss +3 -3
  246. package/styles/mention/_highcontrast-light-definition.scss +3 -3
  247. package/styles/mention/_layout.scss +6 -6
  248. package/styles/mention/_material-dark-definition.scss +3 -3
  249. package/styles/mention/_material-definition.scss +3 -3
  250. package/styles/mention/_material3-definition.scss +1 -1
  251. package/styles/mention/_tailwind-definition.scss +1 -1
  252. package/styles/mention/_tailwind3-definition.scss +1 -1
  253. package/styles/mention/material3-dark.scss +1 -1
  254. package/styles/mention/material3.scss +1 -1
  255. package/styles/multi-select/_all.scss +2 -2
  256. package/styles/multi-select/_bds-definition.scss +231 -231
  257. package/styles/multi-select/_bigger.scss +2002 -2002
  258. package/styles/multi-select/_bootstrap-dark-definition.scss +198 -198
  259. package/styles/multi-select/_bootstrap-definition.scss +187 -187
  260. package/styles/multi-select/_bootstrap4-definition.scss +236 -236
  261. package/styles/multi-select/_bootstrap5-definition.scss +229 -229
  262. package/styles/multi-select/_bootstrap5.3-definition.scss +229 -229
  263. package/styles/multi-select/_fabric-dark-definition.scss +190 -190
  264. package/styles/multi-select/_fabric-definition.scss +181 -181
  265. package/styles/multi-select/_fluent-definition.scss +236 -236
  266. package/styles/multi-select/_fluent2-definition.scss +234 -234
  267. package/styles/multi-select/_fusionnew-definition.scss +222 -222
  268. package/styles/multi-select/_highcontrast-definition.scss +302 -302
  269. package/styles/multi-select/_highcontrast-light-definition.scss +296 -296
  270. package/styles/multi-select/_layout.scss +1335 -1335
  271. package/styles/multi-select/_material-dark-definition.scss +248 -248
  272. package/styles/multi-select/_material-definition.scss +250 -250
  273. package/styles/multi-select/_material3-definition.scss +233 -233
  274. package/styles/multi-select/_tailwind-definition.scss +231 -231
  275. package/styles/multi-select/_tailwind3-definition.scss +227 -227
  276. package/styles/multi-select/_theme.scss +564 -564
  277. package/styles/multi-select/icons/_bds.scss +26 -26
  278. package/styles/multi-select/icons/_bootstrap-dark.scss +30 -30
  279. package/styles/multi-select/icons/_bootstrap.scss +30 -30
  280. package/styles/multi-select/icons/_bootstrap4.scss +32 -32
  281. package/styles/multi-select/icons/_bootstrap5.3.scss +30 -30
  282. package/styles/multi-select/icons/_bootstrap5.scss +30 -30
  283. package/styles/multi-select/icons/_fabric-dark.scss +30 -30
  284. package/styles/multi-select/icons/_fabric.scss +30 -30
  285. package/styles/multi-select/icons/_fluent.scss +38 -38
  286. package/styles/multi-select/icons/_fluent2.scss +347 -347
  287. package/styles/multi-select/icons/_fusionnew.scss +26 -26
  288. package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
  289. package/styles/multi-select/icons/_highcontrast.scss +30 -30
  290. package/styles/multi-select/icons/_material-dark.scss +348 -348
  291. package/styles/multi-select/icons/_material.scss +348 -348
  292. package/styles/multi-select/icons/_material3.scss +350 -350
  293. package/styles/multi-select/icons/_tailwind.scss +30 -30
  294. package/styles/multi-select/icons/_tailwind3.scss +26 -26
  295. package/styles/multi-select/material3-dark.scss +1 -1
  296. package/styles/multi-select/material3.scss +1 -1
  297. package/.eslintrc.json +0 -261
  298. package/dist/ej2-dropdowns.min.js +0 -10
  299. package/dist/global/ej2-dropdowns.min.js +0 -11
  300. package/dist/global/ej2-dropdowns.min.js.map +0 -1
  301. package/dist/global/index.d.ts +0 -14
  302. package/helpers/e2e/autocomplete.d.ts +0 -16
  303. package/helpers/e2e/autocomplete.js +0 -60
  304. package/helpers/e2e/combobox.d.ts +0 -17
  305. package/helpers/e2e/combobox.js +0 -63
  306. package/helpers/e2e/dropdownlist.d.ts +0 -20
  307. package/helpers/e2e/dropdownlist.js +0 -72
  308. package/helpers/e2e/index.d.ts +0 -4
  309. package/helpers/e2e/index.js +0 -11
  310. package/helpers/e2e/listboxHelper.d.ts +0 -22
  311. package/helpers/e2e/listboxHelper.js +0 -56
  312. package/helpers/e2e/multiselect.d.ts +0 -31
  313. package/helpers/e2e/multiselect.js +0 -105
  314. package/tslint.json +0 -111
@@ -136,7 +136,7 @@ function Search(inputVal, items, searchType, ignoreCase, dataSource, fields, typ
136
136
  const listItems = items;
137
137
  ignoreCase = ignoreCase !== undefined && ignoreCase !== null ? ignoreCase : true;
138
138
  const itemData = { item: null, index: null };
139
- if (inputVal && inputVal.length) {
139
+ if (inputVal && inputVal.length && items) {
140
140
  const strLength = inputVal.length;
141
141
  let queryStr = ignoreCase ? inputVal.toLocaleLowerCase() : inputVal;
142
142
  queryStr = escapeCharRegExp(queryStr);
@@ -255,14 +255,14 @@ function revertHighlightSearch(content) {
255
255
  }
256
256
  }
257
257
 
258
- var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
259
- return new (P || (P = Promise))(function (resolve, reject) {
260
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
261
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
262
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
263
- step((generator = generator.apply(thisArg, _arguments || [])).next());
264
- });
265
- };
258
+ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
259
+ return new (P || (P = Promise))(function (resolve, reject) {
260
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
261
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
262
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
263
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
264
+ });
265
+ };
266
266
  class VirtualScroll {
267
267
  constructor(parent) {
268
268
  this.sentinelInfo = {
@@ -803,12 +803,12 @@ class VirtualScroll {
803
803
  }
804
804
  }
805
805
 
806
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
807
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
808
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
809
- 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;
810
- return c > 3 && r && Object.defineProperty(target, key, r), r;
811
- };
806
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
807
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
808
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
809
+ 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;
810
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
811
+ };
812
812
  class FieldSettings extends ChildProperty {
813
813
  }
814
814
  __decorate([
@@ -2869,12 +2869,12 @@ DropDownBase = __decorate([
2869
2869
  NotifyPropertyChanges
2870
2870
  ], DropDownBase);
2871
2871
 
2872
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2873
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2874
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2875
- 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;
2876
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2877
- };
2872
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2873
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2874
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2875
+ 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;
2876
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2877
+ };
2878
2878
  // don't use space in classnames
2879
2879
  const dropDownListClasses = {
2880
2880
  root: 'e-dropdownlist',
@@ -7346,12 +7346,12 @@ DropDownList = __decorate$1([
7346
7346
  NotifyPropertyChanges
7347
7347
  ], DropDownList);
7348
7348
 
7349
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7350
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7351
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7352
- 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;
7353
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7354
- };
7349
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7350
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7351
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7352
+ 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;
7353
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7354
+ };
7355
7355
  const RTL = 'e-rtl';
7356
7356
  const DROPDOWNTREE = 'e-ddt';
7357
7357
  const HIDDENELEMENT = 'e-ddt-hidden';
@@ -10862,12 +10862,12 @@ DropDownTree = __decorate$2([
10862
10862
  NotifyPropertyChanges
10863
10863
  ], DropDownTree);
10864
10864
 
10865
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10866
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10867
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10868
- 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;
10869
- return c > 3 && r && Object.defineProperty(target, key, r), r;
10870
- };
10865
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
10866
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10867
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10868
+ 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;
10869
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
10870
+ };
10871
10871
  const SPINNER_CLASS = 'e-atc-spinner-icon';
10872
10872
  dropDownListClasses.root = 'e-combobox';
10873
10873
  const inputObject$1 = {
@@ -11924,12 +11924,12 @@ ComboBox = __decorate$3([
11924
11924
  NotifyPropertyChanges
11925
11925
  ], ComboBox);
11926
11926
 
11927
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11928
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11929
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
11930
- 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;
11931
- return c > 3 && r && Object.defineProperty(target, key, r), r;
11932
- };
11927
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11928
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11929
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
11930
+ 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;
11931
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
11932
+ };
11933
11933
  dropDownListClasses.root = 'e-autocomplete';
11934
11934
  dropDownListClasses.icon = 'e-input-group-icon e-ddl-icon e-search-icon';
11935
11935
  /**
@@ -12633,12 +12633,12 @@ function encodePlaceholder(placeholder) {
12633
12633
  }
12634
12634
  /* eslint-enable valid-jsdoc */
12635
12635
 
12636
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12637
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12638
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
12639
- 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;
12640
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12641
- };
12636
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12637
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12638
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
12639
+ 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;
12640
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
12641
+ };
12642
12642
  const FOCUS = 'e-input-focus';
12643
12643
  const DISABLED$1 = 'e-disabled';
12644
12644
  const OVER_ALL_WRAPPER = 'e-multiselect e-input-group e-control-wrapper';
@@ -13092,7 +13092,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13092
13092
  if (!isNullOrUndefined(this.value)) {
13093
13093
  this.tempValues = this.allowObjectBinding ? this.value.slice() : this.value.slice();
13094
13094
  }
13095
- let customValue = this.allowObjectBinding ?
13095
+ let customValue = this.allowObjectBinding ? this.enableVirtualization ?
13096
+ this.getVirtualDataByValue(this.getFormattedValue(value)) :
13096
13097
  this.getDataByValue(this.getFormattedValue(value)) : this.getFormattedValue(value);
13097
13098
  if (this.allowCustomValue && (value !== 'false' && customValue === false || (!isNullOrUndefined(customValue) &&
13098
13099
  customValue.toString() === 'NaN'))) {
@@ -13284,7 +13285,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13284
13285
  if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
13285
13286
  this.initialValueUpdate();
13286
13287
  }
13287
- else if (!this.isRemoveSelection) {
13288
+ else if (!this.isRemoveSelection && (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager))))) {
13288
13289
  this.initialValueUpdate(this.listData, true);
13289
13290
  }
13290
13291
  this.initialUpdate();
@@ -13513,9 +13514,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13513
13514
  return this.virtualFilterQuery(filterQuery);
13514
13515
  }
13515
13516
  if (this.virtualSelectAll) {
13516
- return query ? query.take(this.maximumSelectionLength).requiresCount() : this.query ?
13517
- this.query.take(this.maximumSelectionLength).requiresCount() :
13518
- new Query().take(this.maximumSelectionLength).requiresCount();
13517
+ return query ? query.skip(0).take(this.maximumSelectionLength).requiresCount() : this.query ?
13518
+ this.query.skip(0).take(this.maximumSelectionLength).requiresCount() :
13519
+ new Query().skip(0).take(this.maximumSelectionLength).requiresCount();
13519
13520
  }
13520
13521
  return query ? query : this.query ? this.query : new Query();
13521
13522
  }
@@ -14491,6 +14492,15 @@ let MultiSelect = class MultiSelect extends DropDownBase {
14491
14492
  const focuseElem = this.list.querySelector('li.' + dropDownBaseClasses.focus);
14492
14493
  this.focusFirstListItem = !isNullOrUndefined(this.liCollections[0]) ? this.liCollections[0].classList.contains('e-item-focus') :
14493
14494
  false;
14495
+ if (this.list && this.list.querySelector('.e-list-parent.e-ul.e-reorder')) {
14496
+ const elements = this.list.querySelectorAll('li.'
14497
+ + dropDownBaseClasses.li
14498
+ + ':not(.' + HIDE_LIST + ')' + ':not(.e-reorder-hide)' + ':not(.e-virtual-list-end)');
14499
+ if (elements.length > 0) {
14500
+ this.focusFirstListItem = !isNullOrUndefined(elements[0]) ? elements[0].classList.contains('e-item-focus') :
14501
+ false;
14502
+ }
14503
+ }
14494
14504
  const index = Array.prototype.slice.call(list).indexOf(focuseElem);
14495
14505
  if (index <= 0 && (this.mode === 'CheckBox' && this.allowFiltering)) {
14496
14506
  this.keyAction = false;
@@ -14909,10 +14919,10 @@ let MultiSelect = class MultiSelect extends DropDownBase {
14909
14919
  }
14910
14920
  else if (elements.length) {
14911
14921
  if (this.mode === 'CheckBox' && this.showSelectAll && !isNullOrUndefined(selectAllParent && position === -1)) {
14912
- if (!this.focusFirstListItem && selectAllParent.classList.contains('e-item-focus')) {
14922
+ if ((!this.focusFirstListItem || position === 1) && selectAllParent.classList.contains('e-item-focus')) {
14913
14923
  selectAllParent.classList.remove('e-item-focus');
14914
14924
  }
14915
- else if (this.focusFirstListItem && !selectAllParent.classList.contains('e-item-focus')) {
14925
+ else if (this.focusFirstListItem && !selectAllParent.classList.contains('e-item-focus') && !(position === 1 && this.list.querySelector('.e-item-focus'))) {
14916
14926
  selectAllParent.classList.add('e-item-focus');
14917
14927
  }
14918
14928
  }
@@ -15049,6 +15059,26 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15049
15059
  addClass([element], CHIP_SELECTED);
15050
15060
  this.trigger('chipSelection', e);
15051
15061
  }
15062
+ getVirtualDataByValue(value) {
15063
+ if (!isNullOrUndefined(this.selectedListData)) {
15064
+ const type = this.typeOfData(this.selectedListData).typeof;
15065
+ if (type === 'string' || type === 'number' || type === 'boolean') {
15066
+ for (const item of this.selectedListData) {
15067
+ if (!isNullOrUndefined(item) && item === value) {
15068
+ return item;
15069
+ }
15070
+ }
15071
+ }
15072
+ else {
15073
+ for (const item of this.selectedListData) {
15074
+ if (!isNullOrUndefined(item) && getValue((this.fields.value ? this.fields.value : 'value'), item) === value) {
15075
+ return item;
15076
+ }
15077
+ }
15078
+ }
15079
+ }
15080
+ return null;
15081
+ }
15052
15082
  onChipRemove(e) {
15053
15083
  if (e.which === 3 || e.button === 2) {
15054
15084
  return;
@@ -15056,7 +15086,8 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15056
15086
  if (this.enabled && !this.readonly) {
15057
15087
  const element = e.target.parentElement;
15058
15088
  const customVal = element.getAttribute('data-value');
15059
- let value = this.allowObjectBinding ?
15089
+ let value = this.allowObjectBinding ? this.enableVirtualization ?
15090
+ this.getVirtualDataByValue(this.getFormattedValue(customVal)) :
15060
15091
  this.getDataByValue(this.getFormattedValue(customVal)) : this.getFormattedValue(customVal);
15061
15092
  if (this.allowCustomValue && ((customVal !== 'false' && value === false) ||
15062
15093
  (!isNullOrUndefined(value) && value.toString() === 'NaN'))) {
@@ -15173,7 +15204,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15173
15204
  this.virtualSelectAll = false;
15174
15205
  const removeVal = this.value.slice(0);
15175
15206
  removeVal.splice(index, 1);
15176
- if (this.enableVirtualization && this.mode === 'CheckBox') {
15207
+ if (this.enableVirtualization && this.selectedListData) {
15177
15208
  this.selectedListData.splice(index, 1);
15178
15209
  }
15179
15210
  this.setProperties({ value: [].concat([], removeVal) }, true);
@@ -15399,7 +15430,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15399
15430
  }
15400
15431
  dispatchSelect(value, eve, element, isNotTrigger, length, dataValue, text) {
15401
15432
  const list = this.listData;
15402
- if (this.initStatus && !isNotTrigger) {
15433
+ if (this.initStatus && !isNotTrigger && (!this.allowObjectBinding || (this.allowObjectBinding && value))) {
15403
15434
  value = this.allowObjectBinding ? getValue(((this.fields.value) ? this.fields.value : ''), value) : value;
15404
15435
  const val = dataValue ? dataValue : this.getDataByValue(value);
15405
15436
  const eventArgs = {
@@ -15432,7 +15463,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15432
15463
  value = this.allowObjectBinding ? this.getDataByValue(value) : value;
15433
15464
  if (this.enableVirtualization) {
15434
15465
  if (isNullOrUndefined(this.selectedListData)) {
15435
- this.selectedListData = [(this.getDataByValue(value))];
15466
+ this.selectedListData = this.allowObjectBinding ? [value] : [(this.getDataByValue(value))];
15436
15467
  }
15437
15468
  else {
15438
15469
  if (dataValue) {
@@ -15445,10 +15476,12 @@ let MultiSelect = class MultiSelect extends DropDownBase {
15445
15476
  }
15446
15477
  else {
15447
15478
  if (Array.isArray(this.selectedListData)) {
15448
- this.selectedListData.push((this.getDataByValue(value)));
15479
+ this.selectedListData.push(this.allowObjectBinding ? value :
15480
+ (this.getDataByValue(value)));
15449
15481
  }
15450
15482
  else {
15451
- this.selectedListData = [this.selectedListData, (this.getDataByValue(value))];
15483
+ this.selectedListData = [this.selectedListData, this.allowObjectBinding ? value :
15484
+ (this.getDataByValue(value))];
15452
15485
  }
15453
15486
  }
15454
15487
  }
@@ -16302,7 +16335,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16302
16335
  else {
16303
16336
  if (this.listData) {
16304
16337
  if (this.enableVirtualization) {
16305
- if (delim && !this.isDynamicRemoteVirtualData) {
16338
+ if (delim && !this.isDynamicRemoteVirtualData && !isInitialVirtualData) {
16306
16339
  data = this.delimiterWrapper && this.delimiterWrapper.innerHTML === '' ? data :
16307
16340
  this.delimiterWrapper.innerHTML;
16308
16341
  }
@@ -16314,7 +16347,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16314
16347
  text = this.text.split(delimiterChar);
16315
16348
  }
16316
16349
  else {
16317
- temp = isInitialVirtualData && delim ? this.text : this.getTextByValue(value);
16350
+ temp = isInitialVirtualData && delim ? this.text.replace(/,/g, delimiterChar + ' ') : this.getTextByValue(value);
16318
16351
  const textValues = this.isDynamicRemoteVirtualData && value != null && value !== '' && !isInitialVirtualData ?
16319
16352
  this.getTextByValue(value) : isInitialVirtualData ? this.text : (this.text && this.text !== '' ? this.text + this.delimiterChar + temp : temp);
16320
16353
  data += temp + delimiterChar + ' ';
@@ -16449,11 +16482,14 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16449
16482
  this.selectedListData = [listItems[i]];
16450
16483
  }
16451
16484
  else {
16452
- if (Array.isArray(this.selectedListData)) {
16453
- this.selectedListData.push((listItems[i]));
16454
- }
16455
- else {
16456
- this.selectedListData = [this.selectedListData, (listItems[i])];
16485
+ if ((this.allowObjectBinding && !this.isObjectInArray(listItems[i], this.selectedListData)) ||
16486
+ !this.allowObjectBinding) {
16487
+ if (Array.isArray(this.selectedListData)) {
16488
+ this.selectedListData.push((listItems[i]));
16489
+ }
16490
+ else {
16491
+ this.selectedListData = [this.selectedListData, (listItems[i])];
16492
+ }
16457
16493
  }
16458
16494
  }
16459
16495
  }
@@ -16467,6 +16503,12 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16467
16503
  text = this.getTextByValue(value);
16468
16504
  isCustomData = true;
16469
16505
  }
16506
+ else if ((isNullOrUndefined(text) && !this.allowCustomValue) &&
16507
+ ((!(this.dataSource instanceof DataManager)) ||
16508
+ (this.dataSource instanceof DataManager && isInitialVirtualData))) {
16509
+ this.value.splice(index, 1);
16510
+ index -= 1;
16511
+ }
16470
16512
  }
16471
16513
  else {
16472
16514
  text = this.getTextByValue(value);
@@ -17519,6 +17561,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
17519
17561
  }
17520
17562
  this.updateHiddenElement();
17521
17563
  this.setProperties({ value: [] }, true);
17564
+ this.selectedListData = [];
17522
17565
  this.virtualSelectAll = false;
17523
17566
  if (!isNullOrUndefined(this.viewPortInfo.startIndex) && !isNullOrUndefined(this.viewPortInfo.endIndex)) {
17524
17567
  this.notify('setCurrentViewDataAsync', {
@@ -18029,6 +18072,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
18029
18072
  this.onLoadSelect();
18030
18073
  if (this.enableVirtualization) {
18031
18074
  this.setProperties({ text: '' }, true);
18075
+ this.selectedListData = [];
18032
18076
  this.checkInitialValue();
18033
18077
  }
18034
18078
  }
@@ -18050,6 +18094,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
18050
18094
  this.isaddNonPresentItems = false;
18051
18095
  }
18052
18096
  else {
18097
+ this.selectedListData = [];
18053
18098
  if (prop === 'text') {
18054
18099
  this.initialTextUpdate();
18055
18100
  newProp = this.value;
@@ -18093,7 +18138,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
18093
18138
  setTimeout(() => {
18094
18139
  this.initialValueUpdate(listItems, true);
18095
18140
  this.isDynamicRemoteVirtualData = false;
18096
- this.initialUpdate();
18141
+ if (!this.inputFocus || (this.inputFocus && this.mode !== 'Default')) {
18142
+ this.initialUpdate();
18143
+ }
18097
18144
  }, 100);
18098
18145
  }
18099
18146
  });
@@ -19753,12 +19800,12 @@ class CheckBoxSelection {
19753
19800
  }
19754
19801
  }
19755
19802
 
19756
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
19757
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19758
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
19759
- 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;
19760
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19761
- };
19803
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
19804
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19805
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
19806
+ 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;
19807
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19808
+ };
19762
19809
  var ListBox_1;
19763
19810
  /**
19764
19811
  * Defines the Selection settings of List Box.
@@ -22363,12 +22410,12 @@ const listBoxClasses = {
22363
22410
  clearIcon: 'e-clear-icon'
22364
22411
  };
22365
22412
 
22366
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
22367
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22368
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
22369
- 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;
22370
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22371
- };
22413
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
22414
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22415
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
22416
+ 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;
22417
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22418
+ };
22372
22419
  /**
22373
22420
  * The Mention component is used to list someone or something based on user input in textarea, input,
22374
22421
  * or any other editable element from which the user can select.
@@ -22712,12 +22759,14 @@ let Mention = class Mention extends DropDownBase {
22712
22759
  const isValid = currentRange && mentionRegex.test(currentRange) ? false : true;
22713
22760
  let lastWordRange = this.getLastLetter(currentRange);
22714
22761
  const previousChar = currentRange ? currentRange.charAt(Math.max(0, currentRange.indexOf(this.mentionChar) - 1)) : '';
22715
- if (isValid && this.allowSpaces && currentRange && currentRange.includes(this.mentionChar) && currentRange.split(this.mentionChar).pop() !== ''
22716
- && (!this.requireLeadingSpace || (this.requireLeadingSpace && (previousChar === ' ' || currentRange.indexOf(this.mentionChar) === 0)))) {
22717
- lastWordRange = this.mentionChar + currentRange.split(this.mentionChar).pop();
22718
- }
22719
- if (!this.requireLeadingSpace && lastWordRange && lastWordRange.includes(this.mentionChar)) {
22720
- lastWordRange = this.mentionChar + lastWordRange.split(this.mentionChar).pop();
22762
+ if (!this.allowSpaces) {
22763
+ if (isValid && currentRange && currentRange.includes(this.mentionChar) && currentRange.split(this.mentionChar).pop() !== ''
22764
+ && (!this.requireLeadingSpace || (this.requireLeadingSpace && (previousChar === ' ' || currentRange.indexOf(this.mentionChar) === 0)))) {
22765
+ lastWordRange = this.mentionChar + currentRange.split(this.mentionChar).pop();
22766
+ }
22767
+ if (!this.requireLeadingSpace && lastWordRange && lastWordRange.includes(this.mentionChar)) {
22768
+ lastWordRange = this.mentionChar + lastWordRange.split(this.mentionChar).pop();
22769
+ }
22721
22770
  }
22722
22771
  const lastTwoLetters = this.mentionChar.toString() + this.mentionChar.toString();
22723
22772
  // eslint-disable-next-line security/detect-non-literal-regexp
@@ -22730,7 +22779,7 @@ let Mention = class Mention extends DropDownBase {
22730
22779
  this.hidePopup();
22731
22780
  return;
22732
22781
  }
22733
- if (((!currentRange || !lastWordRange) || (!lastWordRange.includes(this.mentionChar) && !this.requireLeadingSpace)) || e.code === 'Enter' || e.keyCode === 27 ||
22782
+ if (((!currentRange || !lastWordRange) || (!lastWordRange.includes(this.mentionChar) && !this.requireLeadingSpace && !this.allowSpaces)) || e.code === 'Enter' || e.keyCode === 27 ||
22734
22783
  (lastWordRange.match(Regex) && lastWordRange.match(Regex).length > 1) ||
22735
22784
  (this.isContentEditable(this.inputElement) && this.range.startContainer &&
22736
22785
  this.range.startContainer.previousElementSibling && this.range.startContainer.previousElementSibling.tagName !== 'BR' && this.range.startContainer.textContent.split('').length > 0 &&