@syncfusion/ej2-dropdowns 22.2.10 → 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 +17 -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 +15 -10
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +15 -10
- 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 +10 -10
- package/src/drop-down-list/drop-down-list.js +5 -3
- 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/auto-complete/material.css +1 -1
- package/styles/combo-box/material-dark.css +1 -1
- package/styles/combo-box/material.css +1 -1
- package/styles/drop-down-base/material-dark.css +1 -1
- package/styles/drop-down-base/material.css +1 -1
- package/styles/drop-down-list/material-dark.css +1 -1
- package/styles/drop-down-list/material.css +1 -1
- package/styles/drop-down-tree/material-dark.css +1 -1
- package/styles/drop-down-tree/material.css +1 -1
- package/styles/list-box/material-dark.css +1 -1
- package/styles/list-box/material.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/mention/material-dark.css +1 -1
- package/styles/mention/material.css +1 -1
- package/styles/multi-select/material-dark.css +1 -1
- package/styles/multi-select/material.css +1 -1
- package/.eslintrc.json +0 -260
- package/tslint.json +0 -111
|
@@ -3314,7 +3314,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
3314
3314
|
_this.wireListEvents();
|
|
3315
3315
|
}
|
|
3316
3316
|
_this.selectedElementID = _this.selectedLI ? _this.selectedLI.id : null;
|
|
3317
|
-
attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.
|
|
3317
|
+
attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.element.id + '_options' });
|
|
3318
3318
|
_this.inputElement.setAttribute('aria-expanded', 'true');
|
|
3319
3319
|
var inputParent = _this.isFiltering() ? _this.filterInput.parentElement : _this.inputWrapper.container;
|
|
3320
3320
|
addClass([inputParent], [dropDownListClasses.inputFocus]);
|
|
@@ -4092,8 +4092,10 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4092
4092
|
}
|
|
4093
4093
|
break;
|
|
4094
4094
|
case 'showClearButton':
|
|
4095
|
-
|
|
4096
|
-
|
|
4095
|
+
if (!this_1.inputWrapper.clearButton) {
|
|
4096
|
+
Input.setClearButton(newProp.showClearButton, this_1.inputElement, this_1.inputWrapper, null, this_1.createElement);
|
|
4097
|
+
this_1.bindClearEvent();
|
|
4098
|
+
}
|
|
4097
4099
|
break;
|
|
4098
4100
|
default:
|
|
4099
4101
|
{
|
|
@@ -7092,8 +7094,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7092
7094
|
if (tempArr) {
|
|
7093
7095
|
tempArr = Array.prototype.slice.call(tempArr);
|
|
7094
7096
|
append(tempArr, this.noRecord);
|
|
7095
|
-
addClass([this.noRecord], NODATACONTAINER);
|
|
7096
|
-
prepend([this.noRecord], this.popupDiv);
|
|
7097
7097
|
}
|
|
7098
7098
|
}
|
|
7099
7099
|
else {
|
|
@@ -7102,9 +7102,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
7102
7102
|
this.l10n = new L10n(this.getLocaleName(), l10nLocale, this.locale);
|
|
7103
7103
|
this.noRecord.innerHTML = actionFailure ?
|
|
7104
7104
|
this.l10n.getConstant('actionFailureTemplate') : this.l10n.getConstant('noRecordsTemplate');
|
|
7105
|
-
addClass([this.noRecord], NODATACONTAINER);
|
|
7106
|
-
prepend([this.noRecord], this.popupDiv);
|
|
7107
7105
|
}
|
|
7106
|
+
addClass([this.noRecord], NODATACONTAINER);
|
|
7107
|
+
prepend([this.noRecord], this.popupDiv);
|
|
7108
7108
|
};
|
|
7109
7109
|
DropDownTree.prototype.updateRecordTemplate = function (action) {
|
|
7110
7110
|
if (this.treeItems && this.treeItems.length <= 0) {
|
|
@@ -11117,6 +11117,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
11117
11117
|
}
|
|
11118
11118
|
return checkTemplate;
|
|
11119
11119
|
};
|
|
11120
|
+
MultiSelect.prototype.encodeHtmlEntities = function (input) {
|
|
11121
|
+
return input.replace(/[\u00A0-\u9999<>&]/g, function (match) {
|
|
11122
|
+
return "&#" + match.charCodeAt(0) + ";";
|
|
11123
|
+
});
|
|
11124
|
+
};
|
|
11120
11125
|
MultiSelect.prototype.getChip = function (data, value, e) {
|
|
11121
11126
|
var _this = this;
|
|
11122
11127
|
var itemData = { text: value, value: value };
|
|
@@ -11149,7 +11154,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
11149
11154
|
chipContent.innerText = data;
|
|
11150
11155
|
}
|
|
11151
11156
|
else {
|
|
11152
|
-
chipContent.innerHTML = data;
|
|
11157
|
+
chipContent.innerHTML = this.encodeHtmlEntities(data);
|
|
11153
11158
|
}
|
|
11154
11159
|
chip.appendChild(chipContent);
|
|
11155
11160
|
var eventArgs = {
|
|
@@ -12191,10 +12196,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
12191
12196
|
};
|
|
12192
12197
|
MultiSelect.prototype.updateWrapperText = function (wrapperType, wrapperData) {
|
|
12193
12198
|
if (this.valueTemplate || !this.enableHtmlSanitizer) {
|
|
12194
|
-
wrapperType.innerHTML = wrapperData;
|
|
12199
|
+
wrapperType.innerHTML = this.encodeHtmlEntities(wrapperData);
|
|
12195
12200
|
}
|
|
12196
12201
|
else {
|
|
12197
|
-
wrapperType.innerText =
|
|
12202
|
+
wrapperType.innerText = wrapperData;
|
|
12198
12203
|
}
|
|
12199
12204
|
};
|
|
12200
12205
|
MultiSelect.prototype.updateDelimView = function () {
|