@arudovwen/form-builder-react 1.4.9 → 1.4.10
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/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
export interface AnswerElement {
|
|
3
|
-
id: string;
|
|
4
|
-
value: any;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export type RenderType = "multi" | "single";
|
|
8
|
-
export interface FormRendererProps {
|
|
9
|
-
form_data: any[];
|
|
10
|
-
answerData?: any[];
|
|
11
|
-
ignoreValidation?: boolean;
|
|
12
|
-
onSubmitData?: (data: any[]) => void;
|
|
13
|
-
onGetValues?: (data: any[]) => void;
|
|
14
|
-
isReadOnly?: boolean;
|
|
15
|
-
renderType?: RenderType;
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
hideFooter?: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare const _default: React.NamedExoticComponent<FormRendererProps>;
|
|
20
|
-
export default _default;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export interface AnswerElement {
|
|
3
|
+
id: string;
|
|
4
|
+
value: any;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export type RenderType = "multi" | "single";
|
|
8
|
+
export interface FormRendererProps {
|
|
9
|
+
form_data: any[];
|
|
10
|
+
answerData?: any[];
|
|
11
|
+
ignoreValidation?: boolean;
|
|
12
|
+
onSubmitData?: (data: any[]) => void;
|
|
13
|
+
onGetValues?: (data: any[]) => void;
|
|
14
|
+
isReadOnly?: boolean;
|
|
15
|
+
renderType?: RenderType;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
hideFooter?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: React.NamedExoticComponent<FormRendererProps>;
|
|
20
|
+
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
export interface RenderProps {
|
|
3
|
-
onSubmit?: (e: any) => void;
|
|
4
|
-
answerData?: any;
|
|
5
|
-
isReadOnly?: boolean;
|
|
6
|
-
form_data?: any;
|
|
7
|
-
ignoreValidation?: boolean;
|
|
8
|
-
loading?: boolean;
|
|
9
|
-
config?: any;
|
|
10
|
-
renderType?: "multi" | "single";
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
hideFooter?: boolean;
|
|
13
|
-
onGetValues?: (e: any) => void;
|
|
14
|
-
}
|
|
15
|
-
export default function Viewer({ answerData, form_data, ignoreValidation, onSubmit, isReadOnly, loading, config, renderType, children, hideFooter, onGetValues, }: RenderProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface RenderProps {
|
|
3
|
+
onSubmit?: (e: any) => void;
|
|
4
|
+
answerData?: any;
|
|
5
|
+
isReadOnly?: boolean;
|
|
6
|
+
form_data?: any;
|
|
7
|
+
ignoreValidation?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
config?: any;
|
|
10
|
+
renderType?: "multi" | "single";
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
hideFooter?: boolean;
|
|
13
|
+
onGetValues?: (e: any) => void;
|
|
14
|
+
}
|
|
15
|
+
export default function Viewer({ answerData, form_data, ignoreValidation, onSubmit, isReadOnly, loading, config, renderType, children, hideFooter, onGetValues, }: RenderProps): import("react/jsx-runtime").JSX.Element;
|