@syncfusion/ej2-dropdowns 24.2.4 → 24.2.6
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 +24 -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 +36 -16
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +35 -15
- 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 +4 -4
- package/src/drop-down-list/drop-down-list.js +4 -4
- package/src/list-box/list-box.js +0 -1
- package/src/mention/mention.js +23 -7
- 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.6
|
|
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.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-u794hQABLY4qA2bQ2I9lsrbZMHQdnAOkQdNME61PHEaPLLJC45RdwF0TK1C4FiSgfBPRHPQhUeL9Yk14V+U9IA==",
|
|
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.5.tgz",
|
|
38
|
+
"_shasum": "d5e5127024e044ee6c0937e333d47ddeb4a8b54a",
|
|
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.6",
|
|
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.6",
|
|
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:
|
|
@@ -420,7 +420,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
420
420
|
protected updateValues(): void;
|
|
421
421
|
protected onBlurHandler(e: MouseEvent): void;
|
|
422
422
|
protected focusOutAction(e?: MouseEvent | KeyboardEventArgs): void;
|
|
423
|
-
protected onFocusOut(): void;
|
|
423
|
+
protected onFocusOut(e?: MouseEvent | KeyboardEventArgs): void;
|
|
424
424
|
protected onFocus(e?: FocusEvent | MouseEvent | KeyboardEvent | TouchEvent): void;
|
|
425
425
|
private resetValueHandler;
|
|
426
426
|
protected wireEvent(): void;
|
|
@@ -523,15 +523,15 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
523
523
|
DropDownList.prototype.focusOutAction = function (e) {
|
|
524
524
|
this.isInteracted = false;
|
|
525
525
|
this.focusOut(e);
|
|
526
|
-
this.onFocusOut();
|
|
526
|
+
this.onFocusOut(e);
|
|
527
527
|
};
|
|
528
|
-
DropDownList.prototype.onFocusOut = function () {
|
|
528
|
+
DropDownList.prototype.onFocusOut = function (e) {
|
|
529
529
|
if (!this.enabled) {
|
|
530
530
|
return;
|
|
531
531
|
}
|
|
532
532
|
if (this.isSelected) {
|
|
533
533
|
this.isSelectCustom = false;
|
|
534
|
-
this.onChangeEvent(
|
|
534
|
+
this.onChangeEvent(e);
|
|
535
535
|
}
|
|
536
536
|
this.floatLabelChange();
|
|
537
537
|
this.dispatchEvent(this.hiddenElement, 'change');
|
|
@@ -1244,7 +1244,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1244
1244
|
this.hidePopup(e);
|
|
1245
1245
|
this.isInteracted = false;
|
|
1246
1246
|
if (!isActive) {
|
|
1247
|
-
this.onFocusOut();
|
|
1247
|
+
this.onFocusOut(e);
|
|
1248
1248
|
this.inputWrapper.container.classList.remove(dropDownListClasses.inputFocus);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
package/src/list-box/list-box.js
CHANGED
|
@@ -1590,7 +1590,6 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1590
1590
|
if (tListBox.mainList.childElementCount !== tListBox.jsonData.length) {
|
|
1591
1591
|
tListBox.mainList = tListBox.ulElement;
|
|
1592
1592
|
}
|
|
1593
|
-
fListBox.updateMainList();
|
|
1594
1593
|
var tJsonData = [].slice.call(tListBox.jsonData);
|
|
1595
1594
|
tSortData = [].slice.call(tListBox.sortedData);
|
|
1596
1595
|
this.selectNextList(elems, dataLiIdx, dataIdx, fListBox);
|
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);
|
|
@@ -890,6 +892,20 @@ var Mention = /** @class */ (function (_super) {
|
|
|
890
892
|
range.collapse(false);
|
|
891
893
|
rect = range.getBoundingClientRect().top === 0 ? range.startContainer.getClientRects()[0] : range.getBoundingClientRect();
|
|
892
894
|
}
|
|
895
|
+
var rectTop = rect.top;
|
|
896
|
+
var rectLeft = rect.left;
|
|
897
|
+
var iframes = document.querySelectorAll('iframe');
|
|
898
|
+
if (iframes.length > 0) {
|
|
899
|
+
for (var i = 0; i < iframes.length; i++) {
|
|
900
|
+
// eslint-disable-next-line security/detect-object-injection
|
|
901
|
+
var iframe = iframes[i];
|
|
902
|
+
if (iframe.contentDocument.contains(element)) {
|
|
903
|
+
var iframeRect = iframe.getBoundingClientRect();
|
|
904
|
+
rectTop += iframeRect.top;
|
|
905
|
+
rectLeft += iframeRect.left;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
893
909
|
var doc = document.documentElement;
|
|
894
910
|
var windowLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
|
|
895
911
|
var windowTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
@@ -911,23 +927,23 @@ var Mention = /** @class */ (function (_super) {
|
|
|
911
927
|
}
|
|
912
928
|
if (!this.isContentEditable(this.inputElement)) {
|
|
913
929
|
coordinates = {
|
|
914
|
-
top:
|
|
930
|
+
top: rectTop + windowTop + span.offsetTop + parseInt(computed.borderTopWidth, 10) +
|
|
915
931
|
parseInt(computed.fontSize, 10) + 3 - element.scrollTop - (this.isCollided ? 10 : 0),
|
|
916
|
-
left:
|
|
932
|
+
left: rectLeft + windowLeft + span.offsetLeft + parseInt(computed.borderLeftWidth, 10)
|
|
917
933
|
};
|
|
918
934
|
document.body.removeChild(div);
|
|
919
935
|
}
|
|
920
936
|
else {
|
|
921
937
|
if (this.collision && this.collision.length > 0 && this.collision.indexOf('right') > -1 && this.collision.indexOf('bottom') === -1) {
|
|
922
938
|
coordinates = {
|
|
923
|
-
top:
|
|
924
|
-
left:
|
|
939
|
+
top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10),
|
|
940
|
+
left: rectLeft + windowLeft + width
|
|
925
941
|
};
|
|
926
942
|
}
|
|
927
943
|
else {
|
|
928
944
|
coordinates = {
|
|
929
|
-
top:
|
|
930
|
-
left:
|
|
945
|
+
top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10) - (this.isCollided ? 10 : 0),
|
|
946
|
+
left: rectLeft + windowLeft + width
|
|
931
947
|
};
|
|
932
948
|
}
|
|
933
949
|
}
|
|
@@ -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';
|