@syncfusion/ej2-dropdowns 22.2.11 → 22.2.12
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 +14 -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 +10 -7
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +10 -7
- 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 +2 -4
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +9 -4
- package/styles/auto-complete/material-dark.css +1 -1
- package/styles/combo-box/material-dark.css +1 -1
- package/styles/drop-down-base/material-dark.css +1 -1
- package/styles/drop-down-list/material-dark.css +1 -1
- package/styles/drop-down-tree/material-dark.css +1 -1
- package/styles/list-box/material-dark.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/mention/material-dark.css +1 -1
- package/styles/multi-select/material-dark.css +1 -1
- package/.eslintrc.json +0 -260
- package/tslint.json +0 -111
|
@@ -7094,8 +7094,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7094
7094
|
if (tempArr) {
|
|
7095
7095
|
tempArr = Array.prototype.slice.call(tempArr);
|
|
7096
7096
|
append(tempArr, this.noRecord);
|
|
7097
|
-
addClass([this.noRecord], NODATACONTAINER);
|
|
7098
|
-
prepend([this.noRecord], this.popupDiv);
|
|
7099
7097
|
}
|
|
7100
7098
|
}
|
|
7101
7099
|
else {
|
|
@@ -7104,9 +7102,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7104
7102
|
this.l10n = new L10n(this.getLocaleName(), l10nLocale, this.locale);
|
|
7105
7103
|
this.noRecord.innerHTML = actionFailure ?
|
|
7106
7104
|
this.l10n.getConstant('actionFailureTemplate') : this.l10n.getConstant('noRecordsTemplate');
|
|
7107
|
-
addClass([this.noRecord], NODATACONTAINER);
|
|
7108
|
-
prepend([this.noRecord], this.popupDiv);
|
|
7109
7105
|
}
|
|
7106
|
+
addClass([this.noRecord], NODATACONTAINER);
|
|
7107
|
+
prepend([this.noRecord], this.popupDiv);
|
|
7110
7108
|
};
|
|
7111
7109
|
DropDownTree.prototype.updateRecordTemplate = function (action) {
|
|
7112
7110
|
if (this.treeItems && this.treeItems.length <= 0) {
|
|
@@ -11119,6 +11117,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
11119
11117
|
}
|
|
11120
11118
|
return checkTemplate;
|
|
11121
11119
|
};
|
|
11120
|
+
MultiSelect.prototype.encodeHtmlEntities = function (input) {
|
|
11121
|
+
return input.replace(/[\u00A0-\u9999<>&]/g, function (match) {
|
|
11122
|
+
return "&#" + match.charCodeAt(0) + ";";
|
|
11123
|
+
});
|
|
11124
|
+
};
|
|
11122
11125
|
MultiSelect.prototype.getChip = function (data, value, e) {
|
|
11123
11126
|
var _this = this;
|
|
11124
11127
|
var itemData = { text: value, value: value };
|
|
@@ -11151,7 +11154,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
11151
11154
|
chipContent.innerText = data;
|
|
11152
11155
|
}
|
|
11153
11156
|
else {
|
|
11154
|
-
chipContent.innerHTML = data;
|
|
11157
|
+
chipContent.innerHTML = this.encodeHtmlEntities(data);
|
|
11155
11158
|
}
|
|
11156
11159
|
chip.appendChild(chipContent);
|
|
11157
11160
|
var eventArgs = {
|
|
@@ -12193,10 +12196,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12193
12196
|
};
|
|
12194
12197
|
MultiSelect.prototype.updateWrapperText = function (wrapperType, wrapperData) {
|
|
12195
12198
|
if (this.valueTemplate || !this.enableHtmlSanitizer) {
|
|
12196
|
-
wrapperType.innerHTML = wrapperData;
|
|
12199
|
+
wrapperType.innerHTML = this.encodeHtmlEntities(wrapperData);
|
|
12197
12200
|
}
|
|
12198
12201
|
else {
|
|
12199
|
-
wrapperType.innerText =
|
|
12202
|
+
wrapperType.innerText = wrapperData;
|
|
12200
12203
|
}
|
|
12201
12204
|
};
|
|
12202
12205
|
MultiSelect.prototype.updateDelimView = function () {
|