@syncfusion/ej2-dropdowns 26.1.38 → 26.1.40

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.
@@ -4577,6 +4577,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4577
4577
  this.isDataFetched = false;
4578
4578
  if (this.isFiltering()) {
4579
4579
  this.checkAndResetCache();
4580
+ this.isRequesting = false;
4580
4581
  var eventArgs_1 = {
4581
4582
  preventDefaultAction: false,
4582
4583
  text: this.filterInput.value,
@@ -7354,7 +7355,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
7354
7355
  var checkValue;
7355
7356
  var isObjectValue = isChild && isChildFiltering && this.isChildObject();
7356
7357
  checkValue = isObjectValue ? node[this.fields.child.text] : node[this.fields.text];
7357
- if (!checkValue) {
7358
+ if (!checkValue && !isNullOrUndefined(this.fields.child.text)) {
7358
7359
  var tempChild = this.fields.child;
7359
7360
  while (!node[tempChild.text]) {
7360
7361
  tempChild = tempChild.child;
@@ -8817,7 +8818,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
8817
8818
  this.ensurePlaceHolder();
8818
8819
  }
8819
8820
  if (this.showSelectAll && this.checkBoxElement) {
8820
- var nodes = this.treeObj.element.querySelectorAll('li');
8821
8821
  var checkedNodes = this.treeObj.element.querySelectorAll('li[aria-checked=true]');
8822
8822
  var wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
8823
8823
  if (wrap && args.action === 'uncheck' && (args.isInteracted || checkedNodes.length === 0 || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'false'))) {
@@ -8825,13 +8825,19 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
8825
8825
  this.changeState(wrap, 'uncheck');
8826
8826
  this.isReverseUpdate = false;
8827
8827
  }
8828
- else if (wrap && args.action === 'check' && checkedNodes.length === nodes.length && (args.isInteracted || this.isCheckAllCalled || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'true'))) {
8828
+ else if (wrap && args.action === 'check'
8829
+ && checkedNodes.length === this.fields.dataSource.length
8830
+ && (args.isInteracted || this.isCheckAllCalled || (!isNullOrUndefined(args.data[0]) && args.data[0].isChecked === 'true'))) {
8829
8831
  this.isReverseUpdate = true;
8830
8832
  this.isCheckAllCalled = false;
8831
8833
  this.changeState(wrap, 'check');
8832
8834
  this.isReverseUpdate = false;
8833
8835
  }
8834
8836
  }
8837
+ if (this.isValueChange && !this.changeOnBlur) {
8838
+ this.triggerChangeEvent(this.keyEventArgs);
8839
+ this.isValueChange = false;
8840
+ }
8835
8841
  };
8836
8842
  DropDownTree.prototype.beforeCheck = function (args) {
8837
8843
  if (args.isInteracted) {
@@ -11281,6 +11287,7 @@ var AutoComplete = /** @__PURE__ @class */ (function (_super) {
11281
11287
  }
11282
11288
  this.isSelected = false;
11283
11289
  this.activeIndex = null;
11290
+ this.isRequesting = false;
11284
11291
  var eventArgs = {
11285
11292
  preventDefaultAction: false,
11286
11293
  text: this.filterInput.value,
@@ -14944,6 +14951,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14944
14951
  this.isRemoteSelection = true;
14945
14952
  }
14946
14953
  this.checkAndResetCache();
14954
+ this.isRequesting = false;
14947
14955
  var eventArgs_1 = {
14948
14956
  preventDefaultAction: false,
14949
14957
  text: this.targetElement(),
@@ -19409,6 +19417,9 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
19409
19417
  if (this.height.toString().indexOf('%') < 0) {
19410
19418
  addClass([this.list], 'e-filter-list');
19411
19419
  }
19420
+ else if (this.height.toString().indexOf('%') > 0) {
19421
+ this.ulElement.style.height = (this.ulElement.offsetHeight - this.filterParent.offsetHeight) + 'px';
19422
+ }
19412
19423
  this.inputString = this.filterInput.value;
19413
19424
  this.filterWireEvents();
19414
19425
  return filterInputObj;
@@ -19993,7 +20004,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
19993
20004
  else {
19994
20005
  elems = [args.target];
19995
20006
  }
19996
- return { elements: elems, items: this.getDataByElems(elems) };
20007
+ return { elements: elems, event: args.event, items: this.getDataByElems(elems) };
19997
20008
  };
19998
20009
  ListBox.prototype.onKeyDown = function (e) {
19999
20010
  this.keyDownHandler(e);
@@ -20968,7 +20979,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
20968
20979
  var isNavigation = (e.action === 'down' || e.action === 'up' || e.action === 'pageUp' || e.action === 'pageDown'
20969
20980
  || e.action === 'home' || e.action === 'end');
20970
20981
  var isTabAction = e.action === 'tab' || e.action === 'close';
20971
- if (this.list === undefined && !this.isRequested && !isTabAction && e.action !== 'escape' && e.action !== 'space') {
20982
+ if (this.list === undefined && !this.isRequested && !isTabAction && e.action !== 'escape' && e.action !== 'space' && this.mentionChar.charCodeAt(0) === this.getLastLetter(this.getTextRange()).charCodeAt(0)) {
20972
20983
  this.renderList();
20973
20984
  }
20974
20985
  if (isNullOrUndefined(this.list) || (!isNullOrUndefined(this.liCollections) &&
@@ -21067,7 +21078,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
21067
21078
  }
21068
21079
  this.isTyped = e.code !== 'Enter' && e.code !== 'Space' && e.code !== 'ArrowDown' && e.code !== 'ArrowUp' ? true : false;
21069
21080
  var isRteImage = document.activeElement.parentElement && document.activeElement.parentElement.querySelector('.e-rte-image') ? true : false;
21070
- if (document.activeElement != this.inputElement && isRteImage) {
21081
+ if (document.activeElement != this.inputElement && !isRteImage) {
21071
21082
  this.inputElement.focus();
21072
21083
  }
21073
21084
  if (this.isContentEditable(this.inputElement)) {