@rjsf/core 6.0.0-beta.8 → 6.0.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 +2 -0
- package/dist/core.umd.js +2042 -1987
- package/dist/index.cjs +4909 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.esm.js +2509 -2389
- package/dist/index.esm.js.map +4 -4
- package/lib/components/Form.d.ts +137 -34
- package/lib/components/Form.d.ts.map +1 -1
- package/lib/components/Form.js +318 -173
- package/lib/components/fields/ArrayField.d.ts +2 -187
- package/lib/components/fields/ArrayField.d.ts.map +1 -1
- package/lib/components/fields/ArrayField.js +526 -492
- package/lib/components/fields/BooleanField.d.ts.map +1 -1
- package/lib/components/fields/BooleanField.js +8 -3
- package/lib/components/fields/FallbackField.d.ts +7 -0
- package/lib/components/fields/FallbackField.d.ts.map +1 -0
- package/lib/components/fields/FallbackField.js +72 -0
- package/lib/components/fields/LayoutGridField.d.ts +109 -186
- package/lib/components/fields/LayoutGridField.d.ts.map +1 -1
- package/lib/components/fields/LayoutGridField.js +426 -426
- package/lib/components/fields/LayoutHeaderField.d.ts +1 -1
- package/lib/components/fields/LayoutHeaderField.js +3 -3
- package/lib/components/fields/LayoutMultiSchemaField.d.ts.map +1 -1
- package/lib/components/fields/LayoutMultiSchemaField.js +6 -6
- package/lib/components/fields/MultiSchemaField.d.ts.map +1 -1
- package/lib/components/fields/MultiSchemaField.js +16 -10
- package/lib/components/fields/NullField.js +3 -3
- package/lib/components/fields/NumberField.d.ts.map +1 -1
- package/lib/components/fields/NumberField.js +3 -3
- package/lib/components/fields/ObjectField.d.ts +2 -68
- package/lib/components/fields/ObjectField.d.ts.map +1 -1
- package/lib/components/fields/ObjectField.js +163 -163
- package/lib/components/fields/OptionalDataControlsField.d.ts +8 -0
- package/lib/components/fields/OptionalDataControlsField.d.ts.map +1 -0
- package/lib/components/fields/OptionalDataControlsField.js +43 -0
- package/lib/components/fields/SchemaField.d.ts.map +1 -1
- package/lib/components/fields/SchemaField.js +52 -30
- package/lib/components/fields/StringField.d.ts.map +1 -1
- package/lib/components/fields/StringField.js +8 -3
- package/lib/components/fields/index.d.ts.map +1 -1
- package/lib/components/fields/index.js +4 -0
- package/lib/components/templates/ArrayFieldDescriptionTemplate.d.ts +1 -1
- package/lib/components/templates/ArrayFieldDescriptionTemplate.js +3 -3
- package/lib/components/templates/ArrayFieldItemButtonsTemplate.d.ts +3 -3
- package/lib/components/templates/ArrayFieldItemButtonsTemplate.d.ts.map +1 -1
- package/lib/components/templates/ArrayFieldItemButtonsTemplate.js +3 -8
- package/lib/components/templates/ArrayFieldItemTemplate.d.ts +3 -3
- package/lib/components/templates/ArrayFieldItemTemplate.d.ts.map +1 -1
- package/lib/components/templates/ArrayFieldItemTemplate.js +1 -1
- package/lib/components/templates/ArrayFieldTemplate.d.ts +1 -1
- package/lib/components/templates/ArrayFieldTemplate.d.ts.map +1 -1
- package/lib/components/templates/ArrayFieldTemplate.js +4 -5
- package/lib/components/templates/ArrayFieldTitleTemplate.d.ts +1 -1
- package/lib/components/templates/ArrayFieldTitleTemplate.d.ts.map +1 -1
- package/lib/components/templates/ArrayFieldTitleTemplate.js +3 -3
- package/lib/components/templates/BaseInputTemplate.js +2 -2
- package/lib/components/templates/ButtonTemplates/AddButton.d.ts +1 -1
- package/lib/components/templates/ButtonTemplates/AddButton.d.ts.map +1 -1
- package/lib/components/templates/ButtonTemplates/AddButton.js +2 -2
- package/lib/components/templates/FallbackFieldTemplate.d.ts +7 -0
- package/lib/components/templates/FallbackFieldTemplate.d.ts.map +1 -0
- package/lib/components/templates/FallbackFieldTemplate.js +12 -0
- package/lib/components/templates/FieldErrorTemplate.js +2 -2
- package/lib/components/templates/FieldHelpTemplate.js +2 -2
- package/lib/components/templates/MultiSchemaFieldTemplate.d.ts +8 -0
- package/lib/components/templates/MultiSchemaFieldTemplate.d.ts.map +1 -0
- package/lib/components/templates/MultiSchemaFieldTemplate.js +10 -0
- package/lib/components/templates/ObjectFieldTemplate.d.ts.map +1 -1
- package/lib/components/templates/ObjectFieldTemplate.js +3 -2
- package/lib/components/templates/OptionalDataControlsTemplate.d.ts +11 -0
- package/lib/components/templates/OptionalDataControlsTemplate.d.ts.map +1 -0
- package/lib/components/templates/OptionalDataControlsTemplate.js +20 -0
- package/lib/components/templates/TitleField.d.ts.map +1 -1
- package/lib/components/templates/TitleField.js +2 -2
- package/lib/components/templates/UnsupportedField.js +3 -3
- package/lib/components/templates/WrapIfAdditionalTemplate.js +2 -2
- package/lib/components/templates/index.d.ts.map +1 -1
- package/lib/components/templates/index.js +6 -0
- package/lib/components/widgets/AltDateWidget.d.ts +1 -1
- package/lib/components/widgets/AltDateWidget.d.ts.map +1 -1
- package/lib/components/widgets/AltDateWidget.js +5 -46
- package/lib/components/widgets/CheckboxWidget.d.ts +1 -1
- package/lib/components/widgets/CheckboxWidget.d.ts.map +1 -1
- package/lib/components/widgets/CheckboxWidget.js +2 -2
- package/lib/components/widgets/CheckboxesWidget.d.ts +1 -1
- package/lib/components/widgets/CheckboxesWidget.d.ts.map +1 -1
- package/lib/components/widgets/CheckboxesWidget.js +4 -4
- package/lib/components/widgets/FileWidget.d.ts.map +1 -1
- package/lib/components/widgets/FileWidget.js +7 -87
- package/lib/components/widgets/HiddenWidget.d.ts +1 -1
- package/lib/components/widgets/HiddenWidget.d.ts.map +1 -1
- package/lib/components/widgets/HiddenWidget.js +2 -2
- package/lib/components/widgets/RadioWidget.d.ts +1 -1
- package/lib/components/widgets/RadioWidget.d.ts.map +1 -1
- package/lib/components/widgets/RadioWidget.js +2 -2
- package/lib/components/widgets/RatingWidget.d.ts +1 -1
- package/lib/components/widgets/RatingWidget.d.ts.map +1 -1
- package/lib/components/widgets/RatingWidget.js +2 -2
- package/lib/components/widgets/SelectWidget.d.ts +1 -1
- package/lib/components/widgets/SelectWidget.d.ts.map +1 -1
- package/lib/components/widgets/SelectWidget.js +2 -2
- package/lib/components/widgets/TextareaWidget.d.ts +1 -1
- package/lib/components/widgets/TextareaWidget.d.ts.map +1 -1
- package/lib/components/widgets/TextareaWidget.js +2 -2
- package/lib/getDefaultRegistry.d.ts.map +1 -1
- package/lib/getDefaultRegistry.js +6 -1
- package/lib/getTestRegistry.d.ts +5 -0
- package/lib/getTestRegistry.d.ts.map +1 -0
- package/lib/getTestRegistry.js +23 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +35 -20
- package/src/components/Form.tsx +468 -206
- package/src/components/fields/ArrayField.tsx +871 -723
- package/src/components/fields/BooleanField.tsx +14 -5
- package/src/components/fields/FallbackField.tsx +157 -0
- package/src/components/fields/LayoutGridField.tsx +626 -603
- package/src/components/fields/LayoutHeaderField.tsx +3 -3
- package/src/components/fields/LayoutMultiSchemaField.tsx +9 -10
- package/src/components/fields/MultiSchemaField.tsx +57 -36
- package/src/components/fields/NullField.tsx +3 -3
- package/src/components/fields/NumberField.tsx +11 -3
- package/src/components/fields/ObjectField.tsx +308 -239
- package/src/components/fields/OptionalDataControlsField.tsx +84 -0
- package/src/components/fields/SchemaField.tsx +75 -94
- package/src/components/fields/StringField.tsx +14 -5
- package/src/components/fields/index.ts +4 -0
- package/src/components/templates/ArrayFieldDescriptionTemplate.tsx +3 -3
- package/src/components/templates/ArrayFieldItemButtonsTemplate.tsx +16 -21
- package/src/components/templates/ArrayFieldItemTemplate.tsx +3 -3
- package/src/components/templates/ArrayFieldTemplate.tsx +11 -18
- package/src/components/templates/ArrayFieldTitleTemplate.tsx +4 -3
- package/src/components/templates/BaseInputTemplate.tsx +5 -5
- package/src/components/templates/ButtonTemplates/AddButton.tsx +2 -0
- package/src/components/templates/FallbackFieldTemplate.tsx +28 -0
- package/src/components/templates/FieldErrorTemplate.tsx +2 -2
- package/src/components/templates/FieldHelpTemplate.tsx +2 -2
- package/src/components/templates/MultiSchemaFieldTemplate.tsx +20 -0
- package/src/components/templates/ObjectFieldTemplate.tsx +12 -7
- package/src/components/templates/OptionalDataControlsTemplate.tsx +43 -0
- package/src/components/templates/TitleField.tsx +6 -1
- package/src/components/templates/UnsupportedField.tsx +3 -3
- package/src/components/templates/WrapIfAdditionalTemplate.tsx +5 -5
- package/src/components/templates/index.ts +6 -0
- package/src/components/widgets/AltDateWidget.tsx +8 -126
- package/src/components/widgets/CheckboxWidget.tsx +4 -3
- package/src/components/widgets/CheckboxesWidget.tsx +5 -4
- package/src/components/widgets/FileWidget.tsx +11 -102
- package/src/components/widgets/HiddenWidget.tsx +2 -1
- package/src/components/widgets/RadioWidget.tsx +3 -2
- package/src/components/widgets/RatingWidget.tsx +2 -1
- package/src/components/widgets/SelectWidget.tsx +3 -2
- package/src/components/widgets/TextareaWidget.tsx +3 -2
- package/src/getDefaultRegistry.ts +14 -1
- package/src/getTestRegistry.tsx +38 -0
- package/src/index.ts +2 -1
- package/dist/index.js +0 -4834
- package/dist/index.js.map +0 -7
package/lib/components/Form.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, ElementType, FormEvent, ReactNode, Ref, RefObject } from 'react';
|
|
2
|
-
import { CustomValidator, ErrorSchema, ErrorTransformer,
|
|
2
|
+
import { CustomValidator, ErrorSchema, ErrorSchemaBuilder, ErrorTransformer, FieldPathId, FieldPathList, FormContextType, PathSchema, StrictRJSFSchema, Registry, RegistryFieldsType, RegistryWidgetsType, RJSFSchema, RJSFValidationError, SchemaUtilsType, TemplatesType, UiSchema, ValidationData, ValidatorType, Experimental_DefaultFormStateBehavior, Experimental_CustomMergeAllOf, NameGeneratorFunction } from '@rjsf/utils';
|
|
3
3
|
/** The properties that are passed to the `Form` */
|
|
4
4
|
export interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> {
|
|
5
5
|
/** The JSON schema object for the form */
|
|
@@ -10,8 +10,14 @@ export interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
|
|
|
10
10
|
children?: ReactNode;
|
|
11
11
|
/** The uiSchema for the form */
|
|
12
12
|
uiSchema?: UiSchema<T, S, F>;
|
|
13
|
-
/** The data for the form, used to
|
|
13
|
+
/** The data for the form, used to load a "controlled" form with its current data. If you want an "uncontrolled" form
|
|
14
|
+
* with initial data, then use `initialFormData` instead.
|
|
15
|
+
*/
|
|
14
16
|
formData?: T;
|
|
17
|
+
/** The initial data for the form, used to fill an "uncontrolled" form with existing data on the initial render and
|
|
18
|
+
* when `reset()` is called programmatically.
|
|
19
|
+
*/
|
|
20
|
+
initialFormData?: T;
|
|
15
21
|
/** You can provide a `formContext` object to the form, which is passed down to all fields and widgets. Useful for
|
|
16
22
|
* implementing context aware fields and widgets.
|
|
17
23
|
*
|
|
@@ -110,14 +116,28 @@ export interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
|
|
|
110
116
|
* @deprecated - In a future release, this switch may be replaced by making `validator` prop optional
|
|
111
117
|
*/
|
|
112
118
|
noValidate?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* rather than just on submit
|
|
119
|
+
/** Flag that describes when live validation will be performed. Live validation means that the form will perform
|
|
120
|
+
* validation and show any validation errors whenever the form data is updated, rather than just on submit.
|
|
121
|
+
*
|
|
122
|
+
* If no value (or `false`) is provided, then live validation will not happen. If `true` or `onChange` is provided for
|
|
123
|
+
* the flag, then live validation will be performed after processing of all pending changes has completed. If `onBlur`
|
|
124
|
+
* is provided, then live validation will be performed when a field that was updated is blurred (as a performance
|
|
125
|
+
* optimization).
|
|
126
|
+
*
|
|
127
|
+
* @deprecated - In a future major release, the `boolean` options for this flag will be removed
|
|
115
128
|
*/
|
|
116
|
-
liveValidate?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
129
|
+
liveValidate?: boolean | 'onChange' | 'onBlur';
|
|
130
|
+
/** Flag that describes when live omit will be performed. Live omit happens only when `omitExtraData` is also set to
|
|
131
|
+
* to `true` and the form's data is updated by the user.
|
|
132
|
+
*
|
|
133
|
+
* If no value (or `false`) is provided, then live omit will not happen. If `true` or `onChange` is provided for
|
|
134
|
+
* the flag, then live omit will be performed after processing of all pending changes has completed. If `onBlur`
|
|
135
|
+
* is provided, then live omit will be performed when a field that was updated is blurred (as a performance
|
|
136
|
+
* optimization).
|
|
137
|
+
*
|
|
138
|
+
* @deprecated - In a future major release, the `boolean` options for this flag will be removed
|
|
119
139
|
*/
|
|
120
|
-
liveOmit?: boolean;
|
|
140
|
+
liveOmit?: boolean | 'onChange' | 'onBlur';
|
|
121
141
|
/** If set to true, then extra form data values that are not in any form field will be removed whenever `onSubmit` is
|
|
122
142
|
* called. Set to `false` by default.
|
|
123
143
|
*/
|
|
@@ -139,11 +159,29 @@ export interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
|
|
|
139
159
|
* to put the second parameter before the first in its translation.
|
|
140
160
|
*/
|
|
141
161
|
translateString?: Registry['translateString'];
|
|
162
|
+
/** Optional function to generate custom HTML `name` attributes for form fields.
|
|
163
|
+
*/
|
|
164
|
+
nameGenerator?: NameGeneratorFunction;
|
|
165
|
+
/** Optional flag that, when set to true, will cause the `FallbackField` to render a type selector for unsupported
|
|
166
|
+
* fields instead of the default UnsupportedField error UI.
|
|
167
|
+
*/
|
|
168
|
+
useFallbackUiForUnsupportedType?: boolean;
|
|
142
169
|
/** Optional configuration object with flags, if provided, allows users to override default form state behavior
|
|
143
170
|
* Currently only affecting minItems on array fields and handling of setting defaults based on the value of
|
|
144
171
|
* `emptyObjectFields`
|
|
145
172
|
*/
|
|
146
173
|
experimental_defaultFormStateBehavior?: Experimental_DefaultFormStateBehavior;
|
|
174
|
+
/**
|
|
175
|
+
* Controls the component update strategy used by the Form's `shouldComponentUpdate` lifecycle method.
|
|
176
|
+
*
|
|
177
|
+
* - `'customDeep'`: Uses RJSF's custom deep equality checks via the `deepEquals` utility function,
|
|
178
|
+
* which treats all functions as equivalent and provides optimized performance for form data comparisons.
|
|
179
|
+
* - `'shallow'`: Uses shallow comparison of props and state (only compares direct properties). This matches React's PureComponent behavior.
|
|
180
|
+
* - `'always'`: Always rerenders when called. This matches React's Component behavior.
|
|
181
|
+
*
|
|
182
|
+
* @default 'customDeep'
|
|
183
|
+
*/
|
|
184
|
+
experimental_componentUpdateStrategy?: 'customDeep' | 'shallow' | 'always';
|
|
147
185
|
/** Optional function that allows for custom merging of `allOf` schemas
|
|
148
186
|
*/
|
|
149
187
|
experimental_customMergeAllOf?: Experimental_CustomMergeAllOf<S>;
|
|
@@ -173,10 +211,10 @@ export interface FormState<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
|
|
|
173
211
|
schema: S;
|
|
174
212
|
/** The uiSchema for the form */
|
|
175
213
|
uiSchema: UiSchema<T, S, F>;
|
|
176
|
-
/** The `
|
|
214
|
+
/** The `FieldPathId` for the form, computed from the `schema`, the `rootFieldId`, the `idPrefix` and
|
|
177
215
|
* `idSeparator` props.
|
|
178
216
|
*/
|
|
179
|
-
|
|
217
|
+
fieldPathId: FieldPathId;
|
|
180
218
|
/** The schemaUtils implementation used by the `Form`, created from the `validator` and the `schema` */
|
|
181
219
|
schemaUtils: SchemaUtilsType<T, S, F>;
|
|
182
220
|
/** The current data for the form, computed from the `formData` prop and the changes made by the user */
|
|
@@ -193,22 +231,43 @@ export interface FormState<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
|
|
|
193
231
|
* `extraErrors`
|
|
194
232
|
*/
|
|
195
233
|
schemaValidationErrorSchema: ErrorSchema<T>;
|
|
234
|
+
/** A container used to handle custom errors provided via `onChange` */
|
|
235
|
+
customErrors?: ErrorSchemaBuilder<T>;
|
|
196
236
|
/** @description result of schemaUtils.retrieveSchema(schema, formData). This a memoized value to avoid re calculate at internal functions (getStateFromProps, onChange) */
|
|
197
237
|
retrievedSchema: S;
|
|
238
|
+
/** Flag indicating whether the initial form defaults have been generated */
|
|
239
|
+
initialDefaultsGenerated: boolean;
|
|
240
|
+
/** The registry (re)computed only when props changed */
|
|
241
|
+
registry: Registry<T, S, F>;
|
|
198
242
|
}
|
|
199
243
|
/** The event data passed when changes have been made to the form, includes everything from the `FormState` except
|
|
200
244
|
* the schema validation errors. An additional `status` is added when returned from `onSubmit`
|
|
201
245
|
*/
|
|
202
|
-
export interface IChangeEvent<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> extends
|
|
246
|
+
export interface IChangeEvent<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> extends Pick<FormState<T, S, F>, 'schema' | 'uiSchema' | 'fieldPathId' | 'schemaUtils' | 'formData' | 'edit' | 'errors' | 'errorSchema'> {
|
|
203
247
|
/** The status of the form when submitted */
|
|
204
248
|
status?: 'submitted';
|
|
205
249
|
}
|
|
250
|
+
/** The definition of a pending change that will be processed in the `onChange` handler
|
|
251
|
+
*/
|
|
252
|
+
interface PendingChange<T> {
|
|
253
|
+
/** The path into the formData/errorSchema at which the `newValue`/`newErrorSchema` will be set */
|
|
254
|
+
path: FieldPathList;
|
|
255
|
+
/** The new value to set into the formData */
|
|
256
|
+
newValue?: T;
|
|
257
|
+
/** The new errors to be set into the errorSchema, if any */
|
|
258
|
+
newErrorSchema?: ErrorSchema<T>;
|
|
259
|
+
/** The optional id of the field for which the change is being made */
|
|
260
|
+
id?: string;
|
|
261
|
+
}
|
|
206
262
|
/** The `Form` component renders the outer form and all the fields defined in the `schema` */
|
|
207
263
|
export default class Form<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> extends Component<FormProps<T, S, F>, FormState<T, S, F>> {
|
|
208
264
|
/** The ref used to hold the `form` element, this needs to be `any` because `tagName` or `_internalFormWrapper` can
|
|
209
265
|
* provide any possible type here
|
|
210
266
|
*/
|
|
211
267
|
formElement: RefObject<any>;
|
|
268
|
+
/** The list of pending changes
|
|
269
|
+
*/
|
|
270
|
+
pendingChanges: PendingChange<T>[];
|
|
212
271
|
/** Constructs the `Form` from the `props`. Will setup the initial state from the props. It will also call the
|
|
213
272
|
* `onChange` handler if the initially provided `formData` is modified to add missing default values as part of the
|
|
214
273
|
* state construction.
|
|
@@ -267,9 +326,10 @@ export default class Form<T = any, S extends StrictRJSFSchema = RJSFSchema, F ex
|
|
|
267
326
|
* @param retrievedSchema - An expanded schema, if not provided, it will be retrieved from the `schema` and `formData`.
|
|
268
327
|
* @param isSchemaChanged - A flag indicating whether the schema has changed.
|
|
269
328
|
* @param formDataChangedFields - The changed fields of `formData`
|
|
329
|
+
* @param skipLiveValidate - Optional flag, if true, means that we are not running live validation
|
|
270
330
|
* @returns - The new state for the `Form`
|
|
271
331
|
*/
|
|
272
|
-
getStateFromProps(props: FormProps<T, S, F>, inputFormData?: T, retrievedSchema?: S, isSchemaChanged?: boolean, formDataChangedFields?: string[]): FormState<T, S, F>;
|
|
332
|
+
getStateFromProps(props: FormProps<T, S, F>, inputFormData?: T, retrievedSchema?: S, isSchemaChanged?: boolean, formDataChangedFields?: string[], skipLiveValidate?: boolean): FormState<T, S, F>;
|
|
273
333
|
/** React lifecycle method that is used to determine whether component should be updated.
|
|
274
334
|
*
|
|
275
335
|
* @param nextProps - The next version of the props
|
|
@@ -277,21 +337,41 @@ export default class Form<T = any, S extends StrictRJSFSchema = RJSFSchema, F ex
|
|
|
277
337
|
* @returns - True if the component should be updated, false otherwise
|
|
278
338
|
*/
|
|
279
339
|
shouldComponentUpdate(nextProps: FormProps<T, S, F>, nextState: FormState<T, S, F>): boolean;
|
|
280
|
-
/** Gets the previously raised customValidate errors.
|
|
281
|
-
*
|
|
282
|
-
* @returns the previous customValidate errors
|
|
283
|
-
*/
|
|
284
|
-
private getPreviousCustomValidateErrors;
|
|
285
340
|
/** Validates the `formData` against the `schema` using the `altSchemaUtils` (if provided otherwise it uses the
|
|
286
341
|
* `schemaUtils` in the state), returning the results.
|
|
287
342
|
*
|
|
288
343
|
* @param formData - The new form data to validate
|
|
289
344
|
* @param schema - The schema used to validate against
|
|
290
|
-
* @param altSchemaUtils - The alternate schemaUtils to use for validation
|
|
345
|
+
* @param [altSchemaUtils] - The alternate schemaUtils to use for validation
|
|
346
|
+
* @param [retrievedSchema] - An optionally retrieved schema for per
|
|
291
347
|
*/
|
|
292
348
|
validate(formData: T | undefined, schema?: S, altSchemaUtils?: SchemaUtilsType<T, S, F>, retrievedSchema?: S): ValidationData<T>;
|
|
293
349
|
/** Renders any errors contained in the `state` in using the `ErrorList`, if not disabled by `showErrorList`. */
|
|
294
350
|
renderErrors(registry: Registry<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
|
|
351
|
+
/** Merges any `extraErrors` or `customErrors` into the given `schemaValidation` object, returning the result
|
|
352
|
+
*
|
|
353
|
+
* @param schemaValidation - The `ValidationData` object into which additional errors are merged
|
|
354
|
+
* @param [extraErrors] - The extra errors from the props
|
|
355
|
+
* @param [customErrors] - The customErrors from custom components
|
|
356
|
+
* @return - The `extraErrors` and `customErrors` merged into the `schemaValidation`
|
|
357
|
+
* @private
|
|
358
|
+
*/
|
|
359
|
+
private mergeErrors;
|
|
360
|
+
/** Performs live validation and then updates and returns the errors and error schemas by potentially merging in
|
|
361
|
+
* `extraErrors` and `customErrors`.
|
|
362
|
+
*
|
|
363
|
+
* @param rootSchema - The `rootSchema` from the state
|
|
364
|
+
* @param schemaUtils - The `SchemaUtilsType` from the state
|
|
365
|
+
* @param originalErrorSchema - The original `ErrorSchema` from the state
|
|
366
|
+
* @param [formData] - The new form data to validate
|
|
367
|
+
* @param [extraErrors] - The extra errors from the props
|
|
368
|
+
* @param [customErrors] - The customErrors from custom components
|
|
369
|
+
* @param [retrievedSchema] - An expanded schema, if not provided, it will be retrieved from the `schema` and `formData`
|
|
370
|
+
* @param [mergeIntoOriginalErrorSchema=false] - Optional flag indicating whether we merge into original schema
|
|
371
|
+
* @returns - An object containing `errorSchema`, `errors`, `schemaValidationErrors` and `schemaValidationErrorSchema`
|
|
372
|
+
* @private
|
|
373
|
+
*/
|
|
374
|
+
private liveValidate;
|
|
295
375
|
/** Returns the `formData` with only the elements specified in the `fields` list
|
|
296
376
|
*
|
|
297
377
|
* @param formData - The data for the `Form`
|
|
@@ -310,19 +390,33 @@ export default class Form<T = any, S extends StrictRJSFSchema = RJSFSchema, F ex
|
|
|
310
390
|
* @returns The `formData` after omitting extra data
|
|
311
391
|
*/
|
|
312
392
|
omitExtraData: (formData?: T) => T | undefined;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
|
|
325
|
-
|
|
393
|
+
/** Allows a user to set a value for the provided `fieldPath`, which must be either a dotted path to the field OR a
|
|
394
|
+
* `FieldPathList`. To set the root element, used either `''` or `[]` for the path. Passing undefined will clear the
|
|
395
|
+
* value in the field.
|
|
396
|
+
*
|
|
397
|
+
* @param fieldPath - Either a dotted path to the field or the `FieldPathList` to the field
|
|
398
|
+
* @param [newValue] - The new value for the field
|
|
399
|
+
*/
|
|
400
|
+
setFieldValue: (fieldPath: string | FieldPathList, newValue?: T) => void;
|
|
401
|
+
/** Pushes the given change information into the `pendingChanges` array and then calls `processPendingChanges()` if
|
|
402
|
+
* the array only contains a single pending change.
|
|
403
|
+
*
|
|
404
|
+
* @param newValue - The new form data from a change to a field
|
|
405
|
+
* @param path - The path to the change into which to set the formData
|
|
406
|
+
* @param [newErrorSchema] - The new `ErrorSchema` based on the field change
|
|
407
|
+
* @param [id] - The id of the field that caused the change
|
|
408
|
+
*/
|
|
409
|
+
onChange: (newValue: T | undefined, path: FieldPathList, newErrorSchema?: ErrorSchema<T>, id?: string) => void;
|
|
410
|
+
/** Function to handle changes made to a field in the `Form`. This handler gets the first change from the
|
|
411
|
+
* `pendingChanges` list, containing the `newValue` for the `formData` and the `path` at which the `newValue` is to be
|
|
412
|
+
* updated, along with a new, optional `ErrorSchema` for that same `path` and potentially the `id` of the field being
|
|
413
|
+
* changed. It will first update the `formData` with any missing default fields and then, if `omitExtraData` and
|
|
414
|
+
* `liveOmit` are turned on, the `formData` will be filtered to remove any extra data not in a form field. Then, the
|
|
415
|
+
* resulting `formData` will be validated if required. The state will be updated with the new updated (potentially
|
|
416
|
+
* filtered) `formData`, any errors that resulted from validation. Finally the `onChange` callback will be called, if
|
|
417
|
+
* specified, with the updated state and the `processPendingChange()` function is called again.
|
|
418
|
+
*/
|
|
419
|
+
processPendingChange(): void;
|
|
326
420
|
/**
|
|
327
421
|
* If the retrievedSchema has changed the new retrievedSchema is returned.
|
|
328
422
|
* Otherwise, the old retrievedSchema is returned to persist reference.
|
|
@@ -341,7 +435,8 @@ export default class Form<T = any, S extends StrictRJSFSchema = RJSFSchema, F ex
|
|
|
341
435
|
*/
|
|
342
436
|
reset: () => void;
|
|
343
437
|
/** Callback function to handle when a field on the form is blurred. Calls the `onBlur` callback for the `Form` if it
|
|
344
|
-
* was provided.
|
|
438
|
+
* was provided. Also runs any live validation and/or live omit operations if the flags indicate they should happen
|
|
439
|
+
* during `onBlur`.
|
|
345
440
|
*
|
|
346
441
|
* @param id - The unique `id` of the field that was blurred
|
|
347
442
|
* @param data - The data associated with the field that was blurred
|
|
@@ -363,8 +458,15 @@ export default class Form<T = any, S extends StrictRJSFSchema = RJSFSchema, F ex
|
|
|
363
458
|
* @param event - The submit HTML form event
|
|
364
459
|
*/
|
|
365
460
|
onSubmit: (event: FormEvent<any>) => void;
|
|
366
|
-
/**
|
|
367
|
-
|
|
461
|
+
/** Extracts the `GlobalFormOptions` from the given Form `props`
|
|
462
|
+
*
|
|
463
|
+
* @param props - The form props to extract the global form options from
|
|
464
|
+
* @returns - The `GlobalFormOptions` from the props
|
|
465
|
+
* @private
|
|
466
|
+
*/
|
|
467
|
+
private getGlobalFormOptions;
|
|
468
|
+
/** Computed the registry for the form using the given `props`, `schema` and `schemaUtils` */
|
|
469
|
+
getRegistry(props: FormProps<T, S, F>, schema: S, schemaUtils: SchemaUtilsType<T, S, F>): Registry<T, S, F>;
|
|
368
470
|
/** Provides a function that can be used to programmatically submit the `Form` */
|
|
369
471
|
submit: () => void;
|
|
370
472
|
/** Attempts to focus on the field associated with the `error`. Uses the `property` field to compute path of the error
|
|
@@ -393,4 +495,5 @@ export default class Form<T = any, S extends StrictRJSFSchema = RJSFSchema, F ex
|
|
|
393
495
|
*/
|
|
394
496
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
395
497
|
}
|
|
498
|
+
export {};
|
|
396
499
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../src/components/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAChG,OAAO,EAEL,eAAe,EAEf,WAAW,EACX,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../src/components/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAChG,OAAO,EAEL,eAAe,EAEf,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,eAAe,EAQf,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,mBAAmB,EAEnB,eAAe,EAGf,aAAa,EAGb,QAAQ,EAGR,cAAc,EAEd,aAAa,EACb,qCAAqC,EACrC,6BAA6B,EAM7B,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAarB,mDAAmD;AACnD,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,gBAAgB,GAAG,UAAU,EAAE,CAAC,SAAS,eAAe,GAAG,GAAG;IAC1G,0CAA0C;IAC1C,MAAM,EAAE,CAAC,CAAC;IACV,o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