@wordrhyme/auto-crud 1.21.3 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/index.cjs +39 -22
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +39 -22
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -269,6 +269,10 @@ interface AutoCrudTableProps<TSchema> {
|
|
|
269
269
|
record: z.output<TSchema>,
|
|
270
270
|
row: Row<z.output<TSchema>>,
|
|
271
271
|
) => React.ReactNode; // 展开行内容,row 提供已解析的单元格上下文
|
|
272
|
+
rowFooter?: (
|
|
273
|
+
record: z.output<TSchema>,
|
|
274
|
+
row: Row<z.output<TSchema>>,
|
|
275
|
+
) => React.ReactNode; // 跨全部可见列的行尾内容,与展开状态无关
|
|
272
276
|
filterModes?: FilterMode | FilterMode[]; // 过滤模式
|
|
273
277
|
batchFields?: (string | BatchUpdateField)[]; // 批量更新字段
|
|
274
278
|
/** @deprecated 新代码请使用 actions.batch */
|
|
@@ -328,6 +332,13 @@ interface AutoCrudTableProps<TSchema> {
|
|
|
328
332
|
|
|
329
333
|
`expandedRow` 的第二个参数是当前 TanStack `Row`,可通过 `row.getAllCells()` 读取已解析的列和单元格上下文,复用字段渲染器及数据源标签。只接收订单数据的单参数回调仍可使用。
|
|
330
334
|
|
|
335
|
+
#### 行尾内容
|
|
336
|
+
|
|
337
|
+
`table.rowFooter(record, row)` 在每行主内容下方、展开详情上方渲染跨全部可见列的内容,收起时仍显示;它不要求配置 `getRowId` 或启用展开。
|
|
338
|
+
每次渲染对当前行调用一次,返回 `null`、`undefined` 或 `false` 时不创建额外表格行。其他返回值(包括 `0`)按 React 内容渲染。
|
|
339
|
+
行尾沿用 `classNames.tr` 和 `classNames.td`,消费侧可通过内容类名配合 `classNames.td` 的 `:has()` 选择器单独调整内边距。
|
|
340
|
+
`AutoTable` 和 `DataTable` 通过直接传入 `rowFooter` 使用同一契约;未配置时保留原有 DOM。
|
|
341
|
+
|
|
331
342
|
#### 表格状态与 URL 参数
|
|
332
343
|
|
|
333
344
|
同页显示多个表格时,在资源 Hook 中配置独立的分页、排序和条件连接符参数名,`AutoCrudTable` 会自动传给表格:
|
package/dist/index.cjs
CHANGED
|
@@ -3697,7 +3697,7 @@ function formatDate(date, opts = {}, preset) {
|
|
|
3697
3697
|
|
|
3698
3698
|
//#endregion
|
|
3699
3699
|
//#region src/components/data-table/data-table.tsx
|
|
3700
|
-
function DataTable({ table, actionBar, pagination, expandedRow, children, className, classNames,...props }) {
|
|
3700
|
+
function DataTable({ table, actionBar, pagination, expandedRow, rowFooter, children, className, classNames,...props }) {
|
|
3701
3701
|
useDateFormatterVersion();
|
|
3702
3702
|
const columns = [
|
|
3703
3703
|
...table.getLeftVisibleLeafColumns(),
|
|
@@ -3738,25 +3738,39 @@ function DataTable({ table, actionBar, pagination, expandedRow, children, classN
|
|
|
3738
3738
|
}),
|
|
3739
3739
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__wordrhyme_shadcn.TableBody, {
|
|
3740
3740
|
className: classNames?.tbody,
|
|
3741
|
-
children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) =>
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3741
|
+
children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => {
|
|
3742
|
+
const footer = rowFooter?.(row.original, row);
|
|
3743
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.Fragment, { children: [
|
|
3744
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__wordrhyme_shadcn.TableRow, {
|
|
3745
|
+
className: classNames?.tr,
|
|
3746
|
+
"data-state": row.getIsSelected() && "selected",
|
|
3747
|
+
children: row.getVisibleCells().map((cell) => {
|
|
3748
|
+
const columnClassName = cell.column.columnDef.meta?.classNames?.td;
|
|
3749
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__wordrhyme_shadcn.TableCell, {
|
|
3750
|
+
className: cn(hasWidthCap && "overflow-hidden text-ellipsis", classNames?.td, typeof columnClassName === "string" ? columnClassName : void 0),
|
|
3751
|
+
style: { ...getColumnPinningStyle({ column: cell.column }) },
|
|
3752
|
+
children: (0, __tanstack_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
|
3753
|
+
}, cell.id);
|
|
3754
|
+
})
|
|
3755
|
+
}),
|
|
3756
|
+
footer != null && footer !== false && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__wordrhyme_shadcn.TableRow, {
|
|
3757
|
+
className: classNames?.tr,
|
|
3758
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__wordrhyme_shadcn.TableCell, {
|
|
3759
|
+
colSpan: row.getVisibleCells().length,
|
|
3760
|
+
className: classNames?.td,
|
|
3761
|
+
children: footer
|
|
3762
|
+
})
|
|
3763
|
+
}),
|
|
3764
|
+
expandedRow && row.getCanExpand() && row.getIsExpanded() && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__wordrhyme_shadcn.TableRow, {
|
|
3765
|
+
className: classNames?.tr,
|
|
3766
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__wordrhyme_shadcn.TableCell, {
|
|
3767
|
+
colSpan: row.getVisibleCells().length,
|
|
3768
|
+
className: classNames?.td,
|
|
3769
|
+
children: expandedRow(row.original, row)
|
|
3770
|
+
})
|
|
3771
|
+
})
|
|
3772
|
+
] }, row.id);
|
|
3773
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__wordrhyme_shadcn.TableRow, {
|
|
3760
3774
|
className: classNames?.tr,
|
|
3761
3775
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__wordrhyme_shadcn.TableCell, {
|
|
3762
3776
|
colSpan: table.getAllColumns().length,
|
|
@@ -7765,7 +7779,7 @@ const filterModeConfig = {
|
|
|
7765
7779
|
tooltip: "Linear-style command filters"
|
|
7766
7780
|
}
|
|
7767
7781
|
};
|
|
7768
|
-
function AutoTable({ resourceId, views, schema, data, getRowId, expandedRow, defaultExpanded = false, pageCount = 1, pagination, total, overrides, classNames, enableRowSelection = true, queryKeys, initialColumnVisibility, exclude, filterOnly, actions, pinnedColumns, filterMode, search = false, batchSearch, filterState, toolbarExtra, locale = enUSTableControls, onDeleteSelected, onUpdateSelected, batchUpdateFields, actionBarExtra, actionBarLocale, actionBarActions, deleteConfirmation, initialSorting, enableExport = true, showDefaultExport = true, onSelectedCountChange, onSelectedRowsChange, getSelectedRows, exportTableRef }) {
|
|
7782
|
+
function AutoTable({ resourceId, views, schema, data, getRowId, expandedRow, rowFooter, defaultExpanded = false, pageCount = 1, pagination, total, overrides, classNames, enableRowSelection = true, queryKeys, initialColumnVisibility, exclude, filterOnly, actions, pinnedColumns, filterMode, search = false, batchSearch, filterState, toolbarExtra, locale = enUSTableControls, onDeleteSelected, onUpdateSelected, batchUpdateFields, actionBarExtra, actionBarLocale, actionBarActions, deleteConfirmation, initialSorting, enableExport = true, showDefaultExport = true, onSelectedCountChange, onSelectedRowsChange, getSelectedRows, exportTableRef }) {
|
|
7769
7783
|
const inheritedResourceId = (0, react.useContext)(CrudResourceContext);
|
|
7770
7784
|
const activeResourceId = resourceId ?? inheritedResourceId;
|
|
7771
7785
|
const viewsEnabled = views ?? false;
|
|
@@ -8050,7 +8064,8 @@ function AutoTable({ resourceId, views, schema, data, getRowId, expandedRow, def
|
|
|
8050
8064
|
pagination,
|
|
8051
8065
|
table,
|
|
8052
8066
|
classNames,
|
|
8053
|
-
expandedRow
|
|
8067
|
+
expandedRow,
|
|
8068
|
+
rowFooter
|
|
8054
8069
|
}), [
|
|
8055
8070
|
table,
|
|
8056
8071
|
data,
|
|
@@ -8062,6 +8077,7 @@ function AutoTable({ resourceId, views, schema, data, getRowId, expandedRow, def
|
|
|
8062
8077
|
pagination,
|
|
8063
8078
|
classNames,
|
|
8064
8079
|
expandedRow,
|
|
8080
|
+
rowFooter,
|
|
8065
8081
|
state.columnFilters,
|
|
8066
8082
|
state.columnOrder,
|
|
8067
8083
|
state.columnPinning,
|
|
@@ -11100,6 +11116,7 @@ function AutoCrudTable({ id, title, description, schema, resource, fields, table
|
|
|
11100
11116
|
initialColumnVisibility: tableConfig?.initialColumnVisibility,
|
|
11101
11117
|
getRowId: tableConfig?.getRowId,
|
|
11102
11118
|
expandedRow: tableConfig?.expandedRow,
|
|
11119
|
+
rowFooter: tableConfig?.rowFooter,
|
|
11103
11120
|
defaultExpanded: tableConfig?.defaultExpanded,
|
|
11104
11121
|
overrides: tableOverrides,
|
|
11105
11122
|
classNames: tableConfig?.classNames,
|
package/dist/index.d.cts
CHANGED
|
@@ -1384,12 +1384,15 @@ interface DataTableProps<TData> extends ComponentProps<'div'> {
|
|
|
1384
1384
|
actionBar?: ReactNode;
|
|
1385
1385
|
/** Content mounted below an expanded row; row provides resolved cell contexts. */
|
|
1386
1386
|
expandedRow?: (record: TData, row: Row<TData>) => ReactNode;
|
|
1387
|
+
/** Full-width content below a row, before expanded content and independent of expansion. */
|
|
1388
|
+
rowFooter?: (record: TData, row: Row<TData>) => ReactNode;
|
|
1387
1389
|
}
|
|
1388
1390
|
declare function DataTable<TData>({
|
|
1389
1391
|
table,
|
|
1390
1392
|
actionBar,
|
|
1391
1393
|
pagination,
|
|
1392
1394
|
expandedRow,
|
|
1395
|
+
rowFooter,
|
|
1393
1396
|
children,
|
|
1394
1397
|
className,
|
|
1395
1398
|
classNames,
|
|
@@ -1622,7 +1625,7 @@ interface TableSearchConfig {
|
|
|
1622
1625
|
/** Replaces the entire search control, including prefix and built-in batch controls. */
|
|
1623
1626
|
render?: (props: TableSearchProps) => React.ReactNode;
|
|
1624
1627
|
}
|
|
1625
|
-
interface AutoTableProps<T extends z.ZodObject<z.ZodRawShape>> extends Pick<DataTableProps<z.infer<T>>, 'expandedRow'> {
|
|
1628
|
+
interface AutoTableProps<T extends z.ZodObject<z.ZodRawShape>> extends Pick<DataTableProps<z.infer<T>>, 'expandedRow' | 'rowFooter'> {
|
|
1626
1629
|
/** Stable CRUD identity for saved views and tag services. */
|
|
1627
1630
|
resourceId?: string;
|
|
1628
1631
|
/** Disabled by default. Pass true or a config to enable; requires viewStorage and a resourceId. */
|
|
@@ -1705,6 +1708,7 @@ declare function AutoTable<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
1705
1708
|
data,
|
|
1706
1709
|
getRowId,
|
|
1707
1710
|
expandedRow,
|
|
1711
|
+
rowFooter,
|
|
1708
1712
|
defaultExpanded,
|
|
1709
1713
|
pageCount,
|
|
1710
1714
|
pagination,
|
|
@@ -2079,7 +2083,7 @@ interface AutoCrudTableProps<TSchema extends z.ZodObject<z.ZodRawShape>> {
|
|
|
2079
2083
|
batchActions?: BatchActionConfig<z.output<TSchema>>;
|
|
2080
2084
|
/** 默认排序 */
|
|
2081
2085
|
defaultSort?: any[];
|
|
2082
|
-
} & Pick<AutoTableProps<TSchema>, 'getRowId' | 'expandedRow' | 'defaultExpanded' | 'enableRowSelection' | 'initialColumnVisibility' | 'queryKeys'>;
|
|
2086
|
+
} & Pick<AutoTableProps<TSchema>, 'getRowId' | 'expandedRow' | 'rowFooter' | 'defaultExpanded' | 'enableRowSelection' | 'initialColumnVisibility' | 'queryKeys'>;
|
|
2083
2087
|
/** 表单配置 */
|
|
2084
2088
|
form?: {
|
|
2085
2089
|
/** 表单覆盖配置(兼容旧 API,优先级低于 fieldOverrides) */
|
package/dist/index.d.ts
CHANGED
|
@@ -1384,12 +1384,15 @@ interface DataTableProps<TData> extends ComponentProps<'div'> {
|
|
|
1384
1384
|
actionBar?: ReactNode;
|
|
1385
1385
|
/** Content mounted below an expanded row; row provides resolved cell contexts. */
|
|
1386
1386
|
expandedRow?: (record: TData, row: Row<TData>) => ReactNode;
|
|
1387
|
+
/** Full-width content below a row, before expanded content and independent of expansion. */
|
|
1388
|
+
rowFooter?: (record: TData, row: Row<TData>) => ReactNode;
|
|
1387
1389
|
}
|
|
1388
1390
|
declare function DataTable<TData>({
|
|
1389
1391
|
table,
|
|
1390
1392
|
actionBar,
|
|
1391
1393
|
pagination,
|
|
1392
1394
|
expandedRow,
|
|
1395
|
+
rowFooter,
|
|
1393
1396
|
children,
|
|
1394
1397
|
className,
|
|
1395
1398
|
classNames,
|
|
@@ -1622,7 +1625,7 @@ interface TableSearchConfig {
|
|
|
1622
1625
|
/** Replaces the entire search control, including prefix and built-in batch controls. */
|
|
1623
1626
|
render?: (props: TableSearchProps) => React.ReactNode;
|
|
1624
1627
|
}
|
|
1625
|
-
interface AutoTableProps<T extends z.ZodObject<z.ZodRawShape>> extends Pick<DataTableProps<z.infer<T>>, 'expandedRow'> {
|
|
1628
|
+
interface AutoTableProps<T extends z.ZodObject<z.ZodRawShape>> extends Pick<DataTableProps<z.infer<T>>, 'expandedRow' | 'rowFooter'> {
|
|
1626
1629
|
/** Stable CRUD identity for saved views and tag services. */
|
|
1627
1630
|
resourceId?: string;
|
|
1628
1631
|
/** Disabled by default. Pass true or a config to enable; requires viewStorage and a resourceId. */
|
|
@@ -1705,6 +1708,7 @@ declare function AutoTable<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
1705
1708
|
data,
|
|
1706
1709
|
getRowId,
|
|
1707
1710
|
expandedRow,
|
|
1711
|
+
rowFooter,
|
|
1708
1712
|
defaultExpanded,
|
|
1709
1713
|
pageCount,
|
|
1710
1714
|
pagination,
|
|
@@ -2079,7 +2083,7 @@ interface AutoCrudTableProps<TSchema extends z.ZodObject<z.ZodRawShape>> {
|
|
|
2079
2083
|
batchActions?: BatchActionConfig<z.output<TSchema>>;
|
|
2080
2084
|
/** 默认排序 */
|
|
2081
2085
|
defaultSort?: any[];
|
|
2082
|
-
} & Pick<AutoTableProps<TSchema>, 'getRowId' | 'expandedRow' | 'defaultExpanded' | 'enableRowSelection' | 'initialColumnVisibility' | 'queryKeys'>;
|
|
2086
|
+
} & Pick<AutoTableProps<TSchema>, 'getRowId' | 'expandedRow' | 'rowFooter' | 'defaultExpanded' | 'enableRowSelection' | 'initialColumnVisibility' | 'queryKeys'>;
|
|
2083
2087
|
/** 表单配置 */
|
|
2084
2088
|
form?: {
|
|
2085
2089
|
/** 表单覆盖配置(兼容旧 API,优先级低于 fieldOverrides) */
|
package/dist/index.js
CHANGED
|
@@ -3681,7 +3681,7 @@ function formatDate(date, opts = {}, preset) {
|
|
|
3681
3681
|
|
|
3682
3682
|
//#endregion
|
|
3683
3683
|
//#region src/components/data-table/data-table.tsx
|
|
3684
|
-
function DataTable({ table, actionBar, pagination, expandedRow, children, className, classNames,...props }) {
|
|
3684
|
+
function DataTable({ table, actionBar, pagination, expandedRow, rowFooter, children, className, classNames,...props }) {
|
|
3685
3685
|
useDateFormatterVersion();
|
|
3686
3686
|
const columns = [
|
|
3687
3687
|
...table.getLeftVisibleLeafColumns(),
|
|
@@ -3722,25 +3722,39 @@ function DataTable({ table, actionBar, pagination, expandedRow, children, classN
|
|
|
3722
3722
|
}),
|
|
3723
3723
|
/* @__PURE__ */ jsx(TableBody, {
|
|
3724
3724
|
className: classNames?.tbody,
|
|
3725
|
-
children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) =>
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3725
|
+
children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => {
|
|
3726
|
+
const footer = rowFooter?.(row.original, row);
|
|
3727
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3728
|
+
/* @__PURE__ */ jsx(TableRow, {
|
|
3729
|
+
className: classNames?.tr,
|
|
3730
|
+
"data-state": row.getIsSelected() && "selected",
|
|
3731
|
+
children: row.getVisibleCells().map((cell) => {
|
|
3732
|
+
const columnClassName = cell.column.columnDef.meta?.classNames?.td;
|
|
3733
|
+
return /* @__PURE__ */ jsx(TableCell, {
|
|
3734
|
+
className: cn(hasWidthCap && "overflow-hidden text-ellipsis", classNames?.td, typeof columnClassName === "string" ? columnClassName : void 0),
|
|
3735
|
+
style: { ...getColumnPinningStyle({ column: cell.column }) },
|
|
3736
|
+
children: flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
3737
|
+
}, cell.id);
|
|
3738
|
+
})
|
|
3739
|
+
}),
|
|
3740
|
+
footer != null && footer !== false && /* @__PURE__ */ jsx(TableRow, {
|
|
3741
|
+
className: classNames?.tr,
|
|
3742
|
+
children: /* @__PURE__ */ jsx(TableCell, {
|
|
3743
|
+
colSpan: row.getVisibleCells().length,
|
|
3744
|
+
className: classNames?.td,
|
|
3745
|
+
children: footer
|
|
3746
|
+
})
|
|
3747
|
+
}),
|
|
3748
|
+
expandedRow && row.getCanExpand() && row.getIsExpanded() && /* @__PURE__ */ jsx(TableRow, {
|
|
3749
|
+
className: classNames?.tr,
|
|
3750
|
+
children: /* @__PURE__ */ jsx(TableCell, {
|
|
3751
|
+
colSpan: row.getVisibleCells().length,
|
|
3752
|
+
className: classNames?.td,
|
|
3753
|
+
children: expandedRow(row.original, row)
|
|
3754
|
+
})
|
|
3755
|
+
})
|
|
3756
|
+
] }, row.id);
|
|
3757
|
+
}) : /* @__PURE__ */ jsx(TableRow, {
|
|
3744
3758
|
className: classNames?.tr,
|
|
3745
3759
|
children: /* @__PURE__ */ jsx(TableCell, {
|
|
3746
3760
|
colSpan: table.getAllColumns().length,
|
|
@@ -7749,7 +7763,7 @@ const filterModeConfig = {
|
|
|
7749
7763
|
tooltip: "Linear-style command filters"
|
|
7750
7764
|
}
|
|
7751
7765
|
};
|
|
7752
|
-
function AutoTable({ resourceId, views, schema, data, getRowId, expandedRow, defaultExpanded = false, pageCount = 1, pagination, total, overrides, classNames, enableRowSelection = true, queryKeys, initialColumnVisibility, exclude, filterOnly, actions, pinnedColumns, filterMode, search = false, batchSearch, filterState, toolbarExtra, locale = enUSTableControls, onDeleteSelected, onUpdateSelected, batchUpdateFields, actionBarExtra, actionBarLocale, actionBarActions, deleteConfirmation, initialSorting, enableExport = true, showDefaultExport = true, onSelectedCountChange, onSelectedRowsChange, getSelectedRows, exportTableRef }) {
|
|
7766
|
+
function AutoTable({ resourceId, views, schema, data, getRowId, expandedRow, rowFooter, defaultExpanded = false, pageCount = 1, pagination, total, overrides, classNames, enableRowSelection = true, queryKeys, initialColumnVisibility, exclude, filterOnly, actions, pinnedColumns, filterMode, search = false, batchSearch, filterState, toolbarExtra, locale = enUSTableControls, onDeleteSelected, onUpdateSelected, batchUpdateFields, actionBarExtra, actionBarLocale, actionBarActions, deleteConfirmation, initialSorting, enableExport = true, showDefaultExport = true, onSelectedCountChange, onSelectedRowsChange, getSelectedRows, exportTableRef }) {
|
|
7753
7767
|
const inheritedResourceId = useContext(CrudResourceContext);
|
|
7754
7768
|
const activeResourceId = resourceId ?? inheritedResourceId;
|
|
7755
7769
|
const viewsEnabled = views ?? false;
|
|
@@ -8034,7 +8048,8 @@ function AutoTable({ resourceId, views, schema, data, getRowId, expandedRow, def
|
|
|
8034
8048
|
pagination,
|
|
8035
8049
|
table,
|
|
8036
8050
|
classNames,
|
|
8037
|
-
expandedRow
|
|
8051
|
+
expandedRow,
|
|
8052
|
+
rowFooter
|
|
8038
8053
|
}), [
|
|
8039
8054
|
table,
|
|
8040
8055
|
data,
|
|
@@ -8046,6 +8061,7 @@ function AutoTable({ resourceId, views, schema, data, getRowId, expandedRow, def
|
|
|
8046
8061
|
pagination,
|
|
8047
8062
|
classNames,
|
|
8048
8063
|
expandedRow,
|
|
8064
|
+
rowFooter,
|
|
8049
8065
|
state.columnFilters,
|
|
8050
8066
|
state.columnOrder,
|
|
8051
8067
|
state.columnPinning,
|
|
@@ -11084,6 +11100,7 @@ function AutoCrudTable({ id, title, description, schema, resource, fields, table
|
|
|
11084
11100
|
initialColumnVisibility: tableConfig?.initialColumnVisibility,
|
|
11085
11101
|
getRowId: tableConfig?.getRowId,
|
|
11086
11102
|
expandedRow: tableConfig?.expandedRow,
|
|
11103
|
+
rowFooter: tableConfig?.rowFooter,
|
|
11087
11104
|
defaultExpanded: tableConfig?.defaultExpanded,
|
|
11088
11105
|
overrides: tableOverrides,
|
|
11089
11106
|
classNames: tableConfig?.classNames,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordrhyme/auto-crud",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.22.0",
|
|
5
5
|
"description": "Schema-first CRUD components with auto-generated tables and forms",
|
|
6
6
|
"author": "wordrhyme",
|
|
7
7
|
"license": "MIT",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"nanoid": "^5.1.6",
|
|
72
72
|
"tailwind-merge": "^3.5.0",
|
|
73
73
|
"vaul": "^1.1.2",
|
|
74
|
+
"@wordrhyme/formily-shadcn": "2.1.3",
|
|
74
75
|
"@wordrhyme/shadcn": "2.0.2",
|
|
75
|
-
"@wordrhyme/shadcn-ui": "2.1.3"
|
|
76
|
-
"@wordrhyme/formily-shadcn": "2.1.3"
|
|
76
|
+
"@wordrhyme/shadcn-ui": "2.1.3"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@storybook/react": "^8.6.18",
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"tsdown": "^0.15.12",
|
|
95
95
|
"typescript": "^5.9.3",
|
|
96
96
|
"vitest": "^3.2.4",
|
|
97
|
-
"@internal/prettier-config": "0.0.1",
|
|
98
97
|
"@internal/eslint-config": "0.3.0",
|
|
98
|
+
"@internal/prettier-config": "0.0.1",
|
|
99
|
+
"@internal/tsconfig": "0.1.0",
|
|
99
100
|
"@internal/tsdown-config": "0.1.0",
|
|
100
|
-
"@internal/vitest-config": "0.1.0"
|
|
101
|
-
"@internal/tsconfig": "0.1.0"
|
|
101
|
+
"@internal/vitest-config": "0.1.0"
|
|
102
102
|
},
|
|
103
103
|
"prettier": "@internal/prettier-config",
|
|
104
104
|
"scripts": {
|