@syncfusion/ej2-dropdowns 33.2.12 → 33.2.15
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/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 +35 -7
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +36 -7
- 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/helpers/e2e/autocomplete.d.ts +16 -0
- package/helpers/e2e/autocomplete.js +60 -0
- package/helpers/e2e/combobox.d.ts +17 -0
- package/helpers/e2e/combobox.js +63 -0
- package/helpers/e2e/dropdownlist.d.ts +20 -0
- package/helpers/e2e/dropdownlist.js +72 -0
- package/helpers/e2e/index.d.ts +4 -0
- package/helpers/e2e/index.js +11 -0
- package/helpers/e2e/listboxHelper.d.ts +22 -0
- package/helpers/e2e/listboxHelper.js +56 -0
- package/helpers/e2e/multiselect.d.ts +31 -0
- package/helpers/e2e/multiselect.js +105 -0
- package/package.json +3 -3
- package/src/drop-down-list/drop-down-list.js +3 -5
- package/src/multi-select/checkbox-selection.js +4 -2
- package/src/multi-select/multi-select.d.ts +3 -0
- package/src/multi-select/multi-select.js +29 -0
|
@@ -6313,9 +6313,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6313
6313
|
ulElement = null;
|
|
6314
6314
|
},
|
|
6315
6315
|
targetExitViewport: function () {
|
|
6316
|
-
|
|
6317
|
-
_this.hidePopup();
|
|
6318
|
-
}
|
|
6316
|
+
_this.hidePopup();
|
|
6319
6317
|
}
|
|
6320
6318
|
});
|
|
6321
6319
|
};
|
|
@@ -6931,8 +6929,8 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
6931
6929
|
if (!this.targetElement().hasAttribute('aria-label')) {
|
|
6932
6930
|
attributes(this.targetElement(), { 'aria-label': this.getModuleName() });
|
|
6933
6931
|
}
|
|
6934
|
-
if (!this.inputElement.hasAttribute('aria-
|
|
6935
|
-
this.inputElement.setAttribute('aria-
|
|
6932
|
+
if (!this.inputElement.hasAttribute('aria-labelledby')) {
|
|
6933
|
+
this.inputElement.setAttribute('aria-labelledby', this.hiddenElement.id);
|
|
6936
6934
|
}
|
|
6937
6935
|
this.inputElement.setAttribute('aria-expanded', 'false');
|
|
6938
6936
|
}
|
|
@@ -13675,6 +13673,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13675
13673
|
_this.selectAllEventEle = [];
|
|
13676
13674
|
_this.preventSetCurrentData = false;
|
|
13677
13675
|
_this.isSelectAllLoop = false;
|
|
13676
|
+
_this.isInitialFocusAnnouncementDone = false;
|
|
13678
13677
|
_this.scrollFocusStatus = false;
|
|
13679
13678
|
_this.keyDownStatus = false;
|
|
13680
13679
|
return _this;
|
|
@@ -14914,6 +14913,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14914
14913
|
return;
|
|
14915
14914
|
}
|
|
14916
14915
|
this.inputFocus = false;
|
|
14916
|
+
this.isInitialFocusAnnouncementDone = false;
|
|
14917
14917
|
this.overAllWrapper.classList.remove(FOCUS);
|
|
14918
14918
|
if (this.addTagOnBlur) {
|
|
14919
14919
|
var dataChecks = this.getValueByText(this.inputElement.value, this.ignoreCase, this.ignoreAccent);
|
|
@@ -15181,6 +15181,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15181
15181
|
this.trigger('focus', args);
|
|
15182
15182
|
this.focused = false;
|
|
15183
15183
|
}
|
|
15184
|
+
if (!this.isInitialFocusAnnouncementDone) {
|
|
15185
|
+
this.announceInitialFocusInstruction();
|
|
15186
|
+
this.isInitialFocusAnnouncementDone = true;
|
|
15187
|
+
}
|
|
15184
15188
|
if (!this.overAllWrapper.classList.contains(FOCUS)) {
|
|
15185
15189
|
this.overAllWrapper.classList.add(FOCUS);
|
|
15186
15190
|
}
|
|
@@ -15906,6 +15910,25 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
15906
15910
|
}
|
|
15907
15911
|
this.checkPlaceholderSize();
|
|
15908
15912
|
};
|
|
15913
|
+
MultiSelect.prototype.announceSelection = function (text) {
|
|
15914
|
+
if (text && this.chipAnnouncerLiveRegion) {
|
|
15915
|
+
var count = this.value ? this.value.length : 0;
|
|
15916
|
+
var announcement = text + " added to selection " + count + " items selected";
|
|
15917
|
+
this.chipAnnouncerLiveRegion.textContent = announcement;
|
|
15918
|
+
}
|
|
15919
|
+
};
|
|
15920
|
+
MultiSelect.prototype.announceInitialFocusInstruction = function () {
|
|
15921
|
+
var _this = this;
|
|
15922
|
+
if (this.chipAnnouncerLiveRegion) {
|
|
15923
|
+
var instruction_1 = 'Use arrow keys to open popup and navigate items, Enter to select, and Backspace to delete selections';
|
|
15924
|
+
this.chipAnnouncerLiveRegion.textContent = '';
|
|
15925
|
+
setTimeout(function () {
|
|
15926
|
+
if (_this.chipAnnouncerLiveRegion) {
|
|
15927
|
+
_this.chipAnnouncerLiveRegion.textContent = instruction_1;
|
|
15928
|
+
}
|
|
15929
|
+
}, 200);
|
|
15930
|
+
}
|
|
15931
|
+
};
|
|
15909
15932
|
MultiSelect.prototype.moveByTop = function (state) {
|
|
15910
15933
|
var elements = this.list.querySelectorAll('li.' + dropDownBaseClasses.li);
|
|
15911
15934
|
var index;
|
|
@@ -16489,6 +16512,9 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16489
16512
|
if (this.mode !== 'Delimiter' && this.mode !== 'CheckBox') {
|
|
16490
16513
|
this.addChip(text, value, eve);
|
|
16491
16514
|
}
|
|
16515
|
+
else {
|
|
16516
|
+
this.announceSelection(text);
|
|
16517
|
+
}
|
|
16492
16518
|
if (this.hideSelectedItem && this.fields.groupBy) {
|
|
16493
16519
|
this.hideGroupItem(value);
|
|
16494
16520
|
}
|
|
@@ -16701,6 +16727,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16701
16727
|
}
|
|
16702
16728
|
EventHandler.add(chipClose, 'mousedown', _this.onChipRemove, _this);
|
|
16703
16729
|
_this.chipCollectionWrapper.appendChild(chip);
|
|
16730
|
+
_this.announceSelection(data);
|
|
16704
16731
|
if (!_this.changeOnBlur && e) {
|
|
16705
16732
|
_this.updateValueState(e, _this.value, _this.tempValues);
|
|
16706
16733
|
}
|
|
@@ -21230,8 +21257,10 @@ var CheckBoxSelection = /** @__PURE__ @class */ (function () {
|
|
|
21230
21257
|
}
|
|
21231
21258
|
};
|
|
21232
21259
|
CheckBoxSelection.prototype.setLocale = function (unSelect) {
|
|
21233
|
-
|
|
21234
|
-
|
|
21260
|
+
var template = unSelect ? this.parent.unSelectAllText : this.parent.selectAllText;
|
|
21261
|
+
var isListBox = this.parent.element.classList.contains('e-listbox');
|
|
21262
|
+
if ((this.parent.selectAllText !== 'Select All' || this.parent.unSelectAllText !== 'Unselect All') &&
|
|
21263
|
+
(!isListBox || typeof template === 'function' || (typeof template === 'string' && /<[a-z][\s\S]*>/i.test(template)))) {
|
|
21235
21264
|
this.selectAllSpan.textContent = '';
|
|
21236
21265
|
var compiledString = compile(template);
|
|
21237
21266
|
var templateName = unSelect ? 'unSelectAllText' : 'selectAllText';
|