@syncfusion/ej2-dropdowns 20.1.60 → 20.1.61
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.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +20 -13
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +20 -13
- 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/drop-down-list/drop-down-list.js +5 -7
- package/src/list-box/list-box.d.ts +1 -0
- package/src/list-box/list-box.js +14 -4
- package/src/multi-select/multi-select.js +1 -2
|
@@ -2427,11 +2427,9 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2427
2427
|
if (this.setValue(e)) {
|
|
2428
2428
|
return;
|
|
2429
2429
|
}
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
attributes(this.filterInput, { 'aria-activedescendant': this.selectedLI ? this.selectedLI.id : null });
|
|
2434
|
-
}
|
|
2430
|
+
attributes(this.targetElement(), { 'aria-activedescendant': this.selectedLI ? this.selectedLI.id : null });
|
|
2431
|
+
if (this.isFilterLayout() && this.filterInput) {
|
|
2432
|
+
attributes(this.filterInput, { 'aria-activedescendant': this.selectedLI ? this.selectedLI.id : null });
|
|
2435
2433
|
}
|
|
2436
2434
|
if ((!this.isPopupOpen && !isNullOrUndefined(li)) || (this.isPopupOpen && !isNullOrUndefined(e) &&
|
|
2437
2435
|
(e.type !== 'keydown' || e.type === 'keydown' && e.action === 'enter'))) {
|
|
@@ -3395,7 +3393,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3395
3393
|
EventHandler.remove(this.filterInput, 'paste', this.pasteHandler);
|
|
3396
3394
|
this.filterInput = null;
|
|
3397
3395
|
}
|
|
3398
|
-
attributes(this.targetElement(), { 'aria-expanded': 'false'
|
|
3396
|
+
attributes(this.targetElement(), { 'aria-expanded': 'false' });
|
|
3399
3397
|
this.inputWrapper.container.classList.remove(dropDownListClasses.iconAnimation);
|
|
3400
3398
|
if (this.isFiltering()) {
|
|
3401
3399
|
this.actionCompleteData.isUpdated = false;
|
|
@@ -3628,7 +3626,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3628
3626
|
|| (!(props.dataSource instanceof DataManager) && props.dataSource.length === 0)))) {
|
|
3629
3627
|
this.clearAll(null, props);
|
|
3630
3628
|
}
|
|
3631
|
-
if ((this.fields.groupBy && props.fields) && !this.isGroupChecking) {
|
|
3629
|
+
if ((this.fields.groupBy && props.fields) && !this.isGroupChecking && this.list) {
|
|
3632
3630
|
EventHandler.remove(this.list, 'scroll', this.setFloatingHeader);
|
|
3633
3631
|
EventHandler.add(this.list, 'scroll', this.setFloatingHeader, this);
|
|
3634
3632
|
}
|
|
@@ -8819,7 +8817,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
8819
8817
|
else if (containerAttr.indexOf(htmlAttr) > -1) {
|
|
8820
8818
|
this.overAllWrapper.setAttribute(htmlAttr, this.htmlAttributes[htmlAttr]);
|
|
8821
8819
|
}
|
|
8822
|
-
else {
|
|
8820
|
+
else if (htmlAttr !== 'size') {
|
|
8823
8821
|
this.inputElement.setAttribute(htmlAttr, this.htmlAttributes[htmlAttr]);
|
|
8824
8822
|
}
|
|
8825
8823
|
break;
|
|
@@ -9851,7 +9849,6 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9851
9849
|
if (!document.activeElement.classList.contains(FILTERINPUT)) {
|
|
9852
9850
|
e.preventDefault();
|
|
9853
9851
|
this.keyAction = true;
|
|
9854
|
-
this.list.focus();
|
|
9855
9852
|
}
|
|
9856
9853
|
this.selectByKey(e);
|
|
9857
9854
|
}
|
|
@@ -13409,6 +13406,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
13409
13406
|
}
|
|
13410
13407
|
initWrapper() {
|
|
13411
13408
|
const hiddenSelect = this.createElement('select', { className: 'e-hidden-select', attrs: { 'multiple': '' } });
|
|
13409
|
+
hiddenSelect.style.visibility = 'hidden';
|
|
13412
13410
|
this.list.classList.add('e-listbox-wrapper');
|
|
13413
13411
|
if (this.itemTemplate) {
|
|
13414
13412
|
this.list.classList.add('e-list-template');
|
|
@@ -13734,12 +13732,12 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
13734
13732
|
}
|
|
13735
13733
|
}
|
|
13736
13734
|
beforeDragEnd(args) {
|
|
13737
|
-
|
|
13738
|
-
if (this.value.indexOf(dragValue) > -1) {
|
|
13735
|
+
this.dragValue = this.getFormattedValue(args.droppedElement.getAttribute('data-value'));
|
|
13736
|
+
if (this.value.indexOf(this.dragValue) > -1) {
|
|
13739
13737
|
args.items = this.getDataByValues(this.value);
|
|
13740
13738
|
}
|
|
13741
13739
|
else {
|
|
13742
|
-
args.items = this.getDataByValues([dragValue]);
|
|
13740
|
+
args.items = this.getDataByValues([this.dragValue]);
|
|
13743
13741
|
}
|
|
13744
13742
|
this.trigger('beforeDrop', args);
|
|
13745
13743
|
}
|
|
@@ -14852,7 +14850,16 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
14852
14850
|
return listObj;
|
|
14853
14851
|
}
|
|
14854
14852
|
getGrabbedItems() {
|
|
14855
|
-
|
|
14853
|
+
for (let i = 0; i < this.value.length; i++) {
|
|
14854
|
+
if (this.value[i] === this.dragValue) {
|
|
14855
|
+
const liColl = this.list.querySelectorAll('[aria-selected="true"]');
|
|
14856
|
+
for (let i = 0; i < liColl.length; i++) {
|
|
14857
|
+
liColl[i].classList.add('e-grabbed');
|
|
14858
|
+
}
|
|
14859
|
+
break;
|
|
14860
|
+
}
|
|
14861
|
+
}
|
|
14862
|
+
const elems = Array.prototype.slice.call(this.element.nextElementSibling.querySelectorAll('.e-grabbed'));
|
|
14856
14863
|
return elems;
|
|
14857
14864
|
}
|
|
14858
14865
|
getDragArgs(args, isDragEnd) {
|