@rjsf/mui 6.0.0-beta.8 → 6.0.0-beta.9
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 +12 -12
- package/dist/index.js +19 -20
- package/dist/index.js.map +3 -3
- package/dist/mui.esm.js +19 -20
- package/dist/mui.esm.js.map +3 -3
- package/dist/mui.umd.js +18 -19
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +2 -2
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +2 -2
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/GridTemplate/GridTemplate.d.ts +1 -1
- package/lib/GridTemplate/GridTemplate.js +3 -3
- package/lib/GridTemplate/GridTemplate.js.map +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +4 -4
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +2 -2
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +7 -7
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +5 -5
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +1 -2
- package/src/GridTemplate/GridTemplate.tsx +4 -4
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +10 -10
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +8 -8
package/dist/mui.esm.js
CHANGED
|
@@ -17,7 +17,7 @@ function AddButton({
|
|
|
17
17
|
|
|
18
18
|
// src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx
|
|
19
19
|
import Box from "@mui/material/Box";
|
|
20
|
-
import
|
|
20
|
+
import Grid from "@mui/material/Grid";
|
|
21
21
|
import Paper from "@mui/material/Paper";
|
|
22
22
|
import {
|
|
23
23
|
getUiOptions,
|
|
@@ -39,15 +39,15 @@ function ArrayFieldItemTemplate(props) {
|
|
|
39
39
|
fontWeight: "bold",
|
|
40
40
|
minWidth: 0
|
|
41
41
|
};
|
|
42
|
-
return /* @__PURE__ */ jsxs(
|
|
43
|
-
/* @__PURE__ */ jsx2(
|
|
44
|
-
hasToolbar && /* @__PURE__ */ jsx2(
|
|
42
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, alignItems: "center", children: [
|
|
43
|
+
/* @__PURE__ */ jsx2(Grid, { size: "auto", style: { overflow: "auto" }, children: /* @__PURE__ */ jsx2(Box, { mb: 2, children: /* @__PURE__ */ jsx2(Paper, { elevation: 2, children: /* @__PURE__ */ jsx2(Box, { p: 2, children }) }) }) }),
|
|
44
|
+
hasToolbar && /* @__PURE__ */ jsx2(Grid, { children: /* @__PURE__ */ jsx2(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle }) })
|
|
45
45
|
] });
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// src/ArrayFieldTemplate/ArrayFieldTemplate.tsx
|
|
49
49
|
import Box2 from "@mui/material/Box";
|
|
50
|
-
import
|
|
50
|
+
import Grid2 from "@mui/material/Grid";
|
|
51
51
|
import Paper2 from "@mui/material/Paper";
|
|
52
52
|
import {
|
|
53
53
|
getTemplate as getTemplate2,
|
|
@@ -99,7 +99,7 @@ function ArrayFieldTemplate(props) {
|
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
101
|
items && items.map(({ key, ...itemProps }) => /* @__PURE__ */ jsx3(ArrayFieldItemTemplate2, { ...itemProps }, key)),
|
|
102
|
-
canAdd && /* @__PURE__ */ jsx3(
|
|
102
|
+
canAdd && /* @__PURE__ */ jsx3(Grid2, { container: true, justifyContent: "flex-end", children: /* @__PURE__ */ jsx3(Grid2, { children: /* @__PURE__ */ jsx3(Box2, { mt: 2, children: /* @__PURE__ */ jsx3(
|
|
103
103
|
AddButton2,
|
|
104
104
|
{
|
|
105
105
|
id: buttonId(idSchema, "add"),
|
|
@@ -173,14 +173,13 @@ function BaseInputTemplate(props) {
|
|
|
173
173
|
autoFocus: autofocus,
|
|
174
174
|
required,
|
|
175
175
|
disabled: disabled || readonly,
|
|
176
|
-
|
|
176
|
+
slotProps: { htmlInput: htmlInputProps, inputLabel: DisplayInputLabelProps },
|
|
177
177
|
...rest,
|
|
178
178
|
value: value || value === 0 ? value : "",
|
|
179
179
|
error: rawErrors.length > 0,
|
|
180
180
|
onChange: onChangeOverride || _onChange,
|
|
181
181
|
onBlur: _onBlur,
|
|
182
182
|
onFocus: _onFocus,
|
|
183
|
-
InputLabelProps: DisplayInputLabelProps,
|
|
184
183
|
...textFieldProps,
|
|
185
184
|
"aria-describedby": ariaDescribedByIds(id, !!schema.examples)
|
|
186
185
|
}
|
|
@@ -393,15 +392,15 @@ function FieldTemplate(props) {
|
|
|
393
392
|
}
|
|
394
393
|
|
|
395
394
|
// src/GridTemplate/GridTemplate.tsx
|
|
396
|
-
import
|
|
395
|
+
import Grid3 from "@mui/material/Grid";
|
|
397
396
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
398
397
|
function GridTemplate(props) {
|
|
399
398
|
const { children, column, ...rest } = props;
|
|
400
|
-
return /* @__PURE__ */ jsx11(
|
|
399
|
+
return /* @__PURE__ */ jsx11(Grid3, { container: !column, ...rest, children });
|
|
401
400
|
}
|
|
402
401
|
|
|
403
402
|
// src/ObjectFieldTemplate/ObjectFieldTemplate.tsx
|
|
404
|
-
import
|
|
403
|
+
import Grid4 from "@mui/material/Grid";
|
|
405
404
|
import {
|
|
406
405
|
canExpand,
|
|
407
406
|
descriptionId,
|
|
@@ -458,15 +457,15 @@ function ObjectFieldTemplate(props) {
|
|
|
458
457
|
registry
|
|
459
458
|
}
|
|
460
459
|
),
|
|
461
|
-
/* @__PURE__ */ jsxs6(
|
|
460
|
+
/* @__PURE__ */ jsxs6(Grid4, { container: true, spacing: 2, style: { marginTop: "10px" }, children: [
|
|
462
461
|
properties.map(
|
|
463
462
|
(element, index) => (
|
|
464
|
-
// Remove the <
|
|
463
|
+
// Remove the <Grid> if the inner element is hidden as the <Grid>
|
|
465
464
|
// itself would otherwise still take up space.
|
|
466
|
-
element.hidden ? element.content : /* @__PURE__ */ jsx12(
|
|
465
|
+
element.hidden ? element.content : /* @__PURE__ */ jsx12(Grid4, { size: { xs: 12 }, style: { marginBottom: "10px" }, children: element.content }, index)
|
|
467
466
|
)
|
|
468
467
|
),
|
|
469
|
-
canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx12(
|
|
468
|
+
canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx12(Grid4, { container: true, justifyContent: "flex-end", children: /* @__PURE__ */ jsx12(Grid4, { children: /* @__PURE__ */ jsx12(
|
|
470
469
|
AddButton2,
|
|
471
470
|
{
|
|
472
471
|
id: buttonId2(idSchema, "add"),
|
|
@@ -510,7 +509,7 @@ function TitleField({
|
|
|
510
509
|
}
|
|
511
510
|
|
|
512
511
|
// src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx
|
|
513
|
-
import
|
|
512
|
+
import Grid5 from "@mui/material/Grid";
|
|
514
513
|
import TextField2 from "@mui/material/TextField";
|
|
515
514
|
import {
|
|
516
515
|
ADDITIONAL_PROPERTY_FLAG,
|
|
@@ -548,8 +547,8 @@ function WrapIfAdditionalTemplate(props) {
|
|
|
548
547
|
return /* @__PURE__ */ jsx15("div", { className: classNames, style, children });
|
|
549
548
|
}
|
|
550
549
|
const handleBlur = ({ target }) => onKeyChange(target && target.value);
|
|
551
|
-
return /* @__PURE__ */ jsxs8(
|
|
552
|
-
/* @__PURE__ */ jsx15(
|
|
550
|
+
return /* @__PURE__ */ jsxs8(Grid5, { container: true, alignItems: "center", spacing: 2, className: classNames, style, children: [
|
|
551
|
+
/* @__PURE__ */ jsx15(Grid5, { size: "auto", children: /* @__PURE__ */ jsx15(
|
|
553
552
|
TextField2,
|
|
554
553
|
{
|
|
555
554
|
fullWidth: true,
|
|
@@ -563,8 +562,8 @@ function WrapIfAdditionalTemplate(props) {
|
|
|
563
562
|
type: "text"
|
|
564
563
|
}
|
|
565
564
|
) }),
|
|
566
|
-
/* @__PURE__ */ jsx15(
|
|
567
|
-
/* @__PURE__ */ jsx15(
|
|
565
|
+
/* @__PURE__ */ jsx15(Grid5, { size: "auto", children }),
|
|
566
|
+
/* @__PURE__ */ jsx15(Grid5, { children: /* @__PURE__ */ jsx15(
|
|
568
567
|
RemoveButton2,
|
|
569
568
|
{
|
|
570
569
|
id: buttonId3(id, "remove"),
|
package/dist/mui.esm.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/MuiForm/MuiForm.tsx", "../src/AddButton/AddButton.tsx", "../src/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/ObjectFieldTemplate/ObjectFieldTemplate.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", "../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { ComponentType } from 'react';\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n", "import AddIcon from '@mui/icons-material/Add';\nimport IconButton 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 Grid2 from '@mui/material/Grid2';\nimport Paper from '@mui/material/Paper';\nimport {\n ArrayFieldItemTemplateType,\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 `ArrayFieldItemTemplateType` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateType<T, S, F>) {\n const { children, buttonsProps, 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 <Grid2 container={true} alignItems='center'>\n <Grid2 size='auto' style={{ overflow: 'auto' }}>\n <Box mb={2}>\n <Paper elevation={2}>\n <Box p={2}>{children}</Box>\n </Paper>\n </Box>\n </Grid2>\n {hasToolbar && (\n <Grid2>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} style={btnStyle} />\n </Grid2>\n )}\n </Grid2>\n );\n}\n", "import Box from '@mui/material/Box';\nimport Grid2 from '@mui/material/Grid2';\nimport Paper from '@mui/material/Paper';\nimport {\n getTemplate,\n getUiOptions,\n ArrayFieldTemplateProps,\n ArrayFieldItemTemplateType,\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 `ArrayFieldItemTemplateType` 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 { canAdd, disabled, idSchema, uiSchema, items, onAddClick, readonly, registry, required, schema, 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 ArrayFieldItemTemplate = getTemplate<'ArrayFieldItemTemplate', T, S, F>(\n 'ArrayFieldItemTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\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 idSchema={idSchema}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n />\n <ArrayFieldDescriptionTemplate\n idSchema={idSchema}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n {items &&\n items.map(({ key, ...itemProps }: ArrayFieldItemTemplateType<T, S, F>) => (\n <ArrayFieldItemTemplate key={key} {...itemProps} />\n ))}\n {canAdd && (\n <Grid2 container justifyContent='flex-end'>\n <Grid2>\n <Box mt={2}>\n <AddButton\n id={buttonId<T>(idSchema, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Box>\n </Grid2>\n </Grid2>\n )}\n </Box>\n </Paper>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport TextField, { TextFieldProps } from '@mui/material/TextField';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\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 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 formContext,\n registry,\n InputLabelProps,\n ...textFieldProps\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\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 } = inputProps;\n const htmlInputProps = { step, min, max, accept, ...(schema.examples ? { list: examplesId<T>(id) } : undefined) };\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 ? {\n ...InputLabelProps,\n shrink: true,\n }\n : InputLabelProps;\n\n return (\n <>\n <TextField\n id={id}\n name={id}\n placeholder={placeholder}\n label={labelValue(label || undefined, hideLabel, undefined)}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n inputProps={htmlInputProps}\n {...rest}\n value={value || value === 0 ? value : ''}\n error={rawErrors.length > 0}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n InputLabelProps={DisplayInputLabelProps}\n {...(textFieldProps as TextFieldProps)}\n aria-describedby={ariaDescribedByIds<T>(id, !!schema.examples)}\n />\n {Array.isArray(schema.examples) && (\n <datalist id={examplesId<T>(id)}>\n {(schema.examples as string[])\n .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])\n .map((example: any) => {\n return <option key={example} value={example} />;\n })}\n </datalist>\n )}\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 { 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", "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 = [], idSchema } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId<T>(idSchema);\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 FormHelperText from '@mui/material/FormHelperText';\nimport { helpId, FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 { idSchema, help } = props;\n if (!help) {\n return null;\n }\n const id = helpId<T>(idSchema);\n return (\n <FormHelperText component='div' id={id}>\n {help}\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 onDropPropertyClick,\n onKeyChange,\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 return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n onDropPropertyClick={onDropPropertyClick}\n onKeyChange={onKeyChange}\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 && 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 Grid2 from '@mui/material/Grid2';\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 `Grid2`.\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 <Grid2 container={!column} {...rest}>\n {children}\n </Grid2>\n );\n}\n", "import Grid2 from '@mui/material/Grid2';\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 idSchema,\n schema,\n formData,\n onAddClick,\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 // 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<T>(idSchema)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId<T>(idSchema)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Grid2 container={true} spacing={2} style={{ marginTop: '10px' }}>\n {properties.map((element, index) =>\n // Remove the <Grid2> if the inner element is hidden as the <Grid2>\n // itself would otherwise still take up space.\n element.hidden ? (\n element.content\n ) : (\n <Grid2 size={{ xs: 12 }} key={index} style={{ marginBottom: '10px' }}>\n {element.content}\n </Grid2>\n ),\n )}\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid2 container justifyContent='flex-end'>\n <Grid2>\n <AddButton\n id={buttonId<T>(idSchema, 'add')}\n className='rjsf-object-property-expand'\n onClick={onAddClick(schema)}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid2>\n </Grid2>\n )}\n </Grid2>\n </>\n );\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 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}: TitleFieldProps<T, S, F>) {\n return (\n <Box id={id} mb={1} mt={1}>\n <Typography variant='h5'>{title}</Typography>\n <Divider />\n </Box>\n );\n}\n", "import { CSSProperties, FocusEvent } from 'react';\nimport Grid2 from '@mui/material/Grid2';\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 onDropPropertyClick,\n onKeyChange,\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 const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onKeyChange(target && target.value);\n\n return (\n <Grid2 container key={`${id}-key`} alignItems='center' spacing={2} className={classNames} style={style}>\n <Grid2 size='auto'>\n <TextField\n fullWidth={true}\n required={required}\n label={keyLabel}\n defaultValue={label}\n disabled={disabled || readonly}\n id={`${id}-key`}\n name={`${id}-key`}\n onBlur={!readonly ? handleBlur : undefined}\n type='text'\n />\n </Grid2>\n <Grid2 size='auto'>{children}</Grid2>\n <Grid2>\n <RemoveButton\n id={buttonId<T>(id, 'remove')}\n className='rjsf-object-property-remove'\n iconType='default'\n style={btnStyle}\n disabled={disabled || readonly}\n onClick={onDropPropertyClick(label)}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid2>\n </Grid2>\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 } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\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 },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n ObjectFieldTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { FocusEvent } from 'react';\nimport 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 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 = ({ target }: FocusEvent<HTMLButtonElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLButtonElement>) => onFocus(id, target && target.value);\n const description = options.description ?? schema.description;\n\n return (\n <>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId<T>(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={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<T>(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 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={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<T>(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 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={id}\n value={selectedIndex}\n row={row as boolean}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(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={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<T>(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 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 formContext,\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={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<T>(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", "import MuiForm from './MuiForm/MuiForm';\n\nexport { default as Form, generateForm } from './MuiForm';\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\n\nexport default MuiForm;\n"],
|
|
5
|
-
"mappings": ";AACA,SAAS,iBAA4B;;;ACDrC,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,SAAyE,0BAA0B;AAY7F;AARS,SAAR,UAA8G;AAAA,EACnH;AAAA,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AQ,SAAS,UAAU;AACxE,WAAO,QAAQ;AAAA,EACjB;AAEA,SAAO,gBAAAC,MAACC,oBAAA,EAAmB,GAAG,OAAO,WAAS,MAAC,MAAY;AAC7D;;;ACXO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;AClBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;AxBXtB,SAAS,eAIuB;AACrC,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,kBAAQ,aAAa;;;AyBP5B,IAAO,gBAAQ;",
|
|
6
|
-
"names": ["jsx", "Box", "
|
|
4
|
+
"sourcesContent": ["import { ComponentType } from 'react';\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n", "import AddIcon from '@mui/icons-material/Add';\nimport IconButton 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 ArrayFieldItemTemplateType,\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 `ArrayFieldItemTemplateType` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateType<T, S, F>) {\n const { children, buttonsProps, 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='auto' 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>\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 ArrayFieldItemTemplateType,\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 `ArrayFieldItemTemplateType` 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 { canAdd, disabled, idSchema, uiSchema, items, onAddClick, readonly, registry, required, schema, 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 ArrayFieldItemTemplate = getTemplate<'ArrayFieldItemTemplate', T, S, F>(\n 'ArrayFieldItemTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\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 idSchema={idSchema}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n />\n <ArrayFieldDescriptionTemplate\n idSchema={idSchema}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n {items &&\n items.map(({ key, ...itemProps }: ArrayFieldItemTemplateType<T, S, F>) => (\n <ArrayFieldItemTemplate key={key} {...itemProps} />\n ))}\n {canAdd && (\n <Grid container justifyContent='flex-end'>\n <Grid>\n <Box mt={2}>\n <AddButton\n id={buttonId<T>(idSchema, '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 } from 'react';\nimport TextField, { TextFieldProps } from '@mui/material/TextField';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\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 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 formContext,\n registry,\n InputLabelProps,\n ...textFieldProps\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\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 } = inputProps;\n const htmlInputProps = { step, min, max, accept, ...(schema.examples ? { list: examplesId<T>(id) } : undefined) };\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 ? {\n ...InputLabelProps,\n shrink: true,\n }\n : InputLabelProps;\n\n return (\n <>\n <TextField\n id={id}\n name={id}\n placeholder={placeholder}\n label={labelValue(label || undefined, hideLabel, undefined)}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n slotProps={{ htmlInput: htmlInputProps, inputLabel: DisplayInputLabelProps }}\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<T>(id, !!schema.examples)}\n />\n {Array.isArray(schema.examples) && (\n <datalist id={examplesId<T>(id)}>\n {(schema.examples as string[])\n .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])\n .map((example: any) => {\n return <option key={example} value={example} />;\n })}\n </datalist>\n )}\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 { 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", "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 = [], idSchema } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId<T>(idSchema);\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 FormHelperText from '@mui/material/FormHelperText';\nimport { helpId, FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 { idSchema, help } = props;\n if (!help) {\n return null;\n }\n const id = helpId<T>(idSchema);\n return (\n <FormHelperText component='div' id={id}>\n {help}\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 onDropPropertyClick,\n onKeyChange,\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 return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n onDropPropertyClick={onDropPropertyClick}\n onKeyChange={onKeyChange}\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 && 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 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 idSchema,\n schema,\n formData,\n onAddClick,\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 // 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<T>(idSchema)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId<T>(idSchema)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Grid container={true} spacing={2} style={{ marginTop: '10px' }}>\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 {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid container justifyContent='flex-end'>\n <Grid>\n <AddButton\n id={buttonId<T>(idSchema, 'add')}\n className='rjsf-object-property-expand'\n onClick={onAddClick(schema)}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid>\n </Grid>\n )}\n </Grid>\n </>\n );\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 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}: TitleFieldProps<T, S, F>) {\n return (\n <Box id={id} mb={1} mt={1}>\n <Typography variant='h5'>{title}</Typography>\n <Divider />\n </Box>\n );\n}\n", "import { CSSProperties, FocusEvent } 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 onDropPropertyClick,\n onKeyChange,\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 const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onKeyChange(target && target.value);\n\n return (\n <Grid container key={`${id}-key`} alignItems='center' spacing={2} className={classNames} style={style}>\n <Grid size='auto'>\n <TextField\n fullWidth={true}\n required={required}\n label={keyLabel}\n defaultValue={label}\n disabled={disabled || readonly}\n id={`${id}-key`}\n name={`${id}-key`}\n onBlur={!readonly ? handleBlur : undefined}\n type='text'\n />\n </Grid>\n <Grid size='auto'>{children}</Grid>\n <Grid>\n <RemoveButton\n id={buttonId<T>(id, 'remove')}\n className='rjsf-object-property-remove'\n iconType='default'\n style={btnStyle}\n disabled={disabled || readonly}\n onClick={onDropPropertyClick(label)}\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 } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\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 },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n ObjectFieldTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { FocusEvent } from 'react';\nimport 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 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 = ({ target }: FocusEvent<HTMLButtonElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLButtonElement>) => onFocus(id, target && target.value);\n const description = options.description ?? schema.description;\n\n return (\n <>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId<T>(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={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<T>(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 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={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<T>(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 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={id}\n value={selectedIndex}\n row={row as boolean}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(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={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<T>(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 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 formContext,\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={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<T>(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", "import MuiForm from './MuiForm/MuiForm';\n\nexport { default as Form, generateForm } from './MuiForm';\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\n\nexport default MuiForm;\n"],
|
|
5
|
+
"mappings": ";AACA,SAAS,iBAA4B;;;ACDrC,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,SAAyE,0BAA0B;AAY7F;AARS,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA6B;AAC3B,QAAM,EAAE,gBAAgB,IAAI;AAC5B,SACE,oBAAC,cAAW,OAAO,gBAAgB,mBAAmB,aAAa,GAAI,GAAG,OAAO,OAAM,WACrF,8BAAC,WAAQ,GACX;AAEJ;;;AChBA,OAAO,SAAS;AAChB,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB;AAAA,EAGE;AAAA,EACA;AAAA,OAGK;AA0BH,SAIQ,OAAAA,MAJR;AApBW,SAAR,uBAIL,OAA4C;AAC5C,QAAM,EAAE,UAAU,cAAc,YAAY,UAAU,SAAS,IAAI;AACnE,QAAM,YAAY,aAAsB,QAAQ;AAChD,QAAM,gCAAgC;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,QAAM,WAA0B;AAAA,IAC9B,MAAM;AAAA,IACN,aAAa;AAAA,IACb,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AACA,SACE,qBAAC,QAAK,WAAW,MAAM,YAAW,UAChC;AAAA,oBAAAA,KAAC,QAAK,MAAK,QAAO,OAAO,EAAE,UAAU,OAAO,GAC1C,0BAAAA,KAAC,OAAI,IAAI,GACP,0BAAAA,KAAC,SAAM,WAAW,GAChB,0BAAAA,KAAC,OAAI,GAAG,GAAI,UAAS,GACvB,GACF,GACF;AAAA,IACC,cACC,gBAAAA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QF,MAAK,MAAM;AACzF,iBACE,gBAAAF,MAAC,YAAiB,OAAO,OAAO,CAAC,GAAG,UAAUI,WAC3C,UAAAD,UADY,CAEf;AAAA,QAEJ,CAAC;AAAA;AAAA;AAAA,EACL;AAEJ;;;ACxGA,SAAqE,eAAAE,oBAAmB;AAmB/E,gBAAAC,aAAA;AAbM,SAAR,eAIL,OAA6B;AAC7B,QAAM,EAAE,SAAS,SAAS,IAAI;AAC9B,QAAMC,qBAAoBF,aAA0C,qBAAqB,UAAU,OAAO;AAE1G,MAAI,OAAwB;AAC5B,MAAI,OAAO,QAAQ,SAAS,YAAY,OAAO,QAAQ,SAAS,UAAU;AACxE,WAAO,QAAQ;AAAA,EACjB;AAEA,SAAO,gBAAAC,MAACC,oBAAA,EAAmB,GAAG,OAAO,WAAS,MAAC,MAAY;AAC7D;;;ACXO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;AClBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;AxBXtB,SAAS,eAIuB;AACrC,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,kBAAQ,aAAa;;;AyBP5B,IAAO,gBAAQ;",
|
|
6
|
+
"names": ["jsx", "Box", "Grid", "Paper", "getTemplate", "getUiOptions", "jsx", "jsxs", "ArrayFieldItemTemplate", "AddButton", "jsx", "jsxs", "value", "jsx", "Box", "Paper", "Typography", "TranslatableString", "jsx", "jsxs", "IconButton", "TranslatableString", "jsx", "ListItem", "List", "jsx", "FormHelperText", "jsx", "Typography", "getTemplate", "getUiOptions", "jsx", "jsxs", "WrapIfAdditionalTemplate", "Grid", "jsx", "Grid", "getTemplate", "getUiOptions", "buttonId", "Fragment", "jsx", "jsxs", "AddButton", "Box", "jsx", "Box", "Typography", "jsx", "jsxs", "Grid", "TextField", "buttonId", "TranslatableString", "jsx", "jsxs", "RemoveButton", "ariaDescribedByIds", "descriptionId", "getTemplate", "labelValue", "Fragment", "jsx", "jsxs", "Checkbox", "FormControlLabel", "ariaDescribedByIds", "labelValue", "Fragment", "jsx", "jsxs", "FormControlLabel", "FormLabel", "ariaDescribedByIds", "enumOptionsValueForIndex", "labelValue", "optionId", "Fragment", "jsx", "jsxs", "value", "FormLabel", "ariaDescribedByIds", "labelValue", "Fragment", "jsx", "jsxs", "value", "TextField", "ariaDescribedByIds", "enumOptionsIndexForValue", "enumOptionsValueForIndex", "labelValue", "jsx", "jsxs", "value", "label", "disabled", "getTemplate", "jsx", "BaseInputTemplate"]
|
|
7
7
|
}
|
package/dist/mui.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('@mui/icons-material/Add'), require('@mui/material/IconButton'), require('@rjsf/utils'), require('react/jsx-runtime'), require('@mui/material/Box'), require('@mui/material/
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', '@mui/icons-material/Add', '@mui/material/IconButton', '@rjsf/utils', 'react/jsx-runtime', '@mui/material/Box', '@mui/material/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/mui"] = {}, global.core, global.AddIcon, global.IconButton, global.utils, global.jsxRuntime, global.Box, global.
|
|
5
|
-
})(this, (function (exports, core, AddIcon, IconButton, utils, jsxRuntime, Box,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('@mui/icons-material/Add'), require('@mui/material/IconButton'), require('@rjsf/utils'), require('react/jsx-runtime'), require('@mui/material/Box'), require('@mui/material/Grid'), require('@mui/material/Paper'), require('@mui/material/TextField'), require('@mui/material/Typography'), require('@mui/icons-material/Error'), require('@mui/material/List'), require('@mui/material/ListItem'), require('@mui/material/ListItemIcon'), require('@mui/material/ListItemText'), require('@mui/icons-material/ArrowDownward'), require('@mui/icons-material/ArrowUpward'), require('@mui/icons-material/ContentCopy'), require('@mui/icons-material/Remove'), require('@mui/material/FormHelperText'), require('@mui/material/FormControl'), require('@mui/material/Button'), require('@mui/material/Divider'), require('@mui/material/Checkbox'), require('@mui/material/FormControlLabel'), require('@mui/material/FormGroup'), require('@mui/material/FormLabel'), require('@mui/material/Radio'), require('@mui/material/RadioGroup'), require('@mui/material/Slider'), require('@mui/material/MenuItem')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', '@mui/icons-material/Add', '@mui/material/IconButton', '@rjsf/utils', 'react/jsx-runtime', '@mui/material/Box', '@mui/material/Grid', '@mui/material/Paper', '@mui/material/TextField', '@mui/material/Typography', '@mui/icons-material/Error', '@mui/material/List', '@mui/material/ListItem', '@mui/material/ListItemIcon', '@mui/material/ListItemText', '@mui/icons-material/ArrowDownward', '@mui/icons-material/ArrowUpward', '@mui/icons-material/ContentCopy', '@mui/icons-material/Remove', '@mui/material/FormHelperText', '@mui/material/FormControl', '@mui/material/Button', '@mui/material/Divider', '@mui/material/Checkbox', '@mui/material/FormControlLabel', '@mui/material/FormGroup', '@mui/material/FormLabel', '@mui/material/Radio', '@mui/material/RadioGroup', '@mui/material/Slider', '@mui/material/MenuItem'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/mui"] = {}, global.core, global.AddIcon, global.IconButton, global.utils, global.jsxRuntime, global.Box, global.Grid4, global.Paper, global.TextField, global.Typography, global.ErrorIcon, global.List, global.ListItem, global.ListItemIcon, global.ListItemText, global.ArrowDownwardIcon, global.ArrowUpwardIcon, global.CopyIcon, global.RemoveIcon, global.FormHelperText, global.FormControl, global.Button, global.Divider, global.Checkbox, global.FormControlLabel, global.FormGroup, global.FormLabel, global.Radio, global.RadioGroup, global.Slider, global.MenuItem));
|
|
5
|
+
})(this, (function (exports, core, AddIcon, IconButton, utils, jsxRuntime, Box, Grid4, Paper, TextField, Typography, ErrorIcon, List, ListItem, ListItemIcon, ListItemText, ArrowDownwardIcon, ArrowUpwardIcon, CopyIcon, RemoveIcon, FormHelperText, FormControl, Button, Divider, Checkbox, FormControlLabel, FormGroup, FormLabel, Radio, RadioGroup, Slider, MenuItem) { 'use strict';
|
|
6
6
|
|
|
7
7
|
// src/MuiForm/MuiForm.tsx
|
|
8
8
|
function AddButton({
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
fontWeight: "bold",
|
|
29
29
|
minWidth: 0
|
|
30
30
|
};
|
|
31
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
32
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33
|
-
hasToolbar && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Grid4, { container: true, alignItems: "center", children: [
|
|
32
|
+
/* @__PURE__ */ jsxRuntime.jsx(Grid4, { size: "auto", style: { overflow: "auto" }, children: /* @__PURE__ */ jsxRuntime.jsx(Box, { mb: 2, children: /* @__PURE__ */ jsxRuntime.jsx(Paper, { elevation: 2, children: /* @__PURE__ */ jsxRuntime.jsx(Box, { p: 2, children }) }) }) }),
|
|
33
|
+
hasToolbar && /* @__PURE__ */ jsxRuntime.jsx(Grid4, { children: /* @__PURE__ */ jsxRuntime.jsx(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle }) })
|
|
34
34
|
] });
|
|
35
35
|
}
|
|
36
36
|
function ArrayFieldTemplate(props) {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
}
|
|
78
78
|
),
|
|
79
79
|
items && items.map(({ key, ...itemProps }) => /* @__PURE__ */ jsxRuntime.jsx(ArrayFieldItemTemplate2, { ...itemProps }, key)),
|
|
80
|
-
canAdd && /* @__PURE__ */ jsxRuntime.jsx(
|
|
80
|
+
canAdd && /* @__PURE__ */ jsxRuntime.jsx(Grid4, { container: true, justifyContent: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsx(Grid4, { children: /* @__PURE__ */ jsxRuntime.jsx(Box, { mt: 2, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
81
81
|
AddButton2,
|
|
82
82
|
{
|
|
83
83
|
id: utils.buttonId(idSchema, "add"),
|
|
@@ -141,14 +141,13 @@
|
|
|
141
141
|
autoFocus: autofocus,
|
|
142
142
|
required,
|
|
143
143
|
disabled: disabled || readonly,
|
|
144
|
-
|
|
144
|
+
slotProps: { htmlInput: htmlInputProps, inputLabel: DisplayInputLabelProps },
|
|
145
145
|
...rest,
|
|
146
146
|
value: value || value === 0 ? value : "",
|
|
147
147
|
error: rawErrors.length > 0,
|
|
148
148
|
onChange: onChangeOverride || _onChange,
|
|
149
149
|
onBlur: _onBlur,
|
|
150
150
|
onFocus: _onFocus,
|
|
151
|
-
InputLabelProps: DisplayInputLabelProps,
|
|
152
151
|
...textFieldProps,
|
|
153
152
|
"aria-describedby": utils.ariaDescribedByIds(id, !!schema.examples)
|
|
154
153
|
}
|
|
@@ -314,7 +313,7 @@
|
|
|
314
313
|
}
|
|
315
314
|
function GridTemplate(props) {
|
|
316
315
|
const { children, column, ...rest } = props;
|
|
317
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
316
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Grid4, { container: !column, ...rest, children });
|
|
318
317
|
}
|
|
319
318
|
function ObjectFieldTemplate(props) {
|
|
320
319
|
const {
|
|
@@ -363,15 +362,15 @@
|
|
|
363
362
|
registry
|
|
364
363
|
}
|
|
365
364
|
),
|
|
366
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
365
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Grid4, { container: true, spacing: 2, style: { marginTop: "10px" }, children: [
|
|
367
366
|
properties.map(
|
|
368
367
|
(element, index) => (
|
|
369
|
-
// Remove the <
|
|
368
|
+
// Remove the <Grid> if the inner element is hidden as the <Grid>
|
|
370
369
|
// itself would otherwise still take up space.
|
|
371
|
-
element.hidden ? element.content : /* @__PURE__ */ jsxRuntime.jsx(
|
|
370
|
+
element.hidden ? element.content : /* @__PURE__ */ jsxRuntime.jsx(Grid4, { size: { xs: 12 }, style: { marginBottom: "10px" }, children: element.content }, index)
|
|
372
371
|
)
|
|
373
372
|
),
|
|
374
|
-
utils.canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
373
|
+
utils.canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsxRuntime.jsx(Grid4, { container: true, justifyContent: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsx(Grid4, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
375
374
|
AddButton2,
|
|
376
375
|
{
|
|
377
376
|
id: utils.buttonId(idSchema, "add"),
|
|
@@ -431,8 +430,8 @@
|
|
|
431
430
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames, style, children });
|
|
432
431
|
}
|
|
433
432
|
const handleBlur = ({ target }) => onKeyChange(target && target.value);
|
|
434
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
435
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
433
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Grid4, { container: true, alignItems: "center", spacing: 2, className: classNames, style, children: [
|
|
434
|
+
/* @__PURE__ */ jsxRuntime.jsx(Grid4, { size: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
436
435
|
TextField,
|
|
437
436
|
{
|
|
438
437
|
fullWidth: true,
|
|
@@ -446,8 +445,8 @@
|
|
|
446
445
|
type: "text"
|
|
447
446
|
}
|
|
448
447
|
) }),
|
|
449
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
450
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
448
|
+
/* @__PURE__ */ jsxRuntime.jsx(Grid4, { size: "auto", children }),
|
|
449
|
+
/* @__PURE__ */ jsxRuntime.jsx(Grid4, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
451
450
|
RemoveButton2,
|
|
452
451
|
{
|
|
453
452
|
id: utils.buttonId(id, "remove"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Box from '@mui/material/Box/index.js';
|
|
3
|
-
import
|
|
3
|
+
import Grid from '@mui/material/Grid/index.js';
|
|
4
4
|
import Paper from '@mui/material/Paper/index.js';
|
|
5
5
|
import { getUiOptions, getTemplate, } from '@rjsf/utils';
|
|
6
6
|
/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.
|
|
@@ -18,6 +18,6 @@ export default function ArrayFieldItemTemplate(props) {
|
|
|
18
18
|
fontWeight: 'bold',
|
|
19
19
|
minWidth: 0,
|
|
20
20
|
};
|
|
21
|
-
return (_jsxs(
|
|
21
|
+
return (_jsxs(Grid, { container: true, alignItems: 'center', children: [_jsx(Grid, { size: 'auto', style: { overflow: 'auto' }, children: _jsx(Box, { mb: 2, children: _jsx(Paper, { elevation: 2, children: _jsx(Box, { p: 2, children: children }) }) }) }), hasToolbar && (_jsx(Grid, { children: _jsx(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle }) }))] }));
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=ArrayFieldItemTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayFieldItemTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"ArrayFieldItemTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,GAAG,MAAM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