@syncfusion/ej2-dropdowns 28.2.7 → 28.2.11

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.
@@ -5121,7 +5121,7 @@ let DropDownList = class DropDownList extends DropDownBase {
5121
5121
  && ((this.dataSource instanceof DataManager)
5122
5122
  || (!isNullOrUndefined(this.dataSource) && !isNullOrUndefined(this.dataSource.length) &&
5123
5123
  this.dataSource.length !== 0)))) {
5124
- if (this.itemTemplate && this.element.tagName === 'EJS-COMBOBOX' && this.allowFiltering) {
5124
+ if (this.itemTemplate && (this.element.tagName === 'EJS-COMBOBOX' || this.isReact) && this.allowFiltering) {
5125
5125
  setTimeout(() => {
5126
5126
  this.updateActionCompleteDataValues(ulElement, list);
5127
5127
  }, 0);
@@ -12987,11 +12987,13 @@ let MultiSelect = class MultiSelect extends DropDownBase {
12987
12987
  for (let i = 0; i < valuecheck.length; i++) {
12988
12988
  const value = this.allowObjectBinding ? getValue((this.fields.value) ?
12989
12989
  this.fields.value : '', valuecheck[i]) : valuecheck[i];
12990
- if (i === 0) {
12991
- predicate = new Predicate(field, 'notequal', (value));
12990
+ if (this.isaddNonPresentItems) {
12991
+ predicate = i === 0 ? new Predicate(field, 'equal', valuecheck[i])
12992
+ : predicate.or(field, 'equal', valuecheck[i]);
12992
12993
  }
12993
12994
  else {
12994
- predicate = predicate.and(field, 'notequal', (value));
12995
+ predicate = i === 0 ? predicate = new Predicate(field, 'notequal', (value))
12996
+ : predicate.and(field, 'notequal', (value));
12995
12997
  }
12996
12998
  }
12997
12999
  return new Query().where(predicate);
@@ -13058,8 +13060,10 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13058
13060
  valuecheck = this.presentItemValue(this.ulElement);
13059
13061
  }
13060
13062
  if (valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
13061
- && this.listData != null && !this.enableVirtualization) {
13063
+ && this.listData != null) {
13064
+ this.isaddNonPresentItems = true;
13062
13065
  this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
13066
+ this.isaddNonPresentItems = false;
13063
13067
  }
13064
13068
  else {
13065
13069
  this.updateActionList(ulElement, list, e);
@@ -13419,6 +13423,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13419
13423
  filterQuery.take(takeValue);
13420
13424
  }
13421
13425
  filterQuery.requiresCount();
13426
+ this.customFilterQuery = null;
13422
13427
  return filterQuery;
13423
13428
  }
13424
13429
  getTakeValue() {
@@ -16047,6 +16052,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16047
16052
  this.isCustomRendered = false;
16048
16053
  this.isRemoteSelection = false;
16049
16054
  this.isSelectAllTarget = true;
16055
+ this.isaddNonPresentItems = false;
16050
16056
  this.viewPortInfo = {
16051
16057
  currentPageNumber: null,
16052
16058
  direction: null,
@@ -17813,10 +17819,12 @@ let MultiSelect = class MultiSelect extends DropDownBase {
17813
17819
  valuecheck = this.presentItemValue(this.ulElement);
17814
17820
  }
17815
17821
  if (prop === 'value' && valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
17816
- && this.listData != null && !this.enableVirtualization) {
17822
+ && this.listData != null) {
17817
17823
  this.mainData = null;
17818
17824
  this.setDynValue = true;
17825
+ this.isaddNonPresentItems = true;
17819
17826
  this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
17827
+ this.isaddNonPresentItems = false;
17820
17828
  }
17821
17829
  else {
17822
17830
  if (prop === 'text') {
@@ -17832,9 +17840,12 @@ let MultiSelect = class MultiSelect extends DropDownBase {
17832
17840
  const list = this.mainList.cloneNode ? this.mainList.cloneNode(true) : this.mainList;
17833
17841
  this.onActionComplete(list, this.mainData);
17834
17842
  }
17835
- if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
17843
+ if (!this.enableVirtualization) {
17836
17844
  this.initialValueUpdate();
17837
17845
  }
17846
+ else if (this.enableVirtualization && (!(this.dataSource instanceof DataManager))) {
17847
+ this.initialValueUpdate(this.dataSource, true);
17848
+ }
17838
17849
  else if (!this.isInitRemoteVirtualData) {
17839
17850
  this.isDynamicRemoteVirtualData = true;
17840
17851
  this.initialValueUpdate(this.listData, true);
@@ -21446,7 +21457,8 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
21446
21457
  }
21447
21458
  const char = String.fromCharCode(e.keyCode);
21448
21459
  const isWordCharacter = char.match(/\w/);
21449
- if (!isNullOrUndefined(isWordCharacter)) {
21460
+ const isWordAccentCharacter = char.match(/[A-Za-z0-9\u00C0-\u024F ]/);
21461
+ if (!isNullOrUndefined(isWordCharacter) || !isNullOrUndefined(isWordAccentCharacter)) {
21450
21462
  this.isValidKey = true;
21451
21463
  }
21452
21464
  this.isBackSpace = e.keyCode === 8;
@@ -23347,8 +23359,7 @@ let Mention = class Mention extends DropDownBase {
23347
23359
  if (lastNode) {
23348
23360
  range = range.cloneRange();
23349
23361
  if (this.isRTE) {
23350
- range.setStart(lastNode, 0);
23351
- range.setEnd(lastNode, lastNode.textContent.length);
23362
+ range.setStart(lastNode, lastNode.textContent.length);
23352
23363
  }
23353
23364
  else {
23354
23365
  range.setStartAfter(lastNode);