@rjsf/mui 6.0.0-beta.8 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/dist/{index.js → index.cjs} +176 -103
- package/dist/index.cjs.map +7 -0
- package/dist/mui.esm.js +175 -102
- package/dist/mui.esm.js.map +4 -4
- package/dist/mui.umd.js +125 -62
- package/lib/AddButton/AddButton.js +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +3 -3
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +5 -5
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +7 -8
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js +3 -3
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/CheckboxWidget/CheckboxWidget.js +6 -6
- package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js +6 -6
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/DescriptionField/DescriptionField.js +1 -1
- package/lib/ErrorList/ErrorList.js +7 -7
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js +5 -5
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js +3 -3
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/FieldTemplate/FieldTemplate.js +4 -4
- package/lib/FieldTemplate/FieldTemplate.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/IconButton/IconButton.js +1 -1
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +2 -0
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js +8 -0
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js.map +1 -0
- package/lib/MultiSchemaFieldTemplate/index.d.ts +2 -0
- package/lib/MultiSchemaFieldTemplate/index.js +3 -0
- package/lib/MultiSchemaFieldTemplate/index.js.map +1 -0
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +6 -5
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts +10 -0
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +22 -0
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -0
- package/lib/OptionalDataControlsTemplate/index.d.ts +2 -0
- package/lib/OptionalDataControlsTemplate/index.js +3 -0
- package/lib/OptionalDataControlsTemplate/index.js.map +1 -0
- package/lib/RadioWidget/RadioWidget.d.ts +1 -1
- package/lib/RadioWidget/RadioWidget.js +7 -7
- package/lib/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/RangeWidget/RangeWidget.js +2 -2
- package/lib/RangeWidget/RangeWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.d.ts +1 -1
- package/lib/SelectWidget/SelectWidget.js +4 -4
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/SubmitButton/SubmitButton.js +2 -2
- package/lib/Templates/Templates.js +4 -0
- package/lib/Templates/Templates.js.map +1 -1
- package/lib/TitleField/TitleField.d.ts +1 -1
- package/lib/TitleField/TitleField.js +10 -5
- package/lib/TitleField/TitleField.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +4 -5
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -26
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +10 -10
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +27 -21
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +6 -7
- package/src/CheckboxWidget/CheckboxWidget.tsx +6 -6
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +3 -2
- package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +2 -2
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +2 -2
- package/src/FieldTemplate/FieldTemplate.tsx +6 -4
- package/src/GridTemplate/GridTemplate.tsx +4 -4
- package/src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx +20 -0
- package/src/MultiSchemaFieldTemplate/index.ts +2 -0
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +20 -16
- package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +43 -0
- package/src/OptionalDataControlsTemplate/index.ts +2 -0
- package/src/RadioWidget/RadioWidget.tsx +4 -3
- package/src/RangeWidget/RangeWidget.tsx +1 -1
- package/src/SelectWidget/SelectWidget.tsx +3 -3
- package/src/Templates/Templates.ts +4 -0
- package/src/TitleField/TitleField.tsx +12 -1
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +14 -16
- package/dist/index.js.map +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import Checkbox from '@mui/material/Checkbox
|
|
3
|
-
import FormControlLabel from '@mui/material/FormControlLabel
|
|
2
|
+
import Checkbox from '@mui/material/Checkbox';
|
|
3
|
+
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
4
4
|
import { ariaDescribedByIds, descriptionId, getTemplate, labelValue, schemaRequiresTrueValue, } from '@rjsf/utils';
|
|
5
5
|
/** The `CheckBoxWidget` is a widget for rendering boolean properties.
|
|
6
6
|
* It is typically used to represent a boolean.
|
|
@@ -9,16 +9,16 @@ import { ariaDescribedByIds, descriptionId, getTemplate, labelValue, schemaRequi
|
|
|
9
9
|
*/
|
|
10
10
|
export default function CheckboxWidget(props) {
|
|
11
11
|
var _a;
|
|
12
|
-
const { schema, id, value, disabled, readonly, label = '', hideLabel, autofocus, onChange, onBlur, onFocus, registry, options, uiSchema, } = props;
|
|
12
|
+
const { schema, id, htmlName, value, disabled, readonly, label = '', hideLabel, autofocus, onChange, onBlur, onFocus, registry, options, uiSchema, } = props;
|
|
13
13
|
const DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, options);
|
|
14
14
|
// Because an unchecked checkbox will cause html5 validation to fail, only add
|
|
15
15
|
// the "required" attribute if the field value must be "true", due to the
|
|
16
16
|
// "const" or "enum" keywords
|
|
17
17
|
const required = schemaRequiresTrueValue(schema);
|
|
18
18
|
const _onChange = (_, checked) => onChange(checked);
|
|
19
|
-
const _onBlur = (
|
|
20
|
-
const _onFocus = (
|
|
19
|
+
const _onBlur = () => onBlur(id, value);
|
|
20
|
+
const _onFocus = () => onFocus(id, value);
|
|
21
21
|
const description = (_a = options.description) !== null && _a !== void 0 ? _a : schema.description;
|
|
22
|
-
return (_jsxs(_Fragment, { children: [!hideLabel && description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(id), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsx(FormControlLabel, { control: _jsx(Checkbox, { id: id, name: id, checked: typeof value === 'undefined' ? false : Boolean(value), required: required, disabled: disabled || readonly, autoFocus: autofocus, onChange: _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id) }), label: labelValue(label, hideLabel, false) })] }));
|
|
22
|
+
return (_jsxs(_Fragment, { children: [!hideLabel && description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(id), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsx(FormControlLabel, { control: _jsx(Checkbox, { id: id, name: htmlName || id, checked: typeof value === 'undefined' ? false : Boolean(value), required: required, disabled: disabled || readonly, autoFocus: autofocus, onChange: _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id) }), label: labelValue(label, hideLabel, false) })] }));
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=CheckboxWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxWidget.js","sourceRoot":"","sources":["../../src/CheckboxWidget/CheckboxWidget.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CheckboxWidget.js","sourceRoot":"","sources":["../../src/CheckboxWidget/CheckboxWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,UAAU,EACV,uBAAuB,GAKxB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAIpC,KAA2B;;IAC3B,MAAM,EACJ,MAAM,EACN,EAAE,EACF,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,SAAS,EACT,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,wBAAwB,GAAG,WAAW,CAC1C,0BAA0B,EAC1B,QAAQ,EACR,OAAO,CACR,CAAC;IACF,8EAA8E;IAC9E,yEAAyE;IACzE,6BAA6B;IAC7B,MAAM,QAAQ,GAAG,uBAAuB,CAAI,MAAM,CAAC,CAAC;IAEpD,MAAM,SAAS,GAAG,CAAC,CAAM,EAAE,OAAgB,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAClE,MAAM,OAAO,GAA+C,GAAG,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACpF,MAAM,QAAQ,GAA+C,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACtF,MAAM,WAAW,GAAG,MAAA,OAAO,CAAC,WAAW,mCAAI,MAAM,CAAC,WAAW,CAAC;IAE9D,OAAO,CACL,8BACG,CAAC,SAAS,IAAI,WAAW,IAAI,CAC5B,KAAC,wBAAwB,IACvB,EAAE,EAAE,aAAa,CAAC,EAAE,CAAC,EACrB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,CACH,EACD,KAAC,gBAAgB,IACf,OAAO,EACL,KAAC,QAAQ,IACP,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,QAAQ,IAAI,EAAE,EACpB,OAAO,EAAE,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAC9D,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,QAAQ,sBACC,kBAAkB,CAAC,EAAE,CAAC,GACxC,EAEJ,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,GAC1C,IACD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -4,4 +4,4 @@ import { FormContextType, WidgetProps, RJSFSchema, StrictRJSFSchema } from '@rjs
|
|
|
4
4
|
*
|
|
5
5
|
* @param props - The `WidgetProps` for this component
|
|
6
6
|
*/
|
|
7
|
-
export default function CheckboxesWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ label, hideLabel, id, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function CheckboxesWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ label, hideLabel, id, htmlName, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import Checkbox from '@mui/material/Checkbox
|
|
3
|
-
import FormControlLabel from '@mui/material/FormControlLabel
|
|
4
|
-
import FormGroup from '@mui/material/FormGroup
|
|
5
|
-
import FormLabel from '@mui/material/FormLabel
|
|
2
|
+
import Checkbox from '@mui/material/Checkbox';
|
|
3
|
+
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
4
|
+
import FormGroup from '@mui/material/FormGroup';
|
|
5
|
+
import FormLabel from '@mui/material/FormLabel';
|
|
6
6
|
import { ariaDescribedByIds, enumOptionsDeselectValue, enumOptionsIsSelected, enumOptionsSelectValue, enumOptionsValueForIndex, labelValue, optionId, } from '@rjsf/utils';
|
|
7
7
|
/** The `CheckboxesWidget` is a widget for rendering checkbox groups.
|
|
8
8
|
* It is typically used to represent an array of enums.
|
|
9
9
|
*
|
|
10
10
|
* @param props - The `WidgetProps` for this component
|
|
11
11
|
*/
|
|
12
|
-
export default function CheckboxesWidget({ label, hideLabel, id, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus, }) {
|
|
12
|
+
export default function CheckboxesWidget({ label, hideLabel, id, htmlName, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus, }) {
|
|
13
13
|
const { enumOptions, enumDisabled, inline, emptyValue } = options;
|
|
14
14
|
const checkboxesValues = Array.isArray(value) ? value : [value];
|
|
15
15
|
const _onChange = (index) => ({ target: { checked } }) => {
|
|
@@ -26,7 +26,7 @@ export default function CheckboxesWidget({ label, hideLabel, id, disabled, optio
|
|
|
26
26
|
enumOptions.map((option, index) => {
|
|
27
27
|
const checked = enumOptionsIsSelected(option.value, checkboxesValues);
|
|
28
28
|
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
|
|
29
|
-
const checkbox = (_jsx(Checkbox, { id: optionId(id, index), name: id, checked: checked, disabled: disabled || itemDisabled || readonly, autoFocus: autofocus && index === 0, onChange: _onChange(index), onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id) }));
|
|
29
|
+
const checkbox = (_jsx(Checkbox, { id: optionId(id, index), name: htmlName || id, checked: checked, disabled: disabled || itemDisabled || readonly, autoFocus: autofocus && index === 0, onChange: _onChange(index), onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id) }));
|
|
30
30
|
return _jsx(FormControlLabel, { control: checkbox, label: option.label }, index);
|
|
31
31
|
}) })] }));
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxesWidget.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/CheckboxesWidget.tsx"],"names":[],"mappings":";AACA,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,UAAU,EACV,QAAQ,GAKT,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAItC,EACA,KAAK,EACL,SAAS,EACT,EAAE,EACF,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,GACc;IACrB,MAAM,EAA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AC,CAAC;wBAC9F,MAAM,QAAQ,GAAG,CACf,KAAC,QAAQ,IACP,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,EACvB,IAAI,EAAE,QAAQ,IAAI,EAAE,EACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IAAI,YAAY,IAAI,QAAQ,EAC9C,SAAS,EAAE,SAAS,IAAI,KAAK,KAAK,CAAC,EACnC,QAAQ,EAAE,SAAS,CAAC,KAAK,CAAC,EAC1B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,QAAQ,sBACC,kBAAkB,CAAC,EAAE,CAAC,GACxC,CACH,CAAC;wBACF,OAAO,KAAC,gBAAgB,IAAC,OAAO,EAAE,QAAQ,EAAc,KAAK,EAAE,MAAM,CAAC,KAAK,IAA1B,KAAK,CAAyB,CAAC;oBAClF,CAAC,CAAC,GACM,IACX,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import Typography from '@mui/material/Typography
|
|
2
|
+
import Typography from '@mui/material/Typography';
|
|
3
3
|
import { RichDescription } from '@rjsf/core';
|
|
4
4
|
/** The `DescriptionField` is the template to use to render the description of a field
|
|
5
5
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import ErrorIcon from '@mui/icons-material/Error';
|
|
3
|
-
import Box from '@mui/material/Box
|
|
4
|
-
import List from '@mui/material/List
|
|
5
|
-
import ListItem from '@mui/material/ListItem
|
|
6
|
-
import ListItemIcon from '@mui/material/ListItemIcon
|
|
7
|
-
import ListItemText from '@mui/material/ListItemText
|
|
8
|
-
import Paper from '@mui/material/Paper
|
|
9
|
-
import Typography from '@mui/material/Typography
|
|
3
|
+
import Box from '@mui/material/Box';
|
|
4
|
+
import List from '@mui/material/List';
|
|
5
|
+
import ListItem from '@mui/material/ListItem';
|
|
6
|
+
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
7
|
+
import ListItemText from '@mui/material/ListItemText';
|
|
8
|
+
import Paper from '@mui/material/Paper';
|
|
9
|
+
import Typography from '@mui/material/Typography';
|
|
10
10
|
import { TranslatableString } from '@rjsf/utils';
|
|
11
11
|
/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`
|
|
12
12
|
*
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import ListItem from '@mui/material/ListItem
|
|
3
|
-
import FormHelperText from '@mui/material/FormHelperText
|
|
4
|
-
import List from '@mui/material/List
|
|
2
|
+
import ListItem from '@mui/material/ListItem';
|
|
3
|
+
import FormHelperText from '@mui/material/FormHelperText';
|
|
4
|
+
import List from '@mui/material/List';
|
|
5
5
|
import { errorId } from '@rjsf/utils';
|
|
6
6
|
/** The `FieldErrorTemplate` component renders the errors local to the particular field
|
|
7
7
|
*
|
|
8
8
|
* @param props - The `FieldErrorProps` for the errors being rendered
|
|
9
9
|
*/
|
|
10
10
|
export default function FieldErrorTemplate(props) {
|
|
11
|
-
const { errors = [],
|
|
11
|
+
const { errors = [], fieldPathId } = props;
|
|
12
12
|
if (errors.length === 0) {
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
|
-
const id = errorId(
|
|
15
|
+
const id = errorId(fieldPathId);
|
|
16
16
|
return (_jsx(List, { id: id, dense: true, disablePadding: true, children: errors.map((error, i) => {
|
|
17
17
|
return (_jsx(ListItem, { disableGutters: true, children: _jsx(FormHelperText, { component: 'div', id: `${id}-${i}`, children: error }) }, i));
|
|
18
18
|
}) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/FieldErrorTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,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1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import FormHelperText from '@mui/material/FormHelperText
|
|
2
|
+
import FormHelperText from '@mui/material/FormHelperText';
|
|
3
3
|
import { helpId } from '@rjsf/utils';
|
|
4
4
|
/** The `FieldHelpTemplate` component renders any help desired for a field
|
|
5
5
|
*
|
|
6
6
|
* @param props - The `FieldHelpProps` to be rendered
|
|
7
7
|
*/
|
|
8
8
|
export default function FieldHelpTemplate(props) {
|
|
9
|
-
const {
|
|
9
|
+
const { fieldPathId, help } = props;
|
|
10
10
|
if (!help) {
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
|
-
const id = helpId(
|
|
13
|
+
const id = helpId(fieldPathId);
|
|
14
14
|
return (_jsx(FormHelperText, { component: 'div', id: id, children: help }));
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=FieldHelpTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldHelpTemplate.js","sourceRoot":"","sources":["../../src/FieldHelpTemplate/FieldHelpTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAiE,MAAM,aAAa,CAAC;AAEpG;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAA8B;IAC9B,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"FieldHelpTemplate.js","sourceRoot":"","sources":["../../src/FieldHelpTemplate/FieldHelpTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAiE,MAAM,aAAa,CAAC;AAEpG;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAA8B;IAC9B,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACpC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IAC/B,OAAO,CACL,KAAC,cAAc,IAAC,SAAS,EAAC,KAAK,EAAC,EAAE,EAAE,EAAE,YACnC,IAAI,GACU,CAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import FormControl from '@mui/material/FormControl
|
|
3
|
-
import Typography from '@mui/material/Typography
|
|
2
|
+
import FormControl from '@mui/material/FormControl';
|
|
3
|
+
import Typography from '@mui/material/Typography';
|
|
4
4
|
import { getTemplate, getUiOptions, } from '@rjsf/utils';
|
|
5
5
|
/** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field
|
|
6
6
|
* content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.
|
|
@@ -8,12 +8,12 @@ import { getTemplate, getUiOptions, } from '@rjsf/utils';
|
|
|
8
8
|
* @param props - The `FieldTemplateProps` for this component
|
|
9
9
|
*/
|
|
10
10
|
export default function FieldTemplate(props) {
|
|
11
|
-
const { id, children, classNames, style, disabled, displayLabel, hidden, label,
|
|
11
|
+
const { id, children, classNames, style, disabled, displayLabel, hidden, label, onKeyRename, onKeyRenameBlur, onRemoveProperty, readonly, required, rawErrors = [], errors, help, description, rawDescription, schema, uiSchema, registry, } = props;
|
|
12
12
|
const uiOptions = getUiOptions(uiSchema);
|
|
13
13
|
const WrapIfAdditionalTemplate = getTemplate('WrapIfAdditionalTemplate', registry, uiOptions);
|
|
14
14
|
if (hidden) {
|
|
15
15
|
return _jsx("div", { style: { display: 'none' }, children: children });
|
|
16
16
|
}
|
|
17
|
-
return (_jsx(WrapIfAdditionalTemplate, { classNames: classNames, style: style, disabled: disabled, id: id, label: label,
|
|
17
|
+
return (_jsx(WrapIfAdditionalTemplate, { classNames: classNames, style: style, disabled: disabled, id: id, label: label, onKeyRename: onKeyRename, onKeyRenameBlur: onKeyRenameBlur, onRemoveProperty: onRemoveProperty, readonly: readonly, required: required, schema: schema, uiSchema: uiSchema, registry: registry, children: _jsxs(FormControl, { fullWidth: true, error: rawErrors.length ? true : false, required: required, children: [children, displayLabel && rawDescription ? (_jsx(Typography, { variant: 'caption', color: 'textSecondary', children: description })) : null, errors, help] }) }));
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=FieldTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldTemplate.js","sourceRoot":"","sources":["../../src/FieldTemplate/FieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAKL,WAAW,EACX,YAAY,GACb,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAInC,KAAkC;IAClC,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,UAAU,EACV,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,KAAK,EACL,
|
|
1
|
+
{"version":3,"file":"FieldTemplate.js","sourceRoot":"","sources":["../../src/FieldTemplate/FieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAKL,WAAW,EACX,YAAY,GACb,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAInC,KAAkC;IAClC,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,UAAU,EACV,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,KAAK,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,MAAM,EACN,IAAI,EACJ,WAAW,EACX,cAAc,EACd,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,wBAAwB,GAAG,WAAW,CAC1C,0BAA0B,EAC1B,QAAQ,EACR,SAAS,CACV,CAAC;IAEF,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,cAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAAG,QAAQ,GAAO,CAAC;IAC3D,CAAC;IACD,OAAO,CACL,KAAC,wBAAwB,IACvB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,YAElB,MAAC,WAAW,IAAC,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,aACrF,QAAQ,EACR,YAAY,IAAI,cAAc,CAAC,CAAC,CAAC,CAChC,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,eAAe,YAChD,WAAW,GACD,CACd,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EACN,IAAI,IACO,GACW,CAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridTemplateProps } from '@rjsf/utils';
|
|
2
2
|
/** Renders a `GridTemplate` for mui, which is expecting the column sizing information coming in via the
|
|
3
|
-
* extra props provided by the caller, which are spread directly on the `
|
|
3
|
+
* extra props provided by the caller, which are spread directly on the `Grid`.
|
|
4
4
|
*
|
|
5
5
|
* @param props - The GridTemplateProps, including the extra props containing the mui grid positioning details
|
|
6
6
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import Grid from '@mui/material/Grid';
|
|
3
3
|
/** Renders a `GridTemplate` for mui, which is expecting the column sizing information coming in via the
|
|
4
|
-
* extra props provided by the caller, which are spread directly on the `
|
|
4
|
+
* extra props provided by the caller, which are spread directly on the `Grid`.
|
|
5
5
|
*
|
|
6
6
|
* @param props - The GridTemplateProps, including the extra props containing the mui grid positioning details
|
|
7
7
|
*/
|
|
8
8
|
export default function GridTemplate(props) {
|
|
9
9
|
const { children, column, ...rest } = props;
|
|
10
|
-
return (_jsx(
|
|
10
|
+
return (_jsx(Grid, { container: !column, ...rest, children: children }));
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=GridTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridTemplate.js","sourceRoot":"","sources":["../../src/GridTemplate/GridTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GridTemplate.js","sourceRoot":"","sources":["../../src/GridTemplate/GridTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAGtC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAwB;IAC3D,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAC5C,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,EAAE,CAAC,MAAM,KAAM,IAAI,YAC/B,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import IconButton from '@mui/material/IconButton
|
|
2
|
+
import IconButton from '@mui/material/IconButton';
|
|
3
3
|
import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
|
|
4
4
|
import ArrowUpwardIcon from '@mui/icons-material/ArrowUpward';
|
|
5
5
|
import CopyIcon from '@mui/icons-material/ContentCopy';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
|
+
export default function MultiSchemaFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: MultiSchemaFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Box from '@mui/material/Box';
|
|
3
|
+
import FormControl from '@mui/material/FormControl';
|
|
4
|
+
export default function MultiSchemaFieldTemplate(props) {
|
|
5
|
+
const { optionSchemaField, selector } = props;
|
|
6
|
+
return (_jsxs(Box, { sx: { mb: 2 }, children: [_jsx(FormControl, { fullWidth: true, sx: { mb: 2 }, children: selector }), optionSchemaField] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=MultiSchemaFieldTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiSchemaFieldTemplate.js","sourceRoot":"","sources":["../../src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,OAAO,WAAW,MAAM,2BAA2B,CAAC;AAEpD,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAI9C,KAA6C;IAC7C,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE9C,OAAO,CACL,MAAC,GAAG,IAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,aAChB,KAAC,WAAW,IAAC,SAAS,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,YACjC,QAAQ,GACG,EACb,iBAAiB,IACd,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/MultiSchemaFieldTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import Grid from '@mui/material/Grid';
|
|
3
3
|
import { canExpand, descriptionId, getTemplate, getUiOptions, titleId, buttonId, } from '@rjsf/utils';
|
|
4
4
|
/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the
|
|
5
5
|
* title and description if available. If the object is expandable, then an `AddButton` is also rendered after all
|
|
@@ -8,15 +8,16 @@ import { canExpand, descriptionId, getTemplate, getUiOptions, titleId, buttonId,
|
|
|
8
8
|
* @param props - The `ObjectFieldTemplateProps` for this component
|
|
9
9
|
*/
|
|
10
10
|
export default function ObjectFieldTemplate(props) {
|
|
11
|
-
const { description, title, properties, required, disabled, readonly, uiSchema,
|
|
11
|
+
const { description, title, properties, required, disabled, readonly, uiSchema, fieldPathId, schema, formData, optionalDataControl, onAddProperty, registry, } = props;
|
|
12
12
|
const uiOptions = getUiOptions(uiSchema);
|
|
13
13
|
const TitleFieldTemplate = getTemplate('TitleFieldTemplate', registry, uiOptions);
|
|
14
14
|
const DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, uiOptions);
|
|
15
|
+
const showOptionalDataControlInTitle = !readonly && !disabled;
|
|
15
16
|
// Button templates are not overridden in the uiSchema
|
|
16
17
|
const { ButtonTemplates: { AddButton }, } = registry.templates;
|
|
17
|
-
return (_jsxs(_Fragment, { children: [title && (_jsx(TitleFieldTemplate, { id: titleId(
|
|
18
|
-
// Remove the <
|
|
18
|
+
return (_jsxs(_Fragment, { children: [title && (_jsx(TitleFieldTemplate, { id: titleId(fieldPathId), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry, optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : undefined })), description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(fieldPathId), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsxs(Grid, { container: true, spacing: 2, style: { marginTop: '10px' }, children: [!showOptionalDataControlInTitle ? optionalDataControl : undefined, properties.map((element, index) =>
|
|
19
|
+
// Remove the <Grid> if the inner element is hidden as the <Grid>
|
|
19
20
|
// itself would otherwise still take up space.
|
|
20
|
-
element.hidden ? (element.content) : (_jsx(
|
|
21
|
+
element.hidden ? (element.content) : (_jsx(Grid, { size: { xs: 12 }, style: { marginBottom: '10px' }, children: element.content }, index))), canExpand(schema, uiSchema, formData) && (_jsx(Grid, { container: true, justifyContent: 'flex-end', children: _jsx(Grid, { children: _jsx(AddButton, { id: buttonId(fieldPathId, 'add'), className: 'rjsf-object-property-expand', onClick: onAddProperty, disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }) }) }))] })] }));
|
|
21
22
|
}
|
|
22
23
|
//# sourceMappingURL=ObjectFieldTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectFieldTemplate.js","sourceRoot":"","sources":["../../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ObjectFieldTemplate.js","sourceRoot":"","sources":["../../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAKL,SAAS,EACT,aAAa,EACb,WAAW,EACX,YAAY,EACZ,OAAO,EACP,QAAQ,GACT,MAAM,aAAa,CAAC;AAErB;;;;;GA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AAE,MAAM,EAAE,aAC5D,CAAC,8BAA8B,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,EACjE,UAAU,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;oBACjC,iEAAiE;oBACjE,8CAA8C;oBAC9C,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CACf,OAAO,CAAC,OAAO,CAChB,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAc,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,YAChE,OAAO,CAAC,OAAO,IADW,KAAK,CAE3B,CACR,CACF,EACA,SAAS,CAAU,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,CACjD,KAAC,IAAI,IAAC,SAAS,QAAC,cAAc,EAAC,UAAU,YACvC,KAAC,IAAI,cACH,KAAC,SAAS,IACR,EAAE,EAAE,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,EAChC,SAAS,EAAC,6BAA6B,EACvC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,GACG,GACF,CACR,IACI,IACN,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
|
+
/** The OptionalDataControlsTemplate renders one of three different states. If
|
|
3
|
+
* there is an `onAddClick()` function, it renders the "Add" button. If there is
|
|
4
|
+
* an `onRemoveClick()` function, it renders the "Remove" button. Otherwise it
|
|
5
|
+
* renders the "No data found" section. All of them use the `label` as either
|
|
6
|
+
* the `title` of buttons or simply outputting it.
|
|
7
|
+
*
|
|
8
|
+
* @param props - The `OptionalDataControlsTemplateProps` for the template
|
|
9
|
+
*/
|
|
10
|
+
export default function OptionalDataControlsTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: OptionalDataControlsTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import IconButton, { RemoveButton } from '../IconButton/index.js';
|
|
3
|
+
import AddIcon from '@mui/icons-material/Add';
|
|
4
|
+
/** The OptionalDataControlsTemplate renders one of three different states. If
|
|
5
|
+
* there is an `onAddClick()` function, it renders the "Add" button. If there is
|
|
6
|
+
* an `onRemoveClick()` function, it renders the "Remove" button. Otherwise it
|
|
7
|
+
* renders the "No data found" section. All of them use the `label` as either
|
|
8
|
+
* the `title` of buttons or simply outputting it.
|
|
9
|
+
*
|
|
10
|
+
* @param props - The `OptionalDataControlsTemplateProps` for the template
|
|
11
|
+
*/
|
|
12
|
+
export default function OptionalDataControlsTemplate(props) {
|
|
13
|
+
const { id, registry, label, onAddClick, onRemoveClick } = props;
|
|
14
|
+
if (onAddClick) {
|
|
15
|
+
return (_jsx(IconButton, { id: id, registry: registry, className: 'rjsf-add-optional-data', onClick: onAddClick, title: label, icon: _jsx(AddIcon, { fontSize: 'small' }) }));
|
|
16
|
+
}
|
|
17
|
+
else if (onRemoveClick) {
|
|
18
|
+
return (_jsx(RemoveButton, { id: id, registry: registry, className: 'rjsf-remove-optional-data', onClick: onRemoveClick, title: label }));
|
|
19
|
+
}
|
|
20
|
+
return _jsx("em", { id: id, children: label });
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=OptionalDataControlsTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OptionalDataControlsTemplate.js","sourceRoot":"","sources":["../../src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx"],"names":[],"mappings":";AAEA,OAAO,UAAU,EAAE,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,OAAO,MAAM,yBAAyB,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAIlD,KAAiD;IACjD,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACjE,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CACL,KAAC,UAAU,IACT,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,wBAAwB,EAClC,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAC,OAAO,IAAC,QAAQ,EAAC,OAAO,GAAG,GAClC,CACH,CAAC;IACJ,CAAC;SAAM,IAAI,aAAa,EAAE,CAAC;QACzB,OAAO,CACL,KAAC,YAAY,IACX,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,2BAA2B,EACrC,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;IACJ,CAAC;IACD,OAAO,aAAI,EAAE,EAAE,EAAE,YAAG,KAAK,GAAM,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/OptionalDataControlsTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,cAAc,gCAAgC,CAAC"}
|
|
@@ -4,4 +4,4 @@ import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjs
|
|
|
4
4
|
*
|
|
5
5
|
* @param props - The `WidgetProps` for this component
|
|
6
6
|
*/
|
|
7
|
-
export default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ id, options, value, required, disabled, readonly, label, hideLabel, onChange, onBlur, onFocus, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ id, htmlName, options, value, required, disabled, readonly, label, hideLabel, onChange, onBlur, onFocus, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import FormControlLabel from '@mui/material/FormControlLabel
|
|
3
|
-
import FormLabel from '@mui/material/FormLabel
|
|
4
|
-
import Radio from '@mui/material/Radio
|
|
5
|
-
import RadioGroup from '@mui/material/RadioGroup
|
|
2
|
+
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
3
|
+
import FormLabel from '@mui/material/FormLabel';
|
|
4
|
+
import Radio from '@mui/material/Radio';
|
|
5
|
+
import RadioGroup from '@mui/material/RadioGroup';
|
|
6
6
|
import { ariaDescribedByIds, enumOptionsIndexForValue, enumOptionsValueForIndex, labelValue, optionId, } from '@rjsf/utils';
|
|
7
7
|
/** The `RadioWidget` is a widget for rendering a radio group.
|
|
8
8
|
* It is typically used with a string property constrained with enum options.
|
|
9
9
|
*
|
|
10
10
|
* @param props - The `WidgetProps` for this component
|
|
11
11
|
*/
|
|
12
|
-
export default function RadioWidget({ id, options, value, required, disabled, readonly, label, hideLabel, onChange, onBlur, onFocus, }) {
|
|
12
|
+
export default function RadioWidget({ id, htmlName, options, value, required, disabled, readonly, label, hideLabel, onChange, onBlur, onFocus, }) {
|
|
13
13
|
var _a;
|
|
14
14
|
const { enumOptions, enumDisabled, emptyValue } = options;
|
|
15
15
|
const _onChange = (_, value) => onChange(enumOptionsValueForIndex(value, enumOptions, emptyValue));
|
|
@@ -17,10 +17,10 @@ export default function RadioWidget({ id, options, value, required, disabled, re
|
|
|
17
17
|
const _onFocus = ({ target }) => onFocus(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
|
|
18
18
|
const row = options ? options.inline : false;
|
|
19
19
|
const selectedIndex = (_a = enumOptionsIndexForValue(value, enumOptions)) !== null && _a !== void 0 ? _a : null;
|
|
20
|
-
return (_jsxs(_Fragment, { children: [labelValue(_jsx(FormLabel, { required: required, htmlFor: id, children: label || undefined }), hideLabel), _jsx(RadioGroup, { id: id, name: id, value: selectedIndex, row: row, onChange: _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id), children: Array.isArray(enumOptions) &&
|
|
20
|
+
return (_jsxs(_Fragment, { children: [labelValue(_jsx(FormLabel, { required: required, htmlFor: id, children: label || undefined }), hideLabel), _jsx(RadioGroup, { id: id, name: htmlName || id, value: selectedIndex, row: row, onChange: _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id), children: Array.isArray(enumOptions) &&
|
|
21
21
|
enumOptions.map((option, index) => {
|
|
22
22
|
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
|
|
23
|
-
const radio = (_jsx(FormControlLabel, { control: _jsx(Radio, { name: id, id: optionId(id, index), color: 'primary' }), label: option.label, value: String(index), disabled: disabled || itemDisabled || readonly }, index));
|
|
23
|
+
const radio = (_jsx(FormControlLabel, { control: _jsx(Radio, { name: htmlName || id, id: optionId(id, index), color: 'primary' }), label: option.label, value: String(index), disabled: disabled || itemDisabled || readonly }, index));
|
|
24
24
|
return radio;
|
|
25
25
|
}) })] }));
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioWidget.js","sourceRoot":"","sources":["../../src/RadioWidget/RadioWidget.tsx"],"names":[],"mappings":";AACA,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,wBA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ormLabel from '@mui/material/FormLabel
|
|
3
|
-
import Slider from '@mui/material/Slider
|
|
2
|
+
import FormLabel from '@mui/material/FormLabel';
|
|
3
|
+
import Slider from '@mui/material/Slider';
|
|
4
4
|
import { ariaDescribedByIds, labelValue, rangeSpec, } from '@rjsf/utils';
|
|
5
5
|
/** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result
|
|
6
6
|
* in a div, with the value along side it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeWidget.js","sourceRoot":"","sources":["../../src/RangeWidget/RangeWidget.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EACL,kBAAkB,EAClB,UAAU,EAKV,SAAS,GACV,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,KAA2B;IAE3B,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,GAC7G,KAAK,CAAC;IACR,MAAM,WAAW,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,SAAS,CAAI,MAAM,CAAC,EAAE,CAAC;IAE5E,MAAM,SAAS,GAAG,CAAC,CAAM,EAAE,KAAyB,EAAE,EAAE;QACtD,QAAQ,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC,CAAC;IACF,MAAM,OAAO,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IACjG,MAAM,QAAQ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;IACF,MAAM,OAAO,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IACjG,MAAM,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;IAEnG,OAAO,CACL,8BACG,UAAU,CACT,KAAC,SAAS,IAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,YACvC,KAAK,IAAI,SAAS,GACT,EACZ,SAAS,CACV,EACD,KAAC,MAAM,IACL,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,QAAQ,EACjB,iBAAiB,EAAC,MAAM,KACpB,WAAW,sBACG,kBAAkB,CAAC,EAAE,CAAC,GACxC,IACD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -5,4 +5,4 @@ import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjs
|
|
|
5
5
|
* @param props - The `WidgetProps` for this component
|
|
6
6
|
*/
|
|
7
7
|
export default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ schema, id, name, // remove this from textFieldProps
|
|
8
|
-
options, label, hideLabel, required, disabled, placeholder, readonly, value, multiple, autofocus, onChange, onBlur, onFocus, errorSchema, rawErrors, registry, uiSchema, hideError,
|
|
8
|
+
htmlName, options, label, hideLabel, required, disabled, placeholder, readonly, value, multiple, autofocus, onChange, onBlur, onFocus, errorSchema, rawErrors, registry, uiSchema, hideError, ...textFieldProps }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import MenuItem from '@mui/material/MenuItem
|
|
3
|
-
import TextField from '@mui/material/TextField
|
|
2
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
3
|
+
import TextField from '@mui/material/TextField';
|
|
4
4
|
import { ariaDescribedByIds, enumOptionsIndexForValue, enumOptionsValueForIndex, labelValue, } from '@rjsf/utils';
|
|
5
5
|
/** The `SelectWidget` is a widget for rendering dropdowns.
|
|
6
6
|
* It is typically used with string properties constrained with enum options.
|
|
@@ -8,7 +8,7 @@ import { ariaDescribedByIds, enumOptionsIndexForValue, enumOptionsValueForIndex,
|
|
|
8
8
|
* @param props - The `WidgetProps` for this component
|
|
9
9
|
*/
|
|
10
10
|
export default function SelectWidget({ schema, id, name, // remove this from textFieldProps
|
|
11
|
-
options, label, hideLabel, required, disabled, placeholder, readonly, value, multiple, autofocus, onChange, onBlur, onFocus, errorSchema, rawErrors = [], registry, uiSchema, hideError,
|
|
11
|
+
htmlName, options, label, hideLabel, required, disabled, placeholder, readonly, value, multiple, autofocus, onChange, onBlur, onFocus, errorSchema, rawErrors = [], registry, uiSchema, hideError, ...textFieldProps }) {
|
|
12
12
|
const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;
|
|
13
13
|
multiple = typeof multiple === 'undefined' ? false : !!multiple;
|
|
14
14
|
const emptyValue = multiple ? [] : '';
|
|
@@ -19,7 +19,7 @@ options, label, hideLabel, required, disabled, placeholder, readonly, value, mul
|
|
|
19
19
|
const selectedIndexes = enumOptionsIndexForValue(value, enumOptions, multiple);
|
|
20
20
|
const { InputLabelProps, SelectProps, autocomplete, ...textFieldRemainingProps } = textFieldProps;
|
|
21
21
|
const showPlaceholderOption = !multiple && schema.default === undefined;
|
|
22
|
-
return (_jsxs(TextField, { id: id, name: id, label: labelValue(label || undefined, hideLabel, undefined), value: !isEmpty && typeof selectedIndexes !== 'undefined' ? selectedIndexes : emptyValue, required: required, disabled: disabled || readonly, autoFocus: autofocus, autoComplete: autocomplete, placeholder: placeholder, error: rawErrors.length > 0, onChange: _onChange, onBlur: _onBlur, onFocus: _onFocus, ...textFieldRemainingProps, select // Apply this and the following props after the potential overrides defined in textFieldProps
|
|
22
|
+
return (_jsxs(TextField, { id: id, name: htmlName || id, label: labelValue(label || undefined, hideLabel, undefined), value: !isEmpty && typeof selectedIndexes !== 'undefined' ? selectedIndexes : emptyValue, required: required, disabled: disabled || readonly, autoFocus: autofocus, autoComplete: autocomplete, placeholder: placeholder, error: rawErrors.length > 0, onChange: _onChange, onBlur: _onBlur, onFocus: _onFocus, ...textFieldRemainingProps, select // Apply this and the following props after the potential overrides defined in textFieldProps
|
|
23
23
|
: true, InputLabelProps: {
|
|
24
24
|
...InputLabelProps,
|
|
25
25
|
shrink: !isEmpty,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectWidget.js","sourceRoot":"","sources":["../../src/SelectWidget/SelectWidget.tsx"],"names":[],"mappings":";AACA,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,SAA6B,MAAM,yBAAyB,CAAC;AACpE,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,EACxB,UAAU,GAKX,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAIlC,EACA,MAAM,EACN,EAAE,EACF,IAAI,EAAE,kCAAkC;AACxC,OAAO,EACP,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,SAAS,GAAG,EAAE,EACd,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"SelectWidget.js","sourceRoot":"","sources":["../../src/SelectWidget/SelectWidget.tsx"],"names":[],"mappings":";AACA,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,SAA6B,MAAM,yBAAyB,CAAC;AACpE,OA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EAAC,EAAE,YAAE,WAAW,GAAY,EACpE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;gBACzB,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAS,EAAE,EAAE;oBAC9C,MAAM,QAAQ,GAAY,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;oBAC5F,OAAO,CACL,KAAC,QAAQ,IAAS,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,YACnD,KAAK,IADO,CAAC,CAEL,CACZ,CAAC;gBACJ,CAAC,CAAC,IACM,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import Box from '@mui/material/Box
|
|
3
|
-
import Button from '@mui/material/Button
|
|
2
|
+
import Box from '@mui/material/Box';
|
|
3
|
+
import Button from '@mui/material/Button';
|
|
4
4
|
import { getSubmitButtonOptions } from '@rjsf/utils';
|
|
5
5
|
/** The `SubmitButton` renders a button that represent the `Submit` action on a form
|
|
6
6
|
*/
|
|
@@ -9,7 +9,9 @@ import FieldErrorTemplate from '../FieldErrorTemplate/index.js';
|
|
|
9
9
|
import FieldHelpTemplate from '../FieldHelpTemplate/index.js';
|
|
10
10
|
import FieldTemplate from '../FieldTemplate/index.js';
|
|
11
11
|
import GridTemplate from '../GridTemplate/index.js';
|
|
12
|
+
import MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate/index.js';
|
|
12
13
|
import ObjectFieldTemplate from '../ObjectFieldTemplate/index.js';
|
|
14
|
+
import OptionalDataControlsTemplate from '../OptionalDataControlsTemplate/index.js';
|
|
13
15
|
import SubmitButton from '../SubmitButton/index.js';
|
|
14
16
|
import TitleField from '../TitleField/index.js';
|
|
15
17
|
import WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate/index.js';
|
|
@@ -32,7 +34,9 @@ export function generateTemplates() {
|
|
|
32
34
|
FieldHelpTemplate,
|
|
33
35
|
FieldTemplate,
|
|
34
36
|
GridTemplate,
|
|
37
|
+
MultiSchemaFieldTemplate,
|
|
35
38
|
ObjectFieldTemplate,
|
|
39
|
+
OptionalDataControlsTemplate,
|
|
36
40
|
TitleFieldTemplate: TitleField,
|
|
37
41
|
WrapIfAdditionalTemplate,
|
|
38
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Templates.js","sourceRoot":"","sources":["../../src/Templates/Templates.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AAEnE,MAAM,UAAU,iBAAiB;IAK/B,OAAO;QACL,sBAAsB;QACtB,kBAAkB;QAClB,iBAAiB;QACjB,eAAe,EAAE;YACf,SAAS;YACT,UAAU;YACV,cAAc;YACd,YAAY;YACZ,YAAY;YACZ,YAAY;SACb;QACD,wBAAwB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AE,SAAS;QAC5B,kBAAkB;QAClB,iBAAiB;QACjB,aAAa;QACb,YAAY;QACZ,wBAAwB;QACxB,mBAAmB;QACnB,4BAA4B;QAC5B,kBAAkB,EAAE,UAAU;QAC9B,wBAAwB;KACzB,CAAC;AACJ,CAAC;AAED,eAAe,iBAAiB,EAAE,CAAC"}
|
|
@@ -3,4 +3,4 @@ import { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '
|
|
|
3
3
|
*
|
|
4
4
|
* @param props - The `TitleFieldProps` for this component
|
|
5
5
|
*/
|
|
6
|
-
export default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ id, title, }: TitleFieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ id, title, optionalDataControl, }: TitleFieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|