@rjsf/fluentui-rc 6.4.2 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.umd.js CHANGED
@@ -624,7 +624,8 @@
624
624
  input: {
625
625
  className: classes.input
626
626
  }
627
- }
627
+ },
628
+ label
628
629
  ) }) }),
629
630
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.halfWidth, children }),
630
631
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: hasDescription ? classes.alignCenter : classes.alignEnd, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -745,6 +746,7 @@
745
746
  onFocus
746
747
  }) {
747
748
  const { enumOptions, enumDisabled, inline, emptyValue } = options;
749
+ const optionValueFormat = utils.getOptionValueFormat(options);
748
750
  const checkboxesValues = Array.isArray(value) ? value : [value];
749
751
  const _onChange = (index) => ({ target: { checked } }) => {
750
752
  if (checked) {
@@ -753,8 +755,8 @@
753
755
  onChange(utils.enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
754
756
  }
755
757
  };
756
- const _onBlur = ({ target }) => onBlur(id, utils.enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
757
- const _onFocus = ({ target }) => onFocus(id, utils.enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
758
+ const _onBlur = ({ target }) => onBlur(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
759
+ const _onFocus = ({ target }) => onFocus(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
758
760
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
759
761
  utils.labelValue(
760
762
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Label, { required, htmlFor: id, children: label || void 0 }),
@@ -797,9 +799,10 @@
797
799
  onFocus
798
800
  }) {
799
801
  const { enumOptions, enumDisabled, emptyValue, inline } = options;
800
- const _onChange = (_, data) => onChange(utils.enumOptionsValueForIndex(data.value, enumOptions, emptyValue));
801
- const _onBlur = ({ target }) => onBlur(id, utils.enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
802
- const _onFocus = ({ target }) => onFocus(id, utils.enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
802
+ const optionValueFormat = utils.getOptionValueFormat(options);
803
+ const _onChange = (_, data) => onChange(utils.enumOptionValueDecoder(data.value, enumOptions, optionValueFormat, emptyValue));
804
+ const _onBlur = ({ target }) => onBlur(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
805
+ const _onFocus = ({ target }) => onFocus(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
803
806
  const selectedIndex = utils.enumOptionsIndexForValue(value, enumOptions) ?? void 0;
804
807
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
805
808
  utils.labelValue(
@@ -824,7 +827,7 @@
824
827
  {
825
828
  id: utils.optionId(id, index),
826
829
  label: option.label,
827
- value: String(index),
830
+ value: utils.enumOptionValueEncoder(option.value, index, optionValueFormat),
828
831
  disabled: disabled || itemDisabled || readonly
829
832
  },
830
833
  index
@@ -886,6 +889,7 @@
886
889
  placeholder
887
890
  }) {
888
891
  const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;
892
+ const optionValueFormat = utils.getOptionValueFormat(options);
889
893
  const selectedIndexes = utils.enumOptionsIndexForValue(value, enumOptions, multiple);
890
894
  let selectedIndexesAsArray = [];
891
895
  if (typeof selectedIndexes === "string") {
@@ -898,7 +902,7 @@
898
902
  const _onFocus = () => onFocus(id, selectedIndexes);
899
903
  const _onChange = (_, data) => {
900
904
  const newValue = getValue(data, multiple);
901
- return onChange(utils.enumOptionsValueForIndex(newValue, enumOptions, optEmptyVal));
905
+ return onChange(utils.enumOptionValueDecoder(newValue, enumOptions, optionValueFormat, optEmptyVal));
902
906
  };
903
907
  const showPlaceholderOption = !multiple && schema.default === void 0;
904
908
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -926,7 +930,7 @@
926
930
  showPlaceholderOption && /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Option, { value: "", children: placeholder || "" }),
927
931
  Array.isArray(enumOptions) && enumOptions.map(({ value: value2, label: label2 }, i) => {
928
932
  const disabled2 = enumDisabled && enumDisabled.indexOf(value2) !== -1;
929
- return /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Option, { value: String(i), disabled: disabled2, children: label2 }, i);
933
+ return /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Option, { value: utils.enumOptionValueEncoder(value2, i, optionValueFormat), disabled: disabled2, children: label2 }, i);
930
934
  })
931
935
  ]
932
936
  }
package/dist/index.cjs CHANGED
@@ -744,7 +744,8 @@ function WrapIfAdditionalTemplate(props) {
744
744
  input: {
745
745
  className: classes.input
746
746
  }
747
- }
747
+ },
748
+ label
748
749
  ) }) }),
749
750
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: classes.halfWidth, children }),
750
751
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: hasDescription ? classes.alignCenter : classes.alignEnd, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
@@ -876,6 +877,7 @@ function CheckboxesWidget({
876
877
  onFocus
877
878
  }) {
878
879
  const { enumOptions, enumDisabled, inline, emptyValue } = options;
880
+ const optionValueFormat = (0, import_utils14.getOptionValueFormat)(options);
879
881
  const checkboxesValues = Array.isArray(value) ? value : [value];
880
882
  const _onChange = (index) => ({ target: { checked } }) => {
881
883
  if (checked) {
@@ -884,8 +886,8 @@ function CheckboxesWidget({
884
886
  onChange((0, import_utils14.enumOptionsDeselectValue)(index, checkboxesValues, enumOptions));
885
887
  }
886
888
  };
887
- const _onBlur = ({ target }) => onBlur(id, (0, import_utils14.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
888
- const _onFocus = ({ target }) => onFocus(id, (0, import_utils14.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
889
+ const _onBlur = ({ target }) => onBlur(id, (0, import_utils14.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
890
+ const _onFocus = ({ target }) => onFocus(id, (0, import_utils14.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
889
891
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
890
892
  (0, import_utils14.labelValue)(
891
893
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_components16.Label, { required, htmlFor: id, children: label || void 0 }),
@@ -933,9 +935,10 @@ function RadioWidget({
933
935
  onFocus
934
936
  }) {
935
937
  const { enumOptions, enumDisabled, emptyValue, inline } = options;
936
- const _onChange = (_, data) => onChange((0, import_utils15.enumOptionsValueForIndex)(data.value, enumOptions, emptyValue));
937
- const _onBlur = ({ target }) => onBlur(id, (0, import_utils15.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
938
- const _onFocus = ({ target }) => onFocus(id, (0, import_utils15.enumOptionsValueForIndex)(target && target.value, enumOptions, emptyValue));
938
+ const optionValueFormat = (0, import_utils15.getOptionValueFormat)(options);
939
+ const _onChange = (_, data) => onChange((0, import_utils15.enumOptionValueDecoder)(data.value, enumOptions, optionValueFormat, emptyValue));
940
+ const _onBlur = ({ target }) => onBlur(id, (0, import_utils15.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
941
+ const _onFocus = ({ target }) => onFocus(id, (0, import_utils15.enumOptionValueDecoder)(target && target.value, enumOptions, optionValueFormat, emptyValue));
939
942
  const selectedIndex = (0, import_utils15.enumOptionsIndexForValue)(value, enumOptions) ?? void 0;
940
943
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
941
944
  (0, import_utils15.labelValue)(
@@ -960,7 +963,7 @@ function RadioWidget({
960
963
  {
961
964
  id: (0, import_utils15.optionId)(id, index),
962
965
  label: option.label,
963
- value: String(index),
966
+ value: (0, import_utils15.enumOptionValueEncoder)(option.value, index, optionValueFormat),
964
967
  disabled: disabled || itemDisabled || readonly
965
968
  },
966
969
  index
@@ -1032,6 +1035,7 @@ function SelectWidget({
1032
1035
  placeholder
1033
1036
  }) {
1034
1037
  const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;
1038
+ const optionValueFormat = (0, import_utils17.getOptionValueFormat)(options);
1035
1039
  const selectedIndexes = (0, import_utils17.enumOptionsIndexForValue)(value, enumOptions, multiple);
1036
1040
  let selectedIndexesAsArray = [];
1037
1041
  if (typeof selectedIndexes === "string") {
@@ -1044,7 +1048,7 @@ function SelectWidget({
1044
1048
  const _onFocus = () => onFocus(id, selectedIndexes);
1045
1049
  const _onChange = (_, data) => {
1046
1050
  const newValue = getValue(data, multiple);
1047
- return onChange((0, import_utils17.enumOptionsValueForIndex)(newValue, enumOptions, optEmptyVal));
1051
+ return onChange((0, import_utils17.enumOptionValueDecoder)(newValue, enumOptions, optionValueFormat, optEmptyVal));
1048
1052
  };
1049
1053
  const showPlaceholderOption = !multiple && schema.default === void 0;
1050
1054
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
@@ -1072,7 +1076,7 @@ function SelectWidget({
1072
1076
  showPlaceholderOption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_components19.Option, { value: "", children: placeholder || "" }),
1073
1077
  Array.isArray(enumOptions) && enumOptions.map(({ value: value2, label: label2 }, i) => {
1074
1078
  const disabled2 = enumDisabled && enumDisabled.indexOf(value2) !== -1;
1075
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_components19.Option, { value: String(i), disabled: disabled2, children: label2 }, i);
1079
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_components19.Option, { value: (0, import_utils17.enumOptionValueEncoder)(value2, i, optionValueFormat), disabled: disabled2, children: label2 }, i);
1076
1080
  })
1077
1081
  ]
1078
1082
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts", "../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"],
4
- "sourcesContent": ["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", "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"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,IAAAA,eAAqC;;;ACDrC,mBAOO;AACP,mCAAqB;AACrB,8BAA2B;AA6BvB;AA3BJ,IAAM,gBAAY,oCAAW;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,gBAAY,2BAAsB,QAAQ;AAChD,QAAM,oCAAgC;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,SACE,6CAAC,qCAAK,QAAO,SACX;AAAA,gDAAC,qCAAK,MAAI,MAAC,WAAW,QAAQ,gBAC3B,UACH;AAAA,IACC,cACC,4CAAC,qCAAK,OAAO,EAAE,YAAY,OAAO,WAAW,eAAe,SAAS,EAAE,GACrE,sDAAC,iCAA+B,GAAG,cAAc,GACnD;AAAA,KAEJ;AAEJ;;;ACjDA,IAAAC,gBAAmG;AACnG,IAAAC,2BAAuB;AACvB,yBAA2B;AAQiE,IAAAC,sBAAA;AAN7E,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,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AA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;ACjBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;A1BXtB,SAAS,eAIuB;AACrC,aAAO,wBAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,qBAAQ,aAAa;;;A2Bd5B,IAAAC,4BAAqF;AACrF,IAAAC,gBAAmC;AAQ7B,IAAAC,uBAAA;AANN,IAAM,gBAAgB,CAAC,UAAkE;AACvF,QAAM,EAAE,UAAU,eAAe,IAAI;AACrC,QAAM,eAAW,uBAAQ,UAAM,6CAAkB,cAAc,GAAG,CAAC,cAAc,CAAC;AAElF,SACE,8CAAC,8CAAiB,UAAoB,gBACpC,wDAAC,4CAAe,gBAAgC,OAAO,2CACpD,UACH,GACF;AAEJ;AAEO,IAAM,kCACX,CAAC,UACD,CAAC,EAAE,SAAS,MAAW;AACrB,SAAO,8CAAC,iBAAc,gBAAgB,UAAW,gBAAM,UAAS;AAClE;;;A5BZF,IAAO,gBAAQ;",
4
+ "sourcesContent": ["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", "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"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,IAAAA,eAAqC;;;ACDrC,mBAOO;AACP,mCAAqB;AACrB,8BAA2B;AA6BvB;AA3BJ,IAAM,gBAAY,oCAAW;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,gBAAY,2BAAsB,QAAQ;AAChD,QAAM,oCAAgC;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAEA,SACE,6CAAC,qCAAK,QAAO,SACX;AAAA,gDAAC,qCAAK,MAAI,MAAC,WAAW,QAAQ,gBAC3B,UACH;AAAA,IACC,cACC,4CAAC,qCAAK,OAAO,EAAE,YAAY,OAAO,WAAW,eAAe,SAAS,EAAE,GACrE,sDAAC,iCAA+B,GAAG,cAAc,GACnD;AAAA,KAEJ;AAEJ;;;ACjDA,IAAAC,gBAAmG;AACnG,I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A,QACtB,OAAO,SAAS,UAAU,IAAI,QAAQ;AAAA,QACtC,UAAU,oBAAoB;AAAA,QAC9B,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,wBAAkB,mCAAmB,IAAI,CAAC,CAAC,OAAO,QAAQ;AAAA,QAC1D;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;;;ACzEO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;ACjBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;A1BXtB,SAAS,eAIuB;AACrC,aAAO,wBAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,qBAAQ,aAAa;;;A2Bd5B,IAAAC,4BAAqF;AACrF,IAAAC,gBAAmC;AAQ7B,IAAAC,uBAAA;AANN,IAAM,gBAAgB,CAAC,UAAkE;AACvF,QAAM,EAAE,UAAU,eAAe,IAAI;AACrC,QAAM,eAAW,uBAAQ,UAAM,6CAAkB,cAAc,GAAG,CAAC,cAAc,CAAC;AAElF,SACE,8CAAC,8CAAiB,UAAoB,gBACpC,wDAAC,4CAAe,gBAAgC,OAAO,2CACpD,UACH,GACF;AAEJ;AAEO,IAAM,kCACX,CAAC,UACD,CAAC,EAAE,SAAS,MAAW;AACrB,SAAO,8CAAC,iBAAc,gBAAgB,UAAW,gBAAM,UAAS;AAClE;;;A5BZF,IAAO,gBAAQ;",
6
6
  "names": ["import_core", "import_utils", "import_react_components", "import_jsx_runtime", "import_react_components", "import_react_migration_v0_v9", "import_utils", "import_jsx_runtime", "useStyles", "AddButton", "import_react_components", "import_utils", "import_jsx_runtime", "useStyles", "ClearButton", "value", "import_react_components", "import_core", "import_jsx_runtime", "useStyles", "import_react_components", "import_utils", "import_jsx_runtime", "useStyles", "import_react_components", "import_react_icons", "import_utils", "import_jsx_runtime", "import_react_components", "import_utils", "import_jsx_runtime", "useStyles", "import_react_components", "import_utils", "import_core", "import_jsx_runtime", "import_react_components", "import_utils", "import_jsx_runtime", "WrapIfAdditionalTemplate", "import_react_migration_v0_v9", "import_jsx_runtime", "import_react_components", "import_jsx_runtime", "useStyles", "import_react_migration_v0_v9", "import_utils", "import_jsx_runtime", "AddButton", "import_react_icons", "import_jsx_runtime", "import_utils", "import_react_components", "import_jsx_runtime", "useStyles", "import_react_migration_v0_v9", "import_react_components", "import_jsx_runtime", "useStyles", "import_utils", "import_react_components", "import_react_migration_v0_v9", "import_jsx_runtime", "useStyles", "RemoveButton", "import_utils", "import_react_components", "import_jsx_runtime", "import_utils", "import_react_components", "import_react_migration_v0_v9", "import_jsx_runtime", "import_utils", "import_react_components", "import_jsx_runtime", "import_utils", "import_react_components", "import_jsx_runtime", "import_utils", "import_react_components", "import_jsx_runtime", "value", "label", "disabled", "import_react_components", "import_utils", "import_jsx_runtime", "useStyles", "value", "import_react_components", "import_react", "import_jsx_runtime"]
7
7
  }