@syncfusion/ej2-dropdowns 20.1.58 → 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 +30 -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 +32 -14
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +32 -14
- 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 +14 -8
- 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 +4 -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'))) {
|
|
@@ -2464,13 +2462,21 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
2464
2462
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2465
2463
|
if (this.isReact) {
|
|
2466
2464
|
this.clearTemplate(['valueTemplate']);
|
|
2465
|
+
if (this.valueTempElement) {
|
|
2466
|
+
detach(this.valueTempElement);
|
|
2467
|
+
this.inputElement.style.display = 'block';
|
|
2468
|
+
this.valueTempElement = null;
|
|
2469
|
+
}
|
|
2467
2470
|
}
|
|
2468
2471
|
if (!this.valueTempElement) {
|
|
2469
2472
|
this.valueTempElement = this.createElement('span', { className: dropDownListClasses.value });
|
|
2470
2473
|
this.inputElement.parentElement.insertBefore(this.valueTempElement, this.inputElement);
|
|
2471
2474
|
this.inputElement.style.display = 'none';
|
|
2472
2475
|
}
|
|
2473
|
-
|
|
2476
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2477
|
+
if (!this.isReact) {
|
|
2478
|
+
this.valueTempElement.innerHTML = '';
|
|
2479
|
+
}
|
|
2474
2480
|
const valuecheck = this.dropdownCompiler(this.valueTemplate);
|
|
2475
2481
|
if (valuecheck) {
|
|
2476
2482
|
compiledString = compile(document.querySelector(this.valueTemplate).innerHTML.trim());
|
|
@@ -3387,7 +3393,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3387
3393
|
EventHandler.remove(this.filterInput, 'paste', this.pasteHandler);
|
|
3388
3394
|
this.filterInput = null;
|
|
3389
3395
|
}
|
|
3390
|
-
attributes(this.targetElement(), { 'aria-expanded': 'false'
|
|
3396
|
+
attributes(this.targetElement(), { 'aria-expanded': 'false' });
|
|
3391
3397
|
this.inputWrapper.container.classList.remove(dropDownListClasses.iconAnimation);
|
|
3392
3398
|
if (this.isFiltering()) {
|
|
3393
3399
|
this.actionCompleteData.isUpdated = false;
|
|
@@ -3620,7 +3626,7 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
3620
3626
|
|| (!(props.dataSource instanceof DataManager) && props.dataSource.length === 0)))) {
|
|
3621
3627
|
this.clearAll(null, props);
|
|
3622
3628
|
}
|
|
3623
|
-
if ((this.fields.groupBy && props.fields) && !this.isGroupChecking) {
|
|
3629
|
+
if ((this.fields.groupBy && props.fields) && !this.isGroupChecking && this.list) {
|
|
3624
3630
|
EventHandler.remove(this.list, 'scroll', this.setFloatingHeader);
|
|
3625
3631
|
EventHandler.add(this.list, 'scroll', this.setFloatingHeader, this);
|
|
3626
3632
|
}
|
|
@@ -8811,7 +8817,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
8811
8817
|
else if (containerAttr.indexOf(htmlAttr) > -1) {
|
|
8812
8818
|
this.overAllWrapper.setAttribute(htmlAttr, this.htmlAttributes[htmlAttr]);
|
|
8813
8819
|
}
|
|
8814
|
-
else {
|
|
8820
|
+
else if (htmlAttr !== 'size') {
|
|
8815
8821
|
this.inputElement.setAttribute(htmlAttr, this.htmlAttributes[htmlAttr]);
|
|
8816
8822
|
}
|
|
8817
8823
|
break;
|
|
@@ -9275,6 +9281,9 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9275
9281
|
}
|
|
9276
9282
|
getQuery(query) {
|
|
9277
9283
|
const filterQuery = query ? query.clone() : this.query ? this.query.clone() : new Query();
|
|
9284
|
+
if (this.isFiltered) {
|
|
9285
|
+
return filterQuery;
|
|
9286
|
+
}
|
|
9278
9287
|
if (this.filterAction) {
|
|
9279
9288
|
if (this.targetElement() !== null) {
|
|
9280
9289
|
const dataType = this.typeOfData(this.dataSource).typeof;
|
|
@@ -9840,7 +9849,6 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9840
9849
|
if (!document.activeElement.classList.contains(FILTERINPUT)) {
|
|
9841
9850
|
e.preventDefault();
|
|
9842
9851
|
this.keyAction = true;
|
|
9843
|
-
this.list.focus();
|
|
9844
9852
|
}
|
|
9845
9853
|
this.selectByKey(e);
|
|
9846
9854
|
}
|
|
@@ -13398,6 +13406,7 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
13398
13406
|
}
|
|
13399
13407
|
initWrapper() {
|
|
13400
13408
|
const hiddenSelect = this.createElement('select', { className: 'e-hidden-select', attrs: { 'multiple': '' } });
|
|
13409
|
+
hiddenSelect.style.visibility = 'hidden';
|
|
13401
13410
|
this.list.classList.add('e-listbox-wrapper');
|
|
13402
13411
|
if (this.itemTemplate) {
|
|
13403
13412
|
this.list.classList.add('e-list-template');
|
|
@@ -13723,12 +13732,12 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
13723
13732
|
}
|
|
13724
13733
|
}
|
|
13725
13734
|
beforeDragEnd(args) {
|
|
13726
|
-
|
|
13727
|
-
if (this.value.indexOf(dragValue) > -1) {
|
|
13735
|
+
this.dragValue = this.getFormattedValue(args.droppedElement.getAttribute('data-value'));
|
|
13736
|
+
if (this.value.indexOf(this.dragValue) > -1) {
|
|
13728
13737
|
args.items = this.getDataByValues(this.value);
|
|
13729
13738
|
}
|
|
13730
13739
|
else {
|
|
13731
|
-
args.items = this.getDataByValues([dragValue]);
|
|
13740
|
+
args.items = this.getDataByValues([this.dragValue]);
|
|
13732
13741
|
}
|
|
13733
13742
|
this.trigger('beforeDrop', args);
|
|
13734
13743
|
}
|
|
@@ -14841,7 +14850,16 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
14841
14850
|
return listObj;
|
|
14842
14851
|
}
|
|
14843
14852
|
getGrabbedItems() {
|
|
14844
|
-
|
|
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'));
|
|
14845
14863
|
return elems;
|
|
14846
14864
|
}
|
|
14847
14865
|
getDragArgs(args, isDragEnd) {
|