@arudovwen/form-builder-react 1.9.0 → 1.9.2
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/form-builder-react.css +1 -1
- package/dist/form-builder.es.js +1 -1
- package/dist/form-builder.umd.js +15 -15
- package/dist/{index-Dbs4pbfu.js → index-BCYTk5tZ.js} +2436 -2332
- package/dist/{logic-flow-COHVq_Px.js → logic-flow-CyfZlWt6.js} +1 -1
- package/package.json +1 -1
- package/types/components/elements/basic-text.d.ts +2 -1
- package/types/components/elements/data-lookup.d.ts +4 -0
- package/types/components/forms/dynamic-input.d.ts +2 -1
- package/types/components/forms/file-uploader.d.ts +2 -1
- package/types/utils/contants.d.ts +3 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as ce, jsx as D, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import ht, { memo as le, useState as xe, useCallback as we, forwardRef as Oo, useRef as ne, useEffect as ie, useContext as gt, createContext as fn, useMemo as be, useLayoutEffect as Aa } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
import { A as Ia } from "./index-
|
|
4
|
+
import { A as Ia } from "./index-BCYTk5tZ.js";
|
|
5
5
|
function ue(e) {
|
|
6
6
|
if (typeof e == "string" || typeof e == "number") return "" + e;
|
|
7
7
|
let t = "";
|
package/package.json
CHANGED
|
@@ -14,11 +14,12 @@ interface InputProps {
|
|
|
14
14
|
trigger?: any;
|
|
15
15
|
prefix?: string;
|
|
16
16
|
disabled?: boolean;
|
|
17
|
+
readOnly?: boolean;
|
|
17
18
|
watch?: any;
|
|
18
19
|
min?: number;
|
|
19
20
|
max?: number;
|
|
20
21
|
description?: string;
|
|
21
22
|
onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
22
23
|
}
|
|
23
|
-
export declare const DynamicInput: ({ label, name, register, errors, className, type, placeholder, isFloating, setValue, value, trigger, prefix, disabled, watch, min, max, description, onChange, }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const DynamicInput: ({ label, name, register, errors, className, type, placeholder, isFloating, setValue, value, trigger, prefix, disabled, watch, min, max, description, onChange, readOnly, }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
export {};
|
|
@@ -13,6 +13,7 @@ interface FileUploadProps {
|
|
|
13
13
|
value: string;
|
|
14
14
|
label: string;
|
|
15
15
|
}[];
|
|
16
|
+
maxFileSize?: number;
|
|
16
17
|
}
|
|
17
|
-
export default function FileUpload({ onFileLoaded, disabled, handleDeleteFile, multiple, list, accept, }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function FileUpload({ onFileLoaded, disabled, handleDeleteFile, multiple, list, accept, maxFileSize, }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
|
@@ -5,7 +5,7 @@ export declare enum ElementKind {
|
|
|
5
5
|
SELECT = "selectField",
|
|
6
6
|
CASCADE_SELECT = "cascadeSelect",
|
|
7
7
|
MULTI_SELECT = "multiSelect",
|
|
8
|
-
|
|
8
|
+
DATA_LOOKUP = "dataLookup",
|
|
9
9
|
NUMBER = "numberField",
|
|
10
10
|
AMOUNT = "amountField",
|
|
11
11
|
DATE = "date",
|
|
@@ -97,6 +97,7 @@ export interface ElementType {
|
|
|
97
97
|
requireAllChecked?: boolean;
|
|
98
98
|
isMultiple: boolean;
|
|
99
99
|
acceptedFiles: any[];
|
|
100
|
+
maxFileSize?: number;
|
|
100
101
|
showState?: boolean;
|
|
101
102
|
formula?: string;
|
|
102
103
|
fetchExternalResults?: boolean;
|
|
@@ -127,6 +128,7 @@ export declare const AllowTableOptions: string[];
|
|
|
127
128
|
export declare const AllowTextOptions: string[];
|
|
128
129
|
export declare const noAllowEdit: string[];
|
|
129
130
|
export declare const allowValue: string[];
|
|
131
|
+
export declare const AllowValueSource: string[];
|
|
130
132
|
export declare const FileTypes: {
|
|
131
133
|
value: string;
|
|
132
134
|
label: string;
|