@syncfusion/ej2-dropdowns 19.3.47 → 19.3.48
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 +8 -0
- 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 +14 -22
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +14 -22
- 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 +7 -7
- package/src/drop-down-tree/drop-down-tree.js +3 -4
- package/src/multi-select/multi-select.js +11 -18
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.3.
|
|
3
|
+
* version : 19.3.48
|
|
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@19.3.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@19.3.47",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-80BHmVskObNOXm5mfDPntsER6/i+RQ6fpuov+/D4vOu/709QxiT//IUbVDa5THRYsb1PtL16Wyi+exLRsTdO0w==",
|
|
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-hotfix/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.3.
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-19.3.47.tgz",
|
|
37
|
+
"_shasum": "695e0edaacca56306c171fb36cd82230e468ee67",
|
|
38
38
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
39
39
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@syncfusion/ej2-base": "~19.3.47",
|
|
46
46
|
"@syncfusion/ej2-data": "~19.3.47",
|
|
47
|
-
"@syncfusion/ej2-inputs": "~19.3.
|
|
48
|
-
"@syncfusion/ej2-lists": "~19.3.
|
|
47
|
+
"@syncfusion/ej2-inputs": "~19.3.48",
|
|
48
|
+
"@syncfusion/ej2-lists": "~19.3.48",
|
|
49
49
|
"@syncfusion/ej2-navigations": "~19.3.46",
|
|
50
50
|
"@syncfusion/ej2-popups": "~19.3.47"
|
|
51
51
|
},
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
"module": "./index.js",
|
|
73
73
|
"name": "@syncfusion/ej2-dropdowns",
|
|
74
74
|
"typings": "index.d.ts",
|
|
75
|
-
"version": "19.3.
|
|
75
|
+
"version": "19.3.48",
|
|
76
76
|
"sideEffects": false
|
|
77
77
|
}
|
|
@@ -649,7 +649,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
649
649
|
this.trigger('blur');
|
|
650
650
|
};
|
|
651
651
|
DropDownTree.prototype.updateView = function () {
|
|
652
|
-
if ((!this.showCheckBox && !this.allowMultiSelection) || this.mode === 'Custom') {
|
|
652
|
+
if ((!this.showCheckBox && !this.allowMultiSelection) || this.mode === 'Custom' || this.inputFocus) {
|
|
653
653
|
return;
|
|
654
654
|
}
|
|
655
655
|
if (this.mode !== 'Box') {
|
|
@@ -1091,10 +1091,10 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1091
1091
|
this.inputWrapper.insertBefore(this.chipWrapper, this.hiddenElement);
|
|
1092
1092
|
addClass([this.inputWrapper], SHOW_CHIP);
|
|
1093
1093
|
var isValid = this.getValidMode();
|
|
1094
|
-
if (isValid && this.value !== null) {
|
|
1094
|
+
if (isValid && this.value !== null && (this.value && this.value.length !== 0)) {
|
|
1095
1095
|
addClass([this.inputEle], CHIP_INPUT);
|
|
1096
1096
|
}
|
|
1097
|
-
else if (this.value === null) {
|
|
1097
|
+
else if (this.value === null || (this.value && this.value.length === 0)) {
|
|
1098
1098
|
addClass([this.chipWrapper], HIDEICON);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
@@ -1368,7 +1368,6 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1368
1368
|
else {
|
|
1369
1369
|
if (this.showCheckBox) {
|
|
1370
1370
|
this.treeObj.checkedNodes = this.value.slice();
|
|
1371
|
-
setValue('selectedNodes', [], this.treeObj);
|
|
1372
1371
|
this.treeObj.dataBind();
|
|
1373
1372
|
this.setMultiSelect();
|
|
1374
1373
|
}
|
|
@@ -2921,16 +2921,12 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2921
2921
|
l10n = new L10n('dropdowns', l10nLocale, this.locale);
|
|
2922
2922
|
}
|
|
2923
2923
|
var remainContent = l10n.getConstant('overflowCountTemplate');
|
|
2924
|
+
var totalContent = l10n.getConstant('totalCountTemplate');
|
|
2924
2925
|
var raminElement = this.createElement('span', {
|
|
2925
2926
|
className: REMAIN_WRAPPER
|
|
2926
2927
|
});
|
|
2927
|
-
var
|
|
2928
|
-
|
|
2929
|
-
// eslint-disable-next-line
|
|
2930
|
-
var remainCompildTemp = compiledString({ 'count': this.value.length }, this, 'overflowCountTemplate', null, !this.isStringTemplate, null, raminElement);
|
|
2931
|
-
if (remainCompildTemp && remainCompildTemp.length > 0) {
|
|
2932
|
-
raminElement.appendChild(remainCompildTemp[0]);
|
|
2933
|
-
}
|
|
2928
|
+
var remainCompildTemp = remainContent.replace('${count}', this.value.length.toString());
|
|
2929
|
+
raminElement.innerText = remainCompildTemp;
|
|
2934
2930
|
this.viewWrapper.appendChild(raminElement);
|
|
2935
2931
|
this.renderReactTemplates();
|
|
2936
2932
|
var remainSize = raminElement.offsetWidth;
|
|
@@ -2982,9 +2978,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
2982
2978
|
}
|
|
2983
2979
|
if (remaining > 0) {
|
|
2984
2980
|
var totalWidth = overAllContainer - downIconWidth - this.clearIconWidth;
|
|
2985
|
-
this.viewWrapper.appendChild(this.updateRemainTemplate(raminElement, this.viewWrapper, remaining,
|
|
2981
|
+
this.viewWrapper.appendChild(this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, remainContent, totalContent, totalWidth));
|
|
2986
2982
|
this.updateRemainWidth(this.viewWrapper, totalWidth);
|
|
2987
|
-
this.updateRemainingText(raminElement, downIconWidth, remaining,
|
|
2983
|
+
this.updateRemainingText(raminElement, downIconWidth, remaining, remainContent, totalContent);
|
|
2988
2984
|
}
|
|
2989
2985
|
}
|
|
2990
2986
|
else {
|
|
@@ -3004,17 +3000,14 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3004
3000
|
viewWrapper.style.width = totalWidth + 'px';
|
|
3005
3001
|
}
|
|
3006
3002
|
};
|
|
3007
|
-
MultiSelect.prototype.updateRemainTemplate = function (raminElement, viewWrapper, remaining,
|
|
3003
|
+
MultiSelect.prototype.updateRemainTemplate = function (raminElement, viewWrapper, remaining, remainContent, totalContent, totalWidth) {
|
|
3008
3004
|
if (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3 && viewWrapper.firstChild.nodeValue === '') {
|
|
3009
3005
|
viewWrapper.removeChild(viewWrapper.firstChild);
|
|
3010
3006
|
}
|
|
3011
3007
|
raminElement.innerHTML = '';
|
|
3012
|
-
|
|
3013
|
-
var
|
|
3014
|
-
|
|
3015
|
-
var totalTemp = totalCompiledString({ 'count': remaining }, this, 'totalCountTemplate', null, !this.isStringTemplate, null, raminElement);
|
|
3016
|
-
raminElement.appendChild((viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) ?
|
|
3017
|
-
remainTemp && remainTemp[0] : totalTemp && totalTemp[0]);
|
|
3008
|
+
var remainTemp = remainContent.replace('${count}', remaining.toString());
|
|
3009
|
+
var totalTemp = totalContent.replace('${count}', remaining.toString());
|
|
3010
|
+
raminElement.innerText = (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) ? remainTemp : totalTemp;
|
|
3018
3011
|
if (viewWrapper.firstChild && viewWrapper.firstChild.nodeType === 3) {
|
|
3019
3012
|
viewWrapper.classList.remove(TOTAL_COUNT_WRAPPER);
|
|
3020
3013
|
}
|
|
@@ -3024,7 +3017,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3024
3017
|
}
|
|
3025
3018
|
return raminElement;
|
|
3026
3019
|
};
|
|
3027
|
-
MultiSelect.prototype.updateRemainingText = function (raminElement, downIconWidth, remaining,
|
|
3020
|
+
MultiSelect.prototype.updateRemainingText = function (raminElement, downIconWidth, remaining, remainContent, totalContent) {
|
|
3028
3021
|
var overAllContainer = this.componentWrapper.offsetWidth -
|
|
3029
3022
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
|
|
3030
3023
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
|
|
@@ -3043,7 +3036,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3043
3036
|
wrapperleng = this.viewWrapper.offsetWidth;
|
|
3044
3037
|
}
|
|
3045
3038
|
var totalWidth = overAllContainer - downIconWidth;
|
|
3046
|
-
this.updateRemainTemplate(raminElement, this.viewWrapper, remaining,
|
|
3039
|
+
this.updateRemainTemplate(raminElement, this.viewWrapper, remaining, remainContent, totalContent, totalWidth);
|
|
3047
3040
|
}
|
|
3048
3041
|
};
|
|
3049
3042
|
MultiSelect.prototype.getOverflowVal = function (index) {
|