@wordrhyme/auto-crud 0.4.2 → 0.4.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/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 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";
|
|
@@ -243,7 +243,7 @@ declare function AutoTableActionBar<TData>({
|
|
|
243
243
|
enableExport,
|
|
244
244
|
enableDelete,
|
|
245
245
|
extraActions
|
|
246
|
-
}: AutoTableActionBarProps<TData>):
|
|
246
|
+
}: AutoTableActionBarProps<TData>): react_jsx_runtime11.JSX.Element;
|
|
247
247
|
//#endregion
|
|
248
248
|
//#region src/lib/schema-bridge/types.d.ts
|
|
249
249
|
/**
|
|
@@ -386,7 +386,7 @@ declare function AutoTable<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
386
386
|
actionBarExtra,
|
|
387
387
|
initialSorting,
|
|
388
388
|
enableExport
|
|
389
|
-
}: AutoTableProps<T>):
|
|
389
|
+
}: AutoTableProps<T>): react_jsx_runtime11.JSX.Element;
|
|
390
390
|
//#endregion
|
|
391
391
|
//#region src/components/auto-crud/auto-crud-table.d.ts
|
|
392
392
|
/**
|
|
@@ -513,7 +513,7 @@ declare function AutoCrudTable<TSchema extends z.ZodObject<z.ZodRawShape>>({
|
|
|
513
513
|
form: formConfig,
|
|
514
514
|
slots,
|
|
515
515
|
permissions
|
|
516
|
-
}: AutoCrudTableProps<TSchema>):
|
|
516
|
+
}: AutoCrudTableProps<TSchema>): react_jsx_runtime11.JSX.Element;
|
|
517
517
|
//#endregion
|
|
518
518
|
//#region src/components/auto-crud/auto-form.d.ts
|
|
519
519
|
interface AutoFormProps<T extends z.ZodObject<z.ZodRawShape>> {
|
|
@@ -545,7 +545,7 @@ declare function AutoFormInner<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
545
545
|
labelAlign,
|
|
546
546
|
labelWidth,
|
|
547
547
|
showSubmitButton
|
|
548
|
-
}: AutoFormProps<T>, ref: React.Ref<AutoFormRef>):
|
|
548
|
+
}: AutoFormProps<T>, ref: React.Ref<AutoFormRef>): react_jsx_runtime11.JSX.Element;
|
|
549
549
|
declare const AutoForm: <T extends z.ZodObject<z.ZodRawShape>>(props: AutoFormProps<T> & {
|
|
550
550
|
ref?: React.Ref<AutoFormRef>;
|
|
551
551
|
}) => ReturnType<typeof AutoFormInner>;
|
|
@@ -840,7 +840,7 @@ declare function AutoTableSimpleFilters<TData>({
|
|
|
840
840
|
shallow,
|
|
841
841
|
filters: externalFilters,
|
|
842
842
|
onFiltersChange
|
|
843
|
-
}: AutoTableSimpleFiltersProps<TData>):
|
|
843
|
+
}: AutoTableSimpleFiltersProps<TData>): react_jsx_runtime11.JSX.Element | null;
|
|
844
844
|
//#endregion
|
|
845
845
|
//#region src/components/auto-crud/form-modal.d.ts
|
|
846
846
|
type ModalVariant = "dialog" | "sheet";
|
|
@@ -875,7 +875,7 @@ declare function CrudFormModal<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
875
875
|
title,
|
|
876
876
|
labelAlign,
|
|
877
877
|
labelWidth
|
|
878
|
-
}: CrudFormModalProps<T>):
|
|
878
|
+
}: CrudFormModalProps<T>): react_jsx_runtime11.JSX.Element;
|
|
879
879
|
//#endregion
|
|
880
880
|
//#region src/components/data-table/data-table.d.ts
|
|
881
881
|
interface DataTableProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -888,7 +888,7 @@ declare function DataTable<TData>({
|
|
|
888
888
|
children,
|
|
889
889
|
className,
|
|
890
890
|
...props
|
|
891
|
-
}: DataTableProps<TData>):
|
|
891
|
+
}: DataTableProps<TData>): react_jsx_runtime11.JSX.Element;
|
|
892
892
|
//#endregion
|
|
893
893
|
//#region src/components/data-table/data-table-advanced-toolbar.d.ts
|
|
894
894
|
interface DataTableAdvancedToolbarProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -899,7 +899,7 @@ declare function DataTableAdvancedToolbar<TData>({
|
|
|
899
899
|
children,
|
|
900
900
|
className,
|
|
901
901
|
...props
|
|
902
|
-
}: DataTableAdvancedToolbarProps<TData>):
|
|
902
|
+
}: DataTableAdvancedToolbarProps<TData>): react_jsx_runtime11.JSX.Element;
|
|
903
903
|
//#endregion
|
|
904
904
|
//#region src/components/data-table/data-table-column-header.d.ts
|
|
905
905
|
interface DataTableColumnHeaderProps<TData, TValue> extends React.ComponentProps<typeof DropdownMenuTrigger> {
|
|
@@ -911,7 +911,7 @@ declare function DataTableColumnHeader<TData, TValue>({
|
|
|
911
911
|
label,
|
|
912
912
|
className,
|
|
913
913
|
...props
|
|
914
|
-
}: DataTableColumnHeaderProps<TData, TValue>):
|
|
914
|
+
}: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime11.JSX.Element;
|
|
915
915
|
//#endregion
|
|
916
916
|
//#region src/components/data-table/data-table-faceted-filter.d.ts
|
|
917
917
|
interface DataTableFacetedFilterProps<TData, TValue> {
|
|
@@ -925,7 +925,7 @@ declare function DataTableFacetedFilter<TData, TValue>({
|
|
|
925
925
|
title,
|
|
926
926
|
options,
|
|
927
927
|
multiple
|
|
928
|
-
}: DataTableFacetedFilterProps<TData, TValue>):
|
|
928
|
+
}: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime11.JSX.Element;
|
|
929
929
|
//#endregion
|
|
930
930
|
//#region src/components/data-table/data-table-pagination.d.ts
|
|
931
931
|
interface DataTablePaginationProps<TData> extends React.ComponentProps<"div"> {
|
|
@@ -937,7 +937,7 @@ declare function DataTablePagination<TData>({
|
|
|
937
937
|
pageSizeOptions,
|
|
938
938
|
className,
|
|
939
939
|
...props
|
|
940
|
-
}: DataTablePaginationProps<TData>):
|
|
940
|
+
}: DataTablePaginationProps<TData>): react_jsx_runtime11.JSX.Element;
|
|
941
941
|
//#endregion
|
|
942
942
|
//#region src/components/data-table/data-table-toolbar.d.ts
|
|
943
943
|
interface DataTableToolbarProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -948,7 +948,7 @@ declare function DataTableToolbar<TData>({
|
|
|
948
948
|
children,
|
|
949
949
|
className,
|
|
950
950
|
...props
|
|
951
|
-
}: DataTableToolbarProps<TData>):
|
|
951
|
+
}: DataTableToolbarProps<TData>): react_jsx_runtime11.JSX.Element;
|
|
952
952
|
//#endregion
|
|
953
953
|
//#region src/components/data-table/data-table-view-options.d.ts
|
|
954
954
|
interface DataTableViewOptionsProps<TData> extends React$1.ComponentProps<typeof PopoverContent> {
|
|
@@ -959,7 +959,7 @@ declare function DataTableViewOptions<TData>({
|
|
|
959
959
|
table,
|
|
960
960
|
disabled,
|
|
961
961
|
...props
|
|
962
|
-
}: DataTableViewOptionsProps<TData>):
|
|
962
|
+
}: DataTableViewOptionsProps<TData>): react_jsx_runtime11.JSX.Element;
|
|
963
963
|
//#endregion
|
|
964
964
|
//#region src/hooks/use-data-table.d.ts
|
|
965
965
|
interface UseDataTableProps<TData> extends Omit<TableOptions<TData>, "state" | "pageCount" | "getCoreRowModel" | "manualFiltering" | "manualPagination" | "manualSorting">, Required<Pick<TableOptions<TData>, "pageCount">> {
|
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_runtime2 from "react/jsx-runtime";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { ISchema } from "@formily/json-schema";
|
|
9
9
|
|
|
@@ -243,7 +243,7 @@ declare function AutoTableActionBar<TData>({
|
|
|
243
243
|
enableExport,
|
|
244
244
|
enableDelete,
|
|
245
245
|
extraActions
|
|
246
|
-
}: AutoTableActionBarProps<TData>):
|
|
246
|
+
}: AutoTableActionBarProps<TData>): react_jsx_runtime2.JSX.Element;
|
|
247
247
|
//#endregion
|
|
248
248
|
//#region src/lib/schema-bridge/types.d.ts
|
|
249
249
|
/**
|
|
@@ -386,7 +386,7 @@ declare function AutoTable<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
386
386
|
actionBarExtra,
|
|
387
387
|
initialSorting,
|
|
388
388
|
enableExport
|
|
389
|
-
}: AutoTableProps<T>):
|
|
389
|
+
}: AutoTableProps<T>): react_jsx_runtime2.JSX.Element;
|
|
390
390
|
//#endregion
|
|
391
391
|
//#region src/components/auto-crud/auto-crud-table.d.ts
|
|
392
392
|
/**
|
|
@@ -513,7 +513,7 @@ declare function AutoCrudTable<TSchema extends z.ZodObject<z.ZodRawShape>>({
|
|
|
513
513
|
form: formConfig,
|
|
514
514
|
slots,
|
|
515
515
|
permissions
|
|
516
|
-
}: AutoCrudTableProps<TSchema>):
|
|
516
|
+
}: AutoCrudTableProps<TSchema>): react_jsx_runtime2.JSX.Element;
|
|
517
517
|
//#endregion
|
|
518
518
|
//#region src/components/auto-crud/auto-form.d.ts
|
|
519
519
|
interface AutoFormProps<T extends z.ZodObject<z.ZodRawShape>> {
|
|
@@ -545,7 +545,7 @@ declare function AutoFormInner<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
545
545
|
labelAlign,
|
|
546
546
|
labelWidth,
|
|
547
547
|
showSubmitButton
|
|
548
|
-
}: AutoFormProps<T>, ref: React.Ref<AutoFormRef>):
|
|
548
|
+
}: AutoFormProps<T>, ref: React.Ref<AutoFormRef>): react_jsx_runtime2.JSX.Element;
|
|
549
549
|
declare const AutoForm: <T extends z.ZodObject<z.ZodRawShape>>(props: AutoFormProps<T> & {
|
|
550
550
|
ref?: React.Ref<AutoFormRef>;
|
|
551
551
|
}) => ReturnType<typeof AutoFormInner>;
|
|
@@ -840,7 +840,7 @@ declare function AutoTableSimpleFilters<TData>({
|
|
|
840
840
|
shallow,
|
|
841
841
|
filters: externalFilters,
|
|
842
842
|
onFiltersChange
|
|
843
|
-
}: AutoTableSimpleFiltersProps<TData>):
|
|
843
|
+
}: AutoTableSimpleFiltersProps<TData>): react_jsx_runtime2.JSX.Element | null;
|
|
844
844
|
//#endregion
|
|
845
845
|
//#region src/components/auto-crud/form-modal.d.ts
|
|
846
846
|
type ModalVariant = "dialog" | "sheet";
|
|
@@ -875,7 +875,7 @@ declare function CrudFormModal<T extends z.ZodObject<z.ZodRawShape>>({
|
|
|
875
875
|
title,
|
|
876
876
|
labelAlign,
|
|
877
877
|
labelWidth
|
|
878
|
-
}: CrudFormModalProps<T>):
|
|
878
|
+
}: CrudFormModalProps<T>): react_jsx_runtime2.JSX.Element;
|
|
879
879
|
//#endregion
|
|
880
880
|
//#region src/components/data-table/data-table.d.ts
|
|
881
881
|
interface DataTableProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -888,7 +888,7 @@ declare function DataTable<TData>({
|
|
|
888
888
|
children,
|
|
889
889
|
className,
|
|
890
890
|
...props
|
|
891
|
-
}: DataTableProps<TData>):
|
|
891
|
+
}: DataTableProps<TData>): react_jsx_runtime2.JSX.Element;
|
|
892
892
|
//#endregion
|
|
893
893
|
//#region src/components/data-table/data-table-advanced-toolbar.d.ts
|
|
894
894
|
interface DataTableAdvancedToolbarProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -899,7 +899,7 @@ declare function DataTableAdvancedToolbar<TData>({
|
|
|
899
899
|
children,
|
|
900
900
|
className,
|
|
901
901
|
...props
|
|
902
|
-
}: DataTableAdvancedToolbarProps<TData>):
|
|
902
|
+
}: DataTableAdvancedToolbarProps<TData>): react_jsx_runtime2.JSX.Element;
|
|
903
903
|
//#endregion
|
|
904
904
|
//#region src/components/data-table/data-table-column-header.d.ts
|
|
905
905
|
interface DataTableColumnHeaderProps<TData, TValue> extends React.ComponentProps<typeof DropdownMenuTrigger> {
|
|
@@ -911,7 +911,7 @@ declare function DataTableColumnHeader<TData, TValue>({
|
|
|
911
911
|
label,
|
|
912
912
|
className,
|
|
913
913
|
...props
|
|
914
|
-
}: DataTableColumnHeaderProps<TData, TValue>):
|
|
914
|
+
}: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime2.JSX.Element;
|
|
915
915
|
//#endregion
|
|
916
916
|
//#region src/components/data-table/data-table-faceted-filter.d.ts
|
|
917
917
|
interface DataTableFacetedFilterProps<TData, TValue> {
|
|
@@ -925,7 +925,7 @@ declare function DataTableFacetedFilter<TData, TValue>({
|
|
|
925
925
|
title,
|
|
926
926
|
options,
|
|
927
927
|
multiple
|
|
928
|
-
}: DataTableFacetedFilterProps<TData, TValue>):
|
|
928
|
+
}: DataTableFacetedFilterProps<TData, TValue>): react_jsx_runtime2.JSX.Element;
|
|
929
929
|
//#endregion
|
|
930
930
|
//#region src/components/data-table/data-table-pagination.d.ts
|
|
931
931
|
interface DataTablePaginationProps<TData> extends React.ComponentProps<"div"> {
|
|
@@ -937,7 +937,7 @@ declare function DataTablePagination<TData>({
|
|
|
937
937
|
pageSizeOptions,
|
|
938
938
|
className,
|
|
939
939
|
...props
|
|
940
|
-
}: DataTablePaginationProps<TData>):
|
|
940
|
+
}: DataTablePaginationProps<TData>): react_jsx_runtime2.JSX.Element;
|
|
941
941
|
//#endregion
|
|
942
942
|
//#region src/components/data-table/data-table-toolbar.d.ts
|
|
943
943
|
interface DataTableToolbarProps<TData> extends React$1.ComponentProps<"div"> {
|
|
@@ -948,7 +948,7 @@ declare function DataTableToolbar<TData>({
|
|
|
948
948
|
children,
|
|
949
949
|
className,
|
|
950
950
|
...props
|
|
951
|
-
}: DataTableToolbarProps<TData>):
|
|
951
|
+
}: DataTableToolbarProps<TData>): react_jsx_runtime2.JSX.Element;
|
|
952
952
|
//#endregion
|
|
953
953
|
//#region src/components/data-table/data-table-view-options.d.ts
|
|
954
954
|
interface DataTableViewOptionsProps<TData> extends React$1.ComponentProps<typeof PopoverContent> {
|
|
@@ -959,7 +959,7 @@ declare function DataTableViewOptions<TData>({
|
|
|
959
959
|
table,
|
|
960
960
|
disabled,
|
|
961
961
|
...props
|
|
962
|
-
}: DataTableViewOptionsProps<TData>):
|
|
962
|
+
}: DataTableViewOptionsProps<TData>): react_jsx_runtime2.JSX.Element;
|
|
963
963
|
//#endregion
|
|
964
964
|
//#region src/hooks/use-data-table.d.ts
|
|
965
965
|
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": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"packageManager": "pnpm@10.25.0",
|
|
6
6
|
"description": "Schema-first CRUD components with auto-generated tables and forms",
|
|
7
7
|
"author": "wordrhyme",
|
|
@@ -103,4 +103,4 @@
|
|
|
103
103
|
"typescript": "catalog:dev"
|
|
104
104
|
},
|
|
105
105
|
"prettier": "@internal/prettier-config"
|
|
106
|
-
}
|
|
106
|
+
}
|