@rjsf/mui 6.6.1 → 6.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +90 -71
- package/dist/index.cjs.map +3 -3
- package/dist/mui.esm.js +103 -145
- package/dist/mui.esm.js.map +3 -3
- package/dist/mui.umd.js +85 -67
- package/lib/AddButton/AddButton.d.ts +1 -1
- package/lib/AddButton/AddButton.js +1 -1
- package/lib/AddButton/AddButton.js.map +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +4 -4
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +4 -4
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.d.ts +3 -3
- package/lib/BaseInputTemplate/BaseInputTemplate.js +7 -7
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/CheckboxWidget/CheckboxWidget.d.ts +3 -3
- package/lib/CheckboxWidget/CheckboxWidget.js +5 -5
- package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +4 -4
- package/lib/CheckboxesWidget/CheckboxesWidget.js +6 -6
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/DescriptionField/DescriptionField.d.ts +2 -2
- package/lib/DescriptionField/DescriptionField.js +1 -1
- package/lib/DescriptionField/DescriptionField.js.map +1 -1
- package/lib/ErrorList/ErrorList.d.ts +8 -8
- package/lib/ErrorList/ErrorList.js +2 -4
- package/lib/ErrorList/ErrorList.js.map +1 -1
- package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts +4 -4
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js +2 -4
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.d.ts +2 -2
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/FieldTemplate/FieldTemplate.d.ts +3 -3
- package/lib/FieldTemplate/FieldTemplate.js +2 -2
- package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
- package/lib/GridTemplate/GridTemplate.d.ts +1 -1
- package/lib/IconButton/IconButton.d.ts +14 -7
- package/lib/IconButton/IconButton.js +15 -7
- package/lib/IconButton/IconButton.js.map +1 -1
- package/lib/MuiForm/MuiForm.d.ts +3 -3
- package/lib/MuiForm/MuiForm.js.map +1 -1
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +3 -3
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js +1 -1
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js.map +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +2 -2
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +3 -3
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -1
- package/lib/RadioWidget/RadioWidget.d.ts +4 -4
- package/lib/RadioWidget/RadioWidget.js +6 -6
- package/lib/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/RangeWidget/RangeWidget.d.ts +2 -2
- package/lib/RangeWidget/RangeWidget.js +6 -6
- package/lib/RangeWidget/RangeWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.d.ts +3 -3
- package/lib/SelectWidget/SelectWidget.js +7 -7
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/SubmitButton/SubmitButton.d.ts +3 -3
- package/lib/SubmitButton/SubmitButton.js +1 -1
- package/lib/SubmitButton/SubmitButton.js.map +1 -1
- package/lib/Templates/Templates.d.ts +1 -1
- package/lib/TextareaWidget/TextareaWidget.d.ts +1 -1
- package/lib/TextareaWidget/TextareaWidget.js.map +1 -1
- package/lib/Theme/Theme.d.ts +2 -2
- package/lib/TitleField/TitleField.d.ts +5 -5
- package/lib/TitleField/TitleField.js +1 -1
- package/lib/TitleField/TitleField.js.map +1 -1
- package/lib/Widgets/Widgets.d.ts +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +2 -2
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/util.d.ts +2 -2
- package/lib/util.js +3 -3
- package/package.json +6 -6
- package/src/AddButton/AddButton.tsx +4 -9
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +9 -7
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +8 -7
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +17 -18
- package/src/CheckboxWidget/CheckboxWidget.tsx +12 -20
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +16 -17
- package/src/DescriptionField/DescriptionField.tsx +4 -3
- package/src/ErrorList/ErrorList.tsx +26 -27
- package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +17 -22
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +4 -10
- package/src/FieldTemplate/FieldTemplate.tsx +8 -13
- package/src/GridTemplate/GridTemplate.tsx +1 -1
- package/src/IconButton/IconButton.tsx +20 -19
- package/src/MuiForm/MuiForm.tsx +4 -3
- package/src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx +6 -4
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +6 -10
- package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +3 -2
- package/src/RadioWidget/RadioWidget.tsx +17 -18
- package/src/RangeWidget/RangeWidget.tsx +12 -19
- package/src/SelectWidget/SelectWidget.tsx +21 -20
- package/src/SubmitButton/SubmitButton.tsx +6 -11
- package/src/Templates/Templates.ts +1 -1
- package/src/TextareaWidget/TextareaWidget.tsx +2 -1
- package/src/Theme/Theme.tsx +2 -2
- package/src/TitleField/TitleField.tsx +11 -13
- package/src/Widgets/Widgets.ts +1 -1
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +6 -8
- package/src/util.ts +5 -5
package/dist/mui.esm.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/MuiForm/MuiForm.tsx", "../src/AddButton/AddButton.tsx", "../src/util.ts", "../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx", "../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx", "../src/BaseInputTemplate/BaseInputTemplate.tsx", "../src/DescriptionField/DescriptionField.tsx", "../src/ErrorList/ErrorList.tsx", "../src/FieldErrorTemplate/FieldErrorTemplate.tsx", "../src/FieldHelpTemplate/FieldHelpTemplate.tsx", "../src/FieldTemplate/FieldTemplate.tsx", "../src/GridTemplate/GridTemplate.tsx", "../src/IconButton/IconButton.tsx", "../src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx", "../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx", "../src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx", "../src/SubmitButton/SubmitButton.tsx", "../src/TitleField/TitleField.tsx", "../src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx", "../src/Templates/Templates.ts", "../src/CheckboxesWidget/CheckboxesWidget.tsx", "../src/CheckboxWidget/CheckboxWidget.tsx", "../src/RadioWidget/RadioWidget.tsx", "../src/RangeWidget/RangeWidget.tsx", "../src/SelectWidget/SelectWidget.tsx", "../src/TextareaWidget/TextareaWidget.tsx", "../src/Widgets/Widgets.ts", "../src/Theme/Theme.tsx", "../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { ComponentType } from 'react';\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n", "import AddIcon from '@mui/icons-material/Add';\nimport IconButton, { IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';\nimport {\n FormContextType,\n getUiOptions,\n IconButtonProps,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** The `AddButton` renders a button that represent the `Add` action on a form\n */\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n ...props\n}: IconButtonProps<T, S, F>) {\n const { translateString } = registry;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const muiProps = getMuiProps<T, S, F, MuiIconButtonProps>(uiOptions, [\n 'color',\n 'disableFocusRipple',\n 'disableRipple',\n 'edge',\n 'size',\n 'sx',\n ]);\n\n return (\n <IconButton title={translateString(TranslatableString.AddItemButton)} {...props} color='primary' {...muiProps}>\n <AddIcon />\n </IconButton>\n );\n}\n", "import { BoxProps, FormHelperTextProps, GridProps, PaperProps, SxProps, TypographyProps } from '@mui/material';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema, UIOptionsType, GenericObjectType } from '@rjsf/utils';\n\n/**\n * Extract props meant for MUI components from the `options` field of the `uiSchema`.\n * @param {UIOptionsType} options - The options from the uiSchema\n * @param {string[]} [propsToFilter] - An optional allowlist of props to return (used by button/icon components)\n * @param {boolean} [rjsfSlotPropsOnly] - If true, returns only `rjsfSlotProps`, preventing root-level prop bleeding\n * @returns {P}\n */\nexport function getMuiProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n P extends GenericObjectType = GenericObjectType,\n>(options: UIOptionsType<T, S, F>, propsToFilter?: string[], rjsfSlotPropsOnly?: boolean): P {\n const muiProps = (options?.mui as P) || ({} as P);\n if (rjsfSlotPropsOnly) {\n const { rjsfSlotProps } = muiProps as any;\n return { rjsfSlotProps } as unknown as P;\n }\n if (propsToFilter) {\n return Object.keys(muiProps)\n .filter((key) => propsToFilter.includes(key))\n .reduce((obj, key) => {\n obj[key as keyof P] = muiProps[key as keyof P];\n return obj;\n }, {} as P);\n }\n return muiProps;\n}\n\n/**\n * Merges default `sx` props with any `sx` provided on a MUI component's props, returning a value\n * suitable for passing directly to the MUI `sx` prop.\n *\n * When `muiProps.sx` is an array (only valid for `GridProps`), the default sx object is prepended\n * to produce an `sx` array, preserving MUI's array-merge semantics. Otherwise the two objects are\n * shallow-merged, with `muiProps.sx` taking precedence over the `sxProps`.\n *\n * If `muiProps` is omitted the `sxProps`` are returned as-is.\n *\n * @param sxProps - The default sx styles to apply\n * @param [muiProps] - The MUI component props that may contain a user-supplied `sx`\n * @returns - The merged sx value\n */\nexport function computeSxProps<MuiProps extends GridProps>(\n sxProps: SxProps,\n muiProps: MuiProps & { sx: any[] },\n): MuiProps['sx'] | MuiProps['sx'][];\nexport function computeSxProps<MuiProps extends BoxProps | FormHelperTextProps | PaperProps | TypographyProps>(\n sxProps: SxProps,\n muiProps?: MuiProps,\n): MuiProps['sx'];\nexport function computeSxProps<\n MuiProps extends BoxProps | FormHelperTextProps | GridProps | PaperProps | TypographyProps,\n>(sxProps: SxProps, muiProps?: MuiProps): MuiProps['sx'] | MuiProps['sx'][] {\n if (!muiProps) {\n return sxProps;\n }\n if (Array.isArray(muiProps?.sx)) {\n return [sxProps, ...muiProps.sx];\n }\n return { ...sxProps, ...muiProps?.sx } as MuiProps['sx'];\n}\n", "import { CSSProperties } from 'react';\nimport Box, { BoxProps } from '@mui/material/Box';\nimport Grid, { GridProps } from '@mui/material/Grid';\nimport Paper, { PaperProps } from '@mui/material/Paper';\nimport {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getUiOptions,\n getTemplate,\n RJSFSchema,\n StrictRJSFSchema,\n GenericObjectType,\n} from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the ArrayFieldItemTemplate. */\nexport interface ArrayFieldItemTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the ArrayFieldItemTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the outermost `Grid` container. */\n arrayItemGridContainer?: GridProps;\n /** Props applied to the `Grid` item wrapping the item's content. */\n arrayItemGridItem?: GridProps;\n /** Props applied to the outer `Box` container. */\n arrayItemOuterBox?: BoxProps;\n /** Props applied to the `Paper` elevation component. */\n arrayItemPaper?: PaperProps;\n /** Props applied to the inner `Box` containing the actual children. */\n arrayItemInnerBox?: BoxProps;\n /** Props applied to the `Grid` containing the item's buttons. */\n arrayItemToolbarGrid?: GridProps;\n };\n}\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, hasDescription, hasToolbar, uiSchema, registry } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldItemButtonsTemplate = getTemplate<'ArrayFieldItemButtonsTemplate', T, S, F>(\n 'ArrayFieldItemButtonsTemplate',\n registry,\n uiOptions,\n );\n const btnStyle: CSSProperties = {\n flex: 1,\n paddingLeft: 6,\n paddingRight: 6,\n fontWeight: 'bold',\n minWidth: 0,\n };\n\n const {\n rjsfSlotProps: {\n arrayItemGridContainer,\n arrayItemGridItem,\n arrayItemInnerBox,\n arrayItemOuterBox,\n arrayItemPaper,\n arrayItemToolbarGrid,\n } = {},\n } = getMuiProps<T, S, F, ArrayFieldItemTemplateMuiProps>(uiOptions);\n\n return (\n <Grid\n container\n {...arrayItemGridContainer}\n sx={computeSxProps<GridProps>({ alignItems: 'center' }, arrayItemGridContainer)}\n >\n <Grid\n size={{ xs: 8, sm: 9, md: 10, lg: 11, xl: 11.25 }}\n {...arrayItemGridItem}\n sx={computeSxProps({ overflow: 'auto' }, arrayItemGridItem)}\n >\n <Box {...arrayItemOuterBox} sx={computeSxProps<BoxProps>({ mb: 2 }, arrayItemOuterBox)}>\n <Paper elevation={2} {...arrayItemPaper}>\n <Box {...arrayItemInnerBox} sx={computeSxProps<BoxProps>({ p: 2 }, arrayItemInnerBox)}>\n {children}\n </Box>\n </Paper>\n </Box>\n </Grid>\n {hasToolbar && (\n <Grid\n {...arrayItemToolbarGrid}\n sx={computeSxProps<GridProps>({ mt: hasDescription ? -5 : -1.5 }, arrayItemToolbarGrid)}\n >\n <ArrayFieldItemButtonsTemplate {...buttonsProps} style={btnStyle} />\n </Grid>\n )}\n </Grid>\n );\n}\n", "import Box, { BoxProps } from '@mui/material/Box';\nimport Grid, { GridProps } from '@mui/material/Grid';\nimport Paper, { PaperProps } from '@mui/material/Paper';\nimport {\n getTemplate,\n getUiOptions,\n ArrayFieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n buttonId,\n GenericObjectType,\n} from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the ArrayFieldTemplate. */\nexport interface ArrayFieldTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the ArrayFieldTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the wrapper `Paper` material. */\n arrayPaper?: PaperProps;\n /** Props applied to the primary `Box` container. */\n arrayBox?: BoxProps;\n /** Props applied to the wrapper `Grid` container next to the Add Button. */\n arrayAddButtonGridContainer?: GridProps;\n /** Props applied to the `Grid` item containing the Add Button. */\n arrayAddButtonGridItem?: GridProps;\n /** Props applied to the `Box` containing the Add Button. */\n arrayAddButtonBox?: BoxProps;\n };\n}\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n disabled,\n fieldPathId,\n uiSchema,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n registry,\n required,\n schema,\n title,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n\n const {\n rjsfSlotProps: {\n arrayPaper,\n arrayBox,\n arrayAddButtonGridContainer,\n arrayAddButtonGridItem,\n arrayAddButtonBox,\n } = {},\n } = getMuiProps<T, S, F, ArrayFieldTemplateMuiProps>(uiOptions);\n\n return (\n <Paper elevation={2} {...arrayPaper}>\n <Box {...arrayBox} sx={computeSxProps<BoxProps>({ p: 2 }, arrayBox)}>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n {canAdd && (\n <Grid\n container\n {...arrayAddButtonGridContainer}\n sx={computeSxProps<GridProps>({ justifyContent: 'flex-end' }, arrayAddButtonGridContainer)}\n >\n <Grid {...arrayAddButtonGridItem}>\n <Box {...arrayAddButtonBox} sx={computeSxProps<BoxProps>({ mt: 2 }, arrayAddButtonBox)}>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Box>\n </Grid>\n </Grid>\n )}\n </Box>\n </Paper>\n );\n}\n", "import { ChangeEvent, FocusEvent, MouseEvent, useCallback } from 'react';\nimport { InputProps as MuiInputProps } from '@mui/material/Input';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport { InputLabelProps as MuiInputLabelProps } from '@mui/material/InputLabel';\nimport TextField, { TextFieldProps } from '@mui/material/TextField';\nimport { SchemaExamples } from '@rjsf/core';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n labelValue,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the MUI `ui:options` of the BaseInputTemplate.\n * Unlike RJSF templates, `slotProps` here maps directly to MUI's native `TextField` `slotProps`,\n * enabling type-safe customization of the underlying MUI sub-components. */\nexport interface BaseInputTemplateMuiProps extends GenericObjectType {\n /** Native MUI `TextField` slotProps for targeting specific sub-components. */\n slotProps?: {\n /** Props applied to the base native HTML `<input>` or `<textarea>` element. */\n htmlInput?: React.HTMLAttributes<HTMLInputElement | HTMLTextAreaElement>;\n /** Props applied to the MUI `Input` element, useful for `endAdornment`/`startAdornment`. */\n input?: MuiInputProps;\n /** Props applied to the MUI `InputLabel` element. */\n inputLabel?: MuiInputLabelProps;\n };\n}\n\nconst TYPES_THAT_SHRINK_LABEL = ['date', 'datetime-local', 'file', 'time'];\n\n/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.\n * It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.\n * It can be customized/overridden for other themes or individual implementations as needed.\n *\n * @param props - The `WidgetProps` for this template\n */\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: BaseInputTemplateProps<T, S, F>) {\n const {\n id,\n name, // remove this from textFieldProps\n htmlName,\n placeholder,\n required,\n readonly,\n disabled,\n type,\n label,\n hideLabel,\n hideError,\n value,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n uiSchema,\n rawErrors = [],\n errorSchema,\n registry,\n InputLabelProps,\n InputProps,\n slotProps,\n ...textFieldProps\n } = props;\n const { ClearButton } = registry.templates.ButtonTemplates;\n // Now we need to pull out the step, min, max into an inner `inputProps` for material-ui\n const { step, min, max, accept, ...rest } = getInputProps<T, S, F>(schema, type, options);\n\n const muiProps = getMuiProps<T, S, F, BaseInputTemplateMuiProps>(options);\n const { slotProps: muiSlotProps, ...otherMuiProps } = muiProps;\n\n const htmlInputProps = {\n ...slotProps?.htmlInput,\n ...muiSlotProps?.htmlInput,\n step,\n min,\n max,\n accept,\n ...(schema.examples ? { list: examplesId(id) } : undefined),\n };\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n const DisplayInputLabelProps = TYPES_THAT_SHRINK_LABEL.includes(type)\n ? { ...slotProps?.inputLabel, ...muiSlotProps?.inputLabel, ...InputLabelProps, shrink: true }\n : { ...slotProps?.inputLabel, ...muiSlotProps?.inputLabel, ...InputLabelProps };\n const _onClear = useCallback(\n (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n onChange(options.emptyValue ?? '');\n },\n [onChange, options.emptyValue],\n );\n const inputProps = { ...InputProps, ...slotProps?.input, ...muiSlotProps?.input };\n if (options.allowClearTextInputs && value && !readonly && !disabled) {\n const clearAdornment = (\n <InputAdornment position='end'>\n <ClearButton registry={registry} onClick={_onClear} />\n </InputAdornment>\n );\n inputProps.endAdornment = !inputProps.endAdornment ? (\n clearAdornment\n ) : (\n <>\n {inputProps.endAdornment}\n {clearAdornment}\n </>\n );\n }\n\n return (\n <>\n <TextField\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n label={labelValue(label || undefined, hideLabel, undefined)}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n slotProps={{\n ...slotProps,\n ...muiSlotProps,\n input: inputProps,\n htmlInput: htmlInputProps,\n inputLabel: DisplayInputLabelProps,\n }}\n {...rest}\n value={value || value === 0 ? value : ''}\n error={rawErrors.length > 0}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n {...({ ...otherMuiProps, ...textFieldProps } as TextFieldProps)}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n <SchemaExamples id={id} schema={schema} />\n </>\n );\n}\n", "import Typography, { TypographyProps } from '@mui/material/Typography';\nimport { RichDescription } from '@rjsf/core';\nimport {\n DescriptionFieldProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n} from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the DescriptionField. */\nexport interface DescriptionFieldMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the DescriptionField. */\n rjsfSlotProps?: {\n /** Props applied to the `Typography` element used for the description. */\n descTypography?: TypographyProps;\n };\n}\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: { descTypography } = {} } = getMuiProps<T, S, F, DescriptionFieldMuiProps>(uiOptions);\n\n if (description) {\n return (\n <Typography\n id={id}\n variant='subtitle2'\n {...descTypography}\n sx={computeSxProps<TypographyProps>({ mt: 0.625 }, descTypography)}\n >\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </Typography>\n );\n }\n\n return null;\n}\n", "import ErrorIcon from '@mui/icons-material/Error';\nimport Box, { BoxProps } from '@mui/material/Box';\nimport List, { ListProps } from '@mui/material/List';\nimport ListItem, { ListItemProps } from '@mui/material/ListItem';\nimport ListItemIcon, { ListItemIconProps } from '@mui/material/ListItemIcon';\nimport ListItemText, { ListItemTextProps } from '@mui/material/ListItemText';\nimport Paper, { PaperProps } from '@mui/material/Paper';\nimport Typography, { TypographyProps } from '@mui/material/Typography';\nimport {\n ErrorListProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n getUiOptions,\n} from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the ErrorList. */\nexport interface ErrorListMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the ErrorList. */\n rjsfSlotProps?: {\n /** Props applied to the outermost `Paper` component. */\n errorPaper?: PaperProps;\n /** Props applied to the `Box` container. */\n errorBox?: BoxProps;\n /** Props applied to the `Typography` element for the title. */\n errorTypography?: TypographyProps;\n /** Props applied to the `List` container holding the errors. */\n errorList?: ListProps;\n /** Props applied to each `ListItem` representing an error. */\n errorListItem?: ListItemProps;\n /** Props applied to each `ListItemIcon` representing the error icon. */\n errorListItemIcon?: ListItemIconProps;\n /** Props applied to each `ListItemText` representing the error message. */\n errorListItemText?: ListItemTextProps;\n };\n}\n\n/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n uiSchema,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const {\n rjsfSlotProps: {\n errorPaper,\n errorBox,\n errorTypography,\n errorList,\n errorListItem,\n errorListItemIcon,\n errorListItemText,\n } = {},\n } = getMuiProps<T, S, F, ErrorListMuiProps>(uiOptions);\n\n return (\n <Paper elevation={2} {...errorPaper}>\n <Box {...errorBox} sx={computeSxProps<BoxProps>({ mb: 2, p: 2 }, errorBox)}>\n <Typography variant='h6' {...errorTypography}>\n {translateString(TranslatableString.ErrorsLabel)}\n </Typography>\n <List dense={true} {...errorList}>\n {errors.map((error, i: number) => {\n return (\n <ListItem key={i} {...errorListItem}>\n <ListItemIcon {...errorListItemIcon}>\n <ErrorIcon color='error' />\n </ListItemIcon>\n <ListItemText primary={error.stack} {...errorListItemText} />\n </ListItem>\n );\n })}\n </List>\n </Box>\n </Paper>\n );\n}\n", "import FormHelperText, { FormHelperTextProps } from '@mui/material/FormHelperText';\nimport List, { ListProps } from '@mui/material/List';\nimport ListItem, { ListItemProps } from '@mui/material/ListItem';\nimport {\n errorId,\n FieldErrorProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the FieldErrorTemplate. */\nexport interface FieldErrorTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the FieldErrorTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the `List` container holding the errors. */\n fieldErrorList?: ListProps;\n /** Props applied to each `ListItem` representing an error. */\n fieldErrorListItem?: ListItemProps;\n /** Props applied to the `FormHelperText` displaying the actual error message. */\n fieldErrorFormHelperText?: FormHelperTextProps;\n };\n}\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldErrorProps<T, S, F>) {\n const { errors = [], fieldPathId, uiSchema } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const muiProps = getMuiProps<T, S, F, FieldErrorTemplateMuiProps>(uiOptions);\n const { rjsfSlotProps: muiSlotProps } = muiProps;\n\n return (\n <List id={id} dense={true} disablePadding={true} {...muiSlotProps?.fieldErrorList}>\n {errors.map((error, i: number) => {\n return (\n <ListItem key={i} disableGutters={true} {...muiSlotProps?.fieldErrorListItem}>\n <FormHelperText component='div' id={`${id}-${i}`} {...muiSlotProps?.fieldErrorFormHelperText}>\n {error}\n </FormHelperText>\n </ListItem>\n );\n })}\n </List>\n );\n}\n", "import FormHelperText, { FormHelperTextProps } from '@mui/material/FormHelperText';\nimport { RichHelp } from '@rjsf/core';\nimport {\n helpId,\n FieldHelpProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n GenericObjectType,\n} from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the FieldHelpTemplate. */\nexport interface FieldHelpTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the FieldHelpTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the `FormHelperText` used for help text. */\n helpFormHelperText?: FormHelperTextProps;\n };\n}\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldHelpProps<T, S, F>) {\n const { fieldPathId, help, uiSchema, registry } = props;\n if (!help) {\n return null;\n }\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: { helpFormHelperText } = {} } = getMuiProps<T, S, F, FieldHelpTemplateMuiProps>(uiOptions);\n\n return (\n <FormHelperText\n component='div'\n id={helpId(fieldPathId)}\n {...helpFormHelperText}\n sx={computeSxProps<FormHelperTextProps>({ mt: 0.625 }, helpFormHelperText)}\n >\n <RichHelp help={help} registry={registry} uiSchema={uiSchema} />\n </FormHelperText>\n );\n}\n", "import FormControl, { FormControlProps } from '@mui/material/FormControl';\nimport Typography, { TypographyProps } from '@mui/material/Typography';\nimport {\n FieldTemplateProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n getTemplate,\n getUiOptions,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the FieldTemplate. */\nexport interface FieldTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the FieldTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the MUI `FormControl` wrapping the field. */\n fieldFormControl?: FormControlProps;\n /** Props applied to the MUI `Typography` element used for description. */\n fieldTypography?: TypographyProps;\n };\n}\n\n/** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field\n * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.\n *\n * @param props - The `FieldTemplateProps` for this component\n */\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldTemplateProps<T, S, F>) {\n const {\n id,\n children,\n classNames,\n style,\n disabled,\n displayLabel,\n hidden,\n label,\n onKeyRename,\n onKeyRenameBlur,\n onRemoveProperty,\n readonly,\n required,\n rawErrors = [],\n errors,\n help,\n description,\n rawDescription,\n schema,\n uiSchema,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n\n const isCheckbox = uiOptions.widget === 'checkbox';\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, FieldTemplateMuiProps>(uiOptions);\n\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n displayLabel={displayLabel}\n rawDescription={rawDescription}\n onKeyRename={onKeyRename}\n onKeyRenameBlur={onKeyRenameBlur}\n onRemoveProperty={onRemoveProperty}\n readonly={readonly}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n >\n <FormControl\n fullWidth={true}\n error={rawErrors.length ? true : false}\n required={required}\n {...muiSlotProps?.fieldFormControl}\n sx={otherMuiProps.sx}\n className={otherMuiProps.className}\n >\n {children}\n {displayLabel && !isCheckbox && rawDescription ? (\n <Typography variant='caption' color='textSecondary' {...muiSlotProps?.fieldTypography}>\n {description}\n </Typography>\n ) : null}\n {errors}\n {help}\n </FormControl>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import Grid from '@mui/material/Grid';\nimport { GridTemplateProps } from '@rjsf/utils';\n\n/** Renders a `GridTemplate` for mui, which is expecting the column sizing information coming in via the\n * extra props provided by the caller, which are spread directly on the `Grid`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the mui grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, ...rest } = props;\n return (\n <Grid container={!column} {...rest}>\n {children}\n </Grid>\n );\n}\n", "import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward';\nimport ClearIcon from '@mui/icons-material/Clear';\nimport CopyIcon from '@mui/icons-material/ContentCopy';\nimport RemoveIcon from '@mui/icons-material/Remove';\nimport IconButton, { IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';\nimport {\n FormContextType,\n IconButtonProps,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n getUiOptions,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\nexport default function MuiIconButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: IconButtonProps<T, S, F>) {\n const { icon, color, uiSchema, registry, ...otherProps } = props;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const muiProps = getMuiProps<T, S, F, MuiIconButtonProps>(uiOptions, [\n 'color',\n 'disableFocusRipple',\n 'disableRipple',\n 'edge',\n 'size',\n 'sx',\n ]);\n\n return (\n <IconButton {...muiProps} {...otherProps} size='small' color={color as MuiIconButtonProps['color']}>\n {icon}\n </IconButton>\n );\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.CopyButton)}\n {...props}\n icon={<CopyIcon fontSize='small' />}\n />\n );\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.MoveDownButton)}\n {...props}\n icon={<ArrowDownwardIcon fontSize='small' />}\n />\n );\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.MoveUpButton)}\n {...props}\n icon={<ArrowUpwardIcon fontSize='small' />}\n />\n );\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const { iconType, ...otherProps } = props;\n const {\n registry: { translateString },\n } = otherProps;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.RemoveButton)}\n {...otherProps}\n color='error'\n icon={<RemoveIcon fontSize={iconType === 'default' ? undefined : 'small'} />}\n />\n );\n}\n\nexport function ClearButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const { iconType, ...otherProps } = props;\n const {\n registry: { translateString },\n } = otherProps;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.ClearButton)}\n {...otherProps}\n icon={<ClearIcon fontSize={iconType === 'default' ? undefined : 'small'} />}\n />\n );\n}\n", "import Box, { BoxProps } from '@mui/material/Box';\nimport FormControl, { FormControlProps } from '@mui/material/FormControl';\nimport {\n FormContextType,\n GenericObjectType,\n MultiSchemaFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the MultiSchemaFieldTemplate. */\nexport interface MultiSchemaFieldTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the MultiSchemaFieldTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the wrapper `Box` container. */\n multiBox?: BoxProps;\n /** Props applied to the MUI `FormControl` wrapping the selector. */\n multiFormControl?: FormControlProps;\n };\n}\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { optionSchemaField, selector, uiSchema } = props;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: muiSlotProps } = getMuiProps<T, S, F, MultiSchemaFieldTemplateMuiProps>(uiOptions);\n\n return (\n <Box sx={{ mb: 2 }} {...muiSlotProps?.multiBox}>\n <FormControl fullWidth sx={{ mb: 2 }} {...muiSlotProps?.multiFormControl}>\n {selector}\n </FormControl>\n {optionSchemaField}\n </Box>\n );\n}\n", "import Grid, { GridProps } from '@mui/material/Grid';\nimport {\n FormContextType,\n GenericObjectType,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n canExpand,\n descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\n buttonId,\n} from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the ObjectFieldTemplate. */\nexport interface ObjectFieldTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the ObjectFieldTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the outermost `Grid` container wrapping all object properties. */\n objectGridContainer?: GridProps;\n /** Props applied to the `Grid` item wrapping each individual object property. */\n objectGridItem?: GridProps;\n /** Props applied to the wrapper `Grid` container next to the Add Button (when expandable). */\n objectAddButtonGridContainer?: GridProps;\n /** Props applied to the `Grid` item containing the Add Button. */\n objectAddButtonGridItem?: GridProps;\n };\n}\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n title,\n properties,\n required,\n disabled,\n readonly,\n uiSchema,\n fieldPathId,\n schema,\n formData,\n optionalDataControl,\n onAddProperty,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n\n const {\n rjsfSlotProps: { objectGridContainer, objectGridItem, objectAddButtonGridContainer, objectAddButtonGridItem } = {},\n } = getMuiProps<T, S, F, ObjectFieldTemplateMuiProps>(uiOptions);\n\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Grid\n container\n spacing={2}\n {...objectGridContainer}\n sx={computeSxProps<GridProps>({ mt: 1.25 }, objectGridContainer)}\n >\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((element, index) =>\n // Remove the <Grid> if the inner element is hidden as the <Grid>\n // itself would otherwise still take up space.\n element.hidden ? (\n element.content\n ) : (\n <Grid\n size={{ xs: 12 }}\n key={index}\n {...objectGridItem}\n sx={computeSxProps<GridProps>({ mb: 1.25 }, objectGridItem)}\n >\n {element.content}\n </Grid>\n ),\n )}\n </Grid>\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid\n container\n {...objectAddButtonGridContainer}\n sx={computeSxProps<GridProps>({ justifyContent: 'flex-end' }, objectAddButtonGridContainer)}\n >\n <Grid {...objectAddButtonGridItem}>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n onClick={onAddProperty}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid>\n </Grid>\n )}\n </>\n );\n}\n", "import AddIcon from '@mui/icons-material/Add';\nimport { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport IconButton, { RemoveButton } from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick, uiSchema } = props;\n if (onAddClick) {\n return (\n <IconButton\n id={id}\n registry={registry}\n uiSchema={uiSchema}\n className='rjsf-add-optional-data'\n onClick={onAddClick}\n title={label}\n icon={<AddIcon fontSize='small' />}\n />\n );\n } else if (onRemoveClick) {\n return (\n <RemoveButton\n id={id}\n registry={registry}\n uiSchema={uiSchema}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import Box, { BoxProps } from '@mui/material/Box';\nimport Button, { ButtonProps } from '@mui/material/Button';\nimport {\n getSubmitButtonOptions,\n GenericObjectType,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n SubmitButtonProps,\n getUiOptions,\n} from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the SubmitButton. */\nexport interface SubmitButtonMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the SubmitButton. */\n rjsfSlotProps?: {\n /** Props applied to the `Box` wrapper. */\n submitBox?: BoxProps;\n /** Props applied to the `Button` element. */\n submitButton?: ButtonProps;\n };\n}\n\n/** The `SubmitButton` renders a button that represent the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions<T, S, F>(uiSchema);\n if (norender) {\n return null;\n }\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: { submitBox, submitButton } = {}, ...otherMuiProps } = getMuiProps<\n T,\n S,\n F,\n SubmitButtonMuiProps\n >(uiOptions);\n\n return (\n <Box {...submitBox} sx={computeSxProps<BoxProps>({ mt: 3 }, submitBox)}>\n <Button\n type='submit'\n variant='contained'\n color='primary'\n {...submitButtonProps}\n {...otherMuiProps}\n {...submitButton}\n >\n {submitText}\n </Button>\n </Box>\n );\n}\n", "import Box, { BoxProps } from '@mui/material/Box';\nimport Divider, { DividerProps } from '@mui/material/Divider';\nimport Grid, { GridProps } from '@mui/material/Grid';\nimport Typography, { TypographyProps } from '@mui/material/Typography';\nimport {\n FormContextType,\n GenericObjectType,\n TitleFieldProps,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n} from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the TitleField. */\nexport interface TitleFieldMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the TitleField. */\n rjsfSlotProps?: {\n /** Props applied to the `Box` wrapper. */\n titleBox?: BoxProps;\n /** Props applied to the `Divider` element. */\n titleDivider?: DividerProps;\n /** Props applied to the `Typography` element used for the title. */\n titleTypography?: TypographyProps;\n /** Props applied to the `Grid` container used when `optionalDataControl` is present. */\n titleGridContainer?: GridProps;\n /** Props applied to the `Grid` item containing the title. */\n titleGridItem?: GridProps;\n /** Props applied to the `Grid` item containing the `optionalDataControl`. */\n titleOptionalDataGridItem?: GridProps;\n };\n}\n\n/** The `TitleField` is the template to use to render the title of a field\n *\n * @param props - The `TitleFieldProps` for this component\n */\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: TitleFieldProps<T, S, F>,\n) {\n const { id, title, optionalDataControl, uiSchema } = props;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const {\n rjsfSlotProps: {\n titleBox,\n titleDivider,\n titleTypography,\n titleGridContainer,\n titleGridItem,\n titleOptionalDataGridItem,\n } = {},\n } = getMuiProps<T, S, F, TitleFieldMuiProps>(uiOptions);\n\n let heading = (\n <Typography variant='h5' {...titleTypography}>\n {title}\n </Typography>\n );\n if (optionalDataControl) {\n heading = (\n <Grid container={true} spacing={0} {...titleGridContainer}>\n <Grid size='grow' {...titleGridItem}>\n {heading}\n </Grid>\n <Grid\n {...titleOptionalDataGridItem}\n sx={computeSxProps<GridProps>({ justifyContent: 'flex-end' }, titleOptionalDataGridItem)}\n >\n {optionalDataControl}\n </Grid>\n </Grid>\n );\n }\n return (\n <Box id={id} {...titleBox} sx={computeSxProps<BoxProps>({ mb: 1, mt: 1 }, titleBox)}>\n {heading}\n <Divider {...titleDivider} />\n </Box>\n );\n}\n", "import { CSSProperties } from 'react';\nimport Grid, { GridProps } from '@mui/material/Grid';\nimport TextField from '@mui/material/TextField';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n GenericObjectType,\n buttonId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n getUiOptions,\n} from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n/** Properties available for the `rjsfSlotProps` target of the WrapIfAdditionalTemplate. */\nexport interface WrapIfAdditionalTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the WrapIfAdditionalTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the outermost `Grid` container. */\n wrapGridContainer?: GridProps;\n /** Props applied to the `Grid` item containing the key TextField. */\n wrapKeyGridItem?: GridProps;\n /** Props applied to the `Grid` item containing the field children. */\n wrapChildrenGridItem?: GridProps;\n /** Props applied to the `Grid` item containing the remove button. */\n wrapRemoveButtonGridItem?: GridProps;\n };\n}\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WrapIfAdditionalTemplateProps<T, S, F>) {\n const {\n children,\n classNames,\n style,\n disabled,\n id,\n label,\n displayLabel,\n onKeyRenameBlur,\n onRemoveProperty,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n } = props;\n const { templates, translateString } = registry;\n // Button templates are not overridden in the uiSchema\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n const btnStyle: CSSProperties = {\n flex: 1,\n paddingLeft: 6,\n paddingRight: 6,\n fontWeight: 'bold',\n };\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: { wrapGridContainer, wrapKeyGridItem, wrapChildrenGridItem, wrapRemoveButtonGridItem } = {} } =\n getMuiProps<T, S, F, WrapIfAdditionalTemplateMuiProps>(uiOptions);\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n return (\n <Grid\n container\n key={`${id}-key`}\n spacing={2}\n className={classNames}\n style={style}\n {...wrapGridContainer}\n sx={computeSxProps<GridProps>({ alignItems: 'flex-start' }, wrapGridContainer)}\n >\n <Grid size={5.5} {...wrapKeyGridItem}>\n <TextField\n key={label}\n fullWidth={true}\n required={required}\n label={displayLabel ? keyLabel : undefined}\n defaultValue={label}\n disabled={disabled || readonly}\n id={`${id}-key`}\n name={`${id}-key`}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n type='text'\n />\n </Grid>\n <Grid size={5.5} {...wrapChildrenGridItem}>\n {children}\n </Grid>\n <Grid {...wrapRemoveButtonGridItem} sx={computeSxProps<GridProps>({ mt: 1.5 }, wrapRemoveButtonGridItem)}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n className='rjsf-object-property-remove'\n iconType='default'\n style={btnStyle}\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid>\n </Grid>\n );\n}\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n ClearButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Checkbox, { CheckboxProps } from '@mui/material/Checkbox';\nimport FormControlLabel, { FormControlLabelProps } from '@mui/material/FormControlLabel';\nimport FormGroup, { FormGroupProps } from '@mui/material/FormGroup';\nimport FormLabel from '@mui/material/FormLabel';\nimport {\n ariaDescribedByIds,\n enumOptionValueDecoder,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n getOptionValueFormat,\n labelValue,\n optionId,\n FormContextType,\n GenericObjectType,\n WidgetProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the CheckboxesWidget. */\nexport interface CheckboxesWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the CheckboxesWidget. */\n rjsfSlotProps?: {\n /** Props applied to the `FormGroup` container. */\n formGroup?: FormGroupProps;\n /** Props applied to the individual `Checkbox` components. */\n checkbox?: CheckboxProps;\n /** Props applied to the `FormControlLabel` components wrapping each checkbox. */\n formControlLabel?: FormControlLabelProps;\n };\n}\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n label,\n hideLabel,\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n required,\n onChange,\n onBlur,\n onFocus,\n } = props;\n const { enumOptions, enumDisabled, inline, emptyValue } = options;\n const optionValueFormat = getOptionValueFormat(options);\n const checkboxesValues = Array.isArray(value) ? value : [value];\n\n const _onChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n if (checked) {\n onChange(enumOptionsSelectValue(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue(index, checkboxesValues, enumOptions));\n }\n };\n\n const _onBlur = ({ target }: FocusEvent<HTMLButtonElement>) =>\n onBlur(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLButtonElement>) =>\n onFocus(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, CheckboxesWidgetMuiProps>(options);\n\n return (\n <>\n {labelValue(\n <FormLabel required={required} htmlFor={id}>\n {label || undefined}\n </FormLabel>,\n hideLabel,\n )}\n <FormGroup {...otherMuiProps} {...muiSlotProps?.formGroup} id={id} row={!!inline}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index: number) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n const checkbox = (\n <Checkbox\n {...muiSlotProps?.checkbox}\n id={optionId(id, index)}\n name={htmlName || id}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n return (\n <FormControlLabel\n {...muiSlotProps?.formControlLabel}\n control={checkbox}\n key={index}\n label={option.label}\n />\n );\n })}\n </FormGroup>\n </>\n );\n}\n", "import Checkbox, { CheckboxProps } from '@mui/material/Checkbox';\nimport FormControlLabel, { FormControlLabelProps } from '@mui/material/FormControlLabel';\nimport {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n labelValue,\n schemaRequiresTrueValue,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the CheckboxWidget. */\nexport interface CheckboxWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the CheckboxWidget. */\n rjsfSlotProps?: {\n /** Props applied to the individual `Checkbox` component. */\n checkbox?: CheckboxProps;\n /** Props applied to the `FormControlLabel` component wrapping the checkbox. */\n formControlLabel?: FormControlLabelProps;\n };\n}\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n schema,\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label = '',\n hideLabel,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n registry,\n options,\n uiSchema,\n } = props;\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n // Because an unchecked checkbox will cause html5 validation to fail, only add\n // the \"required\" attribute if the field value must be \"true\", due to the\n // \"const\" or \"enum\" keywords\n const required = schemaRequiresTrueValue<S>(schema);\n\n const _onChange = (_: any, checked: boolean) => onChange(checked);\n const _onBlur: React.FocusEventHandler<HTMLButtonElement> = () => onBlur(id, value);\n const _onFocus: React.FocusEventHandler<HTMLButtonElement> = () => onFocus(id, value);\n const description = options.description ?? schema.description;\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, CheckboxWidgetMuiProps>(options);\n\n return (\n <>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <FormControlLabel\n {...otherMuiProps}\n {...muiSlotProps?.formControlLabel}\n control={\n <Checkbox\n id={id}\n name={htmlName || id}\n checked={typeof value === 'undefined' ? false : Boolean(value)}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n {...muiSlotProps?.checkbox}\n />\n }\n label={labelValue(label, hideLabel, false)}\n />\n </>\n );\n}\n", "import { FocusEvent } from 'react';\nimport FormControlLabel, { FormControlLabelProps } from '@mui/material/FormControlLabel';\nimport FormLabel from '@mui/material/FormLabel';\nimport Radio, { RadioProps } from '@mui/material/Radio';\nimport RadioGroup, { RadioGroupProps } from '@mui/material/RadioGroup';\nimport {\n ariaDescribedByIds,\n enumOptionSelectedValue,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n getOptionValueFormat,\n labelValue,\n optionId,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the RadioWidget. */\nexport interface RadioWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the RadioWidget. */\n rjsfSlotProps?: {\n /** Props applied to the `RadioGroup` component. */\n radioGroup?: RadioGroupProps;\n /** Props applied to the individual `Radio` components. */\n radio?: RadioProps;\n /** Props applied to the `FormControlLabel` components wrapping each radio button. */\n formControlLabel?: FormControlLabelProps;\n };\n}\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { id, htmlName, options, value, required, disabled, readonly, label, hideLabel, onChange, onBlur, onFocus } =\n props;\n const { enumOptions, enumDisabled, emptyValue } = options;\n const optionValueFormat = getOptionValueFormat(options);\n\n const _onChange = (_: any, value: any) =>\n onChange(enumOptionValueDecoder<S>(value, enumOptions, optionValueFormat, emptyValue));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n\n const row = options ? options.inline : false;\n const selectValue = enumOptionSelectedValue<S>(value, enumOptions, false, optionValueFormat, '');\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, RadioWidgetMuiProps>(options);\n\n return (\n <>\n {labelValue(\n <FormLabel required={required} htmlFor={id}>\n {label || undefined}\n </FormLabel>,\n hideLabel,\n )}\n <RadioGroup\n {...otherMuiProps}\n {...muiSlotProps?.radioGroup}\n id={id}\n name={htmlName || id}\n value={selectValue}\n row={row as boolean}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n const radio = (\n <FormControlLabel\n {...muiSlotProps?.formControlLabel}\n control={\n <Radio {...muiSlotProps?.radio} name={htmlName || id} id={optionId(id, index)} color='primary' />\n }\n label={option.label}\n value={enumOptionValueEncoder(option.value, index, optionValueFormat)}\n key={index}\n disabled={disabled || itemDisabled || readonly}\n />\n );\n\n return radio;\n })}\n </RadioGroup>\n </>\n );\n}\n", "import { FocusEvent } from 'react';\nimport FormLabel from '@mui/material/FormLabel';\nimport Slider, { SliderProps } from '@mui/material/Slider';\nimport {\n ariaDescribedByIds,\n labelValue,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n rangeSpec,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the RangeWidget. */\nexport interface RangeWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the RangeWidget. */\n rjsfSlotProps?: {\n /** Props applied to the MUI `Slider` component. */\n slider?: SliderProps;\n };\n}\n\n/** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result\n * in a div, with the value along side it.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { value, readonly, disabled, onBlur, onFocus, options, schema, onChange, required, label, hideLabel, id } =\n props;\n const sliderProps = { value, label, id, name: id, ...rangeSpec<S>(schema) };\n\n const _onChange = (_: any, value?: number | number[]) => {\n onChange(value ?? options.emptyValue);\n };\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, RangeWidgetMuiProps>(options);\n\n return (\n <>\n {labelValue(\n <FormLabel required={required} htmlFor={id}>\n {label || undefined}\n </FormLabel>,\n hideLabel,\n )}\n <Slider\n disabled={disabled || readonly}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n valueLabelDisplay='auto'\n {...otherMuiProps}\n {...muiSlotProps?.slider}\n {...sliderProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport { InputLabelProps as MuiInputLabelProps } from '@mui/material/InputLabel';\nimport MenuItem from '@mui/material/MenuItem';\nimport { SelectProps as MuiSelectProps } from '@mui/material/Select';\nimport TextField, { TextFieldProps } from '@mui/material/TextField';\nimport {\n ariaDescribedByIds,\n enumOptionSelectedValue,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n getOptionValueFormat,\n labelValue,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the SelectWidget. */\nexport interface SelectWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the SelectWidget. */\n rjsfSlotProps?: {\n /** Props applied to the `InputLabel` element. */\n inputLabel?: MuiInputLabelProps;\n /** Props applied to the `Select` element. */\n select?: MuiSelectProps;\n };\n}\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n schema,\n id,\n name, // remove this from textFieldProps\n htmlName,\n options,\n label,\n hideLabel,\n required,\n disabled,\n placeholder,\n readonly,\n value,\n multiple,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n errorSchema,\n rawErrors = [],\n registry,\n uiSchema,\n hideError,\n ...textFieldProps\n } = props;\n const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;\n const optionValueFormat = getOptionValueFormat(options);\n\n const isMultiple = typeof multiple === 'undefined' ? false : !!multiple;\n\n const emptyValue = isMultiple ? [] : '';\n const isEmpty =\n typeof value === 'undefined' || (isMultiple && value.length < 1) || (!isMultiple && value === emptyValue);\n\n const _onChange = ({ target: { value } }: ChangeEvent<{ value: string }>) =>\n onChange(enumOptionValueDecoder<S>(value, enumOptions, optionValueFormat, optEmptyVal));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, optEmptyVal));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, optEmptyVal));\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, SelectWidgetMuiProps>(options);\n\n const { InputLabelProps, SelectProps, autocomplete, ...textFieldRemainingProps } = textFieldProps;\n const showPlaceholderOption = !isMultiple && schema.default === undefined;\n\n return (\n <TextField\n id={id}\n name={htmlName || id}\n label={labelValue(label || undefined, hideLabel, undefined)}\n value={enumOptionSelectedValue<S>(value, enumOptions, isMultiple, optionValueFormat, emptyValue)}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n autoComplete={autocomplete}\n placeholder={placeholder}\n error={rawErrors.length > 0}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n {...({ ...otherMuiProps, ...textFieldRemainingProps } as TextFieldProps)}\n select // Apply this and the following props after the potential overrides defined in textFieldProps\n slotProps={{\n ...muiSlotProps,\n inputLabel: {\n ...muiSlotProps?.inputLabel,\n shrink: !isEmpty,\n },\n select: {\n ...muiSlotProps?.select,\n multiple,\n },\n }}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {showPlaceholderOption && <MenuItem value=''>{placeholder}</MenuItem>}\n {Array.isArray(enumOptions) &&\n enumOptions.map(({ value, label }, i: number) => {\n const disabled: boolean = Array.isArray(enumDisabled) && enumDisabled.indexOf(value) !== -1;\n return (\n <MenuItem key={i} value={enumOptionValueEncoder(value, i, optionValueFormat)} disabled={disabled}>\n {label}\n </MenuItem>\n );\n })}\n </TextField>\n );\n}\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps, getTemplate } from '@rjsf/utils';\n\n/** The `TextareaWidget` is a widget for rendering input fields as textarea.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { options, registry } = props;\n const BaseInputTemplate = getTemplate<'BaseInputTemplate', T, S, F>('BaseInputTemplate', registry, options);\n\n let rows: string | number = 5;\n if (typeof options.rows === 'string' || typeof options.rows === 'number') {\n rows = options.rows;\n }\n\n return <BaseInputTemplate {...props} multiline rows={rows} />;\n}\n", "import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n", "import { ThemeProps } from '@rjsf/core';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n };\n}\n\nexport default generateTheme();\n", "import MuiForm from './MuiForm/MuiForm';\n\nexport { default as Form, generateForm } from './MuiForm';\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\n\nexport default MuiForm;\n"],
|
|
5
|
-
"mappings": ";AACA,SAAS,iBAA4B;;;ACDrC,OAAO,aAAa;AACpB,OAAO,gBAA2D;AAClE;AAAA,EAEE;AAAA,EAIA;AAAA,OACK;;;ACCA,SAAS,YAKd,SAAiC,eAA0B,mBAAgC;AAC3F,QAAM,WAAY,SAAS,OAAc,CAAC;AAC1C,MAAI,mBAAmB;AACrB,UAAM,EAAE,cAAc,IAAI;AAC1B,WAAO,EAAE,cAAc;AAAA,EACzB;AACA,MAAI,eAAe;AACjB,WAAO,OAAO,KAAK,QAAQ,EACxB,OAAO,CAAC,QAA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AACrC,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,kBAAQ,aAAa;;;A4BP5B,IAAO,gBAAQ;",
|
|
6
|
-
"names": ["getUiOptions", "jsx", "getUiOptions", "Box", "Grid", "Paper", "getTemplate", "getUiOptions", "jsx", "jsxs", "getUiOptions", "getTemplate", "AddButton", "Paper", "Box", "Grid", "jsx", "jsxs", "ClearButton", "
|
|
4
|
+
"sourcesContent": ["import type { ComponentType } from 'react';\nimport type { FormProps } from '@rjsf/core';\nimport { withTheme } from '@rjsf/core';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n", "import AddIcon from '@mui/icons-material/Add';\nimport type { IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';\nimport IconButton from '@mui/material/IconButton';\nimport type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { getUiOptions, TranslatableString } from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** The `AddButton` renders a button that represent the `Add` action on a form\n */\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n ...props\n}: IconButtonProps<T, S, F>) {\n const { translateString } = registry;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const muiProps = getMuiProps<T, S, F, MuiIconButtonProps>(uiOptions, [\n 'color',\n 'disableFocusRipple',\n 'disableRipple',\n 'edge',\n 'size',\n 'sx',\n ]);\n\n return (\n <IconButton title={translateString(TranslatableString.AddItemButton)} {...props} color='primary' {...muiProps}>\n <AddIcon />\n </IconButton>\n );\n}\n", "import type { BoxProps, FormHelperTextProps, GridProps, PaperProps, SxProps, TypographyProps } from '@mui/material';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, UIOptionsType, GenericObjectType } from '@rjsf/utils';\n\n/**\n * Extract props meant for MUI components from the `options` field of the `uiSchema`.\n * @param {UIOptionsType} options - The options from the uiSchema\n * @param {string[]} [propsToFilter] - An optional allowlist of props to return (used by button/icon components)\n * @param {boolean} [rjsfSlotPropsOnly] - If true, returns only `rjsfSlotProps`, preventing root-level prop bleeding\n * @returns {P}\n */\nexport function getMuiProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n P extends GenericObjectType = GenericObjectType,\n>(options: UIOptionsType<T, S, F>, propsToFilter?: string[], rjsfSlotPropsOnly?: boolean): P {\n const muiProps = (options?.mui as P) || ({} as P);\n if (rjsfSlotPropsOnly) {\n const { rjsfSlotProps } = muiProps as any;\n return { rjsfSlotProps } as unknown as P;\n }\n if (propsToFilter) {\n return Object.keys(muiProps)\n .filter((key) => propsToFilter.includes(key))\n .reduce((acc, key) => {\n acc[key as keyof P] = muiProps[key as keyof P];\n return acc;\n }, {} as P);\n }\n return muiProps;\n}\n\n/**\n * Merges default `sx` props with any `sx` provided on a MUI component's props, returning a value\n * suitable for passing directly to the MUI `sx` prop.\n *\n * When `muiProps.sx` is an array (only valid for `GridProps`), the default sx object is prepended\n * to produce an `sx` array, preserving MUI's array-merge semantics. Otherwise the two objects are\n * shallow-merged, with `muiProps.sx` taking precedence over the `sxProps`.\n *\n * If `muiProps` is omitted the `sxProps`` are returned as-is.\n *\n * @param sxProps - The default sx styles to apply\n * @param [muiProps] - The MUI component props that may contain a user-supplied `sx`\n * @returns - The merged sx value\n */\nexport function computeSxProps<MuiProps extends GridProps>(\n sxProps: SxProps,\n muiProps: MuiProps & { sx: any[] },\n): MuiProps['sx'] | MuiProps['sx'][];\nexport function computeSxProps<MuiProps extends BoxProps | FormHelperTextProps | PaperProps | TypographyProps>(\n sxProps: SxProps,\n muiProps?: MuiProps,\n): MuiProps['sx'];\nexport function computeSxProps<\n MuiProps extends BoxProps | FormHelperTextProps | GridProps | PaperProps | TypographyProps,\n>(sxProps: SxProps, muiProps?: MuiProps): MuiProps['sx'] | MuiProps['sx'][] {\n if (!muiProps) {\n return sxProps;\n }\n if (Array.isArray(muiProps?.sx)) {\n return [sxProps, ...muiProps.sx];\n }\n return { ...sxProps, ...muiProps?.sx } as MuiProps['sx'];\n}\n", "import type { CSSProperties } from 'react';\nimport type { BoxProps } from '@mui/material/Box';\nimport Box from '@mui/material/Box';\nimport type { GridProps } from '@mui/material/Grid';\nimport Grid from '@mui/material/Grid';\nimport type { PaperProps } from '@mui/material/Paper';\nimport Paper from '@mui/material/Paper';\nimport type {\n ArrayFieldItemTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n GenericObjectType,\n} from '@rjsf/utils';\nimport { getUiOptions, getTemplate } from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the ArrayFieldItemTemplate. */\nexport interface ArrayFieldItemTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the ArrayFieldItemTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the outermost `Grid` container. */\n arrayItemGridContainer?: GridProps;\n /** Props applied to the `Grid` item wrapping the item's content. */\n arrayItemGridItem?: GridProps;\n /** Props applied to the outer `Box` container. */\n arrayItemOuterBox?: BoxProps;\n /** Props applied to the `Paper` elevation component. */\n arrayItemPaper?: PaperProps;\n /** Props applied to the inner `Box` containing the actual children. */\n arrayItemInnerBox?: BoxProps;\n /** Props applied to the `Grid` containing the item's buttons. */\n arrayItemToolbarGrid?: GridProps;\n };\n}\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, hasDescription, hasToolbar, uiSchema, registry } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldItemButtonsTemplate = getTemplate<'ArrayFieldItemButtonsTemplate', T, S, F>(\n 'ArrayFieldItemButtonsTemplate',\n registry,\n uiOptions,\n );\n const btnStyle: CSSProperties = {\n flex: 1,\n paddingLeft: 6,\n paddingRight: 6,\n fontWeight: 'bold',\n minWidth: 0,\n };\n\n const {\n rjsfSlotProps: {\n arrayItemGridContainer,\n arrayItemGridItem,\n arrayItemInnerBox,\n arrayItemOuterBox,\n arrayItemPaper,\n arrayItemToolbarGrid,\n } = {},\n } = getMuiProps<T, S, F, ArrayFieldItemTemplateMuiProps>(uiOptions);\n\n return (\n <Grid\n container\n {...arrayItemGridContainer}\n sx={computeSxProps<GridProps>({ alignItems: 'center' }, arrayItemGridContainer)}\n >\n <Grid\n size={{ xs: 8, sm: 9, md: 10, lg: 11, xl: 11.25 }}\n {...arrayItemGridItem}\n sx={computeSxProps({ overflow: 'auto' }, arrayItemGridItem)}\n >\n <Box {...arrayItemOuterBox} sx={computeSxProps<BoxProps>({ mb: 2 }, arrayItemOuterBox)}>\n <Paper elevation={2} {...arrayItemPaper}>\n <Box {...arrayItemInnerBox} sx={computeSxProps<BoxProps>({ p: 2 }, arrayItemInnerBox)}>\n {children}\n </Box>\n </Paper>\n </Box>\n </Grid>\n {hasToolbar && (\n <Grid\n {...arrayItemToolbarGrid}\n sx={computeSxProps<GridProps>({ mt: hasDescription ? -5 : -1.5 }, arrayItemToolbarGrid)}\n >\n <ArrayFieldItemButtonsTemplate {...buttonsProps} style={btnStyle} />\n </Grid>\n )}\n </Grid>\n );\n}\n", "import type { BoxProps } from '@mui/material/Box';\nimport Box from '@mui/material/Box';\nimport type { GridProps } from '@mui/material/Grid';\nimport Grid from '@mui/material/Grid';\nimport type { PaperProps } from '@mui/material/Paper';\nimport Paper from '@mui/material/Paper';\nimport type {\n ArrayFieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n GenericObjectType,\n} from '@rjsf/utils';\nimport { getTemplate, getUiOptions, buttonId } from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the ArrayFieldTemplate. */\nexport interface ArrayFieldTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the ArrayFieldTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the wrapper `Paper` material. */\n arrayPaper?: PaperProps;\n /** Props applied to the primary `Box` container. */\n arrayBox?: BoxProps;\n /** Props applied to the wrapper `Grid` container next to the Add Button. */\n arrayAddButtonGridContainer?: GridProps;\n /** Props applied to the `Grid` item containing the Add Button. */\n arrayAddButtonGridItem?: GridProps;\n /** Props applied to the `Box` containing the Add Button. */\n arrayAddButtonBox?: BoxProps;\n };\n}\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n disabled,\n fieldPathId,\n uiSchema,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n registry,\n required,\n schema,\n title,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n\n const {\n rjsfSlotProps: {\n arrayPaper,\n arrayBox,\n arrayAddButtonGridContainer,\n arrayAddButtonGridItem,\n arrayAddButtonBox,\n } = {},\n } = getMuiProps<T, S, F, ArrayFieldTemplateMuiProps>(uiOptions);\n\n return (\n <Paper elevation={2} {...arrayPaper}>\n <Box {...arrayBox} sx={computeSxProps<BoxProps>({ p: 2 }, arrayBox)}>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n {canAdd && (\n <Grid\n container\n {...arrayAddButtonGridContainer}\n sx={computeSxProps<GridProps>({ justifyContent: 'flex-end' }, arrayAddButtonGridContainer)}\n >\n <Grid {...arrayAddButtonGridItem}>\n <Box {...arrayAddButtonBox} sx={computeSxProps<BoxProps>({ mt: 2 }, arrayAddButtonBox)}>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Box>\n </Grid>\n </Grid>\n )}\n </Box>\n </Paper>\n );\n}\n", "import type { ChangeEvent, FocusEvent, MouseEvent } from 'react';\nimport { useCallback } from 'react';\nimport type { InputProps as MuiInputProps } from '@mui/material/Input';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport type { InputLabelProps as MuiInputLabelProps } from '@mui/material/InputLabel';\nimport type { TextFieldProps } from '@mui/material/TextField';\nimport TextField from '@mui/material/TextField';\nimport { SchemaExamples } from '@rjsf/core';\nimport type {\n BaseInputTemplateProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { ariaDescribedByIds, examplesId, getInputProps, labelValue } from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the MUI `ui:options` of the BaseInputTemplate.\n * Unlike RJSF templates, `slotProps` here maps directly to MUI's native `TextField` `slotProps`,\n * enabling type-safe customization of the underlying MUI sub-components. */\nexport interface BaseInputTemplateMuiProps extends GenericObjectType {\n /** Native MUI `TextField` slotProps for targeting specific sub-components. */\n slotProps?: {\n /** Props applied to the base native HTML `<input>` or `<textarea>` element. */\n htmlInput?: React.HTMLAttributes<HTMLInputElement | HTMLTextAreaElement>;\n /** Props applied to the MUI `Input` element, useful for `endAdornment`/`startAdornment`. */\n input?: MuiInputProps;\n /** Props applied to the MUI `InputLabel` element. */\n inputLabel?: MuiInputLabelProps;\n };\n}\n\nconst TYPES_THAT_SHRINK_LABEL = ['date', 'datetime-local', 'file', 'time'];\n\n/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.\n * It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.\n * It can be customized/overridden for other themes or individual implementations as needed.\n *\n * @param props - The `WidgetProps` for this template\n */\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: BaseInputTemplateProps<T, S, F>) {\n const {\n id,\n name, // remove this from textFieldProps\n htmlName,\n placeholder,\n required,\n readonly,\n disabled,\n type,\n label,\n hideLabel,\n hideError,\n value,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n uiSchema,\n rawErrors = [],\n errorSchema,\n registry,\n InputLabelProps,\n InputProps,\n slotProps,\n ...textFieldProps\n } = props;\n const { ClearButton } = registry.templates.ButtonTemplates;\n // Now we need to pull out the step, min, max into an inner `inputProps` for material-ui\n const { step, min, max, accept, ...rest } = getInputProps<T, S, F>(schema, type, options);\n\n const muiProps = getMuiProps<T, S, F, BaseInputTemplateMuiProps>(options);\n const { slotProps: muiSlotProps, ...otherMuiProps } = muiProps;\n\n const htmlInputProps = {\n ...slotProps?.htmlInput,\n ...muiSlotProps?.htmlInput,\n step,\n min,\n max,\n accept,\n ...(schema.examples ? { list: examplesId(id) } : undefined),\n };\n const handleChange = ({ target: { value: newValue } }: ChangeEvent<HTMLInputElement>) =>\n onChange(newValue === '' ? options.emptyValue : newValue);\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n const DisplayInputLabelProps = TYPES_THAT_SHRINK_LABEL.includes(type)\n ? { ...slotProps?.inputLabel, ...muiSlotProps?.inputLabel, ...InputLabelProps, shrink: true }\n : { ...slotProps?.inputLabel, ...muiSlotProps?.inputLabel, ...InputLabelProps };\n const handleClear = useCallback(\n (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n onChange(options.emptyValue ?? '');\n },\n [onChange, options.emptyValue],\n );\n const inputProps = { ...InputProps, ...slotProps?.input, ...muiSlotProps?.input };\n if (options.allowClearTextInputs && value && !readonly && !disabled) {\n const clearAdornment = (\n <InputAdornment position='end'>\n <ClearButton registry={registry} onClick={handleClear} />\n </InputAdornment>\n );\n inputProps.endAdornment = !inputProps.endAdornment ? (\n clearAdornment\n ) : (\n <>\n {inputProps.endAdornment}\n {clearAdornment}\n </>\n );\n }\n\n return (\n <>\n <TextField\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n label={labelValue(label || undefined, hideLabel, undefined)}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n slotProps={{\n ...slotProps,\n ...muiSlotProps,\n input: inputProps,\n htmlInput: htmlInputProps,\n inputLabel: DisplayInputLabelProps,\n }}\n {...rest}\n value={value || value === 0 ? value : ''}\n error={rawErrors.length > 0}\n onChange={onChangeOverride || handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n {...({ ...otherMuiProps, ...textFieldProps } as TextFieldProps)}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n <SchemaExamples id={id} schema={schema} />\n </>\n );\n}\n", "import type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport { RichDescription } from '@rjsf/core';\nimport type {\n DescriptionFieldProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { getUiOptions } from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the DescriptionField. */\nexport interface DescriptionFieldMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the DescriptionField. */\n rjsfSlotProps?: {\n /** Props applied to the `Typography` element used for the description. */\n descTypography?: TypographyProps;\n };\n}\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: { descTypography } = {} } = getMuiProps<T, S, F, DescriptionFieldMuiProps>(uiOptions);\n\n if (description) {\n return (\n <Typography\n id={id}\n variant='subtitle2'\n {...descTypography}\n sx={computeSxProps<TypographyProps>({ mt: 0.625 }, descTypography)}\n >\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </Typography>\n );\n }\n\n return null;\n}\n", "import ErrorIcon from '@mui/icons-material/Error';\nimport type { BoxProps } from '@mui/material/Box';\nimport Box from '@mui/material/Box';\nimport type { ListProps } from '@mui/material/List';\nimport List from '@mui/material/List';\nimport type { ListItemProps } from '@mui/material/ListItem';\nimport ListItem from '@mui/material/ListItem';\nimport type { ListItemIconProps } from '@mui/material/ListItemIcon';\nimport ListItemIcon from '@mui/material/ListItemIcon';\nimport type { ListItemTextProps } from '@mui/material/ListItemText';\nimport ListItemText from '@mui/material/ListItemText';\nimport type { PaperProps } from '@mui/material/Paper';\nimport Paper from '@mui/material/Paper';\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport type { ErrorListProps, FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { TranslatableString, getUiOptions } from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the ErrorList. */\nexport interface ErrorListMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the ErrorList. */\n rjsfSlotProps?: {\n /** Props applied to the outermost `Paper` component. */\n errorPaper?: PaperProps;\n /** Props applied to the `Box` container. */\n errorBox?: BoxProps;\n /** Props applied to the `Typography` element for the title. */\n errorTypography?: TypographyProps;\n /** Props applied to the `List` container holding the errors. */\n errorList?: ListProps;\n /** Props applied to each `ListItem` representing an error. */\n errorListItem?: ListItemProps;\n /** Props applied to each `ListItemIcon` representing the error icon. */\n errorListItemIcon?: ListItemIconProps;\n /** Props applied to each `ListItemText` representing the error message. */\n errorListItemText?: ListItemTextProps;\n };\n}\n\n/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n uiSchema,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const {\n rjsfSlotProps: {\n errorPaper,\n errorBox,\n errorTypography,\n errorList,\n errorListItem,\n errorListItemIcon,\n errorListItemText,\n } = {},\n } = getMuiProps<T, S, F, ErrorListMuiProps>(uiOptions);\n\n return (\n <Paper elevation={2} {...errorPaper}>\n <Box {...errorBox} sx={computeSxProps<BoxProps>({ mb: 2, p: 2 }, errorBox)}>\n <Typography variant='h6' {...errorTypography}>\n {translateString(TranslatableString.ErrorsLabel)}\n </Typography>\n <List dense {...errorList}>\n {errors.map((error, i: number) => (\n // oxlint-disable-next-line react/no-array-index-key\n <ListItem key={i} {...errorListItem}>\n <ListItemIcon {...errorListItemIcon}>\n <ErrorIcon color='error' />\n </ListItemIcon>\n <ListItemText primary={error.stack} {...errorListItemText} />\n </ListItem>\n ))}\n </List>\n </Box>\n </Paper>\n );\n}\n", "import type { FormHelperTextProps } from '@mui/material/FormHelperText';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport type { ListProps } from '@mui/material/List';\nimport List from '@mui/material/List';\nimport type { ListItemProps } from '@mui/material/ListItem';\nimport ListItem from '@mui/material/ListItem';\nimport type { FieldErrorProps, FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { errorId, getUiOptions } from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the FieldErrorTemplate. */\nexport interface FieldErrorTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the FieldErrorTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the `List` container holding the errors. */\n fieldErrorList?: ListProps;\n /** Props applied to each `ListItem` representing an error. */\n fieldErrorListItem?: ListItemProps;\n /** Props applied to the `FormHelperText` displaying the actual error message. */\n fieldErrorFormHelperText?: FormHelperTextProps;\n };\n}\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldErrorProps<T, S, F>) {\n const { errors = [], fieldPathId, uiSchema } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const muiProps = getMuiProps<T, S, F, FieldErrorTemplateMuiProps>(uiOptions);\n const { rjsfSlotProps: muiSlotProps } = muiProps;\n\n return (\n <List id={id} dense disablePadding {...muiSlotProps?.fieldErrorList}>\n {errors.map((error, i: number) => (\n // oxlint-disable-next-line react/no-array-index-key\n <ListItem key={i} disableGutters {...muiSlotProps?.fieldErrorListItem}>\n <FormHelperText component='div' id={`${id}-${i}`} {...muiSlotProps?.fieldErrorFormHelperText}>\n {error}\n </FormHelperText>\n </ListItem>\n ))}\n </List>\n );\n}\n", "import type { FormHelperTextProps } from '@mui/material/FormHelperText';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport { RichHelp } from '@rjsf/core';\nimport type { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, GenericObjectType } from '@rjsf/utils';\nimport { helpId, getUiOptions } from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the FieldHelpTemplate. */\nexport interface FieldHelpTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the FieldHelpTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the `FormHelperText` used for help text. */\n helpFormHelperText?: FormHelperTextProps;\n };\n}\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldHelpProps<T, S, F>) {\n const { fieldPathId, help, uiSchema, registry } = props;\n if (!help) {\n return null;\n }\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: { helpFormHelperText } = {} } = getMuiProps<T, S, F, FieldHelpTemplateMuiProps>(uiOptions);\n\n return (\n <FormHelperText\n component='div'\n id={helpId(fieldPathId)}\n {...helpFormHelperText}\n sx={computeSxProps<FormHelperTextProps>({ mt: 0.625 }, helpFormHelperText)}\n >\n <RichHelp help={help} registry={registry} uiSchema={uiSchema} />\n </FormHelperText>\n );\n}\n", "import type { FormControlProps } from '@mui/material/FormControl';\nimport FormControl from '@mui/material/FormControl';\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport type { FieldTemplateProps, FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { getTemplate, getUiOptions } from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the FieldTemplate. */\nexport interface FieldTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the FieldTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the MUI `FormControl` wrapping the field. */\n fieldFormControl?: FormControlProps;\n /** Props applied to the MUI `Typography` element used for description. */\n fieldTypography?: TypographyProps;\n };\n}\n\n/** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field\n * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.\n *\n * @param props - The `FieldTemplateProps` for this component\n */\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldTemplateProps<T, S, F>) {\n const {\n id,\n children,\n classNames,\n style,\n disabled,\n displayLabel,\n hidden,\n label,\n onKeyRename,\n onKeyRenameBlur,\n onRemoveProperty,\n readonly,\n required,\n rawErrors = [],\n errors,\n help,\n description,\n rawDescription,\n schema,\n uiSchema,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n\n const isCheckbox = uiOptions.widget === 'checkbox';\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, FieldTemplateMuiProps>(uiOptions);\n\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n displayLabel={displayLabel}\n rawDescription={rawDescription}\n onKeyRename={onKeyRename}\n onKeyRenameBlur={onKeyRenameBlur}\n onRemoveProperty={onRemoveProperty}\n readonly={readonly}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n >\n <FormControl\n fullWidth\n error={!!rawErrors.length}\n required={required}\n {...muiSlotProps?.fieldFormControl}\n sx={otherMuiProps.sx}\n className={otherMuiProps.className}\n >\n {children}\n {displayLabel && !isCheckbox && rawDescription ? (\n <Typography variant='caption' color='textSecondary' {...muiSlotProps?.fieldTypography}>\n {description}\n </Typography>\n ) : null}\n {errors}\n {help}\n </FormControl>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import Grid from '@mui/material/Grid';\nimport type { GridTemplateProps } from '@rjsf/utils';\n\n/** Renders a `GridTemplate` for mui, which is expecting the column sizing information coming in via the\n * extra props provided by the caller, which are spread directly on the `Grid`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the mui grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, ...rest } = props;\n return (\n <Grid container={!column} {...rest}>\n {children}\n </Grid>\n );\n}\n", "import { memo } from 'react';\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward';\nimport ClearIcon from '@mui/icons-material/Clear';\nimport CopyIcon from '@mui/icons-material/ContentCopy';\nimport RemoveIcon from '@mui/icons-material/Remove';\nimport type { IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';\nimport IconButton from '@mui/material/IconButton';\nimport type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { TranslatableString, getUiOptions } from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\nfunction MuiIconButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const { icon, color, uiSchema, registry, ...otherProps } = props;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const muiProps = getMuiProps<T, S, F, MuiIconButtonProps>(uiOptions, [\n 'color',\n 'disableFocusRipple',\n 'disableRipple',\n 'edge',\n 'size',\n 'sx',\n ]);\n\n return (\n <IconButton {...muiProps} {...otherProps} size='small' color={color as MuiIconButtonProps['color']}>\n {icon}\n </IconButton>\n );\n}\nconst MuiIconButton = memo(MuiIconButtonFn) as typeof MuiIconButtonFn;\nexport default MuiIconButton;\n\nfunction CopyButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.CopyButton)}\n {...props}\n icon={<CopyIcon fontSize='small' />}\n />\n );\n}\nexport const CopyButton = memo(CopyButtonFn) as typeof CopyButtonFn;\n\nfunction MoveDownButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.MoveDownButton)}\n {...props}\n icon={<ArrowDownwardIcon fontSize='small' />}\n />\n );\n}\nexport const MoveDownButton = memo(MoveDownButtonFn) as typeof MoveDownButtonFn;\n\nfunction MoveUpButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.MoveUpButton)}\n {...props}\n icon={<ArrowUpwardIcon fontSize='small' />}\n />\n );\n}\nexport const MoveUpButton = memo(MoveUpButtonFn) as typeof MoveUpButtonFn;\n\nfunction RemoveButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const { iconType, ...otherProps } = props;\n const {\n registry: { translateString },\n } = otherProps;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.RemoveButton)}\n {...otherProps}\n color='error'\n icon={<RemoveIcon fontSize={iconType === 'default' ? undefined : 'small'} />}\n />\n );\n}\nexport const RemoveButton = memo(RemoveButtonFn) as typeof RemoveButtonFn;\n\nfunction ClearButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>,\n) {\n const { iconType, ...otherProps } = props;\n const {\n registry: { translateString },\n } = otherProps;\n return (\n <MuiIconButton\n title={translateString(TranslatableString.ClearButton)}\n {...otherProps}\n icon={<ClearIcon fontSize={iconType === 'default' ? undefined : 'small'} />}\n />\n );\n}\nexport const ClearButton = memo(ClearButtonFn) as typeof ClearButtonFn;\n", "import type { BoxProps } from '@mui/material/Box';\nimport Box from '@mui/material/Box';\nimport type { FormControlProps } from '@mui/material/FormControl';\nimport FormControl from '@mui/material/FormControl';\nimport type {\n FormContextType,\n GenericObjectType,\n MultiSchemaFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { getUiOptions } from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the MultiSchemaFieldTemplate. */\nexport interface MultiSchemaFieldTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the MultiSchemaFieldTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the wrapper `Box` container. */\n multiBox?: BoxProps;\n /** Props applied to the MUI `FormControl` wrapping the selector. */\n multiFormControl?: FormControlProps;\n };\n}\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { optionSchemaField, selector, uiSchema } = props;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: muiSlotProps } = getMuiProps<T, S, F, MultiSchemaFieldTemplateMuiProps>(uiOptions);\n\n return (\n <Box sx={{ mb: 2 }} {...muiSlotProps?.multiBox}>\n <FormControl fullWidth sx={{ mb: 2 }} {...muiSlotProps?.multiFormControl}>\n {selector}\n </FormControl>\n {optionSchemaField}\n </Box>\n );\n}\n", "import type { GridProps } from '@mui/material/Grid';\nimport Grid from '@mui/material/Grid';\nimport type {\n FormContextType,\n GenericObjectType,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { canExpand, descriptionId, getTemplate, getUiOptions, titleId, buttonId } from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the ObjectFieldTemplate. */\nexport interface ObjectFieldTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the ObjectFieldTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the outermost `Grid` container wrapping all object properties. */\n objectGridContainer?: GridProps;\n /** Props applied to the `Grid` item wrapping each individual object property. */\n objectGridItem?: GridProps;\n /** Props applied to the wrapper `Grid` container next to the Add Button (when expandable). */\n objectAddButtonGridContainer?: GridProps;\n /** Props applied to the `Grid` item containing the Add Button. */\n objectAddButtonGridItem?: GridProps;\n };\n}\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n title,\n properties,\n required,\n disabled,\n readonly,\n uiSchema,\n fieldPathId,\n schema,\n formData,\n optionalDataControl,\n onAddProperty,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n\n const {\n rjsfSlotProps: { objectGridContainer, objectGridItem, objectAddButtonGridContainer, objectAddButtonGridItem } = {},\n } = getMuiProps<T, S, F, ObjectFieldTemplateMuiProps>(uiOptions);\n\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Grid\n container\n spacing={2}\n {...objectGridContainer}\n sx={computeSxProps<GridProps>({ mt: 1.25 }, objectGridContainer)}\n >\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((element) =>\n // Remove the <Grid> if the inner element is hidden as the <Grid>\n // itself would otherwise still take up space.\n element.hidden ? (\n element.content\n ) : (\n <Grid\n size={{ xs: 12 }}\n key={element.name}\n {...objectGridItem}\n sx={computeSxProps<GridProps>({ mb: 1.25 }, objectGridItem)}\n >\n {element.content}\n </Grid>\n ),\n )}\n </Grid>\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid\n container\n {...objectAddButtonGridContainer}\n sx={computeSxProps<GridProps>({ justifyContent: 'flex-end' }, objectAddButtonGridContainer)}\n >\n <Grid {...objectAddButtonGridItem}>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n onClick={onAddProperty}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid>\n </Grid>\n )}\n </>\n );\n}\n", "import AddIcon from '@mui/icons-material/Add';\nimport type { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport IconButton, { RemoveButton } from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick, uiSchema } = props;\n if (onAddClick) {\n return (\n <IconButton\n id={id}\n registry={registry}\n uiSchema={uiSchema}\n className='rjsf-add-optional-data'\n onClick={onAddClick}\n title={label}\n icon={<AddIcon fontSize='small' />}\n />\n );\n }\n if (onRemoveClick) {\n return (\n <RemoveButton\n id={id}\n registry={registry}\n uiSchema={uiSchema}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import type { BoxProps } from '@mui/material/Box';\nimport Box from '@mui/material/Box';\nimport type { ButtonProps } from '@mui/material/Button';\nimport Button from '@mui/material/Button';\nimport type { GenericObjectType, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\nimport { getSubmitButtonOptions, getUiOptions } from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the SubmitButton. */\nexport interface SubmitButtonMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the SubmitButton. */\n rjsfSlotProps?: {\n /** Props applied to the `Box` wrapper. */\n submitBox?: BoxProps;\n /** Props applied to the `Button` element. */\n submitButton?: ButtonProps;\n };\n}\n\n/** The `SubmitButton` renders a button that represent the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions<T, S, F>(uiSchema);\n if (norender) {\n return null;\n }\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: { submitBox, submitButton } = {}, ...otherMuiProps } = getMuiProps<\n T,\n S,\n F,\n SubmitButtonMuiProps\n >(uiOptions);\n\n return (\n <Box {...submitBox} sx={computeSxProps<BoxProps>({ mt: 3 }, submitBox)}>\n <Button\n type='submit'\n variant='contained'\n color='primary'\n {...submitButtonProps}\n {...otherMuiProps}\n {...submitButton}\n >\n {submitText}\n </Button>\n </Box>\n );\n}\n", "import type { BoxProps } from '@mui/material/Box';\nimport Box from '@mui/material/Box';\nimport type { DividerProps } from '@mui/material/Divider';\nimport Divider from '@mui/material/Divider';\nimport type { GridProps } from '@mui/material/Grid';\nimport Grid from '@mui/material/Grid';\nimport type { TypographyProps } from '@mui/material/Typography';\nimport Typography from '@mui/material/Typography';\nimport type { FormContextType, GenericObjectType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { getUiOptions } from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the TitleField. */\nexport interface TitleFieldMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the TitleField. */\n rjsfSlotProps?: {\n /** Props applied to the `Box` wrapper. */\n titleBox?: BoxProps;\n /** Props applied to the `Divider` element. */\n titleDivider?: DividerProps;\n /** Props applied to the `Typography` element used for the title. */\n titleTypography?: TypographyProps;\n /** Props applied to the `Grid` container used when `optionalDataControl` is present. */\n titleGridContainer?: GridProps;\n /** Props applied to the `Grid` item containing the title. */\n titleGridItem?: GridProps;\n /** Props applied to the `Grid` item containing the `optionalDataControl`. */\n titleOptionalDataGridItem?: GridProps;\n };\n}\n\n/** The `TitleField` is the template to use to render the title of a field\n *\n * @param props - The `TitleFieldProps` for this component\n */\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: TitleFieldProps<T, S, F>,\n) {\n const { id, title, optionalDataControl, uiSchema } = props;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const {\n rjsfSlotProps: {\n titleBox,\n titleDivider,\n titleTypography,\n titleGridContainer,\n titleGridItem,\n titleOptionalDataGridItem,\n } = {},\n } = getMuiProps<T, S, F, TitleFieldMuiProps>(uiOptions);\n\n let heading = (\n <Typography variant='h5' {...titleTypography}>\n {title}\n </Typography>\n );\n if (optionalDataControl) {\n heading = (\n <Grid container spacing={0} {...titleGridContainer}>\n <Grid size='grow' {...titleGridItem}>\n {heading}\n </Grid>\n <Grid\n {...titleOptionalDataGridItem}\n sx={computeSxProps<GridProps>({ justifyContent: 'flex-end' }, titleOptionalDataGridItem)}\n >\n {optionalDataControl}\n </Grid>\n </Grid>\n );\n }\n return (\n <Box id={id} {...titleBox} sx={computeSxProps<BoxProps>({ mb: 1, mt: 1 }, titleBox)}>\n {heading}\n <Divider {...titleDivider} />\n </Box>\n );\n}\n", "import type { CSSProperties } from 'react';\nimport type { GridProps } from '@mui/material/Grid';\nimport Grid from '@mui/material/Grid';\nimport TextField from '@mui/material/TextField';\nimport type {\n GenericObjectType,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WrapIfAdditionalTemplateProps,\n} from '@rjsf/utils';\nimport { ADDITIONAL_PROPERTY_FLAG, buttonId, TranslatableString, getUiOptions } from '@rjsf/utils';\n\nimport { computeSxProps, getMuiProps } from '../util';\n/** Properties available for the `rjsfSlotProps` target of the WrapIfAdditionalTemplate. */\nexport interface WrapIfAdditionalTemplateMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the WrapIfAdditionalTemplate. */\n rjsfSlotProps?: {\n /** Props applied to the outermost `Grid` container. */\n wrapGridContainer?: GridProps;\n /** Props applied to the `Grid` item containing the key TextField. */\n wrapKeyGridItem?: GridProps;\n /** Props applied to the `Grid` item containing the field children. */\n wrapChildrenGridItem?: GridProps;\n /** Props applied to the `Grid` item containing the remove button. */\n wrapRemoveButtonGridItem?: GridProps;\n };\n}\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WrapIfAdditionalTemplateProps<T, S, F>) {\n const {\n children,\n classNames,\n style,\n disabled,\n id,\n label,\n displayLabel,\n onKeyRenameBlur,\n onRemoveProperty,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n } = props;\n const { templates, translateString } = registry;\n // Button templates are not overridden in the uiSchema\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n const btnStyle: CSSProperties = {\n flex: 1,\n paddingLeft: 6,\n paddingRight: 6,\n fontWeight: 'bold',\n };\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const { rjsfSlotProps: { wrapGridContainer, wrapKeyGridItem, wrapChildrenGridItem, wrapRemoveButtonGridItem } = {} } =\n getMuiProps<T, S, F, WrapIfAdditionalTemplateMuiProps>(uiOptions);\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n return (\n <Grid\n container\n key={`${id}-key`}\n spacing={2}\n className={classNames}\n style={style}\n {...wrapGridContainer}\n sx={computeSxProps<GridProps>({ alignItems: 'flex-start' }, wrapGridContainer)}\n >\n <Grid size={5.5} {...wrapKeyGridItem}>\n <TextField\n key={label}\n fullWidth\n required={required}\n label={displayLabel ? keyLabel : undefined}\n defaultValue={label}\n disabled={disabled || readonly}\n id={`${id}-key`}\n name={`${id}-key`}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n type='text'\n />\n </Grid>\n <Grid size={5.5} {...wrapChildrenGridItem}>\n {children}\n </Grid>\n <Grid {...wrapRemoveButtonGridItem} sx={computeSxProps<GridProps>({ mt: 1.5 }, wrapRemoveButtonGridItem)}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n className='rjsf-object-property-remove'\n iconType='default'\n style={btnStyle}\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid>\n </Grid>\n );\n}\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n ClearButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import type { ChangeEvent, FocusEvent } from 'react';\nimport type { CheckboxProps } from '@mui/material/Checkbox';\nimport Checkbox from '@mui/material/Checkbox';\nimport type { FormControlLabelProps } from '@mui/material/FormControlLabel';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport type { FormGroupProps } from '@mui/material/FormGroup';\nimport FormGroup from '@mui/material/FormGroup';\nimport FormLabel from '@mui/material/FormLabel';\nimport type { FormContextType, GenericObjectType, WidgetProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport {\n ariaDescribedByIds,\n enumOptionValueDecoder,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n getOptionValueFormat,\n labelValue,\n optionId,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the CheckboxesWidget. */\nexport interface CheckboxesWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the CheckboxesWidget. */\n rjsfSlotProps?: {\n /** Props applied to the `FormGroup` container. */\n formGroup?: FormGroupProps;\n /** Props applied to the individual `Checkbox` components. */\n checkbox?: CheckboxProps;\n /** Props applied to the `FormControlLabel` components wrapping each checkbox. */\n formControlLabel?: FormControlLabelProps;\n };\n}\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n label,\n hideLabel,\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n required,\n onChange,\n onBlur,\n onFocus,\n } = props;\n const { enumOptions, enumDisabled, inline, emptyValue } = options;\n const optionValueFormat = getOptionValueFormat(options);\n const checkboxesValues = Array.isArray(value) ? value : [value];\n\n const handleChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n if (checked) {\n onChange(enumOptionsSelectValue(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue(index, checkboxesValues, enumOptions));\n }\n };\n\n const handleBlur = ({ target }: FocusEvent<HTMLButtonElement>) =>\n onBlur(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n const handleFocus = ({ target }: FocusEvent<HTMLButtonElement>) =>\n onFocus(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, CheckboxesWidgetMuiProps>(options);\n\n return (\n <>\n {labelValue(\n <FormLabel required={required} htmlFor={id}>\n {label || undefined}\n </FormLabel>,\n hideLabel,\n )}\n <FormGroup {...otherMuiProps} {...muiSlotProps?.formGroup} id={id} row={!!inline}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index: number) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);\n const checkbox = (\n <Checkbox\n {...muiSlotProps?.checkbox}\n id={optionId(id, index)}\n name={htmlName || id}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={handleChange(index)}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n return (\n <FormControlLabel\n {...muiSlotProps?.formControlLabel}\n control={checkbox}\n key={String(option.value)}\n label={option.label}\n />\n );\n })}\n </FormGroup>\n </>\n );\n}\n", "import type { CheckboxProps } from '@mui/material/Checkbox';\nimport Checkbox from '@mui/material/Checkbox';\nimport type { FormControlLabelProps } from '@mui/material/FormControlLabel';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport type { FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ariaDescribedByIds, descriptionId, getTemplate, labelValue, schemaRequiresTrueValue } from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the CheckboxWidget. */\nexport interface CheckboxWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the CheckboxWidget. */\n rjsfSlotProps?: {\n /** Props applied to the individual `Checkbox` component. */\n checkbox?: CheckboxProps;\n /** Props applied to the `FormControlLabel` component wrapping the checkbox. */\n formControlLabel?: FormControlLabelProps;\n };\n}\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n schema,\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label = '',\n hideLabel,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n registry,\n options,\n uiSchema,\n } = props;\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n // Because an unchecked checkbox will cause html5 validation to fail, only add\n // the \"required\" attribute if the field value must be \"true\", due to the\n // \"const\" or \"enum\" keywords\n const required = schemaRequiresTrueValue<S>(schema);\n\n const handleChange = (_: any, checked: boolean) => onChange(checked);\n const handleBlur: React.FocusEventHandler<HTMLButtonElement> = () => onBlur(id, value);\n const handleFocus: React.FocusEventHandler<HTMLButtonElement> = () => onFocus(id, value);\n const description = options.description ?? schema.description;\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, CheckboxWidgetMuiProps>(options);\n\n return (\n <>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <FormControlLabel\n {...otherMuiProps}\n {...muiSlotProps?.formControlLabel}\n control={\n <Checkbox\n id={id}\n name={htmlName || id}\n checked={typeof value === 'undefined' ? false : Boolean(value)}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n {...muiSlotProps?.checkbox}\n />\n }\n label={labelValue(label, hideLabel, false)}\n />\n </>\n );\n}\n", "import type { FocusEvent } from 'react';\nimport type { FormControlLabelProps } from '@mui/material/FormControlLabel';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport FormLabel from '@mui/material/FormLabel';\nimport type { RadioProps } from '@mui/material/Radio';\nimport Radio from '@mui/material/Radio';\nimport type { RadioGroupProps } from '@mui/material/RadioGroup';\nimport RadioGroup from '@mui/material/RadioGroup';\nimport type { FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport {\n ariaDescribedByIds,\n enumOptionSelectedValue,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n getOptionValueFormat,\n labelValue,\n optionId,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the RadioWidget. */\nexport interface RadioWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the RadioWidget. */\n rjsfSlotProps?: {\n /** Props applied to the `RadioGroup` component. */\n radioGroup?: RadioGroupProps;\n /** Props applied to the individual `Radio` components. */\n radio?: RadioProps;\n /** Props applied to the `FormControlLabel` components wrapping each radio button. */\n formControlLabel?: FormControlLabelProps;\n };\n}\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { id, htmlName, options, value, required, disabled, readonly, label, hideLabel, onChange, onBlur, onFocus } =\n props;\n const { enumOptions, enumDisabled, emptyValue } = options;\n const optionValueFormat = getOptionValueFormat(options);\n\n const handleChange = (_: any, enumValue: any) =>\n onChange(enumOptionValueDecoder<S>(enumValue, enumOptions, optionValueFormat, emptyValue));\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n\n const row = options ? options.inline : false;\n const selectValue = enumOptionSelectedValue<S>(value, enumOptions, false, optionValueFormat, '');\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, RadioWidgetMuiProps>(options);\n\n return (\n <>\n {labelValue(\n <FormLabel required={required} htmlFor={id}>\n {label || undefined}\n </FormLabel>,\n hideLabel,\n )}\n <RadioGroup\n {...otherMuiProps}\n {...muiSlotProps?.radioGroup}\n id={id}\n name={htmlName || id}\n value={selectValue}\n row={row as boolean}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);\n const radio = (\n <FormControlLabel\n {...muiSlotProps?.formControlLabel}\n control={\n <Radio {...muiSlotProps?.radio} name={htmlName || id} id={optionId(id, index)} color='primary' />\n }\n label={option.label}\n value={enumOptionValueEncoder(option.value, index, optionValueFormat)}\n key={String(option.value)}\n disabled={disabled || itemDisabled || readonly}\n />\n );\n\n return radio;\n })}\n </RadioGroup>\n </>\n );\n}\n", "import type { FocusEvent } from 'react';\nimport FormLabel from '@mui/material/FormLabel';\nimport type { SliderProps } from '@mui/material/Slider';\nimport Slider from '@mui/material/Slider';\nimport type { FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ariaDescribedByIds, labelValue, rangeSpec } from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the RangeWidget. */\nexport interface RangeWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the RangeWidget. */\n rjsfSlotProps?: {\n /** Props applied to the MUI `Slider` component. */\n slider?: SliderProps;\n };\n}\n\n/** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result\n * in a div, with the value along side it.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { value, readonly, disabled, onBlur, onFocus, options, schema, onChange, required, label, hideLabel, id } =\n props;\n const sliderProps = { value, label, id, name: id, ...rangeSpec<S>(schema) };\n\n const handleChange = (_: any, newValue?: number | number[]) => {\n onChange(newValue ?? options.emptyValue);\n };\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, RangeWidgetMuiProps>(options);\n\n return (\n <>\n {labelValue(\n <FormLabel required={required} htmlFor={id}>\n {label || undefined}\n </FormLabel>,\n hideLabel,\n )}\n <Slider\n disabled={disabled || readonly}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n valueLabelDisplay='auto'\n {...otherMuiProps}\n {...muiSlotProps?.slider}\n {...sliderProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import type { ChangeEvent, FocusEvent } from 'react';\nimport type { InputLabelProps as MuiInputLabelProps } from '@mui/material/InputLabel';\nimport MenuItem from '@mui/material/MenuItem';\nimport type { SelectProps as MuiSelectProps } from '@mui/material/Select';\nimport type { TextFieldProps } from '@mui/material/TextField';\nimport TextField from '@mui/material/TextField';\nimport type { FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport {\n ariaDescribedByIds,\n enumOptionSelectedValue,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n getOptionValueFormat,\n labelValue,\n} from '@rjsf/utils';\n\nimport { getMuiProps } from '../util';\n\n/** Properties available for the `rjsfSlotProps` target of the SelectWidget. */\nexport interface SelectWidgetMuiProps extends GenericObjectType {\n /** RJSF-specific slot props for targeting child elements of the SelectWidget. */\n rjsfSlotProps?: {\n /** Props applied to the `InputLabel` element. */\n inputLabel?: MuiInputLabelProps;\n /** Props applied to the `Select` element. */\n select?: MuiSelectProps;\n };\n}\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n schema,\n id,\n name, // remove this from textFieldProps\n htmlName,\n options,\n label,\n hideLabel,\n required,\n disabled,\n placeholder,\n readonly,\n value,\n multiple,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n errorSchema,\n rawErrors = [],\n registry,\n uiSchema,\n hideError,\n ...textFieldProps\n } = props;\n const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;\n const optionValueFormat = getOptionValueFormat(options);\n\n const isMultiple = typeof multiple === 'undefined' ? false : !!multiple;\n\n const emptyValue = isMultiple ? [] : '';\n const isEmpty =\n typeof value === 'undefined' || (isMultiple && value.length < 1) || (!isMultiple && value === emptyValue);\n\n const handleChange = ({ target: { value: newValue } }: ChangeEvent<{ value: string }>) =>\n onChange(enumOptionValueDecoder<S>(newValue, enumOptions, optionValueFormat, optEmptyVal));\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, optEmptyVal));\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, optEmptyVal));\n const { rjsfSlotProps: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, SelectWidgetMuiProps>(options);\n\n const { InputLabelProps, SelectProps, autocomplete, ...textFieldRemainingProps } = textFieldProps;\n const showPlaceholderOption = !isMultiple && schema.default === undefined;\n\n return (\n <TextField\n id={id}\n name={htmlName || id}\n label={labelValue(label || undefined, hideLabel, undefined)}\n value={enumOptionSelectedValue<S>(value, enumOptions, isMultiple, optionValueFormat, emptyValue)}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n autoComplete={autocomplete}\n placeholder={placeholder}\n error={rawErrors.length > 0}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n {...({ ...otherMuiProps, ...textFieldRemainingProps } as TextFieldProps)}\n select // Apply this and the following props after the potential overrides defined in textFieldProps\n slotProps={{\n ...muiSlotProps,\n inputLabel: {\n ...muiSlotProps?.inputLabel,\n shrink: !isEmpty,\n },\n select: {\n ...muiSlotProps?.select,\n multiple,\n },\n }}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {showPlaceholderOption && <MenuItem value=''>{placeholder}</MenuItem>}\n {Array.isArray(enumOptions) &&\n enumOptions.map(({ value: enumValue, label: enumLabel }, i: number) => {\n const isDisabled: boolean = Array.isArray(enumDisabled) && enumDisabled.includes(enumValue);\n return (\n <MenuItem\n key={String(enumValue)}\n value={enumOptionValueEncoder(enumValue, i, optionValueFormat)}\n disabled={isDisabled}\n >\n {enumLabel}\n </MenuItem>\n );\n })}\n </TextField>\n );\n}\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { getTemplate } from '@rjsf/utils';\n\n/** The `TextareaWidget` is a widget for rendering input fields as textarea.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { options, registry } = props;\n const BaseInputTemplate = getTemplate<'BaseInputTemplate', T, S, F>('BaseInputTemplate', registry, options);\n\n let rows: string | number = 5;\n if (typeof options.rows === 'string' || typeof options.rows === 'number') {\n rows = options.rows;\n }\n\n return <BaseInputTemplate {...props} multiline rows={rows} />;\n}\n", "import type { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n", "import type { ThemeProps } from '@rjsf/core';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n };\n}\n\nexport default generateTheme();\n", "import MuiForm from './MuiForm/MuiForm';\n\nexport { default as Form, generateForm } from './MuiForm';\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\n\nexport default MuiForm;\n"],
|
|
5
|
+
"mappings": ";AAEA,SAAS,i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jB;AAEA,SAAO,gBAAAC,MAACC,oBAAA,EAAmB,GAAG,OAAO,WAAS,MAAC,MAAY;AAC7D;;;ACZO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;AClBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;A3BVtB,SAAS,eAIuB;AACrC,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,kBAAQ,aAAa;;;A4BR5B,IAAO,gBAAQ;",
|
|
6
|
+
"names": ["getUiOptions", "jsx", "getUiOptions", "Box", "Grid", "Paper", "getTemplate", "getUiOptions", "jsx", "jsxs", "getUiOptions", "getTemplate", "AddButton", "Paper", "Box", "Grid", "jsx", "jsxs", "ClearButton", "getUiOptions", "jsx", "getUiOptions", "Box", "Paper", "Typography", "TranslatableString", "getUiOptions", "jsx", "jsxs", "getUiOptions", "Paper", "Box", "Typography", "TranslatableString", "List", "ListItem", "getUiOptions", "jsx", "getUiOptions", "List", "ListItem", "FormHelperText", "getUiOptions", "jsx", "getUiOptions", "FormHelperText", "Typography", "getTemplate", "getUiOptions", "jsx", "jsxs", "getUiOptions", "WrapIfAdditionalTemplate", "getTemplate", "Typography", "Grid", "jsx", "IconButton", "TranslatableString", "getUiOptions", "jsx", "getUiOptions", "IconButton", "TranslatableString", "Box", "FormControl", "getUiOptions", "jsx", "jsxs", "getUiOptions", "Box", "FormControl", "Grid", "getTemplate", "getUiOptions", "buttonId", "Fragment", "jsx", "jsxs", "getUiOptions", "getTemplate", "AddButton", "Grid", "buttonId", "AddIcon", "jsx", "AddIcon", "Box", "getUiOptions", "jsx", "getUiOptions", "Box", "Box", "Grid", "Typography", "getUiOptions", "jsx", "jsxs", "getUiOptions", "Typography", "Grid", "Box", "Grid", "TextField", "buttonId", "TranslatableString", "getUiOptions", "jsx", "jsxs", "RemoveButton", "TranslatableString", "getUiOptions", "Grid", "TextField", "buttonId", "ariaDescribedByIds", "labelValue", "Fragment", "jsx", "jsxs", "labelValue", "ariaDescribedByIds", "Checkbox", "FormControlLabel", "ariaDescribedByIds", "descriptionId", "getTemplate", "labelValue", "Fragment", "jsx", "jsxs", "getTemplate", "descriptionId", "FormControlLabel", "Checkbox", "ariaDescribedByIds", "labelValue", "FormControlLabel", "FormLabel", "ariaDescribedByIds", "enumOptionValueDecoder", "getOptionValueFormat", "labelValue", "optionId", "Fragment", "jsx", "jsxs", "createElement", "getOptionValueFormat", "enumOptionValueDecoder", "labelValue", "FormLabel", "ariaDescribedByIds", "FormControlLabel", "optionId", "FormLabel", "ariaDescribedByIds", "labelValue", "Fragment", "jsx", "jsxs", "labelValue", "FormLabel", "ariaDescribedByIds", "TextField", "ariaDescribedByIds", "enumOptionSelectedValue", "enumOptionValueDecoder", "enumOptionValueEncoder", "getOptionValueFormat", "labelValue", "jsx", "jsxs", "getOptionValueFormat", "enumOptionValueDecoder", "TextField", "labelValue", "enumOptionSelectedValue", "ariaDescribedByIds", "enumOptionValueEncoder", "getTemplate", "jsx", "BaseInputTemplate"]
|
|
7
7
|
}
|