@wordrhyme/auto-crud 1.0.1 → 1.0.3
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 +76 -7
- package/dist/index.cjs +594 -96
- package/dist/index.d.cts +174 -34
- package/dist/index.d.ts +174 -34
- package/dist/index.js +586 -96
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import * as _tanstack_react_table0 from "@tanstack/react-table";
|
|
4
4
|
import { Column, ColumnDef, ColumnSort, Row, RowData, Table, TableOptions, TableState } from "@tanstack/react-table";
|
|
@@ -314,7 +314,7 @@ declare function AutoTableActionBar<TData>({
|
|
|
314
314
|
enableExport,
|
|
315
315
|
enableDelete,
|
|
316
316
|
extraActions
|
|
317
|
-
}: AutoTableActionBarProps<TData>):
|
|
317
|
+
}: AutoTableActionBarProps<TData>): react_jsx_runtime3.JSX.Element;
|
|
318
318
|
//#endregion
|
|
319
319
|
//#region src/lib/schema-bridge/types.d.ts
|
|
320
320
|
/**
|
|
@@ -394,16 +394,23 @@ declare function createSelectColumn<T>(): ColumnDef<T>;
|
|
|
394
394
|
/**
|
|
395
395
|
* 操作列配置
|
|
396
396
|
*/
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
397
|
+
/**
|
|
398
|
+
* 已解析的操作项(渲染层使用)
|
|
399
|
+
*/
|
|
400
|
+
interface ResolvedActionItem<T> {
|
|
401
|
+
label: string;
|
|
402
|
+
onClick: (row: T) => void;
|
|
403
|
+
separator?: boolean;
|
|
404
|
+
variant?: "default" | "destructive";
|
|
402
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* 操作列配置(ResolvedActionItem 数组)
|
|
408
|
+
*/
|
|
409
|
+
type ActionsColumnConfig<T> = ResolvedActionItem<T>[];
|
|
403
410
|
/**
|
|
404
411
|
* 创建操作列
|
|
405
412
|
*/
|
|
406
|
-
declare function createActionsColumn<T>(
|
|
413
|
+
declare function createActionsColumn<T>(items: ActionsColumnConfig<T>): ColumnDef<T>;
|
|
407
414
|
//#endregion
|
|
408
415
|
//#region src/components/auto-crud/auto-table.d.ts
|
|
409
416
|
/** 过滤模式类型 */
|
|
@@ -463,7 +470,97 @@ declare function AutoTable<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
463
470
|
enableExport,
|
|
464
471
|
onSelectedCountChange,
|
|
465
472
|
getSelectedRows
|
|
466
|
-
}: AutoTableProps<T>):
|
|
473
|
+
}: AutoTableProps<T>): react_jsx_runtime3.JSX.Element;
|
|
474
|
+
//#endregion
|
|
475
|
+
//#region src/i18n/locale.d.ts
|
|
476
|
+
/**
|
|
477
|
+
* AutoCrud 国际化接口及内置语言包
|
|
478
|
+
*
|
|
479
|
+
* 使用方式:
|
|
480
|
+
* // 内置语言
|
|
481
|
+
* <AutoCrudTable locale="en-US" ... />
|
|
482
|
+
*
|
|
483
|
+
* // 部分覆盖(以 zh-CN 为基础深合并)
|
|
484
|
+
* <AutoCrudTable locale={{ toolbar: { create: "Add" } }} ... />
|
|
485
|
+
*/
|
|
486
|
+
interface AutoCrudLocale {
|
|
487
|
+
toolbar: {
|
|
488
|
+
create: string;
|
|
489
|
+
import: string;
|
|
490
|
+
export: string;
|
|
491
|
+
exportSelected: (count: number) => string;
|
|
492
|
+
};
|
|
493
|
+
rowActions: {
|
|
494
|
+
view: string;
|
|
495
|
+
edit: string;
|
|
496
|
+
copy: string;
|
|
497
|
+
delete: string;
|
|
498
|
+
};
|
|
499
|
+
viewModal: {
|
|
500
|
+
title: string;
|
|
501
|
+
};
|
|
502
|
+
boolean: {
|
|
503
|
+
true: string;
|
|
504
|
+
false: string;
|
|
505
|
+
};
|
|
506
|
+
formModal: {
|
|
507
|
+
createTitle: string;
|
|
508
|
+
editTitle: string;
|
|
509
|
+
cancel: string;
|
|
510
|
+
create: string;
|
|
511
|
+
save: string;
|
|
512
|
+
submitting: string;
|
|
513
|
+
};
|
|
514
|
+
deleteModal: {
|
|
515
|
+
title: string;
|
|
516
|
+
description: string;
|
|
517
|
+
cancel: string;
|
|
518
|
+
confirm: string;
|
|
519
|
+
confirming: string;
|
|
520
|
+
};
|
|
521
|
+
importDialog: {
|
|
522
|
+
title: string;
|
|
523
|
+
uploadDescription: string;
|
|
524
|
+
previewDescription: (count: number) => string;
|
|
525
|
+
importingDescription: string;
|
|
526
|
+
doneDescription: string;
|
|
527
|
+
dragHint: string;
|
|
528
|
+
formatHint: string;
|
|
529
|
+
downloadTemplate: string;
|
|
530
|
+
moreColumns: (count: number) => string;
|
|
531
|
+
previewSummary: (rows: number, fields: number, format: string, previewLimit?: number) => string;
|
|
532
|
+
reselect: string;
|
|
533
|
+
confirmImport: string;
|
|
534
|
+
importingRows: (count: number) => string;
|
|
535
|
+
resultCreated: string;
|
|
536
|
+
resultUpdated: string;
|
|
537
|
+
resultSkipped: string;
|
|
538
|
+
resultFailed: string;
|
|
539
|
+
failedRowHeader: string;
|
|
540
|
+
failedErrorHeader: string;
|
|
541
|
+
close: string;
|
|
542
|
+
continueImport: string;
|
|
543
|
+
errorNoData: string;
|
|
544
|
+
errorParseFailed: string;
|
|
545
|
+
errorImportFailed: string;
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
declare const zhCN: AutoCrudLocale;
|
|
549
|
+
declare const enUS: AutoCrudLocale;
|
|
550
|
+
declare const jaJP: AutoCrudLocale;
|
|
551
|
+
declare const koKR: AutoCrudLocale;
|
|
552
|
+
declare const frFR: AutoCrudLocale;
|
|
553
|
+
declare const deDE: AutoCrudLocale;
|
|
554
|
+
declare const esES: AutoCrudLocale;
|
|
555
|
+
type DeepPartial<T> = { [P in keyof T]?: T[P] extends ((...args: unknown[]) => unknown) ? T[P] : T[P] extends object ? DeepPartial<T[P]> : T[P] };
|
|
556
|
+
/** locale prop 类型:内置语言 key 或部分覆盖对象 */
|
|
557
|
+
type LocaleProp = string | DeepPartial<AutoCrudLocale>;
|
|
558
|
+
/**
|
|
559
|
+
* 解析 locale prop 为完整的 AutoCrudLocale
|
|
560
|
+
* - string → 内置语言(fallback: zh-CN)
|
|
561
|
+
* - object → 以 zh-CN 为基础深合并
|
|
562
|
+
*/
|
|
563
|
+
declare function resolveLocale(localeProp?: LocaleProp): AutoCrudLocale;
|
|
467
564
|
//#endregion
|
|
468
565
|
//#region src/components/auto-crud/auto-crud-table.d.ts
|
|
469
566
|
/**
|
|
@@ -539,6 +636,31 @@ interface Field {
|
|
|
539
636
|
} | false;
|
|
540
637
|
}
|
|
541
638
|
type Fields = Record<string, Field>;
|
|
639
|
+
type BuiltinType = "view" | "edit" | "copy" | "delete";
|
|
640
|
+
/** 内置操作项(覆盖默认行为或调整位置) */
|
|
641
|
+
type BuiltinActionItem<T> = {
|
|
642
|
+
type: BuiltinType;
|
|
643
|
+
onClick?: (row: T) => void;
|
|
644
|
+
label?: string;
|
|
645
|
+
separator?: boolean;
|
|
646
|
+
};
|
|
647
|
+
/** 自定义操作项 */
|
|
648
|
+
type CustomActionItem<T> = {
|
|
649
|
+
type: "custom";
|
|
650
|
+
label: string;
|
|
651
|
+
onClick: (row: T) => void;
|
|
652
|
+
/** 仅在无内置项时生效:插入到首部还是尾部(默认 end) */
|
|
653
|
+
position?: "start" | "end";
|
|
654
|
+
separator?: boolean;
|
|
655
|
+
variant?: "default" | "destructive";
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* 行操作项
|
|
659
|
+
*
|
|
660
|
+
* - **只传 custom**:内置保持默认,custom 追加到首/尾
|
|
661
|
+
* - **包含任意内置 type**:数组完全接管,未列出的隐藏,顺序即渲染顺序
|
|
662
|
+
*/
|
|
663
|
+
type ActionItem<T> = BuiltinActionItem<T> | CustomActionItem<T>;
|
|
542
664
|
/**
|
|
543
665
|
* AutoCrudTable Props 接口
|
|
544
666
|
*/
|
|
@@ -590,12 +712,9 @@ interface AutoCrudTableProps<TSchema extends z.ZodObject<z.ZodRawShape>> {
|
|
|
590
712
|
toolbarStart?: React$1.ReactNode;
|
|
591
713
|
/** 工具栏右侧插槽 */
|
|
592
714
|
toolbarEnd?: React$1.ReactNode;
|
|
593
|
-
/** 自定义行操作 */
|
|
594
|
-
rowActions?: (row: z.output<TSchema>) => Array<{
|
|
595
|
-
label: string;
|
|
596
|
-
onClick: () => void;
|
|
597
|
-
}>;
|
|
598
715
|
};
|
|
716
|
+
/** 行操作配置,见 {@link ActionItem} */
|
|
717
|
+
actions?: ActionItem<z.output<TSchema>>[];
|
|
599
718
|
/**
|
|
600
719
|
* 权限配置
|
|
601
720
|
* 控制按钮显示和字段访问
|
|
@@ -617,6 +736,18 @@ interface AutoCrudTableProps<TSchema extends z.ZodObject<z.ZodRawShape>> {
|
|
|
617
736
|
* ```
|
|
618
737
|
*/
|
|
619
738
|
permissions?: CrudPermissions;
|
|
739
|
+
/**
|
|
740
|
+
* 语言配置
|
|
741
|
+
* - 内置语言 key:`"zh-CN"`(默认)、`"en-US"`
|
|
742
|
+
* - 部分覆盖对象:以 zh-CN 为基础深合并
|
|
743
|
+
*
|
|
744
|
+
* @example
|
|
745
|
+
* ```tsx
|
|
746
|
+
* <AutoCrudTable locale="en-US" ... />
|
|
747
|
+
* <AutoCrudTable locale={{ toolbar: { create: "Add New" } }} ... />
|
|
748
|
+
* ```
|
|
749
|
+
*/
|
|
750
|
+
locale?: LocaleProp;
|
|
620
751
|
}
|
|
621
752
|
/**
|
|
622
753
|
* AutoCrudTable 组件
|
|
@@ -632,8 +763,10 @@ declare function AutoCrudTable<TSchema extends z.ZodObject<z.ZodRawShape>>({
|
|
|
632
763
|
table: tableConfig,
|
|
633
764
|
form: formConfig,
|
|
634
765
|
slots,
|
|
635
|
-
permissions
|
|
636
|
-
|
|
766
|
+
permissions,
|
|
767
|
+
actions: actionItems,
|
|
768
|
+
locale: localeProp
|
|
769
|
+
}: AutoCrudTableProps<TSchema>): react_jsx_runtime3.JSX.Element;
|
|
637
770
|
//#endregion
|
|
638
771
|
//#region src/components/auto-crud/auto-form.d.ts
|
|
639
772
|
interface AutoFormProps<T extends z.ZodObject<z.ZodRawShape>> {
|
|
@@ -665,7 +798,7 @@ declare function AutoFormInner<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
665
798
|
labelAlign,
|
|
666
799
|
labelWidth,
|
|
667
800
|
showSubmitButton
|
|
668
|
-
}: AutoFormProps<T>, ref: React.Ref<AutoFormRef>):
|
|
801
|
+
}: AutoFormProps<T>, ref: React.Ref<AutoFormRef>): react_jsx_runtime3.JSX.Element;
|
|
669
802
|
declare const AutoForm: <T extends z.ZodObject<z.ZodRawShape>>(props: AutoFormProps<T> & {
|
|
670
803
|
ref?: React.Ref<AutoFormRef>;
|
|
671
804
|
}) => ReturnType<typeof AutoFormInner>;
|
|
@@ -879,12 +1012,12 @@ declare const filterItemSchema: z.ZodObject<{
|
|
|
879
1012
|
variant: z.ZodEnum<{
|
|
880
1013
|
number: "number";
|
|
881
1014
|
boolean: "boolean";
|
|
882
|
-
text: "text";
|
|
883
|
-
range: "range";
|
|
884
1015
|
date: "date";
|
|
885
|
-
|
|
1016
|
+
text: "text";
|
|
886
1017
|
select: "select";
|
|
887
1018
|
multiSelect: "multiSelect";
|
|
1019
|
+
dateRange: "dateRange";
|
|
1020
|
+
range: "range";
|
|
888
1021
|
}>;
|
|
889
1022
|
operator: z.ZodEnum<{
|
|
890
1023
|
iLike: "iLike";
|
|
@@ -963,7 +1096,7 @@ declare function AutoTableSimpleFilters<TData>({
|
|
|
963
1096
|
shallow,
|
|
964
1097
|
filters: externalFilters,
|
|
965
1098
|
onFiltersChange
|
|
966
|
-
}: AutoTableSimpleFiltersProps<TData>):
|
|
1099
|
+
}: AutoTableSimpleFiltersProps<TData>): react_jsx_runtime3.JSX.Element | null;
|
|
967
1100
|
//#endregion
|
|
968
1101
|
//#region src/components/auto-crud/form-modal.d.ts
|
|
969
1102
|
type ModalVariant = "dialog" | "sheet";
|
|
@@ -980,6 +1113,8 @@ interface CrudFormModalProps<T extends z.ZodObject<z.ZodRawShape>> {
|
|
|
980
1113
|
variant?: ModalVariant;
|
|
981
1114
|
overrides?: FormSchemaOverrides;
|
|
982
1115
|
title?: string;
|
|
1116
|
+
locale?: AutoCrudLocale["formModal"];
|
|
1117
|
+
gridColumns?: number;
|
|
983
1118
|
/** Label 对齐方式 */
|
|
984
1119
|
labelAlign?: "left" | "top" | "right";
|
|
985
1120
|
/** Label 宽度(labelAlign 为 left 时有效) */
|
|
@@ -996,9 +1131,11 @@ declare function CrudFormModal<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
996
1131
|
variant,
|
|
997
1132
|
overrides,
|
|
998
1133
|
title,
|
|
1134
|
+
locale,
|
|
1135
|
+
gridColumns,
|
|
999
1136
|
labelAlign,
|
|
1000
1137
|
labelWidth
|
|
1001
|
-
}: CrudFormModalProps<T>):
|
|
1138
|
+
}: CrudFormModalProps<T>): react_jsx_runtime3.JSX.Element;
|
|
1002
1139
|
//#endregion
|
|
1003
1140
|
//#region src/components/auto-crud/import-dialog.d.ts
|
|
1004
1141
|
interface ImportDialogProps {
|
|
@@ -1008,16 +1145,19 @@ interface ImportDialogProps {
|
|
|
1008
1145
|
onImport: (rows: Record<string, unknown>[]) => Promise<ImportResult>;
|
|
1009
1146
|
/** 可用列名(用于生成模板) */
|
|
1010
1147
|
columns?: string[];
|
|
1011
|
-
/**
|
|
1148
|
+
/** 对话框标题(优先于 locale.title) */
|
|
1012
1149
|
title?: string;
|
|
1150
|
+
/** 语言包,默认 zh-CN */
|
|
1151
|
+
locale?: AutoCrudLocale["importDialog"];
|
|
1013
1152
|
}
|
|
1014
1153
|
declare function ImportDialog({
|
|
1015
1154
|
open,
|
|
1016
1155
|
onOpenChange,
|
|
1017
1156
|
onImport,
|
|
1018
1157
|
columns,
|
|
1019
|
-
title
|
|
1020
|
-
|
|
1158
|
+
title,
|
|
1159
|
+
locale
|
|
1160
|
+
}: ImportDialogProps): react_jsx_runtime3.JSX.Element;
|
|
1021
1161
|
//#endregion
|
|
1022
1162
|
//#region src/components/auto-crud/export-dialog.d.ts
|
|
1023
1163
|
type ExportMode = "selected" | "filtered";
|
|
@@ -1037,7 +1177,7 @@ declare function ExportDialog({
|
|
|
1037
1177
|
selectedCount,
|
|
1038
1178
|
onExport,
|
|
1039
1179
|
canExportFiltered
|
|
1040
|
-
}: ExportDialogProps):
|
|
1180
|
+
}: ExportDialogProps): react_jsx_runtime3.JSX.Element;
|
|
1041
1181
|
//#endregion
|
|
1042
1182
|
//#region src/components/data-table/data-table.d.ts
|
|
1043
1183
|
interface DataTableProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -1050,7 +1190,7 @@ declare function DataTable<TData>({
|
|
|
1050
1190
|
children,
|
|
1051
1191
|
className,
|
|
1052
1192
|
...props
|
|
1053
|
-
}: DataTableProps<TData>):
|
|
1193
|
+
}: DataTableProps<TData>): react_jsx_runtime3.JSX.Element;
|
|
1054
1194
|
//#endregion
|
|
1055
1195
|
//#region src/components/data-table/data-table-advanced-toolbar.d.ts
|
|
1056
1196
|
interface DataTableAdvancedToolbarProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -1061,7 +1201,7 @@ declare function DataTableAdvancedToolbar<TData>({
|
|
|
1061
1201
|
children,
|
|
1062
1202
|
className,
|
|
1063
1203
|
...props
|
|
1064
|
-
}: DataTableAdvancedToolbarProps<TData>):
|
|
1204
|
+
}: DataTableAdvancedToolbarProps<TData>): react_jsx_runtime3.JSX.Element;
|
|
1065
1205
|
//#endregion
|
|
1066
1206
|
//#region src/components/data-table/data-table-column-header.d.ts
|
|
1067
1207
|
interface DataTableColumnHeaderProps<TData, TValue> extends React.ComponentProps<typeof DropdownMenuTrigger> {
|
|
@@ -1073,7 +1213,7 @@ declare function DataTableColumnHeader<TData, TValue>({
|
|
|
1073
1213
|
label,
|
|
1074
1214
|
className,
|
|
1075
1215
|
...props
|
|
1076
|
-
}: DataTableColumnHeaderProps<TData, TValue>):
|
|
1216
|
+
}: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime3.JSX.Element;
|
|
1077
1217
|
//#endregion
|
|
1078
1218
|
//#region src/components/data-table/data-table-faceted-filter.d.ts
|
|
1079
1219
|
interface DataTableFacetedFilterProps<TData, TValue> {
|
|
@@ -1087,7 +1227,7 @@ declare function DataTableFacetedFilter<TData, TValue>({
|
|
|
1087
1227
|
title,
|
|
1088
1228
|
options,
|
|
1089
1229
|
multiple
|
|
1090
|
-
}: DataTableFacetedFilterProps<TData, TValue>):
|
|
1230
|
+
}: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime3.JSX.Element;
|
|
1091
1231
|
//#endregion
|
|
1092
1232
|
//#region src/components/data-table/data-table-pagination.d.ts
|
|
1093
1233
|
interface DataTablePaginationProps<TData> extends React.ComponentProps<"div"> {
|
|
@@ -1099,7 +1239,7 @@ declare function DataTablePagination<TData>({
|
|
|
1099
1239
|
pageSizeOptions,
|
|
1100
1240
|
className,
|
|
1101
1241
|
...props
|
|
1102
|
-
}: DataTablePaginationProps<TData>):
|
|
1242
|
+
}: DataTablePaginationProps<TData>): react_jsx_runtime3.JSX.Element;
|
|
1103
1243
|
//#endregion
|
|
1104
1244
|
//#region src/components/data-table/data-table-toolbar.d.ts
|
|
1105
1245
|
interface DataTableToolbarProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -1110,7 +1250,7 @@ declare function DataTableToolbar<TData>({
|
|
|
1110
1250
|
children,
|
|
1111
1251
|
className,
|
|
1112
1252
|
...props
|
|
1113
|
-
}: DataTableToolbarProps<TData>):
|
|
1253
|
+
}: DataTableToolbarProps<TData>): react_jsx_runtime3.JSX.Element;
|
|
1114
1254
|
//#endregion
|
|
1115
1255
|
//#region src/components/data-table/data-table-view-options.d.ts
|
|
1116
1256
|
interface DataTableViewOptionsProps<TData> extends React$1.ComponentProps<typeof PopoverContent> {
|
|
@@ -1121,7 +1261,7 @@ declare function DataTableViewOptions<TData>({
|
|
|
1121
1261
|
table,
|
|
1122
1262
|
disabled,
|
|
1123
1263
|
...props
|
|
1124
|
-
}: DataTableViewOptionsProps<TData>):
|
|
1264
|
+
}: DataTableViewOptionsProps<TData>): react_jsx_runtime3.JSX.Element;
|
|
1125
1265
|
//#endregion
|
|
1126
1266
|
//#region src/hooks/use-data-table.d.ts
|
|
1127
1267
|
interface UseDataTableProps<TData> extends Omit<TableOptions<TData>, "state" | "pageCount" | "getCoreRowModel" | "manualFiltering" | "manualPagination" | "manualSorting">, Required<Pick<TableOptions<TData>, "pageCount">> {
|
|
@@ -1456,4 +1596,4 @@ declare function exportAllToCSV<T extends Record<string, unknown>>(data: T[], op
|
|
|
1456
1596
|
*/
|
|
1457
1597
|
declare function downloadCSVTemplate(headers: string[], filename?: string): void;
|
|
1458
1598
|
//#endregion
|
|
1459
|
-
export { type ActionsColumnConfig, AutoCrudTable, type AutoCrudTableProps, AutoForm, type AutoQueryParams, AutoTable, AutoTableActionBar, AutoTableSimpleFilters, type ColumnOverrides, type CreateFormSchemaOptions, type CreateTableSchemaOptions, CrudFormModal, type CrudHooks, type CrudOperationPermissions, type CrudPermissions, type DataSource, DataTable, DataTableAdvancedToolbar, DataTableColumnHeader, DataTableFacetedFilter, DataTablePagination, DataTableRowAction, DataTableToolbar, DataTableViewOptions, type EnumOption, ExportDialog, type ExportDialogProps, type ExportMode, ExtendedColumnFilter, ExtendedColumnSort, type Field, type FieldType, type Fields, type FilterConfig, FilterOperator, type FilterVariant, type FormSchemaOverrides, ImportDialog, type ImportDialogProps, type ImportResult, type JSONSchema, type JSONSchemaProperty, JoinOperator, type ListParams, type ListResult, Option, type ParsedImportData, type ParsedZodField, type Parser, QueryKeys, SchemaAdapter, type SimpleFieldConfig, type SimpleFieldsConfig, type ToastAdapter, type UnifiedField, type UnifiedSchema, type UrlStateOptions, type UseAutoCrudResourceOptions, type UseAutoCrudResourceParams, type UseAutoCrudResourceReturn, cn, coerceRowValues, createActionsColumn, createEditFormSchema, createFormSchema, createMemoryDataSource, createSelectColumn, createTRPCDataSource, createTableSchema, dataToCSV, downloadCSVTemplate, exportAllToCSV, exportTableToCSV, formatDate, generateCSVTemplate, getUrlParams, humanize, noopToastAdapter, parseAsArrayOf, parseAsInteger, parseAsString, parseAsStringEnum, parseCSV, parseImportFile, parseJSON, parseZodField, setSearchParams, useAutoCrudResource, useDataTable, useQueryState, useQueryStates, useReadableFilters, useUrlState, useUrlStates };
|
|
1599
|
+
export { type ActionItem, type ActionsColumnConfig, type AutoCrudLocale, AutoCrudTable, type AutoCrudTableProps, AutoForm, type AutoQueryParams, AutoTable, AutoTableActionBar, AutoTableSimpleFilters, type ColumnOverrides, type CreateFormSchemaOptions, type CreateTableSchemaOptions, CrudFormModal, type CrudHooks, type CrudOperationPermissions, type CrudPermissions, type DataSource, DataTable, DataTableAdvancedToolbar, DataTableColumnHeader, DataTableFacetedFilter, DataTablePagination, DataTableRowAction, DataTableToolbar, DataTableViewOptions, type EnumOption, ExportDialog, type ExportDialogProps, type ExportMode, ExtendedColumnFilter, ExtendedColumnSort, type Field, type FieldType, type Fields, type FilterConfig, FilterOperator, type FilterVariant, type FormSchemaOverrides, ImportDialog, type ImportDialogProps, type ImportResult, type JSONSchema, type JSONSchemaProperty, JoinOperator, type ListParams, type ListResult, type LocaleProp, Option, type ParsedImportData, type ParsedZodField, type Parser, QueryKeys, SchemaAdapter, type SimpleFieldConfig, type SimpleFieldsConfig, type ToastAdapter, type UnifiedField, type UnifiedSchema, type UrlStateOptions, type UseAutoCrudResourceOptions, type UseAutoCrudResourceParams, type UseAutoCrudResourceReturn, cn, coerceRowValues, createActionsColumn, createEditFormSchema, createFormSchema, createMemoryDataSource, createSelectColumn, createTRPCDataSource, createTableSchema, dataToCSV, deDE, downloadCSVTemplate, enUS, esES, exportAllToCSV, exportTableToCSV, formatDate, frFR, generateCSVTemplate, getUrlParams, humanize, jaJP, koKR, noopToastAdapter, parseAsArrayOf, parseAsInteger, parseAsString, parseAsStringEnum, parseCSV, parseImportFile, parseJSON, parseZodField, resolveLocale, setSearchParams, useAutoCrudResource, useDataTable, useQueryState, useQueryStates, useReadableFilters, useUrlState, useUrlStates, zhCN };
|