@syncfusion/ej2-dropdowns 33.2.7 → 33.2.8
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/dist/ej2-dropdowns.min.js +1 -10
- package/dist/ej2-dropdowns.umd.min.js +1 -10
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +25 -2
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +25 -2
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +1 -10
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +2 -2
- package/src/drop-down-list/drop-down-list.js +3 -0
- package/src/mention/mention.js +5 -1
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +17 -1
- package/styles/drop-down-tree/_bigger.scss +25 -4
- package/styles/drop-down-tree/_layout.scss +18 -3
- package/styles/drop-down-tree/_material3-dark-definition.scss +2 -0
- package/styles/drop-down-tree/_material3-definition.scss +2 -0
- package/styles/drop-down-tree/_theme.scss +9 -1
- package/styles/drop-down-tree/material3-dark.css +244 -1
- package/styles/drop-down-tree/material3.css +244 -1
- package/styles/material3-dark-lite.css +106 -1
- package/styles/material3-dark.css +244 -1
- package/styles/material3-lite.css +106 -1
- package/styles/material3.css +244 -1
|
@@ -4864,6 +4864,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4864
4864
|
(this.previousValue != null && this.isObjectInArray(this.previousValue, [this.allowCustom &&
|
|
4865
4865
|
this.isObjectCustomValue ? this.value ? this.value : dataItem : dataItem.value ?
|
|
4866
4866
|
this.getDataByValue(dataItem.value) : dataItem])))) {
|
|
4867
|
+
if (this.getModuleName() === 'combobox' && this.autoFill && e && (e.type === 'click' || e.action === 'enter')) {
|
|
4868
|
+
return false;
|
|
4869
|
+
}
|
|
4867
4870
|
this.isSelected = false;
|
|
4868
4871
|
return true;
|
|
4869
4872
|
}
|
|
@@ -14693,8 +14696,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
14693
14696
|
window.crypto.getRandomValues(array);
|
|
14694
14697
|
return array[0] / (0xFFFFFFFF + 1);
|
|
14695
14698
|
};
|
|
14699
|
+
MultiSelect.prototype.isInvalidString = function (value) {
|
|
14700
|
+
return !value || value.trim().length === 0;
|
|
14701
|
+
};
|
|
14696
14702
|
MultiSelect.prototype.checkForCustomValue = function (query, fields) {
|
|
14697
|
-
var dataChecks = !this.getValueByText(this.inputElement.value, this.ignoreCase)
|
|
14703
|
+
var dataChecks = !this.getValueByText(this.inputElement.value, this.ignoreCase) &&
|
|
14704
|
+
!this.isInvalidString(this.inputElement.value);
|
|
14698
14705
|
var field = fields ? fields : this.fields;
|
|
14699
14706
|
this.isCustomReset = true;
|
|
14700
14707
|
if (this.allowCustomValue && dataChecks) {
|
|
@@ -18371,12 +18378,24 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
18371
18378
|
temp = this.viewWrapper.innerHTML;
|
|
18372
18379
|
this.updateWrapperText(this.viewWrapper, data);
|
|
18373
18380
|
}
|
|
18381
|
+
var display = void 0;
|
|
18382
|
+
var topElement = void 0;
|
|
18383
|
+
if (this.componentWrapper.offsetWidth === 0 && this.componentWrapper.parentElement) {
|
|
18384
|
+
topElement = this.componentWrapper.parentElement.parentElement;
|
|
18385
|
+
if (!isNullOrUndefined(topElement) && topElement.style.display === 'none') {
|
|
18386
|
+
display = topElement.style.display;
|
|
18387
|
+
topElement.style.display = 'block';
|
|
18388
|
+
}
|
|
18389
|
+
}
|
|
18374
18390
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
18375
18391
|
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
18376
18392
|
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
18377
18393
|
overAllContainer = this.componentWrapper.offsetWidth -
|
|
18378
18394
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
|
|
18379
18395
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
|
|
18396
|
+
if (!isNullOrUndefined(display) && display === 'none' && !isNullOrUndefined(topElement)) {
|
|
18397
|
+
topElement.style.display = 'none';
|
|
18398
|
+
}
|
|
18380
18399
|
if ((wrapperleng + downIconWidth + this.clearIconWidth) > overAllContainer) {
|
|
18381
18400
|
if (tempData !== undefined && tempData !== '') {
|
|
18382
18401
|
temp = tempData;
|
|
@@ -24448,8 +24467,12 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
24448
24467
|
? lastWordRange.substring(lastWordRange.lastIndexOf(this.mentionChar) + 1).trim()
|
|
24449
24468
|
: lastWordRange.replace(this.mentionChar, '');
|
|
24450
24469
|
}
|
|
24470
|
+
if (this.queryString !== '' && e.keyCode === 8 && lastWordRange.includes(this.mentionChar) && !this.isPopupOpen &&
|
|
24471
|
+
((typeof this.displayTemplate === 'function' ? this.displayTemplate() : this.displayTemplate)).includes(this.mentionChar)) {
|
|
24472
|
+
this.queryString = '';
|
|
24473
|
+
}
|
|
24451
24474
|
if (this.mentionChar.charCodeAt(0) === lastWordRange.charCodeAt(0) &&
|
|
24452
|
-
this.queryString !== '' && e.keyCode !== 38 && e.keyCode !== 40 &&
|
|
24475
|
+
this.queryString !== '' && e.keyCode !== 38 && e.keyCode !== 40 && !this.lineBreak) {
|
|
24453
24476
|
this.searchLists(e);
|
|
24454
24477
|
if (!this.isPopupOpen && this.queryString.length >= this.minLength) {
|
|
24455
24478
|
if (!this.isContentEditable(this.inputElement)) {
|