es-grid-template 1.9.71 → 1.9.72

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.
Files changed (34) hide show
  1. package/es/ali-table/Grid.d.ts +2 -1
  2. package/es/ali-table/Grid.js +12 -5
  3. package/es/ali-table/InternalTable.js +45 -94
  4. package/es/ali-table/base-table/cell/HeaderEditCell.js +4 -1
  5. package/es/ali-table/base-table/renderFilter.js +13 -5
  6. package/es/ali-table/base-table/styles.d.ts +6 -0
  7. package/es/ali-table/base-table/styles.js +5 -2
  8. package/es/ali-table/pipeline/features/columnCustom.d.ts +1 -0
  9. package/es/ali-table/pipeline/features/columnCustom.js +38 -25
  10. package/es/ali-table/pipeline/features/hiddenColumns.d.ts +1 -0
  11. package/es/ali-table/pipeline/features/hiddenColumns.js +9 -3
  12. package/es/ali-table/pipeline/features/treeSelect.js +3 -3
  13. package/es/ali-table/utils/constants.d.ts +3 -1
  14. package/es/ali-table/utils/constants.js +5 -2
  15. package/es/ali-table/utils/utility.d.ts +1 -0
  16. package/es/ali-table/utils/utility.js +5 -1
  17. package/es/group-component/hook/utils.d.ts +3 -3
  18. package/lib/ali-table/Grid.d.ts +2 -1
  19. package/lib/ali-table/Grid.js +12 -4
  20. package/lib/ali-table/InternalTable.js +45 -94
  21. package/lib/ali-table/base-table/cell/HeaderEditCell.js +4 -1
  22. package/lib/ali-table/base-table/renderFilter.js +13 -5
  23. package/lib/ali-table/base-table/styles.d.ts +6 -0
  24. package/lib/ali-table/base-table/styles.js +5 -2
  25. package/lib/ali-table/pipeline/features/columnCustom.d.ts +1 -0
  26. package/lib/ali-table/pipeline/features/columnCustom.js +38 -25
  27. package/lib/ali-table/pipeline/features/hiddenColumns.d.ts +1 -0
  28. package/lib/ali-table/pipeline/features/hiddenColumns.js +9 -3
  29. package/lib/ali-table/pipeline/features/treeSelect.js +3 -3
  30. package/lib/ali-table/utils/constants.d.ts +3 -1
  31. package/lib/ali-table/utils/constants.js +6 -3
  32. package/lib/ali-table/utils/utility.d.ts +1 -0
  33. package/lib/ali-table/utils/utility.js +7 -2
  34. package/package.json +1 -1
@@ -1,10 +1,12 @@
1
1
  export declare const stateKeyResize = "columnResize";
2
2
  export declare const stateKeyFilter = "columnsFilter";
3
+ export declare const stateKeyColumnFilter = "columnFilter";
3
4
  export declare const stateKeySorter = "columnsSorter";
4
5
  export declare const stateKeyVisible = "visible";
5
6
  export declare const stateKeyTooltip = "tooltip";
6
7
  export declare const stateKeyPagination = "pagination";
7
- export declare const stateKeyColumnFilter = "columnFilter";
8
+ export declare const stateKeyVisibleKeys = "columnVisibleKeys";
9
+ export declare const stateKeyGroupKeys = "columnGroupKeys";
8
10
  export declare const stateKeyFocusedCell = "focusedCell";
9
11
  export declare const stateKeyIsEditing = "isEditing";
10
12
  export declare const stateKeyStartPasteCell = "startPasteCell";
@@ -1,10 +1,13 @@
1
1
  export const stateKeyResize = 'columnResize';
2
- export const stateKeyFilter = 'columnsFilter';
2
+ export const stateKeyFilter = 'columnsFilter'; // array all state
3
+ export const stateKeyColumnFilter = 'columnFilter'; // current column filter state
4
+
3
5
  export const stateKeySorter = 'columnsSorter';
4
6
  export const stateKeyVisible = 'visible';
5
7
  export const stateKeyTooltip = 'tooltip';
6
8
  export const stateKeyPagination = 'pagination';
7
- export const stateKeyColumnFilter = 'columnFilter';
9
+ export const stateKeyVisibleKeys = 'columnVisibleKeys';
10
+ export const stateKeyGroupKeys = 'columnGroupKeys';
8
11
 
9
12
  // Key for Edit
10
13
 
@@ -24,4 +24,5 @@ export declare function updateOrInsert<T extends Row>(dataArray: T[], dataFilter
24
24
  export declare function filterVisibleColumns<T extends ColumnTable>(columns: T[]): T[];
25
25
  export declare const sortByType: (arr: ColumnTable[], rowDnd?: RowDnd) => ColumnTable[];
26
26
  export declare function getVisibleColumnFields<T extends ColumnTable>(columns: T[]): string[];
27
+ export declare const getOnlyInA: (a: string[], b: string[]) => string[];
27
28
  export {};
@@ -692,4 +692,8 @@ export function getVisibleColumnFields(columns) {
692
692
  };
693
693
  traverse(columns);
694
694
  return result;
695
- }
695
+ }
696
+ export const getOnlyInA = (a, b) => {
697
+ const setB = new Set(b);
698
+ return a.filter(item => !setB.has(item));
699
+ };
@@ -196,10 +196,10 @@ export declare const fixColumnsLeft: <RecordType>(columns: ColumnTable<RecordTyp
196
196
  value: any;
197
197
  rowData: RecordType;
198
198
  }) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNode);
199
- onCellStyles?: Omit<CSSProperties, "width" | "minWidth" | "left" | "right" | "position" | "display"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "width" | "minWidth" | "left" | "right" | "position" | "display">);
200
- onCellHeaderStyles?: Omit<CSSProperties, "width" | "minWidth" | "left" | "right" | "position" | "display"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "width" | "minWidth" | "left" | "right" | "position" | "display">);
199
+ onCellStyles?: Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width">);
200
+ onCellHeaderStyles?: Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width">);
201
201
  onCell?: (rowData: RecordType, index: number) => import("react").TdHTMLAttributes<HTMLTableCellElement>;
202
- onCellFooterStyles?: Omit<CSSProperties, "width" | "minWidth" | "left" | "right" | "position" | "display"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "width" | "minWidth" | "left" | "right" | "position" | "display">);
202
+ onCellFooterStyles?: Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width">);
203
203
  getValue?: (row: any, rowIndex: number) => any;
204
204
  getCellProps?: (value: any, row: any, rowIndex: number) => import("./../../grid-component/type").CellProps;
205
205
  headerCellProps?: import("./../../grid-component/type").CellProps;
@@ -12,7 +12,6 @@ declare const Grid: React.ForwardRefExoticComponent<Omit<TableProps, "useVirtual
12
12
  pipeline: TablePipeline;
13
13
  originData: any[];
14
14
  originColumns: any[];
15
- setVisibleKeys: Dispatch<SetStateAction<any>>;
16
15
  useVirtual?: VirtualEnum | {
17
16
  horizontal?: VirtualEnum;
18
17
  vertical?: VirtualEnum;
@@ -22,5 +21,7 @@ declare const Grid: React.ForwardRefExoticComponent<Omit<TableProps, "useVirtual
22
21
  toolbarItemTopRight?: ToolbarItem[];
23
22
  toolbarItemsTop?: ToolbarItem[];
24
23
  toolbarItemsBottom?: ToolbarItem[];
24
+ isDataTree?: boolean;
25
+ setColumns: Dispatch<SetStateAction<any>>;
25
26
  } & React.RefAttributes<BaseTable>>;
26
27
  export default Grid;
@@ -23,6 +23,7 @@ var _styles2 = require("./base-table/styles");
23
23
  var _ColumnsConfig = require("../table-component/ColumnsConfig");
24
24
  var _utils = require("../table-component/hook/utils");
25
25
  var _utility = require("./utils/utility");
26
+ var _constants = require("./utils/constants");
26
27
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
27
28
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
28
29
  // import type { TableProps } from "../table-component"
@@ -64,9 +65,11 @@ const Grid = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
64
65
  onRowStyles,
65
66
  showColumnChoose,
66
67
  originColumns,
68
+ striped,
69
+ isDataTree,
67
70
  // columns,
68
71
  groupColumns,
69
- setVisibleKeys,
72
+ // setVisibleKeys,
70
73
  footerDataSource,
71
74
  loading,
72
75
  useVirtual,
@@ -78,7 +81,8 @@ const Grid = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
78
81
  toolbarItemsBottom,
79
82
  toolbarItemTopRight,
80
83
  toolbarItemsTop,
81
- onChooseColumns
84
+ onChooseColumns,
85
+ setColumns
82
86
  } = props;
83
87
  const {
84
88
  cssVariables
@@ -169,12 +173,14 @@ const Grid = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
169
173
  }, []);
170
174
  const triggerChangeColumns = (cols, keys, type) => {
171
175
  const abc = (0, _utility.getVisibleColumnFields)(cols);
172
- setVisibleKeys(abc);
176
+ // setVisibleKeys(abc)
177
+ pipeline.setStateAtKey(_constants.stateKeyVisibleKeys, abc);
173
178
  if (type === 'cellClick') {
174
179
 
175
180
  // setColumns(cols)
176
181
  } else {
177
- // setColumns(cols)
182
+ console.log('setColumns');
183
+ setColumns(cols);
178
184
  // pipeline.columns(cols)
179
185
 
180
186
  // const aa = flatColumns2(columns).map((it) => it.field)
@@ -353,6 +359,8 @@ const Grid = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
353
359
  ...prevRowProps,
354
360
  className: (0, _classnames.default)(``, {
355
361
  [`${prefix}-grid-row-parent`]: row.children && row.children.length > 0 || Array.isArray(row.children),
362
+ [`${prefix}-grid-row-odd`]: !editAble && !isDataTree && striped && rowIndex % 2 === 1,
363
+ [`${prefix}-grid-row-even`]: !editAble && !isDataTree && striped && rowIndex % 2 === 0,
356
364
  'no-hover': editAble
357
365
  }),
358
366
  style: {
@@ -126,11 +126,22 @@ const InternalTable = props => {
126
126
  document.removeEventListener('resize', handleWindowResize);
127
127
  };
128
128
  }, []);
129
- const [visibleKeys, setVisibleKeys] = _react.default.useState(undefined);
129
+
130
+ // const [visibleKeys, setVisibleKeys] = React.useState(undefined)
131
+
130
132
  const [filterState, setFilterState] = _react.default.useState(undefined);
131
133
  const [sortState, setSortState] = _react.default.useState(undefined);
132
- const columns = _react.default.useMemo(() => {
133
- return (0, _utility.sortByType)(propColumns, rowDnd);
134
+ const [columns, setColumns] = _react.default.useState([]);
135
+
136
+ // const columns = React.useMemo(() => {
137
+
138
+ // return sortByType(propColumns, rowDnd)
139
+
140
+ // }, [propColumns, rowDnd])
141
+
142
+ _react.default.useEffect(() => {
143
+ const abc = (0, _utility.sortByType)(propColumns, rowDnd);
144
+ setColumns(abc);
134
145
  }, [propColumns, rowDnd]);
135
146
  const convertData = _react.default.useMemo(() => {
136
147
  if (groupAble && groupSetting && groupSetting.client !== false) {
@@ -139,8 +150,8 @@ const InternalTable = props => {
139
150
  return (0, _utils.addRowIdArray)(dataSource);
140
151
  }, [dataSource, groupAble, groupColumns, groupSetting]);
141
152
  const isDataTree = _react.default.useMemo(() => {
142
- return (0, _utils.isTreeArray)(dataSource);
143
- }, [dataSource]);
153
+ return (0, _utils.isTreeArray)(convertData);
154
+ }, [convertData]);
144
155
  const mergedData = _react.default.useMemo(() => {
145
156
  const shouldSkip = onFilter && onSorter;
146
157
  if (shouldSkip) {
@@ -177,7 +188,11 @@ const InternalTable = props => {
177
188
  return undefined;
178
189
  }, [defaultFilter]);
179
190
  const columnVisibility = _react.default.useMemo(() => {
180
- return (0, _utils.getVisibleFields)(columns);
191
+ const visibleCols = (0, _utils.getVisibleFields)(columns);
192
+
193
+ // const rs = groupAble && groupColumns && groupColumns.length > 0 ? getOnlyInA(visibleCols, groupColumns) : visibleCols
194
+
195
+ return visibleCols;
181
196
  }, [columns]);
182
197
  const dataIds = _react.default.useMemo(() => convertData.map(it => it.rowId), [convertData]);
183
198
  const isAddAble = _react.default.useMemo(() => {
@@ -487,9 +502,12 @@ const InternalTable = props => {
487
502
  }).primaryKey(rowKey)
488
503
  // .mapDataSource((dta) => collectNodes(dta, 'pre'))
489
504
  // .snapshot('flat')
490
- .use(_pipeline.features.hiddenColumns({
505
+ .use(_pipeline.features.paginationFeature({
506
+ pagination
507
+ })).use(_pipeline.features.hiddenColumns({
491
508
  columns,
492
- visibleKeys: visibleKeys ?? columnVisibility
509
+ visibleKeys: columnVisibility,
510
+ groupColumns: groupAble ? groupColumns : undefined
493
511
  })).use(_pipeline.features.treeSelect({
494
512
  tree: mergedData,
495
513
  value: selectionSettings?.selectedRowKeys,
@@ -528,12 +546,15 @@ const InternalTable = props => {
528
546
  stopClickEventPropagation: true,
529
547
  expandIconColumnIndex: expandable?.expandIconColumnIndex,
530
548
  defaultOpenKeys: expandAllKeys ?? expandable?.defaultExpandedRowKeys,
531
- isTreeArray: !!isDataTree
549
+ isTreeArray: !!isDataTree,
550
+ iconGap: 6,
551
+ iconIndent: 0
532
552
  })).use(_pipeline.features.columnCustom({
533
553
  tableRef,
534
554
  id: tableId,
535
555
  t,
536
556
  columns,
557
+ groupColumns,
537
558
  mode: sortMultiple !== false ? 'multiple' : 'single',
538
559
  dataSource: convertData,
539
560
  rowIndexMap,
@@ -552,6 +573,7 @@ const InternalTable = props => {
552
573
  isDataTree,
553
574
  defaultFilter: defaultFilterConvert,
554
575
  defaultSorter,
576
+ format,
555
577
  onFilter(val) {
556
578
  // const rs =
557
579
 
@@ -588,10 +610,12 @@ const InternalTable = props => {
588
610
  onCellClick,
589
611
  handleAddMulti,
590
612
  handleCellChangeAndAddRow
591
- })).use(_pipeline.features.paginationFeature({
592
- pagination
593
613
  }));
594
614
 
615
+ // .use(features.paginationFeature({
616
+ // pagination
617
+ // }))
618
+
595
619
  // const editingCell = pipeline.getStateAtKey(stateKeyIsEditing)
596
620
 
597
621
  // const onResizeEnd = (args: any[]) => {
@@ -1357,84 +1381,6 @@ const InternalTable = props => {
1357
1381
  handlePasted(rowsPasted);
1358
1382
  }
1359
1383
  }, [handlePasted, onCellPaste?.maxRowsPaste, startCell]);
1360
-
1361
- // const handleDeleteContent = () => {
1362
-
1363
- // if (startCell && endCell) {
1364
-
1365
- // const tmpData = flattenArray([...convertData])
1366
-
1367
- // const rs = tmpData.map((row, index: number) => {
1368
-
1369
- // if (!rangeState?.rowRange.includes(row.rowId)) {
1370
- // return row
1371
- // }
1372
-
1373
- // const updatedRow = { ...row }
1374
-
1375
- // for (const colId of rangeState.colRange) {
1376
-
1377
- // const column = leafColumns.find((it) => it.field === colId)
1378
- // const columnIndex = leafColumns.findIndex((it) => it.field === colId)
1379
-
1380
- // if (isEditable(column as any, row)) {
1381
-
1382
- // let newValue: any = ''
1383
-
1384
- // if (column.type === 'number') {
1385
- // newValue = 0
1386
- // }
1387
-
1388
- // if (column.type === 'boolean' || column.type === 'checkbox') {
1389
- // newValue = false
1390
- // }
1391
-
1392
- // const editType = getEditType(column as any, row)
1393
-
1394
- // if (column.type === 'date' ||
1395
- // column.type === 'datetime' ||
1396
- // column.type === 'time' ||
1397
- // column.type === 'month' ||
1398
- // column.type === 'week' ||
1399
- // column.type === 'year' ||
1400
- // column.type === 'quarter' ||
1401
- // editType === 'asyncSelect' ||
1402
- // editType === 'select' ||
1403
- // editType === 'treeSelect' ||
1404
- // editType === 'selectTable'
1405
- // ) {
1406
- // newValue = undefined
1407
- // }
1408
-
1409
- // updatedRow[colId] = newValue
1410
-
1411
- // handleCellChange({
1412
- // key: row[rowKey] as any,
1413
- // field: column.field ?? column.dataIndex as any,
1414
- // record: updatedRow,
1415
- // prevState: row[column.field],
1416
- // newState: newValue,
1417
- // option: '',
1418
- // indexCol: columnIndex,
1419
- // indexRow: index,
1420
- // type: 'blur'
1421
- // }
1422
- // )
1423
-
1424
- // }
1425
- // }
1426
-
1427
- // return updatedRow;
1428
- // })
1429
-
1430
- // const newData = unFlattenData(rs)
1431
-
1432
- // triggerChangeData?.([...newData], { type: 'DELETE_CONTENT' })
1433
-
1434
- // }
1435
-
1436
- // }
1437
-
1438
1384
  _react.default.useEffect(() => {
1439
1385
  const handlePaste = e => {
1440
1386
  if (startCell && !isEditing) {
@@ -2039,8 +1985,9 @@ const InternalTable = props => {
2039
1985
  originData: convertData,
2040
1986
  dataSource: mergedData,
2041
1987
  originColumns: columns,
2042
- groupColumns: groupColumns,
2043
- setVisibleKeys: setVisibleKeys,
1988
+ groupColumns: groupColumns
1989
+ // setVisibleKeys={setVisibleKeys}
1990
+ ,
2044
1991
  footerDataSource: footerData,
2045
1992
  onFilter: onFilter,
2046
1993
  onSorter: onSorter,
@@ -2048,10 +1995,12 @@ const InternalTable = props => {
2048
1995
  defaultSorter: defaultSorter,
2049
1996
  dataRowIds: dataIds,
2050
1997
  columns: columns,
1998
+ setColumns: setColumns,
2051
1999
  editAble: editAble,
2052
2000
  toolbarItemTopRight: toolbarItemTopRight,
2053
2001
  toolbarItemsTop: toolbarItemsTop,
2054
- toolbarItemsBottom: toolbarItemsBottom
2002
+ toolbarItemsBottom: toolbarItemsBottom,
2003
+ isDataTree: isDataTree
2055
2004
  })), /*#__PURE__*/_react.default.createElement(_rcMasterUi.Modal, {
2056
2005
  open: isFullScreen,
2057
2006
  footer: null,
@@ -2096,11 +2045,13 @@ const InternalTable = props => {
2096
2045
  ,
2097
2046
 
2098
2047
  columns: columns,
2048
+ setColumns: setColumns,
2099
2049
  dataSource: dataSource,
2100
2050
  originData: convertData,
2101
2051
  originColumns: columns,
2102
- groupColumns: groupColumns,
2103
- setVisibleKeys: setVisibleKeys,
2052
+ groupColumns: groupColumns
2053
+ // setVisibleKeys={setVisibleKeys}
2054
+ ,
2104
2055
  footerDataSource: footerData,
2105
2056
  onFilter: onFilter,
2106
2057
  onSorter: onSorter,
@@ -1244,7 +1244,10 @@ const HeaderEditCell = props => {
1244
1244
  }
1245
1245
  };
1246
1246
  return /*#__PURE__*/_react.default.createElement("form", {
1247
- onSubmit: handleSubmit(onSubmit)
1247
+ onSubmit: handleSubmit(onSubmit),
1248
+ style: {
1249
+ height: '100%'
1250
+ }
1248
1251
  }, /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
1249
1252
  name: dataIndex,
1250
1253
  control: control,
@@ -295,21 +295,29 @@ const renderFilter = args => {
295
295
 
296
296
  // value={selectedKeys[0]}
297
297
  ,
298
- defaultValue: selectedKeys[0]
298
+ defaultValue: selectedKeys[0] ?? ''
299
299
 
300
- // onChange={(e) => setSelectedKeys(e.target.value ? [e.target.value] : [])}
300
+ // onChange={(e) => {
301
+ // if (selectedKeys[0] === e.target.value) {
302
+
303
+ // } else {
304
+ // setSelectedKeys(e.target.value ? [e.target.value] : [])
305
+ // }
306
+
307
+ // }}
301
308
  ,
309
+
302
310
  onBlur: e => {
303
311
  if (selectedKeys[0] === e.target.value) {} else {
304
- setSelectedKeys(e.target.value ? [e.target.value.trim()] : []);
312
+ setSelectedKeys(e.target.value ? [e.target.value] : []);
305
313
  }
306
314
  }
307
315
 
308
316
  // onPressEnter={() => handleSearch(selectedKeys as string[], confirm)}
309
317
  ,
310
318
  onPressEnter: () => doFilter?.(true),
311
- allowClear: true
312
- // autoFocus={true}
319
+ allowClear: true,
320
+ autoFocus: true
313
321
  }))));
314
322
  }
315
323
  };
@@ -14,6 +14,9 @@ export declare const Classes: {
14
14
  readonly tableFooter: "ui-rc-grid-table-footer";
15
15
  /** Table row */
16
16
  readonly tableRow: "ui-rc-grid-table-row";
17
+ readonly tableRowParent: "ui-rc-grid-row-parent";
18
+ readonly tableRowOdd: "ui-rc-grid-row-odd";
19
+ readonly tableRowEven: "ui-rc-grid-row-even";
17
20
  /** Table header row */
18
21
  readonly tableHeaderRow: "ui-rc-grid-table-header-row";
19
22
  /** Cell */
@@ -45,6 +48,9 @@ export declare const Classes: {
45
48
  export type BaseTableCSSVariables = Partial<{
46
49
  /** Table row height */
47
50
  '--row-height': string;
51
+ '--row-odd-bgcolor': string;
52
+ '--row-even-bgcolor': string;
53
+ '--row-parent-bgcolor': string;
48
54
  /** Table font color */
49
55
  '--color': string;
50
56
  /** Table hover font color */
@@ -28,6 +28,9 @@ const Classes = exports.Classes = {
28
28
  tableFooter: `${prefix}table-footer`,
29
29
  /** Table row */
30
30
  tableRow: `${prefix}table-row`,
31
+ tableRowParent: `${prefix}row-parent`,
32
+ tableRowOdd: `${prefix}row-odd`,
33
+ tableRowEven: `${prefix}row-even`,
31
34
  /** Table header row */
32
35
  tableHeaderRow: `${prefix}table-header-row`,
33
36
  /** Cell */
@@ -68,11 +71,11 @@ const outerBorderStyleMixin = (0, _styledComponents.css)(["border-top:var(--cell
68
71
  const StyleTableContainer = exports.StyleTableContainer = _styledComponents.default.div.withConfig({
69
72
  displayName: "StyleTableContainer",
70
73
  componentId: "es-grid-template__sc-ipj1ht-0"
71
- })(["--row-height:34px;--color:#333;--bgcolor:white;--body-hover-bgcolor:#f5f5f5;--body-hover-color:#333;--hover-bgcolor:var(--body-hover-bgcolor);--hover-color:var(--body-hover-color);--highlight-bgcolor:#eee;--header-row-height:34px;--header-color:#000000de;--header-bgcolor:#ffffff;--header-hover-bgcolor:#ddd;--header-highlight-bgcolor:#e4e8ed;--cell-padding:7px 8px;--font-size:13px;--line-height:1.28571;--lock-shadow:rgba(152,152,152,0.5) 0 0 6px 2px;--border-color:#dfe3e8;--border-color-select:#eb4619;--cell-border:1px solid var(--border-color);--cell-border-select:1px solid var(--border-color-select);--cell-border-horizontal:var(--cell-border);--cell-border-vertical:var(--cell-border);--header-cell-border:1px solid var(--border-color);--header-cell-border-horizontal:var(--header-cell-border);--header-cell-border-vertical:var(--header-cell-border);--footer-bgcolor:#fafafa;&.", "{--bgcolor:#343e59;--footer-bgcolor:#2e3342;--header-bgcolor:#343e59;--hover-bgcolor:#232b43;--header-hover-bgcolor:#606164;--highlight-bgcolor:#eff2f5;--header-highlight-bgcolor:#191a1b;--hover-color:#dadde1;--color:#dadde1;--header-color:#dadde1;--lock-shadow:rgb(37 37 37 / 0.5) 0 0 6px 2px;--border-color:#4f5266;background-color:var(--bgcolor);}&.use-outer-border{", ";}&.", "{.", "{border-left:0;border-right:0;td,th{border-right:0;}td.first,th.first{border-left:0;}td.last,th.last{}thead tr.first th,tbody tr.first td{}tr{td{&.lock-left,&.lock-right{border-bottom-width:0;box-shadow:0 -1px 0 0 var(--border-color),0 0px 0 0 var(--border-color),0px 0 0 0 var(--border-color);}}}&.has-footer tfoot tr.last td{}&.has-footer tbody tr.last td{}&.has-footer tfoot tr td{}&:not(.has-footer) tbody tr.last td{}&:has(.", ") thead tr.first th{}}}&.", "{&.use-outer-border{border-bottom:var(--header-cell-border);}.", "{border-top:0;td,th{border-bottom:0;border-top:0;}td.lock-left{box-shadow:none;}td.first,th.first{}td.last,th.last{}thead tr.first th,tbody tr.first td{}&.has-footer tfoot tr td{border-bottom:0;border-top:0;}&.has-footer tbody tr.last td{}&.has-footer tfoot tr td{}&:not(.has-footer) tbody tr.last td{}&:has(.", ") thead tr.first th{}}}&.", "{.", "{border:0;td,th{border-right:0;border-bottom:0;}td.lock-left{box-shadow:none;}td,th{border:0;}td.last,th.last{}thead tr.first th,tbody tr.first td{}&.has-footer tfoot tr td{border-bottom:0;border-top:0;}&.has-footer tbody tr.last td{}&.has-footer tfoot tr td{}&:not(.has-footer) tbody tr.last td{}&:has(.", ") thead tr.first th{border-top:0;border:0;}}}.", "{padding:8px;}&.ui-rc-grid .ui-rc-pagination{background-color:var(--bgcolor);color:var(--color);padding:10px;background-color:var(--bgcolor);.ui-rc-pagination-prev{.anticon.anticon-left{color:var(--color);}}.ui-rc-pagination-disabled{.anticon.anticon-left{color:#7d7a7a;}}.ui-rc-pagination-next{.anticon.anticon-right{color:var(--color);}&.ui-rc-pagination-disabled{.anticon.anticon-right{color:#7d7a7a;}}}}&.auto-height{.ui-rc-grid-bottom{border-top:0;}}.ui-rc-grid-bottom{border-top:var(--cell-border-horizontal);}.ui-rc-toolbar-bottom{.be-toolbar-item{.ui-rc-btn{font-size:12px;line-height:1.5}.toolbar-dropdown-button{font-size:12px;.ui-rc-btn.ui-rc-btn-default.ui-rc-btn-variant-outlined.ui-rc-btn-compact-item.ui-rc-btn-compact-first-item{border-color:#28c76f;}.ui-rc-btn.ui-rc-btn-default.ui-rc-btn-variant-outlined.ui-rc-btn-compact-item.ui-rc-btn-compact-last-item{border-color:#28c76f;.ui-rc-btn-icon{color:#28c76f;}}}}}.ui-rc-toolbar-bottom{position:relative;padding:.15rem 0.5rem;background-color:#ffffff;.toolbar-button{border-radius:3px;}.ui-rc-btn{border-radius:3px;height:28px;&.ui-rc-btn-compact-item.ui-rc-btn-compact-last-item{border-start-start-radius:0;border-end-start-radius:0;}&.ui-rc-btn-compact-item.ui-rc-btn-compact-first-item{border-start-end-radius:0;border-end-end-radius:0;}}}&.", "{&.ui-rc-grid{.ui-rc-toolbar-bottom{background-color:var(--footer-bgcolor);color:#ffffff;}}.ui-rc-grid-top-toolbar{border-color:var(--border-color);color:#ffffff;}.ui-rc-toolbar{.ui-rc-toolbar-selection-item{background-color:var(--footer-bgcolor);color:#ffffff;}}}"], Classes.tableThemeDark, outerBorderStyleMixin, Classes.gridHorizontal, Classes.tableWrapper, Classes.tableTop, Classes.gridVertical, Classes.tableWrapper, Classes.tableTop, Classes.gridNone, Classes.tableWrapper, Classes.tableTop, Classes.tableTop, Classes.tableThemeDark);
74
+ })(["--row-height:34px;--color:#333;--bgcolor:white;--row-parent-bgcolor:#f5f5f5;--row-odd-bgcolor:#f9f8fd;--row-even-bgcolor:#ffffff;--body-hover-bgcolor:#f5f5f5;--body-hover-color:#333;--hover-bgcolor:var(--body-hover-bgcolor);--hover-color:var(--body-hover-color);--highlight-bgcolor:#eee;--header-row-height:34px;--header-color:#000000de;--header-bgcolor:#ffffff;--header-hover-bgcolor:#ddd;--header-highlight-bgcolor:#e4e8ed;--cell-padding:7px 8px;--font-size:13px;--line-height:1.28571;--lock-shadow:rgba(152,152,152,0.5) 0 0 6px 2px;--border-color:#dfe3e8;--border-color-select:#eb4619;--cell-border:1px solid var(--border-color);--cell-border-select:1px solid var(--border-color-select);--cell-border-horizontal:var(--cell-border);--cell-border-vertical:var(--cell-border);--header-cell-border:1px solid var(--border-color);--header-cell-border-horizontal:var(--header-cell-border);--header-cell-border-vertical:var(--header-cell-border);--footer-bgcolor:#fafafa;&.", "{--bgcolor:#343e59;--footer-bgcolor:#2e3342;--header-bgcolor:#343e59;--hover-bgcolor:#232b43;--header-hover-bgcolor:#606164;--highlight-bgcolor:#eff2f5;--header-highlight-bgcolor:#191a1b;--hover-color:#dadde1;--color:#dadde1;--header-color:#dadde1;--lock-shadow:rgb(37 37 37 / 0.5) 0 0 6px 2px;--border-color:#4f5266;background-color:var(--bgcolor);}&.use-outer-border{", ";}&.", "{.", "{border-left:0;border-right:0;td,th{border-right:0;}td.first,th.first{border-left:0;}td.last,th.last{}thead tr.first th,tbody tr.first td{}tr{td{&.lock-left,&.lock-right{border-bottom-width:0;box-shadow:0 -1px 0 0 var(--border-color),0 0px 0 0 var(--border-color),0px 0 0 0 var(--border-color);}}}&.has-footer tfoot tr.last td{}&.has-footer tbody tr.last td{}&.has-footer tfoot tr td{}&:not(.has-footer) tbody tr.last td{}&:has(.", ") thead tr.first th{}}}&.", "{&.use-outer-border{border-bottom:var(--header-cell-border);}.", "{border-top:0;td,th{border-bottom:0;border-top:0;}td.lock-left{box-shadow:none;}td.first,th.first{}td.last,th.last{}thead tr.first th,tbody tr.first td{}&.has-footer tfoot tr td{border-bottom:0;border-top:0;}&.has-footer tbody tr.last td{}&.has-footer tfoot tr td{}&:not(.has-footer) tbody tr.last td{}&:has(.", ") thead tr.first th{}}}&.", "{.", "{border:0;td,th{border-right:0;border-bottom:0;}td.lock-left{box-shadow:none;}td,th{border:0;}td.last,th.last{}thead tr.first th,tbody tr.first td{}&.has-footer tfoot tr td{border-bottom:0;border-top:0;}&.has-footer tbody tr.last td{}&.has-footer tfoot tr td{}&:not(.has-footer) tbody tr.last td{}&:has(.", ") thead tr.first th{border-top:0;border:0;}}}.", "{padding:8px;}&.ui-rc-grid .ui-rc-pagination{background-color:var(--bgcolor);color:var(--color);padding:10px;background-color:var(--bgcolor);.ui-rc-pagination-prev{.anticon.anticon-left{color:var(--color);}}.ui-rc-pagination-disabled{.anticon.anticon-left{color:#7d7a7a;}}.ui-rc-pagination-next{.anticon.anticon-right{color:var(--color);}&.ui-rc-pagination-disabled{.anticon.anticon-right{color:#7d7a7a;}}}}&.auto-height{.ui-rc-grid-bottom{border-top:0;}}.ui-rc-grid-bottom{border-top:var(--cell-border-horizontal);}.ui-rc-toolbar-bottom{.be-toolbar-item{.ui-rc-btn{font-size:12px;line-height:1.5}.toolbar-dropdown-button{font-size:12px;.ui-rc-btn.ui-rc-btn-default.ui-rc-btn-variant-outlined.ui-rc-btn-compact-item.ui-rc-btn-compact-first-item{border-color:#28c76f;}.ui-rc-btn.ui-rc-btn-default.ui-rc-btn-variant-outlined.ui-rc-btn-compact-item.ui-rc-btn-compact-last-item{border-color:#28c76f;.ui-rc-btn-icon{color:#28c76f;}}}}}.ui-rc-toolbar-bottom{position:relative;padding:.15rem 0.5rem;background-color:#ffffff;.toolbar-button{border-radius:3px;}.ui-rc-btn{border-radius:3px;height:28px;&.ui-rc-btn-compact-item.ui-rc-btn-compact-last-item{border-start-start-radius:0;border-end-start-radius:0;}&.ui-rc-btn-compact-item.ui-rc-btn-compact-first-item{border-start-end-radius:0;border-end-end-radius:0;}}}&.", "{&.ui-rc-grid{.ui-rc-toolbar-bottom{background-color:var(--footer-bgcolor);color:#ffffff;}}.ui-rc-grid-top-toolbar{border-color:var(--border-color);color:#ffffff;}.ui-rc-toolbar{.ui-rc-toolbar-selection-item{background-color:var(--footer-bgcolor);color:#ffffff;}}}"], Classes.tableThemeDark, outerBorderStyleMixin, Classes.gridHorizontal, Classes.tableWrapper, Classes.tableTop, Classes.gridVertical, Classes.tableWrapper, Classes.tableTop, Classes.gridNone, Classes.tableWrapper, Classes.tableTop, Classes.tableTop, Classes.tableThemeDark);
72
75
  const StyledArtTableWrapper = exports.StyledArtTableWrapper = _styledComponents.default.div.withConfig({
73
76
  displayName: "StyledArtTableWrapper",
74
77
  componentId: "es-grid-template__sc-ipj1ht-1"
75
- })(["box-sizing:border-box;*{box-sizing:border-box;}cursor:default;color:var(--color);font-size:var(--font-size);line-height:var(--line-height);position:relative;overflow-anchor:none;&::-webkit-scrollbar{}&::-webkit-scrollbar-track{}&::-webkit-scrollbar-thumb{}&::-webkit-scrollbar-thumb:hover{}&.dark{&::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.3);}&::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.5);}}&.", "{border-left:var(--cell-border-vertical);border-right:var(--cell-border-vertical);border-top:var(--cell-border-vertical);border-bottom:0;&.has-footer{border-bottom:0;.", "{td{}}}&.has-vertical-scroll{border-bottom:var(--cell-border-vertical);th.first{border-left:0;}td.first{border-left:0;}&.has-footer{border-bottom:var(--cell-border-vertical);}.", "{tr.last{td{border-bottom:0;}}}.", "{tr.last{td{border-bottom:0;}}}+ .ui-rc-grid-bottom{border-top:0;}&:not(.has-footer){+ .ui-rc-grid-bottom{border-top:var(--cell-border-vertical);}}}&:not(.has-vertical-scroll){border-left:0;border-right:0;}&:not(.has-header){border-top:0;}}&.use-outer-border{}.no-scrollbar{scrollbar-width:none;::-webkit-scrollbar{}}.", "{overflow-x:auto;overflow-y:hidden;background:var(--header-bgcolor);.ui-rc-table-column-title{flex:1;min-width:0;text-align:start;}.", "{font-weight:500;.ui-rc-header-trigger{padding-left:6px;display:flex;align-items:center;.ui-rc-table-column-sorter-cancel{opacity:0;}}&:hover{.ui-rc-header-trigger{.ui-rc-table-column-sorter-cancel{opacity:1;}}}.", "{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;}.", "{width:100%;white-space:normal;word-break:break-word;}.", "{text-align:center;}.", "{text-align:right;}}}.", "{.", "{&.", "{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;.expansion-cell{.expansion-content{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;}}}&.", "{width:100%;white-space:normal;word-break:break-word;}&.", "{text-align:center;}&.", "{text-align:right;}}.", "{background:var(--footer-bgcolor);}}.", ",.", "{overflow-x:auto;overflow-y:hidden;}&.sticky-header .", "{position:sticky;top:0;z-index:", ";}&.sticky-footer .", "{position:sticky;bottom:0;z-index:", ";}.", "{tr{td.cell-edit{&.lock-left,&.lock-right{}}td.first{&.lock-left{border-bottom-width:1px;}}}tr.ui-rc-grid-table-row{td.cell-edit.cell-border-bottom{}}}table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;display:table;margin:0;padding:0;}tr:not(.no-hover):hover > td{background:var(--hover-bgcolor);color:var(--hover-color);}tr:not(.no-highlight).highlight > td{}th{font-weight:normal;text-align:left;padding:var(--cell-padding);height:var(--header-row-height);color:var(--header-color);background:var(--header-bgcolor);border:none;border-right:var(--header-cell-border-vertical);border-bottom:var(--header-cell-border-horizontal);&.", "{background-color:#fcf5f2;}&.cell-border-bottom{border-bottom:var(--cell-border-select);}&.cell-border-right{border-right:var(--cell-border-select);}&.cell-border-left{position:relative;}&.cell-border-top{position:relative;}&.cell-border-left::before{content:'';position:absolute;top:0;left:0;height:102%;width:1px;border-left:var(--cell-border-select);pointer-events:none;z-index:1;}&.cell-border-top::after{content:'';position:absolute;top:0px;left:0;height:1px;width:100%;border-top:var(--cell-border-select);pointer-events:none;z-index:1;}textarea.ui-rc-input{line-height:1.8;max-height:calc(var(--header-row-height) - 1px) !important;min-height:calc(var(--header-row-height) - 1px) !important;}}tr.first th{}th.first{border-left:var(--header-cell-border-vertical);}td{padding:var(--cell-padding);background:var(--bgcolor);height:var(--row-height);border:none;border-right:var(--cell-border-vertical);border-bottom:var(--cell-border-horizontal);outline:none;&.cell-edit{user-select:none;&:has(.dragging-point){position:relative;}.dragging-point{width:6px;height:6px;position:absolute;cursor:crosshair;right:0px;bottom:0px;&.hidden{display:none;}.dot-point{position:absolute;width:6px;height:6px;border-radius:0px;background-color:var(--border-color-select);bottom:0;right:0;}}&.disable{background-color:#f0f0f0;}}&.cell-editing{padding:0;&:focus-visible{outline:none;}.ant-form-item,.ant-row.ant-form-item-row,.ant-col.ant-form-item-control,.ant-form-item-control-input,.ant-form-item-control-input-content,.ui-rc-input{height:100% !important;&:focus-visible{outline:none;}}.ui-rc-color-picker-trigger{width:100%;border-radius:0;.ui-rc-color-picker-color-block{width:100%;}}textarea.ui-rc-input{line-height:1.8;height:100%;max-height:calc(var(--row-height) - 1px) !important;min-height:calc(var(--row-height) - 1px) !important;}input.be-cell-editing,.ant-picker,.ui-rc-picker,.ui-rc-select-selector,.ui-rc-table-select-selector{padding-inline:7px;}.#{$prefix}-checkbox-wrapper{.#{$prefix}-checkbox{background-color:red;}.#{$prefix}-checkbox-input{&:focus-visible{outline:none;}}}.ant-input,.ant-picker,.ui-rc-picker{border-radius:0;}.ant-color-picker-trigger{height:100%;border-radius:0;.ant-color-picker-color-block{height:100%;width:100%;}}.#{$prefix}-table-select-single .#{$prefix}-table-select-selector,.#{$prefix}-select-single .#{$prefix}-select-selector,.ui-rc-table-select-selector{border-radius:0 !important;}.#{$prefix}-table-select-single:not( .#{$prefix}-table-select-customize-input ){.#{$prefix}-table-select-selector{.#{$prefix}-table-select-selection-search-input{height:auto;}}}}.abccccc{box-shadow:0 -1px 0 0 var(--border-color),0 1px 0 0 var(--border-color),-1px 0 0 0 var(--border-color),1px 0 0 0 var(--border-color);}&.", "{background-color:#fcf5f2;}&.cell-border-bottom{border-bottom:var(--cell-border-select);}&.cell-border-right{border-right:var(--cell-border-select);}&.cell-border-left{position:relative;}&.cell-border-top{position:relative;}&.cell-border-left::before{content:'';position:absolute;top:0;left:0;height:102%;width:1px;border-left:var(--cell-border-select);pointer-events:none;z-index:1;}&.cell-border-top::after{content:'';position:absolute;top:0px;left:0;height:1px;width:100%;border-top:var(--cell-border-select);pointer-events:none;z-index:1;}&.cell-paste-border-top{position:relative;&::after{content:'';position:absolute;top:0px;left:0;height:1px;width:100%;border-top:1px dashed #949494;pointer-events:none;z-index:1;}&.ui-rc-grid-cell-fix-left-last{&::after{left:-100%;}}&.ui-rc-grid-cell-fix-right-first{&::after{left:100%;}}}&.cell-paste-border-bottom{border-bottom:1px dashed #949494;}&.cell-paste-border-left{position:relative;&::before{content:'';position:absolute;top:0;left:0;height:102%;width:1px;border-left:1px dashed #949494;pointer-events:none;z-index:1;}}&.cell-paste-border-right{border-inline-end:1px dashed #949494;}}td.first{border-left:var(--cell-border-vertical);}tr.first td{border-top:var(--cell-border-horizontal);}tr td.last,tr th.last{border-right:var(--cell-border-horizontal);}&.has-header tbody tr.first td{border-top:none;}&.has-footer tbody tr.last td{border-bottom:none;}&.has-footer tfoot tr > td{background:var(--footer-bgcolor);color:var(--footer-color);}&.has-footer tfoot tr:not(.no-hover):hover > td{background:var(--footer-bgcolor);}.lock-left,.lock-right{z-index:", ";}.resize-handle{width:6px;height:100%;position:absolute;top:0;right:0;cursor:col-resize;background-color:transparent;border-right:2px solid transparent;}.", "{position:absolute;top:0;bottom:0;z-index:", ";pointer-events:none;overflow:hidden;.", "{height:100%;}.", "{margin-right:", "px;box-shadow:none;&.show-shadow{box-shadow:var(--lock-shadow);border-right:var(--cell-border-vertical);}}.", "{margin-left:", "px;box-shadow:none;&.show-shadow{box-shadow:var(--lock-shadow);border-left:var(--cell-border-vertical);}}}.", "{pointer-events:none;color:#99a3b3;font-size:12px;text-align:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);.empty-image{width:50px;height:50px;}.empty-tips{margin-top:16px;line-height:1.5;}}.", "{overflow:auto;position:sticky;bottom:0;z-index:", ";margin-top:-17px;}.ui-rc-grid-loading-wrapper{}.ui-rc-grid-table{}.art-loading-content-wrapper{height:100%;}.", "{height:1px;visibility:hidden;}.", "{position:relative;height:100%;.", "{position:absolute;inset:0;pointer-events:none;}.", "{position:sticky;z-index:", ";transform:translateY(-50%);}}"], Classes.tableWrapper, Classes.tableFooter, Classes.tableBody, Classes.tableFooter, Classes.tableHeader, Classes.tableHeaderCell, Classes.cellEllipsis, Classes.cellWrap, Classes.cellTextCenter, Classes.cellTextRight, Classes.tableBody, Classes.tableCell, Classes.cellEllipsis, Classes.cellWrap, Classes.cellTextCenter, Classes.cellTextRight, Classes.tableFooter, Classes.tableBody, Classes.tableFooter, Classes.tableHeader, Z.header, Classes.tableFooter, Z.footer, Classes.tableBody, Classes.cellSelected, Classes.cellSelected, Z.lock, Classes.lockShadowMask, Z.lockShadow, Classes.lockShadow, Classes.leftLockShadow, LOCK_SHADOW_PADDING, Classes.rightLockShadow, LOCK_SHADOW_PADDING, Classes.emptyWrapper, Classes.stickyScroll, Z.scrollItem, Classes.stickyScrollItem, Classes.loadingWrapper, Classes.loadingIndicatorWrapper, Classes.loadingIndicator, Z.loadingIndicator);
78
+ })(["box-sizing:border-box;*{box-sizing:border-box;}cursor:default;color:var(--color);font-size:var(--font-size);line-height:var(--line-height);position:relative;overflow-anchor:none;&::-webkit-scrollbar{}&::-webkit-scrollbar-track{}&::-webkit-scrollbar-thumb{}&::-webkit-scrollbar-thumb:hover{}&.dark{&::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.3);}&::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.5);}}&.", "{border-left:var(--cell-border-vertical);border-right:var(--cell-border-vertical);border-top:var(--cell-border-vertical);border-bottom:0;&.has-footer{border-bottom:0;.", "{td{}}}&.has-vertical-scroll{border-bottom:var(--cell-border-vertical);th.first{border-left:0;}td.first{border-left:0;}&.has-footer{border-bottom:var(--cell-border-vertical);}.", "{tr.last{td{border-bottom:0;}}}.", "{tr.last{td{border-bottom:0;}}}+ .ui-rc-grid-bottom{border-top:0;}&:not(.has-footer){+ .ui-rc-grid-bottom{border-top:var(--cell-border-vertical);}}}&:not(.has-vertical-scroll){border-left:0;border-right:0;}&:not(.has-header){border-top:0;}}&.use-outer-border{}.no-scrollbar{scrollbar-width:none;::-webkit-scrollbar{}}.", "{overflow-x:auto;overflow-y:hidden;background:var(--header-bgcolor);.ui-rc-table-column-title{flex:1;min-width:0;text-align:start;}.", "{font-weight:500;.ui-rc-header-trigger{padding-left:6px;display:flex;align-items:center;.ui-rc-table-column-sorter-cancel{opacity:0;}}&:hover{.ui-rc-header-trigger{.ui-rc-table-column-sorter-cancel{opacity:1;}}}.", "{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;}.", "{width:100%;white-space:normal;word-break:break-word;}.", "{text-align:center;}.", "{text-align:right;}}}.", "{.", "{td{background:var(--row-odd-bgcolor);}}.", "{td{background:var(--row-even-bgcolor);}}.", "{td{background:var(--row-parent-bgcolor);font-weight:500;}}.", "{&.", "{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;.expansion-cell{.expansion-content{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;}}}&.", "{width:100%;white-space:normal;word-break:break-word;}&.", "{text-align:center;}&.", "{text-align:right;}}}.", "{background:var(--footer-bgcolor);}.", ",.", "{overflow-x:auto;overflow-y:hidden;}&.sticky-header .", "{position:sticky;top:0;z-index:", ";}&.sticky-footer .", "{position:sticky;bottom:0;z-index:", ";}.", "{tr{td.cell-edit{&.lock-left,&.lock-right{}}td.first{&.lock-left{border-bottom-width:1px;}}}tr.ui-rc-grid-table-row{td.cell-edit.cell-border-bottom{}}}table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;display:table;margin:0;padding:0;}tr:not(.no-hover):hover > td{background:var(--hover-bgcolor);color:var(--hover-color);}tr:not(.no-highlight).highlight > td{}th{font-weight:normal;text-align:left;padding:var(--cell-padding);height:var(--header-row-height);color:var(--header-color);background:var(--header-bgcolor);border:none;border-right:var(--header-cell-border-vertical);border-bottom:var(--header-cell-border-horizontal);&.", "{background-color:#fcf5f2;}&.cell-border-bottom{border-bottom:var(--cell-border-select);}&.cell-border-right{border-right:var(--cell-border-select);}&.cell-border-left{position:relative;}&.cell-border-top{position:relative;}&.cell-border-left::before{content:'';position:absolute;top:0;left:0;height:102%;width:1px;border-left:var(--cell-border-select);pointer-events:none;z-index:1;}&.cell-border-top::after{content:'';position:absolute;top:0px;left:0;height:1px;width:100%;border-top:var(--cell-border-select);pointer-events:none;z-index:1;}&.cell-editing{padding:0;&:focus-visible{outline:none;}.ant-form-item,.ant-row.ant-form-item-row,.ant-col.ant-form-item-control,.ant-form-item-control-input,.ant-form-item-control-input-content,.ui-rc-input{height:100% !important;&:focus-visible{outline:none;}}.ui-rc-color-picker-trigger{width:100%;border-radius:0;.ui-rc-color-picker-color-block{width:100%;}}textarea.ui-rc-input{line-height:1.8;height:100%;max-height:calc(var(--row-height) - 1px) !important;min-height:calc(var(--row-height) - 1px) !important;}input.be-cell-editing,.ant-picker,.ui-rc-picker,.ui-rc-select-selector,.ui-rc-table-select-selector{padding-inline:7px;}.#{$prefix}-checkbox-wrapper{.#{$prefix}-checkbox{background-color:red;}.#{$prefix}-checkbox-input{&:focus-visible{outline:none;}}}.ant-input,.ant-picker,.ui-rc-picker{border-radius:0;}.ant-color-picker-trigger{height:100%;border-radius:0;.ant-color-picker-color-block{height:100%;width:100%;}}.#{$prefix}-table-select-single .#{$prefix}-table-select-selector,.#{$prefix}-select-single .#{$prefix}-select-selector,.ui-rc-table-select-selector{border-radius:0 !important;}.#{$prefix}-table-select-single:not( .#{$prefix}-table-select-customize-input ){.#{$prefix}-table-select-selector{.#{$prefix}-table-select-selection-search-input{height:auto;}}}}textarea.ui-rc-input{line-height:1.8;max-height:calc(var(--header-row-height) - 1px) !important;min-height:calc(var(--header-row-height) - 1px) !important;}}tr.first th{}th.first{border-left:var(--header-cell-border-vertical);}td{padding:var(--cell-padding);background:var(--bgcolor);height:var(--row-height);border:none;border-right:var(--cell-border-vertical);border-bottom:var(--cell-border-horizontal);outline:none;&.cell-edit{user-select:none;&:has(.dragging-point){position:relative;}.dragging-point{width:6px;height:6px;position:absolute;cursor:crosshair;right:0px;bottom:0px;&.hidden{display:none;}.dot-point{position:absolute;width:6px;height:6px;border-radius:0px;background-color:var(--border-color-select);bottom:0;right:0;}}&.disable{background-color:#f0f0f0;}}&.cell-editing{padding:0;&:focus-visible{outline:none;}.ant-form-item,.ant-row.ant-form-item-row,.ant-col.ant-form-item-control,.ant-form-item-control-input,.ant-form-item-control-input-content,.ui-rc-input{height:100% !important;&:focus-visible{outline:none;}}.ui-rc-color-picker-trigger{width:100%;border-radius:0;.ui-rc-color-picker-color-block{width:100%;}}textarea.ui-rc-input{line-height:1.8;height:100%;max-height:calc(var(--row-height) - 1px) !important;min-height:calc(var(--row-height) - 1px) !important;}input.be-cell-editing,.ant-picker,.ui-rc-picker,.ui-rc-select-selector,.ui-rc-table-select-selector{padding-inline:7px;}.#{$prefix}-checkbox-wrapper{.#{$prefix}-checkbox{background-color:red;}.#{$prefix}-checkbox-input{&:focus-visible{outline:none;}}}.ant-input,.ant-picker,.ui-rc-picker{border-radius:0;}.ant-color-picker-trigger{height:100%;border-radius:0;.ant-color-picker-color-block{height:100%;width:100%;}}.#{$prefix}-table-select-single .#{$prefix}-table-select-selector,.#{$prefix}-select-single .#{$prefix}-select-selector,.ui-rc-table-select-selector{border-radius:0 !important;}.#{$prefix}-table-select-single:not( .#{$prefix}-table-select-customize-input ){.#{$prefix}-table-select-selector{.#{$prefix}-table-select-selection-search-input{height:auto;}}}}.abccccc{box-shadow:0 -1px 0 0 var(--border-color),0 1px 0 0 var(--border-color),-1px 0 0 0 var(--border-color),1px 0 0 0 var(--border-color);}&.", "{background-color:#fcf5f2;}&.cell-border-bottom{border-bottom:var(--cell-border-select);}&.cell-border-right{border-right:var(--cell-border-select);}&.cell-border-left{position:relative;}&.cell-border-top{position:relative;}&.cell-border-left::before{content:'';position:absolute;top:0;left:0;height:102%;width:1px;border-left:var(--cell-border-select);pointer-events:none;z-index:1;}&.cell-border-top::after{content:'';position:absolute;top:0px;left:0;height:1px;width:100%;border-top:var(--cell-border-select);pointer-events:none;z-index:1;}&.cell-paste-border-top{position:relative;&::after{content:'';position:absolute;top:0px;left:0;height:1px;width:100%;border-top:1px dashed #949494;pointer-events:none;z-index:1;}&.ui-rc-grid-cell-fix-left-last{&::after{left:-100%;}}&.ui-rc-grid-cell-fix-right-first{&::after{left:100%;}}}&.cell-paste-border-bottom{border-bottom:1px dashed #949494;}&.cell-paste-border-left{position:relative;&::before{content:'';position:absolute;top:0;left:0;height:102%;width:1px;border-left:1px dashed #949494;pointer-events:none;z-index:1;}}&.cell-paste-border-right{border-inline-end:1px dashed #949494;}}td.first{border-left:var(--cell-border-vertical);}tr.first td{border-top:var(--cell-border-horizontal);}tr td.last,tr th.last{border-right:var(--cell-border-horizontal);}&.has-header tbody tr.first td{border-top:none;}&.has-footer tbody tr.last td{border-bottom:none;}&.has-footer tfoot tr > td{background:var(--footer-bgcolor);color:var(--footer-color);}&.has-footer tfoot tr:not(.no-hover):hover > td{background:var(--footer-bgcolor);}.lock-left,.lock-right{z-index:", ";}.resize-handle{width:6px;height:100%;position:absolute;top:0;right:0;cursor:col-resize;background-color:transparent;border-right:2px solid transparent;}.", "{position:absolute;top:0;bottom:0;z-index:", ";pointer-events:none;overflow:hidden;.", "{height:100%;}.", "{margin-right:", "px;box-shadow:none;&.show-shadow{box-shadow:var(--lock-shadow);border-right:var(--cell-border-vertical);}}.", "{margin-left:", "px;box-shadow:none;&.show-shadow{box-shadow:var(--lock-shadow);border-left:var(--cell-border-vertical);}}}.", "{pointer-events:none;color:#99a3b3;font-size:12px;text-align:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);.empty-image{width:50px;height:50px;}.empty-tips{margin-top:16px;line-height:1.5;}}.", "{overflow:auto;position:sticky;bottom:0;z-index:", ";margin-top:-17px;}.ui-rc-grid-loading-wrapper{}.ui-rc-grid-table{}.art-loading-content-wrapper{height:100%;}.", "{height:1px;visibility:hidden;}.", "{position:relative;height:100%;.", "{position:absolute;inset:0;pointer-events:none;}.", "{position:sticky;z-index:", ";transform:translateY(-50%);}}"], Classes.tableWrapper, Classes.tableFooter, Classes.tableBody, Classes.tableFooter, Classes.tableHeader, Classes.tableHeaderCell, Classes.cellEllipsis, Classes.cellWrap, Classes.cellTextCenter, Classes.cellTextRight, Classes.tableBody, Classes.tableRowOdd, Classes.tableRowEven, Classes.tableRowParent, Classes.tableCell, Classes.cellEllipsis, Classes.cellWrap, Classes.cellTextCenter, Classes.cellTextRight, Classes.tableFooter, Classes.tableBody, Classes.tableFooter, Classes.tableHeader, Z.header, Classes.tableFooter, Z.footer, Classes.tableBody, Classes.cellSelected, Classes.cellSelected, Z.lock, Classes.lockShadowMask, Z.lockShadow, Classes.lockShadow, Classes.leftLockShadow, LOCK_SHADOW_PADDING, Classes.rightLockShadow, LOCK_SHADOW_PADDING, Classes.emptyWrapper, Classes.stickyScroll, Z.scrollItem, Classes.stickyScrollItem, Classes.loadingWrapper, Classes.loadingIndicatorWrapper, Classes.loadingIndicator, Z.loadingIndicator);
76
79
 
77
80
  // type StyleTableContainerProps = {
78
81
 
@@ -12,6 +12,7 @@ type FilterState = {
12
12
  export interface ColumnFeatureOptions {
13
13
  id: any;
14
14
  columns: any[];
15
+ groupColumns?: any[];
15
16
  isDataTree?: boolean;
16
17
  dataSource: any[];
17
18
  rowIndexMap: any;