@syncfusion/ej2-dropdowns 18.1.57 → 18.2.44-4569

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 (183) hide show
  1. package/.eslintrc.json +244 -0
  2. package/CHANGELOG.md +1524 -1514
  3. package/README.md +118 -118
  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 +198 -126
  7. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  8. package/dist/es6/ej2-dropdowns.es5.js +290 -217
  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 +527 -0
  14. package/dist/ts/combo-box/combo-box.ts +957 -0
  15. package/dist/ts/common/highlight-search.ts +47 -0
  16. package/dist/ts/common/incremental-search.ts +81 -0
  17. package/dist/ts/drop-down-base/drop-down-base.ts +1572 -0
  18. package/dist/ts/drop-down-list/drop-down-list.ts +2993 -0
  19. package/dist/ts/drop-down-tree/drop-down-tree.ts +3066 -0
  20. package/dist/ts/list-box/list-box.ts +2317 -0
  21. package/dist/ts/multi-select/checkbox-selection.ts +528 -0
  22. package/dist/ts/multi-select/float-label.ts +155 -0
  23. package/dist/ts/multi-select/interface.ts +66 -0
  24. package/dist/ts/multi-select/multi-select.ts +4216 -0
  25. package/helpers/e2e/index.js +3 -3
  26. package/license +2 -2
  27. package/package.json +77 -77
  28. package/src/auto-complete/auto-complete-model.d.ts +179 -179
  29. package/src/auto-complete/auto-complete.d.ts +12 -12
  30. package/src/auto-complete/auto-complete.js +21 -21
  31. package/src/combo-box/combo-box-model.d.ts +212 -212
  32. package/src/combo-box/combo-box.d.ts +27 -27
  33. package/src/combo-box/combo-box.js +29 -29
  34. package/src/common/incremental-search.d.ts +1 -1
  35. package/src/common/incremental-search.js +4 -2
  36. package/src/drop-down-base/drop-down-base-model.d.ts +191 -191
  37. package/src/drop-down-base/drop-down-base.d.ts +17 -17
  38. package/src/drop-down-base/drop-down-base.js +20 -20
  39. package/src/drop-down-list/drop-down-list-model.d.ts +222 -222
  40. package/src/drop-down-list/drop-down-list.d.ts +3 -2
  41. package/src/drop-down-list/drop-down-list.js +43 -30
  42. package/src/drop-down-tree/drop-down-tree-model.d.ts +344 -344
  43. package/src/drop-down-tree/drop-down-tree.js +32 -26
  44. package/src/list-box/index.d.ts +1 -0
  45. package/src/list-box/index.js +1 -0
  46. package/src/list-box/list-box-model.d.ts +156 -156
  47. package/src/list-box/list-box.d.ts +2 -2
  48. package/src/list-box/list-box.js +57 -59
  49. package/src/multi-select/index.d.ts +1 -0
  50. package/src/multi-select/index.js +1 -0
  51. package/src/multi-select/multi-select-model.d.ts +452 -452
  52. package/src/multi-select/multi-select.d.ts +2 -0
  53. package/src/multi-select/multi-select.js +98 -43
  54. package/styles/_all.scss +3 -3
  55. package/styles/auto-complete/_bootstrap-dark-definition.scss +3 -3
  56. package/styles/auto-complete/_bootstrap4-definition.scss +11 -11
  57. package/styles/auto-complete/_fabric-dark-definition.scss +2 -2
  58. package/styles/auto-complete/_highcontrast-light-definition.scss +2 -2
  59. package/styles/auto-complete/_material-dark-definition.scss +2 -2
  60. package/styles/bootstrap-dark.css +67 -61
  61. package/styles/bootstrap.css +69 -63
  62. package/styles/bootstrap4.css +81 -61
  63. package/styles/combo-box/_bootstrap-dark-definition.scss +2 -2
  64. package/styles/combo-box/_bootstrap4-definition.scss +11 -11
  65. package/styles/combo-box/_fabric-dark-definition.scss +2 -2
  66. package/styles/combo-box/_highcontrast-light-definition.scss +3 -3
  67. package/styles/combo-box/_material-dark-definition.scss +2 -2
  68. package/styles/drop-down-base/_all.scss +2 -2
  69. package/styles/drop-down-base/_bootstrap-dark-definition.scss +64 -64
  70. package/styles/drop-down-base/_bootstrap-definition.scss +64 -64
  71. package/styles/drop-down-base/_bootstrap4-definition.scss +78 -78
  72. package/styles/drop-down-base/_definition.scss +23 -23
  73. package/styles/drop-down-base/_fabric-dark-definition.scss +68 -68
  74. package/styles/drop-down-base/_fabric-definition.scss +66 -66
  75. package/styles/drop-down-base/_highcontrast-definition.scss +82 -82
  76. package/styles/drop-down-base/_highcontrast-light-definition.scss +81 -81
  77. package/styles/drop-down-base/_layout.scss +108 -108
  78. package/styles/drop-down-base/_material-dark-definition.scss +67 -67
  79. package/styles/drop-down-base/_material-definition.scss +65 -65
  80. package/styles/drop-down-base/_theme.scss +242 -242
  81. package/styles/drop-down-list/_all.scss +2 -2
  82. package/styles/drop-down-list/_bootstrap-dark-definition.scss +157 -157
  83. package/styles/drop-down-list/_bootstrap-definition.scss +156 -156
  84. package/styles/drop-down-list/_bootstrap4-definition.scss +184 -184
  85. package/styles/drop-down-list/_fabric-dark-definition.scss +127 -127
  86. package/styles/drop-down-list/_fabric-definition.scss +122 -122
  87. package/styles/drop-down-list/_highcontrast-definition.scss +131 -131
  88. package/styles/drop-down-list/_highcontrast-light-definition.scss +133 -133
  89. package/styles/drop-down-list/_layout.scss +218 -218
  90. package/styles/drop-down-list/_material-dark-definition.scss +143 -143
  91. package/styles/drop-down-list/_material-definition.scss +166 -166
  92. package/styles/drop-down-list/_theme.scss +10 -10
  93. package/styles/drop-down-list/icons/_bootstrap-dark.scss +14 -14
  94. package/styles/drop-down-list/icons/_bootstrap.scss +14 -14
  95. package/styles/drop-down-list/icons/_bootstrap4.scss +14 -14
  96. package/styles/drop-down-list/icons/_fabric-dark.scss +14 -14
  97. package/styles/drop-down-list/icons/_fabric.scss +14 -14
  98. package/styles/drop-down-list/icons/_highcontrast-light.scss +14 -14
  99. package/styles/drop-down-list/icons/_highcontrast.scss +14 -14
  100. package/styles/drop-down-list/icons/_material-dark.scss +14 -14
  101. package/styles/drop-down-list/icons/_material.scss +14 -14
  102. package/styles/drop-down-list/material.css +9 -0
  103. package/styles/drop-down-tree/_all.scss +2 -2
  104. package/styles/drop-down-tree/_bootstrap-dark-definition.scss +62 -49
  105. package/styles/drop-down-tree/_bootstrap-definition.scss +62 -49
  106. package/styles/drop-down-tree/_bootstrap4-definition.scss +63 -50
  107. package/styles/drop-down-tree/_fabric-dark-definition.scss +63 -49
  108. package/styles/drop-down-tree/_fabric-definition.scss +63 -49
  109. package/styles/drop-down-tree/_highcontrast-definition.scss +63 -49
  110. package/styles/drop-down-tree/_highcontrast-light-definition.scss +63 -49
  111. package/styles/drop-down-tree/_layout.scss +437 -398
  112. package/styles/drop-down-tree/_material-dark-definition.scss +61 -54
  113. package/styles/drop-down-tree/_material-definition.scss +61 -54
  114. package/styles/drop-down-tree/_theme.scss +68 -63
  115. package/styles/drop-down-tree/bootstrap-dark.css +67 -61
  116. package/styles/drop-down-tree/bootstrap.css +69 -63
  117. package/styles/drop-down-tree/bootstrap4.css +81 -61
  118. package/styles/drop-down-tree/fabric-dark.css +71 -63
  119. package/styles/drop-down-tree/fabric.css +71 -63
  120. package/styles/drop-down-tree/highcontrast-light.css +71 -63
  121. package/styles/drop-down-tree/highcontrast.css +75 -63
  122. package/styles/drop-down-tree/icons/_bootstrap-dark.scss +11 -11
  123. package/styles/drop-down-tree/icons/_bootstrap.scss +11 -11
  124. package/styles/drop-down-tree/icons/_bootstrap4.scss +11 -11
  125. package/styles/drop-down-tree/icons/_fabric-dark.scss +11 -11
  126. package/styles/drop-down-tree/icons/_fabric.scss +11 -11
  127. package/styles/drop-down-tree/icons/_highcontrast-light.scss +11 -11
  128. package/styles/drop-down-tree/icons/_highcontrast.scss +11 -11
  129. package/styles/drop-down-tree/icons/_material-dark.scss +11 -11
  130. package/styles/drop-down-tree/icons/_material.scss +11 -11
  131. package/styles/drop-down-tree/material-dark.css +76 -85
  132. package/styles/drop-down-tree/material.css +93 -85
  133. package/styles/fabric-dark.css +71 -63
  134. package/styles/fabric.css +71 -63
  135. package/styles/highcontrast-light.css +71 -63
  136. package/styles/highcontrast.css +75 -63
  137. package/styles/list-box/_all.scss +2 -2
  138. package/styles/list-box/_bootstrap-dark-definition.scss +118 -118
  139. package/styles/list-box/_bootstrap-definition.scss +112 -112
  140. package/styles/list-box/_bootstrap4-definition.scss +118 -118
  141. package/styles/list-box/_fabric-dark-definition.scss +118 -118
  142. package/styles/list-box/_fabric-definition.scss +112 -112
  143. package/styles/list-box/_highcontrast-definition.scss +112 -112
  144. package/styles/list-box/_highcontrast-light-definition.scss +118 -118
  145. package/styles/list-box/_layout.scss +458 -458
  146. package/styles/list-box/_material-dark-definition.scss +118 -118
  147. package/styles/list-box/_material-definition.scss +112 -112
  148. package/styles/list-box/_theme.scss +273 -273
  149. package/styles/list-box/icons/_bootstrap-dark.scss +25 -25
  150. package/styles/list-box/icons/_bootstrap.scss +25 -25
  151. package/styles/list-box/icons/_bootstrap4.scss +25 -25
  152. package/styles/list-box/icons/_fabric-dark.scss +25 -25
  153. package/styles/list-box/icons/_fabric.scss +25 -25
  154. package/styles/list-box/icons/_highcontrast-light.scss +25 -25
  155. package/styles/list-box/icons/_highcontrast.scss +25 -25
  156. package/styles/list-box/icons/_material-dark.scss +25 -25
  157. package/styles/list-box/icons/_material.scss +25 -25
  158. package/styles/list-box/material-dark.css +4 -4
  159. package/styles/list-box/material.css +4 -4
  160. package/styles/material-dark.css +80 -89
  161. package/styles/material.css +115 -89
  162. package/styles/multi-select/_all.scss +2 -2
  163. package/styles/multi-select/_bootstrap-dark-definition.scss +171 -171
  164. package/styles/multi-select/_bootstrap-definition.scss +166 -166
  165. package/styles/multi-select/_bootstrap4-definition.scss +233 -233
  166. package/styles/multi-select/_fabric-dark-definition.scss +170 -170
  167. package/styles/multi-select/_fabric-definition.scss +167 -167
  168. package/styles/multi-select/_highcontrast-definition.scss +257 -257
  169. package/styles/multi-select/_highcontrast-light-definition.scss +258 -258
  170. package/styles/multi-select/_layout.scss +1153 -1153
  171. package/styles/multi-select/_material-dark-definition.scss +186 -186
  172. package/styles/multi-select/_material-definition.scss +191 -191
  173. package/styles/multi-select/_theme.scss +384 -384
  174. package/styles/multi-select/icons/_bootstrap-dark.scss +26 -26
  175. package/styles/multi-select/icons/_bootstrap.scss +26 -26
  176. package/styles/multi-select/icons/_bootstrap4.scss +37 -37
  177. package/styles/multi-select/icons/_fabric-dark.scss +26 -26
  178. package/styles/multi-select/icons/_fabric.scss +26 -26
  179. package/styles/multi-select/icons/_highcontrast-light.scss +26 -26
  180. package/styles/multi-select/icons/_highcontrast.scss +26 -26
  181. package/styles/multi-select/icons/_material-dark.scss +26 -26
  182. package/styles/multi-select/icons/_material.scss +324 -324
  183. package/styles/multi-select/material.css +9 -0
@@ -729,6 +729,8 @@ export declare class MultiSelect extends DropDownBase implements IInput {
729
729
  */
730
730
  onPropertyChanged(newProp: MultiSelectModel, oldProp: MultiSelectModel): void;
731
731
  private reInitializePoup;
732
+ private presentItemValue;
733
+ private addNonPresentItems;
732
734
  private updateVal;
733
735
  /**
734
736
  * Adds a new item to the multiselect popup list. By default, new item appends to the list as the last item,
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- }
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  /// <reference path='../drop-down-base/drop-down-base-model.d.ts'/>
21
21
  import { DropDownBase, dropDownBaseClasses } from '../drop-down-base/drop-down-base';
22
22
  import { FieldSettings } from '../drop-down-base/drop-down-base';
@@ -415,6 +415,9 @@ var MultiSelect = /** @class */ (function (_super) {
415
415
  else {
416
416
  this.updateActionList(ulElement, list, e);
417
417
  }
418
+ if (isBlazor() && this.isServerRendered && this.allowFiltering && this.mode === 'CheckBox') {
419
+ this.removeFocus();
420
+ }
418
421
  if (isBlazor() && this.isServerRendered && this.isDynamicDataChange && this.value && this.value.length > 0) {
419
422
  this.updateVal(this.value, null, 'value');
420
423
  this.addValidInputClass();
@@ -430,7 +433,7 @@ var MultiSelect = /** @class */ (function (_super) {
430
433
  this.mainData = list;
431
434
  this.mainListCollection = this.liCollections;
432
435
  }
433
- else if (!isNullOrUndefined(this.mainData) && this.mainData.length === 0) {
436
+ else if (isNullOrUndefined(this.mainData) || this.mainData.length === 0) {
434
437
  this.mainData = list;
435
438
  }
436
439
  if ((this.remoteCustomValue || list.length <= 0) && this.allowCustomValue && this.inputFocus && this.allowFiltering) {
@@ -774,8 +777,16 @@ var MultiSelect = /** @class */ (function (_super) {
774
777
  if (this.mode !== 'CheckBox') {
775
778
  this.inputElement.focus();
776
779
  }
780
+ else if ((this.floatLabelType === 'Auto' &&
781
+ ((this.overAllWrapper.classList.contains('e-outline')) || (this.overAllWrapper.classList.contains('e-filled'))))) {
782
+ addClass([this.overAllWrapper], 'e-valid-input');
783
+ }
777
784
  return;
778
785
  }
786
+ if (this.floatLabelType === 'Auto' && (this.overAllWrapper.classList.contains('e-outline')) && this.mode === 'CheckBox' &&
787
+ ((isNullOrUndefined(this.value)) || this.value.length === 0)) {
788
+ removeClass([this.overAllWrapper], 'e-valid-input');
789
+ }
779
790
  if (this.mode === 'CheckBox' && Browser.isIE && !isNullOrUndefined(eve) && !isDocClickFromCheck) {
780
791
  this.inputFocus = false;
781
792
  this.overAllWrapper.classList.remove(FOCUS);
@@ -826,6 +837,11 @@ var MultiSelect = /** @class */ (function (_super) {
826
837
  parseInt(window.getComputedStyle(this.dropIcon).marginRight, 10);
827
838
  this.setPlaceholderSize(downIconWidth);
828
839
  }
840
+ else {
841
+ if (!isNullOrUndefined(this.dropIcon)) {
842
+ this.setPlaceholderSize(this.showDropDownIcon ? this.dropIcon.offsetWidth : 0);
843
+ }
844
+ }
829
845
  };
830
846
  MultiSelect.prototype.setPlaceholderSize = function (downIconWidth) {
831
847
  if (isNullOrUndefined(this.value) || this.value.length === 0) {
@@ -1944,16 +1960,16 @@ var MultiSelect = /** @class */ (function (_super) {
1944
1960
  if (_this.itemTemplate && (isBlazor() && _this.isServerRendered)) {
1945
1961
  setTimeout(function () { _this.mainList = _this.ulElement; }, 0);
1946
1962
  }
1947
- else {
1948
- if (!(_this.mode !== 'CheckBox' && _this.allowFiltering && _this.targetElement().trim() !== '')) {
1949
- _this.mainList = ulElement.cloneNode ? ulElement.cloneNode(true) : ulElement;
1950
- }
1963
+ else if (!(_this.mode !== 'CheckBox' && (_this.allowFiltering || _this.allowCustomValue) &&
1964
+ _this.targetElement().trim() !== '')) {
1965
+ _this.mainList = ulElement.cloneNode ? ulElement.cloneNode(true) : ulElement;
1951
1966
  }
1952
1967
  }
1953
1968
  _this.isFirstClick = true;
1954
1969
  }
1955
1970
  _this.popupObj.wireScrollEvents();
1956
- if (!(_this.mode !== 'CheckBox' && _this.allowFiltering && _this.targetElement().trim() !== '')) {
1971
+ if (!(_this.mode !== 'CheckBox' && (_this.allowFiltering || _this.allowCustomValue) &&
1972
+ _this.targetElement().trim() !== '')) {
1957
1973
  _this.loadTemplate();
1958
1974
  }
1959
1975
  _this.setScrollPosition();
@@ -2349,7 +2365,9 @@ var MultiSelect = /** @class */ (function (_super) {
2349
2365
  MultiSelect.prototype.updateActionCompleteData = function (li, item) {
2350
2366
  if (this.value && this.value.indexOf(li.getAttribute('data-value')) > -1) {
2351
2367
  this.mainList = this.ulElement;
2352
- addClass([li], HIDE_LIST);
2368
+ if (this.hideSelectedItem) {
2369
+ addClass([li], HIDE_LIST);
2370
+ }
2353
2371
  }
2354
2372
  };
2355
2373
  MultiSelect.prototype.updateAddItemList = function (list, itemCount) {
@@ -2867,7 +2885,9 @@ var MultiSelect = /** @class */ (function (_super) {
2867
2885
  var textArr = this.viewWrapper.innerHTML.split(this.delimiterChar);
2868
2886
  textArr.pop();
2869
2887
  this.viewWrapper.innerHTML = textArr.join(this.delimiterChar);
2870
- remaining++;
2888
+ if (this.viewWrapper.innerHTML === '') {
2889
+ remaining++;
2890
+ }
2871
2891
  wrapperleng = this.viewWrapper.offsetWidth;
2872
2892
  }
2873
2893
  break;
@@ -2983,7 +3003,7 @@ var MultiSelect = /** @class */ (function (_super) {
2983
3003
  'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide)' :
2984
3004
  'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
2985
3005
  if (this.value && this.value.length && this.isPopupOpen() && event && event.target
2986
- && closest(event.target, '.e-close-hooker')) {
3006
+ && closest(event.target, '.e-close-hooker') && this.allowFiltering) {
2987
3007
  li = this.mainList.querySelectorAll(state ?
2988
3008
  'li.e-list-item:not([aria-selected="true"]):not(.e-reorder-hide)' :
2989
3009
  'li.e-list-item[aria-selected="true"]:not(.e-reorder-hide)');
@@ -3276,28 +3296,63 @@ var MultiSelect = /** @class */ (function (_super) {
3276
3296
  }
3277
3297
  this.renderPopup();
3278
3298
  };
3299
+ MultiSelect.prototype.presentItemValue = function (ulElement) {
3300
+ var valuecheck = [];
3301
+ for (var i = 0; i < this.value.length; i++) {
3302
+ var checkEle = this.findListElement(((this.allowFiltering && !isNullOrUndefined(this.mainList)) ? this.mainList : ulElement), 'li', 'data-value', this.value[i]);
3303
+ if (!checkEle) {
3304
+ valuecheck.push(this.value[i]);
3305
+ }
3306
+ }
3307
+ return valuecheck;
3308
+ };
3309
+ ;
3310
+ MultiSelect.prototype.addNonPresentItems = function (valuecheck, ulElement, list, event) {
3311
+ var _this = this;
3312
+ this.showSpinner();
3313
+ this.dataSource.executeQuery(this.getForQuery(valuecheck)).then(function (e) {
3314
+ _this.hideSpinner();
3315
+ _this.addItem(e.result, list.length);
3316
+ _this.updateActionList(ulElement, list, event);
3317
+ });
3318
+ };
3319
+ ;
3279
3320
  MultiSelect.prototype.updateVal = function (newProp, oldProp, prop) {
3280
3321
  if (!this.list) {
3281
3322
  this.onLoadSelect();
3282
3323
  }
3283
- else if (!this.inputFocus) {
3284
- if (prop === 'text') {
3285
- this.initialTextUpdate();
3286
- newProp = this.value;
3287
- }
3288
- if (isNullOrUndefined(this.value) || this.value.length === 0) {
3289
- this.tempValues = oldProp;
3324
+ else {
3325
+ var valuecheck = [];
3326
+ if (!isNullOrUndefined(this.value) && !this.allowCustomValue) {
3327
+ valuecheck = this.presentItemValue(this.ulElement);
3290
3328
  }
3291
- this.initialValueUpdate();
3292
- if (this.mode !== 'Box') {
3293
- this.updateDelimView();
3329
+ if (prop == 'value' && valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
3330
+ && this.listData != null) {
3331
+ this.mainData = null;
3332
+ this.setDynValue = true;
3333
+ this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
3294
3334
  }
3295
- this.refreshInputHight();
3296
- this.refreshPlaceHolder();
3297
- if (this.mode !== 'CheckBox' && this.changeOnBlur) {
3298
- this.updateValueState(null, newProp, oldProp);
3335
+ else {
3336
+ if (prop === 'text') {
3337
+ this.initialTextUpdate();
3338
+ newProp = this.value;
3339
+ }
3340
+ if (isNullOrUndefined(this.value) || this.value.length === 0) {
3341
+ this.tempValues = oldProp;
3342
+ }
3343
+ this.initialValueUpdate();
3344
+ if (this.mode !== 'Box' && !this.inputFocus) {
3345
+ this.updateDelimView();
3346
+ }
3347
+ if (!this.inputFocus) {
3348
+ this.refreshInputHight();
3349
+ }
3350
+ this.refreshPlaceHolder();
3351
+ if (this.mode !== 'CheckBox' && this.changeOnBlur) {
3352
+ this.updateValueState(null, newProp, oldProp);
3353
+ }
3354
+ this.checkPlaceholderSize();
3299
3355
  }
3300
- this.checkPlaceholderSize();
3301
3356
  }
3302
3357
  if (!this.changeOnBlur) {
3303
3358
  this.updateValueState(null, newProp, oldProp);
package/styles/_all.scss CHANGED
@@ -1,3 +1,3 @@
1
- @import 'drop-down-base/all.scss';
2
- @import 'drop-down-list/all.scss';
3
- @import 'drop-down-tree/all.scss';
1
+ @import 'drop-down-base/all.scss';
2
+ @import 'drop-down-list/all.scss';
3
+ @import 'drop-down-tree/all.scss';
@@ -1,3 +1,3 @@
1
- //default
2
- //undefined
3
- //enddefault
1
+ //default
2
+ //undefined
3
+ //enddefault
@@ -1,11 +1,11 @@
1
- //default
2
-
3
- .e-input-group.e-ddl .e-control.e-autocomplete~.e-ddl-icon {
4
- font-size: 8px;
5
- }
6
-
7
- .e-bigger .e-input-group.e-ddl .e-control.e-autocomplete~.e-ddl-icon {
8
- font-size: 10px;
9
- }
10
-
11
- //enddefault
1
+ //default
2
+
3
+ .e-input-group.e-ddl .e-control.e-autocomplete~.e-ddl-icon {
4
+ font-size: 8px;
5
+ }
6
+
7
+ .e-bigger .e-input-group.e-ddl .e-control.e-autocomplete~.e-ddl-icon {
8
+ font-size: 10px;
9
+ }
10
+
11
+ //enddefault
@@ -1,2 +1,2 @@
1
- //default
2
- //enddefault
1
+ //default
2
+ //enddefault
@@ -1,2 +1,2 @@
1
- //default
2
- //enddefault
1
+ //default
2
+ //enddefault
@@ -1,2 +1,2 @@
1
- //default
2
- //enddefault
1
+ //default
2
+ //enddefault
@@ -730,13 +730,13 @@ ejs-dropdownlist {
730
730
  outline: none;
731
731
  }
732
732
 
733
- .e-ddt.e-icon-anim .e-ddt-icon::before {
734
- transform: rotate(180deg);
733
+ .e-ddt .e-ddt-icon::before {
734
+ transform: rotate(0deg);
735
735
  transition: transform 300ms ease;
736
736
  }
737
737
 
738
- .e-ddt .e-ddt-icon::before {
739
- transform: rotate(0deg);
738
+ .e-ddt.e-icon-anim .e-ddt-icon::before {
739
+ transform: rotate(180deg);
740
740
  transition: transform 300ms ease;
741
741
  }
742
742
 
@@ -759,10 +759,6 @@ ejs-dropdownlist {
759
759
  display: none;
760
760
  }
761
761
 
762
- .e-ddt.e-input-group.e-control-wrapper.e-input-focus input ~ label.e-float-text, .e-ddt.e-float-input.e-control-wrapper.e-input-focus input ~ label.e-float-text {
763
- top: 16px;
764
- }
765
-
766
762
  .e-ddt.e-input-group.e-control-wrapper.e-show-chip .e-clear-icon, .e-ddt.e-float-input.e-control-wrapper.e-show-chip .e-clear-icon {
767
763
  bottom: 0;
768
764
  position: absolute;
@@ -799,19 +795,22 @@ ejs-dropdownlist {
799
795
 
800
796
  .e-ddt .e-chips-wrapper .e-chips-close::before {
801
797
  font-size: 10px;
798
+ vertical-align: middle;
802
799
  }
803
800
 
804
801
  .e-ddt .e-chips-wrapper .e-chips {
805
802
  -ms-flex-align: center;
806
803
  align-items: center;
804
+ border-radius: 4px;
805
+ box-sizing: border-box;
807
806
  display: -ms-inline-flexbox;
808
807
  display: inline-flex;
809
808
  float: left;
810
809
  height: 28px;
811
810
  margin: 2px 1px;
812
- max-width: 100%;
811
+ max-width: calc(100% - 2px);
813
812
  overflow: hidden;
814
- padding: 0 0 0 10px;
813
+ padding: 0;
815
814
  text-overflow: ellipsis;
816
815
  white-space: nowrap;
817
816
  }
@@ -819,22 +818,25 @@ ejs-dropdownlist {
819
818
  .e-ddt .e-chips-wrapper .e-chips > .e-chipcontent {
820
819
  max-width: 100%;
821
820
  overflow: hidden;
822
- padding: 0 10px 0 0;
821
+ padding: 0 10px 0 10px;
823
822
  text-indent: 0;
824
823
  text-overflow: ellipsis;
825
824
  white-space: nowrap;
826
825
  }
827
826
 
828
- .e-ddt.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child {
829
- margin-right: 64px;
827
+ .e-ddt.e-show-dd-icon .e-chips-wrapper .e-chips:last-child {
828
+ margin-right: 32px;
829
+ max-width: calc(100% - 33px);
830
830
  }
831
831
 
832
- .e-ddt.e-show-clear .e-chips-wrapper .e-chips-collection .e-chips:last-child {
832
+ .e-ddt.e-show-clear .e-chips-wrapper .e-chips:last-child {
833
833
  margin-right: 32px;
834
+ max-width: calc(100% - 33px);
834
835
  }
835
836
 
836
- .e-ddt.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child {
837
- margin-right: 32px;
837
+ .e-ddt.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips:last-child {
838
+ margin-right: 64px;
839
+ max-width: calc(100% - 65px);
838
840
  }
839
841
 
840
842
  .e-ddt input[readonly],
@@ -850,9 +852,8 @@ ejs-dropdownlist {
850
852
  }
851
853
 
852
854
  .e-ddt.e-popup {
853
- border: 1px solid;
855
+ border: 1px solid #414141;
854
856
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 0px rgba(0, 0, 0, 0.14), 0 3px 14px 0px rgba(0, 0, 0, 0.12);
855
- margin-top: 2px;
856
857
  position: absolute;
857
858
  }
858
859
 
@@ -863,7 +864,7 @@ ejs-dropdownlist {
863
864
  line-height: 36px;
864
865
  overflow: hidden;
865
866
  position: relative;
866
- text-indent: 39px;
867
+ text-indent: 38px;
867
868
  white-space: nowrap;
868
869
  width: 100%;
869
870
  }
@@ -873,7 +874,6 @@ ejs-dropdownlist {
873
874
  }
874
875
 
875
876
  .e-ddt.e-popup .e-selectall-parent .e-checkbox-wrapper {
876
- margin-right: 10px;
877
877
  position: relative;
878
878
  text-indent: 0;
879
879
  }
@@ -881,10 +881,27 @@ ejs-dropdownlist {
881
881
  .e-ddt.e-popup .e-selectall-parent .e-all-text {
882
882
  font-family: inherit;
883
883
  font-size: 14px;
884
+ margin: 10px;
885
+ }
886
+
887
+ .e-ddt.e-popup .e-filter-wrap .e-input,
888
+ .e-ddt.e-popup .e-filter-wrap .e-input:focus {
889
+ padding: 0 12px;
890
+ }
891
+
892
+ .e-ddt.e-popup .e-filter-wrap {
893
+ border: #414141;
894
+ border-top-width: 0;
895
+ display: block;
896
+ padding: 5px 8px;
897
+ }
898
+
899
+ .e-ddt.e-popup .e-filter-wrap {
900
+ border-bottom: 1px solid #484848;
884
901
  }
885
902
 
886
903
  .e-ddt.e-popup .e-filter-wrap .e-input-group {
887
- padding: 0 10px;
904
+ margin-bottom: 0;
888
905
  }
889
906
 
890
907
  .e-ddt.e-popup .e-popup-content {
@@ -947,29 +964,26 @@ ejs-dropdownlist {
947
964
 
948
965
  .e-ddt.e-rtl .e-chips-wrapper .e-chips {
949
966
  float: right;
950
- padding: 0 10px 0 0;
951
967
  }
952
968
 
953
- .e-ddt.e-rtl .e-chips-wrapper .e-chips > .e-chipcontent {
954
- padding: 0 0 0 10px;
955
- }
956
-
957
- .e-ddt.e-rtl.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child {
958
- margin-left: 64px;
969
+ .e-ddt.e-rtl.e-show-dd-icon .e-chips-wrapper .e-chips:last-child {
970
+ margin-left: 32px;
959
971
  margin-right: 1px;
960
972
  }
961
973
 
962
- .e-ddt.e-rtl.e-show-clear .e-chips-wrapper .e-chips-collection .e-chips:last-child {
974
+ .e-ddt.e-rtl.e-show-clear .e-chips-wrapper .e-chips:last-child {
963
975
  margin-left: 32px;
964
976
  margin-right: 1px;
965
977
  }
966
978
 
967
- .e-ddt.e-rtl.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child {
968
- margin-left: 32px;
979
+ .e-ddt.e-rtl.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips:last-child {
980
+ margin-left: 64px;
969
981
  margin-right: 1px;
970
982
  }
971
983
 
972
- .e-ddt.e-rtl.e-input-group.e-control-wrapper.e-show-chip .e-clear-icon, .e-ddt.e-rtl.e-float-input.e-control-wrapper.e-show-chip .e-clear-icon {
984
+ .e-ddt.e-rtl.e-input-group.e-control-wrapper.e-show-chip .e-clear-icon,
985
+ .e-ddt.e-rtl.e-input-group.e-control-wrapper.e-show-chip .e-ddt-icon, .e-ddt.e-rtl.e-float-input.e-control-wrapper.e-show-chip .e-clear-icon,
986
+ .e-ddt.e-rtl.e-float-input.e-control-wrapper.e-show-chip .e-ddt-icon {
973
987
  left: 0;
974
988
  right: auto;
975
989
  }
@@ -978,16 +992,6 @@ ejs-dropdownlist {
978
992
  left: 32px;
979
993
  }
980
994
 
981
- .e-ddt.e-rtl.e-input-group.e-control-wrapper.e-show-chip .e-ddt-icon, .e-ddt.e-rtl.e-float-input.e-control-wrapper.e-show-chip .e-ddt-icon {
982
- left: 0;
983
- right: auto;
984
- }
985
-
986
- .e-ddt.e-rtl.e-popup .e-selectall-parent .e-checkbox-wrapper {
987
- margin-left: 10px;
988
- margin-right: 0;
989
- }
990
-
991
995
  .e-ddt.e-rtl.e-popup .e-treeview .e-list-item .e-ul {
992
996
  padding: 0 14px 0 0;
993
997
  }
@@ -1015,24 +1019,27 @@ ejs-dropdownlist {
1015
1019
  min-height: 38px;
1016
1020
  }
1017
1021
 
1018
- .e-bigger .e-ddt.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child,
1019
- .e-ddt.e-bigger.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child {
1020
- margin-right: 76px;
1022
+ .e-bigger .e-ddt.e-show-dd-icon .e-chips-wrapper .e-chips:last-child,
1023
+ .e-ddt.e-bigger.e-show-dd-icon .e-chips-wrapper .e-chips:last-child {
1024
+ margin-right: 38px;
1025
+ max-width: calc(100% - 39px);
1021
1026
  }
1022
1027
 
1023
- .e-bigger .e-ddt.e-show-clear .e-chips-wrapper .e-chips-collection .e-chips:last-child,
1024
- .e-ddt.e-bigger.e-show-clear .e-chips-wrapper .e-chips-collection .e-chips:last-child {
1028
+ .e-bigger .e-ddt.e-show-clear .e-chips-wrapper .e-chips:last-child,
1029
+ .e-ddt.e-bigger.e-show-clear .e-chips-wrapper .e-chips:last-child {
1025
1030
  margin-right: 38px;
1031
+ max-width: calc(100% - 39px);
1026
1032
  }
1027
1033
 
1028
- .e-bigger .e-ddt.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child,
1029
- .e-ddt.e-bigger.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child {
1030
- margin-right: 38px;
1034
+ .e-bigger .e-ddt.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips:last-child,
1035
+ .e-ddt.e-bigger.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips:last-child {
1036
+ margin-right: 76px;
1037
+ max-width: calc(100% - 77px);
1031
1038
  }
1032
1039
 
1033
1040
  .e-bigger .e-ddt.e-popup .e-selectall-parent,
1034
1041
  .e-ddt.e-bigger.e-popup .e-selectall-parent {
1035
- text-indent: 44px;
1042
+ text-indent: 43px;
1036
1043
  }
1037
1044
 
1038
1045
  .e-bigger .e-ddt.e-popup .e-treeview .e-fullrow,
@@ -1040,21 +1047,21 @@ ejs-dropdownlist {
1040
1047
  height: 44px;
1041
1048
  }
1042
1049
 
1043
- .e-bigger .e-ddt.e-rtl.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child,
1044
- .e-ddt.e-bigger.e-rtl.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child {
1045
- margin-left: 76px;
1050
+ .e-bigger .e-ddt.e-rtl.e-show-dd-icon .e-chips-wrapper .e-chips:last-child,
1051
+ .e-ddt.e-bigger.e-rtl.e-show-dd-icon .e-chips-wrapper .e-chips:last-child {
1052
+ margin-left: 38px;
1046
1053
  margin-right: 1px;
1047
1054
  }
1048
1055
 
1049
- .e-bigger .e-ddt.e-rtl.e-show-clear .e-chips-wrapper .e-chips-collection .e-chips:last-child,
1050
- .e-ddt.e-bigger.e-rtl.e-show-clear .e-chips-wrapper .e-chips-collection .e-chips:last-child {
1056
+ .e-bigger .e-ddt.e-rtl.e-show-clear .e-chips-wrapper .e-chips:last-child,
1057
+ .e-ddt.e-bigger.e-rtl.e-show-clear .e-chips-wrapper .e-chips:last-child {
1051
1058
  margin-left: 38px;
1052
1059
  margin-right: 1px;
1053
1060
  }
1054
1061
 
1055
- .e-bigger .e-ddt.e-rtl.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child,
1056
- .e-ddt.e-bigger.e-rtl.e-show-dd-icon .e-chips-wrapper .e-chips-collection .e-chips:last-child {
1057
- margin-left: 38px;
1062
+ .e-bigger .e-ddt.e-rtl.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips:last-child,
1063
+ .e-ddt.e-bigger.e-rtl.e-show-clear.e-show-dd-icon .e-chips-wrapper .e-chips:last-child {
1064
+ margin-left: 76px;
1058
1065
  margin-right: 1px;
1059
1066
  }
1060
1067
 
@@ -1066,7 +1073,6 @@ ejs-dropdownlist {
1066
1073
 
1067
1074
  .e-ddt .e-chips {
1068
1075
  background-color: #414141;
1069
- border-radius: 4px;
1070
1076
  }
1071
1077
 
1072
1078
  .e-ddt .e-chips .e-chips-close::before {
@@ -1099,7 +1105,7 @@ ejs-dropdownlist {
1099
1105
  }
1100
1106
 
1101
1107
  .e-ddt.e-popup .e-selectall-parent {
1102
- border-bottom: 1px solid #2a2a2a;
1108
+ border-bottom-color: #484848;
1103
1109
  }
1104
1110
 
1105
1111
  .e-ddt.e-popup .e-selectall-parent .e-all-text {