@syncfusion/ej2-react-form-builder 0.1.0-beta → 35.1.37
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 +81 -36
- package/diConfig.json +148 -0
- package/dist/ej2-react-form-builder.min.js +10 -0
- package/dist/ej2-react-form-builder.umd.min.js +11 -0
- package/dist/ej2-react-form-builder.umd.min.js.map +1 -0
- package/dist/es6/ej2-react-form-builder.es2015.js +60 -0
- package/dist/es6/ej2-react-form-builder.es2015.js.map +1 -0
- package/form-builder.d.ts +4 -0
- package/form-builder.js +4 -0
- package/index.d.ts +2 -4
- package/index.js +2 -4
- package/license +6 -13
- package/package.json +19 -43
- package/src/form-builder/formbuilder.component.d.ts +37 -0
- package/src/form-builder/formbuilder.component.js +50 -0
- package/src/form-builder/index.d.ts +2 -0
- package/src/form-builder/index.js +2 -0
- package/src/form-builder/toolboxitems-directive.d.ts +28 -0
- package/src/form-builder/toolboxitems-directive.js +47 -0
- package/src/global.js +1 -0
- package/src/index.d.ts +2 -16
- package/src/index.js +2 -6
- package/Common/CheckboxGroup.d.ts +0 -13
- package/Common/CheckboxGroup.js +0 -50
- package/Common/ConditionalRuleEngine.d.ts +0 -296
- package/Common/ConditionalRuleEngine.js +0 -566
- package/Common/CustomTabComponent.d.ts +0 -17
- package/Common/CustomTabComponent.js +0 -30
- package/Common/CustomValidationEngine.d.ts +0 -58
- package/Common/CustomValidationEngine.js +0 -146
- package/Common/DataGridComponent.d.ts +0 -20
- package/Common/DataGridComponent.js +0 -273
- package/Common/FormValidator.d.ts +0 -485
- package/Common/FormValidator.js +0 -575
- package/Common/MinMaxRuleEngine.d.ts +0 -105
- package/Common/MinMaxRuleEngine.js +0 -365
- package/Common/StaticHtmlRenderer.d.ts +0 -14
- package/Common/StaticHtmlRenderer.js +0 -24
- package/Common/expressions/DependencyTracker.d.ts +0 -30
- package/Common/expressions/DependencyTracker.js +0 -128
- package/Common/expressions/ExpressionEngine.d.ts +0 -95
- package/Common/expressions/ExpressionEngine.js +0 -506
- package/Common/expressions/ExpressionParser.d.ts +0 -41
- package/Common/expressions/ExpressionParser.js +0 -269
- package/Common/expressions/useGridExpressions.d.ts +0 -12
- package/Common/expressions/useGridExpressions.js +0 -71
- package/Common/globalFormId.d.ts +0 -26
- package/Common/globalFormId.js +0 -45
- package/Common/json-converter.d.ts +0 -444
- package/Common/json-converter.js +0 -1184
- package/Common/parser.d.ts +0 -98
- package/Common/parser.js +0 -753
- package/Common/utils.d.ts +0 -130
- package/Common/utils.js +0 -574
- package/src/FormBuilder.d.ts +0 -211
- package/src/FormBuilder.js +0 -1299
- package/src/components/Database/ConnectionForm.d.ts +0 -8
- package/src/components/Database/ConnectionForm.js +0 -28
- package/src/components/TopBar.d.ts +0 -10
- package/src/components/TopBar.js +0 -7
- package/src/components/icons/ComponentIcons.d.ts +0 -44
- package/src/components/icons/ComponentIcons.js +0 -40
- package/src/components/layout/FormFieldWrapper.d.ts +0 -41
- package/src/components/layout/FormFieldWrapper.js +0 -112
- package/src/components/layout/LeftPane.d.ts +0 -23
- package/src/components/layout/LeftPane.js +0 -310
- package/src/components/layout/ListBoxPane.d.ts +0 -24
- package/src/components/layout/ListBoxPane.js +0 -94
- package/src/components/layout/MainSection.d.ts +0 -39
- package/src/components/layout/MainSection.js +0 -1766
- package/src/components/layout/Preview.d.ts +0 -12
- package/src/components/layout/Preview.js +0 -337
- package/src/components/layout/RightPane.d.ts +0 -22
- package/src/components/layout/RightPane.js +0 -370
- package/src/components/theme/ThemeSwitcher.d.ts +0 -14
- package/src/components/theme/ThemeSwitcher.js +0 -24
- package/src/components/theme/theme-constant.d.ts +0 -37
- package/src/components/theme/theme-constant.js +0 -23
- package/src/config/component-properties.json +0 -4929
- package/src/config/form-setting.json +0 -56
- package/src/config/locale.d.ts +0 -449
- package/src/config/locale.js +0 -449
- package/src/context/FormSchemaContext.d.ts +0 -32
- package/src/context/FormSchemaContext.js +0 -155
- package/src/context/LocalizationContext.d.ts +0 -27
- package/src/context/LocalizationContext.js +0 -43
- package/src/context/ThemeContext.d.ts +0 -23
- package/src/context/ThemeContext.js +0 -161
- package/src/context/contexts.d.ts +0 -6
- package/src/context/contexts.js +0 -6
- package/src/context/defaultFormSchema.d.ts +0 -6
- package/src/context/defaultFormSchema.js +0 -20
- package/src/defaultPalette.d.ts +0 -9
- package/src/defaultPalette.js +0 -45
- package/src/defaultTemplate.d.ts +0 -3
- package/src/defaultTemplate.js +0 -185
- package/src/import/schemaImportUtils.d.ts +0 -24
- package/src/import/schemaImportUtils.js +0 -121
- package/src/types/ActionButtons.d.ts +0 -44
- package/src/types/ActionButtons.js +0 -27
- package/src/types/ComponentProperties.d.ts +0 -33
- package/src/types/ComponentProperties.js +0 -2
- package/src/types/FormSchema.d.ts +0 -585
- package/src/types/FormSchema.js +0 -147
- package/src/types/connection.d.ts +0 -19
- package/src/types/connection.js +0 -9
- package/src/utils/AttributesEditor.d.ts +0 -13
- package/src/utils/AttributesEditor.js +0 -117
- package/src/utils/ButtonGroupEditor.d.ts +0 -15
- package/src/utils/ButtonGroupEditor.js +0 -141
- package/src/utils/ChoiceBasedFieldEditor.d.ts +0 -16
- package/src/utils/ChoiceBasedFieldEditor.js +0 -87
- package/src/utils/ClipboardHelper.d.ts +0 -26
- package/src/utils/ClipboardHelper.js +0 -83
- package/src/utils/ColumnBuilder.d.ts +0 -11
- package/src/utils/ColumnBuilder.js +0 -153
- package/src/utils/ColumnSpanEditor.d.ts +0 -8
- package/src/utils/ColumnSpanEditor.js +0 -98
- package/src/utils/ConditionDataEditor.d.ts +0 -29
- package/src/utils/ConditionDataEditor.js +0 -177
- package/src/utils/ConditionalEditorUtils.d.ts +0 -27
- package/src/utils/ConditionalEditorUtils.js +0 -310
- package/src/utils/ConditionsEditor.d.ts +0 -20
- package/src/utils/ConditionsEditor.js +0 -571
- package/src/utils/CustomAccordion.d.ts +0 -13
- package/src/utils/CustomAccordion.js +0 -38
- package/src/utils/CustomValidationEditor.d.ts +0 -11
- package/src/utils/CustomValidationEditor.js +0 -208
- package/src/utils/DataSourceCollector.d.ts +0 -3
- package/src/utils/DataSourceCollector.js +0 -252
- package/src/utils/ExpressionEditor.d.ts +0 -13
- package/src/utils/ExpressionEditor.js +0 -99
- package/src/utils/FormSettingsPanel.d.ts +0 -9
- package/src/utils/FormSettingsPanel.js +0 -60
- package/src/utils/LookupConfig.d.ts +0 -11
- package/src/utils/LookupConfig.js +0 -159
- package/src/utils/MinMaxValueEditor.d.ts +0 -25
- package/src/utils/MinMaxValueEditor.js +0 -188
- package/src/utils/OptionsEditor.d.ts +0 -8
- package/src/utils/OptionsEditor.js +0 -79
- package/src/utils/PropertyRenderer.d.ts +0 -22
- package/src/utils/PropertyRenderer.js +0 -210
- package/src/utils/ValueRenderer.d.ts +0 -2
- package/src/utils/ValueRenderer.js +0 -91
- package/src/utils/ej2DbAdaptor.d.ts +0 -6
- package/src/utils/ej2DbAdaptor.js +0 -38
- package/src/utils/mappingHeuristics.d.ts +0 -10
- package/src/utils/mappingHeuristics.js +0 -33
- package/src/utils/renderComponent.d.ts +0 -18
- package/src/utils/renderComponent.js +0 -300
- package/styles/tailwind3.css +0 -67
- package/styles/themes/action-buttons.css +0 -110
- package/styles/themes/datagrid.css +0 -380
- package/styles/themes/drag-reorder.css +0 -248
- package/styles/themes/import-dialog.css +0 -292
- package/styles/themes/index.css +0 -658
- package/styles/themes/left-pane.css +0 -253
- package/styles/themes/options-editor.css +0 -63
- package/styles/themes/preview.css +0 -702
- package/styles/themes/property-dialog.css +0 -371
package/src/FormBuilder.d.ts
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import React, { type HTMLAttributes } from 'react';
|
|
2
|
-
import type { FormComponent, PaletteConfig, Schema } from './types/FormSchema';
|
|
3
|
-
import type { DefaultTemplates } from './types/FormSchema';
|
|
4
|
-
/**
|
|
5
|
-
* @private
|
|
6
|
-
*/
|
|
7
|
-
export declare let formBuilderMode: string;
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export declare const extractTemplateComponents: (template: DefaultTemplates) => FormComponent[];
|
|
12
|
-
/**
|
|
13
|
-
* The IFormBuilder interface defines the configuration options of the FormBuilder component, which is used to design form schemas.
|
|
14
|
-
*/
|
|
15
|
-
export interface IFormBuilder {
|
|
16
|
-
/**
|
|
17
|
-
* This is the FormBuilder component element.
|
|
18
|
-
*
|
|
19
|
-
* @private
|
|
20
|
-
* @default null
|
|
21
|
-
*/
|
|
22
|
-
element?: HTMLElement | null;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the locale of the Form Builder Component.
|
|
25
|
-
*
|
|
26
|
-
* @property
|
|
27
|
-
* @default 'en-US'
|
|
28
|
-
*/
|
|
29
|
-
locale?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Specifies whether the form schema created with the Form Builder can be exported.
|
|
32
|
-
*
|
|
33
|
-
* @property
|
|
34
|
-
* @default true
|
|
35
|
-
*/
|
|
36
|
-
allowExport?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Enables or disables the form preview mode option in the Form Builder.
|
|
39
|
-
*
|
|
40
|
-
* @property
|
|
41
|
-
* @default true
|
|
42
|
-
*/
|
|
43
|
-
enablePreview?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Specifies the mode of the Form Builder. There are two modes available:
|
|
46
|
-
* - Simple - This mode limits the supported components and options in the Form Builder to provide ease for non-technical users.
|
|
47
|
-
* - Developer - This mode enables the complete features in the Form Builder. This is the default mode.
|
|
48
|
-
*
|
|
49
|
-
* @property
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
mode?: 'Simple' | 'Developer';
|
|
53
|
-
/**
|
|
54
|
-
* Specifies whether the form schema state should be persisted in the Form Builder. The local storage is used to maintain the persistence behavior.
|
|
55
|
-
*
|
|
56
|
-
* @property
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
enablePersistence?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Specifies whether the form elements to be displayed in Right to Left.
|
|
62
|
-
*
|
|
63
|
-
* @property
|
|
64
|
-
* @default false
|
|
65
|
-
*/
|
|
66
|
-
enableRtl?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* This property is used to provide a set of custom components in addition to the existing form field components.
|
|
69
|
-
*
|
|
70
|
-
* @property
|
|
71
|
-
* @default undefined (uses defaultTemplates)
|
|
72
|
-
*/
|
|
73
|
-
formTemplates?: DefaultTemplates[];
|
|
74
|
-
/**
|
|
75
|
-
* This property is used to modify the components for the form fields in basic, advanced, and layout categories in the left panel of the Form Builder.
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* paletteConfig={{
|
|
79
|
-
* [ComponentCategory.BASIC]: [
|
|
80
|
-
* { type: FormComponentType.TEXTBOX, category: 'basic' },
|
|
81
|
-
* { type: FormComponentType.CHECKBOX, category: 'basic' }
|
|
82
|
-
* ],
|
|
83
|
-
* [ComponentCategory.ADVANCED]: [
|
|
84
|
-
* { type: FormComponentType.MULTISELECT, category: 'advanced' }
|
|
85
|
-
* ]
|
|
86
|
-
* }}
|
|
87
|
-
*
|
|
88
|
-
* @property
|
|
89
|
-
* @private
|
|
90
|
-
* @default undefined (uses defaultPalette)
|
|
91
|
-
*/
|
|
92
|
-
paletteConfig?: PaletteConfig;
|
|
93
|
-
/**
|
|
94
|
-
* Event triggered when a component property is changed in the property panel.
|
|
95
|
-
* Fires on every property value change with details of the changed field.
|
|
96
|
-
*
|
|
97
|
-
* @event
|
|
98
|
-
*
|
|
99
|
-
* @param args - Event data containing label, property key, value, and component id
|
|
100
|
-
*/
|
|
101
|
-
onPropertyChanged?: (args: PropertyChangedEventArgs) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Event triggered when a field drag operation starts.
|
|
104
|
-
* Fires for both root-level and nested container drags.
|
|
105
|
-
*
|
|
106
|
-
* @event
|
|
107
|
-
*
|
|
108
|
-
* @param args - Event data containing component and source container info
|
|
109
|
-
*/
|
|
110
|
-
onFieldDragStarted?: (args: FieldDragStartedEventArgs) => void;
|
|
111
|
-
/**
|
|
112
|
-
* Event triggered when a dragged field is over a valid drop zone.
|
|
113
|
-
* Fires repeatedly while hovering over drop targets.
|
|
114
|
-
*
|
|
115
|
-
* @event
|
|
116
|
-
*
|
|
117
|
-
* @param args - Event data containing target container info
|
|
118
|
-
*/
|
|
119
|
-
onFieldDraggingOver?: (args: FieldDraggingOverEventArgs) => void;
|
|
120
|
-
/**
|
|
121
|
-
* Event triggered when a field drop operation completes.
|
|
122
|
-
* Fires for successful drops in both root and nested containers.
|
|
123
|
-
*
|
|
124
|
-
* @event
|
|
125
|
-
*
|
|
126
|
-
* @param args - Event data containing source, target, and drop details
|
|
127
|
-
*/
|
|
128
|
-
onFieldDropped?: (args: FieldDroppedEventArgs) => void;
|
|
129
|
-
/**
|
|
130
|
-
* This property facilitates an optional initial form schema to load in the Form Builder.
|
|
131
|
-
*
|
|
132
|
-
* @property
|
|
133
|
-
* @default null
|
|
134
|
-
*/
|
|
135
|
-
schema?: Schema | any;
|
|
136
|
-
/**
|
|
137
|
-
* Gets the current form settings as a JSON string in the required export format.
|
|
138
|
-
*
|
|
139
|
-
* @returns Form settings JSON string
|
|
140
|
-
* @private
|
|
141
|
-
*/
|
|
142
|
-
getFormSettings(): any;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* FormBuilder component props (used for JSX props, excludes imperative methods)
|
|
146
|
-
*/
|
|
147
|
-
type IFormBuilderProps = Omit<IFormBuilder, 'element' | 'getFormSettings'> & HTMLAttributes<HTMLDivElement>;
|
|
148
|
-
/**
|
|
149
|
-
* The FormBuilder component provides a visual, drag-and-drop interface for authoring form schemas. It supports palette customization, template insertion, dual modes (Simple/Developer), and emits structural form schemas (FormSchema) that can be consumed by FormRenderer.
|
|
150
|
-
*
|
|
151
|
-
* ```typescript
|
|
152
|
-
* import { FormBuilder } from '@syncfusion/ej2-react-form-builder';
|
|
153
|
-
*
|
|
154
|
-
* <FormBuilder />
|
|
155
|
-
* ```
|
|
156
|
-
*/
|
|
157
|
-
export declare const FormBuilder: React.ForwardRefExoticComponent<IFormBuilderProps & React.RefAttributes<IFormBuilder>>;
|
|
158
|
-
declare const _default: React.NamedExoticComponent<Omit<IFormBuilder, "element" | "getFormSettings"> & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<IFormBuilder>>;
|
|
159
|
-
export default _default;
|
|
160
|
-
/**
|
|
161
|
-
* This event argument provides details when a form field's drag action starts.
|
|
162
|
-
*/
|
|
163
|
-
export interface FieldDragStartedEventArgs {
|
|
164
|
-
/** Specifies the name of the component being dragged. */
|
|
165
|
-
componentName: string | null;
|
|
166
|
-
/** Specifies the type of the component (e.g., 'textbox', 'dropdown', 'panel'). */
|
|
167
|
-
componentType: string;
|
|
168
|
-
/** Specifies the container ID where the drag originated ('root', panel ID, table ID, etc.). */
|
|
169
|
-
sourceContainerId: string;
|
|
170
|
-
/** Specifies whether this is a nested container drag. */
|
|
171
|
-
isNested: boolean;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* This event argument provides details when a form field's drag action is in progress over a drop zone.
|
|
175
|
-
*/
|
|
176
|
-
export interface FieldDraggingOverEventArgs {
|
|
177
|
-
/** Specifies whether hovering over a nested container. */
|
|
178
|
-
isNested: boolean;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* This event argument provides details when a form field's drag action is completed by dropping on a drop zone.
|
|
182
|
-
*/
|
|
183
|
-
export interface FieldDroppedEventArgs {
|
|
184
|
-
/** Specifies the name of the dropped component */
|
|
185
|
-
componentName: string;
|
|
186
|
-
/** Specifies whether the component was reordered. */
|
|
187
|
-
isReordered: boolean;
|
|
188
|
-
/** Specifies the type of the component. */
|
|
189
|
-
componentType: string;
|
|
190
|
-
/** Specifies the source container ID ('root', panel ID, 'palette' for new components) which acts as a drop zone. */
|
|
191
|
-
sourceContainerId: string;
|
|
192
|
-
/** Specifies the target container ID where the component was dropped. */
|
|
193
|
-
targetContainerId: string;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* This event argument provides details when a property value changes in the property panel.
|
|
197
|
-
*/
|
|
198
|
-
export interface PropertyChangedEventArgs {
|
|
199
|
-
/**
|
|
200
|
-
* Specifies the display label of the changed property.
|
|
201
|
-
*
|
|
202
|
-
* @private
|
|
203
|
-
*/
|
|
204
|
-
field: string;
|
|
205
|
-
/** Specifies the property name of the field. */
|
|
206
|
-
property: string;
|
|
207
|
-
/** Specifies the new value of the property. */
|
|
208
|
-
value: any;
|
|
209
|
-
/** Specifies the name of the component being edited. */
|
|
210
|
-
name: string;
|
|
211
|
-
}
|