@syncfusion/ej2-dropdowns 20.1.47 → 20.1.50

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 : 20.1.47
3
+ * version : 20.1.50
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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@18.36.1",
3
+ "_id": "@syncfusion/ej2-dropdowns@20.1.47",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-7wWwLMaKgScBjGCJfxiZmBdi/tFYG0Hua6QdS8xeqiXVthBmmktU0aGGkkzb/bj/xa1xxONDDKIy4QIOIeZXag==",
5
+ "_integrity": "sha512-O84aLNrIKc+M8pYK06yf2/qlKv39Q4M7KdWQeEuXlRo6V0+OLg0HcIC1tls0H0v7ZKT9J7szMBn8GONty/VE2A==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -33,8 +33,8 @@
33
33
  "/@syncfusion/ej2-spreadsheet",
34
34
  "/@syncfusion/ej2-vue-dropdowns"
35
35
  ],
36
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-18.36.1.tgz",
37
- "_shasum": "01cadeb3ecc4e0177cfe3acc9684f7518c99a3bb",
36
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.1.47.tgz",
37
+ "_shasum": "37eea260b24af18c9082962fbb7796b8fc6a5b40",
38
38
  "_spec": "@syncfusion/ej2-dropdowns@*",
39
39
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
40
40
  "author": {
@@ -42,11 +42,11 @@
42
42
  },
43
43
  "bundleDependencies": false,
44
44
  "dependencies": {
45
- "@syncfusion/ej2-base": "~20.1.47",
45
+ "@syncfusion/ej2-base": "~20.1.50",
46
46
  "@syncfusion/ej2-data": "~20.1.47",
47
- "@syncfusion/ej2-inputs": "~20.1.47",
47
+ "@syncfusion/ej2-inputs": "~20.1.48",
48
48
  "@syncfusion/ej2-lists": "~20.1.47",
49
- "@syncfusion/ej2-navigations": "~20.1.47",
49
+ "@syncfusion/ej2-navigations": "~20.1.48",
50
50
  "@syncfusion/ej2-popups": "~20.1.47"
51
51
  },
52
52
  "deprecated": false,
@@ -72,6 +72,6 @@
72
72
  "module": "./index.js",
73
73
  "name": "@syncfusion/ej2-dropdowns",
74
74
  "typings": "index.d.ts",
75
- "version": "20.1.47",
75
+ "version": "20.1.50",
76
76
  "sideEffects": false
77
77
  }
@@ -26,4 +26,5 @@ export declare function incrementalSearch(keyCode: number, items: HTMLElement[],
26
26
  export declare function Search(inputVal: string, items: HTMLElement[], searchType: SearchType, ignoreCase?: boolean): {
27
27
  [key: string]: Element | number;
28
28
  };
29
+ export declare function escapeCharRegExp(value: string): string;
29
30
  export declare function resetIncrementalSearchValues(elementId: string): void;
@@ -80,6 +80,7 @@ export function Search(inputVal, items, searchType, ignoreCase) {
80
80
  if (inputVal && inputVal.length) {
81
81
  var strLength = inputVal.length;
82
82
  var queryStr = ignoreCase ? inputVal.toLocaleLowerCase() : inputVal;
83
+ queryStr = escapeCharRegExp(queryStr);
83
84
  for (var i = 0, itemsData = listItems; i < itemsData.length; i++) {
84
85
  var item = itemsData[i];
85
86
  var text = (ignoreCase ? item.textContent.toLocaleLowerCase() : item.textContent).replace(/^\s+|\s+$/g, '');
@@ -93,6 +94,9 @@ export function Search(inputVal, items, searchType, ignoreCase) {
93
94
  }
94
95
  return itemData;
95
96
  }
97
+ export function escapeCharRegExp(value) {
98
+ return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
99
+ }
96
100
  export function resetIncrementalSearchValues(elementId) {
97
101
  if (prevElementId === elementId) {
98
102
  prevElementId = '';
@@ -1650,7 +1650,7 @@ var ListBox = /** @class */ (function (_super) {
1650
1650
  }
1651
1651
  }
1652
1652
  }
1653
- else if (e.keyCode !== 37 && e.keyCode !== 39) {
1653
+ else if (e.keyCode !== 37 && e.keyCode !== 39 && e.code !== "KeyA") {
1654
1654
  this.upDownKeyHandler(e);
1655
1655
  }
1656
1656
  }
@@ -1679,9 +1679,6 @@ var ListBox = /** @class */ (function (_super) {
1679
1679
  }
1680
1680
  }
1681
1681
  removeClass([fli], 'e-focused');
1682
- if (e.ctrlKey && !e.shiftKey && !this.selectionSettings.showCheckbox) {
1683
- removeClass([fli], 'e-selected');
1684
- }
1685
1682
  }
1686
1683
  var cli = ul.children[fliIdx];
1687
1684
  if (cli) {
@@ -2468,7 +2468,7 @@ var MultiSelect = /** @class */ (function (_super) {
2468
2468
  if (this.mainList && this.ulElement) {
2469
2469
  var isDynamicGroupItemUpdate = this.mainList.childElementCount < this.ulElement.childElementCount;
2470
2470
  var isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount));
2471
- var isAngularTemplateUpdate = this.itemTemplate && this.ulElement.childElementCount > 0 && (this.ulElement.children[0].childElementCount > 0 || (this.fields.groupBy && this.ulElement.children[1] && this.ulElement.children[1].childElementCount > 0));
2471
+ var isAngularTemplateUpdate = this.itemTemplate && this.ulElement.childElementCount > 0 && !(this.ulElement.childElementCount < this.mainList.childElementCount) && (this.ulElement.children[0].childElementCount > 0 || (this.fields.groupBy && this.ulElement.children[1] && this.ulElement.children[1].childElementCount > 0));
2472
2472
  if (isDynamicGroupItemUpdate || isReactTemplateUpdate || isAngularTemplateUpdate) {
2473
2473
  //EJ2-57748 - for this task, we prevent the ul element cloning ( this.mainList = this.ulElement.cloneNode ? <HTMLElement>this.ulElement.cloneNode(true) : this.ulElement;)
2474
2474
  this.mainList = this.ulElement;