@rjsf/semantic-ui 5.3.0 → 5.4.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/semantic-ui.cjs.development.js +46 -39
- package/dist/semantic-ui.cjs.development.js.map +1 -1
- package/dist/semantic-ui.cjs.production.min.js +1 -1
- package/dist/semantic-ui.cjs.production.min.js.map +1 -1
- package/dist/semantic-ui.esm.js +47 -40
- package/dist/semantic-ui.esm.js.map +1 -1
- package/dist/semantic-ui.umd.development.js +46 -39
- package/dist/semantic-ui.umd.development.js.map +1 -1
- package/dist/semantic-ui.umd.production.min.js +1 -1
- package/dist/semantic-ui.umd.production.min.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-ui.cjs.production.min.js","sources":["../src/AddButton/AddButton.tsx","../src/util.tsx","../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx","../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx","../src/BaseInputTemplate/BaseInputTemplate.tsx","../src/DescriptionField/DescriptionField.tsx","../src/ErrorList/ErrorList.tsx","../src/IconButton/IconButton.tsx","../src/FieldErrorTemplate/FieldErrorTemplate.tsx","../src/FieldHelpTemplate/FieldHelpTemplate.tsx","../src/FieldTemplate/FieldTemplate.tsx","../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx","../src/SubmitButton/SubmitButton.tsx","../src/TitleField/TitleField.tsx","../src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx","../src/Templates/Templates.ts","../src/CheckboxWidget/CheckboxWidget.tsx","../src/CheckboxesWidget/CheckboxesWidget.tsx","../src/RadioWidget/RadioWidget.tsx","../src/RangeWidget/RangeWidget.tsx","../src/SelectWidget/SelectWidget.tsx","../src/TextareaWidget/TextareaWidget.tsx","../src/Widgets/Widgets.tsx","../src/Theme/Theme.ts","../src/SemanticUIForm/SemanticUIForm.ts"],"sourcesContent":["import { Button, Icon, ButtonProps } from 'semantic-ui-react';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\n/** The `AddButton` renders a button that represent the `Add` action on a form\n */\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n color,\n ...props\n}: IconButtonProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Button\n title={translateString(TranslatableString.AddItemButton)}\n color={color as ButtonProps['color']}\n {...props}\n icon\n size='tiny'\n >\n <Icon name='plus' />\n </Button>\n );\n}\n","import { ElementType } from 'react';\nimport {\n UiSchema,\n GenericObjectType,\n getUiOptions,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n UIOptionsType,\n} from '@rjsf/utils';\n\nexport type SemanticPropsTypes<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = {\n formContext?: F;\n uiSchema?: UiSchema<T, S, F>;\n options?: UIOptionsType<T, S, F>;\n defaultSchemaProps?: GenericObjectType;\n defaultContextProps?: GenericObjectType;\n};\n\nexport type SemanticErrorPropsType<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n> = {\n formContext?: F;\n uiSchema?: UiSchema<T, S, F>;\n options?: UIOptionsType<T, S, F>;\n defaultProps?: GenericObjectType;\n};\n\nexport type WrapProps = GenericObjectType & {\n wrap: boolean;\n component?: ElementType;\n};\n\n/**\n * Extract props meant for semantic UI components from props that are\n * passed to Widgets, Templates and Fields.\n * @param {Object} params\n * @param {Object?} params.formContext\n * @param {Object?} params.uiSchema\n * @param {Object?} params.options\n * @param {Object?} params.defaultSchemaProps\n * @param {Object?} params.defaultContextProps\n * @returns {any}\n */\nexport function getSemanticProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n formContext = {} as F,\n uiSchema = {},\n options = {},\n defaultSchemaProps = { fluid: true, inverted: false },\n defaultContextProps = {},\n}: SemanticPropsTypes<T, S, F>) {\n const formContextProps = formContext.semantic;\n const schemaProps = getUiOptions<T, S, F>(uiSchema).semantic;\n const optionProps = options.semantic;\n // formContext props should overide other props\n return Object.assign(\n {},\n { ...defaultSchemaProps },\n { ...defaultContextProps },\n schemaProps,\n optionProps,\n formContextProps\n );\n}\n\n/**\n * Extract error props meant for semantic UI components from props that are\n * passed to Widgets, Templates and Fields.\n * @param {Object} params\n * @param {Object?} params.formContext\n * @param {Object?} params.uiSchema\n * @param {Object?} params.defaultProps\n * @returns {any}\n */\nexport function getSemanticErrorProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>({\n formContext = {} as F,\n uiSchema = {},\n options = {},\n defaultProps = { size: 'small', pointing: 'above' },\n}: SemanticErrorPropsType<T, S, F>) {\n const formContextProps = formContext.semantic && formContext.semantic.errorOptions;\n const semanticOptions: GenericObjectType = getUiOptions<T, S, F>(uiSchema).semantic as GenericObjectType;\n const schemaProps = semanticOptions && semanticOptions.errorOptions;\n const optionProps = options.semantic && (options.semantic as GenericObjectType).errorOptions;\n\n return Object.assign({}, { ...defaultProps }, schemaProps, optionProps, formContextProps);\n}\n\n/**\n * Combine multiple strings containing class names into a single string,\n * removing duplicates. E.g.\n * cleanClassNames('bar', 'baz bar', 'x y ', undefined)\n * // 'bar baz x y'\n * @param {Array} classNameArr\n * @param {Array} omit\n * @returns {string}\n */\nexport function cleanClassNames(classNameArr: Array<string | undefined>, omit: string[] = []) {\n // Split each arg on whitespace, and add it to an array. Skip false-y args\n // like \"\" and undefined.\n const classList = classNameArr\n .filter(Boolean)\n .reduce<string[]>((previous, current) => previous.concat(current!.trim().split(/\\s+/)), []);\n\n // Remove any class names from omit, and make the rest unique before\n // returning them as a string\n return [...new Set(classList.filter((cn) => !omit.includes(cn)))].join(' ');\n}\n\n/**\n *\n * @param {boolean} wrap\n * @param Component\n * @param {Object} props\n * @returns {*}\n * @constructor\n */\nexport function MaybeWrap({ wrap, component: Component = 'div', ...props }: WrapProps) {\n return wrap ? <Component {...props} /> : props.children;\n}\n","import {\n ArrayFieldTemplateItemType,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n} from '@rjsf/utils';\nimport { Button, Grid, Segment } from 'semantic-ui-react';\n\nimport { MaybeWrap } from '../util';\n\nconst gridStyle = (vertical: boolean) => ({\n display: 'grid',\n gridTemplateColumns: `1fr ${vertical ? 65 : 150}px`,\n});\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldTemplateItemType` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: ArrayFieldTemplateItemType<T, S, F>) {\n const {\n children,\n disabled,\n hasToolbar,\n hasCopy,\n hasMoveDown,\n hasMoveUp,\n hasRemove,\n index,\n onCopyIndexClick,\n onDropIndexClick,\n onReorderClick,\n readonly,\n uiSchema,\n registry,\n } = props;\n const { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } = registry.templates.ButtonTemplates;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n // Pull the semantic props out of the uiOptions that were put in via the ArrayFieldTemplate\n const { horizontalButtons = true, wrapItem = false } = uiOptions.semantic as GenericObjectType;\n return (\n <div className='array-item'>\n <MaybeWrap wrap={wrapItem} component={Segment}>\n <Grid style={{ ...gridStyle(!horizontalButtons), alignItems: 'center' }}>\n <Grid.Column width={16} verticalAlign='middle'>\n {children}\n </Grid.Column>\n {hasToolbar && (\n <Grid.Column>\n {(hasMoveUp || hasMoveDown || hasRemove) && (\n <Button.Group size='mini' vertical={!horizontalButtons}>\n {(hasMoveUp || hasMoveDown) && (\n <MoveUpButton\n className='array-item-move-up'\n disabled={disabled || readonly || !hasMoveUp}\n onClick={onReorderClick(index, index - 1)}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {(hasMoveUp || hasMoveDown) && (\n <MoveDownButton\n className='array-item-move-down'\n disabled={disabled || readonly || !hasMoveDown}\n onClick={onReorderClick(index, index + 1)}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {hasCopy && (\n <CopyButton\n className='array-item-copy'\n disabled={disabled || readonly}\n onClick={onCopyIndexClick(index)}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {hasRemove && (\n <RemoveButton\n className='array-item-remove'\n disabled={disabled || readonly}\n onClick={onDropIndexClick(index)}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n </Button.Group>\n )}\n </Grid.Column>\n )}\n </Grid>\n </MaybeWrap>\n </div>\n );\n}\n","import {\n getTemplate,\n getUiOptions,\n isFixedItems,\n ArrayFieldTemplateProps,\n ArrayFieldTemplateItemType,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n UI_OPTIONS_KEY,\n} from '@rjsf/utils';\n\nimport { cleanClassNames, getSemanticProps } from '../util';\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateItemType` 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 uiSchema,\n idSchema,\n canAdd,\n className,\n // classNames, This is not part of the type, so it is likely never passed in\n disabled,\n formContext,\n items,\n onAddClick,\n // options, This is not part of the type, so it is likely never passed in\n readonly,\n required,\n schema,\n title,\n registry,\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext,\n defaultSchemaProps: { horizontalButtons: true, wrapItem: false },\n });\n const { horizontalButtons, wrapItem } = semanticProps;\n const semantic = { horizontalButtons, wrapItem };\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions\n );\n const ArrayFieldItemTemplate = getTemplate<'ArrayFieldItemTemplate', T, S, F>(\n 'ArrayFieldItemTemplate',\n registry,\n uiOptions\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions\n );\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <div className={cleanClassNames([className, isFixedItems<S>(schema) ? '' : 'sortable-form-fields'])}>\n <ArrayFieldTitleTemplate\n idSchema={idSchema}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n />\n <ArrayFieldDescriptionTemplate\n idSchema={idSchema}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <div key={`array-item-list-${idSchema.$id}`}>\n <div className='row array-item-list'>\n {items &&\n items.map(({ key, uiSchema: itemUiSchema = {}, ...props }: ArrayFieldTemplateItemType<T, S, F>) => {\n // Merge in the semantic props from the ArrayFieldTemplate into each of the items\n const mergedUiSchema = {\n ...itemUiSchema,\n [UI_OPTIONS_KEY]: {\n ...itemUiSchema[UI_OPTIONS_KEY],\n semantic,\n },\n };\n return <ArrayFieldItemTemplate key={key} {...props} uiSchema={mergedUiSchema} />;\n })}\n </div>\n {canAdd && (\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\n <AddButton onClick={onAddClick} disabled={disabled || readonly} uiSchema={uiSchema} registry={registry} />\n </div>\n )}\n </div>\n </div>\n );\n}\n","import { ChangeEvent } from 'react';\nimport { Form } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\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 placeholder,\n label,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n uiSchema,\n formContext,\n type,\n registry,\n rawErrors = [],\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext,\n options,\n });\n const { schemaUtils } = registry;\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n const displayLabel = schemaUtils.getDisplayLabel(schema, uiSchema);\n\n return (\n <>\n <Form.Input\n key={id}\n id={id}\n name={id}\n placeholder={placeholder}\n {...inputProps}\n label={displayLabel ? label || schema.title : false}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n list={schema.examples ? examplesId<T>(id) : undefined}\n {...semanticProps}\n value={value || value === 0 ? value : ''}\n error={rawErrors.length > 0}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id, !!schema.examples)}\n />\n {Array.isArray(schema.examples) && (\n <datalist id={examplesId<T>(id)}>\n {(schema.examples as string[])\n .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])\n .map((example) => {\n return <option key={example} value={example} />;\n })}\n </datalist>\n )}\n </>\n );\n}\n","import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 } = props;\n if (!description) {\n return null;\n }\n return (\n <p id={id} className='sui-description'>\n {description}\n </p>\n );\n}\n","import { Message } from 'semantic-ui-react';\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\n/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Message negative>\n <Message.Header>{translateString(TranslatableString.ErrorsLabel)}</Message.Header>\n <Message.List>\n {errors.map((error, index) => (\n <Message.Item key={`error-${index}`}>{error.stack}</Message.Item>\n ))}\n </Message.List>\n </Message>\n );\n}\n","import { Button, ButtonProps } from 'semantic-ui-react';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nfunction IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const { icon, iconType, color, className, uiSchema, registry, ...otherProps } = props;\n return (\n <Button\n icon={icon}\n size={iconType as ButtonProps['size']}\n color={color as ButtonProps['color']}\n className={className}\n {...otherProps}\n />\n );\n}\n\nexport default IconButton;\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon='copy' />;\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon='angle down' />;\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon='angle up' />;\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.RemoveButton)} {...props} icon='trash' />;\n}\n","import { errorId, FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { nanoid } from 'nanoid';\nimport { Label, List } from 'semantic-ui-react';\n\nimport { getSemanticErrorProps } from '../util';\n\nconst DEFAULT_OPTIONS = {\n options: {\n pointing: 'above',\n size: 'small',\n },\n};\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>({ errors, idSchema, uiSchema, registry }: FieldErrorProps<T, S, F>) {\n const { formContext } = registry;\n const options = getSemanticErrorProps<T, S, F>({\n formContext,\n uiSchema,\n defaultProps: DEFAULT_OPTIONS,\n });\n const { pointing, size } = options;\n if (errors && errors.length > 0) {\n const id = errorId<T>(idSchema);\n return (\n <Label id={id} color='red' pointing={pointing || 'above'} size={size || 'small'} basic>\n <List bulleted>\n {errors.map((error) => (\n <List.Item key={nanoid()}>{error}</List.Item>\n ))}\n </List>\n </Label>\n );\n }\n return null;\n}\n","import { Message } from 'semantic-ui-react';\nimport { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: FieldHelpProps<T, S, F>) {\n const { idSchema, help } = props;\n if (help) {\n const id = helpId<T>(idSchema);\n return <Message size='mini' info id={id} content={help} />;\n }\n return null;\n}\n","import {\n FieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n descriptionId,\n getTemplate,\n getUiOptions,\n} from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\nimport { getSemanticProps, MaybeWrap } from '../util';\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 displayLabel,\n label,\n errors,\n help,\n hidden,\n rawDescription,\n registry,\n schema,\n uiSchema,\n ...otherProps\n } = props;\n const semanticProps = getSemanticProps<T, S, F>(otherProps);\n const { wrapLabel, wrapContent } = semanticProps;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions\n );\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n id={id}\n label={label}\n registry={registry}\n schema={schema}\n uiSchema={uiSchema}\n {...otherProps}\n >\n <Form.Group key={id} widths='equal' grouped>\n <MaybeWrap wrap={wrapContent} className='sui-field-content'>\n {children}\n {displayLabel && rawDescription && (\n <MaybeWrap wrap={wrapLabel} className='sui-field-label'>\n {rawDescription && (\n <DescriptionFieldTemplate\n id={descriptionId<T>(id)}\n description={rawDescription}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n </MaybeWrap>\n )}\n {help}\n {errors}\n </MaybeWrap>\n </Form.Group>\n </WrapIfAdditionalTemplate>\n );\n}\n","import { Grid } from 'semantic-ui-react';\nimport {\n FormContextType,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n canExpand,\n descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\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 onAddClick,\n title,\n properties,\n disabled,\n readonly,\n required,\n uiSchema,\n schema,\n formData,\n idSchema,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions\n );\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n const fieldTitle = uiOptions.title || title;\n const fieldDescription = uiOptions.description || description;\n return (\n <>\n {fieldTitle && (\n <TitleFieldTemplate\n id={titleId<T>(idSchema)}\n title={fieldTitle}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {fieldDescription && (\n <DescriptionFieldTemplate\n id={descriptionId<T>(idSchema)}\n description={fieldDescription}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {properties.map((prop) => prop.content)}\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid.Column width={16} verticalAlign='middle'>\n <Grid.Row>\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\n <AddButton\n onClick={onAddClick(schema)}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n </Grid.Row>\n </Grid.Column>\n )}\n </>\n );\n}\n","import { Button } from 'semantic-ui-react';\nimport { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\n/** The `SubmitButton` renders a button that represent the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions<T, S, F>(uiSchema);\n if (norender) {\n return null;\n }\n return (\n <Button type='submit' primary {...submitButtonProps}>\n {submitText}\n </Button>\n );\n}\n","import { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Header } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\nconst DEFAULT_OPTIONS = {\n inverted: false,\n dividing: true,\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 uiSchema,\n}: TitleFieldProps<T, S, F>) {\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n defaultSchemaProps: DEFAULT_OPTIONS,\n });\n if (!title) {\n return null;\n }\n return (\n <Header id={id} {...semanticProps} as='h5'>\n {title}\n </Header>\n );\n}\n","import { FocusEvent } from 'react';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n} from '@rjsf/utils';\nimport { Form, Grid } from 'semantic-ui-react';\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: WrapIfAdditionalTemplateProps<T, S, F>) {\n const {\n children,\n classNames,\n style,\n disabled,\n id,\n label,\n onDropPropertyClick,\n onKeyChange,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n } = props;\n const { templates, translateString } = registry;\n // Button templates are not overridden in the uiSchema\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const { readonlyAsDisabled = true, wrapperStyle } = registry.formContext;\n\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onKeyChange(target.value);\n\n return (\n <div className={classNames} style={style} key={`${id}-key`}>\n <Grid columns='equal'>\n <Grid.Row>\n <Grid.Column className='form-additional'>\n <Form.Group widths='equal' grouped>\n <Form.Input\n className='form-group'\n hasFeedback\n fluid\n htmlFor={`${id}`}\n label={keyLabel}\n required={required}\n defaultValue={label}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={`${id}`}\n name={`${id}`}\n onBlur={!readonly ? handleBlur : undefined}\n style={wrapperStyle}\n type='text'\n ></Form.Input>\n </Form.Group>\n </Grid.Column>\n <Grid.Column className='form-additional' verticalAlign='middle'>\n {children}\n </Grid.Column>\n <Grid.Column>\n <RemoveButton\n iconType='mini'\n className='array-item-remove'\n disabled={disabled || readonly}\n onClick={onDropPropertyClick(label)}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid.Column>\n </Grid.Row>\n </Grid>\n </div>\n );\n}\n","import { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n ObjectFieldTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n","import { FormEvent } from 'react';\nimport {\n ariaDescribedByIds,\n schemaRequiresTrueValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Form, CheckboxProps } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\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 id,\n value,\n disabled,\n readonly,\n label,\n autofocus,\n onChange,\n onBlur,\n options,\n onFocus,\n formContext,\n schema,\n uiSchema,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n options,\n formContext,\n uiSchema,\n defaultSchemaProps: {\n inverted: 'false',\n },\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 const _onChange = (_: FormEvent<HTMLInputElement>, data: CheckboxProps) => onChange && onChange(data.checked);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n const checked = value == 'true' || value == true;\n return (\n <Form.Checkbox\n id={id}\n name={id}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n {...semanticProps}\n checked={typeof value === 'undefined' ? false : checked}\n error={rawErrors.length > 0}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n required={required}\n label={label || ''}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n}\n","import { ChangeEvent } from 'react';\nimport { Form } from 'semantic-ui-react';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n getTemplate,\n optionId,\n titleId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { getSemanticProps } from '../util';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n onChange,\n onBlur,\n onFocus,\n formContext,\n schema,\n uiSchema,\n rawErrors = [],\n registry,\n } = props;\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, options);\n const { enumOptions, enumDisabled, inline } = options;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n const { title } = schema;\n const semanticProps = getSemanticProps<T, S, F>({\n options,\n formContext,\n uiSchema,\n defaultSchemaProps: {\n inverted: 'false',\n },\n });\n const _onChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n // eslint-disable-next-line no-shadow\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 = () => onBlur(id, value);\n const _onFocus = () => onFocus(id, value);\n const inlineOption = inline ? { inline: true } : { grouped: true };\n return (\n <>\n {title && (\n <TitleFieldTemplate id={titleId<T>(id)} title={title} schema={schema} uiSchema={uiSchema} registry={registry} />\n )}\n <Form.Group id={id} name={id} {...inlineOption}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <Form.Checkbox\n id={optionId(id, index)}\n name={id}\n key={index}\n label={option.label}\n {...semanticProps}\n checked={checked}\n error={rawErrors.length > 0}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n })}\n </Form.Group>\n </>\n );\n}\n","import { FormEvent } from 'react';\nimport {\n ariaDescribedByIds,\n enumOptionsIsSelected,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { CheckboxProps, Form, Radio } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>\n) {\n const {\n id,\n value,\n required,\n disabled,\n readonly,\n onChange,\n onBlur,\n onFocus,\n options,\n formContext,\n uiSchema,\n rawErrors = [],\n } = props;\n const { enumOptions, enumDisabled, emptyValue } = options;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext,\n options,\n uiSchema,\n });\n const _onChange = (_: FormEvent<HTMLInputElement>, { value: eventValue }: CheckboxProps) => {\n return onChange(enumOptionsValueForIndex<S>(eventValue!, enumOptions, emptyValue));\n };\n\n const _onBlur = () => onBlur(id, value);\n const _onFocus = () => onFocus(id, value);\n const inlineOption = options.inline ? { inline: true } : { grouped: true };\n return (\n <Form.Group {...inlineOption}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, value);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <Form.Field\n required={required}\n control={Radio}\n id={optionId(id, index)}\n name={id}\n {...semanticProps}\n onFocus={_onFocus}\n onBlur={_onBlur}\n onChange={_onChange}\n label={option.label}\n value={String(index)}\n error={rawErrors.length > 0}\n key={index}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n })}\n </Form.Group>\n );\n}\n","import { ChangeEvent } from 'react';\nimport { Input } from 'semantic-ui-react';\nimport { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps, rangeSpec } from '@rjsf/utils';\nimport { getSemanticProps } from '../util';\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 {\n id,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onBlur,\n onFocus,\n options,\n schema,\n uiSchema,\n formContext,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext,\n options,\n uiSchema,\n defaultSchemaProps: {\n fluid: true,\n },\n });\n\n // eslint-disable-next-line no-shadow\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange && onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <>\n <Input\n id={id}\n key={id}\n name={id}\n type='range'\n required={required}\n disabled={disabled || readonly}\n {...rangeSpec<S>(schema)}\n {...semanticProps}\n value={value || ''}\n error={rawErrors.length > 0}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n <span>{value}</span>\n </>\n );\n}\n","import { FocusEvent, SyntheticEvent } from 'react';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n EnumOptionsType,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n UIOptionsType,\n} from '@rjsf/utils';\nimport map from 'lodash/map';\nimport { Form, DropdownProps } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\n\n/**\n * Returns and creates an array format required for semantic drop down\n * @param {array} enumOptions- array of items for the dropdown\n * @param {array} enumDisabled - array of enum option values to disable\n * @returns {*}\n */\nfunction createDefaultValueOptionsForDropDown<S extends StrictRJSFSchema = RJSFSchema>(\n enumOptions?: EnumOptionsType<S>[],\n enumDisabled?: UIOptionsType['enumDisabled']\n) {\n const disabledOptions = enumDisabled || [];\n const options = map(enumOptions, ({ label, value }, index) => ({\n disabled: disabledOptions.indexOf(value) !== -1,\n key: label,\n text: label,\n value: String(index),\n }));\n return options;\n}\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>\n) {\n const {\n schema,\n uiSchema,\n formContext,\n id,\n options,\n label,\n required,\n disabled,\n readonly,\n value,\n multiple,\n placeholder,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext,\n options,\n defaultSchemaProps: {\n inverted: 'false',\n selection: true,\n fluid: true,\n scrolling: true,\n upward: false,\n },\n });\n const { enumDisabled, enumOptions, emptyValue: optEmptyVal } = options;\n const emptyValue = multiple ? [] : '';\n const dropdownOptions = createDefaultValueOptionsForDropDown<S>(enumOptions, enumDisabled);\n const _onChange = (_: SyntheticEvent<HTMLElement>, { value }: DropdownProps) =>\n onChange(enumOptionsValueForIndex<S>(value as string[], enumOptions, optEmptyVal));\n // eslint-disable-next-line no-shadow\n const _onBlur = (_: FocusEvent<HTMLElement>, { target: { value } }: DropdownProps) =>\n onBlur(id, enumOptionsValueForIndex<S>(value, enumOptions, optEmptyVal));\n const _onFocus = (_: FocusEvent<HTMLElement>, { target: { value } }: DropdownProps) =>\n onFocus(id, enumOptionsValueForIndex<S>(value, enumOptions, optEmptyVal));\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n\n return (\n <Form.Dropdown\n key={id}\n id={id}\n name={id}\n label={label || schema.title}\n multiple={typeof multiple === 'undefined' ? false : multiple}\n value={typeof value === 'undefined' ? emptyValue : selectedIndexes}\n error={rawErrors.length > 0}\n disabled={disabled}\n placeholder={placeholder}\n {...semanticProps}\n required={required}\n autoFocus={autofocus}\n readOnly={readonly}\n options={dropdownOptions}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n}\n","import { ChangeEvent } from 'react';\nimport { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\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 placeholder,\n value,\n required,\n disabled,\n autofocus,\n label,\n readonly,\n onBlur,\n onFocus,\n onChange,\n options,\n schema,\n uiSchema,\n formContext,\n registry,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext,\n options,\n defaultSchemaProps: { inverted: 'false' },\n });\n const { schemaUtils } = registry;\n // eslint-disable-next-line no-shadow\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange && onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n const displayLabel = schemaUtils.getDisplayLabel(schema, uiSchema);\n return (\n <Form.TextArea\n id={id}\n key={id}\n name={id}\n label={displayLabel ? label || schema.title : false}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n {...semanticProps}\n value={value || ''}\n error={rawErrors.length > 0}\n rows={options.rows || 5}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n}\n","import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n","import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ThemeProps } from '@rjsf/core';\nimport { Form as SuiForm } from 'semantic-ui-react';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n _internalFormWrapper: SuiForm,\n };\n}\n\nexport default generateTheme();\n","import { ComponentType } from 'react';\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n"],"names":["AddButton","_ref","registry","color","props","_objectWithoutPropertiesLoose","_excluded","_jsx","jsx","Button","_extends","title","translateString","TranslatableString","AddItemButton","icon","size","children","Icon","name","getSemanticProps","_ref$formContext","formContext","_ref$uiSchema","uiSchema","_ref$options","options","_ref$defaultSchemaPro","defaultSchemaProps","fluid","inverted","_ref$defaultContextPr","defaultContextProps","formContextProps","semantic","schemaProps","getUiOptions","optionProps","Object","assign","cleanClassNames","classNameArr","omit","classList","filter","Boolean","reduce","previous","current","concat","trim","split","Set","cn","includes","join","MaybeWrap","_ref3","wrap","_ref3$component","component","Component","ArrayFieldItemTemplate","vertical","disabled","hasToolbar","hasCopy","hasMoveDown","hasMoveUp","hasRemove","index","onCopyIndexClick","onDropIndexClick","onReorderClick","readonly","_registry$templates$B","templates","ButtonTemplates","CopyButton","MoveDownButton","MoveUpButton","RemoveButton","_uiOptions$semantic","_uiOptions$semantic$h","horizontalButtons","_uiOptions$semantic$w","wrapItem","className","Segment","_jsxs","jsxs","Grid","style","display","gridTemplateColumns","alignItems","Column","width","verticalAlign","Group","onClick","ArrayFieldTemplate","idSchema","canAdd","items","onAddClick","required","schema","semanticProps","uiOptions","ArrayFieldDescriptionTemplate","getTemplate","ArrayFieldTitleTemplate","isFixedItems","description","map","_extends2","key","itemUiSchema","mergedUiSchema","UI_OPTIONS_KEY","marginTop","position","textAlign","$id","BaseInputTemplate","id","placeholder","label","value","onChange","onChangeOverride","onBlur","onFocus","autofocus","_props$rawErrors","rawErrors","inputProps","getInputProps","type","displayLabel","schemaUtils","getDisplayLabel","_Fragment","Form","Input","autoFocus","list","examples","examplesId","undefined","error","length","target","emptyValue","ariaDescribedByIds","Array","isArray","example","DescriptionField","ErrorList","errors","Message","negative","Header","ErrorsLabel","List","Item","stack","IconButton","iconType","otherProps","DEFAULT_OPTIONS","pointing","FieldErrorTemplate","_ref2","_ref2$formContext","_ref2$uiSchema","_ref2$options","_ref2$defaultProps","defaultProps","errorOptions","semanticOptions","getSemanticErrorProps","errorId","Label","basic","bulleted","nanoid","FieldHelpTemplate","help","helpId","info","content","FieldTemplate","classNames","hidden","rawDescription","wrapLabel","wrapContent","WrapIfAdditionalTemplate","DescriptionFieldTemplate","widths","grouped","descriptionId","ObjectFieldTemplate","properties","formData","TitleFieldTemplate","fieldTitle","fieldDescription","titleId","prop","canExpand","Row","SubmitButton","_getSubmitButtonOptio","getSubmitButtonOptions","_getSubmitButtonOptio2","norender","primary","submitText","dividing","TitleField","as","onDropPropertyClick","onKeyChange","keyLabel","KeyLabel","_registry$formContext","_registry$formContext2","readonlyAsDisabled","ADDITIONAL_PROPERTY_FLAG","columns","hasFeedback","htmlFor","defaultValue","wrapperStyle","generateTemplates","ErrorListTemplate","Templates","CheckboxWidget","schemaRequiresTrueValue","Checkbox","checked","_","data","CheckboxesWidget","enumOptions","enumDisabled","inline","checkboxesValues","_onChange","enumOptionsSelectValue","enumOptionsDeselectValue","_onBlur","_onFocus","inlineOption","option","enumOptionsIsSelected","itemDisabled","indexOf","optionId","RadioWidget","enumOptionsValueForIndex","_createElement","Field","control","Radio","String","RangeWidget","rangeSpec","SelectWidget","multiple","selection","scrolling","upward","optEmptyVal","dropdownOptions","disabledOptions","text","createDefaultValueOptionsForDropDown","selectedIndexes","enumOptionsIndexForValue","Dropdown","readOnly","_ref4","TextareaWidget","TextArea","rows","generateWidgets","Widgets","generateTheme","widgets","_internalFormWrapper","SuiForm","Theme","generateForm","withTheme","SemanticUIForm"],"mappings":"mtBAKwB,SAAAA,EAASC,GAKN,IAHzBC,EAAQD,EAARC,SACAC,EAAKF,EAALE,MACGC,EAAKC,EAAAJ,EAAAK,GAGR,OACEC,EAAAC,IAACC,EAAMA,OAAAC,EAAA,CACLC,OAAOC,EAHiBV,EAApBU,iBAGmBC,EAAkBA,mBAACC,eAC1CX,MAAOA,GACHC,EAAK,CACTW,MAAI,EACJC,KAAK,OAELC,SAAAV,EAAAC,IAACU,OAAI,CAACC,KAAK,WAGjB,4BCuBgB,SAAAC,EAAgBnB,GAMF,IAAAoB,EAAApB,EAL5BqB,YAAqBC,EAAAtB,EACrBuB,SAAaC,EAAAxB,EACbyB,QAAAA,OAAO,IAAAD,EAAG,CAAE,EAAAA,EAAAE,EAAA1B,EACZ2B,mBAAAA,OAAqB,IAAHD,EAAG,CAAEE,OAAO,EAAMC,UAAU,GAAOH,EAAAI,EAAA9B,EACrD+B,oBAAAA,OAAmB,IAAAD,EAAG,CAAA,EAAEA,EAElBE,QANK,IAAAZ,EAAG,CAAO,EAAAA,GAMgBa,SAC/BC,EAAcC,EAAAA,kBANZ,IAAAb,EAAG,CAAE,EAAAA,GAMuCW,SAC9CG,EAAcX,EAAQQ,SAE5B,OAAOI,OAAOC,OACZ,CAAE,E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AoB,CAAEE,SAAU,WAQ5B8G,EANkB1I,EAAhB2I,YAMyBC,gBAAgBnC,EAAQnF,GACzD,OACEjB,MAACyI,EAAAA,KAAKgJ,SAAQtR,EAAA,CACZoH,GAAIA,EAEJ3G,KAAM2G,EACNE,QAAOY,IAAeZ,GAASrB,EAAOhG,OACtCoH,YAAaA,EACbmB,UAAWZ,EACX5B,SAAUA,EACV1C,SAAUA,GAAYU,GAClBkC,EAAa,CACjBqB,MAAOA,GAAS,GAChBsB,MAAOf,EAAUgB,OAAS,EAC1ByI,KAAMvQ,EAAQuQ,MAAQ,EACtB/J,SAnBc,SAAHjI,GAAA,IAAgBgI,EAAKhI,EAAfwJ,OAAUxB,MAAK,OAClCC,GAAYA,EAAmB,KAAVD,EAAevG,EAAQgI,WAAazB,EAAM,EAmB7DG,OAlBY,WAAH,OAASA,GAAUA,EAAON,EAAIG,EAAM,EAmB7CI,QAlBa,WAAH,OAASA,GAAWA,EAAQP,EAAIG,EAAM,EAmB9B,mBAAA0B,EAAkBA,mBAAI7B,KAdnCA,EAiBX,UCxDgBoK,IAKd,MAAO,CACLjD,eAAAA,EACAM,iBAAAA,EACAgB,YAAAA,EACAO,YAAAA,EACAE,aAAAA,EACAe,eAAAA,EAEJ,CAEA,IAAAI,EAAeD,aCjBCE,IAKd,MAAO,CACLxN,UAAWkK,IACXuD,QAASH,IACTI,qBAAsBC,EAAAA,KAE1B,CAEA,IAAAC,EAAeJ,aCbCK,IAKd,OAAOC,EAASA,UAAUN,IAC5B,CAEA,IAAAO,EAAeF"}
|
|
1
|
+
{"version":3,"file":"semantic-ui.cjs.production.min.js","sources":["../src/AddButton/AddButton.tsx","../src/util.tsx","../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx","../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx","../src/BaseInputTemplate/BaseInputTemplate.tsx","../src/DescriptionField/DescriptionField.tsx","../src/ErrorList/ErrorList.tsx","../src/IconButton/IconButton.tsx","../src/FieldErrorTemplate/FieldErrorTemplate.tsx","../src/FieldHelpTemplate/FieldHelpTemplate.tsx","../src/FieldTemplate/FieldTemplate.tsx","../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx","../src/SubmitButton/SubmitButton.tsx","../src/TitleField/TitleField.tsx","../src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx","../src/Templates/Templates.ts","../src/CheckboxWidget/CheckboxWidget.tsx","../src/CheckboxesWidget/CheckboxesWidget.tsx","../src/RadioWidget/RadioWidget.tsx","../src/RangeWidget/RangeWidget.tsx","../src/SelectWidget/SelectWidget.tsx","../src/TextareaWidget/TextareaWidget.tsx","../src/Widgets/Widgets.tsx","../src/Theme/Theme.ts","../src/SemanticUIForm/SemanticUIForm.ts"],"sourcesContent":["import { Button, Icon, ButtonProps } from 'semantic-ui-react';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\n/** The `AddButton` renders a button that represent the `Add` action on a form\n */\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n color,\n ...props\n}: IconButtonProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Button\n title={translateString(TranslatableString.AddItemButton)}\n color={color as ButtonProps['color']}\n {...props}\n icon\n size='tiny'\n >\n <Icon name='plus' />\n </Button>\n );\n}\n","import { ElementType } from 'react';\nimport {\n UiSchema,\n GenericObjectType,\n getUiOptions,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n UIOptionsType,\n} from '@rjsf/utils';\n\nexport type SemanticPropsTypes<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = {\n formContext?: F;\n uiSchema?: UiSchema<T, S, F>;\n options?: UIOptionsType<T, S, F>;\n defaultSchemaProps?: GenericObjectType;\n defaultContextProps?: GenericObjectType;\n};\n\nexport type SemanticErrorPropsType<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n> = {\n formContext?: F;\n uiSchema?: UiSchema<T, S, F>;\n options?: UIOptionsType<T, S, F>;\n defaultProps?: GenericObjectType;\n};\n\nexport type WrapProps = GenericObjectType & {\n wrap: boolean;\n component?: ElementType;\n};\n\n/**\n * Extract props meant for semantic UI components from props that are\n * passed to Widgets, Templates and Fields.\n * @param {Object} params\n * @param {Object?} params.formContext\n * @param {Object?} params.uiSchema\n * @param {Object?} params.options\n * @param {Object?} params.defaultSchemaProps\n * @param {Object?} params.defaultContextProps\n * @returns {any}\n */\nexport function getSemanticProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n formContext = {} as F,\n uiSchema = {},\n options = {},\n defaultSchemaProps = { fluid: true, inverted: false },\n defaultContextProps = {},\n}: SemanticPropsTypes<T, S, F>) {\n const formContextProps = formContext.semantic;\n const schemaProps = getUiOptions<T, S, F>(uiSchema).semantic;\n const optionProps = options.semantic;\n // formContext props should overide other props\n return Object.assign(\n {},\n { ...defaultSchemaProps },\n { ...defaultContextProps },\n schemaProps,\n optionProps,\n formContextProps\n );\n}\n\n/**\n * Extract error props meant for semantic UI components from props that are\n * passed to Widgets, Templates and Fields.\n * @param {Object} params\n * @param {Object?} params.formContext\n * @param {Object?} params.uiSchema\n * @param {Object?} params.defaultProps\n * @returns {any}\n */\nexport function getSemanticErrorProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>({\n formContext = {} as F,\n uiSchema = {},\n options = {},\n defaultProps = { size: 'small', pointing: 'above' },\n}: SemanticErrorPropsType<T, S, F>) {\n const formContextProps = formContext.semantic && formContext.semantic.errorOptions;\n const semanticOptions: GenericObjectType = getUiOptions<T, S, F>(uiSchema).semantic as GenericObjectType;\n const schemaProps = semanticOptions && semanticOptions.errorOptions;\n const optionProps = options.semantic && (options.semantic as GenericObjectType).errorOptions;\n\n return Object.assign({}, { ...defaultProps }, schemaProps, optionProps, formContextProps);\n}\n\n/**\n * Combine multiple strings containing class names into a single string,\n * removing duplicates. E.g.\n * cleanClassNames('bar', 'baz bar', 'x y ', undefined)\n * // 'bar baz x y'\n * @param {Array} classNameArr\n * @param {Array} omit\n * @returns {string}\n */\nexport function cleanClassNames(classNameArr: Array<string | undefined>, omit: string[] = []) {\n // Split each arg on whitespace, and add it to an array. Skip false-y args\n // like \"\" and undefined.\n const classList = classNameArr\n .filter(Boolean)\n .reduce<string[]>((previous, current) => previous.concat(current!.trim().split(/\\s+/)), []);\n\n // Remove any class names from omit, and make the rest unique before\n // returning them as a string\n return [...new Set(classList.filter((cn) => !omit.includes(cn)))].join(' ');\n}\n\n/**\n *\n * @param {boolean} wrap\n * @param Component\n * @param {Object} props\n * @returns {*}\n * @constructor\n */\nexport function MaybeWrap({ wrap, component: Component = 'div', ...props }: WrapProps) {\n return wrap ? <Component {...props} /> : props.children;\n}\n","import {\n ArrayFieldTemplateItemType,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n getUiOptions,\n} from '@rjsf/utils';\nimport { Button, Grid, Segment } from 'semantic-ui-react';\n\nimport { MaybeWrap } from '../util';\n\nconst gridStyle = (vertical: boolean) => ({\n display: 'grid',\n gridTemplateColumns: `1fr ${vertical ? 65 : 150}px`,\n});\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldTemplateItemType` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: ArrayFieldTemplateItemType<T, S, F>) {\n const {\n children,\n disabled,\n hasToolbar,\n hasCopy,\n hasMoveDown,\n hasMoveUp,\n hasRemove,\n index,\n onCopyIndexClick,\n onDropIndexClick,\n onReorderClick,\n readonly,\n uiSchema,\n registry,\n } = props;\n const { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } = registry.templates.ButtonTemplates;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n // Pull the semantic props out of the uiOptions that were put in via the ArrayFieldTemplate\n const { horizontalButtons = true, wrapItem = false } = uiOptions.semantic as GenericObjectType;\n return (\n <div className='array-item'>\n <MaybeWrap wrap={wrapItem} component={Segment}>\n <Grid style={{ ...gridStyle(!horizontalButtons), alignItems: 'center' }}>\n <Grid.Column width={16} verticalAlign='middle'>\n {children}\n </Grid.Column>\n {hasToolbar && (\n <Grid.Column>\n {(hasMoveUp || hasMoveDown || hasRemove) && (\n <Button.Group size='mini' vertical={!horizontalButtons}>\n {(hasMoveUp || hasMoveDown) && (\n <MoveUpButton\n className='array-item-move-up'\n disabled={disabled || readonly || !hasMoveUp}\n onClick={onReorderClick(index, index - 1)}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {(hasMoveUp || hasMoveDown) && (\n <MoveDownButton\n className='array-item-move-down'\n disabled={disabled || readonly || !hasMoveDown}\n onClick={onReorderClick(index, index + 1)}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {hasCopy && (\n <CopyButton\n className='array-item-copy'\n disabled={disabled || readonly}\n onClick={onCopyIndexClick(index)}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {hasRemove && (\n <RemoveButton\n className='array-item-remove'\n disabled={disabled || readonly}\n onClick={onDropIndexClick(index)}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n </Button.Group>\n )}\n </Grid.Column>\n )}\n </Grid>\n </MaybeWrap>\n </div>\n );\n}\n","import {\n getTemplate,\n getUiOptions,\n isFixedItems,\n ArrayFieldTemplateProps,\n ArrayFieldTemplateItemType,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n UI_OPTIONS_KEY,\n} from '@rjsf/utils';\n\nimport { cleanClassNames, getSemanticProps } from '../util';\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateItemType` 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 uiSchema,\n idSchema,\n canAdd,\n className,\n // classNames, This is not part of the type, so it is likely never passed in\n disabled,\n formContext,\n items,\n onAddClick,\n // options, This is not part of the type, so it is likely never passed in\n readonly,\n required,\n schema,\n title,\n registry,\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext,\n defaultSchemaProps: { horizontalButtons: true, wrapItem: false },\n });\n const { horizontalButtons, wrapItem } = semanticProps;\n const semantic = { horizontalButtons, wrapItem };\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions\n );\n const ArrayFieldItemTemplate = getTemplate<'ArrayFieldItemTemplate', T, S, F>(\n 'ArrayFieldItemTemplate',\n registry,\n uiOptions\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions\n );\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <div className={cleanClassNames([className, isFixedItems<S>(schema) ? '' : 'sortable-form-fields'])}>\n <ArrayFieldTitleTemplate\n idSchema={idSchema}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n />\n <ArrayFieldDescriptionTemplate\n idSchema={idSchema}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <div key={`array-item-list-${idSchema.$id}`}>\n <div className='row array-item-list'>\n {items &&\n items.map(({ key, uiSchema: itemUiSchema = {}, ...props }: ArrayFieldTemplateItemType<T, S, F>) => {\n // Merge in the semantic props from the ArrayFieldTemplate into each of the items\n const mergedUiSchema = {\n ...itemUiSchema,\n [UI_OPTIONS_KEY]: {\n ...itemUiSchema[UI_OPTIONS_KEY],\n semantic,\n },\n };\n return <ArrayFieldItemTemplate key={key} {...props} uiSchema={mergedUiSchema} />;\n })}\n </div>\n {canAdd && (\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\n <AddButton onClick={onAddClick} disabled={disabled || readonly} uiSchema={uiSchema} registry={registry} />\n </div>\n )}\n </div>\n </div>\n );\n}\n","import { ChangeEvent } from 'react';\nimport { Form } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\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 placeholder,\n label,\n hideLabel,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n uiSchema,\n formContext,\n type,\n rawErrors = [],\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext,\n options,\n });\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <>\n <Form.Input\n key={id}\n id={id}\n name={id}\n placeholder={placeholder}\n {...inputProps}\n label={labelValue(label || undefined, hideLabel, false)}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n list={schema.examples ? examplesId<T>(id) : undefined}\n {...semanticProps}\n value={value || value === 0 ? value : ''}\n error={rawErrors.length > 0}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id, !!schema.examples)}\n />\n {Array.isArray(schema.examples) && (\n <datalist id={examplesId<T>(id)}>\n {(schema.examples as string[])\n .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])\n .map((example) => {\n return <option key={example} value={example} />;\n })}\n </datalist>\n )}\n </>\n );\n}\n","import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 } = props;\n if (!description) {\n return null;\n }\n return (\n <p id={id} className='sui-description'>\n {description}\n </p>\n );\n}\n","import { Message } from 'semantic-ui-react';\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\n/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Message negative>\n <Message.Header>{translateString(TranslatableString.ErrorsLabel)}</Message.Header>\n <Message.List>\n {errors.map((error, index) => (\n <Message.Item key={`error-${index}`}>{error.stack}</Message.Item>\n ))}\n </Message.List>\n </Message>\n );\n}\n","import { Button, ButtonProps } from 'semantic-ui-react';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nfunction IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const { icon, iconType, color, className, uiSchema, registry, ...otherProps } = props;\n return (\n <Button\n icon={icon}\n size={iconType as ButtonProps['size']}\n color={color as ButtonProps['color']}\n className={className}\n {...otherProps}\n />\n );\n}\n\nexport default IconButton;\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon='copy' />;\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon='angle down' />;\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon='angle up' />;\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: IconButtonProps<T, S, F>\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.RemoveButton)} {...props} icon='trash' />;\n}\n","import { errorId, FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { nanoid } from 'nanoid';\nimport { Label, List } from 'semantic-ui-react';\n\nimport { getSemanticErrorProps } from '../util';\n\nconst DEFAULT_OPTIONS = {\n options: {\n pointing: 'above',\n size: 'small',\n },\n};\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>({ errors, idSchema, uiSchema, registry }: FieldErrorProps<T, S, F>) {\n const { formContext } = registry;\n const options = getSemanticErrorProps<T, S, F>({\n formContext,\n uiSchema,\n defaultProps: DEFAULT_OPTIONS,\n });\n const { pointing, size } = options;\n if (errors && errors.length > 0) {\n const id = errorId<T>(idSchema);\n return (\n <Label id={id} color='red' pointing={pointing || 'above'} size={size || 'small'} basic>\n <List bulleted>\n {errors.map((error) => (\n <List.Item key={nanoid()}>{error}</List.Item>\n ))}\n </List>\n </Label>\n );\n }\n return null;\n}\n","import { Message } from 'semantic-ui-react';\nimport { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: FieldHelpProps<T, S, F>) {\n const { idSchema, help } = props;\n if (help) {\n const id = helpId<T>(idSchema);\n return <Message size='mini' info id={id} content={help} />;\n }\n return null;\n}\n","import {\n FieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n descriptionId,\n getTemplate,\n getUiOptions,\n} from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\nimport { getSemanticProps, MaybeWrap } from '../util';\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 displayLabel,\n label,\n errors,\n help,\n hidden,\n rawDescription,\n registry,\n schema,\n uiSchema,\n ...otherProps\n } = props;\n const semanticProps = getSemanticProps<T, S, F>(otherProps);\n const { wrapLabel, wrapContent } = semanticProps;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions\n );\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n id={id}\n label={label}\n registry={registry}\n schema={schema}\n uiSchema={uiSchema}\n {...otherProps}\n >\n <Form.Group key={id} widths='equal' grouped>\n <MaybeWrap wrap={wrapContent} className='sui-field-content'>\n {children}\n {displayLabel && rawDescription && (\n <MaybeWrap wrap={wrapLabel} className='sui-field-label'>\n {rawDescription && (\n <DescriptionFieldTemplate\n id={descriptionId<T>(id)}\n description={rawDescription}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n </MaybeWrap>\n )}\n {help}\n {errors}\n </MaybeWrap>\n </Form.Group>\n </WrapIfAdditionalTemplate>\n );\n}\n","import { Grid } from 'semantic-ui-react';\nimport {\n FormContextType,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n canExpand,\n descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\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 onAddClick,\n title,\n properties,\n disabled,\n readonly,\n required,\n uiSchema,\n schema,\n formData,\n idSchema,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions\n );\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId<T>(idSchema)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId<T>(idSchema)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {properties.map((prop) => prop.content)}\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid.Column width={16} verticalAlign='middle'>\n <Grid.Row>\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\n <AddButton\n onClick={onAddClick(schema)}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n </Grid.Row>\n </Grid.Column>\n )}\n </>\n );\n}\n","import { Button } from 'semantic-ui-react';\nimport { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\n/** The `SubmitButton` renders a button that represent the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions<T, S, F>(uiSchema);\n if (norender) {\n return null;\n }\n return (\n <Button type='submit' primary {...submitButtonProps}>\n {submitText}\n </Button>\n );\n}\n","import { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Header } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\nconst DEFAULT_OPTIONS = {\n inverted: false,\n dividing: true,\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 uiSchema,\n}: TitleFieldProps<T, S, F>) {\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n defaultSchemaProps: DEFAULT_OPTIONS,\n });\n if (!title) {\n return null;\n }\n return (\n <Header id={id} {...semanticProps} as='h5'>\n {title}\n </Header>\n );\n}\n","import { FocusEvent } from 'react';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n} from '@rjsf/utils';\nimport { Form, Grid } from 'semantic-ui-react';\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: WrapIfAdditionalTemplateProps<T, S, F>) {\n const {\n children,\n classNames,\n style,\n disabled,\n id,\n label,\n onDropPropertyClick,\n onKeyChange,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n } = props;\n const { templates, translateString } = registry;\n // Button templates are not overridden in the uiSchema\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const { readonlyAsDisabled = true, wrapperStyle } = registry.formContext;\n\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onKeyChange(target.value);\n\n return (\n <div className={classNames} style={style} key={`${id}-key`}>\n <Grid columns='equal'>\n <Grid.Row>\n <Grid.Column className='form-additional'>\n <Form.Group widths='equal' grouped>\n <Form.Input\n className='form-group'\n hasFeedback\n fluid\n htmlFor={`${id}`}\n label={keyLabel}\n required={required}\n defaultValue={label}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={`${id}`}\n name={`${id}`}\n onBlur={!readonly ? handleBlur : undefined}\n style={wrapperStyle}\n type='text'\n ></Form.Input>\n </Form.Group>\n </Grid.Column>\n <Grid.Column className='form-additional' verticalAlign='middle'>\n {children}\n </Grid.Column>\n <Grid.Column>\n <RemoveButton\n iconType='mini'\n className='array-item-remove'\n disabled={disabled || readonly}\n onClick={onDropPropertyClick(label)}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid.Column>\n </Grid.Row>\n </Grid>\n </div>\n );\n}\n","import { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n ObjectFieldTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n","import { FormEvent } from 'react';\nimport {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n labelValue,\n schemaRequiresTrueValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Form, CheckboxProps } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\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 id,\n value,\n disabled,\n readonly,\n label = '',\n hideLabel,\n autofocus,\n onChange,\n onBlur,\n options,\n onFocus,\n formContext,\n schema,\n uiSchema,\n rawErrors = [],\n registry,\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n options,\n formContext,\n uiSchema,\n defaultSchemaProps: {\n inverted: 'false',\n },\n });\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 const _onChange = (_: FormEvent<HTMLInputElement>, data: CheckboxProps) => onChange && onChange(data.checked);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n const checked = value == 'true' || value == true;\n const description = options.description ?? schema.description;\n\n return (\n <>\n {!hideLabel && !!description && (\n <DescriptionFieldTemplate\n id={descriptionId<T>(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Form.Checkbox\n id={id}\n name={id}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n {...semanticProps}\n checked={typeof value === 'undefined' ? false : checked}\n error={rawErrors.length > 0}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n required={required}\n label={labelValue(label, hideLabel, false)}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n </>\n );\n}\n","import { ChangeEvent } from 'react';\nimport { Form } from 'semantic-ui-react';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n getTemplate,\n optionId,\n titleId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { getSemanticProps } from '../util';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n label,\n hideLabel,\n onChange,\n onBlur,\n onFocus,\n formContext,\n schema,\n uiSchema,\n rawErrors = [],\n registry,\n } = props;\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, options);\n const { enumOptions, enumDisabled, inline } = options;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n const semanticProps = getSemanticProps<T, S, F>({\n options,\n formContext,\n uiSchema,\n defaultSchemaProps: {\n inverted: 'false',\n },\n });\n const _onChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n // eslint-disable-next-line no-shadow\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 = () => onBlur(id, value);\n const _onFocus = () => onFocus(id, value);\n const inlineOption = inline ? { inline: true } : { grouped: true };\n return (\n <>\n {!hideLabel && !!label && (\n <TitleFieldTemplate id={titleId<T>(id)} title={label} schema={schema} uiSchema={uiSchema} registry={registry} />\n )}\n <Form.Group id={id} name={id} {...inlineOption}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <Form.Checkbox\n id={optionId(id, index)}\n name={id}\n key={index}\n label={option.label}\n {...semanticProps}\n checked={checked}\n error={rawErrors.length > 0}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n })}\n </Form.Group>\n </>\n );\n}\n","import { FormEvent } from 'react';\nimport {\n ariaDescribedByIds,\n enumOptionsIsSelected,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { CheckboxProps, Form, Radio } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>\n) {\n const {\n id,\n value,\n required,\n disabled,\n readonly,\n onChange,\n onBlur,\n onFocus,\n options,\n formContext,\n uiSchema,\n rawErrors = [],\n } = props;\n const { enumOptions, enumDisabled, emptyValue } = options;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext,\n options,\n uiSchema,\n });\n const _onChange = (_: FormEvent<HTMLInputElement>, { value: eventValue }: CheckboxProps) => {\n return onChange(enumOptionsValueForIndex<S>(eventValue!, enumOptions, emptyValue));\n };\n\n const _onBlur = () => onBlur(id, value);\n const _onFocus = () => onFocus(id, value);\n const inlineOption = options.inline ? { inline: true } : { grouped: true };\n return (\n <Form.Group {...inlineOption}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, value);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <Form.Field\n required={required}\n control={Radio}\n id={optionId(id, index)}\n name={id}\n {...semanticProps}\n onFocus={_onFocus}\n onBlur={_onBlur}\n onChange={_onChange}\n label={option.label}\n value={String(index)}\n error={rawErrors.length > 0}\n key={index}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n })}\n </Form.Group>\n );\n}\n","import { ChangeEvent } from 'react';\nimport { Input } from 'semantic-ui-react';\nimport { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps, rangeSpec } from '@rjsf/utils';\nimport { getSemanticProps } from '../util';\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 {\n id,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onBlur,\n onFocus,\n options,\n schema,\n uiSchema,\n formContext,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext,\n options,\n uiSchema,\n defaultSchemaProps: {\n fluid: true,\n },\n });\n\n // eslint-disable-next-line no-shadow\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange && onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <>\n <Input\n id={id}\n key={id}\n name={id}\n type='range'\n required={required}\n disabled={disabled || readonly}\n {...rangeSpec<S>(schema)}\n {...semanticProps}\n value={value || ''}\n error={rawErrors.length > 0}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n <span>{value}</span>\n </>\n );\n}\n","import { FocusEvent, SyntheticEvent } from 'react';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n labelValue,\n EnumOptionsType,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n UIOptionsType,\n} from '@rjsf/utils';\nimport map from 'lodash/map';\nimport { Form, DropdownProps } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\n\n/**\n * Returns and creates an array format required for semantic drop down\n * @param {array} enumOptions- array of items for the dropdown\n * @param {array} enumDisabled - array of enum option values to disable\n * @returns {*}\n */\nfunction createDefaultValueOptionsForDropDown<S extends StrictRJSFSchema = RJSFSchema>(\n enumOptions?: EnumOptionsType<S>[],\n enumDisabled?: UIOptionsType['enumDisabled']\n) {\n const disabledOptions = enumDisabled || [];\n const options = map(enumOptions, ({ label, value }, index) => ({\n disabled: disabledOptions.indexOf(value) !== -1,\n key: label,\n text: label,\n value: String(index),\n }));\n return options;\n}\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>\n) {\n const {\n uiSchema,\n formContext,\n id,\n options,\n label,\n hideLabel,\n required,\n disabled,\n readonly,\n value,\n multiple,\n placeholder,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext,\n options,\n defaultSchemaProps: {\n inverted: 'false',\n selection: true,\n fluid: true,\n scrolling: true,\n upward: false,\n },\n });\n const { enumDisabled, enumOptions, emptyValue: optEmptyVal } = options;\n const emptyValue = multiple ? [] : '';\n const dropdownOptions = createDefaultValueOptionsForDropDown<S>(enumOptions, enumDisabled);\n const _onChange = (_: SyntheticEvent<HTMLElement>, { value }: DropdownProps) =>\n onChange(enumOptionsValueForIndex<S>(value as string[], enumOptions, optEmptyVal));\n // eslint-disable-next-line no-shadow\n const _onBlur = (_: FocusEvent<HTMLElement>, { target: { value } }: DropdownProps) =>\n onBlur(id, enumOptionsValueForIndex<S>(value, enumOptions, optEmptyVal));\n const _onFocus = (_: FocusEvent<HTMLElement>, { target: { value } }: DropdownProps) =>\n onFocus(id, enumOptionsValueForIndex<S>(value, enumOptions, optEmptyVal));\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n\n return (\n <Form.Dropdown\n key={id}\n id={id}\n name={id}\n label={labelValue(label || undefined, hideLabel, false)}\n multiple={typeof multiple === 'undefined' ? false : multiple}\n value={typeof value === 'undefined' ? emptyValue : selectedIndexes}\n error={rawErrors.length > 0}\n disabled={disabled}\n placeholder={placeholder}\n {...semanticProps}\n required={required}\n autoFocus={autofocus}\n readOnly={readonly}\n options={dropdownOptions}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n}\n","import { ChangeEvent } from 'react';\nimport {\n ariaDescribedByIds,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\nimport { getSemanticProps } from '../util';\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 placeholder,\n value,\n required,\n disabled,\n autofocus,\n label,\n hideLabel,\n readonly,\n onBlur,\n onFocus,\n onChange,\n options,\n formContext,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext,\n options,\n defaultSchemaProps: { inverted: 'false' },\n });\n // eslint-disable-next-line no-shadow\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange && onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n return (\n <Form.TextArea\n id={id}\n key={id}\n name={id}\n label={labelValue(label || undefined, hideLabel, false)}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n {...semanticProps}\n value={value || ''}\n error={rawErrors.length > 0}\n rows={options.rows || 5}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n}\n","import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n","import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ThemeProps } from '@rjsf/core';\nimport { Form as SuiForm } from 'semantic-ui-react';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n _internalFormWrapper: SuiForm,\n };\n}\n\nexport default generateTheme();\n","import { ComponentType } from 'react';\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n"],"names":["AddButton","_ref","registry","color","props","_objectWithoutPropertiesLoose","_excluded","_jsx","jsx","Button","_extends","title","translateString","TranslatableString","AddItemButton","icon","size","children","Icon","name","getSemanticProps","_ref$formContext","formContext","_ref$uiSchema","uiSchema","_ref$options","options","_ref$defaultSchemaPro","defaultSchemaProps","fluid","inverted","_ref$defaultContextPr","defaultContextProps","formContextProps","semantic","schemaProps","getUiOptions","optionProps","Object","assign","cleanClassNames","classNameArr","omit","classList","filter","Boolean","reduce","previous","current","concat","trim","split","Set","cn","includes","join","MaybeWrap","_ref3","wrap","_ref3$component","component","Component","ArrayFieldItemTemplate","vertical","disabled","hasToolbar","hasCopy","hasMoveDown","hasMoveUp","hasRemove","index","onCopyIndexClick","onDropIndexClick","onReorderClick","readonly","_registry$templates$B","templates","ButtonTemplates","CopyButton","MoveDownButton","MoveUpButton","RemoveButton","_uiOptions$semantic","_uiOptions$semantic$h","horizontalButtons","_uiOptions$semantic$w","wrapItem","className","Segment","_jsxs","jsxs","Grid","style","display","gridTemplateColumns","alignItems","Column","width","verticalAlign","Group","onClick","ArrayFieldTemplate","idSchema","canAdd","items","onAddClick","required","schema","semanticProps","uiOptions","ArrayFieldDescriptionTemplate","getTemplate","ArrayFieldTitleTemplate","isFixedItems","description","map","_extends2","key","itemUiSchema","mergedUiSchema","UI_OPTIONS_KEY","marginTop","position","textAlign","$id","BaseInputTemplate","id","placeholder","label","hideLabel","value","onChange","onChangeOverride","onBlur","onFocus","autofocus","_props$rawErrors","rawErrors","inputProps","getInputProps","type","_Fragment","Form","Input","labelValue","undefined","autoFocus","list","examples","examplesId","error","length","target","emptyValue","ariaDescribedByIds","Array","isArray","example","DescriptionField","ErrorList","errors","Message","negative","Header","ErrorsLabel","List","Item","stack","IconButton","iconType","otherProps","DEFAULT_OPTIONS","pointing","FieldErrorTemplate","_ref2","_ref2$formContext","_ref2$uiSchema","_ref2$options","_ref2$defaultProps","defaultProps","errorOptions","semanticOptions","getSemanticErrorProps","errorId","Label","basic","bulleted","nanoid","FieldHelpTemplate","help","helpId","info","content","FieldTemplate","classNames","displayLabel","hidden","rawDescription","wrapLabel","wrapContent","WrapIfAdditionalTemplate","DescriptionFieldTemplate","widths","grouped","descriptionId","ObjectFieldTemplate","properties","formData","TitleFieldTemplate","titleId","prop","canExpand","Row","SubmitButton","_getSubmitButtonOptio","getSubmitButtonOptions","_getSubmitButtonOptio2","norender","primary","submitText","dividing","TitleField","as","onDropPropertyClick","onKeyChange","keyLabel","KeyLabel","_registry$formContext","_registry$formContext2","readonlyAsDisabled","ADDITIONAL_PROPERTY_FLAG","columns","hasFeedback","htmlFor","defaultValue","wrapperStyle","generateTemplates","ErrorListTemplate","Templates","CheckboxWidget","_options$description","_props$label","schemaRequiresTrueValue","checked","Checkbox","_","data","CheckboxesWidget","enumOptions","enumDisabled","inline","checkboxesValues","_onChange","enumOptionsSelectValue","enumOptionsDeselectValue","_onBlur","_onFocus","inlineOption","option","enumOptionsIsSelected","itemDisabled","indexOf","optionId","RadioWidget","enumOptionsValueForIndex","_createElement","Field","control","Radio","String","RangeWidget","rangeSpec","SelectWidget","multiple","selection","scrolling","upward","optEmptyVal","dropdownOptions","disabledOptions","text","createDefaultValueOptionsForDropDown","selectedIndexes","enumOptionsIndexForValue","Dropdown","readOnly","_ref4","TextareaWidget","TextArea","rows","generateWidgets","Widgets","generateTheme","widgets","_internalFormWrapper","SuiForm","Theme","generateForm","withTheme","SemanticUIForm"],"mappings":"mtBAKwB,SAAAA,EAASC,GAKN,IAHzBC,EAAQD,EAARC,SACAC,EAAKF,EAALE,MACGC,EAAKC,EAAAJ,EAAAK,GAGR,OACEC,EAAAC,IAACC,EAAMA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MAAOA,GAAS,GAChBoB,MAAOb,EAAUc,OAAS,EAC1B0I,KAAMvQ,EAAQuQ,MAAQ,EACtB9J,SAlBc,SAAHlI,GAAA,IAAgBiI,EAAKjI,EAAfuJ,OAAUtB,MAAK,OAClCC,GAAYA,EAAmB,KAAVD,EAAexG,EAAQ+H,WAAavB,EAAM,EAkB7DG,OAjBY,WAAH,OAASA,GAAUA,EAAOP,EAAII,EAAM,EAkB7CI,QAjBa,WAAH,OAASA,GAAWA,EAAQR,EAAII,EAAM,EAkB9B,mBAAAwB,EAAkBA,mBAAI5B,KAdnCA,EAiBX,UC3DgBoK,IAKd,MAAO,CACLnD,eAAAA,EACAQ,iBAAAA,EACAgB,YAAAA,EACAO,YAAAA,EACAE,aAAAA,EACAe,eAAAA,EAEJ,CAEA,IAAAI,EAAeD,aCjBCE,IAKd,MAAO,CACLxN,UAAWgK,IACXyD,QAASH,IACTI,qBAAsBC,EAAAA,KAE1B,CAEA,IAAAC,EAAeJ,aCbCK,IAKd,OAAOC,EAASA,UAAUN,IAC5B,CAEA,IAAAO,EAAeF"}
|
package/dist/semantic-ui.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { withTheme } from '@rjsf/core';
|
|
2
2
|
import { Button, Icon, Segment, Grid, Form, Message, Label, List, Header, Radio, Input } from 'semantic-ui-react';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
|
-
import { TranslatableString, getUiOptions, getTemplate, isFixedItems, UI_OPTIONS_KEY, getInputProps, examplesId, ariaDescribedByIds, errorId, helpId, descriptionId, titleId, canExpand, getSubmitButtonOptions, ADDITIONAL_PROPERTY_FLAG, schemaRequiresTrueValue, enumOptionsIsSelected, optionId, enumOptionsSelectValue, enumOptionsDeselectValue, enumOptionsValueForIndex, rangeSpec, enumOptionsIndexForValue } from '@rjsf/utils';
|
|
4
|
+
import { TranslatableString, getUiOptions, getTemplate, isFixedItems, UI_OPTIONS_KEY, getInputProps, labelValue, examplesId, ariaDescribedByIds, errorId, helpId, descriptionId, titleId, canExpand, getSubmitButtonOptions, ADDITIONAL_PROPERTY_FLAG, schemaRequiresTrueValue, enumOptionsIsSelected, optionId, enumOptionsSelectValue, enumOptionsDeselectValue, enumOptionsValueForIndex, rangeSpec, enumOptionsIndexForValue } from '@rjsf/utils';
|
|
5
5
|
import { nanoid } from 'nanoid';
|
|
6
6
|
import { createElement } from 'react';
|
|
7
7
|
import map from 'lodash-es/map';
|
|
@@ -336,6 +336,7 @@ function BaseInputTemplate(props) {
|
|
|
336
336
|
var id = props.id,
|
|
337
337
|
placeholder = props.placeholder,
|
|
338
338
|
label = props.label,
|
|
339
|
+
hideLabel = props.hideLabel,
|
|
339
340
|
value = props.value,
|
|
340
341
|
required = props.required,
|
|
341
342
|
readonly = props.readonly,
|
|
@@ -350,7 +351,6 @@ function BaseInputTemplate(props) {
|
|
|
350
351
|
uiSchema = props.uiSchema,
|
|
351
352
|
formContext = props.formContext,
|
|
352
353
|
type = props.type,
|
|
353
|
-
registry = props.registry,
|
|
354
354
|
_props$rawErrors = props.rawErrors,
|
|
355
355
|
rawErrors = _props$rawErrors === void 0 ? [] : _props$rawErrors;
|
|
356
356
|
var inputProps = getInputProps(schema, type, options);
|
|
@@ -359,7 +359,6 @@ function BaseInputTemplate(props) {
|
|
|
359
359
|
formContext: formContext,
|
|
360
360
|
options: options
|
|
361
361
|
});
|
|
362
|
-
var schemaUtils = registry.schemaUtils;
|
|
363
362
|
var _onChange = function _onChange(_ref) {
|
|
364
363
|
var value = _ref.target.value;
|
|
365
364
|
return onChange(value === '' ? options.emptyValue : value);
|
|
@@ -370,14 +369,13 @@ function BaseInputTemplate(props) {
|
|
|
370
369
|
var _onFocus = function _onFocus() {
|
|
371
370
|
return onFocus && onFocus(id, value);
|
|
372
371
|
};
|
|
373
|
-
var displayLabel = schemaUtils.getDisplayLabel(schema, uiSchema);
|
|
374
372
|
return jsxs(Fragment, {
|
|
375
373
|
children: [jsx(Form.Input, _extends({
|
|
376
374
|
id: id,
|
|
377
375
|
name: id,
|
|
378
376
|
placeholder: placeholder
|
|
379
377
|
}, inputProps, {
|
|
380
|
-
label:
|
|
378
|
+
label: labelValue(label || undefined, hideLabel, false),
|
|
381
379
|
required: required,
|
|
382
380
|
autoFocus: autofocus,
|
|
383
381
|
disabled: disabled || readonly,
|
|
@@ -639,19 +637,17 @@ function ObjectFieldTemplate(props) {
|
|
|
639
637
|
var DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, uiOptions);
|
|
640
638
|
// Button templates are not overridden in the uiSchema
|
|
641
639
|
var AddButton = registry.templates.ButtonTemplates.AddButton;
|
|
642
|
-
var fieldTitle = uiOptions.title || title;
|
|
643
|
-
var fieldDescription = uiOptions.description || description;
|
|
644
640
|
return jsxs(Fragment, {
|
|
645
|
-
children: [
|
|
641
|
+
children: [title && jsx(TitleFieldTemplate, {
|
|
646
642
|
id: titleId(idSchema),
|
|
647
|
-
title:
|
|
643
|
+
title: title,
|
|
648
644
|
required: required,
|
|
649
645
|
schema: schema,
|
|
650
646
|
uiSchema: uiSchema,
|
|
651
647
|
registry: registry
|
|
652
|
-
}),
|
|
648
|
+
}), description && jsx(DescriptionFieldTemplate, {
|
|
653
649
|
id: descriptionId(idSchema),
|
|
654
|
-
description:
|
|
650
|
+
description: description,
|
|
655
651
|
schema: schema,
|
|
656
652
|
uiSchema: uiSchema,
|
|
657
653
|
registry: registry
|
|
@@ -843,11 +839,14 @@ var Templates = /*#__PURE__*/generateTemplates();
|
|
|
843
839
|
* @param props - The `WidgetProps` for this component
|
|
844
840
|
*/
|
|
845
841
|
function CheckboxWidget(props) {
|
|
842
|
+
var _options$description;
|
|
846
843
|
var id = props.id,
|
|
847
844
|
value = props.value,
|
|
848
845
|
disabled = props.disabled,
|
|
849
846
|
readonly = props.readonly,
|
|
850
|
-
label = props.label,
|
|
847
|
+
_props$label = props.label,
|
|
848
|
+
label = _props$label === void 0 ? '' : _props$label,
|
|
849
|
+
hideLabel = props.hideLabel,
|
|
851
850
|
autofocus = props.autofocus,
|
|
852
851
|
onChange = props.onChange,
|
|
853
852
|
onBlur = props.onBlur,
|
|
@@ -857,7 +856,8 @@ function CheckboxWidget(props) {
|
|
|
857
856
|
schema = props.schema,
|
|
858
857
|
uiSchema = props.uiSchema,
|
|
859
858
|
_props$rawErrors = props.rawErrors,
|
|
860
|
-
rawErrors = _props$rawErrors === void 0 ? [] : _props$rawErrors
|
|
859
|
+
rawErrors = _props$rawErrors === void 0 ? [] : _props$rawErrors,
|
|
860
|
+
registry = props.registry;
|
|
861
861
|
var semanticProps = getSemanticProps({
|
|
862
862
|
options: options,
|
|
863
863
|
formContext: formContext,
|
|
@@ -866,6 +866,7 @@ function CheckboxWidget(props) {
|
|
|
866
866
|
inverted: 'false'
|
|
867
867
|
}
|
|
868
868
|
});
|
|
869
|
+
var DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, options);
|
|
869
870
|
// Because an unchecked checkbox will cause html5 validation to fail, only add
|
|
870
871
|
// the "required" attribute if the field value must be "true", due to the
|
|
871
872
|
// "const" or "enum" keywords
|
|
@@ -880,21 +881,30 @@ function CheckboxWidget(props) {
|
|
|
880
881
|
return onFocus && onFocus(id, value);
|
|
881
882
|
};
|
|
882
883
|
var checked = value == 'true' || value == true;
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
884
|
+
var description = (_options$description = options.description) != null ? _options$description : schema.description;
|
|
885
|
+
return jsxs(Fragment, {
|
|
886
|
+
children: [!hideLabel && !!description && jsx(DescriptionFieldTemplate, {
|
|
887
|
+
id: descriptionId(id),
|
|
888
|
+
description: description,
|
|
889
|
+
schema: schema,
|
|
890
|
+
uiSchema: uiSchema,
|
|
891
|
+
registry: registry
|
|
892
|
+
}), jsx(Form.Checkbox, _extends({
|
|
893
|
+
id: id,
|
|
894
|
+
name: id,
|
|
895
|
+
disabled: disabled || readonly,
|
|
896
|
+
autoFocus: autofocus
|
|
897
|
+
}, semanticProps, {
|
|
898
|
+
checked: typeof value === 'undefined' ? false : checked,
|
|
899
|
+
error: rawErrors.length > 0,
|
|
900
|
+
onChange: _onChange,
|
|
901
|
+
onBlur: _onBlur,
|
|
902
|
+
onFocus: _onFocus,
|
|
903
|
+
required: required,
|
|
904
|
+
label: labelValue(label, hideLabel, false),
|
|
905
|
+
"aria-describedby": ariaDescribedByIds(id)
|
|
906
|
+
}))]
|
|
907
|
+
});
|
|
898
908
|
}
|
|
899
909
|
|
|
900
910
|
/** The `CheckboxesWidget` is a widget for rendering checkbox groups.
|
|
@@ -909,6 +919,8 @@ function CheckboxesWidget(props) {
|
|
|
909
919
|
value = props.value,
|
|
910
920
|
autofocus = props.autofocus,
|
|
911
921
|
readonly = props.readonly,
|
|
922
|
+
label = props.label,
|
|
923
|
+
hideLabel = props.hideLabel,
|
|
912
924
|
onChange = props.onChange,
|
|
913
925
|
onBlur = props.onBlur,
|
|
914
926
|
onFocus = props.onFocus,
|
|
@@ -923,7 +935,6 @@ function CheckboxesWidget(props) {
|
|
|
923
935
|
enumDisabled = options.enumDisabled,
|
|
924
936
|
inline = options.inline;
|
|
925
937
|
var checkboxesValues = Array.isArray(value) ? value : [value];
|
|
926
|
-
var title = schema.title;
|
|
927
938
|
var semanticProps = getSemanticProps({
|
|
928
939
|
options: options,
|
|
929
940
|
formContext: formContext,
|
|
@@ -955,9 +966,9 @@ function CheckboxesWidget(props) {
|
|
|
955
966
|
grouped: true
|
|
956
967
|
};
|
|
957
968
|
return jsxs(Fragment, {
|
|
958
|
-
children: [
|
|
969
|
+
children: [!hideLabel && !!label && jsx(TitleFieldTemplate, {
|
|
959
970
|
id: titleId(id),
|
|
960
|
-
title:
|
|
971
|
+
title: label,
|
|
961
972
|
schema: schema,
|
|
962
973
|
uiSchema: uiSchema,
|
|
963
974
|
registry: registry
|
|
@@ -1139,12 +1150,12 @@ function createDefaultValueOptionsForDropDown(enumOptions, enumDisabled) {
|
|
|
1139
1150
|
* @param props - The `WidgetProps` for this component
|
|
1140
1151
|
*/
|
|
1141
1152
|
function SelectWidget(props) {
|
|
1142
|
-
var
|
|
1143
|
-
uiSchema = props.uiSchema,
|
|
1153
|
+
var uiSchema = props.uiSchema,
|
|
1144
1154
|
formContext = props.formContext,
|
|
1145
1155
|
id = props.id,
|
|
1146
1156
|
options = props.options,
|
|
1147
1157
|
label = props.label,
|
|
1158
|
+
hideLabel = props.hideLabel,
|
|
1148
1159
|
required = props.required,
|
|
1149
1160
|
disabled = props.disabled,
|
|
1150
1161
|
readonly = props.readonly,
|
|
@@ -1191,7 +1202,7 @@ function SelectWidget(props) {
|
|
|
1191
1202
|
return jsx(Form.Dropdown, _extends({
|
|
1192
1203
|
id: id,
|
|
1193
1204
|
name: id,
|
|
1194
|
-
label: label ||
|
|
1205
|
+
label: labelValue(label || undefined, hideLabel, false),
|
|
1195
1206
|
multiple: typeof multiple === 'undefined' ? false : multiple,
|
|
1196
1207
|
value: typeof value === 'undefined' ? emptyValue : selectedIndexes,
|
|
1197
1208
|
error: rawErrors.length > 0,
|
|
@@ -1221,15 +1232,13 @@ function TextareaWidget(props) {
|
|
|
1221
1232
|
disabled = props.disabled,
|
|
1222
1233
|
autofocus = props.autofocus,
|
|
1223
1234
|
label = props.label,
|
|
1235
|
+
hideLabel = props.hideLabel,
|
|
1224
1236
|
readonly = props.readonly,
|
|
1225
1237
|
onBlur = props.onBlur,
|
|
1226
1238
|
onFocus = props.onFocus,
|
|
1227
1239
|
onChange = props.onChange,
|
|
1228
1240
|
options = props.options,
|
|
1229
|
-
schema = props.schema,
|
|
1230
|
-
uiSchema = props.uiSchema,
|
|
1231
1241
|
formContext = props.formContext,
|
|
1232
|
-
registry = props.registry,
|
|
1233
1242
|
_props$rawErrors = props.rawErrors,
|
|
1234
1243
|
rawErrors = _props$rawErrors === void 0 ? [] : _props$rawErrors;
|
|
1235
1244
|
var semanticProps = getSemanticProps({
|
|
@@ -1239,7 +1248,6 @@ function TextareaWidget(props) {
|
|
|
1239
1248
|
inverted: 'false'
|
|
1240
1249
|
}
|
|
1241
1250
|
});
|
|
1242
|
-
var schemaUtils = registry.schemaUtils;
|
|
1243
1251
|
// eslint-disable-next-line no-shadow
|
|
1244
1252
|
var _onChange = function _onChange(_ref) {
|
|
1245
1253
|
var value = _ref.target.value;
|
|
@@ -1251,11 +1259,10 @@ function TextareaWidget(props) {
|
|
|
1251
1259
|
var _onFocus = function _onFocus() {
|
|
1252
1260
|
return onFocus && onFocus(id, value);
|
|
1253
1261
|
};
|
|
1254
|
-
var displayLabel = schemaUtils.getDisplayLabel(schema, uiSchema);
|
|
1255
1262
|
return jsx(Form.TextArea, _extends({
|
|
1256
1263
|
id: id,
|
|
1257
1264
|
name: id,
|
|
1258
|
-
label:
|
|
1265
|
+
label: labelValue(label || undefined, hideLabel, false),
|
|
1259
1266
|
placeholder: placeholder,
|
|
1260
1267
|
autoFocus: autofocus,
|
|
1261
1268
|
required: required,
|