@syncfusion/ej2-dropdowns 21.2.4 → 21.2.6
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.
- package/CHANGELOG.md +24 -0
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +19 -11
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +19 -11
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/common/incremental-search.js +1 -1
- package/src/drop-down-base/drop-down-base.js +3 -0
- package/src/drop-down-list/drop-down-list.js +1 -1
- package/src/multi-select/multi-select.js +14 -9
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.2.
|
|
3
|
+
* version : 21.2.6
|
|
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@21.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@21.2.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-PtnODhm4SGJFF5FukEKwX8tY8qI/bpJs1B2g/MUdusMmkEV9cBSyrZEyciI4RbfgYEedhn5Qt/OnLLH+wMC9Hw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"/@syncfusion/ej2-spreadsheet",
|
|
35
35
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
36
36
|
],
|
|
37
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-21.2.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-21.2.5.tgz",
|
|
38
|
+
"_shasum": "95c4a1e11e3c8f5d8e7a0b2f898318195babe024",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"bundleDependencies": false,
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@syncfusion/ej2-base": "~21.2.3",
|
|
47
|
-
"@syncfusion/ej2-data": "~21.2.
|
|
48
|
-
"@syncfusion/ej2-inputs": "~21.2.
|
|
49
|
-
"@syncfusion/ej2-lists": "~21.2.
|
|
50
|
-
"@syncfusion/ej2-navigations": "~21.2.
|
|
47
|
+
"@syncfusion/ej2-data": "~21.2.6",
|
|
48
|
+
"@syncfusion/ej2-inputs": "~21.2.6",
|
|
49
|
+
"@syncfusion/ej2-lists": "~21.2.6",
|
|
50
|
+
"@syncfusion/ej2-navigations": "~21.2.6",
|
|
51
51
|
"@syncfusion/ej2-popups": "~21.2.4"
|
|
52
52
|
},
|
|
53
53
|
"deprecated": false,
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"module": "./index.js",
|
|
74
74
|
"name": "@syncfusion/ej2-dropdowns",
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "21.2.
|
|
76
|
+
"version": "21.2.6",
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
79
79
|
}
|
|
@@ -91,7 +91,7 @@ export function Search(inputVal, items, searchType, ignoreCase, dataSource, fiel
|
|
|
91
91
|
dataSource.filter(function (data) {
|
|
92
92
|
Array.prototype.slice.call(fieldValue_1).forEach(function (value) {
|
|
93
93
|
/* eslint-disable security/detect-object-injection */
|
|
94
|
-
if (type === 'object' && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && checkField_1.getAttribute('data-value') === data[fields.value].toString() || type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1) {
|
|
94
|
+
if (type === 'object' && (!data.isHeader && checkField_1.textContent.toString().indexOf(data[value]) !== -1) && checkField_1.getAttribute('data-value') === data[fields.value].toString() || type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1) {
|
|
95
95
|
filterValue = type === 'object' ? data[value] : data;
|
|
96
96
|
}
|
|
97
97
|
});
|
|
@@ -1136,6 +1136,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1136
1136
|
var index = this.isSelectCustom ? null : this.activeIndex;
|
|
1137
1137
|
this.setProperties({ 'index': index, 'text': dataItem.text, 'value': dataItem.value }, true);
|
|
1138
1138
|
this.detachChangeEvent(eve);
|
|
1139
|
+
this.dispatchEvent(this.hiddenElement, 'change');
|
|
1139
1140
|
};
|
|
1140
1141
|
DropDownList.prototype.detachChanges = function (value) {
|
|
1141
1142
|
var items;
|
|
@@ -1816,7 +1817,6 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1816
1817
|
_this.isNotSearchList = false;
|
|
1817
1818
|
_this.isDocumentClick = false;
|
|
1818
1819
|
_this.destroyPopup();
|
|
1819
|
-
EventHandler.remove(document, 'mousedown', _this.onDocumentClick);
|
|
1820
1820
|
if (_this.isFiltering() && _this.actionCompleteData.list && _this.actionCompleteData.list[0]) {
|
|
1821
1821
|
_this.isActive = true;
|
|
1822
1822
|
_this.onActionComplete(_this.actionCompleteData.ulElement, _this.actionCompleteData.list, null, true);
|
|
@@ -1874,10 +1874,10 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1874
1874
|
}
|
|
1875
1875
|
};
|
|
1876
1876
|
MultiSelect.prototype.removeChipFocus = function () {
|
|
1877
|
-
var elements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP);
|
|
1878
|
-
var closeElements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP_CLOSE.split(' ')[0]);
|
|
1877
|
+
var elements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP + '.' + CHIP_SELECTED);
|
|
1879
1878
|
removeClass(elements, CHIP_SELECTED);
|
|
1880
1879
|
if (Browser.isDevice) {
|
|
1880
|
+
var closeElements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP_CLOSE.split(' ')[0]);
|
|
1881
1881
|
for (var index = 0; index < closeElements.length; index++) {
|
|
1882
1882
|
closeElements[index].style.display = 'none';
|
|
1883
1883
|
}
|
|
@@ -2386,25 +2386,30 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2386
2386
|
this.hiddenElement.innerHTML = '';
|
|
2387
2387
|
}
|
|
2388
2388
|
if (!isNullOrUndefined(this.value)) {
|
|
2389
|
-
|
|
2390
|
-
|
|
2389
|
+
var valueLength = this.value.length;
|
|
2390
|
+
var hiddenElementContent = '';
|
|
2391
|
+
for (var index = 0; index < valueLength; index++) {
|
|
2392
|
+
var valueItem = this.value[index];
|
|
2393
|
+
var listValue = this.findListElement((!isNullOrUndefined(this.mainList) ? this.mainList : this.ulElement), 'li', 'data-value', valueItem);
|
|
2391
2394
|
if (isNullOrUndefined(listValue) && !this.allowCustomValue) {
|
|
2392
2395
|
this.value.splice(index, 1);
|
|
2393
2396
|
index -= 1;
|
|
2397
|
+
valueLength -= 1;
|
|
2394
2398
|
}
|
|
2395
2399
|
else {
|
|
2396
2400
|
if (this.listData) {
|
|
2397
|
-
temp = this.getTextByValue(
|
|
2401
|
+
temp = this.getTextByValue(valueItem);
|
|
2398
2402
|
}
|
|
2399
2403
|
else {
|
|
2400
|
-
temp =
|
|
2404
|
+
temp = valueItem;
|
|
2401
2405
|
}
|
|
2402
2406
|
data += temp + delimiterChar + ' ';
|
|
2403
2407
|
text.push(temp);
|
|
2404
2408
|
}
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2409
|
+
hiddenElementContent += "<option selected value=\"" + valueItem + "\">" + index + "</option>";
|
|
2410
|
+
}
|
|
2411
|
+
if (!isNullOrUndefined(this.hiddenElement)) {
|
|
2412
|
+
this.hiddenElement.innerHTML = hiddenElementContent;
|
|
2408
2413
|
}
|
|
2409
2414
|
}
|
|
2410
2415
|
this.setProperties({ text: text.toString() }, true);
|