@murabei-data-science/pumpwood-ui 1.3.2 → 1.3.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/README.md +2 -2
- package/dist/components.d.ts +1 -1
- package/dist/components.esm.js +3 -3
- package/dist/components.js +5 -5
- package/dist/design-system.d.ts +3 -37
- package/dist/design-system.esm.js +5 -5
- package/dist/design-system.js +5 -5
- package/dist/index.css +1 -1
- package/dist/types/components/DownloadButton/index.d.ts +1 -1
- package/dist/types/components/MarkdownEditor/index.d.ts +1 -0
- package/dist/types/design-system/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/lib/markdown-editor-utils.d.ts +15 -0
- package/package.json +1 -1
- package/dist/index.d.ts +0 -1599
- package/dist/index.esm.js +0 -39
- package/dist/index.js +0 -40
- package/dist/types/components/M2MTable/index.d.ts +0 -35
- package/dist/types/design-system/M2MTable/index.d.ts +0 -35
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
import { type FKFetcherParams } from "../FKSelect";
|
|
3
|
-
export type M2MListFn = (modelClass: string, filterDict: Record<string, any>, fields: string[]) => Promise<[
|
|
4
|
-
Record<string, any>[] | null,
|
|
5
|
-
{
|
|
6
|
-
message?: string;
|
|
7
|
-
} | null
|
|
8
|
-
]>;
|
|
9
|
-
export declare const M2MCreateDialog: ({ open, onOpenChange, targetModelClass, relationName, handleCreateNew, mutate, fkFetcher, }: {
|
|
10
|
-
open: boolean;
|
|
11
|
-
onOpenChange: (open: boolean) => void;
|
|
12
|
-
targetModelClass: string;
|
|
13
|
-
relationName: string;
|
|
14
|
-
handleCreateNew: (id: string) => void;
|
|
15
|
-
mutate: () => void;
|
|
16
|
-
fkFetcher: (params: FKFetcherParams) => Promise<any[]>;
|
|
17
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
interface IM2MTableProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange"> {
|
|
19
|
-
modelClass: string;
|
|
20
|
-
targetModelClass: string;
|
|
21
|
-
filterDict: Record<string, any>;
|
|
22
|
-
targetField: string;
|
|
23
|
-
relationName: string;
|
|
24
|
-
displayFields: {
|
|
25
|
-
name: string;
|
|
26
|
-
field: string;
|
|
27
|
-
}[];
|
|
28
|
-
handleCreateNew: (id: string) => void;
|
|
29
|
-
handleDeleteItem: (id: string) => void;
|
|
30
|
-
fields: string[];
|
|
31
|
-
listFn: M2MListFn;
|
|
32
|
-
fkFetcher: (params: FKFetcherParams) => Promise<any[]>;
|
|
33
|
-
}
|
|
34
|
-
export declare const M2MTable: ({ modelClass, targetModelClass, targetField, filterDict, relationName, fields, displayFields, handleCreateNew, handleDeleteItem, listFn, fkFetcher, }: IM2MTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
-
import { type FKFetcherParams } from "@components/FKSelect";
|
|
3
|
-
export type M2MListFn = (modelClass: string, filterDict: Record<string, any>, fields: string[]) => Promise<[
|
|
4
|
-
Record<string, any>[] | null,
|
|
5
|
-
{
|
|
6
|
-
message?: string;
|
|
7
|
-
} | null
|
|
8
|
-
]>;
|
|
9
|
-
export declare const M2MCreateDialog: ({ open, onOpenChange, targetModelClass, relationName, handleCreateNew, mutate, fkFetcher, }: {
|
|
10
|
-
open: boolean;
|
|
11
|
-
onOpenChange: (open: boolean) => void;
|
|
12
|
-
targetModelClass: string;
|
|
13
|
-
relationName: string;
|
|
14
|
-
handleCreateNew: (id: string) => void;
|
|
15
|
-
mutate: () => void;
|
|
16
|
-
fkFetcher: (params: FKFetcherParams) => Promise<any[]>;
|
|
17
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
interface IM2MTableProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange"> {
|
|
19
|
-
modelClass: string;
|
|
20
|
-
targetModelClass: string;
|
|
21
|
-
filterDict: Record<string, any>;
|
|
22
|
-
targetField: string;
|
|
23
|
-
relationName: string;
|
|
24
|
-
displayFields: {
|
|
25
|
-
name: string;
|
|
26
|
-
field: string;
|
|
27
|
-
}[];
|
|
28
|
-
handleCreateNew: (id: string) => void;
|
|
29
|
-
handleDeleteItem: (id: string) => void;
|
|
30
|
-
fields: string[];
|
|
31
|
-
listFn: M2MListFn;
|
|
32
|
-
fkFetcher: (params: FKFetcherParams) => Promise<any[]>;
|
|
33
|
-
}
|
|
34
|
-
export declare const M2MTable: ({ modelClass, targetModelClass, targetField, filterDict, relationName, fields, displayFields, handleCreateNew, handleDeleteItem, listFn, fkFetcher, }: IM2MTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export {};
|