@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/config/locale.js
DELETED
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
export const defaultLocale = {
|
|
2
|
-
"textbox": "Text Box",
|
|
3
|
-
"textarea": "Text Area",
|
|
4
|
-
"number": "Number",
|
|
5
|
-
"checkbox": "Checkbox",
|
|
6
|
-
"checkboxGroup": "Checkbox Group",
|
|
7
|
-
"radio": "Radio Button",
|
|
8
|
-
"dropdown": "Dropdown List",
|
|
9
|
-
"switch": "Switch",
|
|
10
|
-
"button": "Button",
|
|
11
|
-
"splitButton": "Split Button",
|
|
12
|
-
"date": "Date",
|
|
13
|
-
"range": "Range",
|
|
14
|
-
"timeRange": "Time Range",
|
|
15
|
-
"dateTime": "Date / Time",
|
|
16
|
-
"time": "Time",
|
|
17
|
-
"dateRange": "Date Range",
|
|
18
|
-
"inputMask": "Input Mask",
|
|
19
|
-
"multiselect": "Multi Select",
|
|
20
|
-
"message": "Message",
|
|
21
|
-
"panel": "Panel",
|
|
22
|
-
"card": "Card",
|
|
23
|
-
"table": "Table",
|
|
24
|
-
"tabs": "Tabs",
|
|
25
|
-
"rating": "Rating",
|
|
26
|
-
"lookup": "Look Up",
|
|
27
|
-
"html": "HTML",
|
|
28
|
-
"staticHtml": "HTML",
|
|
29
|
-
"autoNumber": "Auto Number",
|
|
30
|
-
"imageEditor": "Image Editor",
|
|
31
|
-
"colorPicker": "Color Picker",
|
|
32
|
-
"fileUpload": "File Upload",
|
|
33
|
-
"rangeSlider": "Range Slider",
|
|
34
|
-
"signature": "Signature",
|
|
35
|
-
"dataGrid": "Data Grid",
|
|
36
|
-
"richTextEditor": "Rich Text Editor",
|
|
37
|
-
"loginForm": "Login Form",
|
|
38
|
-
"feedbackSurvey": "Feedback",
|
|
39
|
-
"registrationForm": "Registration",
|
|
40
|
-
"basic": "Basic",
|
|
41
|
-
"behaviour": "Behaviour",
|
|
42
|
-
"advanced": "Advanced",
|
|
43
|
-
"layout": "Layout",
|
|
44
|
-
"templates": "Templates",
|
|
45
|
-
"build": "Build",
|
|
46
|
-
"name": "Name",
|
|
47
|
-
"title": "Title",
|
|
48
|
-
"description": "Description",
|
|
49
|
-
"prefix": "Prefix",
|
|
50
|
-
"suffix": "Suffix",
|
|
51
|
-
"preview": "Preview",
|
|
52
|
-
"import": "Import",
|
|
53
|
-
"importJson": "Import JSON",
|
|
54
|
-
"export": "Export",
|
|
55
|
-
"small": "Small",
|
|
56
|
-
"bigger": "Bigger",
|
|
57
|
-
"clear": "Clear",
|
|
58
|
-
"copy": "Copy",
|
|
59
|
-
"delete": "Delete",
|
|
60
|
-
"cancel": "Cancel",
|
|
61
|
-
"json": "JSON",
|
|
62
|
-
"jsonCode": "JSON Code",
|
|
63
|
-
"fromFile": "From File",
|
|
64
|
-
"fromUrl": "From URL",
|
|
65
|
-
"save": "Save",
|
|
66
|
-
"validate": "Validate",
|
|
67
|
-
"fetching": "Fetching",
|
|
68
|
-
"validating": "Validating",
|
|
69
|
-
"properties": "Properties",
|
|
70
|
-
"display": "Display",
|
|
71
|
-
"copyCode": "Copy code",
|
|
72
|
-
"resetForm": "Reset form",
|
|
73
|
-
"editForm": "Edit form",
|
|
74
|
-
"jsonview": "JSON view",
|
|
75
|
-
"previewForm": "Preview form",
|
|
76
|
-
"conditions": "Conditions",
|
|
77
|
-
"addRule": "Add Rule",
|
|
78
|
-
"conditionsEditorLabel": "Add rules to control this field's behavior. ",
|
|
79
|
-
"dataSchema": "Data Schema (Validation)",
|
|
80
|
-
"uiSchema": "UI Schema (Layout & Presentation)",
|
|
81
|
-
"columns": "Columns",
|
|
82
|
-
"validation": "Validation",
|
|
83
|
-
"selectionType": "Selection type",
|
|
84
|
-
"displayFormat": "Display format",
|
|
85
|
-
"lookupConfig": "Lookup configuration",
|
|
86
|
-
"importexport": "Import / Export",
|
|
87
|
-
"enableImportFromWord": "Enable import from Word",
|
|
88
|
-
"enableExportToWord": "Enable export to Word",
|
|
89
|
-
"enableExportToPdf": "Enable export to PDF",
|
|
90
|
-
"importFromWordUrlPlaceholder": "Enter Service URL to import from Word",
|
|
91
|
-
"exportToWordUrlPlaceholder": "Enter Service URL to export to Word",
|
|
92
|
-
"exportToPdfUrlPlaceholder": "Enter Service URL to export to PDF",
|
|
93
|
-
"single": "Single",
|
|
94
|
-
"multiple": "Multiple",
|
|
95
|
-
"emptyFieldSetState": "Drop Component here",
|
|
96
|
-
"startBuildingForm": "Start building your form",
|
|
97
|
-
"dragFieldsHint": "Drag fields from the left panel and drop them here to create your form.",
|
|
98
|
-
"dropToAddField": "Drop to add field",
|
|
99
|
-
"releaseToAddField": "Release to add this field to the form",
|
|
100
|
-
"index": "Index",
|
|
101
|
-
"search": "Search",
|
|
102
|
-
"fields": "Fields",
|
|
103
|
-
"fieldSettings": "Field Settings",
|
|
104
|
-
"formsettings": "Form Settings",
|
|
105
|
-
"columnSettings": "Column Settings",
|
|
106
|
-
"visibility": "Visibility",
|
|
107
|
-
"visible": "Visible",
|
|
108
|
-
"publish": "Publish",
|
|
109
|
-
"draft": "Draft",
|
|
110
|
-
"closed": "Closed",
|
|
111
|
-
"visibility_publish_description": "This form is visible to anyone with the link",
|
|
112
|
-
"visibility_draft_description": "This form is only visible to you",
|
|
113
|
-
"visibility_closed_description": "This form is read-only; you can only change visibility",
|
|
114
|
-
"visibility_closed_warning": "Closed forms cannot be edited. You can change visibility to re-open.",
|
|
115
|
-
"optionLabel": "Option Label",
|
|
116
|
-
"tabLabel": "Tab Label",
|
|
117
|
-
"action": "Action",
|
|
118
|
-
"attributeName": "Attribute Name",
|
|
119
|
-
"attributeValue": "Attribute Value",
|
|
120
|
-
"buttonLabel": "Button Label",
|
|
121
|
-
"buttonType": "Button Type",
|
|
122
|
-
"buttonStyle": "Button Style",
|
|
123
|
-
"iconCss": "Icon CSS",
|
|
124
|
-
"iconPosition": "Icon Position",
|
|
125
|
-
"disabled": "Disabled",
|
|
126
|
-
"tab": "Tab",
|
|
127
|
-
"Tab 1": "Tab 1",
|
|
128
|
-
"Option 1": "Option 1",
|
|
129
|
-
"cell": "Cell",
|
|
130
|
-
"option": "Option",
|
|
131
|
-
"addNewTab": "+ Add New Tab",
|
|
132
|
-
"addNewOption": "+ Add New Option",
|
|
133
|
-
"addAttribute": "+ Add Attribute",
|
|
134
|
-
"addButton": "+ Add Button",
|
|
135
|
-
"addColumn": "+ Add Column",
|
|
136
|
-
"addRange": "+ Add Range",
|
|
137
|
-
"addHeader": "Add",
|
|
138
|
-
"addFilter": "+ Add Filter",
|
|
139
|
-
"addCondition": "+ Add Condition",
|
|
140
|
-
"column": "Column",
|
|
141
|
-
"deleteColumn": "Delete this column",
|
|
142
|
-
"fieldName": "Field Name",
|
|
143
|
-
"headerText": "Header Text",
|
|
144
|
-
"type": "Type",
|
|
145
|
-
"width": "Width",
|
|
146
|
-
"primaryKey": "Primary Key",
|
|
147
|
-
"string": "String",
|
|
148
|
-
"boolean": "Boolean",
|
|
149
|
-
"selectType": "Select type",
|
|
150
|
-
"uniqueFieldIdentifier": "Unique field identifier",
|
|
151
|
-
"columnHeaderDisplay": "Column header display",
|
|
152
|
-
"columnWidthPlaceholder": "e.g., 150px, 20%",
|
|
153
|
-
"validationRulesFor": "Validation",
|
|
154
|
-
"required": "Required",
|
|
155
|
-
"anotherPrimaryKeySet": "Another column is already set",
|
|
156
|
-
"minLength": "Min Length",
|
|
157
|
-
"maxLength": "Max Length",
|
|
158
|
-
"minimumCharacters": "Minimum characters",
|
|
159
|
-
"maximumCharacters": "Maximum characters",
|
|
160
|
-
"minValue": "Min Value",
|
|
161
|
-
"maxValue": "Max Value",
|
|
162
|
-
"minimumValue": "Minimum value",
|
|
163
|
-
"maximumValue": "Maximum value",
|
|
164
|
-
"minDate": "Min Date",
|
|
165
|
-
"maxDate": "Max Date",
|
|
166
|
-
"importFormSchemaFromFile": "Import Form Schema from File",
|
|
167
|
-
"importFormSchema": "Import Form Schema",
|
|
168
|
-
"importFormSchemaFromUrls": "Import Form Schema from URLs",
|
|
169
|
-
"importSplitSchemas": "Import Schema – Provide a JSON schema to generate a form.",
|
|
170
|
-
"uploadSplitSchemas": "Upload Schema – Upload a JSON schema file to generate a form.",
|
|
171
|
-
"enterUrlsSplitSchemas": "Enter URL for Schema – Provide a URL to fetch a schema and generate a form.",
|
|
172
|
-
"dataSchemaImport": "Data Schema (Optional)",
|
|
173
|
-
"uiSchemaImport": "UI Schema (Optional)",
|
|
174
|
-
"containsFieldDefinitions": "Contains field definitions and validation rules",
|
|
175
|
-
"containsThemeLayout": "Contains theme, layout, and widget definitions",
|
|
176
|
-
"dataSchemaUrl": "Data Schema URL (Optional)",
|
|
177
|
-
"uiSchemaUrl": "UI Schema URL (Optional)",
|
|
178
|
-
"addTagOnBlur": "Add Tag On Blur",
|
|
179
|
-
"addTabs": "Add tabs",
|
|
180
|
-
"alignment": "Alignment",
|
|
181
|
-
"allowAdding": "Allow Adding",
|
|
182
|
-
"allowFiltering": "Allow Filtering",
|
|
183
|
-
"allowCustomValue": "Allow Custom Value",
|
|
184
|
-
"allowDeleting": "Allow Deleting",
|
|
185
|
-
"allowEditing": "Allow Editing",
|
|
186
|
-
"allowExtensions": "Allow Extensions",
|
|
187
|
-
"allowMultiple": "Allow Multiple",
|
|
188
|
-
"allowPaging": "Allow Paging",
|
|
189
|
-
"allowReset": "Allow Reset",
|
|
190
|
-
"autocomplete": "Autocomplete",
|
|
191
|
-
"backgroundColor": "Background Color",
|
|
192
|
-
"buttons": "Buttons",
|
|
193
|
-
"buttonsConfiguration": "Buttons Configuration",
|
|
194
|
-
"cssClass": "CSS Class",
|
|
195
|
-
"calendarMode": "Calendar Mode",
|
|
196
|
-
"simple": "Simple",
|
|
197
|
-
"developer": "Developer",
|
|
198
|
-
"simpleMode": "Simple Mode",
|
|
199
|
-
"developerMode": "Developer Mode",
|
|
200
|
-
"calendarViewDepth": "Calendar View Depth",
|
|
201
|
-
"cardSubtitle": "Card Subtitle",
|
|
202
|
-
"cardTitle": "Card Title",
|
|
203
|
-
"checkboxLabelPosition": "Checkbox Label Position",
|
|
204
|
-
"checkboxOptions": "Checkbox Options",
|
|
205
|
-
"checked": "Checked",
|
|
206
|
-
"cols": "Cols",
|
|
207
|
-
"columnDefinitions": "Columns",
|
|
208
|
-
"containerWidth": "Container Width",
|
|
209
|
-
"columnWidth": "Column Width",
|
|
210
|
-
"setTableColumnWidth": "Set width percentages for each table column",
|
|
211
|
-
"content": "Content",
|
|
212
|
-
"currencyCode": "Currency Code",
|
|
213
|
-
"dayHeaderFormat": "Day Header Format",
|
|
214
|
-
"delimiterCharacter": "Delimiter Character",
|
|
215
|
-
"enableHtmlSanitizer": "Enable HTML Sanitizer",
|
|
216
|
-
"enableMultiple": "Enable Multiple",
|
|
217
|
-
"enableOpacity": "Enable Opacity",
|
|
218
|
-
"enableVirtualization": "Enable Virtualization",
|
|
219
|
-
"fieldLabelPosition": "Field Label Position",
|
|
220
|
-
"floatLabelType": "Float Label Type",
|
|
221
|
-
"format": "Format",
|
|
222
|
-
"gapBetweenButtons": "Gap Between Buttons",
|
|
223
|
-
"htmlAttributes": "HTML Attributes",
|
|
224
|
-
"htmlContent": "HTML Content",
|
|
225
|
-
"height": "Height",
|
|
226
|
-
"hideBorder": "Hide Border",
|
|
227
|
-
"hideLabel": "Hide Label",
|
|
228
|
-
"iconCssClass": "Icon CSS Class",
|
|
229
|
-
"indeterminate": "Indeterminate",
|
|
230
|
-
"dataSource": "DataSource",
|
|
231
|
-
"data": "Data",
|
|
232
|
-
"initialView": "Initial View (Start Property)",
|
|
233
|
-
"items": "Items",
|
|
234
|
-
"itemsCount": "Items Count",
|
|
235
|
-
"label": "Label",
|
|
236
|
-
"labelPosition": "Label Position",
|
|
237
|
-
"labelWidth": "Label Width",
|
|
238
|
-
"layoutDirection": "Layout Direction",
|
|
239
|
-
"mask": "Mask",
|
|
240
|
-
"maximumDate": "Maximum Date",
|
|
241
|
-
"maximumFileSize": "Maximum File Size",
|
|
242
|
-
"maximumLength": "Maximum Length",
|
|
243
|
-
"maximumStrokeWidth": "Maximum Stroke Width",
|
|
244
|
-
"maximumTime": "Maximum Time",
|
|
245
|
-
"minimum": "Minimum",
|
|
246
|
-
"minimumDate": "Minimum Date",
|
|
247
|
-
"minimumFileSize": "Minimum File Size",
|
|
248
|
-
"minimumLength": "Minimum Length",
|
|
249
|
-
"minimumStrokeWidth": "Minimum Stroke Width",
|
|
250
|
-
"minimumTime": "Minimum Time",
|
|
251
|
-
"multiline": "Multiline",
|
|
252
|
-
"on": "On",
|
|
253
|
-
"off": "Off",
|
|
254
|
-
"offText": "Off Text",
|
|
255
|
-
"onText": "On Text",
|
|
256
|
-
"options": "Options",
|
|
257
|
-
"pageSize": "Page Size",
|
|
258
|
-
"size": "Size",
|
|
259
|
-
"placeholder": "Placeholder",
|
|
260
|
-
"popupHeight": "Popup Height",
|
|
261
|
-
"popupWidth": "Popup Width",
|
|
262
|
-
"promptCharacter": "Prompt Character",
|
|
263
|
-
"ratingLabelPosition": "Rating Label Position",
|
|
264
|
-
"readOnly": "Read Only",
|
|
265
|
-
"regularExpressionPattern": "Regular Expression Pattern",
|
|
266
|
-
"removeUrl": "Remove URL",
|
|
267
|
-
"rows": "Rows",
|
|
268
|
-
"saveUrl": "Save URL",
|
|
269
|
-
"selectAllText": "Select All Text",
|
|
270
|
-
"severity": "Severity",
|
|
271
|
-
"showButtons": "Show Buttons",
|
|
272
|
-
"showClearButton": "Show Clear Button",
|
|
273
|
-
"showCloseIcon": "Show Close Icon",
|
|
274
|
-
"showDropdownIcon": "Show DropDown Icon",
|
|
275
|
-
"showFileList": "Show File List",
|
|
276
|
-
"showIcon": "Show Icon",
|
|
277
|
-
"showNoColor": "Show No Color",
|
|
278
|
-
"showRatingLabel": "Show Rating Label",
|
|
279
|
-
"showRatingTooltip": "Show Rating Tooltip",
|
|
280
|
-
"showRecentColors": "Show Recent Colors",
|
|
281
|
-
"showSelectAll": "Show Select All",
|
|
282
|
-
"showTodayButton": "Show Today Button",
|
|
283
|
-
"spacingBetweenItems": "Spacing Between Items",
|
|
284
|
-
"step": "Step",
|
|
285
|
-
"strokeColor": "Stroke Color",
|
|
286
|
-
"style": "Style",
|
|
287
|
-
"tooltip": "Tooltip",
|
|
288
|
-
"unselectAllText": "Unselect All Text",
|
|
289
|
-
"validateOn": "ValidateOn",
|
|
290
|
-
"validationMessage": "Error Message",
|
|
291
|
-
"value": "Value",
|
|
292
|
-
"variant": "Variant",
|
|
293
|
-
"velocity": "Velocity",
|
|
294
|
-
"visualMode": "Visual Mode",
|
|
295
|
-
"startIndex": "Start Index",
|
|
296
|
-
"startIndexDescription": "Starting number for auto-increment sequence",
|
|
297
|
-
"charForPlaceholder": "Character for placeholder",
|
|
298
|
-
"enterHtmlCode": "Enter HTML code",
|
|
299
|
-
"allowedExtensionsFormat": "Pass allowedExtensions as \".jpg,.png\".",
|
|
300
|
-
"pasteJsonArrayRecords": "Paste JSON array of records (optional)",
|
|
301
|
-
"provideCustomValidationMessage": "Provide a custom validation message",
|
|
302
|
-
"providePlaceholder": "Provide a placeholder",
|
|
303
|
-
"provideDescription": "Provide a description",
|
|
304
|
-
"providePrefix": "Provide a prefix",
|
|
305
|
-
"provideSuffix": "Provide a suffix",
|
|
306
|
-
"selectDatePlaceholder": "Select date",
|
|
307
|
-
"selectInitialDateTime": "Select initial date and time",
|
|
308
|
-
"selectInitialTime": "Select initial time",
|
|
309
|
-
"selectMaximumDate": "Select maximum date",
|
|
310
|
-
"selectMaximumTime": "Select maximum time",
|
|
311
|
-
"selectMinimumDate": "Select minimum date",
|
|
312
|
-
"selectMinimumTime": "Select minimum time",
|
|
313
|
-
"selectStartEndDates": "Select start and end dates",
|
|
314
|
-
"percentageCalculationHint": "calculates in percentage (e.g., 30)",
|
|
315
|
-
"phoneFormatExample": "e.g., (999)999-9999 for phone",
|
|
316
|
-
"timeFormatEvening": "e.g., 05:00 PM",
|
|
317
|
-
"timeFormatMorning": "e.g., 09:00 AM",
|
|
318
|
-
"widthFormatFlexible": "e.g., 100%, 400px, auto",
|
|
319
|
-
"widthFormatExample1": "e.g., 100%, 500px",
|
|
320
|
-
"widthFormatExample2": "e.g., 100%, 800px",
|
|
321
|
-
"dimensionFormatExample1": "e.g., 200px, 50vh",
|
|
322
|
-
"dimensionFormatExample2": "e.g., 300px, 400px",
|
|
323
|
-
"dimensionFormatExample3": "e.g., 300px, 50%",
|
|
324
|
-
"dimensionFormatExample4": "e.g., 300px, 50%, 100%",
|
|
325
|
-
"spacingFormatExample1": "e.g., 4px, 0.5rem, 1em",
|
|
326
|
-
"spacingFormatExample2": "e.g., 8px, 1rem",
|
|
327
|
-
"currencyCodeExample": "e.g., USD, EUR",
|
|
328
|
-
"arrayItemsExample": "e.g., [\"item1\", \"item2\"]",
|
|
329
|
-
"dataAttributeExample1": "e.g., data-test, aria-label",
|
|
330
|
-
"dataAttributeExample2": "e.g., data-test, aria-label, etc.",
|
|
331
|
-
"cssIconExample": "e.g., e-icon-close, fa fa-icon",
|
|
332
|
-
"numberFormatExample": "e.g., n2, c2",
|
|
333
|
-
"abbreviated": "Abbreviated",
|
|
334
|
-
"headers": "Request Headers",
|
|
335
|
-
"headerKey": "Key ",
|
|
336
|
-
"endpointUrl": "Endpoint URL",
|
|
337
|
-
"enterUrl": "Enter API endpoint URL",
|
|
338
|
-
"queryConfiguration": "Query Configuration",
|
|
339
|
-
"adaptorType": "Adaptor Type",
|
|
340
|
-
"dataPath": "Data Path",
|
|
341
|
-
"dataPathPlaceholder": "e.g., results.items",
|
|
342
|
-
"addQueryParams": "Add query params",
|
|
343
|
-
"enableSearch": "Enable Search",
|
|
344
|
-
"queryParameterName": "Param name",
|
|
345
|
-
"fieldToSearch": "Use {fieldName} to reference form field values at runtime. ",
|
|
346
|
-
"fieldsToSearchIn": "Fields to search in (e.g., 'name, email')",
|
|
347
|
-
'sort': "Sort",
|
|
348
|
-
"enableSort": "Enable Sort",
|
|
349
|
-
"fieldToSortBy": "Field to sort by (e.g., 'name')",
|
|
350
|
-
"ascending": "Ascending",
|
|
351
|
-
"descending": "Descending",
|
|
352
|
-
"filters": "Filters",
|
|
353
|
-
"fieldStatus": "Field (e.g., 'status')",
|
|
354
|
-
"offset": "Offset",
|
|
355
|
-
"limit": "Limit",
|
|
356
|
-
"skipOffset": "Skip (offset)",
|
|
357
|
-
"takeLimit": "Take (limit)",
|
|
358
|
-
"after": "After",
|
|
359
|
-
"always": "Always",
|
|
360
|
-
"defaultTabValue": "Tab 1",
|
|
361
|
-
"defaultOptionValue": "Option 1",
|
|
362
|
-
"auto": "Auto",
|
|
363
|
-
"before": "Before",
|
|
364
|
-
"blur": "Blur",
|
|
365
|
-
"bottom": "Bottom",
|
|
366
|
-
"box": "Box",
|
|
367
|
-
"center": "Center",
|
|
368
|
-
"change": "Change",
|
|
369
|
-
"decade": "Decade",
|
|
370
|
-
"default": "Default",
|
|
371
|
-
"delimiter": "Delimiter",
|
|
372
|
-
"email": "Email",
|
|
373
|
-
"error": "Error",
|
|
374
|
-
"filled": "Filled",
|
|
375
|
-
"flat": "Flat",
|
|
376
|
-
"gregorian": "Gregorian",
|
|
377
|
-
"information": "Information",
|
|
378
|
-
"islamic": "Islamic",
|
|
379
|
-
"left": "Left",
|
|
380
|
-
"month": "Month",
|
|
381
|
-
"narrow": "Narrow",
|
|
382
|
-
"never": "Never",
|
|
383
|
-
"outlined": "Outlined",
|
|
384
|
-
"password": "Password",
|
|
385
|
-
"primary": "Primary",
|
|
386
|
-
"reset": "Reset",
|
|
387
|
-
"right": "Right",
|
|
388
|
-
"row": "Row",
|
|
389
|
-
"selectAll": "Select All",
|
|
390
|
-
"short": "Short",
|
|
391
|
-
"standard": "Standard",
|
|
392
|
-
"submit": "Submit",
|
|
393
|
-
"success": "Success",
|
|
394
|
-
"text": "Text",
|
|
395
|
-
"top": "Top",
|
|
396
|
-
"unselectAll": "Unselect All",
|
|
397
|
-
"url": "URL",
|
|
398
|
-
"warning": "Warning",
|
|
399
|
-
"wide": "Wide",
|
|
400
|
-
"year": "Year",
|
|
401
|
-
"n2": "n2",
|
|
402
|
-
"tags": "Tags",
|
|
403
|
-
"rawData": "Raw Data",
|
|
404
|
-
"remoteUrl": "Remote URL",
|
|
405
|
-
"selectFormName": "Select form name",
|
|
406
|
-
"selectField": "Select field",
|
|
407
|
-
"selectFormSubmissions": "Select a form to populate grid with its submission data",
|
|
408
|
-
"creatorsettings": "Creator Settings",
|
|
409
|
-
"condition": "Condition",
|
|
410
|
-
"expression": "Expression value",
|
|
411
|
-
"expressionDesc": "Set computed field value based on other fields",
|
|
412
|
-
"expressionPlaceholder": "e.g., {qty} * {price}",
|
|
413
|
-
"useFieldValue": "Use field value",
|
|
414
|
-
"conditionalVisibility": "Conditional Visibility",
|
|
415
|
-
"conditionalHide": "Conditional Hide",
|
|
416
|
-
"conditionalVisibilityDescription": "Show this field when the following condition is true:",
|
|
417
|
-
"conditionalHideDescription": "Hide this field when the following condition is true:",
|
|
418
|
-
"conditionalReadOnly": "Conditional Read-Only",
|
|
419
|
-
"conditionalRequired": "Conditional Required",
|
|
420
|
-
"conditionalRequiredDescription": "Make this field required when the following condition is true:",
|
|
421
|
-
"conditionalSetValue": "Set Value When",
|
|
422
|
-
"conditionalSetValueDescription": "Set the field dynamic value when the following condition is true:",
|
|
423
|
-
"setValue": "Value:",
|
|
424
|
-
"conditionalReadOnlyDescription": "Make this field read-only (non-editable) when:",
|
|
425
|
-
"conditionalDisable": "Conditional Disable",
|
|
426
|
-
"conditionalDisableDescription": "Disable this field (grayed out, excluded from validation) when:",
|
|
427
|
-
"configureCheckboxGroupOptions": "Configure checkbox group options",
|
|
428
|
-
"configureDropdownOptions": "Configure dropdown options",
|
|
429
|
-
"configureMultiselectOptions": "Configure multiselect options",
|
|
430
|
-
"configureRadioButtonOptions": "Configure radio button options",
|
|
431
|
-
"configureSplitButtonItems": "Configure split button items",
|
|
432
|
-
"choiceBasedField": "Choice-Based Field",
|
|
433
|
-
"choiceBasedFieldDescription": "Map dependent field options based on primary field selection",
|
|
434
|
-
"selectPrimaryField": "Select Primary Field",
|
|
435
|
-
"selectPrimaryOption": "Select Option",
|
|
436
|
-
"selectDependentOptions": "Select Dependent Options",
|
|
437
|
-
"defineGridColumnsWithValidation": "Define grid columns with validation rules per column type",
|
|
438
|
-
"enableVirtualScrollingForLargeData": "Enable virtual scrolling for large datasets",
|
|
439
|
-
"hideLabelDescription": "Hide field labels and only show input elements",
|
|
440
|
-
"sizeDescription": "The overall size of form elements",
|
|
441
|
-
"floatLabelTypeDescription": "Controls how labels float when interacting with input fields",
|
|
442
|
-
"conditionalData": "Conditional Data",
|
|
443
|
-
"customizeColumns": "Customize columns",
|
|
444
|
-
"conditionalDataDescription": "Set the data source based on form field conditions",
|
|
445
|
-
"conditionalDataConditionDescription": "Define when this data source should be applied",
|
|
446
|
-
"customValidation": "Custom Validation",
|
|
447
|
-
"customValidationErrorMessage": "Validation message is required",
|
|
448
|
-
"customValidationDescription": "Write validation conditions using expressions."
|
|
449
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type { FormSchema, Schema } from '../types/FormSchema';
|
|
4
|
-
interface FormSchemaProviderProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
enablePersistence?: boolean;
|
|
7
|
-
/** Optional initial schema provided by a parent (e.g. Dashboard) */
|
|
8
|
-
initialSchema?: FormSchema | Schema;
|
|
9
|
-
/** Flag indicating if the form is a dashboard template */
|
|
10
|
-
dashboardTemplate?: boolean;
|
|
11
|
-
mode?: 'Simple' | 'Developer';
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Context for managing form schema state
|
|
15
|
-
*/
|
|
16
|
-
interface FormSchemaContextType {
|
|
17
|
-
formSchema: FormSchema;
|
|
18
|
-
setFormSchema: (schema: FormSchema | ((prev: FormSchema) => FormSchema)) => void;
|
|
19
|
-
mode?: 'Simple' | 'Developer';
|
|
20
|
-
}
|
|
21
|
-
export declare const FormSchemaContext: React.Context<FormSchemaContextType>;
|
|
22
|
-
/**
|
|
23
|
-
* Hook to use FormSchema context
|
|
24
|
-
* Must be used within FormSchemaProvider
|
|
25
|
-
*/
|
|
26
|
-
export declare const useFormSchema: () => FormSchemaContextType;
|
|
27
|
-
/**
|
|
28
|
-
* FormSchemaProvider manages the form schema state with localStorage persistence
|
|
29
|
-
* Similar pattern to ThemeProvider - automatically saves to localStorage on changes
|
|
30
|
-
*/
|
|
31
|
-
export declare const FormSchemaProvider: ({ children, enablePersistence, initialSchema, dashboardTemplate, mode }: FormSchemaProviderProps) => React.JSX.Element;
|
|
32
|
-
export default FormSchemaProvider;
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { useMemo, useEffect, createContext, useContext, useCallback } from 'react';
|
|
4
|
-
import { defaultFormSchema } from './defaultFormSchema';
|
|
5
|
-
import { UniversalJsonParser } from '../../Common/parser';
|
|
6
|
-
import { ClipboardHelper } from '../utils/ClipboardHelper';
|
|
7
|
-
import { isDefaultFormSchema } from '../components/layout/MainSection';
|
|
8
|
-
// Create the FormSchema context
|
|
9
|
-
export const FormSchemaContext = createContext(undefined);
|
|
10
|
-
/**
|
|
11
|
-
* Hook to use FormSchema context
|
|
12
|
-
* Must be used within FormSchemaProvider
|
|
13
|
-
*/
|
|
14
|
-
export const useFormSchema = () => {
|
|
15
|
-
const context = useContext(FormSchemaContext);
|
|
16
|
-
if (!context) {
|
|
17
|
-
throw new Error('useFormSchema must be used within FormSchemaProvider');
|
|
18
|
-
}
|
|
19
|
-
return context;
|
|
20
|
-
};
|
|
21
|
-
// Helper: Get storage key based on mode
|
|
22
|
-
const getStorageKey = (mode) => {
|
|
23
|
-
return mode ? `formSchema-${mode.toLowerCase()}` : 'formSchema';
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* FormSchemaProvider manages the form schema state with localStorage persistence
|
|
27
|
-
* Similar pattern to ThemeProvider - automatically saves to localStorage on changes
|
|
28
|
-
*/
|
|
29
|
-
export const FormSchemaProvider = ({ children, enablePersistence = false, initialSchema, dashboardTemplate = false, mode }) => {
|
|
30
|
-
const [currentMode, setCurrentMode] = React.useState(mode);
|
|
31
|
-
// Initialize formSchema from provided initialSchema, temp localStorage, persisted storage, or default
|
|
32
|
-
const [formSchema, setFormSchemaState] = React.useState(() => {
|
|
33
|
-
try {
|
|
34
|
-
const isInitialShema = isDefaultFormSchema(initialSchema);
|
|
35
|
-
// Priority 1: explicit initialSchema prop (on-demand load)
|
|
36
|
-
if (!isInitialShema) {
|
|
37
|
-
try {
|
|
38
|
-
// If initialSchema already matches FormSchema shape (has components), use it
|
|
39
|
-
if (Array.isArray(initialSchema.components)) {
|
|
40
|
-
console.log('Loaded form schema from initialSchema prop');
|
|
41
|
-
return initialSchema;
|
|
42
|
-
}
|
|
43
|
-
// Otherwise attempt to parse/convert the provided payload into our FormSchema
|
|
44
|
-
const parser = new UniversalJsonParser();
|
|
45
|
-
const parsed = parser.parse(initialSchema);
|
|
46
|
-
if (parsed && parsed.success && parsed.schema) {
|
|
47
|
-
console.log('Parsed initialSchema prop into FormSchema (format:', parsed.metadata.detectedFormat, ')');
|
|
48
|
-
return parsed.schema;
|
|
49
|
-
}
|
|
50
|
-
console.warn('initialSchema provided could not be normalized to FormSchema, falling back to defaults');
|
|
51
|
-
}
|
|
52
|
-
catch (err) {
|
|
53
|
-
console.warn('Error while parsing initialSchema prop, falling back to defaults', err);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
// Priority 2: one-time prefill from Dashboard (temp_form_schema) for backward compatibility
|
|
57
|
-
const temp = localStorage.getItem('temp_form_schema');
|
|
58
|
-
if (temp) {
|
|
59
|
-
try {
|
|
60
|
-
const parsedTemp = JSON.parse(temp);
|
|
61
|
-
localStorage.removeItem('temp_form_schema');
|
|
62
|
-
console.log('Loaded form schema from temp_form_schema');
|
|
63
|
-
return parsedTemp;
|
|
64
|
-
}
|
|
65
|
-
catch (err) {
|
|
66
|
-
console.warn('Invalid temp_form_schema, ignoring');
|
|
67
|
-
localStorage.removeItem('temp_form_schema');
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
// Priority 3: persisted form schema if persistence enabled (mode-specific)
|
|
71
|
-
if (enablePersistence) {
|
|
72
|
-
const storageKey = getStorageKey(mode);
|
|
73
|
-
const savedSchema = localStorage.getItem(storageKey);
|
|
74
|
-
if (savedSchema) {
|
|
75
|
-
const parsed = JSON.parse(savedSchema);
|
|
76
|
-
console.log(`Loaded form schema from localStorage (${storageKey})`);
|
|
77
|
-
return parsed;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (error) {
|
|
82
|
-
console.error('Failed to parse formSchema from storage:', error);
|
|
83
|
-
}
|
|
84
|
-
return defaultFormSchema;
|
|
85
|
-
});
|
|
86
|
-
// Effect: Handle mode changes - save current schema and load schema for new mode
|
|
87
|
-
useEffect(() => {
|
|
88
|
-
if (mode !== currentMode && enablePersistence) {
|
|
89
|
-
// Save current schema before switching
|
|
90
|
-
if (currentMode) {
|
|
91
|
-
try {
|
|
92
|
-
const oldKey = getStorageKey(currentMode);
|
|
93
|
-
localStorage.setItem(oldKey, JSON.stringify(formSchema));
|
|
94
|
-
}
|
|
95
|
-
catch (error) {
|
|
96
|
-
console.error('Failed to save schema before mode switch:', error);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
// Load schema for new mode
|
|
100
|
-
setCurrentMode(mode);
|
|
101
|
-
try {
|
|
102
|
-
const newKey = getStorageKey(mode);
|
|
103
|
-
const savedSchema = localStorage.getItem(newKey);
|
|
104
|
-
if (savedSchema) {
|
|
105
|
-
setFormSchemaState(JSON.parse(savedSchema));
|
|
106
|
-
console.log(`Loaded schema from ${newKey}`);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
setFormSchemaState(defaultFormSchema);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
catch (error) {
|
|
113
|
-
console.error('Failed to load schema for new mode:', error);
|
|
114
|
-
setFormSchemaState(defaultFormSchema);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, [mode, currentMode, enablePersistence, formSchema]);
|
|
118
|
-
// Effect: Persist form schema to localStorage when it changes
|
|
119
|
-
useEffect(() => {
|
|
120
|
-
if (enablePersistence && currentMode) {
|
|
121
|
-
try {
|
|
122
|
-
const storageKey = getStorageKey(currentMode);
|
|
123
|
-
localStorage.setItem(storageKey, JSON.stringify(formSchema));
|
|
124
|
-
}
|
|
125
|
-
catch (error) {
|
|
126
|
-
console.error('Failed to save formSchema to localStorage:', error);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}, [formSchema, enablePersistence, currentMode]);
|
|
130
|
-
// Stable setFormSchema callback - never changes reference
|
|
131
|
-
const setFormSchema = useCallback((schema) => {
|
|
132
|
-
setFormSchemaState(schema);
|
|
133
|
-
}, []);
|
|
134
|
-
// Effect to show confirmation dialog when user tries to refresh or navigate away
|
|
135
|
-
useEffect(() => {
|
|
136
|
-
const handleBeforeUnload = (e) => {
|
|
137
|
-
e.preventDefault();
|
|
138
|
-
e.returnValue = '';
|
|
139
|
-
return '';
|
|
140
|
-
};
|
|
141
|
-
if (!enablePersistence && !dashboardTemplate) {
|
|
142
|
-
window.addEventListener('beforeunload', handleBeforeUnload);
|
|
143
|
-
}
|
|
144
|
-
return () => {
|
|
145
|
-
ClipboardHelper.clearData();
|
|
146
|
-
if (!enablePersistence && !dashboardTemplate) {
|
|
147
|
-
window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
}, [formSchema]);
|
|
151
|
-
// Memoize the context value to prevent unnecessary re-renders
|
|
152
|
-
const value = useMemo(() => ({ formSchema, setFormSchema, mode: currentMode }), [formSchema, setFormSchema, currentMode]);
|
|
153
|
-
return (_jsx(FormSchemaContext.Provider, { value: value, children: children }));
|
|
154
|
-
};
|
|
155
|
-
export default FormSchemaProvider;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import { L10n } from '@syncfusion/ej2-base';
|
|
4
|
-
interface LocalizationProviderProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
locale?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Context for managing localization state
|
|
10
|
-
*/
|
|
11
|
-
interface LocalizationContextType {
|
|
12
|
-
l10n: L10n;
|
|
13
|
-
locale: string;
|
|
14
|
-
setLocale: (locale: string) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const LocalizationContext: React.Context<LocalizationContextType>;
|
|
17
|
-
/**
|
|
18
|
-
* Hook to use Localization context
|
|
19
|
-
* Must be used within LocalizationProvider
|
|
20
|
-
*/
|
|
21
|
-
export declare const useLocalization: () => LocalizationContextType;
|
|
22
|
-
/**
|
|
23
|
-
* LocalizationProvider manages the localization state with L10n
|
|
24
|
-
* Provides L10n instance to all components in the tree
|
|
25
|
-
*/
|
|
26
|
-
export declare const LocalizationProvider: ({ children, locale }: LocalizationProviderProps) => React.JSX.Element;
|
|
27
|
-
export default LocalizationProvider;
|