@rjsf/fluentui-rc 6.4.2 → 6.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.umd.js +13 -9
- package/dist/index.cjs +13 -9
- package/dist/index.cjs.map +2 -2
- package/dist/index.esm.js +21 -12
- package/dist/index.esm.js.map +3 -3
- package/lib/CheckboxesWidget/CheckboxesWidget.js +4 -3
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/RadioWidget/RadioWidget.js +6 -5
- package/lib/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.js +4 -3
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +5 -3
- package/src/RadioWidget/RadioWidget.tsx +8 -5
- package/src/SelectWidget/SelectWidget.tsx +6 -3
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -741,7 +741,8 @@ function WrapIfAdditionalTemplate(props) {
|
|
|
741
741
|
input: {
|
|
742
742
|
className: classes.input
|
|
743
743
|
}
|
|
744
|
-
}
|
|
744
|
+
},
|
|
745
|
+
label
|
|
745
746
|
) }) }),
|
|
746
747
|
/* @__PURE__ */ jsx17("div", { className: classes.halfWidth, children }),
|
|
747
748
|
/* @__PURE__ */ jsx17("div", { className: hasDescription ? classes.alignCenter : classes.alignEnd, children: /* @__PURE__ */ jsx17(
|
|
@@ -860,10 +861,11 @@ function CheckboxWidget(props) {
|
|
|
860
861
|
// src/CheckboxesWidget/CheckboxesWidget.tsx
|
|
861
862
|
import {
|
|
862
863
|
ariaDescribedByIds as ariaDescribedByIds3,
|
|
864
|
+
enumOptionValueDecoder,
|
|
863
865
|
enumOptionsDeselectValue,
|
|
864
866
|
enumOptionsIsSelected,
|
|
865
867
|
enumOptionsSelectValue,
|
|
866
|
-
|
|
868
|
+
getOptionValueFormat,
|
|
867
869
|
labelValue as labelValue2,
|
|
868
870
|
optionId
|
|
869
871
|
} from "@rjsf/utils";
|
|
@@ -886,6 +888,7 @@ function CheckboxesWidget({
|
|
|
886
888
|
onFocus
|
|
887
889
|
}) {
|
|
888
890
|
const { enumOptions, enumDisabled, inline, emptyValue } = options;
|
|
891
|
+
const optionValueFormat = getOptionValueFormat(options);
|
|
889
892
|
const checkboxesValues = Array.isArray(value) ? value : [value];
|
|
890
893
|
const _onChange = (index) => ({ target: { checked } }) => {
|
|
891
894
|
if (checked) {
|
|
@@ -894,8 +897,8 @@ function CheckboxesWidget({
|
|
|
894
897
|
onChange(enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
|
|
895
898
|
}
|
|
896
899
|
};
|
|
897
|
-
const _onBlur = ({ target }) => onBlur(id,
|
|
898
|
-
const _onFocus = ({ target }) => onFocus(id,
|
|
900
|
+
const _onBlur = ({ target }) => onBlur(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
901
|
+
const _onFocus = ({ target }) => onFocus(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
899
902
|
return /* @__PURE__ */ jsxs11(Fragment5, { children: [
|
|
900
903
|
labelValue2(
|
|
901
904
|
/* @__PURE__ */ jsx19(Label2, { required, htmlFor: id, children: label || void 0 }),
|
|
@@ -927,8 +930,10 @@ function CheckboxesWidget({
|
|
|
927
930
|
// src/RadioWidget/RadioWidget.tsx
|
|
928
931
|
import {
|
|
929
932
|
ariaDescribedByIds as ariaDescribedByIds4,
|
|
933
|
+
enumOptionValueDecoder as enumOptionValueDecoder2,
|
|
934
|
+
enumOptionValueEncoder,
|
|
930
935
|
enumOptionsIndexForValue,
|
|
931
|
-
|
|
936
|
+
getOptionValueFormat as getOptionValueFormat2,
|
|
932
937
|
labelValue as labelValue3,
|
|
933
938
|
optionId as optionId2
|
|
934
939
|
} from "@rjsf/utils";
|
|
@@ -949,9 +954,10 @@ function RadioWidget({
|
|
|
949
954
|
onFocus
|
|
950
955
|
}) {
|
|
951
956
|
const { enumOptions, enumDisabled, emptyValue, inline } = options;
|
|
952
|
-
const
|
|
953
|
-
const
|
|
954
|
-
const
|
|
957
|
+
const optionValueFormat = getOptionValueFormat2(options);
|
|
958
|
+
const _onChange = (_, data) => onChange(enumOptionValueDecoder2(data.value, enumOptions, optionValueFormat, emptyValue));
|
|
959
|
+
const _onBlur = ({ target }) => onBlur(id, enumOptionValueDecoder2(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
960
|
+
const _onFocus = ({ target }) => onFocus(id, enumOptionValueDecoder2(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
955
961
|
const selectedIndex = enumOptionsIndexForValue(value, enumOptions) ?? void 0;
|
|
956
962
|
return /* @__PURE__ */ jsxs12(Fragment6, { children: [
|
|
957
963
|
labelValue3(
|
|
@@ -976,7 +982,7 @@ function RadioWidget({
|
|
|
976
982
|
{
|
|
977
983
|
id: optionId2(id, index),
|
|
978
984
|
label: option.label,
|
|
979
|
-
value:
|
|
985
|
+
value: enumOptionValueEncoder(option.value, index, optionValueFormat),
|
|
980
986
|
disabled: disabled || itemDisabled || readonly
|
|
981
987
|
},
|
|
982
988
|
index
|
|
@@ -1025,8 +1031,10 @@ function RangeWidget(props) {
|
|
|
1025
1031
|
// src/SelectWidget/SelectWidget.tsx
|
|
1026
1032
|
import {
|
|
1027
1033
|
ariaDescribedByIds as ariaDescribedByIds6,
|
|
1034
|
+
enumOptionValueDecoder as enumOptionValueDecoder3,
|
|
1035
|
+
enumOptionValueEncoder as enumOptionValueEncoder2,
|
|
1028
1036
|
enumOptionsIndexForValue as enumOptionsIndexForValue2,
|
|
1029
|
-
|
|
1037
|
+
getOptionValueFormat as getOptionValueFormat3,
|
|
1030
1038
|
labelValue as labelValue5
|
|
1031
1039
|
} from "@rjsf/utils";
|
|
1032
1040
|
import { Dropdown, Field as Field3, Option } from "@fluentui/react-components";
|
|
@@ -1057,6 +1065,7 @@ function SelectWidget({
|
|
|
1057
1065
|
placeholder
|
|
1058
1066
|
}) {
|
|
1059
1067
|
const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;
|
|
1068
|
+
const optionValueFormat = getOptionValueFormat3(options);
|
|
1060
1069
|
const selectedIndexes = enumOptionsIndexForValue2(value, enumOptions, multiple);
|
|
1061
1070
|
let selectedIndexesAsArray = [];
|
|
1062
1071
|
if (typeof selectedIndexes === "string") {
|
|
@@ -1069,7 +1078,7 @@ function SelectWidget({
|
|
|
1069
1078
|
const _onFocus = () => onFocus(id, selectedIndexes);
|
|
1070
1079
|
const _onChange = (_, data) => {
|
|
1071
1080
|
const newValue = getValue(data, multiple);
|
|
1072
|
-
return onChange(
|
|
1081
|
+
return onChange(enumOptionValueDecoder3(newValue, enumOptions, optionValueFormat, optEmptyVal));
|
|
1073
1082
|
};
|
|
1074
1083
|
const showPlaceholderOption = !multiple && schema.default === void 0;
|
|
1075
1084
|
return /* @__PURE__ */ jsx22(
|
|
@@ -1097,7 +1106,7 @@ function SelectWidget({
|
|
|
1097
1106
|
showPlaceholderOption && /* @__PURE__ */ jsx22(Option, { value: "", children: placeholder || "" }),
|
|
1098
1107
|
Array.isArray(enumOptions) && enumOptions.map(({ value: value2, label: label2 }, i) => {
|
|
1099
1108
|
const disabled2 = enumDisabled && enumDisabled.indexOf(value2) !== -1;
|
|
1100
|
-
return /* @__PURE__ */ jsx22(Option, { value:
|
|
1109
|
+
return /* @__PURE__ */ jsx22(Option, { value: enumOptionValueEncoder2(value2, i, optionValueFormat), disabled: disabled2, children: label2 }, i);
|
|
1101
1110
|
})
|
|
1102
1111
|
]
|
|
1103
1112
|
}
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/FluentForm/FluentForm.ts", "../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx", "../src/AddButton/AddButton.tsx", "../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx", "../src/BaseInputTemplate/BaseInputTemplate.tsx", "../src/DescriptionField/DescriptionField.tsx", "../src/ErrorList/ErrorList.tsx", "../src/IconButton/IconButton.tsx", "../src/FieldErrorTemplate/FieldErrorTemplate.tsx", "../src/FieldHelpTemplate/FieldHelpTemplate.tsx", "../src/FieldTemplate/FieldTemplate.tsx", "../src/GridTemplate/GridTemplate.tsx", "../src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx", "../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx", "../src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx", "../src/SubmitButton/SubmitButton.tsx", "../src/TitleField/TitleField.tsx", "../src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx", "../src/Templates/Templates.ts", "../src/CheckboxWidget/CheckboxWidget.tsx", "../src/CheckboxesWidget/CheckboxesWidget.tsx", "../src/RadioWidget/RadioWidget.tsx", "../src/RangeWidget/RangeWidget.tsx", "../src/SelectWidget/SelectWidget.tsx", "../src/TextareaWidget/TextareaWidget.tsx", "../src/Widgets/Widgets.ts", "../src/Theme/Theme.ts", "../src/FluentUIRCFrameProvider.tsx", "../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { ComponentType } from 'react';\nimport { FormProps, withTheme } from '@rjsf/core';\n\nimport { generateTheme } from '../Theme';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { Flex } from '@fluentui/react-migration-v0-v9';\nimport { makeStyles } from '@fluentui/react-components';\n\nconst useStyles = makeStyles({\n arrayFieldItem: {\n '> .form-group': {\n width: '100%',\n },\n },\n});\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const classes = useStyles();\n const { children, buttonsProps, displayLabel, 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\n return (\n <Flex vAlign='start'>\n <Flex fill className={classes.arrayFieldItem}>\n {children}\n </Flex>\n {hasToolbar && (\n <Flex style={{ marginLeft: '8px', marginTop: displayLabel ? '26px' : 0 }}>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} />\n </Flex>\n )}\n </Flex>\n );\n}\n", "import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\nimport { Button } from '@fluentui/react-components';\nimport { AddRegular } from '@fluentui/react-icons';\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 <Button title={translateString(TranslatableString.AddItemButton)} {...props} icon={<AddRegular />} />;\n}\n", "import { makeStyles, shorthands } from '@fluentui/react-components';\nimport { Flex } from '@fluentui/react-migration-v0-v9';\nimport {\n getTemplate,\n getUiOptions,\n ArrayFieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n buttonId,\n} from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n arrayItemList: {\n ...shorthands.gap('12px'),\n },\n});\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n disabled,\n fieldPathId,\n uiSchema,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n registry,\n required,\n schema,\n title,\n } = props;\n const classes = useStyles();\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <Flex column key={`array-item-list-${fieldPathId.$id}`} className={classes.arrayItemList}>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n {canAdd && (\n <Flex hAlign='end'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Flex>\n )}\n </Flex>\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent, MouseEvent, useCallback } from 'react';\nimport { Input, InputProps, Label, makeStyles } from '@fluentui/react-components';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n labelValue,\n} from '@rjsf/utils';\nimport { SchemaExamples } from '@rjsf/core';\n\nconst useStyles = makeStyles({\n input: {\n width: '100%',\n },\n label: {\n paddingTop: '2px',\n paddingBottom: '2px',\n marginBottom: '2px',\n },\n});\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 htmlName,\n placeholder,\n required,\n readonly,\n disabled,\n type,\n value,\n label,\n hideLabel,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n registry,\n } = props;\n const { ClearButton } = registry.templates.ButtonTemplates;\n const classes = useStyles();\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 fluentui-rc\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 _onClear = useCallback(\n (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n onChange(options.emptyValue ?? '');\n },\n [onChange, options.emptyValue],\n );\n return (\n <>\n {labelValue(\n <Label htmlFor={id} required={required} disabled={disabled} className={classes.label}>\n {label}\n </Label>,\n hideLabel,\n )}\n <Input\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n {...(inputProps as InputProps)}\n input={{\n className: classes.input,\n // Due to Fluent UI this does not work correctly\n list: schema.examples ? examplesId(id) : undefined,\n }}\n value={value || value === 0 ? value : ''}\n onChange={onChangeOverride || _onChange}\n onFocus={_onFocus}\n onBlur={_onBlur}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n {options.allowClearTextInputs && !readonly && !disabled && value && (\n <ClearButton registry={registry} onClick={_onClear} />\n )}\n <SchemaExamples id={id} schema={schema} />\n </>\n );\n}\n", "import { Text, makeStyles, tokens } from '@fluentui/react-components';\nimport { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\n\nconst useStyles = makeStyles({\n label: {\n marginTop: tokens.spacingVerticalS,\n marginBottom: tokens.spacingVerticalM,\n },\n});\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n const classes = useStyles();\n if (!description) {\n return null;\n }\n\n return (\n <Text block id={id} className={classes.label}>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </Text>\n );\n}\n", "import { Card, Text, makeStyles, shorthands, tokens } from '@fluentui/react-components';\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n errorCard: {\n backgroundColor: tokens.colorStatusDangerBackground1,\n marginBottom: tokens.spacingVerticalL,\n '&::after': {\n ...shorthands.borderColor(tokens.colorStatusDangerBorder1),\n },\n },\n errorTitle: {\n marginTop: 0,\n marginBottom: 0,\n },\n});\n\n/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n const classes = useStyles();\n return (\n <Card appearance='outline' className={classes.errorCard}>\n <Text as='h6' size={400} className={classes.errorTitle}>\n {translateString(TranslatableString.ErrorsLabel)}\n </Text>\n <ul>\n {errors.map((error, i: number) => {\n return <li key={i}>{error.stack}</li>;\n })}\n </ul>\n </Card>\n );\n}\n", "import { Button, ButtonProps } from '@fluentui/react-components';\nimport {\n ArrowSortUpRegular,\n ArrowSortDownRegular,\n CopyRegular,\n SubtractRegular,\n DismissRegular,\n} from '@fluentui/react-icons';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nexport type FluentIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & Omit<ButtonProps, 'onChange' | 'as'>;\n\nexport default function FluentIconButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FluentIconButtonProps<T, S, F>) {\n const { color, uiSchema, registry, ...otherProps } = props;\n\n return <Button {...otherProps} color='secondary' />;\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.CopyButton)}\n {...props}\n icon={<CopyRegular />}\n />\n );\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.MoveDownButton)}\n {...props}\n icon={<ArrowSortDownRegular />}\n />\n );\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.MoveUpButton)}\n {...props}\n icon={<ArrowSortUpRegular />}\n />\n );\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.RemoveButton)}\n {...props}\n icon={<SubtractRegular />}\n />\n );\n}\n\nexport function ClearButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.ClearButton)}\n {...props}\n icon={<DismissRegular />}\n />\n );\n}\n", "import { makeStyles, tokens } from '@fluentui/react-components';\nimport { errorId, FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n list: { marginTop: 0, marginBottom: 0, paddingLeft: 0, listStyleType: 'none' },\n listItem: {\n paddingLeft: tokens.spacingHorizontalL,\n paddingTop: tokens.spacingVerticalXS,\n paddingBottom: tokens.spacingVerticalXS,\n },\n errorLabel: { color: tokens.colorPaletteRedForeground1 },\n});\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldErrorProps<T, S, F>) {\n const { errors = [], fieldPathId } = props;\n const classes = useStyles();\n\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n return (\n <ul className={classes.list}>\n {errors.map((error, i: number) => {\n return (\n <li key={i} className={classes.listItem}>\n <small className={classes.errorLabel} id={id}>\n {error}\n </small>\n </li>\n );\n })}\n </ul>\n );\n}\n", "import { Caption1 } from '@fluentui/react-components';\nimport { helpId, FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichHelp } from '@rjsf/core';\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldHelpProps<T, S, F>) {\n const { fieldPathId, help, uiSchema = {}, registry } = props;\n\n if (!help) {\n return null;\n }\n return (\n <Caption1 id={helpId(fieldPathId)}>\n <RichHelp help={help} registry={registry} uiSchema={uiSchema} />\n </Caption1>\n );\n}\n", "import { Field, Text } from '@fluentui/react-components';\nimport {\n FieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n getTemplate,\n getUiOptions,\n} from '@rjsf/utils';\n\n/** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field\n * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.\n *\n * @param props - The `FieldTemplateProps` for this component\n */\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldTemplateProps<T, S, F>) {\n const {\n id,\n children,\n classNames,\n style,\n disabled,\n displayLabel,\n hidden,\n label,\n onKeyRename,\n onKeyRenameBlur,\n onRemoveProperty,\n readonly,\n required,\n rawErrors = [],\n errors,\n help,\n description,\n rawDescription,\n schema,\n uiSchema,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n const isCheckbox = uiOptions.widget === 'checkbox';\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n displayLabel={displayLabel}\n rawDescription={rawDescription}\n onKeyRename={onKeyRename}\n onKeyRenameBlur={onKeyRenameBlur}\n onRemoveProperty={onRemoveProperty}\n readonly={readonly}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n >\n <Field validationState={rawErrors.length ? 'error' : undefined} required={required}>\n {children}\n {displayLabel && rawDescription && !isCheckbox ? (\n <Text as='p' block style={{ marginTop: 0, marginBottom: 0 }}>\n {description}\n </Text>\n ) : null}\n {errors}\n {help}\n </Field>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import { GridShim, grid } from '@fluentui/react-migration-v0-v9';\nimport { GridTemplateProps } from '@rjsf/utils';\n\n/** Renders a `GridTemplate` for fluentui-rc, which is expecting the column sizing information coming in via the\n * `style` by the caller, which are spread directly on the `GridShim` if `columns` or `rows` are provided. Otherwise,\n * the `style` is added to a simple grid. This was done because `fluentui-rc` uses the CSS Grid which defines all of\n * the column/row/grid information via style.\n *\n * @param props - The GridTemplateProps, including the extra props containing the fluentui-rc grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, columns, rows, style, ...rest } = props;\n if (columns || rows) {\n // Use the `grid` rows/columns functions to generate the additional grid styling\n const styles = {\n ...style,\n ...(rows ? grid.rows(rows) : undefined),\n ...(columns ? grid.columns(columns) : undefined),\n };\n return (\n <GridShim style={styles} {...rest}>\n {children}\n </GridShim>\n );\n }\n return (\n <div style={style} {...rest}>\n {children}\n </div>\n );\n}\n", "import { makeStyles } from '@fluentui/react-components';\nimport { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n root: {\n '> div': { marginBottom: '4px' },\n },\n});\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { selector, optionSchemaField } = props;\n\n const styles = useStyles();\n\n return (\n <div className={styles.root}>\n <div>{selector}</div>\n {optionSchemaField}\n </div>\n );\n}\n", "import { Flex } from '@fluentui/react-migration-v0-v9';\nimport {\n FormContextType,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n canExpand,\n descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\n buttonId,\n} from '@rjsf/utils';\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n title,\n properties,\n required,\n disabled,\n readonly,\n uiSchema,\n fieldPathId,\n schema,\n formData,\n optionalDataControl,\n onAddProperty,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Flex fill column gap='gap.medium'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((element, index) =>\n // Remove the <Grid> if the inner element is hidden as the <Grid>\n // itself would otherwise still take up space.\n element.hidden ? (\n element.content\n ) : (\n <Flex column fill key={index} style={{ marginBottom: '10px' }}>\n {element.content}\n </Flex>\n ),\n )}\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Flex hAlign='end'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n onClick={onAddProperty}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Flex>\n )}\n </Flex>\n </>\n );\n}\n", "import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { AddSquareMultipleRegular, SubtractSquareMultipleRegular } from '@fluentui/react-icons';\n\nimport FluentIconButton from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick } = props;\n if (onAddClick) {\n return (\n <FluentIconButton\n id={id}\n registry={registry}\n icon={<AddSquareMultipleRegular />}\n className='rjsf-add-optional-data'\n onClick={onAddClick}\n title={label}\n size='small'\n appearance='secondary'\n />\n );\n } else if (onRemoveClick) {\n return (\n <FluentIconButton\n id={id}\n registry={registry}\n icon={<SubtractSquareMultipleRegular />}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n size='small'\n appearance='secondary'\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import { FormContextType, getSubmitButtonOptions, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\nimport { Button, makeStyles, tokens } from '@fluentui/react-components';\n\nconst useStyles = makeStyles({\n buttonRow: {\n marginTop: tokens.spacingVerticalL,\n },\n});\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 classes = useStyles();\n const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions(uiSchema);\n if (norender) {\n return null;\n }\n return (\n <div className={classes.buttonRow}>\n <Button appearance='primary' type='submit' {...submitButtonProps}>\n {submitText}\n </Button>\n </div>\n );\n}\n", "import { Flex } from '@fluentui/react-migration-v0-v9';\nimport { Text, Divider, makeStyles } from '@fluentui/react-components';\nimport { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n root: {\n marginTop: '8px',\n marginBottom: '8px',\n },\n});\n\n/** The `TitleField` is the template to use to render the title of a field\n *\n * @param props - The `TitleFieldProps` for this component\n */\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n title,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const classes = useStyles();\n let heading = (\n <Text as='h5' size={600} style={{ marginBlock: 0 }}>\n {title}\n </Text>\n );\n if (optionalDataControl) {\n heading = (\n <Flex>\n <Flex fill>{heading}</Flex>\n <Flex hAlign='end'>{optionalDataControl}</Flex>\n </Flex>\n );\n }\n return (\n <div id={id} className={classes.root}>\n {heading}\n <Divider />\n </div>\n );\n}\n", "import { CSSProperties } from 'react';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n buttonId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n} from '@rjsf/utils';\nimport { Field, Input, makeStyles } from '@fluentui/react-components';\nimport { Flex } from '@fluentui/react-migration-v0-v9';\n\nconst useStyles = makeStyles({\n input: {\n width: '100%',\n },\n grow: {\n flexGrow: 1,\n },\n halfWidth: {\n width: '46%',\n },\n alignEnd: {\n alignSelf: 'flex-end',\n justifyContent: 'flex-end',\n },\n alignCenter: {\n alignSelf: 'center',\n marginTop: '-14px',\n justifyContent: 'flex-end',\n },\n label: {\n marginBottom: '4px',\n },\n});\n\nconst containerTypes = ['object', 'array'];\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WrapIfAdditionalTemplateProps<T, S, F>) {\n const {\n children,\n classNames,\n style,\n disabled,\n id,\n label,\n displayLabel,\n onRemoveProperty,\n onKeyRenameBlur,\n rawDescription,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n } = props;\n const { templates, translateString } = registry;\n const classes = useStyles();\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 hasDescription = !!rawDescription;\n const btnStyle: CSSProperties = {\n flex: 1,\n paddingLeft: 6,\n paddingRight: 6,\n fontWeight: 'bold',\n };\n\n if (!additional) {\n const { type } = schema;\n // Flex grow only non container classes\n const className = containerTypes.includes(type as string) ? classNames : `${classes.grow} ${classNames}`;\n return (\n <div className={className} style={style}>\n {children}\n </div>\n );\n }\n\n return (\n <Flex gap='gap.medium' vAlign='start' key={`${id}-key`} className={classNames} style={style}>\n <div className={classes.halfWidth}>\n <Field label={displayLabel ? keyLabel : undefined} required={required}>\n <Input\n required={required}\n defaultValue={label}\n disabled={disabled || readonly}\n id={`${id}-key`}\n name={`${id}-key`}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n type='text'\n input={{\n className: classes.input,\n }}\n />\n </Field>\n </div>\n <div className={classes.halfWidth}>{children}</div>\n <div className={hasDescription ? classes.alignCenter : classes.alignEnd}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n iconType='default'\n className='rjsf-object-property-remove'\n style={btnStyle}\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n </Flex>\n );\n}\n", "import ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport AddButton from '../AddButton';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate/BaseInputTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\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 CopyButton,\n AddButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n ClearButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n schemaRequiresTrueValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Checkbox } from '@fluentui/react-components';\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n schema,\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label = '',\n hideLabel,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n registry,\n options,\n uiSchema,\n } = props;\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n // Because an unchecked checkbox will cause html5 validation to fail, only add\n // the \"required\" attribute if the field value must be \"true\", due to the\n // \"const\" or \"enum\" keywords\n const required = schemaRequiresTrueValue<S>(schema);\n\n const _onChange = ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => onChange(checked);\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.checked);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.checked);\n const description = options.description ?? schema.description;\n\n return (\n <>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Checkbox\n id={id}\n name={htmlName || id}\n label={label}\n checked={typeof value === 'undefined' ? false : Boolean(value)}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\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';\nimport { Label, Checkbox } from '@fluentui/react-components';\nimport { Flex } from '@fluentui/react-migration-v0-v9';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n label,\n hideLabel,\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n required,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, inline, emptyValue } = options;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n\n const _onChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n if (checked) {\n onChange(enumOptionsSelectValue<S>(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue<S>(index, checkboxesValues, enumOptions));\n }\n };\n\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 return (\n <>\n {labelValue(\n <Label required={required} htmlFor={id}>\n {label || undefined}\n </Label>,\n hideLabel,\n )}\n <Flex column={!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 return (\n <Checkbox\n key={index}\n id={optionId(id, index)}\n name={htmlName || id}\n label={option.label}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n })}\n </Flex>\n </>\n );\n}\n", "import { FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n labelValue,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Label, Radio, RadioGroup, RadioGroupOnChangeData } from '@fluentui/react-components';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n htmlName,\n options,\n value,\n required,\n disabled,\n readonly,\n label,\n hideLabel,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue, inline } = options;\n\n const _onChange = (_: any, data: RadioGroupOnChangeData) =>\n onChange(enumOptionsValueForIndex<S>(data.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 selectedIndex = enumOptionsIndexForValue<S>(value, enumOptions) ?? undefined;\n\n return (\n <>\n {labelValue(\n <Label required={required} htmlFor={id}>\n {label || undefined}\n </Label>,\n hideLabel,\n )}\n <RadioGroup\n id={id}\n name={htmlName || id}\n layout={inline ? 'horizontal' : 'vertical'}\n value={selectedIndex as string | undefined}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <Radio\n id={optionId(id, index)}\n label={option.label}\n value={String(index)}\n key={index}\n disabled={disabled || itemDisabled || readonly}\n />\n );\n })}\n </RadioGroup>\n </>\n );\n}\n", "import { FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n rangeSpec,\n} from '@rjsf/utils';\nimport { Label, Slider, SliderOnChangeData } from '@fluentui/react-components';\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, data: SliderOnChangeData) => {\n onChange(data.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 <Label required={required} htmlFor={id}>\n {label || undefined}\n </Label>,\n hideLabel,\n )}\n <Slider\n disabled={disabled || readonly}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n {...sliderProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n FormContextType,\n labelValue,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Dropdown, Field, Option } from '@fluentui/react-components';\nimport { OptionOnSelectData } from '@fluentui/react-combobox';\n\nfunction getValue(data: OptionOnSelectData, multiple: boolean) {\n if (multiple) {\n return data.selectedOptions;\n }\n return data.selectedOptions[0];\n}\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nfunction SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n htmlName,\n options,\n label,\n hideLabel,\n value,\n required,\n disabled,\n readonly,\n multiple = false,\n autofocus = false,\n rawErrors = [],\n onChange,\n onBlur,\n onFocus,\n schema,\n placeholder,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;\n\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n let selectedIndexesAsArray: string[] = [];\n\n if (typeof selectedIndexes === 'string') {\n selectedIndexesAsArray = [selectedIndexes];\n } else if (Array.isArray(selectedIndexes)) {\n selectedIndexesAsArray = selectedIndexes.map((index) => String(index));\n }\n\n const dropdownValue = selectedIndexesAsArray\n .map((index) => (enumOptions ? enumOptions[Number(index)].label : undefined))\n .join(', ');\n\n const _onBlur = () => onBlur(id, selectedIndexes);\n const _onFocus = () => onFocus(id, selectedIndexes);\n const _onChange = (_: any, data: OptionOnSelectData) => {\n const newValue = getValue(data, multiple);\n return onChange(enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyVal));\n };\n const showPlaceholderOption = !multiple && schema.default === undefined;\n\n return (\n <Field\n label={labelValue(label, hideLabel)}\n validationState={rawErrors.length ? 'error' : undefined}\n required={required}\n >\n <Dropdown\n id={id}\n name={htmlName || id}\n multiselect={multiple}\n className='form-control'\n value={dropdownValue}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n onBlur={_onBlur}\n onFocus={_onFocus}\n onOptionSelect={_onChange}\n selectedOptions={selectedIndexesAsArray}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {showPlaceholderOption && <Option value=''>{placeholder || ''}</Option>}\n {Array.isArray(enumOptions) &&\n enumOptions.map(({ value, label }, i) => {\n const disabled = enumDisabled && enumDisabled.indexOf(value) !== -1;\n return (\n <Option key={i} value={String(i)} disabled={disabled}>\n {label}\n </Option>\n );\n })}\n </Dropdown>\n </Field>\n );\n}\n\nexport default SelectWidget;\n", "import { Label, Textarea, makeStyles } from '@fluentui/react-components';\nimport {\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n ariaDescribedByIds,\n labelValue,\n} from '@rjsf/utils';\nimport { ChangeEvent, FocusEvent } from 'react';\n\nconst useStyles = makeStyles({\n label: {\n paddingTop: '2px',\n paddingBottom: '2px',\n marginBottom: '2px',\n },\n});\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 {\n id,\n htmlName,\n placeholder,\n required,\n readonly,\n disabled,\n value,\n label,\n hideLabel,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n } = props;\n const classes = useStyles();\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = ({ target }: FocusEvent<HTMLTextAreaElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLTextAreaElement>) => onFocus(id, target && target.value);\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 (\n <>\n {labelValue(\n <Label htmlFor={id} required={required} disabled={disabled} className={classes.label}>\n {label}\n </Label>,\n hideLabel,\n )}\n <Textarea\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n value={value || value === 0 ? value : ''}\n onChange={onChangeOverride || _onChange}\n onFocus={_onFocus}\n onBlur={_onBlur}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n rows={rows}\n />\n </>\n );\n}\n", "import 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';\nimport { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n", "import { ThemeProps } from '@rjsf/core';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 { FluentProvider, RendererProvider, createDOMRenderer, teamsLightTheme } from '@fluentui/react-components';\nimport { ReactNode, useMemo } from 'react';\n\nconst FluentWrapper = (props: { children: ReactNode; targetDocument?: HTMLDocument }) => {\n const { children, targetDocument } = props;\n const renderer = useMemo(() => createDOMRenderer(targetDocument), [targetDocument]);\n\n return (\n <RendererProvider renderer={renderer} targetDocument={targetDocument}>\n <FluentProvider targetDocument={targetDocument} theme={teamsLightTheme}>\n {children}\n </FluentProvider>\n </RendererProvider>\n );\n};\n\nexport const __createFluentUIRCFrameProvider =\n (props: any) =>\n ({ document }: any) => {\n return <FluentWrapper targetDocument={document}>{props.children}</FluentWrapper>;\n };\n", "import FluentForm from './FluentForm';\n\nexport { default as Form, generateForm } from './FluentForm';\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\nexport { __createFluentUIRCFrameProvider } from './FluentUIRCFrameProvider';\n\nexport default FluentForm;\n"],
|
|
5
|
-
"mappings": ";AACA,SAAoB,iBAAiB;;;ACDrC;AAAA,EAGE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,YAAY;AACrB,SAAS,kBAAkB;AA6BvB,SACE,KADF;AA3BJ,IAAM,YAAY,WAAW;AAAA,EAC3B,gBAAgB;AAAA,IACd,iBAAiB;AAAA,MACf,OAAO;AAAA,IACT;AAAA,EACF;AACF,CAAC;AAMc,SAAR,uBAIL,OAA6C;AAC7C,QAAM,UAAU,UAAU;AAC1B,QAAM,EAAE,UAAU,cAAc,cAAc,YAAY,UAAU,SAAS,IAAI;AACjF,QAAM,YAAY,aAAsB,QAAQ;AAChD,QAAM,gCAAgC;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,SACE,qBAAC,QAAK,QAAO,SACX;AAAA,wBAAC,QAAK,MAAI,MAAC,WAAW,QAAQ,gBAC3B,UACH;AAAA,IACC,cACC,oBAAC,QAAK,OAAO,EAAE,YAAY,OAAO,WAAW,eAAe,SAAS,EAAE,GACrE,8BAAC,iCAA+B,GAAG,cAAc,GACnD;AAAA,KAEJ;AAEJ;;;ACjDA,SAAyE,0BAA0B;AACnG,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAQiE,gBAAAA,YAAA;AAN7E,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA6B;AAC3B,Q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,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,qBAAQ,aAAa;;;A2Bd5B,SAAS,gBAAgB,kBAAkB,mBAAmB,uBAAuB;AACrF,SAAoB,eAAe;AAQ7B,gBAAAO,aAAA;AANN,IAAM,gBAAgB,CAAC,UAAkE;AACvF,QAAM,EAAE,UAAU,eAAe,IAAI;AACrC,QAAM,WAAW,QAAQ,MAAM,kBAAkB,cAAc,GAAG,CAAC,cAAc,CAAC;AAElF,SACE,gBAAAA,MAAC,oBAAiB,UAAoB,gBACpC,0BAAAA,MAAC,kBAAe,gBAAgC,OAAO,iBACpD,UACH,GACF;AAEJ;AAEO,IAAM,kCACX,CAAC,UACD,CAAC,EAAE,SAAS,MAAW;AACrB,SAAO,gBAAAA,MAAC,iBAAc,gBAAgB,UAAW,gBAAM,UAAS;AAClE;;;ACZF,IAAO,gBAAQ;",
|
|
6
|
-
"names": ["jsx", "makeStyles", "Flex", "getTemplate", "getUiOptions", "jsx", "jsxs", "useStyles", "AddButton", "makeStyles", "Fragment", "jsx", "jsxs", "useStyles", "ClearButton", "value", "makeStyles", "jsx", "useStyles", "Text", "makeStyles", "shorthands", "tokens", "TranslatableString", "jsx", "jsxs", "useStyles", "Button", "TranslatableString", "jsx", "makeStyles", "tokens", "jsx", "useStyles", "jsx", "Text", "getTemplate", "getUiOptions", "jsx", "jsxs", "WrapIfAdditionalTemplate", "jsx", "makeStyles", "jsx", "jsxs", "useStyles", "Flex", "getTemplate", "getUiOptions", "buttonId", "Fragment", "jsx", "jsxs", "AddButton", "jsx", "Button", "makeStyles", "tokens", "jsx", "useStyles", "Flex", "Text", "makeStyles", "jsx", "jsxs", "useStyles", "buttonId", "TranslatableString", "Field", "Input", "makeStyles", "Flex", "jsx", "jsxs", "useStyles", "RemoveButton", "ariaDescribedByIds", "descriptionId", "getTemplate", "Fragment", "jsx", "jsxs", "ariaDescribedByIds", "labelValue", "Label", "Checkbox", "Flex", "Fragment", "jsx", "jsxs", "ariaDescribedByIds", "
|
|
4
|
+
"sourcesContent": ["import { ComponentType } from 'react';\nimport { FormProps, withTheme } from '@rjsf/core';\n\nimport { generateTheme } from '../Theme';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { Flex } from '@fluentui/react-migration-v0-v9';\nimport { makeStyles } from '@fluentui/react-components';\n\nconst useStyles = makeStyles({\n arrayFieldItem: {\n '> .form-group': {\n width: '100%',\n },\n },\n});\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const classes = useStyles();\n const { children, buttonsProps, displayLabel, 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\n return (\n <Flex vAlign='start'>\n <Flex fill className={classes.arrayFieldItem}>\n {children}\n </Flex>\n {hasToolbar && (\n <Flex style={{ marginLeft: '8px', marginTop: displayLabel ? '26px' : 0 }}>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} />\n </Flex>\n )}\n </Flex>\n );\n}\n", "import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\nimport { Button } from '@fluentui/react-components';\nimport { AddRegular } from '@fluentui/react-icons';\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 <Button title={translateString(TranslatableString.AddItemButton)} {...props} icon={<AddRegular />} />;\n}\n", "import { makeStyles, shorthands } from '@fluentui/react-components';\nimport { Flex } from '@fluentui/react-migration-v0-v9';\nimport {\n getTemplate,\n getUiOptions,\n ArrayFieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n buttonId,\n} from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n arrayItemList: {\n ...shorthands.gap('12px'),\n },\n});\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n disabled,\n fieldPathId,\n uiSchema,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n registry,\n required,\n schema,\n title,\n } = props;\n const classes = useStyles();\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <Flex column key={`array-item-list-${fieldPathId.$id}`} className={classes.arrayItemList}>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n {canAdd && (\n <Flex hAlign='end'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Flex>\n )}\n </Flex>\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent, MouseEvent, useCallback } from 'react';\nimport { Input, InputProps, Label, makeStyles } from '@fluentui/react-components';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n labelValue,\n} from '@rjsf/utils';\nimport { SchemaExamples } from '@rjsf/core';\n\nconst useStyles = makeStyles({\n input: {\n width: '100%',\n },\n label: {\n paddingTop: '2px',\n paddingBottom: '2px',\n marginBottom: '2px',\n },\n});\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 htmlName,\n placeholder,\n required,\n readonly,\n disabled,\n type,\n value,\n label,\n hideLabel,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n registry,\n } = props;\n const { ClearButton } = registry.templates.ButtonTemplates;\n const classes = useStyles();\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 fluentui-rc\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 _onClear = useCallback(\n (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n onChange(options.emptyValue ?? '');\n },\n [onChange, options.emptyValue],\n );\n return (\n <>\n {labelValue(\n <Label htmlFor={id} required={required} disabled={disabled} className={classes.label}>\n {label}\n </Label>,\n hideLabel,\n )}\n <Input\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n {...(inputProps as InputProps)}\n input={{\n className: classes.input,\n // Due to Fluent UI this does not work correctly\n list: schema.examples ? examplesId(id) : undefined,\n }}\n value={value || value === 0 ? value : ''}\n onChange={onChangeOverride || _onChange}\n onFocus={_onFocus}\n onBlur={_onBlur}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n {options.allowClearTextInputs && !readonly && !disabled && value && (\n <ClearButton registry={registry} onClick={_onClear} />\n )}\n <SchemaExamples id={id} schema={schema} />\n </>\n );\n}\n", "import { Text, makeStyles, tokens } from '@fluentui/react-components';\nimport { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\n\nconst useStyles = makeStyles({\n label: {\n marginTop: tokens.spacingVerticalS,\n marginBottom: tokens.spacingVerticalM,\n },\n});\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n const classes = useStyles();\n if (!description) {\n return null;\n }\n\n return (\n <Text block id={id} className={classes.label}>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </Text>\n );\n}\n", "import { Card, Text, makeStyles, shorthands, tokens } from '@fluentui/react-components';\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n errorCard: {\n backgroundColor: tokens.colorStatusDangerBackground1,\n marginBottom: tokens.spacingVerticalL,\n '&::after': {\n ...shorthands.borderColor(tokens.colorStatusDangerBorder1),\n },\n },\n errorTitle: {\n marginTop: 0,\n marginBottom: 0,\n },\n});\n\n/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n const classes = useStyles();\n return (\n <Card appearance='outline' className={classes.errorCard}>\n <Text as='h6' size={400} className={classes.errorTitle}>\n {translateString(TranslatableString.ErrorsLabel)}\n </Text>\n <ul>\n {errors.map((error, i: number) => {\n return <li key={i}>{error.stack}</li>;\n })}\n </ul>\n </Card>\n );\n}\n", "import { Button, ButtonProps } from '@fluentui/react-components';\nimport {\n ArrowSortUpRegular,\n ArrowSortDownRegular,\n CopyRegular,\n SubtractRegular,\n DismissRegular,\n} from '@fluentui/react-icons';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nexport type FluentIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & Omit<ButtonProps, 'onChange' | 'as'>;\n\nexport default function FluentIconButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FluentIconButtonProps<T, S, F>) {\n const { color, uiSchema, registry, ...otherProps } = props;\n\n return <Button {...otherProps} color='secondary' />;\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.CopyButton)}\n {...props}\n icon={<CopyRegular />}\n />\n );\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.MoveDownButton)}\n {...props}\n icon={<ArrowSortDownRegular />}\n />\n );\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.MoveUpButton)}\n {...props}\n icon={<ArrowSortUpRegular />}\n />\n );\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.RemoveButton)}\n {...props}\n icon={<SubtractRegular />}\n />\n );\n}\n\nexport function ClearButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: FluentIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <FluentIconButton<T, S, F>\n title={translateString(TranslatableString.ClearButton)}\n {...props}\n icon={<DismissRegular />}\n />\n );\n}\n", "import { makeStyles, tokens } from '@fluentui/react-components';\nimport { errorId, FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n list: { marginTop: 0, marginBottom: 0, paddingLeft: 0, listStyleType: 'none' },\n listItem: {\n paddingLeft: tokens.spacingHorizontalL,\n paddingTop: tokens.spacingVerticalXS,\n paddingBottom: tokens.spacingVerticalXS,\n },\n errorLabel: { color: tokens.colorPaletteRedForeground1 },\n});\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldErrorProps<T, S, F>) {\n const { errors = [], fieldPathId } = props;\n const classes = useStyles();\n\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n return (\n <ul className={classes.list}>\n {errors.map((error, i: number) => {\n return (\n <li key={i} className={classes.listItem}>\n <small className={classes.errorLabel} id={id}>\n {error}\n </small>\n </li>\n );\n })}\n </ul>\n );\n}\n", "import { Caption1 } from '@fluentui/react-components';\nimport { helpId, FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichHelp } from '@rjsf/core';\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldHelpProps<T, S, F>) {\n const { fieldPathId, help, uiSchema = {}, registry } = props;\n\n if (!help) {\n return null;\n }\n return (\n <Caption1 id={helpId(fieldPathId)}>\n <RichHelp help={help} registry={registry} uiSchema={uiSchema} />\n </Caption1>\n );\n}\n", "import { Field, Text } from '@fluentui/react-components';\nimport {\n FieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n getTemplate,\n getUiOptions,\n} from '@rjsf/utils';\n\n/** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field\n * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.\n *\n * @param props - The `FieldTemplateProps` for this component\n */\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldTemplateProps<T, S, F>) {\n const {\n id,\n children,\n classNames,\n style,\n disabled,\n displayLabel,\n hidden,\n label,\n onKeyRename,\n onKeyRenameBlur,\n onRemoveProperty,\n readonly,\n required,\n rawErrors = [],\n errors,\n help,\n description,\n rawDescription,\n schema,\n uiSchema,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n const isCheckbox = uiOptions.widget === 'checkbox';\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n displayLabel={displayLabel}\n rawDescription={rawDescription}\n onKeyRename={onKeyRename}\n onKeyRenameBlur={onKeyRenameBlur}\n onRemoveProperty={onRemoveProperty}\n readonly={readonly}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n >\n <Field validationState={rawErrors.length ? 'error' : undefined} required={required}>\n {children}\n {displayLabel && rawDescription && !isCheckbox ? (\n <Text as='p' block style={{ marginTop: 0, marginBottom: 0 }}>\n {description}\n </Text>\n ) : null}\n {errors}\n {help}\n </Field>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import { GridShim, grid } from '@fluentui/react-migration-v0-v9';\nimport { GridTemplateProps } from '@rjsf/utils';\n\n/** Renders a `GridTemplate` for fluentui-rc, which is expecting the column sizing information coming in via the\n * `style` by the caller, which are spread directly on the `GridShim` if `columns` or `rows` are provided. Otherwise,\n * the `style` is added to a simple grid. This was done because `fluentui-rc` uses the CSS Grid which defines all of\n * the column/row/grid information via style.\n *\n * @param props - The GridTemplateProps, including the extra props containing the fluentui-rc grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, columns, rows, style, ...rest } = props;\n if (columns || rows) {\n // Use the `grid` rows/columns functions to generate the additional grid styling\n const styles = {\n ...style,\n ...(rows ? grid.rows(rows) : undefined),\n ...(columns ? grid.columns(columns) : undefined),\n };\n return (\n <GridShim style={styles} {...rest}>\n {children}\n </GridShim>\n );\n }\n return (\n <div style={style} {...rest}>\n {children}\n </div>\n );\n}\n", "import { makeStyles } from '@fluentui/react-components';\nimport { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n root: {\n '> div': { marginBottom: '4px' },\n },\n});\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { selector, optionSchemaField } = props;\n\n const styles = useStyles();\n\n return (\n <div className={styles.root}>\n <div>{selector}</div>\n {optionSchemaField}\n </div>\n );\n}\n", "import { Flex } from '@fluentui/react-migration-v0-v9';\nimport {\n FormContextType,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n canExpand,\n descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\n buttonId,\n} from '@rjsf/utils';\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n title,\n properties,\n required,\n disabled,\n readonly,\n uiSchema,\n fieldPathId,\n schema,\n formData,\n optionalDataControl,\n onAddProperty,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Flex fill column gap='gap.medium'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((element, index) =>\n // Remove the <Grid> if the inner element is hidden as the <Grid>\n // itself would otherwise still take up space.\n element.hidden ? (\n element.content\n ) : (\n <Flex column fill key={index} style={{ marginBottom: '10px' }}>\n {element.content}\n </Flex>\n ),\n )}\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Flex hAlign='end'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n onClick={onAddProperty}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Flex>\n )}\n </Flex>\n </>\n );\n}\n", "import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { AddSquareMultipleRegular, SubtractSquareMultipleRegular } from '@fluentui/react-icons';\n\nimport FluentIconButton from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick } = props;\n if (onAddClick) {\n return (\n <FluentIconButton\n id={id}\n registry={registry}\n icon={<AddSquareMultipleRegular />}\n className='rjsf-add-optional-data'\n onClick={onAddClick}\n title={label}\n size='small'\n appearance='secondary'\n />\n );\n } else if (onRemoveClick) {\n return (\n <FluentIconButton\n id={id}\n registry={registry}\n icon={<SubtractSquareMultipleRegular />}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n size='small'\n appearance='secondary'\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import { FormContextType, getSubmitButtonOptions, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\nimport { Button, makeStyles, tokens } from '@fluentui/react-components';\n\nconst useStyles = makeStyles({\n buttonRow: {\n marginTop: tokens.spacingVerticalL,\n },\n});\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 classes = useStyles();\n const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions(uiSchema);\n if (norender) {\n return null;\n }\n return (\n <div className={classes.buttonRow}>\n <Button appearance='primary' type='submit' {...submitButtonProps}>\n {submitText}\n </Button>\n </div>\n );\n}\n", "import { Flex } from '@fluentui/react-migration-v0-v9';\nimport { Text, Divider, makeStyles } from '@fluentui/react-components';\nimport { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nconst useStyles = makeStyles({\n root: {\n marginTop: '8px',\n marginBottom: '8px',\n },\n});\n\n/** The `TitleField` is the template to use to render the title of a field\n *\n * @param props - The `TitleFieldProps` for this component\n */\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n title,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const classes = useStyles();\n let heading = (\n <Text as='h5' size={600} style={{ marginBlock: 0 }}>\n {title}\n </Text>\n );\n if (optionalDataControl) {\n heading = (\n <Flex>\n <Flex fill>{heading}</Flex>\n <Flex hAlign='end'>{optionalDataControl}</Flex>\n </Flex>\n );\n }\n return (\n <div id={id} className={classes.root}>\n {heading}\n <Divider />\n </div>\n );\n}\n", "import { CSSProperties } from 'react';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n buttonId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n} from '@rjsf/utils';\nimport { Field, Input, makeStyles } from '@fluentui/react-components';\nimport { Flex } from '@fluentui/react-migration-v0-v9';\n\nconst useStyles = makeStyles({\n input: {\n width: '100%',\n },\n grow: {\n flexGrow: 1,\n },\n halfWidth: {\n width: '46%',\n },\n alignEnd: {\n alignSelf: 'flex-end',\n justifyContent: 'flex-end',\n },\n alignCenter: {\n alignSelf: 'center',\n marginTop: '-14px',\n justifyContent: 'flex-end',\n },\n label: {\n marginBottom: '4px',\n },\n});\n\nconst containerTypes = ['object', 'array'];\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WrapIfAdditionalTemplateProps<T, S, F>) {\n const {\n children,\n classNames,\n style,\n disabled,\n id,\n label,\n displayLabel,\n onRemoveProperty,\n onKeyRenameBlur,\n rawDescription,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n } = props;\n const { templates, translateString } = registry;\n const classes = useStyles();\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 hasDescription = !!rawDescription;\n const btnStyle: CSSProperties = {\n flex: 1,\n paddingLeft: 6,\n paddingRight: 6,\n fontWeight: 'bold',\n };\n\n if (!additional) {\n const { type } = schema;\n // Flex grow only non container classes\n const className = containerTypes.includes(type as string) ? classNames : `${classes.grow} ${classNames}`;\n return (\n <div className={className} style={style}>\n {children}\n </div>\n );\n }\n\n return (\n <Flex gap='gap.medium' vAlign='start' key={`${id}-key`} className={classNames} style={style}>\n <div className={classes.halfWidth}>\n <Field label={displayLabel ? keyLabel : undefined} required={required}>\n <Input\n key={label}\n required={required}\n defaultValue={label}\n disabled={disabled || readonly}\n id={`${id}-key`}\n name={`${id}-key`}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n type='text'\n input={{\n className: classes.input,\n }}\n />\n </Field>\n </div>\n <div className={classes.halfWidth}>{children}</div>\n <div className={hasDescription ? classes.alignCenter : classes.alignEnd}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n iconType='default'\n className='rjsf-object-property-remove'\n style={btnStyle}\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n </Flex>\n );\n}\n", "import ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport AddButton from '../AddButton';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate/BaseInputTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\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 CopyButton,\n AddButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n ClearButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n schemaRequiresTrueValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Checkbox } from '@fluentui/react-components';\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n schema,\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label = '',\n hideLabel,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n registry,\n options,\n uiSchema,\n } = props;\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n // Because an unchecked checkbox will cause html5 validation to fail, only add\n // the \"required\" attribute if the field value must be \"true\", due to the\n // \"const\" or \"enum\" keywords\n const required = schemaRequiresTrueValue<S>(schema);\n\n const _onChange = ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => onChange(checked);\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.checked);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.checked);\n const description = options.description ?? schema.description;\n\n return (\n <>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Checkbox\n id={id}\n name={htmlName || id}\n label={label}\n checked={typeof value === 'undefined' ? false : Boolean(value)}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n enumOptionValueDecoder,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n getOptionValueFormat,\n labelValue,\n optionId,\n FormContextType,\n WidgetProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { Label, Checkbox } from '@fluentui/react-components';\nimport { Flex } from '@fluentui/react-migration-v0-v9';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n label,\n hideLabel,\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n required,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, inline, emptyValue } = options;\n const optionValueFormat = getOptionValueFormat(options);\n const checkboxesValues = Array.isArray(value) ? value : [value];\n\n const _onChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n if (checked) {\n onChange(enumOptionsSelectValue<S>(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue<S>(index, checkboxesValues, enumOptions));\n }\n };\n\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n\n return (\n <>\n {labelValue(\n <Label required={required} htmlFor={id}>\n {label || undefined}\n </Label>,\n hideLabel,\n )}\n <Flex column={!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 return (\n <Checkbox\n key={index}\n id={optionId(id, index)}\n name={htmlName || id}\n label={option.label}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n })}\n </Flex>\n </>\n );\n}\n", "import { FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n enumOptionsIndexForValue,\n getOptionValueFormat,\n labelValue,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Label, Radio, RadioGroup, RadioGroupOnChangeData } from '@fluentui/react-components';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n htmlName,\n options,\n value,\n required,\n disabled,\n readonly,\n label,\n hideLabel,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue, inline } = options;\n const optionValueFormat = getOptionValueFormat(options);\n\n const _onChange = (_: any, data: RadioGroupOnChangeData) =>\n onChange(enumOptionValueDecoder<S>(data.value, enumOptions, optionValueFormat, emptyValue));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionValueDecoder<S>(target && target.value, enumOptions, optionValueFormat, emptyValue));\n\n const selectedIndex = enumOptionsIndexForValue<S>(value, enumOptions) ?? undefined;\n\n return (\n <>\n {labelValue(\n <Label required={required} htmlFor={id}>\n {label || undefined}\n </Label>,\n hideLabel,\n )}\n <RadioGroup\n id={id}\n name={htmlName || id}\n layout={inline ? 'horizontal' : 'vertical'}\n value={selectedIndex as string | undefined}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <Radio\n id={optionId(id, index)}\n label={option.label}\n value={enumOptionValueEncoder(option.value, index, optionValueFormat)}\n key={index}\n disabled={disabled || itemDisabled || readonly}\n />\n );\n })}\n </RadioGroup>\n </>\n );\n}\n", "import { FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n rangeSpec,\n} from '@rjsf/utils';\nimport { Label, Slider, SliderOnChangeData } from '@fluentui/react-components';\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, data: SliderOnChangeData) => {\n onChange(data.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 <Label required={required} htmlFor={id}>\n {label || undefined}\n </Label>,\n hideLabel,\n )}\n <Slider\n disabled={disabled || readonly}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n {...sliderProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import {\n ariaDescribedByIds,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n enumOptionsIndexForValue,\n getOptionValueFormat,\n FormContextType,\n labelValue,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Dropdown, Field, Option } from '@fluentui/react-components';\nimport { OptionOnSelectData } from '@fluentui/react-combobox';\n\nfunction getValue(data: OptionOnSelectData, multiple: boolean) {\n if (multiple) {\n return data.selectedOptions;\n }\n return data.selectedOptions[0];\n}\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nfunction SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n htmlName,\n options,\n label,\n hideLabel,\n value,\n required,\n disabled,\n readonly,\n multiple = false,\n autofocus = false,\n rawErrors = [],\n onChange,\n onBlur,\n onFocus,\n schema,\n placeholder,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;\n const optionValueFormat = getOptionValueFormat(options);\n\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n let selectedIndexesAsArray: string[] = [];\n\n if (typeof selectedIndexes === 'string') {\n selectedIndexesAsArray = [selectedIndexes];\n } else if (Array.isArray(selectedIndexes)) {\n selectedIndexesAsArray = selectedIndexes.map((index) => String(index));\n }\n\n const dropdownValue = selectedIndexesAsArray\n .map((index) => (enumOptions ? enumOptions[Number(index)].label : undefined))\n .join(', ');\n\n const _onBlur = () => onBlur(id, selectedIndexes);\n const _onFocus = () => onFocus(id, selectedIndexes);\n const _onChange = (_: any, data: OptionOnSelectData) => {\n const newValue = getValue(data, multiple);\n return onChange(enumOptionValueDecoder<S>(newValue, enumOptions, optionValueFormat, optEmptyVal));\n };\n const showPlaceholderOption = !multiple && schema.default === undefined;\n\n return (\n <Field\n label={labelValue(label, hideLabel)}\n validationState={rawErrors.length ? 'error' : undefined}\n required={required}\n >\n <Dropdown\n id={id}\n name={htmlName || id}\n multiselect={multiple}\n className='form-control'\n value={dropdownValue}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n onBlur={_onBlur}\n onFocus={_onFocus}\n onOptionSelect={_onChange}\n selectedOptions={selectedIndexesAsArray}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {showPlaceholderOption && <Option value=''>{placeholder || ''}</Option>}\n {Array.isArray(enumOptions) &&\n enumOptions.map(({ value, label }, i) => {\n const disabled = enumDisabled && enumDisabled.indexOf(value) !== -1;\n return (\n <Option key={i} value={enumOptionValueEncoder(value, i, optionValueFormat)} disabled={disabled}>\n {label}\n </Option>\n );\n })}\n </Dropdown>\n </Field>\n );\n}\n\nexport default SelectWidget;\n", "import { Label, Textarea, makeStyles } from '@fluentui/react-components';\nimport {\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n ariaDescribedByIds,\n labelValue,\n} from '@rjsf/utils';\nimport { ChangeEvent, FocusEvent } from 'react';\n\nconst useStyles = makeStyles({\n label: {\n paddingTop: '2px',\n paddingBottom: '2px',\n marginBottom: '2px',\n },\n});\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 {\n id,\n htmlName,\n placeholder,\n required,\n readonly,\n disabled,\n value,\n label,\n hideLabel,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n } = props;\n const classes = useStyles();\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = ({ target }: FocusEvent<HTMLTextAreaElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLTextAreaElement>) => onFocus(id, target && target.value);\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 (\n <>\n {labelValue(\n <Label htmlFor={id} required={required} disabled={disabled} className={classes.label}>\n {label}\n </Label>,\n hideLabel,\n )}\n <Textarea\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n value={value || value === 0 ? value : ''}\n onChange={onChangeOverride || _onChange}\n onFocus={_onFocus}\n onBlur={_onBlur}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n rows={rows}\n />\n </>\n );\n}\n", "import 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';\nimport { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n", "import { ThemeProps } from '@rjsf/core';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 { FluentProvider, RendererProvider, createDOMRenderer, teamsLightTheme } from '@fluentui/react-components';\nimport { ReactNode, useMemo } from 'react';\n\nconst FluentWrapper = (props: { children: ReactNode; targetDocument?: HTMLDocument }) => {\n const { children, targetDocument } = props;\n const renderer = useMemo(() => createDOMRenderer(targetDocument), [targetDocument]);\n\n return (\n <RendererProvider renderer={renderer} targetDocument={targetDocument}>\n <FluentProvider targetDocument={targetDocument} theme={teamsLightTheme}>\n {children}\n </FluentProvider>\n </RendererProvider>\n );\n};\n\nexport const __createFluentUIRCFrameProvider =\n (props: any) =>\n ({ document }: any) => {\n return <FluentWrapper targetDocument={document}>{props.children}</FluentWrapper>;\n };\n", "import FluentForm from './FluentForm';\n\nexport { default as Form, generateForm } from './FluentForm';\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\nexport { __createFluentUIRCFrameProvider } from './FluentUIRCFrameProvider';\n\nexport default FluentForm;\n"],
|
|
5
|
+
"mappings": ";AACA,SAAoB,iBAAiB;;;ACDrC;AAAA,EAGE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,YAAY;AACrB,SAAS,kBAAkB;AA6BvB,SACE,KADF;AA3BJ,IAAM,YAAY,WAAW;AAAA,EAC3B,gBAAgB;AAAA,IACd,iBAAiB;AAAA,MACf,OAAO;AAAA,IACT;AAAA,EACF;AACF,CAAC;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AoB,gBACpC,0BAAAA,MAAC,kBAAe,gBAAgC,OAAO,iBACpD,UACH,GACF;AAEJ;AAEO,IAAM,kCACX,CAAC,UACD,CAAC,EAAE,SAAS,MAAW;AACrB,SAAO,gBAAAA,MAAC,iBAAc,gBAAgB,UAAW,gBAAM,UAAS;AAClE;;;ACZF,IAAO,gBAAQ;",
|
|
6
|
+
"names": ["jsx", "makeStyles", "Flex", "getTemplate", "getUiOptions", "jsx", "jsxs", "useStyles", "AddButton", "makeStyles", "Fragment", "jsx", "jsxs", "useStyles", "ClearButton", "value", "makeStyles", "jsx", "useStyles", "Text", "makeStyles", "shorthands", "tokens", "TranslatableString", "jsx", "jsxs", "useStyles", "Button", "TranslatableString", "jsx", "makeStyles", "tokens", "jsx", "useStyles", "jsx", "Text", "getTemplate", "getUiOptions", "jsx", "jsxs", "WrapIfAdditionalTemplate", "jsx", "makeStyles", "jsx", "jsxs", "useStyles", "Flex", "getTemplate", "getUiOptions", "buttonId", "Fragment", "jsx", "jsxs", "AddButton", "jsx", "Button", "makeStyles", "tokens", "jsx", "useStyles", "Flex", "Text", "makeStyles", "jsx", "jsxs", "useStyles", "buttonId", "TranslatableString", "Field", "Input", "makeStyles", "Flex", "jsx", "jsxs", "useStyles", "RemoveButton", "ariaDescribedByIds", "descriptionId", "getTemplate", "Fragment", "jsx", "jsxs", "ariaDescribedByIds", "labelValue", "Label", "Checkbox", "Flex", "Fragment", "jsx", "jsxs", "ariaDescribedByIds", "enumOptionValueDecoder", "getOptionValueFormat", "labelValue", "optionId", "Label", "Fragment", "jsx", "jsxs", "ariaDescribedByIds", "labelValue", "Label", "Fragment", "jsx", "jsxs", "ariaDescribedByIds", "enumOptionValueDecoder", "enumOptionValueEncoder", "enumOptionsIndexForValue", "getOptionValueFormat", "labelValue", "Field", "jsx", "jsxs", "value", "label", "disabled", "Label", "makeStyles", "ariaDescribedByIds", "labelValue", "Fragment", "jsx", "jsxs", "useStyles", "value", "jsx"]
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ariaDescribedByIds, enumOptionsDeselectValue, enumOptionsIsSelected, enumOptionsSelectValue,
|
|
2
|
+
import { ariaDescribedByIds, enumOptionValueDecoder, enumOptionsDeselectValue, enumOptionsIsSelected, enumOptionsSelectValue, getOptionValueFormat, labelValue, optionId, } from '@rjsf/utils';
|
|
3
3
|
import { Label, Checkbox } from '@fluentui/react-components';
|
|
4
4
|
import { Flex } from '@fluentui/react-migration-v0-v9';
|
|
5
5
|
/** The `CheckboxesWidget` is a widget for rendering checkbox groups.
|
|
@@ -9,6 +9,7 @@ import { Flex } from '@fluentui/react-migration-v0-v9';
|
|
|
9
9
|
*/
|
|
10
10
|
export default function CheckboxesWidget({ label, hideLabel, id, htmlName, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus, }) {
|
|
11
11
|
const { enumOptions, enumDisabled, inline, emptyValue } = options;
|
|
12
|
+
const optionValueFormat = getOptionValueFormat(options);
|
|
12
13
|
const checkboxesValues = Array.isArray(value) ? value : [value];
|
|
13
14
|
const _onChange = (index) => ({ target: { checked } }) => {
|
|
14
15
|
if (checked) {
|
|
@@ -18,8 +19,8 @@ export default function CheckboxesWidget({ label, hideLabel, id, htmlName, disab
|
|
|
18
19
|
onChange(enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
|
-
const _onBlur = ({ target }) => onBlur(id,
|
|
22
|
-
const _onFocus = ({ target }) => onFocus(id,
|
|
22
|
+
const _onBlur = ({ target }) => onBlur(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
23
|
+
const _onFocus = ({ target }) => onFocus(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
23
24
|
return (_jsxs(_Fragment, { children: [labelValue(_jsx(Label, { required: required, htmlFor: id, children: label || undefined }), hideLabel), _jsx(Flex, { column: !inline, children: Array.isArray(enumOptions) &&
|
|
24
25
|
enumOptions.map((option, index) => {
|
|
25
26
|
const checked = enumOptionsIsSelected(option.value, checkboxesValues);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxesWidget.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/CheckboxesWidget.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,
|
|
1
|
+
{"version":3,"file":"CheckboxesWidget.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/CheckboxesWidget.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,UAAU,EACV,QAAQ,GAKT,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAItC,EACA,KAAK,EACL,SAAS,EACT,EAAE,EACF,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,GACc;IACrB,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAClE,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAEhE,MAAM,SAAS,GACb,CAAC,KAAa,EAAE,EAAE,CAClB,C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F,OAAO,CACL,KAAC,QAAQ,IAEP,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,EACvB,IAAI,EAAE,QAAQ,IAAI,EAAE,EACpB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,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,IAVnC,KAAK,CAWV,CACH,CAAC;oBACJ,CAAC,CAAC,GACC,IACN,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ariaDescribedByIds, enumOptionsIndexForValue,
|
|
2
|
+
import { ariaDescribedByIds, enumOptionValueDecoder, enumOptionValueEncoder, enumOptionsIndexForValue, getOptionValueFormat, labelValue, optionId, } from '@rjsf/utils';
|
|
3
3
|
import { Label, Radio, RadioGroup } from '@fluentui/react-components';
|
|
4
4
|
/** The `RadioWidget` is a widget for rendering a radio group.
|
|
5
5
|
* It is typically used with a string property constrained with enum options.
|
|
@@ -9,14 +9,15 @@ import { Label, Radio, RadioGroup } from '@fluentui/react-components';
|
|
|
9
9
|
export default function RadioWidget({ id, htmlName, options, value, required, disabled, readonly, label, hideLabel, onChange, onBlur, onFocus, }) {
|
|
10
10
|
var _a;
|
|
11
11
|
const { enumOptions, enumDisabled, emptyValue, inline } = options;
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
12
|
+
const optionValueFormat = getOptionValueFormat(options);
|
|
13
|
+
const _onChange = (_, data) => onChange(enumOptionValueDecoder(data.value, enumOptions, optionValueFormat, emptyValue));
|
|
14
|
+
const _onBlur = ({ target }) => onBlur(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
15
|
+
const _onFocus = ({ target }) => onFocus(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
15
16
|
const selectedIndex = (_a = enumOptionsIndexForValue(value, enumOptions)) !== null && _a !== void 0 ? _a : undefined;
|
|
16
17
|
return (_jsxs(_Fragment, { children: [labelValue(_jsx(Label, { required: required, htmlFor: id, children: label || undefined }), hideLabel), _jsx(RadioGroup, { id: id, name: htmlName || id, layout: inline ? 'horizontal' : 'vertical', value: selectedIndex, onChange: _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id), children: Array.isArray(enumOptions) &&
|
|
17
18
|
enumOptions.map((option, index) => {
|
|
18
19
|
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
|
|
19
|
-
return (_jsx(Radio, { id: optionId(id, index), label: option.label, value:
|
|
20
|
+
return (_jsx(Radio, { id: optionId(id, index), label: option.label, value: enumOptionValueEncoder(option.value, index, optionValueFormat), disabled: disabled || itemDisabled || readonly }, index));
|
|
20
21
|
}) })] }));
|
|
21
22
|
}
|
|
22
23
|
//# sourceMappingURL=RadioWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioWidget.js","sourceRoot":"","sources":["../../src/RadioWidget/RadioWidget.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"RadioWidget.js","sourceRoot":"","sources":["../../src/RadioWidget/RadioWidget.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,UAAU,EACV,QAAQ,GAKT,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAA0B,MAAM,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