es-grid-template 1.9.91 → 1.9.92
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/es/ali-table/InternalTable.js +1 -1
- package/es/grid-component/hooks/utils.js +1 -0
- package/es/group-component/hook/utils.js +1 -0
- package/es/group-component/table/Grid.js +1 -1
- package/es/table-component/hook/utils.js +1 -0
- package/es/table-component/table/Grid.js +1 -1
- package/es/table-virtuoso/hook/utils.js +1 -0
- package/es/table-virtuoso/table/Grid.js +1 -1
- package/lib/ali-table/InternalTable.js +1 -1
- package/lib/grid-component/hooks/utils.js +1 -0
- package/lib/group-component/hook/utils.js +1 -0
- package/lib/group-component/table/Grid.js +1 -1
- package/lib/table-component/hook/utils.js +1 -0
- package/lib/table-component/table/Grid.js +1 -1
- package/lib/table-virtuoso/hook/utils.js +1 -0
- package/lib/table-virtuoso/table/Grid.js +1 -1
- package/package.json +1 -1
|
@@ -2414,6 +2414,7 @@ export function groupArrayByColumns(data, columns) {
|
|
|
2414
2414
|
rowId: newGuid(),
|
|
2415
2415
|
parentId: !isEmpty(item[columns[index - 1]]) ? item[columns[index - 1]] : null,
|
|
2416
2416
|
// tự tính tổng rồi điền thuộc tính vào
|
|
2417
|
+
isGroupRow: true,
|
|
2417
2418
|
children: []
|
|
2418
2419
|
};
|
|
2419
2420
|
currentLevel.push(newItem);
|
|
@@ -238,6 +238,7 @@ export function groupArrayByColumns(arr, columns) {
|
|
|
238
238
|
parentId: !isEmpty(item[columns[index - 1]]) ? item[columns[index - 1]] : null,
|
|
239
239
|
// parentId: item.rowId[index - 1],
|
|
240
240
|
// indent: index,
|
|
241
|
+
isGroupRow: true,
|
|
241
242
|
children: []
|
|
242
243
|
};
|
|
243
244
|
currentLevel.push(newItem);
|
|
@@ -197,7 +197,7 @@ const Grid = props => {
|
|
|
197
197
|
rowSelected?.({
|
|
198
198
|
type: isSelectionChange.type,
|
|
199
199
|
rowData: isSelectionChange.rowData,
|
|
200
|
-
selected: rs
|
|
200
|
+
selected: rs.filter(x => !x.isGroupRow)
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
}, [isSelectionChange, rowSelection, table.getState().rowSelection]);
|
|
@@ -303,6 +303,7 @@ export function groupArrayByColumns(arr, columns) {
|
|
|
303
303
|
parentId: !isEmpty(item[columns[index - 1]]) ? item[columns[index - 1]] : null,
|
|
304
304
|
// parentId: item.rowId[index - 1],
|
|
305
305
|
// indent: index,
|
|
306
|
+
isGroupRow: true,
|
|
306
307
|
children: []
|
|
307
308
|
};
|
|
308
309
|
currentLevel.push(newItem);
|
|
@@ -269,7 +269,7 @@ const Grid = props => {
|
|
|
269
269
|
rowSelected?.({
|
|
270
270
|
type: isSelectionChange.type,
|
|
271
271
|
rowData: isSelectionChange.rowData,
|
|
272
|
-
selected: ssss
|
|
272
|
+
selected: ssss.filter(x => !x.isGroupRow)
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
}, [isSelectionChange, rowSelection, table.getState().rowSelection]);
|
|
@@ -85,7 +85,7 @@ const Grid = props => {
|
|
|
85
85
|
rowSelected?.({
|
|
86
86
|
type: isSelectionChange.type,
|
|
87
87
|
rowData: isSelectionChange.rowData,
|
|
88
|
-
selected: ssss
|
|
88
|
+
selected: ssss.filter(x => !x.isGroupRow)
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
}, [isSelectionChange, rowSelection, table.getState().rowSelection]);
|
|
@@ -2541,6 +2541,7 @@ function groupArrayByColumns(data, columns) {
|
|
|
2541
2541
|
rowId: newGuid(),
|
|
2542
2542
|
parentId: !isEmpty(item[columns[index - 1]]) ? item[columns[index - 1]] : null,
|
|
2543
2543
|
// tự tính tổng rồi điền thuộc tính vào
|
|
2544
|
+
isGroupRow: true,
|
|
2544
2545
|
children: []
|
|
2545
2546
|
};
|
|
2546
2547
|
currentLevel.push(newItem);
|
|
@@ -315,6 +315,7 @@ function groupArrayByColumns(arr, columns) {
|
|
|
315
315
|
parentId: !isEmpty(item[columns[index - 1]]) ? item[columns[index - 1]] : null,
|
|
316
316
|
// parentId: item.rowId[index - 1],
|
|
317
317
|
// indent: index,
|
|
318
|
+
isGroupRow: true,
|
|
318
319
|
children: []
|
|
319
320
|
};
|
|
320
321
|
currentLevel.push(newItem);
|
|
@@ -203,7 +203,7 @@ const Grid = props => {
|
|
|
203
203
|
rowSelected?.({
|
|
204
204
|
type: isSelectionChange.type,
|
|
205
205
|
rowData: isSelectionChange.rowData,
|
|
206
|
-
selected: rs
|
|
206
|
+
selected: rs.filter(x => !x.isGroupRow)
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
}, [isSelectionChange, rowSelection, table.getState().rowSelection]);
|
|
@@ -399,6 +399,7 @@ function groupArrayByColumns(arr, columns) {
|
|
|
399
399
|
parentId: !isEmpty(item[columns[index - 1]]) ? item[columns[index - 1]] : null,
|
|
400
400
|
// parentId: item.rowId[index - 1],
|
|
401
401
|
// indent: index,
|
|
402
|
+
isGroupRow: true,
|
|
402
403
|
children: []
|
|
403
404
|
};
|
|
404
405
|
currentLevel.push(newItem);
|
|
@@ -274,7 +274,7 @@ const Grid = props => {
|
|
|
274
274
|
rowSelected?.({
|
|
275
275
|
type: isSelectionChange.type,
|
|
276
276
|
rowData: isSelectionChange.rowData,
|
|
277
|
-
selected: ssss
|
|
277
|
+
selected: ssss.filter(x => !x.isGroupRow)
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
}, [isSelectionChange, rowSelection, table.getState().rowSelection]);
|
|
@@ -94,7 +94,7 @@ const Grid = props => {
|
|
|
94
94
|
rowSelected?.({
|
|
95
95
|
type: isSelectionChange.type,
|
|
96
96
|
rowData: isSelectionChange.rowData,
|
|
97
|
-
selected: ssss
|
|
97
|
+
selected: ssss.filter(x => !x.isGroupRow)
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
}, [isSelectionChange, rowSelection, table.getState().rowSelection]);
|