@syncfusion/ej2-dropdowns 24.2.4 → 24.2.5
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.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +12 -5
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +11 -4
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/auto-complete/auto-complete-model.d.ts +2 -2
- package/src/auto-complete/auto-complete.d.ts +2 -2
- package/src/combo-box/combo-box-model.d.ts +3 -3
- package/src/combo-box/combo-box.d.ts +3 -3
- package/src/drop-down-list/drop-down-list-model.d.ts +3 -3
- package/src/drop-down-list/drop-down-list.d.ts +3 -3
- package/src/mention/mention.js +3 -1
- package/src/multi-select/multi-select-model.d.ts +2 -2
- package/src/multi-select/multi-select.d.ts +2 -2
- package/src/multi-select/multi-select.js +8 -3
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.2.
|
|
3
|
+
* version : 24.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@24.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@24.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-yO2x7003LTxaPl+OD2C6KP4XQaN6kVuzGVKtSz9vBtS2e3EZZpt8GmtRs1QOmMaR47kqD+Cv2ybUx1E3w13pKg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"/@syncfusion/ej2-spreadsheet",
|
|
35
35
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
36
36
|
],
|
|
37
|
-
"_resolved": "https://nexus.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.2.4.tgz",
|
|
38
|
+
"_shasum": "24edaa5bfef0a2fa7ee08492553773b546b45011",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~24.2.
|
|
46
|
+
"@syncfusion/ej2-base": "~24.2.5",
|
|
47
47
|
"@syncfusion/ej2-data": "~24.2.3",
|
|
48
|
-
"@syncfusion/ej2-inputs": "~24.2.
|
|
48
|
+
"@syncfusion/ej2-inputs": "~24.2.5",
|
|
49
49
|
"@syncfusion/ej2-lists": "~24.2.4",
|
|
50
50
|
"@syncfusion/ej2-navigations": "~24.2.4",
|
|
51
51
|
"@syncfusion/ej2-notifications": "~24.2.4",
|
|
52
|
-
"@syncfusion/ej2-popups": "~24.2.
|
|
52
|
+
"@syncfusion/ej2-popups": "~24.2.5"
|
|
53
53
|
},
|
|
54
54
|
"deprecated": false,
|
|
55
55
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"module": "./index.js",
|
|
75
75
|
"name": "@syncfusion/ej2-dropdowns",
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.2.
|
|
77
|
+
"version": "24.2.5",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
80
80
|
}
|
|
@@ -138,7 +138,7 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
138
138
|
* @private
|
|
139
139
|
|
|
140
140
|
*/
|
|
141
|
-
index?: number;
|
|
141
|
+
index?: number | null;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Specifies whether to display the floating label above the input element.
|
|
@@ -193,6 +193,6 @@ export interface AutoCompleteModel extends ComboBoxModel{
|
|
|
193
193
|
* @private
|
|
194
194
|
|
|
195
195
|
*/
|
|
196
|
-
text?: string;
|
|
196
|
+
text?: string | null;
|
|
197
197
|
|
|
198
198
|
}
|
|
@@ -145,7 +145,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
145
145
|
* @private
|
|
146
146
|
|
|
147
147
|
*/
|
|
148
|
-
index: number;
|
|
148
|
+
index: number | null;
|
|
149
149
|
/**
|
|
150
150
|
* Specifies whether to display the floating label above the input element.
|
|
151
151
|
* Possible values are:
|
|
@@ -195,7 +195,7 @@ export declare class AutoComplete extends ComboBox {
|
|
|
195
195
|
* @private
|
|
196
196
|
|
|
197
197
|
*/
|
|
198
|
-
text: string;
|
|
198
|
+
text: string | null;
|
|
199
199
|
/**
|
|
200
200
|
* * Constructor for creating the widget
|
|
201
201
|
*
|
|
@@ -68,7 +68,7 @@ export interface ComboBoxModel extends DropDownListModel{
|
|
|
68
68
|
* @default null
|
|
69
69
|
|
|
70
70
|
*/
|
|
71
|
-
index?: number;
|
|
71
|
+
index?: number | null;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Specifies whether to show or hide the clear button.
|
|
@@ -221,7 +221,7 @@ export interface ComboBoxModel extends DropDownListModel{
|
|
|
221
221
|
* @default null
|
|
222
222
|
|
|
223
223
|
*/
|
|
224
|
-
text?: string;
|
|
224
|
+
text?: string | null;
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* Gets or sets the value of the selected item in the component.
|
|
@@ -230,6 +230,6 @@ export interface ComboBoxModel extends DropDownListModel{
|
|
|
230
230
|
* @isGenericType true
|
|
231
231
|
|
|
232
232
|
*/
|
|
233
|
-
value?: number | string | boolean;
|
|
233
|
+
value?: number | string | boolean | null;
|
|
234
234
|
|
|
235
235
|
}
|
|
@@ -81,7 +81,7 @@ export declare class ComboBox extends DropDownList {
|
|
|
81
81
|
* @default null
|
|
82
82
|
|
|
83
83
|
*/
|
|
84
|
-
index: number;
|
|
84
|
+
index: number | null;
|
|
85
85
|
/**
|
|
86
86
|
* Specifies whether to show or hide the clear button.
|
|
87
87
|
* When the clear button is clicked, `value`, `text`, and `index` properties are reset to null.
|
|
@@ -218,7 +218,7 @@ export declare class ComboBox extends DropDownList {
|
|
|
218
218
|
* @default null
|
|
219
219
|
|
|
220
220
|
*/
|
|
221
|
-
text: string;
|
|
221
|
+
text: string | null;
|
|
222
222
|
/**
|
|
223
223
|
* Gets or sets the value of the selected item in the component.
|
|
224
224
|
*
|
|
@@ -226,7 +226,7 @@ export declare class ComboBox extends DropDownList {
|
|
|
226
226
|
* @isGenericType true
|
|
227
227
|
|
|
228
228
|
*/
|
|
229
|
-
value: number | string | boolean;
|
|
229
|
+
value: number | string | boolean | null;
|
|
230
230
|
/**
|
|
231
231
|
* *Constructor for creating the component
|
|
232
232
|
*
|
|
@@ -164,7 +164,7 @@ export interface DropDownListModel extends DropDownBaseModel{
|
|
|
164
164
|
*
|
|
165
165
|
* @default null
|
|
166
166
|
*/
|
|
167
|
-
text?: string;
|
|
167
|
+
text?: string | null;
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* Gets or sets the value of the selected item in the component.
|
|
@@ -172,7 +172,7 @@ export interface DropDownListModel extends DropDownBaseModel{
|
|
|
172
172
|
* @default null
|
|
173
173
|
* @isGenericType true
|
|
174
174
|
*/
|
|
175
|
-
value?: number | string | boolean;
|
|
175
|
+
value?: number | string | boolean | null;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Gets or sets the index of the selected item in the component.
|
|
@@ -183,7 +183,7 @@ export interface DropDownListModel extends DropDownBaseModel{
|
|
|
183
183
|
*
|
|
184
184
|
* @default null
|
|
185
185
|
*/
|
|
186
|
-
index?: number;
|
|
186
|
+
index?: number | null;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* Specifies whether to display the floating label above the input element.
|
|
@@ -286,14 +286,14 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
286
286
|
*
|
|
287
287
|
* @default null
|
|
288
288
|
*/
|
|
289
|
-
text: string;
|
|
289
|
+
text: string | null;
|
|
290
290
|
/**
|
|
291
291
|
* Gets or sets the value of the selected item in the component.
|
|
292
292
|
*
|
|
293
293
|
* @default null
|
|
294
294
|
* @isGenericType true
|
|
295
295
|
*/
|
|
296
|
-
value: number | string | boolean;
|
|
296
|
+
value: number | string | boolean | null;
|
|
297
297
|
/**
|
|
298
298
|
* Gets or sets the index of the selected item in the component.
|
|
299
299
|
*
|
|
@@ -303,7 +303,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
303
303
|
*
|
|
304
304
|
* @default null
|
|
305
305
|
*/
|
|
306
|
-
index: number;
|
|
306
|
+
index: number | null;
|
|
307
307
|
/**
|
|
308
308
|
* Specifies whether to display the floating label above the input element.
|
|
309
309
|
* Possible values are:
|
package/src/mention/mention.js
CHANGED
|
@@ -344,7 +344,9 @@ var Mention = /** @class */ (function (_super) {
|
|
|
344
344
|
}
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
if (lastWordRange.includes(this.mentionChar)) {
|
|
348
|
+
this.queryString = lastWordRange.replace(this.mentionChar, '');
|
|
349
|
+
}
|
|
348
350
|
if (this.mentionChar.charCodeAt(0) === lastWordRange.charCodeAt(0) &&
|
|
349
351
|
this.queryString !== '' && e.keyCode !== 38 && e.keyCode !== 40 && !this.lineBreak) {
|
|
350
352
|
this.searchLists(e);
|
|
@@ -335,7 +335,7 @@ export interface MultiSelectModel extends DropDownBaseModel{
|
|
|
335
335
|
*
|
|
336
336
|
* @default null
|
|
337
337
|
*/
|
|
338
|
-
text?: string;
|
|
338
|
+
text?: string | null;
|
|
339
339
|
|
|
340
340
|
/**
|
|
341
341
|
* Selects the list item which maps the data `value` field in the component.
|
|
@@ -344,7 +344,7 @@ export interface MultiSelectModel extends DropDownBaseModel{
|
|
|
344
344
|
* @default null
|
|
345
345
|
* @isGenericType true
|
|
346
346
|
*/
|
|
347
|
-
value?: number[] | string[] | boolean[];
|
|
347
|
+
value?: number[] | string[] | boolean[] | null;
|
|
348
348
|
|
|
349
349
|
/**
|
|
350
350
|
* Hides the selected item from the list item.
|
|
@@ -351,7 +351,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
351
351
|
*
|
|
352
352
|
* @default null
|
|
353
353
|
*/
|
|
354
|
-
text: string;
|
|
354
|
+
text: string | null;
|
|
355
355
|
/**
|
|
356
356
|
* Selects the list item which maps the data `value` field in the component.
|
|
357
357
|
* {% codeBlock src='multiselect/value/index.md' %}{% endcodeBlock %}
|
|
@@ -359,7 +359,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
359
359
|
* @default null
|
|
360
360
|
* @isGenericType true
|
|
361
361
|
*/
|
|
362
|
-
value: number[] | string[] | boolean[];
|
|
362
|
+
value: number[] | string[] | boolean[] | null;
|
|
363
363
|
/**
|
|
364
364
|
* Hides the selected item from the list item.
|
|
365
365
|
*
|
|
@@ -361,6 +361,11 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
363
|
MultiSelect.prototype.removelastSelection = function (e) {
|
|
364
|
+
var selectedElem = this.chipCollectionWrapper.querySelector('span.' + CHIP_SELECTED);
|
|
365
|
+
if (selectedElem !== null) {
|
|
366
|
+
this.removeSelectedChip(e);
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
364
369
|
var elements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP);
|
|
365
370
|
var value = elements[elements.length - 1].getAttribute('data-value');
|
|
366
371
|
if (!isNullOrUndefined(this.value)) {
|
|
@@ -2516,7 +2521,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2516
2521
|
if (delim) {
|
|
2517
2522
|
this.updateWrapperText(this.delimiterWrapper, data);
|
|
2518
2523
|
this.delimiterWrapper.setAttribute('id', getUniqueID('delim_val'));
|
|
2519
|
-
this.inputElement.setAttribute('aria-
|
|
2524
|
+
this.inputElement.setAttribute('aria-describedby', this.delimiterWrapper.id);
|
|
2520
2525
|
}
|
|
2521
2526
|
var targetEle = e && e.target;
|
|
2522
2527
|
var isClearAll = (targetEle && targetEle.classList.contains('e-close-hooker')) ? true : null;
|
|
@@ -3490,7 +3495,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3490
3495
|
this.hiddenElement.innerHTML = hiddenValue;
|
|
3491
3496
|
this.updateWrapperText(this.delimiterWrapper, wrapperText);
|
|
3492
3497
|
this.delimiterWrapper.setAttribute('id', getUniqueID('delim_val'));
|
|
3493
|
-
this.inputElement.setAttribute('aria-
|
|
3498
|
+
this.inputElement.setAttribute('aria-describedby', this.delimiterWrapper.id);
|
|
3494
3499
|
this.setProperties({ text: text.toString() }, true);
|
|
3495
3500
|
this.refreshInputHight();
|
|
3496
3501
|
this.refreshPlaceHolder();
|
|
@@ -4006,7 +4011,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4006
4011
|
}
|
|
4007
4012
|
});
|
|
4008
4013
|
if (this.mode === 'Default' || this.mode === 'Box') {
|
|
4009
|
-
this.inputElement.setAttribute('aria-
|
|
4014
|
+
this.inputElement.setAttribute('aria-describedby', this.chipCollectionWrapper.id);
|
|
4010
4015
|
}
|
|
4011
4016
|
if (this.element.tagName !== this.getNgDirective()) {
|
|
4012
4017
|
this.element.style.display = 'none';
|