@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.2.7
3
+ * version : 28.2.11
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-dropdowns@*",
3
- "_id": "@syncfusion/ej2-dropdowns@28.2.6",
3
+ "_id": "@syncfusion/ej2-dropdowns@28.2.9",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-uQKSk32QXmelpo0QLO6+UsNx7Yj7Tk46Vx54YMsdNAX3hpLdsbEMH9XWfQ2z5MXDKiaWkBl1ajla5tNyWhO6bw==",
5
+ "_integrity": "sha512-z+Y4VJ/zBVjJdz0yOs93+j3eRtSd9kkCcH7YiNl+WEanbyrb31DoMmPZki6TKsbnxkQWz5OHtj76RJUc8hdHPw==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -36,8 +36,8 @@
36
36
  "/@syncfusion/ej2-spreadsheet",
37
37
  "/@syncfusion/ej2-vue-dropdowns"
38
38
  ],
39
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.2.6.tgz",
40
- "_shasum": "f672e6edcd41527eec728f607fdb583708c8b567",
39
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-28.2.9.tgz",
40
+ "_shasum": "e22303acf0b942d118c2f6f9f7151b382033556e",
41
41
  "_spec": "@syncfusion/ej2-dropdowns@*",
42
42
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
43
43
  "author": {
@@ -45,13 +45,13 @@
45
45
  },
46
46
  "bundleDependencies": false,
47
47
  "dependencies": {
48
- "@syncfusion/ej2-base": "~28.2.5",
49
- "@syncfusion/ej2-data": "~28.2.3",
50
- "@syncfusion/ej2-inputs": "~28.2.3",
48
+ "@syncfusion/ej2-base": "~28.2.9",
49
+ "@syncfusion/ej2-data": "~28.2.11",
50
+ "@syncfusion/ej2-inputs": "~28.2.11",
51
51
  "@syncfusion/ej2-lists": "~28.2.3",
52
- "@syncfusion/ej2-navigations": "~28.2.6",
52
+ "@syncfusion/ej2-navigations": "~28.2.11",
53
53
  "@syncfusion/ej2-notifications": "~28.2.3",
54
- "@syncfusion/ej2-popups": "~28.2.6"
54
+ "@syncfusion/ej2-popups": "~28.2.9"
55
55
  },
56
56
  "deprecated": false,
57
57
  "description": "Essential JS 2 DropDown Components",
@@ -76,7 +76,7 @@
76
76
  "module": "./index.js",
77
77
  "name": "@syncfusion/ej2-dropdowns",
78
78
  "typings": "index.d.ts",
79
- "version": "28.2.7",
79
+ "version": "28.2.11",
80
80
  "sideEffects": false,
81
81
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
82
82
  }
@@ -2382,7 +2382,7 @@ var DropDownList = /** @class */ (function (_super) {
2382
2382
  && ((this.dataSource instanceof DataManager)
2383
2383
  || (!isNullOrUndefined(this.dataSource) && !isNullOrUndefined(this.dataSource.length) &&
2384
2384
  this.dataSource.length !== 0)))) {
2385
- if (this.itemTemplate && this.element.tagName === 'EJS-COMBOBOX' && this.allowFiltering) {
2385
+ if (this.itemTemplate && (this.element.tagName === 'EJS-COMBOBOX' || this.isReact) && this.allowFiltering) {
2386
2386
  setTimeout(function () {
2387
2387
  _this.updateActionCompleteDataValues(ulElement, list);
2388
2388
  }, 0);
@@ -471,7 +471,7 @@ export interface DropDownTreeModel extends ComponentModel{
471
471
 
472
472
  /**
473
473
  * Specifies the way to customize the selected values in the Dropdown Tree component based on application needs. If the **valueTemplate** property is set, the template content overrides the displayed item text.
474
- * The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
474
+ * The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
475
475
  *
476
476
  * @default null
477
477
  * @angularType string | object
@@ -632,7 +632,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
632
632
  value: string[];
633
633
  /**
634
634
  * Specifies the way to customize the selected values in the Dropdown Tree component based on application needs. If the **valueTemplate** property is set, the template content overrides the displayed item text.
635
- * The property accepts [template string] (https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
635
+ * The property accepts [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID holding the content. The context for the valueTemplate comes from the data object passed to it.
636
636
  *
637
637
  * @default null
638
638
  * @angularType string | object
@@ -2049,7 +2049,8 @@ var ListBox = /** @class */ (function (_super) {
2049
2049
  }
2050
2050
  var char = String.fromCharCode(e.keyCode);
2051
2051
  var isWordCharacter = char.match(/\w/);
2052
- if (!isNullOrUndefined(isWordCharacter)) {
2052
+ var isWordAccentCharacter = char.match(/[A-Za-z0-9\u00C0-\u024F ]/);
2053
+ if (!isNullOrUndefined(isWordCharacter) || !isNullOrUndefined(isWordAccentCharacter)) {
2053
2054
  this.isValidKey = true;
2054
2055
  }
2055
2056
  this.isBackSpace = e.keyCode === 8;
@@ -1306,8 +1306,7 @@ var Mention = /** @class */ (function (_super) {
1306
1306
  if (lastNode) {
1307
1307
  range = range.cloneRange();
1308
1308
  if (this.isRTE) {
1309
- range.setStart(lastNode, 0);
1310
- range.setEnd(lastNode, lastNode.textContent.length);
1309
+ range.setStart(lastNode, lastNode.textContent.length);
1311
1310
  }
1312
1311
  else {
1313
1312
  range.setStartAfter(lastNode);
@@ -56,6 +56,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
56
56
  private isClearAllItem;
57
57
  private previousFocusItem;
58
58
  private isRemoveSelection;
59
+ private isaddNonPresentItems;
59
60
  private resizer;
60
61
  private storedSelectAllHeight;
61
62
  private isResizing;
@@ -540,11 +540,13 @@ var MultiSelect = /** @class */ (function (_super) {
540
540
  for (var i = 0; i < valuecheck.length; i++) {
541
541
  var value = this.allowObjectBinding ? getValue((this.fields.value) ?
542
542
  this.fields.value : '', valuecheck[i]) : valuecheck[i];
543
- if (i === 0) {
544
- predicate = new Predicate(field, 'notequal', (value));
543
+ if (this.isaddNonPresentItems) {
544
+ predicate = i === 0 ? new Predicate(field, 'equal', valuecheck[i])
545
+ : predicate.or(field, 'equal', valuecheck[i]);
545
546
  }
546
547
  else {
547
- predicate = predicate.and(field, 'notequal', (value));
548
+ predicate = i === 0 ? predicate = new Predicate(field, 'notequal', (value))
549
+ : predicate.and(field, 'notequal', (value));
548
550
  }
549
551
  }
550
552
  return new Query().where(predicate);
@@ -612,8 +614,10 @@ var MultiSelect = /** @class */ (function (_super) {
612
614
  valuecheck = this.presentItemValue(this.ulElement);
613
615
  }
614
616
  if (valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
615
- && this.listData != null && !this.enableVirtualization) {
617
+ && this.listData != null) {
618
+ this.isaddNonPresentItems = true;
616
619
  this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
620
+ this.isaddNonPresentItems = false;
617
621
  }
618
622
  else {
619
623
  this.updateActionList(ulElement, list, e);
@@ -976,6 +980,7 @@ var MultiSelect = /** @class */ (function (_super) {
976
980
  filterQuery.take(takeValue);
977
981
  }
978
982
  filterQuery.requiresCount();
983
+ this.customFilterQuery = null;
979
984
  return filterQuery;
980
985
  };
981
986
  MultiSelect.prototype.getTakeValue = function () {
@@ -3623,6 +3628,7 @@ var MultiSelect = /** @class */ (function (_super) {
3623
3628
  this.isCustomRendered = false;
3624
3629
  this.isRemoteSelection = false;
3625
3630
  this.isSelectAllTarget = true;
3631
+ this.isaddNonPresentItems = false;
3626
3632
  this.viewPortInfo = {
3627
3633
  currentPageNumber: null,
3628
3634
  direction: null,
@@ -5405,10 +5411,12 @@ var MultiSelect = /** @class */ (function (_super) {
5405
5411
  valuecheck = this.presentItemValue(this.ulElement);
5406
5412
  }
5407
5413
  if (prop === 'value' && valuecheck.length > 0 && this.dataSource instanceof DataManager && !isNullOrUndefined(this.value)
5408
- && this.listData != null && !this.enableVirtualization) {
5414
+ && this.listData != null) {
5409
5415
  this.mainData = null;
5410
5416
  this.setDynValue = true;
5417
+ this.isaddNonPresentItems = true;
5411
5418
  this.addNonPresentItems(valuecheck, this.ulElement, this.listData);
5419
+ this.isaddNonPresentItems = false;
5412
5420
  }
5413
5421
  else {
5414
5422
  if (prop === 'text') {
@@ -5424,9 +5432,12 @@ var MultiSelect = /** @class */ (function (_super) {
5424
5432
  var list = this.mainList.cloneNode ? this.mainList.cloneNode(true) : this.mainList;
5425
5433
  this.onActionComplete(list, this.mainData);
5426
5434
  }
5427
- if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
5435
+ if (!this.enableVirtualization) {
5428
5436
  this.initialValueUpdate();
5429
5437
  }
5438
+ else if (this.enableVirtualization && (!(this.dataSource instanceof DataManager))) {
5439
+ this.initialValueUpdate(this.dataSource, true);
5440
+ }
5430
5441
  else if (!this.isInitRemoteVirtualData) {
5431
5442
  this.isDynamicRemoteVirtualData = true;
5432
5443
  this.initialValueUpdate(this.listData, true);