@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 29.1.
|
|
3
|
+
* version : 29.1.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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@29.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@29.1.37",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-r3gn2gBwg1IhYpoXFJqLpove3dfsTVIrIiPGXdtx7BWWu4LbUXAzkSUJZalDk7/MRAHZjRkIjTTpgryniucNaw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"/@syncfusion/ej2-spreadsheet",
|
|
37
37
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
38
38
|
],
|
|
39
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-29.1.
|
|
40
|
-
"_shasum": "
|
|
39
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-29.1.37.tgz",
|
|
40
|
+
"_shasum": "c901533d29dddd25627db065fccdef5ff80af126",
|
|
41
41
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
42
42
|
"_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
|
|
43
43
|
"author": {
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@syncfusion/ej2-base": "~29.1.36",
|
|
49
49
|
"@syncfusion/ej2-data": "~29.1.33",
|
|
50
|
-
"@syncfusion/ej2-inputs": "~29.1.
|
|
50
|
+
"@syncfusion/ej2-inputs": "~29.1.38",
|
|
51
51
|
"@syncfusion/ej2-lists": "~29.1.34",
|
|
52
|
-
"@syncfusion/ej2-navigations": "~29.1.
|
|
52
|
+
"@syncfusion/ej2-navigations": "~29.1.38",
|
|
53
53
|
"@syncfusion/ej2-notifications": "~29.1.33",
|
|
54
54
|
"@syncfusion/ej2-popups": "~29.1.37"
|
|
55
55
|
},
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"module": "./index.js",
|
|
77
77
|
"name": "@syncfusion/ej2-dropdowns",
|
|
78
78
|
"typings": "index.d.ts",
|
|
79
|
-
"version": "29.1.
|
|
79
|
+
"version": "29.1.38",
|
|
80
80
|
"sideEffects": false,
|
|
81
81
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
82
82
|
}
|
|
@@ -1132,12 +1132,9 @@ var DropDownBase = /** @class */ (function (_super) {
|
|
|
1132
1132
|
if (this.sortOrder !== 'None') {
|
|
1133
1133
|
dataSource = this.getSortedDataSource(dataSource);
|
|
1134
1134
|
}
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
else {
|
|
1139
|
-
dataSource = ListBase.groupDataSource(dataSource, fields.properties, this.sortOrder);
|
|
1140
|
-
}
|
|
1135
|
+
var fieldSet = fields.properties ||
|
|
1136
|
+
fields;
|
|
1137
|
+
dataSource = ListBase.groupDataSource(dataSource, fieldSet, this.sortOrder);
|
|
1141
1138
|
}
|
|
1142
1139
|
addClass([this.list], dropDownBaseClasses.grouping);
|
|
1143
1140
|
}
|
|
@@ -717,6 +717,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
717
717
|
private checkForCustomValue;
|
|
718
718
|
protected getNgDirective(): string;
|
|
719
719
|
private wrapperClick;
|
|
720
|
+
private checkAndScrollParent;
|
|
720
721
|
private enable;
|
|
721
722
|
private scrollFocusStatus;
|
|
722
723
|
private keyDownStatus;
|
|
@@ -812,11 +812,10 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
812
812
|
}
|
|
813
813
|
if ((!this.enableVirtualization && ((searchCount === searchActiveCount || searchActiveCount === this.maximumSelectionLength)
|
|
814
814
|
&& (this.mode === 'CheckBox' && this.showSelectAll))) || (this.enableVirtualization && this.mode === 'CheckBox' &&
|
|
815
|
-
this.showSelectAll && this.
|
|
815
|
+
this.showSelectAll && this.value && this.value.length === this.totalItemCount)) {
|
|
816
816
|
this.notify('checkSelectAll', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox', value: 'check' });
|
|
817
817
|
}
|
|
818
|
-
else if ((searchCount !== searchActiveCount) && (this.mode === 'CheckBox' && this.showSelectAll)
|
|
819
|
-
((!this.enableVirtualization) || (this.enableVirtualization && !this.virtualSelectAll))) {
|
|
818
|
+
else if ((searchCount !== searchActiveCount) && (this.mode === 'CheckBox' && this.showSelectAll)) {
|
|
820
819
|
this.notify('checkSelectAll', { module: 'CheckBoxSelection', enable: this.mode === 'CheckBox', value: 'uncheck' });
|
|
821
820
|
}
|
|
822
821
|
if (this.enableGroupCheckBox && this.fields.groupBy && !this.enableSelectionOrder) {
|
|
@@ -1233,6 +1232,17 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1233
1232
|
if (!(this.targetElement() && this.targetElement() !== '')) {
|
|
1234
1233
|
e.preventDefault();
|
|
1235
1234
|
}
|
|
1235
|
+
this.checkAndScrollParent();
|
|
1236
|
+
};
|
|
1237
|
+
MultiSelect.prototype.checkAndScrollParent = function () {
|
|
1238
|
+
var parentElement = this.overAllWrapper ? this.overAllWrapper.parentElement : null;
|
|
1239
|
+
if (parentElement) {
|
|
1240
|
+
var wrapperHeight = parseFloat(getComputedStyle(this.overAllWrapper).height);
|
|
1241
|
+
var parentMaxHeight = parseFloat(getComputedStyle(parentElement).maxHeight);
|
|
1242
|
+
if (!isNaN(parentMaxHeight) && wrapperHeight > parentMaxHeight) {
|
|
1243
|
+
parentElement.scrollTop = parentElement.scrollHeight;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1236
1246
|
};
|
|
1237
1247
|
MultiSelect.prototype.enable = function (state) {
|
|
1238
1248
|
if (state) {
|
|
@@ -3993,6 +4003,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3993
4003
|
else {
|
|
3994
4004
|
this.removeValue(value, e, length);
|
|
3995
4005
|
}
|
|
4006
|
+
this.checkAndScrollParent();
|
|
3996
4007
|
};
|
|
3997
4008
|
MultiSelect.prototype.updateListSelectEventCallback = function (value, li, e, currentText) {
|
|
3998
4009
|
var _this = this;
|
|
@@ -4574,7 +4585,8 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4574
4585
|
this.updateWrapperText(this.viewWrapper, data);
|
|
4575
4586
|
}
|
|
4576
4587
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
4577
|
-
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10)
|
|
4588
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
4589
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
4578
4590
|
overAllContainer = this.componentWrapper.offsetWidth -
|
|
4579
4591
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
|
|
4580
4592
|
parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
|
|
@@ -4586,14 +4598,16 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4586
4598
|
this.updateWrapperText(this.viewWrapper, temp);
|
|
4587
4599
|
remaining = this.value.length - index;
|
|
4588
4600
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
4589
|
-
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10)
|
|
4601
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
4602
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
4590
4603
|
while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) > overAllContainer) && wrapperleng !== 0
|
|
4591
4604
|
&& this.viewWrapper.innerHTML !== '') {
|
|
4592
4605
|
var textArr = [];
|
|
4593
4606
|
this.viewWrapper.innerHTML = textArr.join(this.delimiterChar);
|
|
4594
4607
|
remaining = this.value.length;
|
|
4595
4608
|
wrapperleng = this.viewWrapper.offsetWidth +
|
|
4596
|
-
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10)
|
|
4609
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10) +
|
|
4610
|
+
parseInt(window.getComputedStyle(this.viewWrapper).paddingLeft, 10);
|
|
4597
4611
|
}
|
|
4598
4612
|
break;
|
|
4599
4613
|
}
|
|
@@ -4623,13 +4637,13 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4623
4637
|
};
|
|
4624
4638
|
MultiSelect.prototype.checkClearIconWidth = function () {
|
|
4625
4639
|
if (this.showClearButton) {
|
|
4626
|
-
this.clearIconWidth = this.overAllClear.
|
|
4640
|
+
this.clearIconWidth = parseInt(window.getComputedStyle(this.overAllClear).width, 10);
|
|
4627
4641
|
}
|
|
4628
4642
|
};
|
|
4629
4643
|
MultiSelect.prototype.updateRemainWidth = function (viewWrapper, totalWidth) {
|
|
4630
4644
|
if (viewWrapper.classList.contains(TOTAL_COUNT_WRAPPER) && totalWidth < (viewWrapper.offsetWidth +
|
|
4631
4645
|
parseInt(window.getComputedStyle(viewWrapper).paddingLeft, 10)
|
|
4632
|
-
+ parseInt(window.getComputedStyle(viewWrapper).
|
|
4646
|
+
+ parseInt(window.getComputedStyle(viewWrapper).paddingRight, 10))) {
|
|
4633
4647
|
viewWrapper.style.width = totalWidth + 'px';
|
|
4634
4648
|
}
|
|
4635
4649
|
};
|
|
@@ -4889,6 +4903,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4889
4903
|
li[index - 1].classList.remove('e-item-focus');
|
|
4890
4904
|
}
|
|
4891
4905
|
}
|
|
4906
|
+
_this.checkSelectAll();
|
|
4892
4907
|
}, 0);
|
|
4893
4908
|
}
|
|
4894
4909
|
}
|
|
@@ -4915,6 +4930,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
4915
4930
|
});
|
|
4916
4931
|
}
|
|
4917
4932
|
}
|
|
4933
|
+
this.checkSelectAll();
|
|
4918
4934
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4919
4935
|
var virtualTrackElement = this.list.getElementsByClassName('e-virtual-ddl')[0];
|
|
4920
4936
|
if (virtualTrackElement) {
|