es-grid-template 1.9.71 → 1.9.73

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 (54) 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 +8 -1
  17. package/es/grid-component/hooks/constant.js +4 -0
  18. package/es/group-component/hook/useColumns.js +2 -2
  19. package/es/group-component/hook/utils.d.ts +3 -3
  20. package/es/group-component/hook/utils.js +3 -0
  21. package/es/table-component/ColumnsConfig.js +6 -4
  22. package/es/table-component/TableContainer.js +1 -0
  23. package/es/table-component/TableContainerEdit.js +1 -0
  24. package/es/table-component/hook/utils.js +3 -0
  25. package/es/table-component/table/Grid.js +2 -2
  26. package/es/table-component/table/TableWrapper.js +97 -33
  27. package/es/table-virtuoso/hook/utils.js +3 -0
  28. package/lib/ali-table/Grid.d.ts +2 -1
  29. package/lib/ali-table/Grid.js +12 -4
  30. package/lib/ali-table/InternalTable.js +45 -94
  31. package/lib/ali-table/base-table/cell/HeaderEditCell.js +4 -1
  32. package/lib/ali-table/base-table/renderFilter.js +13 -5
  33. package/lib/ali-table/base-table/styles.d.ts +6 -0
  34. package/lib/ali-table/base-table/styles.js +5 -2
  35. package/lib/ali-table/pipeline/features/columnCustom.d.ts +1 -0
  36. package/lib/ali-table/pipeline/features/columnCustom.js +38 -25
  37. package/lib/ali-table/pipeline/features/hiddenColumns.d.ts +1 -0
  38. package/lib/ali-table/pipeline/features/hiddenColumns.js +9 -3
  39. package/lib/ali-table/pipeline/features/treeSelect.js +3 -3
  40. package/lib/ali-table/utils/constants.d.ts +3 -1
  41. package/lib/ali-table/utils/constants.js +6 -3
  42. package/lib/ali-table/utils/utility.d.ts +1 -0
  43. package/lib/ali-table/utils/utility.js +10 -2
  44. package/lib/grid-component/hooks/constant.js +4 -0
  45. package/lib/group-component/hook/useColumns.js +2 -2
  46. package/lib/group-component/hook/utils.js +3 -0
  47. package/lib/table-component/ColumnsConfig.js +6 -4
  48. package/lib/table-component/TableContainer.js +1 -0
  49. package/lib/table-component/TableContainerEdit.js +1 -0
  50. package/lib/table-component/hook/utils.js +3 -0
  51. package/lib/table-component/table/Grid.js +2 -2
  52. package/lib/table-component/table/TableWrapper.js +97 -33
  53. package/lib/table-virtuoso/hook/utils.js +3 -0
  54. package/package.json +1 -1
@@ -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;
@@ -202,8 +202,14 @@ function columnCustom(opts) {
202
202
  if (info.source === 'trigger') {
203
203
  if (newVisible) {
204
204
  const defaultFilterOption = defaultFilter?.find(it => it.field === column.field);
205
- const filterValue = filterColumnState.filteredKeys === null ? [] : filterColumnState.filteredKeys ?? defaultFilterOption?.filteredKeys ?? [];
206
- const operator = filterColumnState.operator;
205
+
206
+ // Tìm trong filterState
207
+
208
+ const abc = filterState.find(it => it.field === column.field);
209
+
210
+ // const filterValue = filterColumnState.filteredKeys === null ? [] : (filterColumnState.filteredKeys ?? (defaultFilterOption?.filteredKeys ?? [])) as string[]
211
+ const filterValue = abc && abc.filteredKeys === null ? [] : abc?.filteredKeys ?? defaultFilterOption?.filteredKeys ?? [];
212
+ const operator = abc?.operator;
207
213
  const operatorValue = operator ?? defaultFilterOption?.operator ?? (0, _utils2.getDefaultOperator)(column);
208
214
  pipeline.setStateAtKey(_constants.stateKeyColumnFilter, {
209
215
  operator: operatorValue,
@@ -223,7 +229,7 @@ function columnCustom(opts) {
223
229
  if (inputFilter) {
224
230
  inputFilter.focus();
225
231
  }
226
- }, 100);
232
+ }, 20);
227
233
  } else {}
228
234
  triggerVisible(newVisible, column.field);
229
235
  }
@@ -284,9 +290,11 @@ function columnCustom(opts) {
284
290
  operator: filterColumnState.operator ?? undefined
285
291
  };
286
292
  const rs = (0, _hooks.updateArrayByKey)(filterState, currentFilter, 'field');
287
- pipeline.setStateAtKey(_constants.stateKeyColumnFilter, {
288
- ...currentFilter
289
- });
293
+
294
+ // pipeline.setStateAtKey(stateKeyColumnFilter, {
295
+ // ...currentFilter
296
+ // })
297
+
290
298
  pipeline.setStateAtKey(_constants.stateKeyFilter, rs);
291
299
  if (onFilter) {
292
300
  onFilter((0, _utils2.convertFilters)([...newFilterState]));
@@ -1267,7 +1275,7 @@ function columnCustom(opts) {
1267
1275
  const prevGetCellProps = col?.getCellProps;
1268
1276
  const headerCustomTooltip = col?.headerTooltip ?? (t ? t(col?.headerText) : col?.headerText);
1269
1277
  const htmlTooltip = headerCustomTooltip;
1270
- const headerEditType = col.headerEditType;
1278
+ const headerEditType = col.headerEditType ?? col.editType;
1271
1279
  const headerRowIndex = params.path.findIndex(it => it.field === col.field);
1272
1280
  const headerRowId = `header-field-${headerRowIndex}`;
1273
1281
 
@@ -1277,6 +1285,7 @@ function columnCustom(opts) {
1277
1285
  [col.field]: headerData?.[col.field] ?? ''
1278
1286
  };
1279
1287
  const headerValue = headerData?.[col.field] ?? '';
1288
+ const headerContent = (0, _useColumns.renderValueCell)(col, headerValue, {}, -1, startIndex, format, false);
1280
1289
  const cellHeaderEditing = isEditing.editing && headerRowId === focusedCell.rowId && col.field === focusedCell.colId;
1281
1290
  const isCellSelect = headerRowId === focusedCell.rowId && startCell?.colId === col.field;
1282
1291
  const aa = (0, _utils3.getColumnsAtLevel)(originCols, headerRowIndex);
@@ -1288,23 +1297,7 @@ function columnCustom(opts) {
1288
1297
  ...col,
1289
1298
  lock: !!col.fixed,
1290
1299
  width: sizes[startIndex],
1291
- title: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
1292
- className: "ui-rc-grid-filter-column d-flex",
1293
- style: {
1294
- justifyContent: 'space-between',
1295
- alignItems: 'center'
1296
- }
1297
- }, /*#__PURE__*/_react.default.createElement("span", {
1298
- className: "ui-rc-table-column-title",
1299
- style: {}
1300
- }, /*#__PURE__*/_react.default.createElement("div", {
1301
- className: (0, _classnames.default)(`${prefix}-grid-cell`, {
1302
- [`${prefix}-grid-cell-ellipsis`]: !wrapSettings || !(wrapSettings && (wrapSettings.wrapMode === 'Both' || wrapSettings.wrapMode === 'Header')),
1303
- [`${prefix}-grid-cell-wrap`]: wrapSettings && (wrapSettings.wrapMode === 'Both' || wrapSettings.wrapMode === 'Header'),
1304
- [`${prefix}-grid-cell-text-center`]: (col?.headerTextAlign ?? col?.textAlign) === 'center',
1305
- [`${prefix}-grid-cell-text-right`]: (col?.headerTextAlign ?? col.textAlign) === 'right'
1306
- })
1307
- }, headerEditAble && col.headerEditEnable && cellHeaderEditing ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_HeaderEditCell.default, {
1300
+ title: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, headerEditAble && col.headerEditEnable && cellHeaderEditing ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_HeaderEditCell.default, {
1308
1301
  column: col,
1309
1302
  editType: headerEditType ?? 'text',
1310
1303
  record: headerRecord,
@@ -1328,7 +1321,23 @@ function columnCustom(opts) {
1328
1321
  startCell: startCell,
1329
1322
  handleSubmit: handleSubmit,
1330
1323
  onSubmit: onSubmit
1331
- })) : headerEditAble && col.headerEditEnable ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, headerValue) : col.headerTemplate ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, typeof col.headerTemplate === 'function' ? col.headerTemplate(col) : col.headerTemplate) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, prevTitle))), !col.headerEditEnable && (!_hooks.nonActionColumn.includes(col.field) && !col?.children || col?.children && col?.children.length < 1) && /*#__PURE__*/_react.default.createElement("span", {
1324
+ })) : /*#__PURE__*/_react.default.createElement("div", {
1325
+ className: "ui-rc-grid-filter-column d-flex",
1326
+ style: {
1327
+ justifyContent: 'space-between',
1328
+ alignItems: 'center'
1329
+ }
1330
+ }, /*#__PURE__*/_react.default.createElement("span", {
1331
+ className: "ui-rc-table-column-title",
1332
+ style: {}
1333
+ }, /*#__PURE__*/_react.default.createElement("div", {
1334
+ className: (0, _classnames.default)(`${prefix}-grid-cell`, {
1335
+ [`${prefix}-grid-cell-ellipsis`]: !wrapSettings || !(wrapSettings && (wrapSettings.wrapMode === 'Both' || wrapSettings.wrapMode === 'Header')),
1336
+ [`${prefix}-grid-cell-wrap`]: wrapSettings && (wrapSettings.wrapMode === 'Both' || wrapSettings.wrapMode === 'Header'),
1337
+ [`${prefix}-grid-cell-text-center`]: (col?.headerTextAlign ?? col?.textAlign) === 'center',
1338
+ [`${prefix}-grid-cell-text-right`]: (col?.headerTextAlign ?? col.textAlign) === 'right'
1339
+ })
1340
+ }, headerEditAble && col.headerEditEnable ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, headerContent) : col.headerTemplate ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, typeof col.headerTemplate === 'function' ? col.headerTemplate(col) : col.headerTemplate) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, prevTitle))), (!_hooks.nonActionColumn.includes(col.field) && !col?.children || col?.children && col?.children.length < 1) && /*#__PURE__*/_react.default.createElement("span", {
1332
1341
  className: "ui-rc-header-trigger d-flex gap-50"
1333
1342
  }, canSort && /*#__PURE__*/_react.default.createElement("div", {
1334
1343
  style: {
@@ -1398,6 +1407,7 @@ function columnCustom(opts) {
1398
1407
  className: (0, _classnames.default)('', {
1399
1408
  [`header-cell-editable`]: col.headerEditEnable,
1400
1409
  [`${prefix}-grid-cell-selected`]: !cellHeaderEditing && isCellSelect,
1410
+ 'cell-editing': cellHeaderEditing,
1401
1411
  'cell-border-top': !cellHeaderEditing && isCellSelect,
1402
1412
  'cell-border-bottom': !cellHeaderEditing && isCellSelect,
1403
1413
  'cell-border-right': !cellHeaderEditing && isCellSelect,
@@ -1501,6 +1511,9 @@ function columnCustom(opts) {
1501
1511
  }),
1502
1512
  getCellProps(value, record, rowIndex) {
1503
1513
  const prevCellProps = prevGetCellProps?.(value, record, rowIndex);
1514
+
1515
+ // console.log('record', record)
1516
+
1504
1517
  const fomatedValue = ['color', 'checkbox', 'field'].includes(col.type ?? '') ? '' : (0, _useColumns.renderValueCell)(col, value, record, rowIndex, 0, format, false);
1505
1518
  const tooltipContent = isOpenTooltip === false ? '' : col?.tooltipDescription ? typeof col.tooltipDescription === 'function' ? col.tooltipDescription({
1506
1519
  value,
@@ -1,6 +1,7 @@
1
1
  import type { TablePipeline } from '../pipeline';
2
2
  export interface HiddenColumnsOptions {
3
3
  columns: any[];
4
+ groupColumns?: any[];
4
5
  visibleKeys?: any[];
5
6
  }
6
7
  export declare function hiddenColumns(opts: HiddenColumnsOptions): (pipeline: TablePipeline) => TablePipeline;
@@ -4,19 +4,25 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.hiddenColumns = hiddenColumns;
7
+ var _constants = require("../../utils/constants");
7
8
  var _convertColumnsChoose = require("../../utils/convertColumnsChoose");
9
+ var _utility = require("../../utils/utility");
8
10
  // const stateKey = 'pagination'
9
11
 
10
12
  function hiddenColumns(opts) {
11
13
  return function visibleClumns(pipeline) {
12
14
  const {
13
15
  columns,
14
- visibleKeys
16
+ visibleKeys,
17
+ groupColumns
15
18
  } = opts;
16
- pipeline.columns(processDataSource(columns, visibleKeys));
19
+ const abc = pipeline.getStateAtKey(_constants.stateKeyVisibleKeys) ?? visibleKeys ?? [];
20
+ const group = pipeline.getStateAtKey(_constants.stateKeyGroupKeys) ?? groupColumns ?? [];
21
+ const rs = (0, _utility.getOnlyInA)(abc, group);
22
+ pipeline.columns(processDataSource(columns, rs));
17
23
  return pipeline;
18
24
  function processDataSource(cols, keys) {
19
- if (!keys) {
25
+ if (!keys || keys && keys.length === 0) {
20
26
  return cols;
21
27
  }
22
28
  return (0, _convertColumnsChoose.filterColumnsByField)(cols, keys ?? []);
@@ -226,7 +226,7 @@ function treeSelect(opts) {
226
226
  return {
227
227
  style: {
228
228
  // cursor: 'not-allowed',
229
- padding: 0
229
+ paddingBlock: 0
230
230
  }
231
231
  };
232
232
  }
@@ -237,14 +237,14 @@ function treeSelect(opts) {
237
237
  return {
238
238
  style: {
239
239
  cursor: 'not-allowed',
240
- padding: 0
240
+ paddingBlock: 0
241
241
  }
242
242
  };
243
243
  }
244
244
  return (0, _utils2.mergeCellProps)(prevCellProps, {
245
245
  style: {
246
246
  cursor: 'pointer',
247
- padding: 0
247
+ paddingBlock: 0
248
248
  },
249
249
  onClick(e) {
250
250
  if (opts.stopClickEventPropagation) {
@@ -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";
@@ -3,14 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.stateKeyVisible = exports.stateKeyTypePaste = exports.stateKeyTooltip = exports.stateKeyStartPasteCell = exports.stateKeyStartCell = exports.stateKeySorter = exports.stateKeyResize = exports.stateKeyPagination = exports.stateKeyIsSelecting = exports.stateKeyIsPasting = exports.stateKeyIsEditing = exports.stateKeyFocusedCell = exports.stateKeyFilter = exports.stateKeyEndPasteCell = exports.stateKeyEndCell = exports.stateKeyEditCellSettings = exports.stateKeyColumnFilter = void 0;
6
+ exports.stateKeyVisibleKeys = exports.stateKeyVisible = exports.stateKeyTypePaste = exports.stateKeyTooltip = exports.stateKeyStartPasteCell = exports.stateKeyStartCell = exports.stateKeySorter = exports.stateKeyResize = exports.stateKeyPagination = exports.stateKeyIsSelecting = exports.stateKeyIsPasting = exports.stateKeyIsEditing = exports.stateKeyGroupKeys = exports.stateKeyFocusedCell = exports.stateKeyFilter = exports.stateKeyEndPasteCell = exports.stateKeyEndCell = exports.stateKeyEditCellSettings = exports.stateKeyColumnFilter = void 0;
7
7
  const stateKeyResize = exports.stateKeyResize = 'columnResize';
8
- const stateKeyFilter = exports.stateKeyFilter = 'columnsFilter';
8
+ const stateKeyFilter = exports.stateKeyFilter = 'columnsFilter'; // array all state
9
+ const stateKeyColumnFilter = exports.stateKeyColumnFilter = 'columnFilter'; // current column filter state
10
+
9
11
  const stateKeySorter = exports.stateKeySorter = 'columnsSorter';
10
12
  const stateKeyVisible = exports.stateKeyVisible = 'visible';
11
13
  const stateKeyTooltip = exports.stateKeyTooltip = 'tooltip';
12
14
  const stateKeyPagination = exports.stateKeyPagination = 'pagination';
13
- const stateKeyColumnFilter = exports.stateKeyColumnFilter = 'columnFilter';
15
+ const stateKeyVisibleKeys = exports.stateKeyVisibleKeys = 'columnVisibleKeys';
16
+ const stateKeyGroupKeys = exports.stateKeyGroupKeys = 'columnGroupKeys';
14
17
 
15
18
  // Key for Edit
16
19
 
@@ -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 {};