@syncfusion/ej2-dropdowns 19.3.55 → 19.3.56
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 +14 -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 +23 -8
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +24 -8
- 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-tree/drop-down-tree.js +15 -5
- package/src/multi-select/multi-select.js +9 -3
|
@@ -5433,9 +5433,14 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
5433
5433
|
}
|
|
5434
5434
|
else {
|
|
5435
5435
|
if (this.showCheckBox) {
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5436
|
+
let difference = this.value.filter((e) => {
|
|
5437
|
+
return this.treeObj.checkedNodes.indexOf(e) === -1;
|
|
5438
|
+
});
|
|
5439
|
+
if (difference.length > 0 || this.treeSettings.autoCheck) {
|
|
5440
|
+
this.treeObj.checkedNodes = this.value.slice();
|
|
5441
|
+
this.treeObj.dataBind();
|
|
5442
|
+
this.setMultiSelect();
|
|
5443
|
+
}
|
|
5439
5444
|
}
|
|
5440
5445
|
else {
|
|
5441
5446
|
this.treeObj.selectedNodes = this.value.slice();
|
|
@@ -6471,6 +6476,9 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6471
6476
|
this.ensurePlaceHolder();
|
|
6472
6477
|
}
|
|
6473
6478
|
resetValue(isDynamicChange) {
|
|
6479
|
+
if (this.value == [] && this.text == null) {
|
|
6480
|
+
return;
|
|
6481
|
+
}
|
|
6474
6482
|
Input.setValue(null, this.inputEle, this.floatLabelType);
|
|
6475
6483
|
if (!isDynamicChange) {
|
|
6476
6484
|
this.oldValue = this.value;
|
|
@@ -6482,7 +6490,8 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6482
6490
|
setValue('selectedNodes', [], this.treeObj);
|
|
6483
6491
|
this.hiddenElement.innerHTML = '';
|
|
6484
6492
|
if (this.showCheckBox) {
|
|
6485
|
-
this.treeObj.
|
|
6493
|
+
this.treeObj.checkedNodes = [];
|
|
6494
|
+
this.treeObj.dataBind();
|
|
6486
6495
|
this.setMultiSelect();
|
|
6487
6496
|
this.clearCheckAll();
|
|
6488
6497
|
}
|
|
@@ -6859,8 +6868,8 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
6859
6868
|
this.updateTemplate();
|
|
6860
6869
|
}
|
|
6861
6870
|
this.treeObj.sortOrder = newProp.sortOrder;
|
|
6862
|
-
this.updateValue(this.value);
|
|
6863
6871
|
this.treeObj.dataBind();
|
|
6872
|
+
this.updateValue(this.value);
|
|
6864
6873
|
break;
|
|
6865
6874
|
case 'showDropDownIcon':
|
|
6866
6875
|
this.updateDropDownIconState(newProp.showDropDownIcon);
|
|
@@ -9601,6 +9610,13 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9601
9610
|
const focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
|
|
9602
9611
|
if (!isNullOrUndefined(focusedItem)) {
|
|
9603
9612
|
this.inputElement.setAttribute('aria-activedescendant', focusedItem.id);
|
|
9613
|
+
if (this.allowFiltering) {
|
|
9614
|
+
var filterInput = this.popupWrapper.querySelector('.' + FILTERINPUT);
|
|
9615
|
+
filterInput && filterInput.setAttribute('aria-activedescendant', focusedItem.id);
|
|
9616
|
+
}
|
|
9617
|
+
else if (this.mode == "CheckBox") {
|
|
9618
|
+
this.overAllWrapper.setAttribute('aria-activedescendant', focusedItem.id);
|
|
9619
|
+
}
|
|
9604
9620
|
}
|
|
9605
9621
|
}
|
|
9606
9622
|
homeNavigation(isHome) {
|
|
@@ -9716,7 +9732,6 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
9716
9732
|
this.keyAction = true;
|
|
9717
9733
|
if (document.activeElement.classList.contains(FILTERINPUT)
|
|
9718
9734
|
|| (this.mode === 'CheckBox' && !this.allowFiltering && document.activeElement !== this.list)) {
|
|
9719
|
-
this.list.focus();
|
|
9720
9735
|
EventHandler.add(this.list, 'keydown', this.onKeyDown, this);
|
|
9721
9736
|
}
|
|
9722
9737
|
this.updateAriaAttribute();
|
|
@@ -10735,7 +10750,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
10735
10750
|
EventHandler.add(this.inputElement, 'input', this.onInput, this);
|
|
10736
10751
|
}
|
|
10737
10752
|
EventHandler.add(this.inputElement, 'blur', this.onBlurHandler, this);
|
|
10738
|
-
EventHandler.add(this.componentWrapper, '
|
|
10753
|
+
EventHandler.add(this.componentWrapper, 'mouseover', this.mouseIn, this);
|
|
10739
10754
|
const formElement = closest(this.inputElement, 'form');
|
|
10740
10755
|
if (formElement) {
|
|
10741
10756
|
EventHandler.add(formElement, 'reset', this.resetValueHandler, this);
|
|
@@ -11627,7 +11642,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
11627
11642
|
EventHandler.remove(formElement, 'reset', this.resetValueHandler);
|
|
11628
11643
|
}
|
|
11629
11644
|
EventHandler.remove(this.inputElement, 'blur', this.onBlurHandler);
|
|
11630
|
-
EventHandler.remove(this.componentWrapper, '
|
|
11645
|
+
EventHandler.remove(this.componentWrapper, 'mouseover', this.mouseIn);
|
|
11631
11646
|
EventHandler.remove(this.componentWrapper, 'mouseout', this.mouseOut);
|
|
11632
11647
|
EventHandler.remove(this.overAllClear, 'mousedown', this.clearAll);
|
|
11633
11648
|
EventHandler.remove(this.inputElement, 'paste', this.pasteHandler);
|