@acvl/frontend-components 0.0.26 → 0.0.28
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/cjs/index.js +92 -62
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/forms/utils.d.ts +2 -2
- package/dist/cjs/types/src/components/v1/layout/pages/DetailPage/FieldArrayField/index.d.ts +5 -3
- package/dist/esm/index.js +93 -63
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/forms/utils.d.ts +2 -2
- package/dist/esm/types/src/components/v1/layout/pages/DetailPage/FieldArrayField/index.d.ts +5 -3
- package/dist/index.d.ts +6 -4
- package/package.json +1 -1
|
@@ -13,6 +13,6 @@ export interface JSONFormProps {
|
|
|
13
13
|
useLabel?: boolean;
|
|
14
14
|
props?: JSONParserProps;
|
|
15
15
|
}
|
|
16
|
-
export declare const jsonForm: ({ submitData, data, useLabel, props }: JSONFormProps) => any;
|
|
17
|
-
export declare const formDataForm: ({ submitData, data, useLabel, props }: JSONFormProps) => FormData;
|
|
16
|
+
export declare const jsonForm: ({ submitData, data, useLabel, props, }: JSONFormProps) => any;
|
|
17
|
+
export declare const formDataForm: ({ submitData, data, useLabel, props, }: JSONFormProps) => FormData;
|
|
18
18
|
export declare const setErrors: (form: any, error: any) => void;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { DataGridProps } from "@mui/x-data-grid";
|
|
2
2
|
import { GridProps } from "@mui/material";
|
|
3
|
-
import { FieldProps } from "../Field";
|
|
4
3
|
import { PageType } from "../../../../types";
|
|
4
|
+
import { JSONParserProps } from "../../../../forms";
|
|
5
5
|
declare module "@mui/x-data-grid" {
|
|
6
6
|
interface ToolbarPropsOverrides {
|
|
7
|
-
selected: number;
|
|
8
7
|
handleCreate: () => void;
|
|
9
8
|
handleDelete: () => void;
|
|
10
9
|
pageType: PageType;
|
|
@@ -13,11 +12,14 @@ declare module "@mui/x-data-grid" {
|
|
|
13
12
|
export interface ArrayFieldProps {
|
|
14
13
|
name: string;
|
|
15
14
|
label: string;
|
|
15
|
+
defaultValues: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
16
18
|
form?: any;
|
|
17
|
-
fields: FieldProps[];
|
|
18
19
|
dataGridProps: DataGridProps;
|
|
19
20
|
gridProps?: GridProps;
|
|
20
21
|
pageType?: PageType;
|
|
22
|
+
parser?: JSONParserProps;
|
|
21
23
|
}
|
|
22
24
|
declare const FieldArrayField: (props: ArrayFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
25
|
export default FieldArrayField;
|
package/dist/index.d.ts
CHANGED
|
@@ -167,8 +167,8 @@ interface JSONFormProps {
|
|
|
167
167
|
useLabel?: boolean;
|
|
168
168
|
props?: JSONParserProps;
|
|
169
169
|
}
|
|
170
|
-
declare const jsonForm: ({ submitData, data, useLabel, props }: JSONFormProps) => any;
|
|
171
|
-
declare const formDataForm: ({ submitData, data, useLabel, props }: JSONFormProps) => FormData;
|
|
170
|
+
declare const jsonForm: ({ submitData, data, useLabel, props, }: JSONFormProps) => any;
|
|
171
|
+
declare const formDataForm: ({ submitData, data, useLabel, props, }: JSONFormProps) => FormData;
|
|
172
172
|
declare const setErrors: (form: any, error: any) => void;
|
|
173
173
|
|
|
174
174
|
declare const valueLabel: zod.ZodObject<{
|
|
@@ -537,7 +537,6 @@ interface FieldProps {
|
|
|
537
537
|
|
|
538
538
|
declare module "@mui/x-data-grid" {
|
|
539
539
|
interface ToolbarPropsOverrides {
|
|
540
|
-
selected: number;
|
|
541
540
|
handleCreate: () => void;
|
|
542
541
|
handleDelete: () => void;
|
|
543
542
|
pageType: PageType;
|
|
@@ -546,11 +545,14 @@ declare module "@mui/x-data-grid" {
|
|
|
546
545
|
interface ArrayFieldProps {
|
|
547
546
|
name: string;
|
|
548
547
|
label: string;
|
|
548
|
+
defaultValues: {
|
|
549
|
+
[key: string]: any;
|
|
550
|
+
};
|
|
549
551
|
form?: any;
|
|
550
|
-
fields: FieldProps[];
|
|
551
552
|
dataGridProps: DataGridProps$1;
|
|
552
553
|
gridProps?: GridProps;
|
|
553
554
|
pageType?: PageType;
|
|
555
|
+
parser?: JSONParserProps;
|
|
554
556
|
}
|
|
555
557
|
|
|
556
558
|
interface SectionProps {
|
package/package.json
CHANGED