@syncfusion/ej2-dropdowns 20.3.57 → 20.3.59
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 +16 -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 +76 -46
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +76 -46
- 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 +7 -7
- package/src/combo-box/combo-box.js +1 -1
- package/src/drop-down-base/drop-down-base.js +12 -10
- package/src/drop-down-list/drop-down-list.d.ts +0 -1
- package/src/drop-down-list/drop-down-list.js +17 -16
- package/src/list-box/list-box.js +17 -8
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +29 -11
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/fluent-dark.css +4 -0
- package/styles/fluent.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material.css +4 -0
- package/styles/multi-select/_layout.scss +4 -0
- package/styles/multi-select/bootstrap-dark.css +4 -0
- package/styles/multi-select/bootstrap.css +4 -0
- package/styles/multi-select/bootstrap4.css +4 -0
- package/styles/multi-select/bootstrap5-dark.css +4 -0
- package/styles/multi-select/bootstrap5.css +4 -0
- package/styles/multi-select/fabric-dark.css +4 -0
- package/styles/multi-select/fabric.css +4 -0
- package/styles/multi-select/fluent-dark.css +4 -0
- package/styles/multi-select/fluent.css +4 -0
- package/styles/multi-select/highcontrast-light.css +4 -0
- package/styles/multi-select/highcontrast.css +4 -0
- package/styles/multi-select/material-dark.css +4 -0
- package/styles/multi-select/material.css +4 -0
- package/styles/multi-select/tailwind-dark.css +4 -0
- package/styles/multi-select/tailwind.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind.css +4 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.3.
|
|
3
|
+
* version : 20.3.59
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@20.3.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@20.3.58",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-pwXw+I7D7g8FQSCdAPVJf3V9W+h0qIXytD3FKQHi7qQYrxdRhDIHH/CGEHQ7sxYgpNKJElYQjlpMrKoPZLIo9g==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"/@syncfusion/ej2-spreadsheet",
|
|
34
34
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
35
35
|
],
|
|
36
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.3.
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.3.58.tgz",
|
|
37
|
+
"_shasum": "a74ca36401f4774bd62c42f7c345de22e3e05e41",
|
|
38
38
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
39
39
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@syncfusion/ej2-data": "~20.3.56",
|
|
47
47
|
"@syncfusion/ej2-inputs": "~20.3.57",
|
|
48
48
|
"@syncfusion/ej2-lists": "~20.3.56",
|
|
49
|
-
"@syncfusion/ej2-navigations": "~20.3.
|
|
50
|
-
"@syncfusion/ej2-popups": "~20.3.
|
|
49
|
+
"@syncfusion/ej2-navigations": "~20.3.58",
|
|
50
|
+
"@syncfusion/ej2-popups": "~20.3.59"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
"module": "./index.js",
|
|
73
73
|
"name": "@syncfusion/ej2-dropdowns",
|
|
74
74
|
"typings": "index.d.ts",
|
|
75
|
-
"version": "20.3.
|
|
75
|
+
"version": "20.3.59",
|
|
76
76
|
"sideEffects": false
|
|
77
77
|
}
|
|
@@ -275,7 +275,7 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
275
275
|
this.itemData = this.getDataByValue(this.value);
|
|
276
276
|
var dataItem = this.getItemData();
|
|
277
277
|
if (!(this.allowCustom && isNullOrUndefined(dataItem.value) && isNullOrUndefined(dataItem.text))) {
|
|
278
|
-
this.setProperties({ 'value': dataItem.value
|
|
278
|
+
this.setProperties({ 'value': dataItem.value }, !this.allowCustom);
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
/**
|
|
@@ -705,18 +705,20 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
705
705
|
return extend({}, options, fields, true);
|
|
706
706
|
};
|
|
707
707
|
DropDownBase.prototype.setFloatingHeader = function (e) {
|
|
708
|
-
if (isNullOrUndefined(this.
|
|
709
|
-
this.fixedHeaderElement
|
|
710
|
-
|
|
711
|
-
this.
|
|
708
|
+
if (!isNullOrUndefined(this.list) && !this.list.classList.contains(dropDownBaseClasses.noData)) {
|
|
709
|
+
if (isNullOrUndefined(this.fixedHeaderElement)) {
|
|
710
|
+
this.fixedHeaderElement = this.createElement('div', { className: dropDownBaseClasses.fixedHead });
|
|
711
|
+
if (!this.list.querySelector('li').classList.contains(dropDownBaseClasses.group)) {
|
|
712
|
+
this.fixedHeaderElement.style.display = 'none';
|
|
713
|
+
}
|
|
714
|
+
prepend([this.fixedHeaderElement], this.list);
|
|
715
|
+
this.setFixedHeader();
|
|
712
716
|
}
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
this.setFixedHeader();
|
|
717
|
+
if (!isNullOrUndefined(this.fixedHeaderElement) && this.fixedHeaderElement.style.zIndex === '0') {
|
|
718
|
+
this.setFixedHeader();
|
|
719
|
+
}
|
|
720
|
+
this.scrollStop(e);
|
|
718
721
|
}
|
|
719
|
-
this.scrollStop(e);
|
|
720
722
|
};
|
|
721
723
|
DropDownBase.prototype.scrollStop = function (e) {
|
|
722
724
|
var target = !isNullOrUndefined(e) ? e.target : this.list;
|
|
@@ -498,7 +498,6 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
498
498
|
protected isPopupButton(): boolean;
|
|
499
499
|
protected setScrollPosition(e?: KeyboardEventArgs): void;
|
|
500
500
|
private clearText;
|
|
501
|
-
private listScroll;
|
|
502
501
|
private setEleWidth;
|
|
503
502
|
private closePopup;
|
|
504
503
|
private destroyPopup;
|
|
@@ -1018,10 +1018,16 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1018
1018
|
this.setScrollPosition(e);
|
|
1019
1019
|
}
|
|
1020
1020
|
if (Browser.info.name !== 'mozilla') {
|
|
1021
|
-
attributes(this.
|
|
1021
|
+
attributes(this.targetElement(), { 'aria-label': this.inputElement.value });
|
|
1022
1022
|
attributes(this.targetElement(), { 'aria-describedby': this.inputElement.id != '' ? this.inputElement.id : this.element.id });
|
|
1023
1023
|
this.targetElement().removeAttribute('aria-live');
|
|
1024
1024
|
}
|
|
1025
|
+
if (!isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-item-focus')[0])) {
|
|
1026
|
+
attributes(this.targetElement(), { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-item-focus')[0].id });
|
|
1027
|
+
}
|
|
1028
|
+
else if (!isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-active')[0])) {
|
|
1029
|
+
attributes(this.targetElement(), { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-active')[0].id });
|
|
1030
|
+
}
|
|
1025
1031
|
};
|
|
1026
1032
|
DropDownList.prototype.dropdownCompiler = function (dropdownTemplate) {
|
|
1027
1033
|
var checkTemplate = false;
|
|
@@ -1214,6 +1220,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1214
1220
|
this.preventAutoFill = false;
|
|
1215
1221
|
}
|
|
1216
1222
|
this.preventAltUp = false;
|
|
1223
|
+
if (this.getModuleName() === 'autocomplete' && !isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-item-focus')[0])) {
|
|
1224
|
+
attributes(this.targetElement(), { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-item-focus')[0].id });
|
|
1225
|
+
}
|
|
1217
1226
|
e.preventDefault();
|
|
1218
1227
|
break;
|
|
1219
1228
|
case 46: //delete
|
|
@@ -1707,19 +1716,13 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1707
1716
|
var element = scrollParentElements_1[_i];
|
|
1708
1717
|
EventHandler.add(element, 'scroll', _this.scrollHandler, _this);
|
|
1709
1718
|
}
|
|
1710
|
-
if (Browser.isDevice && _this.isFilterLayout()) {
|
|
1711
|
-
EventHandler.add(_this.list, 'scroll', _this.listScroll, _this);
|
|
1712
|
-
}
|
|
1713
1719
|
if (!isNullOrUndefined(_this.list)) {
|
|
1714
1720
|
_this.unWireListEvents();
|
|
1715
1721
|
_this.wireListEvents();
|
|
1716
1722
|
}
|
|
1717
1723
|
_this.selectedElementID = _this.selectedLI ? _this.selectedLI.id : null;
|
|
1718
|
-
attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.inputElement.id + '_options'
|
|
1724
|
+
attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.inputElement.id + '_options' });
|
|
1719
1725
|
_this.inputElement.setAttribute('aria-expanded', 'true');
|
|
1720
|
-
if (_this.selectedElementID == null) {
|
|
1721
|
-
_this.targetElement().removeAttribute('aria-activedescendant');
|
|
1722
|
-
}
|
|
1723
1726
|
var inputParent = _this.isFiltering() ? _this.filterInput.parentElement : _this.inputWrapper.container;
|
|
1724
1727
|
addClass([inputParent], [dropDownListClasses.inputFocus]);
|
|
1725
1728
|
var animModel = { name: 'FadeIn', duration: 100 };
|
|
@@ -1788,6 +1791,12 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1788
1791
|
var actionList = _this.actionCompleteData && _this.actionCompleteData.ulElement &&
|
|
1789
1792
|
_this.actionCompleteData.ulElement.querySelector('li');
|
|
1790
1793
|
var ulElement = _this.list.querySelector('ul li');
|
|
1794
|
+
if (!isNullOrUndefined(_this.ulElement) && !isNullOrUndefined(_this.ulElement.getElementsByClassName('e-item-focus')[0])) {
|
|
1795
|
+
attributes(_this.targetElement(), { 'aria-activedescendant': _this.ulElement.getElementsByClassName('e-item-focus')[0].id });
|
|
1796
|
+
}
|
|
1797
|
+
else if (!isNullOrUndefined(_this.ulElement) && !isNullOrUndefined(_this.ulElement.getElementsByClassName('e-active')[0])) {
|
|
1798
|
+
attributes(_this.targetElement(), { 'aria-activedescendant': _this.ulElement.getElementsByClassName('e-active')[0].id });
|
|
1799
|
+
}
|
|
1791
1800
|
if (_this.isFiltering() && _this.itemTemplate && (_this.element.tagName === _this.getNgDirective()) &&
|
|
1792
1801
|
(actionList && ulElement && actionList.textContent !== ulElement.textContent) &&
|
|
1793
1802
|
_this.element.tagName !== 'EJS-COMBOBOX') {
|
|
@@ -1943,9 +1952,6 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1943
1952
|
this.filterInput.value = this.typedString = '';
|
|
1944
1953
|
this.searchLists(null);
|
|
1945
1954
|
};
|
|
1946
|
-
DropDownList.prototype.listScroll = function () {
|
|
1947
|
-
this.filterInput.blur();
|
|
1948
|
-
};
|
|
1949
1955
|
DropDownList.prototype.setEleWidth = function (width) {
|
|
1950
1956
|
if (!isNullOrUndefined(width)) {
|
|
1951
1957
|
if (typeof width === 'number') {
|
|
@@ -1974,7 +1980,6 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1974
1980
|
}
|
|
1975
1981
|
if (Browser.isDevice && this.isFilterLayout()) {
|
|
1976
1982
|
removeClass([document.body, this.popupObj.element], dropDownListClasses.popupFullScreen);
|
|
1977
|
-
EventHandler.remove(this.list, 'scroll', this.listScroll);
|
|
1978
1983
|
}
|
|
1979
1984
|
if (this.isFilterLayout()) {
|
|
1980
1985
|
if (!Browser.isDevice) {
|
|
@@ -2588,10 +2593,6 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2588
2593
|
if (!isNullOrUndefined(this.list.children[0]) || this.list.classList.contains(dropDownBaseClasses.noData)) {
|
|
2589
2594
|
this.renderPopup(e);
|
|
2590
2595
|
}
|
|
2591
|
-
attributes(this.targetElement(), { 'aria-activedescendant': this.selectedElementID });
|
|
2592
|
-
if (this.selectedElementID == null) {
|
|
2593
|
-
this.targetElement().removeAttribute('aria-activedescendant');
|
|
2594
|
-
}
|
|
2595
2596
|
};
|
|
2596
2597
|
DropDownList.prototype.renderHightSearch = function () {
|
|
2597
2598
|
// update high light search
|
package/src/list-box/list-box.js
CHANGED
|
@@ -1139,12 +1139,12 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1139
1139
|
if (li && li.parentElement) {
|
|
1140
1140
|
currSelIdx = [].slice.call(li.parentElement.children).indexOf(li);
|
|
1141
1141
|
if (!this.selectionSettings.showCheckbox) {
|
|
1142
|
-
if ((e.ctrlKey || Browser.isDevice) && this.isSelected(li)) {
|
|
1142
|
+
if ((e.ctrlKey || e.metaKey || Browser.isDevice) && this.isSelected(li)) {
|
|
1143
1143
|
li.classList.remove(cssClass.selected);
|
|
1144
1144
|
li.removeAttribute('aria-selected');
|
|
1145
1145
|
isSelect = false;
|
|
1146
1146
|
}
|
|
1147
|
-
else if (!(this.selectionSettings.mode === 'Multiple' && (e.ctrlKey || Browser.isDevice))) {
|
|
1147
|
+
else if (!(this.selectionSettings.mode === 'Multiple' && (e.ctrlKey || e.metaKey || Browser.isDevice))) {
|
|
1148
1148
|
this.getSelectedItems().forEach(function (ele) {
|
|
1149
1149
|
ele.removeAttribute('aria-selected');
|
|
1150
1150
|
});
|
|
@@ -1616,12 +1616,21 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
return listObj;
|
|
1618
1618
|
};
|
|
1619
|
-
ListBox.prototype.getGrabbedItems = function () {
|
|
1619
|
+
ListBox.prototype.getGrabbedItems = function (args) {
|
|
1620
|
+
var grabbItems = false;
|
|
1620
1621
|
for (var i = 0; i < this.value.length; i++) {
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1622
|
+
if (this.value[i] === this.getFormattedValue(args.target.getAttribute('data-value'))) {
|
|
1623
|
+
grabbItems = true;
|
|
1624
|
+
break;
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
if (grabbItems) {
|
|
1628
|
+
for (var i = 0; i < this.value.length; i++) {
|
|
1629
|
+
var liColl = this.list.querySelectorAll('[aria-selected="true"]');
|
|
1630
|
+
for (var j = 0; j < liColl.length; j++) {
|
|
1631
|
+
if (this.value[i] === this.getFormattedValue(liColl[j].getAttribute('data-value'))) {
|
|
1632
|
+
liColl[j].classList.add('e-grabbed');
|
|
1633
|
+
}
|
|
1625
1634
|
}
|
|
1626
1635
|
}
|
|
1627
1636
|
}
|
|
@@ -1635,7 +1644,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1635
1644
|
return elems;
|
|
1636
1645
|
};
|
|
1637
1646
|
ListBox.prototype.getDragArgs = function (args, isDragEnd) {
|
|
1638
|
-
var elems = this.getGrabbedItems();
|
|
1647
|
+
var elems = this.getGrabbedItems(args);
|
|
1639
1648
|
if (elems.length) {
|
|
1640
1649
|
if (isDragEnd) {
|
|
1641
1650
|
elems.push(args.target);
|
|
@@ -636,6 +636,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
636
636
|
private validateValues;
|
|
637
637
|
private updateValueState;
|
|
638
638
|
private updateTempValue;
|
|
639
|
+
private updateAriaActiveDescendant;
|
|
639
640
|
private getPagingCount;
|
|
640
641
|
private pageUpSelection;
|
|
641
642
|
private pageDownSelection;
|
|
@@ -252,12 +252,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
252
252
|
_this.renderReactTemplates();
|
|
253
253
|
_this.popupObj.show(eventArgs.animation, (_this.zIndex === 1000) ? _this.element : null);
|
|
254
254
|
attributes(_this.inputElement, { 'aria-expanded': 'true', 'aria-owns': _this.inputElement.id + '_options' });
|
|
255
|
-
|
|
256
|
-
_this.inputElement.removeAttribute('aria-activedescendant');
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
attributes(_this.inputElement, { 'aria-activedescendant': _this.selectedElementID });
|
|
260
|
-
}
|
|
255
|
+
_this.updateAriaActiveDescendant();
|
|
261
256
|
if (_this.isFirstClick) {
|
|
262
257
|
_this.loadTemplate();
|
|
263
258
|
}
|
|
@@ -407,13 +402,23 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
407
402
|
if (!isNullOrUndefined(this.value) && !this.allowCustomValue) {
|
|
408
403
|
for (var i = 0; i < this.value.length; i++) {
|
|
409
404
|
var checkEle = this.findListElement(((this.allowFiltering && !isNullOrUndefined(this.mainList)) ? this.mainList : ulElement), 'li', 'data-value', proxy.value[i]);
|
|
410
|
-
if (!checkEle) {
|
|
405
|
+
if (!checkEle && !(this.dataSource instanceof DataManager)) {
|
|
411
406
|
this.value.splice(i, 1);
|
|
412
407
|
i -= 1;
|
|
413
408
|
}
|
|
414
409
|
}
|
|
415
410
|
}
|
|
416
|
-
|
|
411
|
+
var valuecheck = [];
|
|
412
|
+
if (!isNullOrUndefined(this.value) && !this.allowCustomValue) {
|
|
413
|
+
valuecheck = this.presentItemValue(this.ulElement);
|
|
414
|
+
}
|
|
415
|
+
if (valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
|
|
416
|
+
&& this.listData != null) {
|
|
417
|
+
this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
this.updateActionList(ulElement, list, e);
|
|
421
|
+
}
|
|
417
422
|
if (this.dataSource instanceof DataManager && this.mode === 'CheckBox' && this.allowFiltering) {
|
|
418
423
|
this.removeFocus();
|
|
419
424
|
}
|
|
@@ -495,6 +500,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
495
500
|
dropDownBaseClasses.li + ':not(.' + HIDE_LIST + ')');
|
|
496
501
|
if (listEle.length > 0) {
|
|
497
502
|
addClass([listEle[0]], dropDownBaseClasses.focus);
|
|
503
|
+
this.updateAriaActiveDescendant();
|
|
498
504
|
}
|
|
499
505
|
else {
|
|
500
506
|
//EJ2-57588 - for this task, we prevent the ul element cloning ( this.ulElement = this.ulElement.cloneNode ? <HTMLElement>this.ulElement.cloneNode(true) : this.ulElement;)
|
|
@@ -942,6 +948,11 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
942
948
|
this.tempValues = this.value.slice();
|
|
943
949
|
}
|
|
944
950
|
};
|
|
951
|
+
MultiSelect.prototype.updateAriaActiveDescendant = function () {
|
|
952
|
+
if (!isNullOrUndefined(this.ulElement) && !isNullOrUndefined(this.ulElement.getElementsByClassName('e-item-focus')[0])) {
|
|
953
|
+
attributes(this.inputElement, { 'aria-activedescendant': this.ulElement.getElementsByClassName('e-item-focus')[0].id });
|
|
954
|
+
}
|
|
955
|
+
};
|
|
945
956
|
MultiSelect.prototype.getPagingCount = function () {
|
|
946
957
|
var height = this.list.classList.contains(dropDownBaseClasses.noData) ? null :
|
|
947
958
|
getComputedStyle(this.getItems()[0], null).getPropertyValue('height');
|
|
@@ -1085,6 +1096,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1085
1096
|
var element = scrollEle[(isHome) ? 0 : (scrollEle.length - 1)];
|
|
1086
1097
|
element.classList.add(dropDownBaseClasses.focus);
|
|
1087
1098
|
this.scrollBottom(element);
|
|
1099
|
+
this.updateAriaActiveDescendant();
|
|
1088
1100
|
}
|
|
1089
1101
|
};
|
|
1090
1102
|
MultiSelect.prototype.onKeyDown = function (e) {
|
|
@@ -1586,7 +1598,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1586
1598
|
};
|
|
1587
1599
|
MultiSelect.prototype.invokeCheckboxSelection = function (element, eve, isClearAll) {
|
|
1588
1600
|
this.notify('updatelist', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox', li: element, e: eve });
|
|
1589
|
-
|
|
1601
|
+
this.updateAriaActiveDescendant();
|
|
1590
1602
|
if ((this.value && this.value.length !== this.mainData.length)
|
|
1591
1603
|
&& (this.mode === 'CheckBox' && this.showSelectAll && !(this.isSelectAll || isClearAll))) {
|
|
1592
1604
|
this.notify('checkSelectAll', {
|
|
@@ -2609,10 +2621,12 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2609
2621
|
if (this.enabled && this.isValidLI(element)) {
|
|
2610
2622
|
this.removeFocus();
|
|
2611
2623
|
addClass([element], dropDownBaseClasses.focus);
|
|
2624
|
+
this.updateAriaActiveDescendant();
|
|
2612
2625
|
}
|
|
2613
2626
|
else {
|
|
2614
2627
|
if (this.enableGroupCheckBox && this.mode === 'CheckBox' && !isNullOrUndefined(this.fields.groupBy)) {
|
|
2615
2628
|
addClass([element], dropDownBaseClasses.focus);
|
|
2629
|
+
this.updateAriaActiveDescendant();
|
|
2616
2630
|
}
|
|
2617
2631
|
}
|
|
2618
2632
|
};
|
|
@@ -3181,6 +3195,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3181
3195
|
target.classList.remove('e-active');
|
|
3182
3196
|
}
|
|
3183
3197
|
target.classList.add('e-item-focus');
|
|
3198
|
+
this.updateAriaActiveDescendant();
|
|
3184
3199
|
}
|
|
3185
3200
|
this.textboxValueUpdate();
|
|
3186
3201
|
this.checkPlaceholderSize();
|
|
@@ -3571,7 +3586,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3571
3586
|
MultiSelect.prototype.addNonPresentItems = function (valuecheck, ulElement, list, event) {
|
|
3572
3587
|
var _this = this;
|
|
3573
3588
|
this.dataSource.executeQuery(this.getForQuery(valuecheck)).then(function (e) {
|
|
3574
|
-
|
|
3589
|
+
if (e.result.length > 0) {
|
|
3590
|
+
_this.addItem(e.result, list.length);
|
|
3591
|
+
}
|
|
3575
3592
|
_this.updateActionList(ulElement, list, event);
|
|
3576
3593
|
});
|
|
3577
3594
|
};
|
|
@@ -3807,7 +3824,8 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3807
3824
|
spellcheck: 'false',
|
|
3808
3825
|
type: 'text',
|
|
3809
3826
|
autocomplete: 'off',
|
|
3810
|
-
tabindex: '0'
|
|
3827
|
+
tabindex: '0',
|
|
3828
|
+
role: 'combobox'
|
|
3811
3829
|
}
|
|
3812
3830
|
});
|
|
3813
3831
|
if (this.mode === 'Default' || this.mode === 'Box') {
|
|
@@ -2184,6 +2184,10 @@ ejs-multiselect {
|
|
|
2184
2184
|
display: none;
|
|
2185
2185
|
}
|
|
2186
2186
|
|
|
2187
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2188
|
+
margin-right: 0;
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2187
2191
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2188
2192
|
color: #f0f0f0;
|
|
2189
2193
|
}
|
package/styles/bootstrap.css
CHANGED
|
@@ -2183,6 +2183,10 @@ ejs-multiselect {
|
|
|
2183
2183
|
display: none;
|
|
2184
2184
|
}
|
|
2185
2185
|
|
|
2186
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2187
|
+
margin-right: 0;
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2186
2190
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2187
2191
|
color: #333;
|
|
2188
2192
|
}
|
package/styles/bootstrap4.css
CHANGED
|
@@ -2346,6 +2346,10 @@ ejs-multiselect {
|
|
|
2346
2346
|
display: none;
|
|
2347
2347
|
}
|
|
2348
2348
|
|
|
2349
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2350
|
+
margin-right: 0;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2349
2353
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2350
2354
|
color: #fff;
|
|
2351
2355
|
}
|
|
@@ -2351,6 +2351,10 @@ ejs-multiselect {
|
|
|
2351
2351
|
display: none;
|
|
2352
2352
|
}
|
|
2353
2353
|
|
|
2354
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2355
|
+
margin-right: 0;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2354
2358
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2355
2359
|
color: #fff;
|
|
2356
2360
|
}
|
package/styles/bootstrap5.css
CHANGED
|
@@ -2351,6 +2351,10 @@ ejs-multiselect {
|
|
|
2351
2351
|
display: none;
|
|
2352
2352
|
}
|
|
2353
2353
|
|
|
2354
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2355
|
+
margin-right: 0;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2354
2358
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2355
2359
|
color: #212529;
|
|
2356
2360
|
}
|
package/styles/fabric-dark.css
CHANGED
|
@@ -2163,6 +2163,10 @@ ejs-multiselect {
|
|
|
2163
2163
|
display: none;
|
|
2164
2164
|
}
|
|
2165
2165
|
|
|
2166
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2167
|
+
margin-right: 0;
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2166
2170
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2167
2171
|
color: #fff;
|
|
2168
2172
|
}
|
package/styles/fabric.css
CHANGED
|
@@ -2157,6 +2157,10 @@ ejs-multiselect {
|
|
|
2157
2157
|
display: none;
|
|
2158
2158
|
}
|
|
2159
2159
|
|
|
2160
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2161
|
+
margin-right: 0;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2160
2164
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2161
2165
|
color: #666;
|
|
2162
2166
|
}
|
package/styles/fluent-dark.css
CHANGED
|
@@ -2391,6 +2391,10 @@ ejs-multiselect {
|
|
|
2391
2391
|
display: none;
|
|
2392
2392
|
}
|
|
2393
2393
|
|
|
2394
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2395
|
+
margin-right: 0;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2394
2398
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2395
2399
|
color: #f3f2f1;
|
|
2396
2400
|
}
|
package/styles/fluent.css
CHANGED
|
@@ -2391,6 +2391,10 @@ ejs-multiselect {
|
|
|
2391
2391
|
display: none;
|
|
2392
2392
|
}
|
|
2393
2393
|
|
|
2394
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2395
|
+
margin-right: 0;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2394
2398
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2395
2399
|
color: #201f1e;
|
|
2396
2400
|
}
|
|
@@ -2262,6 +2262,10 @@ ejs-multiselect {
|
|
|
2262
2262
|
display: none;
|
|
2263
2263
|
}
|
|
2264
2264
|
|
|
2265
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2266
|
+
margin-right: 0;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2265
2269
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2266
2270
|
color: #fff;
|
|
2267
2271
|
}
|
package/styles/highcontrast.css
CHANGED
|
@@ -2268,6 +2268,10 @@ ejs-multiselect {
|
|
|
2268
2268
|
display: none;
|
|
2269
2269
|
}
|
|
2270
2270
|
|
|
2271
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2272
|
+
margin-right: 0;
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2271
2275
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
2272
2276
|
color: #000;
|
|
2273
2277
|
}
|
package/styles/material-dark.css
CHANGED
|
@@ -3549,6 +3549,10 @@ ejs-multiselect {
|
|
|
3549
3549
|
display: none;
|
|
3550
3550
|
}
|
|
3551
3551
|
|
|
3552
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
3553
|
+
margin-right: 0;
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3552
3556
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
3553
3557
|
color: #fff;
|
|
3554
3558
|
}
|
package/styles/material.css
CHANGED
|
@@ -3606,6 +3606,10 @@ ejs-multiselect {
|
|
|
3606
3606
|
display: none;
|
|
3607
3607
|
}
|
|
3608
3608
|
|
|
3609
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
3610
|
+
margin-right: 0;
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3609
3613
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
3610
3614
|
color: #fff;
|
|
3611
3615
|
}
|
|
@@ -2000,3 +2000,7 @@ ejs-multiselect {
|
|
|
2000
2000
|
.e-multiselect.e-readonly.e-control-wrapper.e-input-group.e-control-container.e-input-group :not(.e-disabled).e-multi-select-wrapper:hover .e-clear-icon {
|
|
2001
2001
|
display: none;
|
|
2002
2002
|
}
|
|
2003
|
+
|
|
2004
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
2005
|
+
margin-right: 0;
|
|
2006
|
+
}
|
|
@@ -1027,6 +1027,10 @@ ejs-multiselect {
|
|
|
1027
1027
|
display: none;
|
|
1028
1028
|
}
|
|
1029
1029
|
|
|
1030
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
1031
|
+
margin-right: 0;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1030
1034
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
1031
1035
|
color: #f0f0f0;
|
|
1032
1036
|
}
|
|
@@ -1025,6 +1025,10 @@ ejs-multiselect {
|
|
|
1025
1025
|
display: none;
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
1029
|
+
margin-right: 0;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1028
1032
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
1029
1033
|
color: #333;
|
|
1030
1034
|
}
|
|
@@ -1126,6 +1126,10 @@ ejs-multiselect {
|
|
|
1126
1126
|
display: none;
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
1130
|
+
margin-right: 0;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1129
1133
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
1130
1134
|
color: #fff;
|
|
1131
1135
|
}
|
|
@@ -1106,6 +1106,10 @@ ejs-multiselect {
|
|
|
1106
1106
|
display: none;
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
1110
|
+
margin-right: 0;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1109
1113
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
1110
1114
|
color: #fff;
|
|
1111
1115
|
}
|
|
@@ -1106,6 +1106,10 @@ ejs-multiselect {
|
|
|
1106
1106
|
display: none;
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
1110
|
+
margin-right: 0;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1109
1113
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
1110
1114
|
color: #212529;
|
|
1111
1115
|
}
|
|
@@ -1028,6 +1028,10 @@ ejs-multiselect {
|
|
|
1028
1028
|
display: none;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
1032
|
+
margin-right: 0;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1031
1035
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
1032
1036
|
color: #fff;
|
|
1033
1037
|
}
|
|
@@ -1028,6 +1028,10 @@ ejs-multiselect {
|
|
|
1028
1028
|
display: none;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
1032
|
+
margin-right: 0;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1031
1035
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
1032
1036
|
color: #666;
|
|
1033
1037
|
}
|
|
@@ -1146,6 +1146,10 @@ ejs-multiselect {
|
|
|
1146
1146
|
display: none;
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
1150
|
+
margin-right: 0;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1149
1153
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
1150
1154
|
color: #f3f2f1;
|
|
1151
1155
|
}
|
|
@@ -1146,6 +1146,10 @@ ejs-multiselect {
|
|
|
1146
1146
|
display: none;
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
|
+
.e-multiselect.e-input-group.e-control-wrapper .e-input-group-icon {
|
|
1150
|
+
margin-right: 0;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1149
1153
|
.e-multi-select-wrapper .e-chips.e-chip-selected .e-chips-close::before {
|
|
1150
1154
|
color: #201f1e;
|
|
1151
1155
|
}
|