@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.
@@ -5516,6 +5516,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
5516
5516
  }
5517
5517
  };
5518
5518
  DropDownTree.prototype.setValidValue = function () {
5519
+ var _this = this;
5519
5520
  if (!this.showCheckBox && !this.allowMultiSelection) {
5520
5521
  Input.setValue(this.text, this.inputEle, this.floatLabelType);
5521
5522
  var id = this.value[0].toString();
@@ -5525,9 +5526,14 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
5525
5526
  }
5526
5527
  else {
5527
5528
  if (this.showCheckBox) {
5528
- this.treeObj.checkedNodes = this.value.slice();
5529
- this.treeObj.dataBind();
5530
- this.setMultiSelect();
5529
+ var difference = this.value.filter(function (e) {
5530
+ return _this.treeObj.checkedNodes.indexOf(e) === -1;
5531
+ });
5532
+ if (difference.length > 0 || this.treeSettings.autoCheck) {
5533
+ this.treeObj.checkedNodes = this.value.slice();
5534
+ this.treeObj.dataBind();
5535
+ this.setMultiSelect();
5536
+ }
5531
5537
  }
5532
5538
  else {
5533
5539
  this.treeObj.selectedNodes = this.value.slice();
@@ -6565,6 +6571,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
6565
6571
  this.ensurePlaceHolder();
6566
6572
  };
6567
6573
  DropDownTree.prototype.resetValue = function (isDynamicChange) {
6574
+ if (this.value == [] && this.text == null) {
6575
+ return;
6576
+ }
6568
6577
  Input.setValue(null, this.inputEle, this.floatLabelType);
6569
6578
  if (!isDynamicChange) {
6570
6579
  this.oldValue = this.value;
@@ -6576,7 +6585,8 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
6576
6585
  setValue('selectedNodes', [], this.treeObj);
6577
6586
  this.hiddenElement.innerHTML = '';
6578
6587
  if (this.showCheckBox) {
6579
- this.treeObj.uncheckAll();
6588
+ this.treeObj.checkedNodes = [];
6589
+ this.treeObj.dataBind();
6580
6590
  this.setMultiSelect();
6581
6591
  this.clearCheckAll();
6582
6592
  }
@@ -6954,8 +6964,8 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
6954
6964
  this.updateTemplate();
6955
6965
  }
6956
6966
  this.treeObj.sortOrder = newProp.sortOrder;
6957
- this.updateValue(this.value);
6958
6967
  this.treeObj.dataBind();
6968
+ this.updateValue(this.value);
6959
6969
  break;
6960
6970
  case 'showDropDownIcon':
6961
6971
  this.updateDropDownIconState(newProp.showDropDownIcon);
@@ -9750,6 +9760,13 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
9750
9760
  var focusedItem = this.list.querySelector('.' + dropDownBaseClasses.focus);
9751
9761
  if (!isNullOrUndefined(focusedItem)) {
9752
9762
  this.inputElement.setAttribute('aria-activedescendant', focusedItem.id);
9763
+ if (this.allowFiltering) {
9764
+ var filterInput = this.popupWrapper.querySelector('.' + FILTERINPUT);
9765
+ filterInput && filterInput.setAttribute('aria-activedescendant', focusedItem.id);
9766
+ }
9767
+ else if (this.mode == "CheckBox") {
9768
+ this.overAllWrapper.setAttribute('aria-activedescendant', focusedItem.id);
9769
+ }
9753
9770
  }
9754
9771
  };
9755
9772
  MultiSelect.prototype.homeNavigation = function (isHome) {
@@ -9865,7 +9882,6 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
9865
9882
  this.keyAction = true;
9866
9883
  if (document.activeElement.classList.contains(FILTERINPUT)
9867
9884
  || (this.mode === 'CheckBox' && !this.allowFiltering && document.activeElement !== this.list)) {
9868
- this.list.focus();
9869
9885
  EventHandler.add(this.list, 'keydown', this.onKeyDown, this);
9870
9886
  }
9871
9887
  this.updateAriaAttribute();
@@ -10888,7 +10904,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
10888
10904
  EventHandler.add(this.inputElement, 'input', this.onInput, this);
10889
10905
  }
10890
10906
  EventHandler.add(this.inputElement, 'blur', this.onBlurHandler, this);
10891
- EventHandler.add(this.componentWrapper, 'mousemove', this.mouseIn, this);
10907
+ EventHandler.add(this.componentWrapper, 'mouseover', this.mouseIn, this);
10892
10908
  var formElement = closest(this.inputElement, 'form');
10893
10909
  if (formElement) {
10894
10910
  EventHandler.add(formElement, 'reset', this.resetValueHandler, this);
@@ -11784,7 +11800,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
11784
11800
  EventHandler.remove(formElement, 'reset', this.resetValueHandler);
11785
11801
  }
11786
11802
  EventHandler.remove(this.inputElement, 'blur', this.onBlurHandler);
11787
- EventHandler.remove(this.componentWrapper, 'mousemove', this.mouseIn);
11803
+ EventHandler.remove(this.componentWrapper, 'mouseover', this.mouseIn);
11788
11804
  EventHandler.remove(this.componentWrapper, 'mouseout', this.mouseOut);
11789
11805
  EventHandler.remove(this.overAllClear, 'mousedown', this.clearAll);
11790
11806
  EventHandler.remove(this.inputElement, 'paste', this.pasteHandler);