imm-element-ui 2.6.0 → 2.6.2
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.
|
@@ -5328,8 +5328,6 @@ class CellEditSelectFieldComponent {
|
|
|
5328
5328
|
else {
|
|
5329
5329
|
this.params.options = this.params.rawOptions;
|
|
5330
5330
|
}
|
|
5331
|
-
console.log('params.options-----1', this.params.options);
|
|
5332
|
-
console.log('ss');
|
|
5333
5331
|
if (this.params.filterOptions && typeof this.params.filterOptions === 'function') {
|
|
5334
5332
|
this.params.options = this.params.filterOptions(this.params.options, this.params.data) || this.params.options;
|
|
5335
5333
|
}
|
|
@@ -6282,6 +6280,9 @@ class GridComponent {
|
|
|
6282
6280
|
this.showHorizontal = false;
|
|
6283
6281
|
this.dragBeforeIndex = -1;
|
|
6284
6282
|
this.singleClickEdit = signal(false);
|
|
6283
|
+
this.autoGroupColumnDef = {
|
|
6284
|
+
minWidth: 180,
|
|
6285
|
+
};
|
|
6285
6286
|
this.singleClickEdit.set(this.isMobileOrTabletBrowser());
|
|
6286
6287
|
this.searchPrmSub = toObservable(this.searchPrm).subscribe((searchPrm) => {
|
|
6287
6288
|
if (searchPrm.modelName !== undefined) {
|
|
@@ -6398,7 +6399,7 @@ class GridComponent {
|
|
|
6398
6399
|
let col = this.toOptions().columnDefs || [];
|
|
6399
6400
|
try {
|
|
6400
6401
|
const processedCols = await Promise.all(col.map(async (item) => {
|
|
6401
|
-
if (item.hasOwnProperty('fieldId') && (item.cellEditor == 'agRichSelectCellEditor' || item.cellEditor == 'agSelectCellEditor' || item.cellEditor == 'cellEditSelectFieldComponent')) {
|
|
6402
|
+
if (item.hasOwnProperty('fieldId') && (item.cellEditor == 'agRichSelectCellEditor' || item.cellEditor == 'agSelectCellEditor' || item.cellEditor == 'cellEditSelectFieldComponent') && !item.rowGroup) {
|
|
6402
6403
|
let values = [];
|
|
6403
6404
|
if (item.cellEditorParams && typeof item.cellEditorParams === 'function') {
|
|
6404
6405
|
item.cellEditorParams = item.cellEditorParams() || {};
|
|
@@ -6445,10 +6446,10 @@ class GridComponent {
|
|
|
6445
6446
|
};
|
|
6446
6447
|
item.valueGetter = (params) => {
|
|
6447
6448
|
// console.log('pamrams----',params,item.field)
|
|
6448
|
-
if ((item.cellEditor == 'agRichSelectCellEditor' || item.cellEditor == 'cellEditSelectFieldComponent') && params.data.hasOwnProperty(item.field)) {
|
|
6449
|
+
if ((item.cellEditor == 'agRichSelectCellEditor' || item.cellEditor == 'cellEditSelectFieldComponent') && params.data && params.data.hasOwnProperty(item.field)) {
|
|
6449
6450
|
return typeof params.data[item.field] == 'string' ? params.data[item.field].split(',') : params.data[item.field];
|
|
6450
6451
|
}
|
|
6451
|
-
return params.data[item.field];
|
|
6452
|
+
return params.data ? params.data[item.field] : '';
|
|
6452
6453
|
};
|
|
6453
6454
|
item.valueParser = (params) => {
|
|
6454
6455
|
// console.log('params----',params)
|
|
@@ -6462,10 +6463,10 @@ class GridComponent {
|
|
|
6462
6463
|
else {
|
|
6463
6464
|
item.cellEditorParams.values = values;
|
|
6464
6465
|
item.valueGetter = (params) => {
|
|
6465
|
-
if ((item.cellEditor == 'agRichSelectCellEditor' || item.cellEditor == 'cellEditSelectFieldComponent') && params.data.hasOwnProperty(item.field)) {
|
|
6466
|
+
if ((item.cellEditor == 'agRichSelectCellEditor' || item.cellEditor == 'cellEditSelectFieldComponent') && params.data && params.data.hasOwnProperty(item.field)) {
|
|
6466
6467
|
return typeof params.data[item.field] == 'string' ? params.data[item.field].split(',') : params.data[item.field];
|
|
6467
6468
|
}
|
|
6468
|
-
return params.data[item.field];
|
|
6469
|
+
return params.data ? params.data[item.field] : '';
|
|
6469
6470
|
};
|
|
6470
6471
|
}
|
|
6471
6472
|
}
|