@syncfusion/ej2-dropdowns 29.1.37 → 29.1.38
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 +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 +27 -14
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +27 -14
- 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-base/drop-down-base.js +3 -6
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +24 -8
|
@@ -1975,12 +1975,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
1975
1975
|
if (this.sortOrder !== 'None') {
|
|
1976
1976
|
dataSource = this.getSortedDataSource(dataSource);
|
|
1977
1977
|
}
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
else {
|
|
1982
|
-
dataSource = ListBase.groupDataSource(dataSource, fields.properties, this.sortOrder);
|
|
1983
|
-
}
|
|
1978
|
+
var fieldSet = fields.properties ||
|
|
1979
|
+
fields;
|
|
1980
|
+
dataSource = ListBase.groupDataSource(dataSource, fieldSet, this.sortOrder);
|
|
1984
1981
|
}
|
|
1985
1982
|
addClass([this.list], dropDownBaseClasses.grouping);
|
|
1986
1983
|
}
|
|
@@ -13532,11 +13529,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13532
13529
|
}
|
|
13533
13530
|
if ((!this.enableVirtualization && ((searchCount === searchActiveCount || searchActiveCount === this.maximumSelectionLength)
|
|
13534
13531
|
&& (this.mode === 'CheckBox' && this.showSelectAll))) || (this.enableVirtualization && this.mode === 'CheckBox' &&
|
|
13535
|
-
this.showSelectAll && this.
|
|
13532
|
+
this.showSelectAll && this.value && this.value.length === this.totalItemCount)) {
|
|
13536
13533
|
this.notify('checkSelectAll', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox', value: 'check' });
|
|
13537
13534
|
}
|
|
13538
|
-
else if ((searchCount !== searchActiveCount) && (this.mode === 'CheckBox' && this.showSelectAll)
|
|
13539
|
-
((!this.enableVirtualization) || (this.enableVirtualization && !this.virtualSelectAll))) {
|
|
13535
|
+
else if ((searchCount !== searchActiveCount) && (this.mode === 'CheckBox' && this.showSelectAll)) {
|
|
13540
13536
|
this.notify('checkSelectAll', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox', value: 'uncheck' });
|
|
13541
13537
|
}
|
|
13542
13538
|
if (this.enableGroupCheckBox && this.fields.groupBy && !this.enableSelectionOrder) {
|
|
@@ -13950,6 +13946,17 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13950
13946
|
if (!(this.targetElement() && this.targetElement() !== '')) {
|
|
13951
13947
|
e.preventDefault();
|
|
13952
13948
|
}
|
|
13949
|
+
this.checkAndScrollParent();
|
|
13950
|
+
};
|
|
13951
|
+
MultiSelect.prototype.checkAndScrollParent = function () {
|
|
13952
|
+
var parentElement = this.overAllWrapper ? this.overAllWrapper.parentElement : null;
|
|
13953
|
+
if (parentElement) {
|
|
13954
|
+
var wrapperHeight = parseFloat(getComputedStyle(this.overAllWrapper).height);
|
|
13955
|
+
var parentMaxHeight = parseFloat(getComputedStyle(parentElement).maxHeight);
|
|
13956
|
+
if (!isNaN(parentMaxHeight) && wrapperHeight > parentMaxHeight) {
|
|
13957
|
+
parentElement.scrollTop = parentElement.scrollHeight;
|
|
13958
|
+
}
|
|
13959
|
+
}
|
|
13953
13960
|
};
|
|
13954
13961
|
MultiSelect.prototype.enable = function (state) {
|
|
13955
13962
|
if (state) {
|
|
@@ -16708,6 +16715,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
16708
16715
|
else {
|
|
16709
16716
|
this.removeValue(value, e, length);
|
|
16710
16717
|
}
|
|
16718
|
+
this.checkAndScrollParent();
|
|
16711
16719
|
};
|
|
16712
16720
|
MultiSelect.prototype.updateListSelectEventCallback = function (value, li, e, currentText) {
|
|
16713
16721
|
var _this = this;
|
|
@@ -17289,7 +17297,8 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17289
17297
|
this.updateWrapperText(this.viewWrapper, data);
|
|
17290
17298
|
}
|
|
17291
17299
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
17292
|
-
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10)
|
|
17300
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
17301
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
17293
17302
|
overAllContainer = this.componentWrapper.offsetWidth -
|
|
17294
17303
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
|
|
17295
17304
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
|
|
@@ -17301,14 +17310,16 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17301
17310
|
this.updateWrapperText(this.viewWrapper, temp);
|
|
17302
17311
|
remaining = this.value.length - index;
|
|
17303
17312
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
17304
|
-
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10)
|
|
17313
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
17314
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
17305
17315
|
while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) > overAllContainer) && wrapperleng !== 0
|
|
17306
17316
|
&& this.viewWrapper.innerHTML !== '') {
|
|
17307
17317
|
var textArr = [];
|
|
17308
17318
|
this.viewWrapper.innerHTML = textArr.join(this.delimiterChar);
|
|
17309
17319
|
remaining = this.value.length;
|
|
17310
17320
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
17311
|
-
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10)
|
|
17321
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
17322
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
17312
17323
|
}
|
|
17313
17324
|
break;
|
|
17314
17325
|
}
|
|
@@ -17338,13 +17349,13 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17338
17349
|
};
|
|
17339
17350
|
MultiSelect.prototype.checkClearIconWidth = function () {
|
|
17340
17351
|
if (this.showClearButton) {
|
|
17341
|
-
this.clearIconWidth = this.overAllClear.
|
|
17352
|
+
this.clearIconWidth = parseInt(window.getComputedStyle(this.overAllClear).width, 10);
|
|
17342
17353
|
}
|
|
17343
17354
|
};
|
|
17344
17355
|
MultiSelect.prototype.updateRemainWidth = function (viewWrapper, totalWidth) {
|
|
17345
17356
|
if (viewWrapper.classList.contains(TOTAL_COUNT_WRAPPER$1) && totalWidth < (viewWrapper.offsetWidth +
|
|
17346
17357
|
parseInt(window.getComputedStyle(viewWrapper).paddingLeft, 10)
|
|
17347
|
-
+ parseInt(window.getComputedStyle(viewWrapper).
|
|
17358
|
+
+ parseInt(window.getComputedStyle(viewWrapper).paddingRight, 10))) {
|
|
17348
17359
|
viewWrapper.style.width = totalWidth + 'px';
|
|
17349
17360
|
}
|
|
17350
17361
|
};
|
|
@@ -17604,6 +17615,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17604
17615
|
li[index - 1].classList.remove('e-item-focus');
|
|
17605
17616
|
}
|
|
17606
17617
|
}
|
|
17618
|
+
_this.checkSelectAll();
|
|
17607
17619
|
}, 0);
|
|
17608
17620
|
}
|
|
17609
17621
|
}
|
|
@@ -17630,6 +17642,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
17630
17642
|
});
|
|
17631
17643
|
}
|
|
17632
17644
|
}
|
|
17645
|
+
this.checkSelectAll();
|
|
17633
17646
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17634
17647
|
var virtualTrackElement = this.list.getElementsByClassName('e-virtual-ddl')[0];
|
|
17635
17648
|
if (virtualTrackElement) {
|