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.
@@ -541,7 +541,7 @@ const InternalTable = props => {
541
541
  rowSelected?.({
542
542
  type,
543
543
  rowData,
544
- selected: rs
544
+ selected: rs.filter(x => !x.isGroupRow)
545
545
  });
546
546
  }
547
547
 
@@ -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]);
@@ -257,6 +257,7 @@ export function groupArrayByColumns(arr, columns) {
257
257
  id: groupRowId,
258
258
  parentId: parentChain[index - 1] ?? null,
259
259
  // Parent là rowId của level trước
260
+ isGroupRow: true,
260
261
  children: []
261
262
  };
262
263
  currentLevel.push(newItem);
@@ -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]);
@@ -541,7 +541,7 @@ const InternalTable = props => {
541
541
  rowSelected?.({
542
542
  type,
543
543
  rowData,
544
- selected: rs
544
+ selected: rs.filter(x => !x.isGroupRow)
545
545
  });
546
546
  }
547
547
 
@@ -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]);
@@ -341,6 +341,7 @@ function groupArrayByColumns(arr, columns) {
341
341
  id: groupRowId,
342
342
  parentId: parentChain[index - 1] ?? null,
343
343
  // Parent là rowId của level trước
344
+ isGroupRow: true,
344
345
  children: []
345
346
  };
346
347
  currentLevel.push(newItem);
@@ -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]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "1.9.91",
3
+ "version": "1.9.92",
4
4
  "description": "es-grid-template",
5
5
  "keywords": [
6
6
  "react",