@syncfusion/ej2-multicolumn-combobox 31.2.2 → 31.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/README.md +22 -9
- package/dist/ej2-multicolumn-combobox.umd.min.js +2 -2
- package/dist/ej2-multicolumn-combobox.umd.min.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es2015.js +40 -35
- package/dist/es6/ej2-multicolumn-combobox.es2015.js.map +1 -1
- package/dist/es6/ej2-multicolumn-combobox.es5.js +40 -35
- package/dist/es6/ej2-multicolumn-combobox.es5.js.map +1 -1
- package/dist/global/ej2-multicolumn-combobox.min.js +2 -2
- package/dist/global/ej2-multicolumn-combobox.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/multicolumn-combobox/multi-column-combo-box.d.ts +1 -0
- package/src/multicolumn-combobox/multi-column-combo-box.js +40 -35
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 31.2.
|
|
3
|
+
* version : 31.2.12
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-multicolumn-combobox",
|
|
3
|
-
"version": "31.2.
|
|
3
|
+
"version": "31.2.12",
|
|
4
4
|
"description": "Essential JS 2 Component",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"es2015": "./dist/es6/ej2-multicolumn-combobox.es5.js",
|
|
10
10
|
"typings": "index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@syncfusion/ej2-base": "~31.2.
|
|
13
|
-
"@syncfusion/ej2-grids": "~31.2.
|
|
12
|
+
"@syncfusion/ej2-base": "~31.2.12",
|
|
13
|
+
"@syncfusion/ej2-grids": "~31.2.12"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {},
|
|
16
16
|
"keywords": [
|
|
@@ -779,6 +779,7 @@ export declare class MultiColumnComboBox extends Component<HTMLElement> implemen
|
|
|
779
779
|
private exactMatchedContent;
|
|
780
780
|
private isDataFiltered;
|
|
781
781
|
private isInitialRender;
|
|
782
|
+
private isInitialValueRender;
|
|
782
783
|
private remoteDataLength;
|
|
783
784
|
private selectedRowIndex;
|
|
784
785
|
private isShowSpinner;
|
|
@@ -332,6 +332,10 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
332
332
|
};
|
|
333
333
|
MultiColumnComboBox.prototype.render = function () {
|
|
334
334
|
this.renderInput();
|
|
335
|
+
if ((!isNOU(this.value) || !isNOU(this.text) || !isNOU(this.index)) && !isNOU(this.dataSource)
|
|
336
|
+
&& this.dataSource instanceof DataManager) {
|
|
337
|
+
this.isInitialValueRender = true;
|
|
338
|
+
}
|
|
335
339
|
if (this.gridData == null) {
|
|
336
340
|
this.setGridData(this.dataSource);
|
|
337
341
|
}
|
|
@@ -359,6 +363,10 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
359
363
|
_this.remoteDataLength = _this.gridData.length;
|
|
360
364
|
_this.isMainDataUpdated = true;
|
|
361
365
|
}
|
|
366
|
+
if (_this.isInitialValueRender) {
|
|
367
|
+
_this.isInitialValueRender = false;
|
|
368
|
+
_this.initValue(null, null, true);
|
|
369
|
+
}
|
|
362
370
|
if (_this.popupDiv) {
|
|
363
371
|
_this.updateGridDataSource();
|
|
364
372
|
}
|
|
@@ -477,7 +485,7 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
477
485
|
SortOrder.Ascending : SortOrder.Descending }] };
|
|
478
486
|
}
|
|
479
487
|
this.gridObj.appendTo(this.gridEle);
|
|
480
|
-
if (!isNOU(this.value) || !isNOU(this.text) || !isNOU(this.index)) {
|
|
488
|
+
if ((!isNOU(this.value) || !isNOU(this.text) || !isNOU(this.index)) && !isNOU(this.dataSource) && this.dataSource instanceof Array) {
|
|
481
489
|
this.initValue(null, null, true);
|
|
482
490
|
}
|
|
483
491
|
};
|
|
@@ -846,22 +854,21 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
846
854
|
};
|
|
847
855
|
if ((!isRerender && (!isNOU(this.value) || !isNOU(this.text))) || (isRerender && isValue !== undefined)) {
|
|
848
856
|
var value_1 = isRerender ? (isValue ? this.value : this.text) : (!isNOU(this.value) ? this.value : this.text);
|
|
849
|
-
if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager
|
|
850
|
-
this.
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
});
|
|
858
|
-
if (filteredData.length > 0) {
|
|
859
|
-
item = filteredData[0];
|
|
860
|
-
updateValues(dataLists);
|
|
861
|
-
_this.updateChangeEvent(item, prevItemData, prevItemEle, currentValue, currentText, currentIndex, isRerender, isInitial);
|
|
862
|
-
_this.gridObj.selectRow(_this.index);
|
|
863
|
-
}
|
|
857
|
+
if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager && this.mainData
|
|
858
|
+
&& this.isMainDataUpdated) {
|
|
859
|
+
var dataLists = ((this.query && this.getQuery(this.query).isCountRequired) ||
|
|
860
|
+
!this.query) ? this.mainData : this.mainData.result ? this.mainData.result : this.mainData;
|
|
861
|
+
var filteredData = dataLists.filter(function (item) {
|
|
862
|
+
var fieldVal = item ? (_this.updateFieldValue(isRerender ? (isValue ? _this.fields.value :
|
|
863
|
+
_this.fields.text) : !isNOU(_this.value) ? _this.fields.value : _this.fields.text, item)) : null;
|
|
864
|
+
return fieldVal === value_1;
|
|
864
865
|
});
|
|
866
|
+
if (filteredData.length > 0) {
|
|
867
|
+
item = filteredData[0];
|
|
868
|
+
updateValues(dataLists);
|
|
869
|
+
this.updateChangeEvent(item, prevItemData, prevItemEle, currentValue, currentText, currentIndex, isRerender, isInitial);
|
|
870
|
+
this.gridObj.selectRow(this.index);
|
|
871
|
+
}
|
|
865
872
|
}
|
|
866
873
|
else if (!isNOU(this.dataSource) && this.dataSource instanceof Array) {
|
|
867
874
|
item = this.dataSource.filter(function (data) {
|
|
@@ -873,15 +880,14 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
873
880
|
}
|
|
874
881
|
}
|
|
875
882
|
else if (!isNOU(this.index)) {
|
|
876
|
-
if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager
|
|
877
|
-
this.
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
});
|
|
883
|
+
if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager && this.mainData
|
|
884
|
+
&& this.isMainDataUpdated) {
|
|
885
|
+
var dataLists = ((this.query && this.getQuery(this.query).isCountRequired) ||
|
|
886
|
+
!this.query) ? this.mainData : this.mainData.result ? this.mainData.result : this.mainData;
|
|
887
|
+
item = dataLists[this.index];
|
|
888
|
+
updateValues(dataLists);
|
|
889
|
+
this.updateChangeEvent(item, prevItemData, prevItemEle, currentValue, currentText, currentIndex, isRerender, isInitial);
|
|
890
|
+
this.gridObj.selectRow(this.index);
|
|
885
891
|
}
|
|
886
892
|
else if (!isNOU(this.dataSource) && this.dataSource instanceof Array) {
|
|
887
893
|
if (!this.fields.groupBy) {
|
|
@@ -1594,7 +1600,7 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
1594
1600
|
_this.isPopupOpen = true;
|
|
1595
1601
|
_this.popupObj.refreshPosition();
|
|
1596
1602
|
addClass([_this.inputWrapper], [ICONANIMATION]);
|
|
1597
|
-
attributes(_this.inputEle, { 'aria-expanded': 'true', 'aria-owns': _this.element.id + '
|
|
1603
|
+
attributes(_this.inputEle, { 'aria-expanded': 'true', 'aria-owns': _this.element.id + '_options', 'aria-controls': _this.element.id });
|
|
1598
1604
|
if (!isInputOpen) {
|
|
1599
1605
|
if ((_this.value || _this.text || _this.index)) {
|
|
1600
1606
|
_this.gridObj.selectRow(_this.selectedRowIndex);
|
|
@@ -1697,15 +1703,14 @@ var MultiColumnComboBox = /** @class */ (function (_super) {
|
|
|
1697
1703
|
return fieldValue === value;
|
|
1698
1704
|
})[0];
|
|
1699
1705
|
}
|
|
1700
|
-
else if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager
|
|
1701
|
-
this.
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
});
|
|
1706
|
+
else if (!isNOU(this.dataSource) && this.dataSource instanceof DataManager && this.mainData
|
|
1707
|
+
&& this.isMainDataUpdated) {
|
|
1708
|
+
var dataLists = ((this.query && this.getQuery(this.query).isCountRequired) ||
|
|
1709
|
+
!this.query) ? this.mainData : this.mainData.result ? this.mainData.result : this.mainData;
|
|
1710
|
+
return dataLists.filter(function (item) {
|
|
1711
|
+
var fieldValue = _this.updateFieldValue(_this.fields.value, item);
|
|
1712
|
+
return fieldValue === value;
|
|
1713
|
+
})[0];
|
|
1709
1714
|
}
|
|
1710
1715
|
return null;
|
|
1711
1716
|
};
|