extended-dynamic-forms 0.2.1 → 0.3.0
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 +387 -1392
- package/dist/events/FormEventContext.d.ts +3 -0
- package/dist/index.es.js +22516 -14517
- package/dist/index.umd.js +63 -36
- package/dist/style.css +1 -1
- package/dist/widgets/base/index.d.ts +2 -0
- package/dist/widgets/base/types.d.ts +135 -0
- package/dist/widgets/base/utils.d.ts +63 -0
- package/dist/widgets/choice/ChoiceWidget.d.ts +30 -0
- package/dist/widgets/choice/ChoiceWidget.types.d.ts +496 -0
- package/dist/widgets/choice/examples/ChoiceWidget.example.d.ts +7 -0
- package/dist/widgets/choice/hooks/__tests__/useChoiceWidget.test.d.ts +1 -0
- package/dist/widgets/choice/hooks/__tests__/useDataSource.test.d.ts +1 -0
- package/dist/widgets/choice/hooks/examples/useChoiceWidget.example.d.ts +18 -0
- package/dist/widgets/choice/hooks/examples/useDataSourceExample.d.ts +22 -0
- package/dist/widgets/choice/hooks/index.d.ts +6 -0
- package/dist/widgets/choice/hooks/useChoiceWidget.d.ts +65 -0
- package/dist/widgets/choice/hooks/useDataSource.d.ts +69 -0
- package/dist/widgets/choice/index.d.ts +59 -0
- package/dist/widgets/choice/presenters/CheckboxPresenter.d.ts +70 -0
- package/dist/widgets/choice/presenters/DropdownPresenter.d.ts +37 -0
- package/dist/widgets/choice/presenters/PresenterStrategy.d.ts +230 -0
- package/dist/widgets/choice/presenters/RadioPresenter.d.ts +39 -0
- package/dist/widgets/choice/presenters/examples/RadioPresenterExample.d.ts +7 -0
- package/dist/widgets/choice/presenters/index.d.ts +20 -0
- package/dist/widgets/choice/providers/ApiDataSource.d.ts +241 -0
- package/dist/widgets/choice/providers/DataSourceProvider.d.ts +260 -0
- package/dist/widgets/choice/providers/StaticDataSource.d.ts +258 -0
- package/dist/widgets/choice/providers/WebSocketDataSource.d.ts +310 -0
- package/dist/widgets/choice/providers/index.d.ts +12 -0
- package/dist/widgets/choice/utils/index.d.ts +1 -0
- package/dist/widgets/choice/utils/responseMappers.d.ts +342 -0
- package/dist/widgets/date/DateTimeWidget.d.ts +26 -0
- package/dist/widgets/date/EnhancedDateWidget.d.ts +26 -0
- package/dist/widgets/date/index.d.ts +13 -0
- package/dist/widgets/file/FileUploadWidget.d.ts +40 -0
- package/dist/widgets/file/index.d.ts +2 -0
- package/dist/widgets/index.d.ts +33 -17
- package/dist/widgets/input/EmailWidget.d.ts +34 -0
- package/dist/widgets/input/NumberWidget.d.ts +39 -0
- package/dist/widgets/input/TelephoneWidget.d.ts +34 -0
- package/dist/widgets/input/URLWidget.d.ts +34 -0
- package/dist/widgets/input/index.d.ts +7 -0
- package/dist/widgets/text/PasswordWidget.d.ts +45 -0
- package/dist/widgets/text/TextWidget.d.ts +40 -0
- package/dist/widgets/text/TextareaWidget.d.ts +38 -0
- package/dist/widgets/text/index.d.ts +20 -0
- package/package.json +5 -5
- package/dist/vanilla-entry.d.ts +0 -232
- package/dist/widgets/enhanced/EnhancedWidgets.d.ts +0 -37
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Password Widget with full Ant Design Input.Password support
|
|
6
|
+
*
|
|
7
|
+
* Uses Ant Design's Input.Password component which provides:
|
|
8
|
+
* - Password visibility toggle button
|
|
9
|
+
* - Secure password input
|
|
10
|
+
* - All standard Input properties
|
|
11
|
+
*
|
|
12
|
+
* Supports all Ant Design Input properties through uiSchema options:
|
|
13
|
+
* - size: 'small' | 'middle' | 'large'
|
|
14
|
+
* - placeholder: string
|
|
15
|
+
* - prefix: ReactNode
|
|
16
|
+
* - allowClear: boolean
|
|
17
|
+
* - bordered: boolean
|
|
18
|
+
* - maxLength: number
|
|
19
|
+
* - showCount: boolean
|
|
20
|
+
* - addonBefore: ReactNode
|
|
21
|
+
* - addonAfter: ReactNode
|
|
22
|
+
* - visibilityToggle: boolean | { visible?: boolean, onVisibleChange?: (visible: boolean) => void }
|
|
23
|
+
* - iconRender: (visible: boolean) => ReactNode
|
|
24
|
+
* - status: 'error' | 'warning'
|
|
25
|
+
* - style: CSSProperties
|
|
26
|
+
* - className: string
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* // In uiSchema
|
|
30
|
+
* {
|
|
31
|
+
* "password": {
|
|
32
|
+
* "ui:widget": "password",
|
|
33
|
+
* "ui:options": {
|
|
34
|
+
* "placeholder": "Enter your password",
|
|
35
|
+
* "allowClear": true,
|
|
36
|
+
* "maxLength": 50,
|
|
37
|
+
* "visibilityToggle": true,
|
|
38
|
+
* "prefix": <LockOutlined />
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
*/
|
|
43
|
+
declare const PasswordWidget: FC<WidgetProps>;
|
|
44
|
+
export default PasswordWidget;
|
|
45
|
+
export { PasswordWidget };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Enhanced Text Widget with full Ant Design Input support
|
|
6
|
+
*
|
|
7
|
+
* Supports all Ant Design Input properties through uiSchema options:
|
|
8
|
+
* - size: 'small' | 'middle' | 'large'
|
|
9
|
+
* - placeholder: string
|
|
10
|
+
* - prefix: ReactNode
|
|
11
|
+
* - suffix: ReactNode
|
|
12
|
+
* - allowClear: boolean
|
|
13
|
+
* - bordered: boolean
|
|
14
|
+
* - maxLength: number
|
|
15
|
+
* - showCount: boolean
|
|
16
|
+
* - addonBefore: ReactNode
|
|
17
|
+
* - addonAfter: ReactNode
|
|
18
|
+
* - status: 'error' | 'warning'
|
|
19
|
+
* - style: CSSProperties
|
|
20
|
+
* - className: string
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // In uiSchema
|
|
24
|
+
* {
|
|
25
|
+
* "myField": {
|
|
26
|
+
* "ui:widget": "text",
|
|
27
|
+
* "ui:options": {
|
|
28
|
+
* "placeholder": "Enter text here",
|
|
29
|
+
* "allowClear": true,
|
|
30
|
+
* "showCount": true,
|
|
31
|
+
* "maxLength": 100,
|
|
32
|
+
* "prefix": <UserOutlined />,
|
|
33
|
+
* "addonAfter": ".com"
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
*/
|
|
38
|
+
declare const TextWidget: FC<WidgetProps>;
|
|
39
|
+
export default TextWidget;
|
|
40
|
+
export { TextWidget };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Enhanced Textarea Widget with full Ant Design TextArea support
|
|
6
|
+
*
|
|
7
|
+
* Supports all Ant Design TextArea properties through uiSchema options:
|
|
8
|
+
* - rows: number (default: 4)
|
|
9
|
+
* - autoSize: boolean | { minRows: number, maxRows: number }
|
|
10
|
+
* - size: 'small' | 'middle' | 'large'
|
|
11
|
+
* - placeholder: string
|
|
12
|
+
* - allowClear: boolean
|
|
13
|
+
* - bordered: boolean
|
|
14
|
+
* - maxLength: number
|
|
15
|
+
* - showCount: boolean | { formatter: (info: { count: number, maxLength?: number }) => string }
|
|
16
|
+
* - status: 'error' | 'warning'
|
|
17
|
+
* - style: CSSProperties
|
|
18
|
+
* - className: string
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // In uiSchema
|
|
22
|
+
* {
|
|
23
|
+
* "myField": {
|
|
24
|
+
* "ui:widget": "textarea",
|
|
25
|
+
* "ui:options": {
|
|
26
|
+
* "rows": 6,
|
|
27
|
+
* "autoSize": { "minRows": 3, "maxRows": 10 },
|
|
28
|
+
* "placeholder": "Enter detailed description",
|
|
29
|
+
* "allowClear": true,
|
|
30
|
+
* "showCount": true,
|
|
31
|
+
* "maxLength": 500
|
|
32
|
+
* }
|
|
33
|
+
* }
|
|
34
|
+
* }
|
|
35
|
+
*/
|
|
36
|
+
declare const TextareaWidget: FC<WidgetProps>;
|
|
37
|
+
export default TextareaWidget;
|
|
38
|
+
export { TextareaWidget };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text-based widgets for extended-dynamic-forms
|
|
3
|
+
*
|
|
4
|
+
* This module exports text input widgets that provide enhanced functionality
|
|
5
|
+
* over standard RJSF widgets by leveraging Ant Design components.
|
|
6
|
+
*/
|
|
7
|
+
export { default as TextWidget } from './TextWidget';
|
|
8
|
+
export * from './TextWidget';
|
|
9
|
+
export { default as TextareaWidget } from './TextareaWidget';
|
|
10
|
+
export * from './TextareaWidget';
|
|
11
|
+
export { default as PasswordWidget } from './PasswordWidget';
|
|
12
|
+
export * from './PasswordWidget';
|
|
13
|
+
export declare const textWidgets: {
|
|
14
|
+
text: () => Promise<import('react').FC<import('@rjsf/utils').WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>>;
|
|
15
|
+
TextWidget: () => Promise<import('react').FC<import('@rjsf/utils').WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>>;
|
|
16
|
+
textarea: () => Promise<import('react').FC<import('@rjsf/utils').WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>>;
|
|
17
|
+
TextareaWidget: () => Promise<import('react').FC<import('@rjsf/utils').WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>>;
|
|
18
|
+
password: () => Promise<import('react').FC<import('@rjsf/utils').WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>>;
|
|
19
|
+
PasswordWidget: () => Promise<import('react').FC<import('@rjsf/utils').WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>>;
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extended-dynamic-forms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Extended React JSON Schema Form (RJSF) v6 with custom components, widgets, templates, layouts, and form events",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@rjsf/antd": "
|
|
73
|
-
"@rjsf/core": "
|
|
74
|
-
"@rjsf/utils": "
|
|
75
|
-
"@rjsf/validator-ajv8": "
|
|
72
|
+
"@rjsf/antd": "6.0.0-beta.13",
|
|
73
|
+
"@rjsf/core": "6.0.0-beta.13",
|
|
74
|
+
"@rjsf/utils": "6.0.0-beta.13",
|
|
75
|
+
"@rjsf/validator-ajv8": "6.0.0-beta.13",
|
|
76
76
|
"@testing-library/dom": "^10.4.0",
|
|
77
77
|
"@testing-library/jest-dom": "^6.6.3",
|
|
78
78
|
"@testing-library/react": "^16.3.0",
|
package/dist/vanilla-entry.d.ts
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { default as ReactDOM } from 'react-dom/client';
|
|
3
|
-
import { default as dayjs } from 'dayjs';
|
|
4
|
-
import { default as jsonLogic } from 'json-logic-js';
|
|
5
|
-
|
|
6
|
-
import * as antd from 'antd';
|
|
7
|
-
import * as ExtendedDynamicFormsExports from './index';
|
|
8
|
-
declare function createForm(config: {
|
|
9
|
-
container: string | HTMLElement;
|
|
10
|
-
schema: any;
|
|
11
|
-
uiSchema?: any;
|
|
12
|
-
formData?: any;
|
|
13
|
-
onChange?: (data: any) => void;
|
|
14
|
-
onSubmit?: (data: any) => void;
|
|
15
|
-
onError?: (errors: any) => void;
|
|
16
|
-
webhooks?: any;
|
|
17
|
-
widgets?: any;
|
|
18
|
-
fields?: any;
|
|
19
|
-
}): {
|
|
20
|
-
setFormData: (data: any) => void;
|
|
21
|
-
destroy: () => void;
|
|
22
|
-
};
|
|
23
|
-
declare function createWizardForm(config: {
|
|
24
|
-
container: string | HTMLElement;
|
|
25
|
-
schema: any;
|
|
26
|
-
uiSchema?: any;
|
|
27
|
-
formData?: any;
|
|
28
|
-
onStepChange?: (step: number, data: any) => void;
|
|
29
|
-
onSubmit?: (data: any) => void;
|
|
30
|
-
webhooks?: any;
|
|
31
|
-
}): {
|
|
32
|
-
destroy: () => void;
|
|
33
|
-
};
|
|
34
|
-
declare const ExtendedDynamicForms: {
|
|
35
|
-
utils: {
|
|
36
|
-
createSchema: (properties: any) => {
|
|
37
|
-
type: string;
|
|
38
|
-
properties: any;
|
|
39
|
-
required: string[];
|
|
40
|
-
};
|
|
41
|
-
createUiSchema: (fields: any) => any;
|
|
42
|
-
widgets: {
|
|
43
|
-
text: string;
|
|
44
|
-
textarea: string;
|
|
45
|
-
select: string;
|
|
46
|
-
checkbox: string;
|
|
47
|
-
radio: string;
|
|
48
|
-
date: string;
|
|
49
|
-
datetime: string;
|
|
50
|
-
email: string;
|
|
51
|
-
password: string;
|
|
52
|
-
number: string;
|
|
53
|
-
file: string;
|
|
54
|
-
hidden: string;
|
|
55
|
-
};
|
|
56
|
-
jsonLogic: {
|
|
57
|
-
apply: typeof jsonLogic.apply;
|
|
58
|
-
add_operation: typeof jsonLogic.add_operation;
|
|
59
|
-
rm_operation: typeof jsonLogic.rm_operation;
|
|
60
|
-
equals: (field: string, value: any) => {
|
|
61
|
-
"==": any[];
|
|
62
|
-
};
|
|
63
|
-
and: (...conditions: any[]) => {
|
|
64
|
-
and: any[];
|
|
65
|
-
};
|
|
66
|
-
or: (...conditions: any[]) => {
|
|
67
|
-
or: any[];
|
|
68
|
-
};
|
|
69
|
-
not: (condition: any) => {
|
|
70
|
-
"!": any;
|
|
71
|
-
};
|
|
72
|
-
greaterThan: (field: string, value: any) => {
|
|
73
|
-
">": any[];
|
|
74
|
-
};
|
|
75
|
-
lessThan: (field: string, value: any) => {
|
|
76
|
-
"<": any[];
|
|
77
|
-
};
|
|
78
|
-
contains: (array: string, value: any) => {
|
|
79
|
-
in: any[];
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
validator: import('@rjsf/validator-ajv8/lib/validator.js').default<any, ExtendedDynamicFormsExports.RJSFSchema, any>;
|
|
84
|
-
ExtendedForm: React.ForwardRefExoticComponent<Omit<ExtendedDynamicFormsExports.ExtendedFormProps, "ref"> & React.RefAttributes<any>>;
|
|
85
|
-
WizardForm: typeof ExtendedDynamicFormsExports.WizardForm;
|
|
86
|
-
customFields: {
|
|
87
|
-
address: React.FC<ExtendedDynamicFormsExports.FieldProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
88
|
-
phone: React.FC<ExtendedDynamicFormsExports.FieldProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
89
|
-
currency: React.FC<ExtendedDynamicFormsExports.FieldProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
90
|
-
};
|
|
91
|
-
customTemplates: {
|
|
92
|
-
FieldTemplate: React.FC<ExtendedDynamicFormsExports.FieldTemplateProps>;
|
|
93
|
-
ArrayFieldTemplate: (props: ExtendedDynamicFormsExports.ArrayFieldTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
94
|
-
ArrayFieldItemTemplate: (props: import('@rjsf/utils').ArrayFieldItemTemplateType) => import("react/jsx-runtime").JSX.Element;
|
|
95
|
-
WizardObjectFieldTemplate: React.FC<ExtendedDynamicFormsExports.ObjectFieldTemplateProps>;
|
|
96
|
-
WizardSectionTemplate: React.FC<import('./layouts/wizard/WizardSectionTemplate').WizardSectionTemplateProps>;
|
|
97
|
-
ButtonTemplates: {
|
|
98
|
-
SubmitButton: React.FC<import('@rjsf/utils').SubmitButtonProps>;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
AddressField: React.FC<ExtendedDynamicFormsExports.FieldProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
102
|
-
PhoneField: React.FC<ExtendedDynamicFormsExports.FieldProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
103
|
-
CurrencyField: React.FC<ExtendedDynamicFormsExports.FieldProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
104
|
-
FieldTemplate: React.FC<ExtendedDynamicFormsExports.FieldTemplateProps>;
|
|
105
|
-
ArrayFieldTemplate: (props: ExtendedDynamicFormsExports.ArrayFieldTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
106
|
-
ArrayFieldItemTemplate: (props: import('@rjsf/utils').ArrayFieldItemTemplateType) => import("react/jsx-runtime").JSX.Element;
|
|
107
|
-
WizardObjectFieldTemplate: React.FC<ExtendedDynamicFormsExports.ObjectFieldTemplateProps>;
|
|
108
|
-
WizardSectionTemplate: React.FC<import('./layouts/wizard/WizardSectionTemplate').WizardSectionTemplateProps>;
|
|
109
|
-
SubmitButton: React.FC<import('@rjsf/utils').SubmitButtonProps>;
|
|
110
|
-
customWidgets: {
|
|
111
|
-
TextWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
112
|
-
TextareaWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
113
|
-
SelectWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
114
|
-
CheckboxWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
115
|
-
RadioWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
116
|
-
UpDownWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
117
|
-
FileWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
118
|
-
tel: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
119
|
-
email: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
120
|
-
url: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
121
|
-
password: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
122
|
-
date: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
123
|
-
'datetime-local': React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
124
|
-
TelWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
125
|
-
EmailWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
126
|
-
URLWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
127
|
-
PasswordWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
128
|
-
DateWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
129
|
-
DateTimeWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
130
|
-
color: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
131
|
-
file: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
132
|
-
range: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
133
|
-
rating: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
134
|
-
};
|
|
135
|
-
ColorWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
136
|
-
DateWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
137
|
-
FileWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
138
|
-
RangeWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
139
|
-
RatingWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
140
|
-
EnhancedTextWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
141
|
-
EnhancedTextareaWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
142
|
-
EnhancedSelectWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
143
|
-
EnhancedCheckboxWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
144
|
-
EnhancedRadioWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
145
|
-
EnhancedNumberWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
146
|
-
TelephoneWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
147
|
-
EmailWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
148
|
-
URLWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
149
|
-
PasswordWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
150
|
-
DateTimeWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
151
|
-
FileUploadWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
152
|
-
enhancedWidgets: {
|
|
153
|
-
TextWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
154
|
-
TextareaWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
155
|
-
SelectWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
156
|
-
CheckboxWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
157
|
-
RadioWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
158
|
-
UpDownWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
159
|
-
FileWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
160
|
-
tel: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
161
|
-
email: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
162
|
-
url: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
163
|
-
password: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
164
|
-
date: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
165
|
-
'datetime-local': React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
166
|
-
TelWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
167
|
-
EmailWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
168
|
-
URLWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
169
|
-
PasswordWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
170
|
-
DateWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
171
|
-
DateTimeWidget: React.FC<ExtendedDynamicFormsExports.WidgetProps<any, ExtendedDynamicFormsExports.RJSFSchema, any>>;
|
|
172
|
-
};
|
|
173
|
-
WizardLayout: React.FC<import('./layouts/wizard/WizardLayout').WizardLayoutProps>;
|
|
174
|
-
ProgressIndicator: React.FC<import('./layouts/wizard/ProgressIndicator').ProgressIndicatorProps>;
|
|
175
|
-
StepNavigation: React.FC<import('./layouts/wizard/StepNavigation').StepNavigationProps>;
|
|
176
|
-
WizardNavigation: React.FC<import('./layouts/wizard/WizardNavigation').WizardNavigationProps>;
|
|
177
|
-
FormEventManager: typeof ExtendedDynamicFormsExports.FormEventManager;
|
|
178
|
-
FormEventHub: typeof ExtendedDynamicFormsExports.FormEventHub;
|
|
179
|
-
FormEventProvider: React.FC<import('./events/FormEventContext').FormEventProviderProps>;
|
|
180
|
-
useFormEventHub: () => import('./events/FormEventContext').FormEventContextType;
|
|
181
|
-
useFieldEventHandlers: (fieldId: string, schema?: any, fieldPath?: string[]) => {
|
|
182
|
-
onFocus: (value: any) => Promise<void>;
|
|
183
|
-
onBlur: (value: any) => Promise<void>;
|
|
184
|
-
onChange: (value: any) => Promise<void>;
|
|
185
|
-
};
|
|
186
|
-
createConditionalEngineHook: typeof ExtendedDynamicFormsExports.createConditionalEngineHook;
|
|
187
|
-
useConditionalUi: ExtendedDynamicFormsExports.ConditionalEngineHook<ExtendedDynamicFormsExports.UiEffect[]>;
|
|
188
|
-
useConditionalSchema: ExtendedDynamicFormsExports.ConditionalEngineHook<ExtendedDynamicFormsExports.SchemaEffect[]>;
|
|
189
|
-
useConditionalValidation: ExtendedDynamicFormsExports.ConditionalEngineHook<ExtendedDynamicFormsExports.ValidationEffect>;
|
|
190
|
-
createDynamicArrayItemsUiSchema: typeof ExtendedDynamicFormsExports.createDynamicArrayItemsUiSchema;
|
|
191
|
-
mergeItemUiSchema: typeof ExtendedDynamicFormsExports.mergeItemUiSchema;
|
|
192
|
-
arrayItemPatterns: {
|
|
193
|
-
hideField: (fieldName: string, condition: (itemData: any) => boolean) => ExtendedDynamicFormsExports.ArrayItemConditionalFn;
|
|
194
|
-
requireField: (fieldName: string, condition: (itemData: any) => boolean) => ExtendedDynamicFormsExports.ArrayItemConditionalFn;
|
|
195
|
-
applyIndexStyles: (totalItems: number) => ExtendedDynamicFormsExports.ArrayItemConditionalFn;
|
|
196
|
-
};
|
|
197
|
-
uiEngineConfig: ExtendedDynamicFormsExports.EngineConfig<ExtendedDynamicFormsExports.UiEffect[], ExtendedDynamicFormsExports.UiSchema>;
|
|
198
|
-
schemaEngineConfig: ExtendedDynamicFormsExports.EngineConfig<ExtendedDynamicFormsExports.SchemaEffect[], ExtendedDynamicFormsExports.RJSFSchema>;
|
|
199
|
-
validationEngineConfig: ExtendedDynamicFormsExports.EngineConfig<ExtendedDynamicFormsExports.ValidationEffect, import('./conditionals/v2/engines/validationEngineConfig').ValidationConfig>;
|
|
200
|
-
createCustomValidate: typeof ExtendedDynamicFormsExports.createCustomValidate;
|
|
201
|
-
deepEquals(obj1: any, obj2: any): boolean;
|
|
202
|
-
formDataUtils: {
|
|
203
|
-
cloneFormData: (data: any) => any;
|
|
204
|
-
mergeFormData: (current: any, updates: any) => any;
|
|
205
|
-
getNestedValue: (data: any, path: string) => any;
|
|
206
|
-
setNestedValue: (data: any, path: string, value: any) => any;
|
|
207
|
-
removeEmptyValues: (data: any) => any;
|
|
208
|
-
};
|
|
209
|
-
schemaUtils: {
|
|
210
|
-
getRequiredFields: (schema: ExtendedDynamicFormsExports.RJSFSchema) => string[];
|
|
211
|
-
isFieldRequired: (schema: ExtendedDynamicFormsExports.RJSFSchema, fieldName: string) => boolean;
|
|
212
|
-
getFieldSchema: (schema: ExtendedDynamicFormsExports.RJSFSchema, path: string) => ExtendedDynamicFormsExports.RJSFSchema | undefined;
|
|
213
|
-
mergeSchemas: (schema1: ExtendedDynamicFormsExports.RJSFSchema, schema2: ExtendedDynamicFormsExports.RJSFSchema) => ExtendedDynamicFormsExports.RJSFSchema;
|
|
214
|
-
getAllFieldPaths: (schema: ExtendedDynamicFormsExports.RJSFSchema, prefix?: string) => string[];
|
|
215
|
-
};
|
|
216
|
-
validationUtils: {
|
|
217
|
-
isValidEmail: (email: string) => boolean;
|
|
218
|
-
isValidPhone: (phone: string) => boolean;
|
|
219
|
-
isValidUrl: (url: string) => boolean;
|
|
220
|
-
isValidDate: (date: string) => boolean;
|
|
221
|
-
isInRange: (value: number, min?: number, max?: number) => boolean;
|
|
222
|
-
getValidationMessage: (type: string, params?: any) => string;
|
|
223
|
-
};
|
|
224
|
-
createForm: typeof createForm;
|
|
225
|
-
createWizardForm: typeof createWizardForm;
|
|
226
|
-
React: typeof React;
|
|
227
|
-
ReactDOM: typeof ReactDOM;
|
|
228
|
-
antd: typeof antd;
|
|
229
|
-
dayjs: typeof dayjs;
|
|
230
|
-
jsonLogic: typeof jsonLogic;
|
|
231
|
-
};
|
|
232
|
-
export default ExtendedDynamicForms;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { default as React, FC } from 'react';
|
|
2
|
-
import { WidgetProps } from '@rjsf/utils';
|
|
3
|
-
|
|
4
|
-
export declare const EnhancedTextWidget: FC<WidgetProps>;
|
|
5
|
-
export declare const EnhancedTextareaWidget: FC<WidgetProps>;
|
|
6
|
-
export declare const EnhancedSelectWidget: FC<WidgetProps>;
|
|
7
|
-
export declare const EnhancedCheckboxWidget: FC<WidgetProps>;
|
|
8
|
-
export declare const EnhancedRadioWidget: FC<WidgetProps>;
|
|
9
|
-
export declare const EnhancedNumberWidget: FC<WidgetProps>;
|
|
10
|
-
export declare const TelephoneWidget: FC<WidgetProps>;
|
|
11
|
-
export declare const EmailWidget: FC<WidgetProps>;
|
|
12
|
-
export declare const URLWidget: FC<WidgetProps>;
|
|
13
|
-
export declare const PasswordWidget: FC<WidgetProps>;
|
|
14
|
-
export declare const DateWidget: FC<WidgetProps>;
|
|
15
|
-
export declare const DateTimeWidget: FC<WidgetProps>;
|
|
16
|
-
export declare const FileUploadWidget: FC<WidgetProps>;
|
|
17
|
-
export declare const customWidgets: {
|
|
18
|
-
TextWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
19
|
-
TextareaWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
20
|
-
SelectWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
21
|
-
CheckboxWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
22
|
-
RadioWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
23
|
-
UpDownWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
24
|
-
FileWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
25
|
-
tel: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
26
|
-
email: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
27
|
-
url: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
28
|
-
password: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
29
|
-
date: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
30
|
-
'datetime-local': React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
31
|
-
TelWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
32
|
-
EmailWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
33
|
-
URLWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
34
|
-
PasswordWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
35
|
-
DateWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
36
|
-
DateTimeWidget: React.FC<WidgetProps<any, import('@rjsf/utils').RJSFSchema, any>>;
|
|
37
|
-
};
|