@rjsf/mui 6.4.2 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/dist/index.cjs +353 -214
- package/dist/index.cjs.map +4 -4
- package/dist/mui.esm.js +354 -185
- package/dist/mui.esm.js.map +4 -4
- package/dist/mui.umd.js +293 -165
- package/lib/AddButton/AddButton.js +12 -2
- package/lib/AddButton/AddButton.js.map +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +22 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +3 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +20 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +3 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.d.ts +17 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js +9 -4
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/CheckboxWidget/CheckboxWidget.d.ts +13 -1
- package/lib/CheckboxWidget/CheckboxWidget.js +3 -1
- package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +17 -2
- package/lib/CheckboxesWidget/CheckboxesWidget.js +12 -7
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/DescriptionField/DescriptionField.d.ts +10 -1
- package/lib/DescriptionField/DescriptionField.js +6 -1
- package/lib/DescriptionField/DescriptionField.js.map +1 -1
- package/lib/ErrorList/ErrorList.d.ts +29 -2
- package/lib/ErrorList/ErrorList.js +7 -4
- package/lib/ErrorList/ErrorList.js.map +1 -1
- package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts +16 -1
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js +8 -4
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.d.ts +10 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js +6 -2
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/FieldTemplate/FieldTemplate.d.ts +13 -1
- package/lib/FieldTemplate/FieldTemplate.js +3 -1
- package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
- package/lib/IconButton/IconButton.js +12 -2
- package/lib/IconButton/IconButton.js.map +1 -1
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +13 -1
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js +6 -2
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js.map +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +16 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +4 -2
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +3 -3
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -1
- package/lib/RadioWidget/RadioWidget.d.ts +17 -2
- package/lib/RadioWidget/RadioWidget.js +13 -9
- package/lib/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/RangeWidget/RangeWidget.d.ts +10 -1
- package/lib/RangeWidget/RangeWidget.js +3 -1
- package/lib/RangeWidget/RangeWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.d.ts +14 -3
- package/lib/SelectWidget/SelectWidget.js +26 -19
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/SubmitButton/SubmitButton.d.ts +13 -1
- package/lib/SubmitButton/SubmitButton.js +5 -2
- package/lib/SubmitButton/SubmitButton.js.map +1 -1
- package/lib/TitleField/TitleField.d.ts +24 -2
- package/lib/TitleField/TitleField.js +9 -4
- package/lib/TitleField/TitleField.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +16 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +7 -2
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/util.d.ts +9 -0
- package/lib/util.js +24 -0
- package/lib/util.js.map +1 -0
- package/package.json +7 -7
- package/src/AddButton/AddButton.tsx +21 -3
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +39 -9
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +30 -8
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +29 -5
- package/src/CheckboxWidget/CheckboxWidget.tsx +20 -2
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +51 -23
- package/src/DescriptionField/DescriptionField.tsx +25 -3
- package/src/ErrorList/ErrorList.tsx +52 -15
- package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +34 -8
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +30 -3
- package/src/FieldTemplate/FieldTemplate.tsx +26 -4
- package/src/IconButton/IconButton.tsx +21 -2
- package/src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx +28 -6
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +25 -5
- package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +3 -1
- package/src/RadioWidget/RadioWidget.tsx +43 -26
- package/src/RangeWidget/RangeWidget.tsx +16 -1
- package/src/SelectWidget/SelectWidget.tsx +71 -49
- package/src/SubmitButton/SubmitButton.tsx +36 -5
- package/src/TitleField/TitleField.tsx +54 -16
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +39 -5
- package/src/util.ts +30 -0
package/dist/index.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/index.ts", "../src/MuiForm/MuiForm.tsx", "../src/AddButton/AddButton.tsx", "../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx", "../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx", "../src/BaseInputTemplate/BaseInputTemplate.tsx", "../src/DescriptionField/DescriptionField.tsx", "../src/ErrorList/ErrorList.tsx", "../src/IconButton/IconButton.tsx", "../src/FieldErrorTemplate/FieldErrorTemplate.tsx", "../src/FieldHelpTemplate/FieldHelpTemplate.tsx", "../src/FieldTemplate/FieldTemplate.tsx", "../src/GridTemplate/GridTemplate.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/CheckboxWidget/CheckboxWidget.tsx", "../src/CheckboxesWidget/CheckboxesWidget.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"],
|
|
4
|
-
"sourcesContent": ["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", "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 from '@mui/material/IconButton';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\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 return (\n <IconButton title={translateString(TranslatableString.AddItemButton)} {...props} color='primary'>\n <AddIcon />\n </IconButton>\n );\n}\n", "import { CSSProperties } from 'react';\nimport Box from '@mui/material/Box';\nimport Grid from '@mui/material/Grid';\nimport Paper from '@mui/material/Paper';\nimport {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getUiOptions,\n getTemplate,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\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 return (\n <Grid container={true} alignItems='center'>\n <Grid size={{ xs: 8, sm: 9, md: 10, lg: 11, xl: 11.25 }} style={{ overflow: 'auto' }}>\n <Box mb={2}>\n <Paper elevation={2}>\n <Box p={2}>{children}</Box>\n </Paper>\n </Box>\n </Grid>\n {hasToolbar && (\n <Grid sx={{ mt: hasDescription ? -5 : -1.5 }}>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} style={btnStyle} />\n </Grid>\n )}\n </Grid>\n );\n}\n", "import Box from '@mui/material/Box';\nimport Grid from '@mui/material/Grid';\nimport Paper from '@mui/material/Paper';\nimport {\n getTemplate,\n getUiOptions,\n ArrayFieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n buttonId,\n} from '@rjsf/utils';\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 return (\n <Paper elevation={2}>\n <Box p={2}>\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 container justifyContent='flex-end'>\n <Grid>\n <Box mt={2}>\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 TextField, { TextFieldProps } from '@mui/material/TextField';\nimport InputAdornment from '@mui/material/InputAdornment';\n\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { SchemaExamples } from '@rjsf/core';\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 const htmlInputProps = {\n ...slotProps?.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, ...InputLabelProps, shrink: true }\n : { ...slotProps?.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 };\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 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 {...(textFieldProps as TextFieldProps)}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n <SchemaExamples id={id} schema={schema} />\n </>\n );\n}\n", "import Typography from '@mui/material/Typography';\nimport { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\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 if (description) {\n return (\n <Typography id={id} variant='subtitle2' style={{ marginTop: '5px' }}>\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 from '@mui/material/Box';\nimport List from '@mui/material/List';\nimport ListItem from '@mui/material/ListItem';\nimport ListItemIcon from '@mui/material/ListItemIcon';\nimport ListItemText from '@mui/material/ListItemText';\nimport Paper from '@mui/material/Paper';\nimport Typography from '@mui/material/Typography';\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\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}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Paper elevation={2}>\n <Box mb={2} p={2}>\n <Typography variant='h6'>{translateString(TranslatableString.ErrorsLabel)}</Typography>\n <List dense={true}>\n {errors.map((error, i: number) => {\n return (\n <ListItem key={i}>\n <ListItemIcon>\n <ErrorIcon color='error' />\n </ListItemIcon>\n <ListItemText primary={error.stack} />\n </ListItem>\n );\n })}\n </List>\n </Box>\n </Paper>\n );\n}\n", "import IconButton, { IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward';\nimport CopyIcon from '@mui/icons-material/ContentCopy';\nimport RemoveIcon from '@mui/icons-material/Remove';\nimport ClearIcon from '@mui/icons-material/Clear';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\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 return (\n <IconButton {...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 ListItem from '@mui/material/ListItem';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport List from '@mui/material/List';\nimport { errorId, FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n return (\n <List id={id} dense={true} disablePadding={true}>\n {errors.map((error, i: number) => {\n return (\n <ListItem key={i} disableGutters={true}>\n <FormHelperText component='div' id={`${id}-${i}`}>\n {error}\n </FormHelperText>\n </ListItem>\n );\n })}\n </List>\n );\n}\n", "import { RichHelp } from '@rjsf/core';\nimport { helpId, FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport FormHelperText from '@mui/material/FormHelperText';\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 return (\n <FormHelperText component='div' id={helpId(fieldPathId)} style={{ marginTop: '5px' }}>\n <RichHelp help={help} registry={registry} uiSchema={uiSchema} />\n </FormHelperText>\n );\n}\n", "import FormControl from '@mui/material/FormControl';\nimport Typography from '@mui/material/Typography';\nimport {\n FieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n getTemplate,\n getUiOptions,\n} from '@rjsf/utils';\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 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 fullWidth={true} error={rawErrors.length ? true : false} required={required}>\n {children}\n {displayLabel && !isCheckbox && rawDescription ? (\n <Typography variant='caption' color='textSecondary'>\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 Box from '@mui/material/Box';\nimport { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport FormControl from '@mui/material/FormControl';\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 } = props;\n\n return (\n <Box sx={{ mb: 2 }}>\n <FormControl fullWidth sx={{ mb: 2 }}>\n {selector}\n </FormControl>\n {optionSchemaField}\n </Box>\n );\n}\n", "import Grid from '@mui/material/Grid';\nimport {\n FormContextType,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n canExpand,\n descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\n buttonId,\n} from '@rjsf/utils';\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 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 container spacing={2} style={{ marginTop: '10px' }}>\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 size={{ xs: 12 }} key={index} style={{ marginBottom: '10px' }}>\n {element.content}\n </Grid>\n ),\n )}\n </Grid>\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid container justifyContent='flex-end'>\n <Grid>\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 { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport IconButton, { RemoveButton } from '../IconButton';\nimport AddIcon from '@mui/icons-material/Add';\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 } = props;\n if (onAddClick) {\n return (\n <IconButton\n id={id}\n registry={registry}\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 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 from '@mui/material/Box';\nimport Button from '@mui/material/Button';\nimport { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\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 return (\n <Box marginTop={3}>\n <Button type='submit' variant='contained' color='primary' {...submitButtonProps}>\n {submitText}\n </Button>\n </Box>\n );\n}\n", "import Box from '@mui/material/Box';\nimport Divider from '@mui/material/Divider';\nimport Grid from '@mui/material/Grid';\nimport Typography from '@mui/material/Typography';\nimport { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 id,\n title,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n let heading = <Typography variant='h5'>{title}</Typography>;\n if (optionalDataControl) {\n heading = (\n <Grid container={true} spacing={0}>\n <Grid size='grow'>{heading}</Grid>\n <Grid justifyContent='flex-end'>{optionalDataControl}</Grid>\n </Grid>\n );\n }\n return (\n <Box id={id} mb={1} mt={1}>\n {heading}\n <Divider />\n </Box>\n );\n}\n", "import { CSSProperties } from 'react';\nimport Grid from '@mui/material/Grid';\nimport TextField from '@mui/material/TextField';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n buttonId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n} from '@rjsf/utils';\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 if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n return (\n <Grid container key={`${id}-key`} alignItems='flex-start' spacing={2} className={classNames} style={style}>\n <Grid size={5.5}>\n <TextField\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}>{children}</Grid>\n <Grid sx={{ mt: 1.5 }}>\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 { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\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 Checkbox from '@mui/material/Checkbox';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n labelValue,\n schemaRequiresTrueValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\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 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 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 />\n }\n label={labelValue(label, hideLabel, false)}\n />\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Checkbox from '@mui/material/Checkbox';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport FormGroup from '@mui/material/FormGroup';\nimport FormLabel from '@mui/material/FormLabel';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n enumOptionsValueForIndex,\n labelValue,\n optionId,\n FormContextType,\n WidgetProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\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>({\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}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, inline, emptyValue } = 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, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLButtonElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n return (\n <>\n {labelValue(\n <FormLabel required={required} htmlFor={id}>\n {label || undefined}\n </FormLabel>,\n hideLabel,\n )}\n <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 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 <FormControlLabel control={checkbox} key={index} label={option.label} />;\n })}\n </FormGroup>\n </>\n );\n}\n", "import { FocusEvent } from 'react';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport FormLabel from '@mui/material/FormLabel';\nimport Radio from '@mui/material/Radio';\nimport RadioGroup from '@mui/material/RadioGroup';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n labelValue,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\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 id,\n htmlName,\n options,\n value,\n required,\n disabled,\n readonly,\n label,\n hideLabel,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const _onChange = (_: any, value: any) => onChange(enumOptionsValueForIndex<S>(value, enumOptions, emptyValue));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n const row = options ? options.inline : false;\n const selectedIndex = enumOptionsIndexForValue<S>(value, enumOptions) ?? null;\n\n return (\n <>\n {labelValue(\n <FormLabel required={required} htmlFor={id}>\n {label || undefined}\n </FormLabel>,\n hideLabel,\n )}\n <RadioGroup\n id={id}\n name={htmlName || id}\n value={selectedIndex}\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 control={<Radio name={htmlName || id} id={optionId(id, index)} color='primary' />}\n label={option.label}\n value={String(index)}\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 from '@mui/material/Slider';\nimport {\n ariaDescribedByIds,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n rangeSpec,\n} from '@rjsf/utils';\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 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 {...sliderProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport MenuItem from '@mui/material/MenuItem';\nimport TextField, { TextFieldProps } from '@mui/material/TextField';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\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<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\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}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;\n\n multiple = typeof multiple === 'undefined' ? false : !!multiple;\n\n const emptyValue = multiple ? [] : '';\n const isEmpty = typeof value === 'undefined' || (multiple && value.length < 1) || (!multiple && value === emptyValue);\n\n const _onChange = ({ target: { value } }: ChangeEvent<{ value: string }>) =>\n onChange(enumOptionsValueForIndex<S>(value, enumOptions, optEmptyVal));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n const { InputLabelProps, SelectProps, autocomplete, ...textFieldRemainingProps } = textFieldProps;\n const showPlaceholderOption = !multiple && schema.default === undefined;\n\n return (\n <TextField\n id={id}\n name={htmlName || id}\n label={labelValue(label || undefined, hideLabel, undefined)}\n value={!isEmpty && typeof selectedIndexes !== 'undefined' ? selectedIndexes : 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 {...(textFieldRemainingProps as TextFieldProps)}\n select // Apply this and the following props after the potential overrides defined in textFieldProps\n InputLabelProps={{\n ...InputLabelProps,\n shrink: !isEmpty,\n }}\n SelectProps={{\n ...SelectProps,\n multiple,\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={String(i)} 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 CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\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 { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ThemeProps } from '@rjsf/core';\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"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,IAAAA,eAAqC;;;ACDrC,iBAAoB;AACpB,wBAAuB;AACvB,mBAAmG;AAY7F;AARS,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA6B;AAC3B,QAAM,EAAE,gBAAgB,IAAI;AAC5B,SACE,4CAAC,kBAAAC,SAAA,EAAW,OAAO,gBAAgB,gCAAmB,aAAa,GAAI,GAAG,OAAO,OAAM,WACrF,sDAAC,WAAAC,SAAA,EAAQ,GACX;AAEJ;;;AChBA,iBAAgB;AAChB,kBAAiB;AACjB,mBAAkB;AAClB,IAAAC,gBAOO;AA0BH,IAAAC,sBAAA;AApBW,SAAR,uBAIL,OAA6C;AAC7C,QAAM,EAAE,UAAU,cAAc,gBAAgB,YAAY,UAAU,SAAS,IAAI;AACnF,QAAM,gBAAY,4BAAsB,QAAQ;AAChD,QAAM,oCAAgC;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,QAAM,WAA0B;A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;",
|
|
6
|
-
"names": ["import_core", "IconButton", "AddIcon", "import_utils", "import_jsx_runtime", "Grid", "Box", "Paper", "import_Box", "import_Grid", "import_Paper", "import_utils", "import_jsx_runtime", "AddButton", "Paper", "Box", "Grid", "import_utils", "import_jsx_runtime", "ClearButton", "value", "InputAdornment", "TextField", "import_core", "import_jsx_runtime", "Typography", "import_Box", "import_Paper", "import_Typography", "import_utils", "import_jsx_runtime", "Paper", "Box", "Typography", "List", "ListItem", "ListItemIcon", "ErrorIcon", "ListItemText", "import_IconButton", "import_utils", "import_jsx_runtime", "IconButton", "CopyIcon", "ArrowDownwardIcon", "ArrowUpwardIcon", "RemoveIcon", "ClearIcon", "import_ListItem", "import_List", "import_utils", "import_jsx_runtime", "List", "ListItem", "FormHelperText", "import_core", "import_utils", "import_FormHelperText", "import_jsx_runtime", "FormHelperText", "import_Typography", "import_utils", "import_jsx_runtime", "WrapIfAdditionalTemplate", "FormControl", "Typography", "import_Grid", "import_jsx_runtime", "Grid", "import_Box", "import_FormControl", "import_jsx_runtime", "Box", "FormControl", "import_Grid", "import_utils", "import_jsx_runtime", "AddButton", "Grid", "import_Add", "import_jsx_runtime", "AddIcon", "import_Box", "import_utils", "import_jsx_runtime", "Box", "Button", "import_Box", "import_Grid", "import_Typography", "import_jsx_runtime", "Typography", "Grid", "Box", "Divider", "import_Grid", "import_TextField", "import_utils", "import_jsx_runtime", "RemoveButton", "Grid", "TextField", "import_utils", "import_jsx_runtime", "FormControlLabel", "Checkbox", "import_Checkbox", "import_FormControlLabel", "import_utils", "import_jsx_runtime", "FormLabel", "FormGroup", "Checkbox", "FormControlLabel", "import_FormControlLabel", "import_FormLabel", "import_utils", "import_jsx_runtime", "value", "FormLabel", "RadioGroup", "FormControlLabel", "Radio", "import_FormLabel", "import_utils", "import_jsx_runtime", "value", "FormLabel", "Slider", "import_TextField", "import_utils", "import_jsx_runtime", "value", "TextField", "MenuItem", "label", "disabled", "import_utils", "import_jsx_runtime", "BaseInputTemplate"]
|
|
3
|
+
"sources": ["../src/index.ts", "../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/IconButton/IconButton.tsx", "../src/FieldErrorTemplate/FieldErrorTemplate.tsx", "../src/FieldHelpTemplate/FieldHelpTemplate.tsx", "../src/FieldTemplate/FieldTemplate.tsx", "../src/GridTemplate/GridTemplate.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/CheckboxWidget/CheckboxWidget.tsx", "../src/CheckboxesWidget/CheckboxesWidget.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"],
|
|
4
|
+
"sourcesContent": ["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", "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';\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 { 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", "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';\nimport { 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 { rjsfSlotProps: muiSlotProps } = getMuiProps<T, S, F, ArrayFieldItemTemplateMuiProps>(uiOptions);\n\n return (\n <Grid container={true} alignItems='center' {...muiSlotProps?.arrayItemGridContainer}>\n <Grid\n size={{ xs: 8, sm: 9, md: 10, lg: 11, xl: 11.25 }}\n style={{ overflow: 'auto' }}\n {...muiSlotProps?.arrayItemGridItem}\n >\n <Box mb={2} {...muiSlotProps?.arrayItemOuterBox}>\n <Paper elevation={2} {...muiSlotProps?.arrayItemPaper}>\n <Box p={2} {...muiSlotProps?.arrayItemInnerBox}>\n {children}\n </Box>\n </Paper>\n </Box>\n </Grid>\n {hasToolbar && (\n <Grid sx={{ mt: hasDescription ? -5 : -1.5 }} {...muiSlotProps?.arrayItemToolbarGrid}>\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';\nimport { 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 { rjsfSlotProps: muiSlotProps } = getMuiProps<T, S, F, ArrayFieldTemplateMuiProps>(uiOptions);\n\n return (\n <Paper elevation={2} {...muiSlotProps?.arrayPaper}>\n <Box p={2} {...muiSlotProps?.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 container justifyContent='flex-end' {...muiSlotProps?.arrayAddButtonGridContainer}>\n <Grid {...muiSlotProps?.arrayAddButtonGridItem}>\n <Box mt={2} {...muiSlotProps?.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 TextField, { TextFieldProps } from '@mui/material/TextField';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport { InputProps as MuiInputProps } from '@mui/material/Input';\nimport { InputLabelProps as MuiInputLabelProps } from '@mui/material/InputLabel';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n labelValue,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { SchemaExamples } from '@rjsf/core';\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 {\n DescriptionFieldProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n} from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\nimport { 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 muiProps = getMuiProps<T, S, F, DescriptionFieldMuiProps>(uiOptions);\n const { rjsfSlotProps: muiSlotProps } = muiProps;\n\n if (description) {\n return (\n <Typography id={id} variant='subtitle2' style={{ marginTop: '5px' }} {...muiSlotProps?.descTypography}>\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';\nimport { 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 { rjsfSlotProps: muiSlotProps } = getMuiProps<T, S, F, ErrorListMuiProps>(uiOptions);\n\n return (\n <Paper elevation={2} {...muiSlotProps?.errorPaper}>\n <Box mb={2} p={2} {...muiSlotProps?.errorBox}>\n <Typography variant='h6' {...muiSlotProps?.errorTypography}>\n {translateString(TranslatableString.ErrorsLabel)}\n </Typography>\n <List dense={true} {...muiSlotProps?.errorList}>\n {errors.map((error, i: number) => {\n return (\n <ListItem key={i} {...muiSlotProps?.errorListItem}>\n <ListItemIcon {...muiSlotProps?.errorListItemIcon}>\n <ErrorIcon color='error' />\n </ListItemIcon>\n <ListItemText primary={error.stack} {...muiSlotProps?.errorListItemText} />\n </ListItem>\n );\n })}\n </List>\n </Box>\n </Paper>\n );\n}\n", "import IconButton, { IconButtonProps as MuiIconButtonProps } from '@mui/material/IconButton';\nimport ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';\nimport ArrowUpwardIcon from '@mui/icons-material/ArrowUpward';\nimport CopyIcon from '@mui/icons-material/ContentCopy';\nimport RemoveIcon from '@mui/icons-material/Remove';\nimport ClearIcon from '@mui/icons-material/Clear';\nimport {\n FormContextType,\n IconButtonProps,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n getUiOptions,\n} from '@rjsf/utils';\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 ListItem, { ListItemProps } from '@mui/material/ListItem';\nimport FormHelperText, { FormHelperTextProps } from '@mui/material/FormHelperText';\nimport List, { ListProps } from '@mui/material/List';\nimport {\n errorId,\n FieldErrorProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n} from '@rjsf/utils';\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 { RichHelp } from '@rjsf/core';\nimport {\n helpId,\n FieldHelpProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n GenericObjectType,\n} from '@rjsf/utils';\nimport FormHelperText, { FormHelperTextProps } from '@mui/material/FormHelperText';\nimport { 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 muiProps = getMuiProps<T, S, F, FieldHelpTemplateMuiProps>(uiOptions);\n const { rjsfSlotProps: muiSlotProps } = muiProps;\n\n return (\n <FormHelperText\n component='div'\n id={helpId(fieldPathId)}\n style={{ marginTop: '5px' }}\n {...muiSlotProps?.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';\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 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';\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';\nimport { 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 { rjsfSlotProps: muiSlotProps } = 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 container spacing={2} style={{ marginTop: '10px' }} {...muiSlotProps?.objectGridContainer}>\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 size={{ xs: 12 }} key={index} style={{ marginBottom: '10px' }} {...muiSlotProps?.objectGridItem}>\n {element.content}\n </Grid>\n ),\n )}\n </Grid>\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid container justifyContent='flex-end' {...muiSlotProps?.objectAddButtonGridContainer}>\n <Grid {...muiSlotProps?.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 { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport IconButton, { RemoveButton } from '../IconButton';\nimport AddIcon from '@mui/icons-material/Add';\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';\nimport { 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: muiSlotProps, ...otherMuiProps } = getMuiProps<T, S, F, SubmitButtonMuiProps>(uiOptions);\n\n return (\n <Box marginTop={3} {...muiSlotProps?.submitBox}>\n <Button\n type='submit'\n variant='contained'\n color='primary'\n {...submitButtonProps}\n {...otherMuiProps}\n {...muiSlotProps?.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';\nimport { 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 { rjsfSlotProps: muiSlotProps } = getMuiProps<T, S, F, TitleFieldMuiProps>(uiOptions);\n\n let heading = (\n <Typography variant='h5' {...muiSlotProps?.titleTypography}>\n {title}\n </Typography>\n );\n if (optionalDataControl) {\n heading = (\n <Grid container={true} spacing={0} {...muiSlotProps?.titleGridContainer}>\n <Grid size='grow' {...muiSlotProps?.titleGridItem}>\n {heading}\n </Grid>\n <Grid justifyContent='flex-end' {...muiSlotProps?.titleOptionalDataGridItem}>\n {optionalDataControl}\n </Grid>\n </Grid>\n );\n }\n return (\n <Box id={id} mb={1} mt={1} {...muiSlotProps?.titleBox}>\n {heading}\n <Divider {...muiSlotProps?.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';\nimport { 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 } = getMuiProps<T, S, F, WrapIfAdditionalTemplateMuiProps>(uiOptions);\n const muiSlotProps = rjsfSlotProps;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n const { wrapGridContainer, wrapKeyGridItem, wrapChildrenGridItem, wrapRemoveButtonGridItem } = muiSlotProps || {};\n\n return (\n <Grid\n container\n key={`${id}-key`}\n alignItems='flex-start'\n spacing={2}\n className={classNames}\n style={style}\n {...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 sx={{ 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 { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\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 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';\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 { 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';\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 { 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';\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';\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 MenuItem from '@mui/material/MenuItem';\nimport TextField, { TextFieldProps } from '@mui/material/TextField';\nimport { InputLabelProps as MuiInputLabelProps } from '@mui/material/InputLabel';\nimport { SelectProps as MuiSelectProps } from '@mui/material/Select';\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';\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 CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\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 { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ThemeProps } from '@rjsf/core';\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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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_Paper", "import_utils", "import_jsx_runtime", "AddButton", "Paper", "Box", "Grid", "import_utils", "import_jsx_runtime", "ClearButton", "value", "InputAdornment", "TextField", "import_utils", "import_core", "import_jsx_runtime", "Typography", "import_Box", "import_Paper", "import_Typography", "import_utils", "import_jsx_runtime", "Paper", "Box", "Typography", "List", "ListItem", "ListItemIcon", "ErrorIcon", "ListItemText", "import_IconButton", "import_utils", "import_jsx_runtime", "IconButton", "CopyIcon", "ArrowDownwardIcon", "ArrowUpwardIcon", "RemoveIcon", "ClearIcon", "import_ListItem", "import_List", "import_utils", "import_jsx_runtime", "List", "ListItem", "FormHelperText", "import_core", "import_utils", "import_FormHelperText", "import_jsx_runtime", "FormHelperText", "import_Typography", "import_utils", "import_jsx_runtime", "WrapIfAdditionalTemplate", "FormControl", "Typography", "import_Grid", "import_jsx_runtime", "Grid", "import_Box", "import_FormControl", "import_utils", "import_jsx_runtime", "Box", "FormControl", "import_Grid", "import_utils", "import_jsx_runtime", "AddButton", "Grid", "import_Add", "import_jsx_runtime", "AddIcon", "import_Box", "import_utils", "import_jsx_runtime", "Box", "Button", "import_Box", "import_Grid", "import_Typography", "import_utils", "import_jsx_runtime", "Typography", "Grid", "Box", "Divider", "import_Grid", "import_TextField", "import_utils", "import_jsx_runtime", "RemoveButton", "Grid", "TextField", "import_utils", "import_jsx_runtime", "FormControlLabel", "Checkbox", "import_Checkbox", "import_FormControlLabel", "import_utils", "import_jsx_runtime", "import_react", "FormLabel", "FormGroup", "Checkbox", "FormControlLabel", "import_FormControlLabel", "import_FormLabel", "import_utils", "import_jsx_runtime", "import_react", "value", "FormLabel", "RadioGroup", "FormControlLabel", "Radio", "import_FormLabel", "import_utils", "import_jsx_runtime", "value", "FormLabel", "Slider", "import_TextField", "import_utils", "import_jsx_runtime", "value", "TextField", "MenuItem", "label", "disabled", "import_utils", "import_jsx_runtime", "BaseInputTemplate"]
|
|
7
7
|
}
|