@wordrhyme/auto-crud 1.0.3 → 1.0.4
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/dist/index.d.cts +3 -3
- package/dist/index.d.ts +19 -19
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1012,12 +1012,12 @@ declare const filterItemSchema: z.ZodObject<{
|
|
|
1012
1012
|
variant: z.ZodEnum<{
|
|
1013
1013
|
number: "number";
|
|
1014
1014
|
boolean: "boolean";
|
|
1015
|
-
date: "date";
|
|
1016
1015
|
text: "text";
|
|
1016
|
+
range: "range";
|
|
1017
|
+
date: "date";
|
|
1018
|
+
dateRange: "dateRange";
|
|
1017
1019
|
select: "select";
|
|
1018
1020
|
multiSelect: "multiSelect";
|
|
1019
|
-
dateRange: "dateRange";
|
|
1020
|
-
range: "range";
|
|
1021
1021
|
}>;
|
|
1022
1022
|
operator: z.ZodEnum<{
|
|
1023
1023
|
iLike: "iLike";
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _tanstack_react_table0 from "@tanstack/react-table";
|
|
|
3
3
|
import { Column, ColumnDef, ColumnSort, Row, RowData, Table, TableOptions, TableState } from "@tanstack/react-table";
|
|
4
4
|
import { DropdownMenuTrigger, PopoverContent } from "@pixpilot/shadcn";
|
|
5
5
|
import { ClassValue } from "clsx";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { ISchema } from "@formily/json-schema";
|
|
9
9
|
|
|
@@ -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_runtime0.JSX.Element;
|
|
318
318
|
//#endregion
|
|
319
319
|
//#region src/lib/schema-bridge/types.d.ts
|
|
320
320
|
/**
|
|
@@ -470,7 +470,7 @@ declare function AutoTable<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
470
470
|
enableExport,
|
|
471
471
|
onSelectedCountChange,
|
|
472
472
|
getSelectedRows
|
|
473
|
-
}: AutoTableProps<T>):
|
|
473
|
+
}: AutoTableProps<T>): react_jsx_runtime0.JSX.Element;
|
|
474
474
|
//#endregion
|
|
475
475
|
//#region src/i18n/locale.d.ts
|
|
476
476
|
/**
|
|
@@ -766,7 +766,7 @@ declare function AutoCrudTable<TSchema extends z.ZodObject<z.ZodRawShape>>({
|
|
|
766
766
|
permissions,
|
|
767
767
|
actions: actionItems,
|
|
768
768
|
locale: localeProp
|
|
769
|
-
}: AutoCrudTableProps<TSchema>):
|
|
769
|
+
}: AutoCrudTableProps<TSchema>): react_jsx_runtime0.JSX.Element;
|
|
770
770
|
//#endregion
|
|
771
771
|
//#region src/components/auto-crud/auto-form.d.ts
|
|
772
772
|
interface AutoFormProps<T extends z.ZodObject<z.ZodRawShape>> {
|
|
@@ -798,7 +798,7 @@ declare function AutoFormInner<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
798
798
|
labelAlign,
|
|
799
799
|
labelWidth,
|
|
800
800
|
showSubmitButton
|
|
801
|
-
}: AutoFormProps<T>, ref: React.Ref<AutoFormRef>):
|
|
801
|
+
}: AutoFormProps<T>, ref: React.Ref<AutoFormRef>): react_jsx_runtime0.JSX.Element;
|
|
802
802
|
declare const AutoForm: <T extends z.ZodObject<z.ZodRawShape>>(props: AutoFormProps<T> & {
|
|
803
803
|
ref?: React.Ref<AutoFormRef>;
|
|
804
804
|
}) => ReturnType<typeof AutoFormInner>;
|
|
@@ -1012,12 +1012,12 @@ declare const filterItemSchema: z.ZodObject<{
|
|
|
1012
1012
|
variant: z.ZodEnum<{
|
|
1013
1013
|
number: "number";
|
|
1014
1014
|
boolean: "boolean";
|
|
1015
|
-
date: "date";
|
|
1016
1015
|
text: "text";
|
|
1016
|
+
range: "range";
|
|
1017
|
+
date: "date";
|
|
1018
|
+
dateRange: "dateRange";
|
|
1017
1019
|
select: "select";
|
|
1018
1020
|
multiSelect: "multiSelect";
|
|
1019
|
-
dateRange: "dateRange";
|
|
1020
|
-
range: "range";
|
|
1021
1021
|
}>;
|
|
1022
1022
|
operator: z.ZodEnum<{
|
|
1023
1023
|
iLike: "iLike";
|
|
@@ -1096,7 +1096,7 @@ declare function AutoTableSimpleFilters<TData>({
|
|
|
1096
1096
|
shallow,
|
|
1097
1097
|
filters: externalFilters,
|
|
1098
1098
|
onFiltersChange
|
|
1099
|
-
}: AutoTableSimpleFiltersProps<TData>):
|
|
1099
|
+
}: AutoTableSimpleFiltersProps<TData>): react_jsx_runtime0.JSX.Element | null;
|
|
1100
1100
|
//#endregion
|
|
1101
1101
|
//#region src/components/auto-crud/form-modal.d.ts
|
|
1102
1102
|
type ModalVariant = "dialog" | "sheet";
|
|
@@ -1135,7 +1135,7 @@ declare function CrudFormModal<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
1135
1135
|
gridColumns,
|
|
1136
1136
|
labelAlign,
|
|
1137
1137
|
labelWidth
|
|
1138
|
-
}: CrudFormModalProps<T>):
|
|
1138
|
+
}: CrudFormModalProps<T>): react_jsx_runtime0.JSX.Element;
|
|
1139
1139
|
//#endregion
|
|
1140
1140
|
//#region src/components/auto-crud/import-dialog.d.ts
|
|
1141
1141
|
interface ImportDialogProps {
|
|
@@ -1157,7 +1157,7 @@ declare function ImportDialog({
|
|
|
1157
1157
|
columns,
|
|
1158
1158
|
title,
|
|
1159
1159
|
locale
|
|
1160
|
-
}: ImportDialogProps):
|
|
1160
|
+
}: ImportDialogProps): react_jsx_runtime0.JSX.Element;
|
|
1161
1161
|
//#endregion
|
|
1162
1162
|
//#region src/components/auto-crud/export-dialog.d.ts
|
|
1163
1163
|
type ExportMode = "selected" | "filtered";
|
|
@@ -1177,7 +1177,7 @@ declare function ExportDialog({
|
|
|
1177
1177
|
selectedCount,
|
|
1178
1178
|
onExport,
|
|
1179
1179
|
canExportFiltered
|
|
1180
|
-
}: ExportDialogProps):
|
|
1180
|
+
}: ExportDialogProps): react_jsx_runtime0.JSX.Element;
|
|
1181
1181
|
//#endregion
|
|
1182
1182
|
//#region src/components/data-table/data-table.d.ts
|
|
1183
1183
|
interface DataTableProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -1190,7 +1190,7 @@ declare function DataTable<TData>({
|
|
|
1190
1190
|
children,
|
|
1191
1191
|
className,
|
|
1192
1192
|
...props
|
|
1193
|
-
}: DataTableProps<TData>):
|
|
1193
|
+
}: DataTableProps<TData>): react_jsx_runtime0.JSX.Element;
|
|
1194
1194
|
//#endregion
|
|
1195
1195
|
//#region src/components/data-table/data-table-advanced-toolbar.d.ts
|
|
1196
1196
|
interface DataTableAdvancedToolbarProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -1201,7 +1201,7 @@ declare function DataTableAdvancedToolbar<TData>({
|
|
|
1201
1201
|
children,
|
|
1202
1202
|
className,
|
|
1203
1203
|
...props
|
|
1204
|
-
}: DataTableAdvancedToolbarProps<TData>):
|
|
1204
|
+
}: DataTableAdvancedToolbarProps<TData>): react_jsx_runtime0.JSX.Element;
|
|
1205
1205
|
//#endregion
|
|
1206
1206
|
//#region src/components/data-table/data-table-column-header.d.ts
|
|
1207
1207
|
interface DataTableColumnHeaderProps<TData, TValue> extends React.ComponentProps<typeof DropdownMenuTrigger> {
|
|
@@ -1213,7 +1213,7 @@ declare function DataTableColumnHeader<TData, TValue>({
|
|
|
1213
1213
|
label,
|
|
1214
1214
|
className,
|
|
1215
1215
|
...props
|
|
1216
|
-
}: DataTableColumnHeaderProps<TData, TValue>):
|
|
1216
|
+
}: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime0.JSX.Element;
|
|
1217
1217
|
//#endregion
|
|
1218
1218
|
//#region src/components/data-table/data-table-faceted-filter.d.ts
|
|
1219
1219
|
interface DataTableFacetedFilterProps<TData, TValue> {
|
|
@@ -1227,7 +1227,7 @@ declare function DataTableFacetedFilter<TData, TValue>({
|
|
|
1227
1227
|
title,
|
|
1228
1228
|
options,
|
|
1229
1229
|
multiple
|
|
1230
|
-
}: DataTableFacetedFilterProps<TData, TValue>):
|
|
1230
|
+
}: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime0.JSX.Element;
|
|
1231
1231
|
//#endregion
|
|
1232
1232
|
//#region src/components/data-table/data-table-pagination.d.ts
|
|
1233
1233
|
interface DataTablePaginationProps<TData> extends React.ComponentProps<"div"> {
|
|
@@ -1239,7 +1239,7 @@ declare function DataTablePagination<TData>({
|
|
|
1239
1239
|
pageSizeOptions,
|
|
1240
1240
|
className,
|
|
1241
1241
|
...props
|
|
1242
|
-
}: DataTablePaginationProps<TData>):
|
|
1242
|
+
}: DataTablePaginationProps<TData>): react_jsx_runtime0.JSX.Element;
|
|
1243
1243
|
//#endregion
|
|
1244
1244
|
//#region src/components/data-table/data-table-toolbar.d.ts
|
|
1245
1245
|
interface DataTableToolbarProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -1250,7 +1250,7 @@ declare function DataTableToolbar<TData>({
|
|
|
1250
1250
|
children,
|
|
1251
1251
|
className,
|
|
1252
1252
|
...props
|
|
1253
|
-
}: DataTableToolbarProps<TData>):
|
|
1253
|
+
}: DataTableToolbarProps<TData>): react_jsx_runtime0.JSX.Element;
|
|
1254
1254
|
//#endregion
|
|
1255
1255
|
//#region src/components/data-table/data-table-view-options.d.ts
|
|
1256
1256
|
interface DataTableViewOptionsProps<TData> extends React$1.ComponentProps<typeof PopoverContent> {
|
|
@@ -1261,7 +1261,7 @@ declare function DataTableViewOptions<TData>({
|
|
|
1261
1261
|
table,
|
|
1262
1262
|
disabled,
|
|
1263
1263
|
...props
|
|
1264
|
-
}: DataTableViewOptionsProps<TData>):
|
|
1264
|
+
}: DataTableViewOptionsProps<TData>): react_jsx_runtime0.JSX.Element;
|
|
1265
1265
|
//#endregion
|
|
1266
1266
|
//#region src/hooks/use-data-table.d.ts
|
|
1267
1267
|
interface UseDataTableProps<TData> extends Omit<TableOptions<TData>, "state" | "pageCount" | "getCoreRowModel" | "manualFiltering" | "manualPagination" | "manualSorting">, Required<Pick<TableOptions<TData>, "pageCount">> {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordrhyme/auto-crud",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"description": "Schema-first CRUD components with auto-generated tables and forms",
|
|
6
6
|
"author": "wordrhyme",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"nanoid": "^5.1.6",
|
|
66
66
|
"tailwind-merge": "^3.4.0",
|
|
67
67
|
"vaul": "^1.1.2",
|
|
68
|
-
"@pixpilot/shadcn": "1.
|
|
69
|
-
"@pixpilot/formily-shadcn": "1.7.
|
|
70
|
-
"@pixpilot/shadcn
|
|
68
|
+
"@pixpilot/shadcn-ui": "1.4.0",
|
|
69
|
+
"@pixpilot/formily-shadcn": "1.7.2",
|
|
70
|
+
"@pixpilot/shadcn": "1.2.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@tanstack/react-query": "^5.90.15",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"react-dom": "19.2.4",
|
|
82
82
|
"tsdown": "^0.15.12",
|
|
83
83
|
"typescript": "^5.9.3",
|
|
84
|
+
"@internal/prettier-config": "0.0.1",
|
|
84
85
|
"@internal/eslint-config": "0.3.0",
|
|
85
86
|
"@internal/tsconfig": "0.1.0",
|
|
86
87
|
"@internal/tsdown-config": "0.1.0",
|
|
87
|
-
"@internal/prettier-config": "0.0.1",
|
|
88
88
|
"@internal/vitest-config": "0.1.0"
|
|
89
89
|
},
|
|
90
90
|
"prettier": "@internal/prettier-config",
|