@syncfusion/ej2-dropdowns 24.1.41 → 24.1.43
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 +20 -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 +38 -2
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +38 -2
- 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 +6 -6
- package/src/auto-complete/auto-complete.js +1 -1
- package/src/drop-down-list/drop-down-list.js +27 -0
- package/src/list-box/list-box.d.ts +1 -0
- package/src/list-box/list-box.js +4 -0
- package/src/mention/mention.js +6 -1
- package/styles/bootstrap-dark.css +0 -3
- package/styles/bootstrap.css +0 -3
- package/styles/bootstrap4.css +0 -3
- package/styles/bootstrap5-dark.css +0 -3
- package/styles/bootstrap5.css +0 -3
- package/styles/drop-down-base/_layout.scss +0 -3
- package/styles/drop-down-base/bootstrap-dark.css +0 -3
- package/styles/drop-down-base/bootstrap.css +0 -3
- package/styles/drop-down-base/bootstrap4.css +0 -3
- package/styles/drop-down-base/bootstrap5-dark.css +0 -3
- package/styles/drop-down-base/bootstrap5.css +0 -3
- package/styles/drop-down-base/fabric-dark.css +0 -3
- package/styles/drop-down-base/fabric.css +0 -3
- package/styles/drop-down-base/fluent-dark.css +0 -3
- package/styles/drop-down-base/fluent.css +0 -3
- package/styles/drop-down-base/highcontrast-light.css +0 -3
- package/styles/drop-down-base/highcontrast.css +0 -3
- package/styles/drop-down-base/material-dark.css +0 -3
- package/styles/drop-down-base/material.css +0 -3
- package/styles/drop-down-base/material3-dark.css +0 -3
- package/styles/drop-down-base/material3.css +0 -3
- package/styles/drop-down-base/tailwind-dark.css +0 -3
- package/styles/drop-down-base/tailwind.css +0 -3
- package/styles/fabric-dark.css +0 -3
- package/styles/fabric.css +0 -3
- package/styles/fluent-dark.css +0 -3
- package/styles/fluent.css +0 -3
- package/styles/highcontrast-light.css +0 -3
- package/styles/highcontrast.css +0 -3
- package/styles/material-dark.css +0 -3
- package/styles/material.css +0 -3
- package/styles/material3-dark.css +0 -3
- package/styles/material3.css +0 -3
- package/styles/tailwind-dark.css +0 -3
- package/styles/tailwind.css +0 -3
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.1.
|
|
3
|
+
* version : 24.1.43
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@24.1.41",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-IL8H6aWMD4lIszEcLXcz0tsfKQKjhilf1PjzuXND23WPwav6sFZB9n0l/NRbcz/4VxrgO+bILwF0IAe2OhuFOA==",
|
|
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.syncfusion.com/repository/ej2-
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.1.41.tgz",
|
|
38
|
+
"_shasum": "adb5ce716e10c5c61ce46a81ba76967a1cf3e4af",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@syncfusion/ej2-base": "~24.1.
|
|
46
|
+
"@syncfusion/ej2-base": "~24.1.42",
|
|
47
47
|
"@syncfusion/ej2-data": "~24.1.41",
|
|
48
48
|
"@syncfusion/ej2-inputs": "~24.1.41",
|
|
49
49
|
"@syncfusion/ej2-lists": "~24.1.41",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"module": "./index.js",
|
|
75
75
|
"name": "@syncfusion/ej2-dropdowns",
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.1.
|
|
77
|
+
"version": "24.1.43",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
80
80
|
}
|
|
@@ -293,7 +293,7 @@ var AutoComplete = /** @class */ (function (_super) {
|
|
|
293
293
|
_super.prototype.renderPopup.call(this, e);
|
|
294
294
|
};
|
|
295
295
|
AutoComplete.prototype.isEditTextBox = function () {
|
|
296
|
-
return
|
|
296
|
+
return false;
|
|
297
297
|
};
|
|
298
298
|
AutoComplete.prototype.isPopupButton = function () {
|
|
299
299
|
return this.showPopupButton;
|
|
@@ -1030,6 +1030,14 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1030
1030
|
this.activeIndex = filterIndex;
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
|
+
if (this.allowFiltering && this.getModuleName() === 'dropdownlist') {
|
|
1034
|
+
if (!isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-item-focus')[0])) {
|
|
1035
|
+
attributes(this.filterInput, { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-item-focus')[0].id });
|
|
1036
|
+
}
|
|
1037
|
+
else if (!isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-active')[0])) {
|
|
1038
|
+
attributes(this.filterInput, { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-active')[0].id });
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1033
1041
|
e.preventDefault();
|
|
1034
1042
|
};
|
|
1035
1043
|
DropDownList.prototype.updateVirtualItemIndex = function () {
|
|
@@ -1163,6 +1171,14 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1163
1171
|
previousItem = this.liCollections[this.skeletonCount];
|
|
1164
1172
|
}
|
|
1165
1173
|
this.PageUpDownSelection(previousItem, event);
|
|
1174
|
+
if (this.allowFiltering && this.getModuleName() === 'dropdownlist') {
|
|
1175
|
+
if (!isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-item-focus')[0])) {
|
|
1176
|
+
attributes(this.filterInput, { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-item-focus')[0].id });
|
|
1177
|
+
}
|
|
1178
|
+
else if (!isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-active')[0])) {
|
|
1179
|
+
attributes(this.filterInput, { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-active')[0].id });
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1166
1182
|
};
|
|
1167
1183
|
DropDownList.prototype.PageUpDownSelection = function (previousItem, event) {
|
|
1168
1184
|
if (this.enableVirtualization) {
|
|
@@ -1181,6 +1197,14 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1181
1197
|
previousItem = steps <= list.length ? this.liCollections[steps + this.skeletonCount - 1] : this.liCollections[list.length - 1];
|
|
1182
1198
|
}
|
|
1183
1199
|
this.PageUpDownSelection(previousItem, event);
|
|
1200
|
+
if (this.allowFiltering && this.getModuleName() === 'dropdownlist') {
|
|
1201
|
+
if (!isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-item-focus')[0])) {
|
|
1202
|
+
attributes(this.filterInput, { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-item-focus')[0].id });
|
|
1203
|
+
}
|
|
1204
|
+
else if (!isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-active')[0])) {
|
|
1205
|
+
attributes(this.filterInput, { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-active')[0].id });
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1184
1208
|
};
|
|
1185
1209
|
DropDownList.prototype.unWireEvent = function () {
|
|
1186
1210
|
if (!isNullOrUndefined(this.inputWrapper)) {
|
|
@@ -2848,6 +2872,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2848
2872
|
EventHandler.remove(this.filterInput, 'blur', this.onBlurHandler);
|
|
2849
2873
|
EventHandler.remove(this.filterInput, 'paste', this.pasteHandler);
|
|
2850
2874
|
}
|
|
2875
|
+
if (this.allowFiltering && this.getModuleName() === 'dropdownlist') {
|
|
2876
|
+
this.filterInput.removeAttribute('aria-activedescendant');
|
|
2877
|
+
}
|
|
2851
2878
|
this.filterInput = null;
|
|
2852
2879
|
}
|
|
2853
2880
|
attributes(this.targetElement(), { 'aria-expanded': 'false' });
|
|
@@ -134,6 +134,7 @@ export declare class ListBox extends DropDownBase {
|
|
|
134
134
|
private dragValue;
|
|
135
135
|
private customDraggedItem;
|
|
136
136
|
private timer;
|
|
137
|
+
private inputFormName;
|
|
137
138
|
/**
|
|
138
139
|
* Sets the CSS classes to root element of this component, which helps to customize the
|
|
139
140
|
* complete styles.
|
package/src/list-box/list-box.js
CHANGED
|
@@ -129,6 +129,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
129
129
|
this.initLoad = true;
|
|
130
130
|
this.isCustomFiltering = false;
|
|
131
131
|
this.initialSelectedOptions = this.value;
|
|
132
|
+
this.inputFormName = this.element.getAttribute('name');
|
|
132
133
|
_super.prototype.render.call(this);
|
|
133
134
|
this.setEnabled();
|
|
134
135
|
this.renderComplete();
|
|
@@ -277,6 +278,9 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
277
278
|
});
|
|
278
279
|
};
|
|
279
280
|
ListBox.prototype.validationAttribute = function (input, hiddenSelect) {
|
|
281
|
+
if (this.inputFormName) {
|
|
282
|
+
input.setAttribute('name', this.inputFormName);
|
|
283
|
+
}
|
|
280
284
|
_super.prototype.validationAttribute.call(this, input, hiddenSelect);
|
|
281
285
|
hiddenSelect.required = input.required;
|
|
282
286
|
input.required = false;
|
package/src/mention/mention.js
CHANGED
|
@@ -314,12 +314,17 @@ var Mention = /** @class */ (function (_super) {
|
|
|
314
314
|
}
|
|
315
315
|
var currentRange = this.getTextRange();
|
|
316
316
|
var lastWordRange = this.getLastLetter(currentRange);
|
|
317
|
+
var lastTwoLetters = this.mentionChar.toString() + this.mentionChar.toString();
|
|
317
318
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
318
319
|
var Regex = new RegExp(this.mentionChar.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), 'g');
|
|
319
320
|
var charRegex = new RegExp('[a-zA-Z]', 'g');
|
|
320
321
|
if (e.key === 'Shift' || e.keyCode === 37 || e.keyCode === 39) {
|
|
321
322
|
return;
|
|
322
323
|
}
|
|
324
|
+
if (this.beforePopupOpen && this.isPopupOpen && lastWordRange == lastTwoLetters) {
|
|
325
|
+
this.hidePopup();
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
323
328
|
if ((!currentRange || !lastWordRange) || e.code === 'Enter' || e.keyCode === 27 ||
|
|
324
329
|
(lastWordRange.match(Regex) && lastWordRange.match(Regex).length > 1) ||
|
|
325
330
|
(this.isContentEditable(this.inputElement) && this.range.startContainer &&
|
|
@@ -461,7 +466,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
461
466
|
this.selectEventCallback(focusItem, this.getDataByValue(value), value, true);
|
|
462
467
|
}
|
|
463
468
|
if (this.beforePopupOpen && this.isPopupOpen) {
|
|
464
|
-
if (
|
|
469
|
+
if (!isNullOrUndefined(this.popupObj.element)) {
|
|
465
470
|
this.popupObj.element.remove();
|
|
466
471
|
}
|
|
467
472
|
this.renderPopup();
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
package/styles/material3.css
CHANGED
package/styles/tailwind-dark.css
CHANGED