@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
@@ -40,7 +40,7 @@ export declare class ComboBox extends DropDownList {
40
40
  * {% codeBlock src='combobox/htmlAttributes/index.md' %}{% endcodeBlock %}
41
41
  *
42
42
  * @default {}
43
-
43
+ * @deprecated
44
44
  */
45
45
  htmlAttributes: {
46
46
  [key: string]: string;
@@ -55,7 +55,7 @@ export declare class ComboBox extends DropDownList {
55
55
  *
56
56
  * {% codeBlock src="combobox/allow-filtering-api/index.html" %}{% endcodeBlock %}
57
57
  * @default false
58
-
58
+ * @deprecated
59
59
  */
60
60
  allowFiltering: boolean;
61
61
  /**
@@ -64,7 +64,7 @@ export declare class ComboBox extends DropDownList {
64
64
  *
65
65
  * {% codeBlock src='combobox/query/index.md' %}{% endcodeBlock %}
66
66
  * @default null
67
-
67
+ * @deprecated
68
68
  */
69
69
  query: Query;
70
70
  /**
@@ -78,7 +78,7 @@ export declare class ComboBox extends DropDownList {
78
78
  * @blazorType int
79
79
  * @isBlazorNullableType true
80
80
  * @blazorDefaultValue
81
-
81
+ * @deprecated
82
82
  */
83
83
  index: number;
84
84
  /**
@@ -91,7 +91,7 @@ export declare class ComboBox extends DropDownList {
91
91
  /**
92
92
  * Enable or disable rendering component in right to left direction.
93
93
  * @default false
94
-
94
+ * @deprecated
95
95
  * @blazorOverrideType override
96
96
  */
97
97
  enableRtl: boolean;
@@ -130,40 +130,40 @@ export declare class ComboBox extends DropDownList {
130
130
  * @aspType Syncfusion.EJ2.Inputs.FloatLabelType
131
131
  * @isEnumeration true
132
132
  * @blazorType Syncfusion.Blazor.Inputs.FloatLabelType
133
-
133
+ * @deprecated
134
134
  */
135
135
  floatLabelType: FloatLabelType;
136
136
  /**
137
137
  * Not applicable to this component.
138
138
  * @default null
139
139
  * @private
140
-
140
+ * @deprecated
141
141
  */
142
142
  filterBarPlaceholder: string;
143
143
  /**
144
144
  * Sets CSS classes to the root element of the component that allows customization of appearance.
145
145
  * @default null
146
-
146
+ * @deprecated
147
147
  */
148
148
  cssClass: string;
149
149
  /**
150
150
  * Accepts the template design and assigns it to the header container of the popup list.
151
151
  * > For more details about the available template options refer to [`Template`](../../drop-down-list/templates) documentation.
152
152
  * @default null
153
-
153
+ * @deprecated
154
154
  */
155
155
  headerTemplate: string;
156
156
  /**
157
157
  * Accepts the template design and assigns it to the footer container of the popup list.
158
158
  * > For more details about the available template options refer to [`Template`](../../drop-down-list/templates) documentation.
159
159
  * @default null
160
-
160
+ * @deprecated
161
161
  */
162
162
  footerTemplate: string;
163
163
  /**
164
164
  * Specifies a short hint that describes the expected value of the DropDownList component.
165
165
  * @default null
166
-
166
+ * @deprecated
167
167
  */
168
168
  placeholder: string;
169
169
  /**
@@ -172,7 +172,7 @@ export declare class ComboBox extends DropDownList {
172
172
  * @default '100%'
173
173
  * @aspType string
174
174
  * @blazorType string
175
-
175
+ * @deprecated
176
176
  */
177
177
  width: string | number;
178
178
  /**
@@ -182,7 +182,7 @@ export declare class ComboBox extends DropDownList {
182
182
  * @default '300px'
183
183
  * @aspType string
184
184
  * @blazorType string
185
-
185
+ * @deprecated
186
186
  */
187
187
  popupHeight: string | number;
188
188
  /**
@@ -193,26 +193,26 @@ export declare class ComboBox extends DropDownList {
193
193
  * @default '100%'
194
194
  * @aspType string
195
195
  * @blazorType string
196
-
196
+ * @deprecated
197
197
  */
198
198
  popupWidth: string | number;
199
199
  /**
200
200
  * When set to true, the user interactions on the component are disabled.
201
201
  * @default false
202
-
202
+ * @deprecated
203
203
  */
204
204
  readonly: boolean;
205
205
  /**
206
206
  * Gets or sets the display text of the selected item in the component.
207
207
  * @default null
208
-
208
+ * @deprecated
209
209
  */
210
210
  text: string;
211
211
  /**
212
212
  * Gets or sets the value of the selected item in the component.
213
213
  * @default null
214
214
  * @isGenericType true
215
-
215
+ * @deprecated
216
216
  */
217
217
  value: number | string | boolean;
218
218
  /**
@@ -249,13 +249,13 @@ export declare class ComboBox extends DropDownList {
249
249
  /**
250
250
  * Shows the spinner loader.
251
251
  * @returns void.
252
-
252
+ * @deprecated
253
253
  */
254
254
  showSpinner(): void;
255
255
  /**
256
256
  * Hides the spinner loader.
257
257
  * @returns void.
258
-
258
+ * @deprecated
259
259
  */
260
260
  hideSpinner(): void;
261
261
  protected setAutoFill(activeElement: Element, isHover?: boolean): void;
@@ -295,7 +295,7 @@ export declare class ComboBox extends DropDownList {
295
295
  * @param { Object[] } items - Specifies an array of JSON data or a JSON data.
296
296
  * @param { number } itemIndex - Specifies the index to place the newly added item in the popup list.
297
297
  * @return {void}.
298
-
298
+ * @deprecated
299
299
  */
300
300
  addItem(items: {
301
301
  [key: string]: Object;
@@ -308,7 +308,7 @@ export declare class ComboBox extends DropDownList {
308
308
  * @param {Query} query - Specify the query to filter the data.
309
309
  * @param {FieldSettingsModel} fields - Specify the fields to map the column in the data table.
310
310
  * @return {void}.
311
-
311
+ * @deprecated
312
312
  */
313
313
  filter(dataSource: {
314
314
  [key: string]: Object;
@@ -316,13 +316,13 @@ export declare class ComboBox extends DropDownList {
316
316
  /**
317
317
  * Opens the popup that displays the list of items.
318
318
  * @returns void.
319
-
319
+ * @deprecated
320
320
  */
321
321
  showPopup(): void;
322
322
  /**
323
323
  * Hides the popup if it is in open state.
324
324
  * @returns void.
325
-
325
+ * @deprecated
326
326
  */
327
327
  hidePopup(e?: MouseEvent | KeyboardEventArgs): void;
328
328
  /**
@@ -333,19 +333,19 @@ export declare class ComboBox extends DropDownList {
333
333
  /**
334
334
  * Allows you to clear the selected values from the component.
335
335
  * @returns void.
336
-
336
+ * @deprecated
337
337
  */
338
338
  clear(): void;
339
339
  /**
340
340
  * Moves the focus from the component if the component is already focused.
341
341
  * @returns void.
342
-
342
+ * @deprecated
343
343
  */
344
344
  focusOut(e?: MouseEvent | KeyboardEventArgs): void;
345
345
  /**
346
346
  * Gets all the list items bound on this component.
347
347
  * @returns Element[].
348
-
348
+ * @deprecated
349
349
  */
350
350
  getItems(): Element[];
351
351
  /**
@@ -353,7 +353,7 @@ export declare class ComboBox extends DropDownList {
353
353
  * @param { string | number } value - Specifies the value of the list item.
354
354
  * @returns Object.
355
355
  * @blazorType object
356
-
356
+ * @deprecated
357
357
  */
358
358
  getDataByValue(value: string | number | boolean): {
359
359
  [key: string]: Object;
@@ -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-list/drop-down-list-model.d.ts'/>
21
21
  import { EventHandler, Property, Event, addClass, Browser, removeClass, detach } from '@syncfusion/ej2-base';
22
22
  import { isNullOrUndefined, NotifyPropertyChanges, getValue, setValue } from '@syncfusion/ej2-base';
@@ -276,7 +276,7 @@ var ComboBox = /** @class */ (function (_super) {
276
276
  /**
277
277
  * Shows the spinner loader.
278
278
  * @returns void.
279
-
279
+ * @deprecated
280
280
  */
281
281
  ComboBox.prototype.showSpinner = function () {
282
282
  if (isNullOrUndefined(this.spinnerElement)) {
@@ -295,7 +295,7 @@ var ComboBox = /** @class */ (function (_super) {
295
295
  /**
296
296
  * Hides the spinner loader.
297
297
  * @returns void.
298
-
298
+ * @deprecated
299
299
  */
300
300
  ComboBox.prototype.hideSpinner = function () {
301
301
  if (!isNullOrUndefined(this.spinnerElement)) {
@@ -616,7 +616,7 @@ var ComboBox = /** @class */ (function (_super) {
616
616
  * @param { Object[] } items - Specifies an array of JSON data or a JSON data.
617
617
  * @param { number } itemIndex - Specifies the index to place the newly added item in the popup list.
618
618
  * @return {void}.
619
-
619
+ * @deprecated
620
620
  */
621
621
  ComboBox.prototype.addItem = function (items, itemIndex) {
622
622
  _super.prototype.addItem.call(this, items, itemIndex);
@@ -627,7 +627,7 @@ var ComboBox = /** @class */ (function (_super) {
627
627
  * @param {Query} query - Specify the query to filter the data.
628
628
  * @param {FieldSettingsModel} fields - Specify the fields to map the column in the data table.
629
629
  * @return {void}.
630
-
630
+ * @deprecated
631
631
  */
632
632
  ComboBox.prototype.filter = function (dataSource, query, fields) {
633
633
  _super.prototype.filter.call(this, dataSource, query, fields);
@@ -635,7 +635,7 @@ var ComboBox = /** @class */ (function (_super) {
635
635
  /**
636
636
  * Opens the popup that displays the list of items.
637
637
  * @returns void.
638
-
638
+ * @deprecated
639
639
  */
640
640
  ComboBox.prototype.showPopup = function () {
641
641
  _super.prototype.showPopup.call(this);
@@ -643,7 +643,7 @@ var ComboBox = /** @class */ (function (_super) {
643
643
  /**
644
644
  * Hides the popup if it is in open state.
645
645
  * @returns void.
646
-
646
+ * @deprecated
647
647
  */
648
648
  ComboBox.prototype.hidePopup = function (e) {
649
649
  var inputValue = this.inputElement.value === '' ? null : this.inputElement.value;
@@ -706,7 +706,7 @@ var ComboBox = /** @class */ (function (_super) {
706
706
  /**
707
707
  * Allows you to clear the selected values from the component.
708
708
  * @returns void.
709
-
709
+ * @deprecated
710
710
  */
711
711
  ComboBox.prototype.clear = function () {
712
712
  this.value = null;
@@ -714,7 +714,7 @@ var ComboBox = /** @class */ (function (_super) {
714
714
  /**
715
715
  * Moves the focus from the component if the component is already focused.
716
716
  * @returns void.
717
-
717
+ * @deprecated
718
718
  */
719
719
  ComboBox.prototype.focusOut = function (e) {
720
720
  _super.prototype.focusOut.call(this, e);
@@ -722,7 +722,7 @@ var ComboBox = /** @class */ (function (_super) {
722
722
  /**
723
723
  * Gets all the list items bound on this component.
724
724
  * @returns Element[].
725
-
725
+ * @deprecated
726
726
  */
727
727
  ComboBox.prototype.getItems = function () {
728
728
  return _super.prototype.getItems.call(this);
@@ -732,7 +732,7 @@ var ComboBox = /** @class */ (function (_super) {
732
732
  * @param { string | number } value - Specifies the value of the list item.
733
733
  * @returns Object.
734
734
  * @blazorType object
735
-
735
+ * @deprecated
736
736
  */
737
737
  ComboBox.prototype.getDataByValue = function (value) {
738
738
  return _super.prototype.getDataByValue.call(this, value);
@@ -10,7 +10,7 @@ export declare type SearchType = 'StartsWith' | 'Equal';
10
10
  * after selected item otherwise it will do from initial.
11
11
  * @param { boolean } ignoreCase - Specifies the case consideration when search has done.
12
12
  */
13
- export declare function incrementalSearch(keyCode: number, items: HTMLElement[], selectedIndex: number, ignoreCase: boolean, isBlazor?: boolean): Element;
13
+ export declare function incrementalSearch(keyCode: number, items: HTMLElement[], selectedIndex: number, ignoreCase: boolean, elementId: string, isBlazor?: boolean): Element;
14
14
  export declare function Search(inputVal: string, items: HTMLElement[], searchType: SearchType, ignoreCase?: boolean): {
15
15
  [key: string]: Element | number;
16
16
  };
@@ -5,6 +5,7 @@ var queryString = '';
5
5
  var prevString = '';
6
6
  var matches = [];
7
7
  var activeClass = 'e-active';
8
+ var prevElementId = '';
8
9
  /**
9
10
  * Search and focus the list item based on key code matches with list text content
10
11
  * @param { number } keyCode - Specifies the key code which pressed on keyboard events.
@@ -13,12 +14,12 @@ var activeClass = 'e-active';
13
14
  * after selected item otherwise it will do from initial.
14
15
  * @param { boolean } ignoreCase - Specifies the case consideration when search has done.
15
16
  */
16
- export function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, isBlazor) {
17
+ export function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, elementId, isBlazor) {
17
18
  queryString += String.fromCharCode(keyCode);
18
19
  setTimeout(function () { queryString = ''; }, 1000);
19
20
  var index;
20
21
  queryString = ignoreCase ? queryString.toLowerCase() : queryString;
21
- if (prevString === queryString) {
22
+ if (prevElementId === elementId && prevString === queryString) {
22
23
  for (var i = 0; i < matches.length; i++) {
23
24
  if (matches[i].classList.contains(activeClass)) {
24
25
  index = i;
@@ -54,6 +55,7 @@ export function incrementalSearch(keyCode, items, selectedIndex, ignoreCase, isB
54
55
  i++;
55
56
  } while (i !== selectedIndex);
56
57
  prevString = queryString;
58
+ prevElementId = elementId;
57
59
  return matches[0];
58
60
  }
59
61
  }