@syncfusion/ej2-dropdowns 18.2.44-4568 → 18.2.44-4570

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 (170) hide show
  1. package/.eslintrc.json +244 -0
  2. package/CHANGELOG.md +1524 -1524
  3. package/README.md +118 -118
  4. package/dist/ej2-dropdowns.umd.min.js +1 -1
  5. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-dropdowns.es2015.js +99 -60
  7. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  8. package/dist/es6/ej2-dropdowns.es5.js +191 -151
  9. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  10. package/dist/global/ej2-dropdowns.min.js +1 -1
  11. package/dist/global/ej2-dropdowns.min.js.map +1 -1
  12. package/dist/ts/auto-complete/auto-complete.ts +527 -0
  13. package/dist/ts/combo-box/combo-box.ts +957 -0
  14. package/dist/ts/common/highlight-search.ts +47 -0
  15. package/dist/ts/common/incremental-search.ts +81 -0
  16. package/dist/ts/drop-down-base/drop-down-base.ts +1572 -0
  17. package/dist/ts/drop-down-list/drop-down-list.ts +2993 -0
  18. package/dist/ts/drop-down-tree/drop-down-tree.ts +3066 -0
  19. package/dist/ts/list-box/list-box.ts +2317 -0
  20. package/dist/ts/multi-select/checkbox-selection.ts +528 -0
  21. package/dist/ts/multi-select/float-label.ts +155 -0
  22. package/dist/ts/multi-select/interface.ts +66 -0
  23. package/dist/ts/multi-select/multi-select.ts +4216 -0
  24. package/helpers/e2e/index.js +3 -3
  25. package/license +2 -2
  26. package/package.json +63 -77
  27. package/src/auto-complete/auto-complete-model.d.ts +179 -179
  28. package/src/auto-complete/auto-complete.js +19 -19
  29. package/src/combo-box/combo-box-model.d.ts +212 -212
  30. package/src/combo-box/combo-box.js +19 -19
  31. package/src/drop-down-base/drop-down-base-model.d.ts +191 -191
  32. package/src/drop-down-base/drop-down-base.js +19 -19
  33. package/src/drop-down-list/drop-down-list-model.d.ts +222 -222
  34. package/src/drop-down-list/drop-down-list.js +19 -19
  35. package/src/drop-down-tree/drop-down-tree-model.d.ts +344 -344
  36. package/src/drop-down-tree/drop-down-tree.js +19 -19
  37. package/src/list-box/list-box-model.d.ts +156 -156
  38. package/src/list-box/list-box.js +19 -19
  39. package/src/multi-select/checkbox-selection.js +3 -1
  40. package/src/multi-select/multi-select-model.d.ts +452 -452
  41. package/src/multi-select/multi-select.d.ts +2 -0
  42. package/src/multi-select/multi-select.js +58 -19
  43. package/styles/_all.scss +3 -3
  44. package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
  45. package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
  46. package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
  47. package/styles/auto-complete/_highcontrast-light-definition.scss +2 -2
  48. package/styles/auto-complete/_material-dark-definition.scss +2 -2
  49. package/styles/bootstrap-dark.css +13 -16
  50. package/styles/bootstrap.css +12 -15
  51. package/styles/bootstrap4.css +6 -10
  52. package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
  53. package/styles/combo-box/_bootstrap4-definition.scss +11 -11
  54. package/styles/combo-box/_fabric-dark-definition.scss +2 -2
  55. package/styles/combo-box/_highcontrast-light-definition.scss +3 -3
  56. package/styles/combo-box/_material-dark-definition.scss +2 -2
  57. package/styles/drop-down-base/_all.scss +2 -2
  58. package/styles/drop-down-base/_bootstrap-dark-definition.scss +64 -64
  59. package/styles/drop-down-base/_bootstrap-definition.scss +64 -64
  60. package/styles/drop-down-base/_bootstrap4-definition.scss +78 -78
  61. package/styles/drop-down-base/_definition.scss +23 -23
  62. package/styles/drop-down-base/_fabric-dark-definition.scss +68 -68
  63. package/styles/drop-down-base/_fabric-definition.scss +66 -66
  64. package/styles/drop-down-base/_highcontrast-definition.scss +82 -82
  65. package/styles/drop-down-base/_highcontrast-light-definition.scss +81 -81
  66. package/styles/drop-down-base/_layout.scss +108 -108
  67. package/styles/drop-down-base/_material-dark-definition.scss +67 -67
  68. package/styles/drop-down-base/_material-definition.scss +65 -65
  69. package/styles/drop-down-base/_theme.scss +242 -242
  70. package/styles/drop-down-list/_all.scss +2 -2
  71. package/styles/drop-down-list/_bootstrap-dark-definition.scss +157 -157
  72. package/styles/drop-down-list/_bootstrap-definition.scss +156 -156
  73. package/styles/drop-down-list/_bootstrap4-definition.scss +184 -184
  74. package/styles/drop-down-list/_fabric-dark-definition.scss +127 -127
  75. package/styles/drop-down-list/_fabric-definition.scss +122 -122
  76. package/styles/drop-down-list/_highcontrast-definition.scss +131 -131
  77. package/styles/drop-down-list/_highcontrast-light-definition.scss +133 -133
  78. package/styles/drop-down-list/_layout.scss +218 -218
  79. package/styles/drop-down-list/_material-dark-definition.scss +143 -143
  80. package/styles/drop-down-list/_material-definition.scss +166 -166
  81. package/styles/drop-down-list/_theme.scss +10 -10
  82. package/styles/drop-down-list/icons/_bootstrap-dark.scss +14 -14
  83. package/styles/drop-down-list/icons/_bootstrap.scss +14 -14
  84. package/styles/drop-down-list/icons/_bootstrap4.scss +14 -14
  85. package/styles/drop-down-list/icons/_fabric-dark.scss +14 -14
  86. package/styles/drop-down-list/icons/_fabric.scss +14 -14
  87. package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
  88. package/styles/drop-down-list/icons/_highcontrast.scss +14 -14
  89. package/styles/drop-down-list/icons/_material-dark.scss +14 -14
  90. package/styles/drop-down-list/icons/_material.scss +14 -14
  91. package/styles/drop-down-list/material.css +9 -0
  92. package/styles/drop-down-tree/_all.scss +2 -2
  93. package/styles/drop-down-tree/_bootstrap-dark-definition.scss +61 -61
  94. package/styles/drop-down-tree/_bootstrap-definition.scss +61 -61
  95. package/styles/drop-down-tree/_bootstrap4-definition.scss +62 -62
  96. package/styles/drop-down-tree/_fabric-dark-definition.scss +62 -62
  97. package/styles/drop-down-tree/_fabric-definition.scss +62 -62
  98. package/styles/drop-down-tree/_highcontrast-definition.scss +62 -62
  99. package/styles/drop-down-tree/_highcontrast-light-definition.scss +62 -62
  100. package/styles/drop-down-tree/_layout.scss +437 -437
  101. package/styles/drop-down-tree/_material-dark-definition.scss +60 -60
  102. package/styles/drop-down-tree/_material-definition.scss +60 -60
  103. package/styles/drop-down-tree/_theme.scss +68 -68
  104. package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
  105. package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
  106. package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
  107. package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
  108. package/styles/drop-down-tree/icons/_fabric.scss +11 -11
  109. package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
  110. package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
  111. package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
  112. package/styles/drop-down-tree/icons/_material.scss +11 -11
  113. package/styles/drop-down-tree/material.css +9 -0
  114. package/styles/fabric-dark.css +2 -5
  115. package/styles/fabric.css +1 -4
  116. package/styles/highcontrast-light.css +2 -5
  117. package/styles/highcontrast.css +2 -7
  118. package/styles/list-box/_all.scss +2 -2
  119. package/styles/list-box/_bootstrap-dark-definition.scss +118 -118
  120. package/styles/list-box/_bootstrap-definition.scss +112 -112
  121. package/styles/list-box/_bootstrap4-definition.scss +118 -118
  122. package/styles/list-box/_fabric-dark-definition.scss +118 -118
  123. package/styles/list-box/_fabric-definition.scss +112 -112
  124. package/styles/list-box/_highcontrast-definition.scss +112 -112
  125. package/styles/list-box/_highcontrast-light-definition.scss +118 -118
  126. package/styles/list-box/_layout.scss +458 -458
  127. package/styles/list-box/_material-dark-definition.scss +118 -118
  128. package/styles/list-box/_material-definition.scss +112 -112
  129. package/styles/list-box/_theme.scss +273 -273
  130. package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
  131. package/styles/list-box/icons/_bootstrap.scss +25 -25
  132. package/styles/list-box/icons/_bootstrap4.scss +25 -25
  133. package/styles/list-box/icons/_fabric-dark.scss +25 -25
  134. package/styles/list-box/icons/_fabric.scss +25 -25
  135. package/styles/list-box/icons/_highcontrast-light.scss +25 -25
  136. package/styles/list-box/icons/_highcontrast.scss +25 -25
  137. package/styles/list-box/icons/_material-dark.scss +25 -25
  138. package/styles/list-box/icons/_material.scss +25 -25
  139. package/styles/material-dark.css +8 -11
  140. package/styles/material.css +34 -10
  141. package/styles/multi-select/_all.scss +2 -2
  142. package/styles/multi-select/_bootstrap-dark-definition.scss +171 -171
  143. package/styles/multi-select/_bootstrap-definition.scss +166 -166
  144. package/styles/multi-select/_bootstrap4-definition.scss +233 -233
  145. package/styles/multi-select/_fabric-dark-definition.scss +170 -170
  146. package/styles/multi-select/_fabric-definition.scss +167 -167
  147. package/styles/multi-select/_highcontrast-definition.scss +257 -259
  148. package/styles/multi-select/_highcontrast-light-definition.scss +258 -258
  149. package/styles/multi-select/_layout.scss +1153 -1153
  150. package/styles/multi-select/_material-dark-definition.scss +186 -186
  151. package/styles/multi-select/_material-definition.scss +191 -191
  152. package/styles/multi-select/_theme.scss +384 -389
  153. package/styles/multi-select/bootstrap-dark.css +13 -16
  154. package/styles/multi-select/bootstrap.css +12 -15
  155. package/styles/multi-select/bootstrap4.css +6 -10
  156. package/styles/multi-select/fabric-dark.css +2 -5
  157. package/styles/multi-select/fabric.css +1 -4
  158. package/styles/multi-select/highcontrast-light.css +2 -5
  159. package/styles/multi-select/highcontrast.css +2 -7
  160. package/styles/multi-select/icons/_bootstrap-dark.scss +26 -26
  161. package/styles/multi-select/icons/_bootstrap.scss +26 -26
  162. package/styles/multi-select/icons/_bootstrap4.scss +37 -37
  163. package/styles/multi-select/icons/_fabric-dark.scss +26 -26
  164. package/styles/multi-select/icons/_fabric.scss +26 -26
  165. package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
  166. package/styles/multi-select/icons/_highcontrast.scss +26 -26
  167. package/styles/multi-select/icons/_material-dark.scss +26 -26
  168. package/styles/multi-select/icons/_material.scss +324 -324
  169. package/styles/multi-select/material-dark.css +8 -11
  170. package/styles/multi-select/material.css +16 -10
@@ -140,12 +140,12 @@ function revertHighlightSearch(content) {
140
140
  * Common source
141
141
  */
142
142
 
143
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
144
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
145
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
146
- 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;
147
- return c > 3 && r && Object.defineProperty(target, key, r), r;
148
- };
143
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
144
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
145
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
146
+ 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;
147
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
148
+ };
149
149
  class FieldSettings extends ChildProperty {
150
150
  }
151
151
  __decorate([
@@ -1309,12 +1309,12 @@ DropDownBase = __decorate([
1309
1309
  * export all modules from current location
1310
1310
  */
1311
1311
 
1312
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1313
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1314
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1315
- 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;
1316
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1317
- };
1312
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1313
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1314
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1315
+ 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;
1316
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1317
+ };
1318
1318
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
1319
1319
  /* tslint:disable */
1320
1320
  // don't use space in classnames
@@ -3078,7 +3078,7 @@ let DropDownList = class DropDownList extends DropDownBase {
3078
3078
  this.isDocumentClick = false;
3079
3079
  this.destroyPopup();
3080
3080
  let formElement = closest(this.inputElement, 'form');
3081
- if (this.isFiltering() && formElement && this.actionCompleteData.list && this.actionCompleteData.list[0]) {
3081
+ if (this.isFiltering() && this.actionCompleteData.list && this.actionCompleteData.list[0]) {
3082
3082
  this.isActive = true;
3083
3083
  this.onActionComplete(this.actionCompleteData.ulElement, this.actionCompleteData.list, null, true);
3084
3084
  }
@@ -3532,6 +3532,9 @@ let DropDownList = class DropDownList extends DropDownBase {
3532
3532
  if (this.getModuleName() !== 'autocomplete' && this.allowFiltering && (isChangeValue || isChangeText)) {
3533
3533
  this.itemData = null;
3534
3534
  }
3535
+ if (this.allowFiltering && newProp.dataSource && !isNullOrUndefined(Object.keys(newProp.dataSource))) {
3536
+ this.actionCompleteData = { ulElement: null, list: null, isUpdated: false };
3537
+ }
3535
3538
  }
3536
3539
  updateDataSource(props) {
3537
3540
  if (this.inputElement.value !== '' || (!isNullOrUndefined(props) && (isNullOrUndefined(props.dataSource)
@@ -4105,12 +4108,12 @@ DropDownList = __decorate$1([
4105
4108
  * export all modules from current location
4106
4109
  */
4107
4110
 
4108
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4109
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4110
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4111
- 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;
4112
- return c > 3 && r && Object.defineProperty(target, key, r), r;
4113
- };
4111
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
4112
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4113
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4114
+ 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;
4115
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
4116
+ };
4114
4117
  const RTL = 'e-rtl';
4115
4118
  const DROPDOWNTREE = 'e-ddt';
4116
4119
  const HIDDENELEMENT = 'e-ddt-hidden';
@@ -6696,12 +6699,12 @@ DropDownTree = __decorate$2([
6696
6699
  * export all modules from current location
6697
6700
  */
6698
6701
 
6699
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6700
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6701
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6702
- 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;
6703
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6704
- };
6702
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
6703
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6704
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6705
+ 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;
6706
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6707
+ };
6705
6708
  /// <reference path='../drop-down-list/drop-down-list-model.d.ts'/>
6706
6709
  /* tslint:disable */
6707
6710
  /* tslint:enable */
@@ -7494,12 +7497,12 @@ ComboBox = __decorate$3([
7494
7497
  * export all modules from current location
7495
7498
  */
7496
7499
 
7497
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7498
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7499
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7500
- 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;
7501
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7502
- };
7500
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
7501
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7502
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7503
+ 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;
7504
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7505
+ };
7503
7506
  /// <reference path='../combo-box/combo-box-model.d.ts'/>
7504
7507
  /* tslint:disable */
7505
7508
  /* tslint:enable */
@@ -8012,12 +8015,12 @@ function floatLabelBlur(overAllWrapper, componentWrapper, value, floatLabelType,
8012
8015
  }
8013
8016
  }
8014
8017
 
8015
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8016
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8017
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8018
- 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;
8019
- return c > 3 && r && Object.defineProperty(target, key, r), r;
8020
- };
8018
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8019
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
8020
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
8021
+ 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;
8022
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
8023
+ };
8021
8024
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
8022
8025
  /* tslint:disable */
8023
8026
  /* tslint:enable */
@@ -8416,7 +8419,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
8416
8419
  this.mainData = list;
8417
8420
  this.mainListCollection = this.liCollections;
8418
8421
  }
8419
- else if (!isNullOrUndefined(this.mainData) && this.mainData.length === 0) {
8422
+ else if (isNullOrUndefined(this.mainData) || this.mainData.length === 0) {
8420
8423
  this.mainData = list;
8421
8424
  }
8422
8425
  if ((this.remoteCustomValue || list.length <= 0) && this.allowCustomValue && this.inputFocus && this.allowFiltering) {
@@ -10338,7 +10341,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
10338
10341
  updateActionCompleteData(li, item) {
10339
10342
  if (this.value && this.value.indexOf(li.getAttribute('data-value')) > -1) {
10340
10343
  this.mainList = this.ulElement;
10341
- addClass([li], HIDE_LIST);
10344
+ if (this.hideSelectedItem) {
10345
+ addClass([li], HIDE_LIST);
10346
+ }
10342
10347
  }
10343
10348
  }
10344
10349
  updateAddItemList(list, itemCount) {
@@ -11263,28 +11268,62 @@ let MultiSelect = class MultiSelect extends DropDownBase {
11263
11268
  }
11264
11269
  this.renderPopup();
11265
11270
  }
11271
+ presentItemValue(ulElement) {
11272
+ let valuecheck = [];
11273
+ for (let i = 0; i < this.value.length; i++) {
11274
+ let checkEle = this.findListElement(((this.allowFiltering && !isNullOrUndefined(this.mainList)) ? this.mainList : ulElement), 'li', 'data-value', this.value[i]);
11275
+ if (!checkEle) {
11276
+ valuecheck.push(this.value[i]);
11277
+ }
11278
+ }
11279
+ return valuecheck;
11280
+ }
11281
+ ;
11282
+ addNonPresentItems(valuecheck, ulElement, list, event) {
11283
+ this.showSpinner();
11284
+ this.dataSource.executeQuery(this.getForQuery(valuecheck)).then((e) => {
11285
+ this.hideSpinner();
11286
+ this.addItem(e.result, list.length);
11287
+ this.updateActionList(ulElement, list, event);
11288
+ });
11289
+ }
11290
+ ;
11266
11291
  updateVal(newProp, oldProp, prop) {
11267
11292
  if (!this.list) {
11268
11293
  this.onLoadSelect();
11269
11294
  }
11270
- else if (!this.inputFocus) {
11271
- if (prop === 'text') {
11272
- this.initialTextUpdate();
11273
- newProp = this.value;
11274
- }
11275
- if (isNullOrUndefined(this.value) || this.value.length === 0) {
11276
- this.tempValues = oldProp;
11295
+ else {
11296
+ let valuecheck = [];
11297
+ if (!isNullOrUndefined(this.value) && !this.allowCustomValue) {
11298
+ valuecheck = this.presentItemValue(this.ulElement);
11277
11299
  }
11278
- this.initialValueUpdate();
11279
- if (this.mode !== 'Box') {
11280
- this.updateDelimView();
11300
+ if (prop == 'value' && valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
11301
+ && this.listData != null) {
11302
+ this.mainData = null;
11303
+ this.setDynValue = true;
11304
+ this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
11281
11305
  }
11282
- this.refreshInputHight();
11283
- this.refreshPlaceHolder();
11284
- if (this.mode !== 'CheckBox' && this.changeOnBlur) {
11285
- this.updateValueState(null, newProp, oldProp);
11306
+ else {
11307
+ if (prop === 'text') {
11308
+ this.initialTextUpdate();
11309
+ newProp = this.value;
11310
+ }
11311
+ if (isNullOrUndefined(this.value) || this.value.length === 0) {
11312
+ this.tempValues = oldProp;
11313
+ }
11314
+ this.initialValueUpdate();
11315
+ if (this.mode !== 'Box' && !this.inputFocus) {
11316
+ this.updateDelimView();
11317
+ }
11318
+ if (!this.inputFocus) {
11319
+ this.refreshInputHight();
11320
+ }
11321
+ this.refreshPlaceHolder();
11322
+ if (this.mode !== 'CheckBox' && this.changeOnBlur) {
11323
+ this.updateValueState(null, newProp, oldProp);
11324
+ }
11325
+ this.checkPlaceholderSize();
11286
11326
  }
11287
- this.checkPlaceholderSize();
11288
11327
  }
11289
11328
  if (!this.changeOnBlur) {
11290
11329
  this.updateValueState(null, newProp, oldProp);
@@ -12309,12 +12348,12 @@ class CheckBoxSelection {
12309
12348
  * export all modules from current location
12310
12349
  */
12311
12350
 
12312
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12313
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12314
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
12315
- 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;
12316
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12317
- };
12351
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
12352
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12353
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
12354
+ 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;
12355
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
12356
+ };
12318
12357
  var ListBox_1;
12319
12358
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
12320
12359
  const ITEMTEMPLATE_PROPERTY$1 = 'ItemTemplate';