@rjsf/antd 6.2.5 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/antd.esm.js CHANGED
@@ -116,6 +116,7 @@ import {
116
116
  examplesId,
117
117
  getInputProps
118
118
  } from "@rjsf/utils";
119
+ import { SchemaExamples } from "@rjsf/core";
119
120
  import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
120
121
  var INPUT_STYLE = {
121
122
  width: "100%"
@@ -189,9 +190,7 @@ function BaseInputTemplate(props) {
189
190
  return /* @__PURE__ */ jsxs3(Fragment, { children: [
190
191
  input,
191
192
  options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsx3(ClearButton2, { registry, onClick: handleClear }),
192
- Array.isArray(schema.examples) && /* @__PURE__ */ jsx3("datalist", { id: examplesId(id), children: schema.examples.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : []).map((example) => {
193
- return /* @__PURE__ */ jsx3("option", { value: example }, example);
194
- }) })
193
+ /* @__PURE__ */ jsx3(SchemaExamples, { id, schema })
195
194
  ] });
196
195
  }
197
196
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts", "../src/templates/ArrayFieldItemTemplate/index.tsx", "../src/templates/ArrayFieldTemplate/index.tsx", "../src/templates/BaseInputTemplate/index.tsx", "../src/templates/FieldDescriptionTemplate/index.tsx", "../src/templates/ErrorList/index.tsx", "../src/templates/IconButton/index.tsx", "../src/templates/FieldErrorTemplate/index.tsx", "../src/templates/FieldTemplate/index.tsx", "../src/templates/GridTemplate/index.tsx", "../src/templates/MultiSchemaFieldTemplate/index.tsx", "../src/templates/ObjectFieldTemplate/index.tsx", "../src/templates/OptionalDataControlsTemplate/index.tsx", "../src/templates/SubmitButton/index.tsx", "../src/templates/TitleField/index.tsx", "../src/templates/WrapIfAdditionalTemplate/index.tsx", "../src/templates/index.ts", "../src/widgets/AltDateTimeWidget/index.tsx", "../src/widgets/AltDateWidget/index.tsx", "../src/widgets/CheckboxesWidget/index.tsx", "../src/widgets/CheckboxWidget/index.tsx", "../src/widgets/DateTimeWidget/index.tsx", "../src/widgets/DateWidget/index.tsx", "../src/widgets/PasswordWidget/index.tsx", "../src/widgets/RadioWidget/index.tsx", "../src/widgets/RangeWidget/index.tsx", "../src/widgets/SelectWidget/index.tsx", "../src/widgets/TextareaWidget/index.tsx", "../src/widgets/index.ts"],
4
- "sourcesContent": ["import { ComponentType } from 'react';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { FormProps, ThemeProps, withTheme } from '@rjsf/core';\n\nimport Templates, { generateTemplates } from './templates';\nimport Widgets, { generateWidgets } from './widgets';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n };\n}\n\nconst Theme = generateTheme();\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\nconst Form = generateForm();\n\nexport { Form, Templates, Theme, Widgets, generateTemplates, generateWidgets };\n\nexport default Form;\n", "import { Col, Row, Space } from 'antd';\nimport {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getUiOptions,\n getTemplate,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nconst BTN_GRP_STYLE = {\n width: '100%',\n justifyContent: 'flex-end',\n};\n\nconst BTN_STYLE = {\n width: 'calc(100% / 4)',\n};\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, index, registry, uiSchema } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldItemButtonsTemplate = getTemplate<'ArrayFieldItemButtonsTemplate', T, S, F>(\n 'ArrayFieldItemButtonsTemplate',\n registry,\n uiOptions,\n );\n const { rowGutter = 24, toolbarAlign = displayLabel ? 'middle' : 'top' } = registry.formContext;\n const margin = hasDescription ? -8 : 16;\n\n return (\n <Row align={toolbarAlign} key={`rjsf-array-item-${index}`} gutter={rowGutter}>\n <Col flex='1'>{children}</Col>\n {hasToolbar && (\n <Col flex='120px' style={{ marginTop: displayLabel ? `${margin}px` : undefined }}>\n <Space.Compact style={BTN_GRP_STYLE}>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} style={BTN_STYLE} />\n </Space.Compact>\n </Col>\n )}\n </Row>\n );\n}\n", "import {\n getTemplate,\n getUiOptions,\n ArrayFieldTemplateProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n buttonId,\n} from '@rjsf/utils';\nimport classNames from 'classnames';\nimport { Col, Row, ConfigProvider } from 'antd';\nimport { useContext } from 'react';\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n className,\n disabled,\n fieldPathId,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n registry,\n required,\n schema,\n title,\n uiSchema,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n const { formContext } = registry;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n const { labelAlign = 'right', rowGutter = 24 } = formContext as GenericObjectType;\n\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n const prefixCls = getPrefixCls('form');\n const labelClsBasic = `${prefixCls}-item-label`;\n const labelColClassName = classNames(\n labelClsBasic,\n labelAlign === 'left' && `${labelClsBasic}-left`,\n // labelCol.className,\n );\n\n return (\n <fieldset className={className} id={fieldPathId.$id}>\n <Row gutter={rowGutter}>\n {(uiOptions.title || title) && (\n <Col className={labelColClassName} span={24}>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n required={required}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n </Col>\n )}\n <Col className='row array-item-list' span={24}>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n </Col>\n {canAdd && (\n <Col span={24}>\n <Row gutter={rowGutter} justify='end'>\n <Col flex='120px'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n disabled={disabled || readonly}\n onClick={onAddClick}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n </Col>\n )}\n </Row>\n </fieldset>\n );\n}\n", "import { ChangeEvent, FocusEvent, MouseEvent, useCallback } from 'react';\nimport { Input, InputNumber } from 'antd';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nconst INPUT_STYLE = {\n width: '100%',\n};\n\n/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.\n * It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.\n * It can be customized/overridden for other themes or individual implementations as needed.\n *\n * @param props - The `WidgetProps` for this template\n */\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: BaseInputTemplateProps<T, S, F>) {\n const {\n disabled,\n registry,\n id,\n htmlName,\n onBlur,\n onChange,\n onChangeOverride,\n onFocus,\n options,\n placeholder,\n readonly,\n schema,\n value,\n type,\n } = props;\n const { formContext } = registry;\n // InputNumber doesn't use a native <input type=\"number\"> directly - it wraps it and controls the stepping behavior\n // through its own props. The step prop in Ant Design expects a number, not the string \"any\"\n const inputProps = getInputProps<T, S, F>(schema, type, options, false);\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n const { ClearButton } = registry.templates.ButtonTemplates;\n\n const handleNumberChange = (nextValue: number | null) => onChange(nextValue);\n\n const handleTextChange = onChangeOverride\n ? onChangeOverride\n : ({ target }: ChangeEvent<HTMLInputElement>) => onChange(target.value === '' ? options.emptyValue : target.value);\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n\n const handleClear = useCallback(\n (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n onChange(options.emptyValue ?? '');\n },\n [onChange, options.emptyValue],\n );\n\n const input =\n inputProps.type === 'number' || inputProps.type === 'integer' ? (\n <InputNumber\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleNumberChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n style={INPUT_STYLE}\n list={schema.examples ? examplesId(id) : undefined}\n {...inputProps}\n value={value}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n ) : (\n <Input\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleTextChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n style={INPUT_STYLE}\n list={schema.examples ? examplesId(id) : undefined}\n {...inputProps}\n value={value}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n );\n\n return (\n <>\n {input}\n {options.allowClearTextInputs && !readonly && !disabled && value && (\n <ClearButton registry={registry} onClick={handleClear} />\n )}\n {Array.isArray(schema.examples) && (\n <datalist id={examplesId(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';\nimport { RichDescription } from '@rjsf/core';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n if (!description) {\n return null;\n }\n return (\n <span id={id}>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </span>\n );\n}\n", "import { Alert, List, Space } from 'antd';\nimport ExclamationCircleOutlined from '@ant-design/icons/ExclamationCircleOutlined';\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 const renderErrors = () => (\n <List className='list-group' size='small'>\n {errors.map((error, index) => (\n <List.Item key={index}>\n <Space>\n <ExclamationCircleOutlined />\n {error.stack}\n </Space>\n </List.Item>\n ))}\n </List>\n );\n\n return (\n <Alert\n className='panel panel-danger errors'\n description={renderErrors()}\n message={translateString(TranslatableString.ErrorsLabel)}\n type='error'\n />\n );\n}\n", "import { Button, ButtonProps } from 'antd';\nimport ArrowDownOutlined from '@ant-design/icons/ArrowDownOutlined';\nimport ArrowUpOutlined from '@ant-design/icons/ArrowUpOutlined';\nimport CopyOutlined from '@ant-design/icons/CopyOutlined';\nimport DeleteOutlined from '@ant-design/icons/DeleteOutlined';\nimport PlusCircleOutlined from '@ant-design/icons/PlusCircleOutlined';\nimport CloseOutlined from '@ant-design/icons/CloseOutlined';\nimport {\n getUiOptions,\n FormContextType,\n IconButtonProps,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n} from '@rjsf/utils';\nimport { MouseEventHandler } from 'react';\n\nexport type AntdIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & Pick<ButtonProps, 'block' | 'danger' | 'size'>;\n\nexport default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const { iconType = 'default', icon, onClick, uiSchema, registry, color, ...otherProps } = props;\n return (\n <Button\n onClick={onClick as MouseEventHandler<HTMLAnchorElement> & MouseEventHandler<HTMLButtonElement>}\n // @ts-expect-error TS2322, Because even casting as `ButtonProps['type']` has issues\n type={iconType}\n icon={icon}\n color={color as ButtonProps['color']}\n style={{ paddingTop: '4px' /* Center the button */ }}\n {...otherProps}\n />\n );\n}\n\nexport function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton\n title={translateString(TranslatableString.AddItemButton)}\n iconType='primary'\n block\n {...props}\n icon={<PlusCircleOutlined />}\n />\n );\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon={<CopyOutlined />} />;\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon={<ArrowDownOutlined />} />\n );\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon={<ArrowUpOutlined />} />;\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n // The `block` prop is not part of the `IconButtonProps` defined in the template, so get it from the uiSchema instead\n const options = getUiOptions<T, S, F>(props.uiSchema);\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton\n title={translateString(TranslatableString.RemoveButton)}\n danger\n block={!!options.block}\n iconType='primary'\n {...props}\n icon={<DeleteOutlined />}\n />\n );\n}\n\nexport function ClearButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton\n title={translateString(TranslatableString.ClearButton)}\n {...props}\n iconType='link'\n icon={<CloseOutlined />}\n />\n );\n}\n", "import { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema, errorId } from '@rjsf/utils';\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldErrorProps<T, S, F>) {\n const { errors = [], fieldPathId } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n return (\n <div id={id}>\n {errors.map((error) => (\n <div key={`field-${id}-error-${error}`}>{error}</div>\n ))}\n </div>\n );\n}\n", "import { Form } from 'antd';\nimport {\n FieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n getTemplate,\n getUiOptions,\n GenericObjectType,\n} from '@rjsf/utils';\n\nconst VERTICAL_LABEL_COL = { span: 24 };\nconst VERTICAL_WRAPPER_COL = { span: 24 };\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 children,\n description,\n displayLabel,\n errors,\n help,\n rawHelp,\n hidden,\n id,\n label,\n rawErrors,\n rawDescription,\n registry,\n required,\n schema,\n uiSchema,\n } = props;\n const { formContext } = registry;\n const {\n colon,\n labelCol = VERTICAL_LABEL_COL,\n wrapperCol = VERTICAL_WRAPPER_COL,\n wrapperStyle,\n descriptionLocation = 'below',\n } = formContext as GenericObjectType;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div className='rjsf-field-hidden'>{children}</div>;\n }\n\n // check to see if there is rawDescription(string) before using description(ReactNode)\n // to prevent showing a blank description area\n const descriptionNode = rawDescription ? description : undefined;\n const descriptionProps: GenericObjectType = {};\n switch (descriptionLocation) {\n case 'tooltip':\n descriptionProps.tooltip = descriptionNode;\n break;\n case 'below':\n default:\n descriptionProps.extra = descriptionNode;\n break;\n }\n const isCheckbox = uiOptions.widget === 'checkbox';\n return (\n <WrapIfAdditionalTemplate {...props}>\n <Form.Item\n colon={colon}\n hasFeedback={schema.type !== 'array' && schema.type !== 'object'}\n help={(!!rawHelp && help) || (rawErrors?.length ? errors : undefined)}\n htmlFor={id}\n label={displayLabel && !isCheckbox && label}\n labelCol={labelCol}\n required={required}\n style={wrapperStyle}\n validateStatus={rawErrors?.length ? 'error' : undefined}\n wrapperCol={wrapperCol}\n {...descriptionProps}\n >\n {children}\n </Form.Item>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import { Col, Row } from 'antd';\nimport { GridTemplateProps } from '@rjsf/utils';\n\n/** Renders a `GridTemplate` for antd, which is expecting the column sizing information coming in via the\n * extra props provided by the caller, which are spread directly on the `Row`/`Col`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the antd grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, ...rest } = props;\n if (column) {\n return <Col {...rest}>{children}</Col>;\n }\n return <Row {...rest}>{children}</Row>;\n}\n", "import { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { optionSchemaField, selector } = props;\n\n return (\n <div>\n <div>{selector}</div>\n {optionSchemaField}\n </div>\n );\n}\n", "import classNames from 'classnames';\nimport isObject from 'lodash/isObject';\nimport isNumber from 'lodash/isNumber';\nimport isString from 'lodash/isString';\nimport {\n FormContextType,\n GenericObjectType,\n ObjectFieldTemplateProps,\n ObjectFieldTemplatePropertyType,\n RJSFSchema,\n StrictRJSFSchema,\n UiSchema,\n canExpand,\n getTemplate,\n getUiOptions,\n titleId,\n buttonId,\n} from '@rjsf/utils';\nimport { Col, Row, ConfigProvider } from 'antd';\nimport { useContext } from 'react';\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 disabled,\n formData,\n fieldPathId,\n onAddProperty,\n optionalDataControl,\n properties,\n readonly,\n required,\n registry,\n schema,\n title,\n uiSchema,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const { formContext } = registry;\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n const { colSpan = 24, labelAlign = 'right', rowGutter = 24 } = formContext as GenericObjectType;\n\n const findSchema = (element: ObjectFieldTemplatePropertyType): S => element.content.props.schema;\n\n const findSchemaType = (element: ObjectFieldTemplatePropertyType) => findSchema(element).type;\n\n const findUiSchema = (element: ObjectFieldTemplatePropertyType): UiSchema<T, S, F> | undefined =>\n element.content.props.uiSchema;\n\n const findUiSchemaField = (element: ObjectFieldTemplatePropertyType) => getUiOptions(findUiSchema(element)).field;\n\n const findUiSchemaWidget = (element: ObjectFieldTemplatePropertyType) => getUiOptions(findUiSchema(element)).widget;\n\n const calculateColSpan = (element: ObjectFieldTemplatePropertyType) => {\n const type = findSchemaType(element);\n const field = findUiSchemaField(element);\n const widget = findUiSchemaWidget(element);\n\n const defaultColSpan =\n properties.length < 2 || // Single or no field in object.\n type === 'object' ||\n type === 'array' ||\n widget === 'textarea'\n ? 24\n : 12;\n\n if (isObject(colSpan)) {\n const colSpanObj: GenericObjectType = colSpan;\n if (isString(widget)) {\n return colSpanObj[widget];\n }\n if (isString(field)) {\n return colSpanObj[field];\n }\n if (isString(type)) {\n return colSpanObj[type];\n }\n }\n if (isNumber(colSpan)) {\n return colSpan;\n }\n return defaultColSpan;\n };\n\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n const prefixCls = getPrefixCls('form');\n const labelClsBasic = `${prefixCls}-item-label`;\n const labelColClassName = classNames(\n labelClsBasic,\n labelAlign === 'left' && `${labelClsBasic}-left`,\n // labelCol.className,\n );\n\n return (\n <fieldset id={fieldPathId.$id}>\n <Row gutter={rowGutter}>\n {title && (\n <Col className={labelColClassName} span={24}>\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n </Col>\n )}\n {!showOptionalDataControlInTitle ? <Col span={24}>{optionalDataControl}</Col> : undefined}\n {properties\n .filter((e) => !e.hidden)\n .map((element: ObjectFieldTemplatePropertyType) => (\n <Col key={element.name} span={calculateColSpan(element)}>\n {element.content}\n </Col>\n ))}\n </Row>\n {canExpand(schema, uiSchema, formData) && (\n <Col span={24}>\n <Row gutter={rowGutter} justify='end'>\n <Col flex='120px'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n disabled={disabled || readonly}\n onClick={onAddProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n </Col>\n )}\n </fieldset>\n );\n}\n", "import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { AddButton, RemoveButton } from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick } = props;\n if (onAddClick) {\n return (\n <AddButton\n id={id}\n registry={registry}\n className='rjsf-add-optional-data'\n onClick={onAddClick}\n title={label}\n size='small'\n iconType='default'\n block={false}\n />\n );\n } else if (onRemoveClick) {\n return (\n <RemoveButton\n id={id}\n registry={registry}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n size='small'\n iconType='default'\n block={false}\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import { Button, ButtonProps } from 'antd';\nimport { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\ntype ButtonType = NonNullable<ButtonProps['type']>;\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(uiSchema);\n if (norender) {\n return null;\n }\n return (\n <Button type={'submit' as ButtonType} {...submitButtonProps} htmlType='submit'>\n {submitText}\n </Button>\n );\n}\n", "import classNames from 'classnames';\nimport { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Col, Divider, Row, ConfigProvider } from 'antd';\nimport { useContext } from 'react';\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 required,\n registry,\n title,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const { formContext } = registry;\n const { colon = true } = formContext;\n\n let labelChildren = title;\n if (colon && typeof title === 'string' && title.trim() !== '') {\n labelChildren = title.replace(/[\uFF1A:]\\s*$/, '');\n }\n\n const handleLabelClick = () => {\n if (!id) {\n return;\n }\n\n const control: HTMLLabelElement | null = document.querySelector(`[id=\"${id}\"]`);\n if (control && control.focus) {\n control.focus();\n }\n };\n\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n const prefixCls = getPrefixCls('form');\n const labelClassName = classNames({\n [`${prefixCls}-item-required`]: required,\n [`${prefixCls}-item-no-colon`]: !colon,\n });\n let heading = title ? (\n <label\n className={labelClassName}\n htmlFor={id}\n onClick={handleLabelClick}\n title={typeof title === 'string' ? title : ''}\n >\n {labelChildren}\n </label>\n ) : null;\n if (optionalDataControl) {\n heading = (\n <Row>\n <Col flex='auto'>{heading}</Col>\n <Col flex='none'>{optionalDataControl}</Col>\n </Row>\n );\n }\n\n return (\n <>\n {heading}\n <Divider size='small' style={{ marginBlock: '1px' /* pull the margin right up against the label */ }} />\n </>\n );\n}\n", "import { Col, Row, Form, Input } from 'antd';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n UI_OPTIONS_KEY,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n buttonId,\n} from '@rjsf/utils';\n\nconst VERTICAL_LABEL_COL = { span: 24 };\nconst VERTICAL_WRAPPER_COL = { span: 24 };\n\nconst INPUT_STYLE = {\n width: '100%',\n};\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 displayLabel,\n id,\n label,\n onRemoveProperty,\n onKeyRenameBlur,\n readonly,\n required,\n registry,\n schema,\n uiSchema,\n } = props;\n const {\n colon,\n labelCol = VERTICAL_LABEL_COL,\n readonlyAsDisabled = true,\n rowGutter = 24,\n toolbarAlign = 'top',\n wrapperCol = VERTICAL_WRAPPER_COL,\n wrapperStyle,\n } = registry.formContext;\n const { templates, translateString } = registry;\n // Button templates are not overridden in the uiSchema\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n // The `block` prop is not part of the `IconButtonProps` defined in the template, so put it into the uiSchema instead\n const uiOptions = uiSchema ? uiSchema[UI_OPTIONS_KEY] : {};\n const buttonUiOptions = {\n ...uiSchema,\n [UI_OPTIONS_KEY]: { ...uiOptions, block: true },\n };\n\n return (\n <div className={classNames} style={style}>\n <Row align={toolbarAlign} gutter={rowGutter}>\n <Col className='form-additional' flex='1'>\n <div className='form-group'>\n <Form.Item\n colon={colon}\n className='form-group'\n hasFeedback\n htmlFor={`${id}-key`}\n label={displayLabel ? keyLabel : undefined}\n labelCol={labelCol}\n required={required}\n style={wrapperStyle}\n wrapperCol={wrapperCol}\n >\n <Input\n className='form-control'\n defaultValue={label}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={`${id}-key`}\n name={`${id}-key`}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n style={INPUT_STYLE}\n type='text'\n />\n </Form.Item>\n </div>\n </Col>\n <Col className='form-additional' flex='1'>\n {children}\n </Col>\n <Col flex='120px' style={{ marginTop: displayLabel ? '40px' : undefined }}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n className='rjsf-object-property-remove'\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={buttonUiOptions}\n registry={registry}\n />\n </Col>\n </Row>\n </div>\n );\n}\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport ArrayFieldItemTemplate from './ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from './ArrayFieldTemplate';\nimport BaseInputTemplate from './BaseInputTemplate';\nimport DescriptionField from './FieldDescriptionTemplate';\nimport ErrorList from './ErrorList';\nimport { AddButton, CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from './IconButton';\nimport FieldErrorTemplate from './FieldErrorTemplate';\nimport FieldTemplate from './FieldTemplate';\nimport GridTemplate from './GridTemplate';\nimport MultiSchemaFieldTemplate from './MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from './ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from './OptionalDataControlsTemplate';\nimport SubmitButton from './SubmitButton';\nimport TitleField from './TitleField';\nimport WrapIfAdditionalTemplate from './WrapIfAdditionalTemplate';\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 ClearButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\n\nexport default function AltDateTimeWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ time = true, ...props }: WidgetProps<T, S, F>) {\n const { AltDateWidget } = props.registry.widgets;\n return <AltDateWidget time={time} {...props} />;\n}\n", "import { Row, Col, Button } from 'antd';\nimport {\n DateElement,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n useAltDateWidgetProps,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function AltDateWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ autofocus = false, disabled = false, options, readonly = false, time = false, ...props }: WidgetProps<T, S, F>) {\n const { id, name, onBlur, onFocus, registry } = props;\n const { formContext, translateString } = registry;\n const { rowGutter = 24 } = formContext as GenericObjectType;\n const realOptions = { yearsRange: [1900, new Date().getFullYear() + 2], ...options };\n const { elements, handleChange, handleClear, handleSetNow } = useAltDateWidgetProps({\n ...props,\n autofocus,\n options: realOptions,\n });\n\n return (\n <Row gutter={[Math.floor(rowGutter / 2), Math.floor(rowGutter / 2)]}>\n {elements.map((elemProps, i) => {\n const elemId = `${id}_${elemProps.type}`;\n return (\n <Col flex='88px' key={elemId}>\n <DateElement\n rootId={id}\n name={name}\n select={handleChange}\n {...elemProps}\n disabled={disabled}\n readonly={readonly}\n registry={registry}\n onBlur={onBlur}\n onFocus={onFocus}\n autofocus={autofocus && i === 0}\n />\n </Col>\n );\n })}\n {!options.hideNowButton && (\n <Col flex='88px'>\n <Button block className='btn-now' onClick={handleSetNow} type='primary'>\n {translateString(TranslatableString.NowLabel)}\n </Button>\n </Col>\n )}\n {!options.hideClearButton && (\n <Col flex='88px'>\n <Button block className='btn-clear' danger onClick={handleClear} type='primary'>\n {translateString(TranslatableString.ClearLabel)}\n </Button>\n </Col>\n )}\n </Row>\n );\n}\n", "import { FocusEvent } from 'react';\nimport { Checkbox } from 'antd';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n WidgetProps,\n RJSFSchema,\n StrictRJSFSchema,\n GenericObjectType,\n} from '@rjsf/utils';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n autofocus,\n disabled,\n registry,\n id,\n htmlName,\n onBlur,\n onChange,\n onFocus,\n options,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const { enumOptions, enumDisabled, inline, emptyValue } = options;\n\n const handleChange = (nextValue: any) => onChange(enumOptionsValueForIndex<S>(nextValue, enumOptions, emptyValue));\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target.value, enumOptions, emptyValue));\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target.value, enumOptions, emptyValue));\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n id,\n onBlur: !readonly ? handleBlur : undefined,\n onFocus: !readonly ? handleFocus : undefined,\n };\n\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, true) as string[];\n\n return Array.isArray(enumOptions) && enumOptions.length > 0 ? (\n <>\n <Checkbox.Group\n disabled={disabled || (readonlyAsDisabled && readonly)}\n name={htmlName || id}\n onChange={!readonly ? handleChange : undefined}\n value={selectedIndexes}\n {...extraProps}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, i) => (\n <span key={i}>\n <Checkbox\n id={optionId(id, i)}\n name={htmlName || id}\n autoFocus={i === 0 ? autofocus : false}\n disabled={Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1}\n value={String(i)}\n >\n {option.label}\n </Checkbox>\n {!inline && <br />}\n </span>\n ))}\n </Checkbox.Group>\n </>\n ) : null;\n}\n", "import { FocusEvent } from 'react';\nimport { Checkbox, CheckboxProps } from 'antd';\nimport {\n ariaDescribedByIds,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n GenericObjectType,\n} from '@rjsf/utils';\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { autofocus, disabled, registry, id, htmlName, label, hideLabel, onBlur, onChange, onFocus, readonly, value } =\n props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange: NonNullable<CheckboxProps['onChange']> = ({ target }) => onChange(target.checked);\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.checked);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.checked);\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n onBlur: !readonly ? handleBlur : undefined,\n onFocus: !readonly ? handleFocus : undefined,\n };\n return (\n <Checkbox\n autoFocus={autofocus}\n checked={typeof value === 'undefined' ? false : value}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onChange={!readonly ? handleChange : undefined}\n {...extraProps}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {labelValue(label, hideLabel, '')}\n </Checkbox>\n );\n}\n", "import dayjs from 'dayjs';\nimport {\n ariaDescribedByIds,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nimport { DatePicker } from 'antd';\n\nconst DATE_PICKER_STYLE = {\n width: '100%',\n};\n\n/** The `DateTimeWidget` component uses the `BaseInputTemplate` changing the type to `datetime-local` and transforms\n * the value to/from utc using the appropriate utility functions.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function DateTimeWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { disabled, registry, id, onBlur, onChange, onFocus, placeholder, readonly, value } = props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange = (nextValue: any) => onChange(nextValue && nextValue.toISOString());\n\n const handleBlur = () => onBlur(id, value);\n\n const handleFocus = () => onFocus(id, value);\n\n const getPopupContainer = (node: any) => node.parentNode;\n\n return (\n <DatePicker\n disabled={disabled || (readonlyAsDisabled && readonly)}\n getPopupContainer={getPopupContainer}\n id={id}\n name={id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n showTime\n style={DATE_PICKER_STYLE}\n value={value && dayjs(value)}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import dayjs from 'dayjs';\nimport {\n ariaDescribedByIds,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n GenericObjectType,\n} from '@rjsf/utils';\n\nimport { DatePicker } from 'antd';\n\nconst DATE_PICKER_STYLE = {\n width: '100%',\n};\n\n/** The `DateWidget` component uses the `BaseInputTemplate` changing the type to `date` and transforms\n * the value to undefined when it is falsy during the `onChange` handling.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function DateWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { disabled, registry, id, onBlur, onChange, onFocus, placeholder, readonly, value } = props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange = (nextValue: any) => onChange(nextValue && nextValue.format('YYYY-MM-DD'));\n\n const handleBlur = () => onBlur(id, value);\n\n const handleFocus = () => onFocus(id, value);\n\n const getPopupContainer = (node: any) => node.parentNode;\n\n return (\n <DatePicker\n disabled={disabled || (readonlyAsDisabled && readonly)}\n getPopupContainer={getPopupContainer}\n id={id}\n name={id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n showTime={false}\n style={DATE_PICKER_STYLE}\n value={value && dayjs(value)}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport { Input } from 'antd';\nimport {\n ariaDescribedByIds,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n GenericObjectType,\n} from '@rjsf/utils';\n\n/** The `PasswordWidget` component uses the `BaseInputTemplate` changing the type to `password`.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function PasswordWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { disabled, registry, id, onBlur, onChange, onFocus, options, placeholder, readonly, value } = props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const emptyValue = options.emptyValue || '';\n\n const handleChange = ({ target }: ChangeEvent<HTMLInputElement>) =>\n onChange(target.value === '' ? emptyValue : target.value);\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target.value);\n\n return (\n <Input.Password\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n value={value || ''}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import { FocusEvent } from 'react';\nimport { Radio, RadioChangeEvent } from 'antd';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n autofocus,\n disabled,\n registry,\n id,\n htmlName,\n onBlur,\n onChange,\n onFocus,\n options,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const handleChange = ({ target: { value: nextValue } }: RadioChangeEvent) =>\n onChange(enumOptionsValueForIndex<S>(nextValue, enumOptions, emptyValue));\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions) as string;\n\n return (\n <Radio.Group\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onChange={!readonly ? handleChange : undefined}\n onBlur={!readonly ? handleBlur : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n value={selectedIndexes}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, i) => (\n <Radio\n id={optionId(id, i)}\n name={htmlName || id}\n autoFocus={i === 0 ? autofocus : false}\n disabled={disabled || (Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1)}\n key={i}\n value={String(i)}\n >\n {option.label}\n </Radio>\n ))}\n </Radio.Group>\n );\n}\n", "import { Slider } from 'antd';\nimport {\n ariaDescribedByIds,\n rangeSpec,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n GenericObjectType,\n} from '@rjsf/utils';\n\n/** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result\n * in a div, with the value along side it.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n autofocus,\n disabled,\n registry,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n schema,\n value,\n } = props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const { min, max, step } = rangeSpec(schema);\n\n const emptyValue = options.emptyValue || '';\n\n const handleChange = (nextValue: any) => onChange(nextValue === '' ? emptyValue : nextValue);\n\n const handleBlur = () => onBlur(id, value);\n\n const handleFocus = () => onFocus(id, value);\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n placeholder,\n onBlur: !readonly ? handleBlur : undefined,\n onFocus: !readonly ? handleFocus : undefined,\n };\n\n return (\n <Slider\n autoFocus={autofocus}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n max={max}\n min={min}\n onChange={!readonly ? handleChange : undefined}\n range={false}\n step={step}\n value={value}\n {...extraProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import { useMemo, useState } from 'react';\nimport { Select, SelectProps } from 'antd';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport isString from 'lodash/isString';\nimport { DefaultOptionType } from 'antd/es/select';\n\nconst SELECT_STYLE = {\n width: '100%',\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<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n autofocus,\n disabled,\n registry,\n id,\n htmlName,\n multiple,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n value,\n schema,\n}: WidgetProps<T, S, F>) {\n const [open, setOpen] = useState(false);\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const handleChange = (nextValue: any) => onChange(enumOptionsValueForIndex<S>(nextValue, enumOptions, emptyValue));\n\n const handleBlur = () => onBlur(id, enumOptionsValueForIndex<S>(value, enumOptions, emptyValue));\n\n const handleFocus = () => onFocus(id, enumOptionsValueForIndex<S>(value, enumOptions, emptyValue));\n\n const filterOption: SelectProps['filterOption'] = (input, option) => {\n if (option && isString(option.label)) {\n // labels are strings in this context\n return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;\n }\n return false;\n };\n\n const getPopupContainer = SelectWidget.getPopupContainerCallback();\n\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n name: htmlName || id,\n };\n\n const showPlaceholderOption = !multiple && schema.default === undefined;\n\n const selectOptions: DefaultOptionType[] | undefined = useMemo(() => {\n if (Array.isArray(enumOptions)) {\n const options: DefaultOptionType[] = enumOptions.map(({ value: optionValue, label: optionLabel }, index) => ({\n disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(optionValue) !== -1,\n key: String(index),\n value: String(index),\n label: optionLabel,\n }));\n\n if (showPlaceholderOption) {\n options.unshift({ value: '', label: placeholder || '' });\n }\n return options;\n }\n return undefined;\n }, [enumDisabled, enumOptions, placeholder, showPlaceholderOption]);\n\n return (\n <Select\n open={open}\n autoFocus={autofocus}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n getPopupContainer={getPopupContainer}\n id={id}\n mode={multiple ? 'multiple' : undefined}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n style={SELECT_STYLE}\n value={selectedIndexes}\n {...extraProps}\n // When the open change is called, set the open state, needed so that the select opens properly in the playground\n onOpenChange={setOpen}\n filterOption={filterOption}\n aria-describedby={ariaDescribedByIds(id)}\n options={selectOptions}\n />\n );\n}\n\n/** Give the playground a place to hook into the `getPopupContainer` callback generation function so that it can be\n * disabled while in the playground. Since the callback is a simple function, it can be returned by this static\n * \"generator\" function.\n */\nSelectWidget.getPopupContainerCallback = () => (node: any) => node.parentElement;\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport { Input } from 'antd';\nimport {\n ariaDescribedByIds,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nconst INPUT_STYLE = {\n width: '100%',\n};\n\n/** The `TextareaWidget` is a widget for rendering input fields as textarea.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n disabled,\n registry,\n id,\n htmlName,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange = ({ target }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange(target.value === '' ? options.emptyValue : target.value);\n\n const handleBlur = ({ target }: FocusEvent<HTMLTextAreaElement>) => onBlur(id, target && target.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLTextAreaElement>) => onFocus(id, target && target.value);\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n type: 'textarea',\n };\n\n return (\n <Input.TextArea\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n rows={options.rows || 4}\n style={INPUT_STYLE}\n value={value}\n {...extraProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport AltDateTimeWidget from './AltDateTimeWidget';\nimport AltDateWidget from './AltDateWidget';\nimport CheckboxesWidget from './CheckboxesWidget';\nimport CheckboxWidget from './CheckboxWidget';\nimport DateTimeWidget from './DateTimeWidget';\nimport DateWidget from './DateWidget';\nimport PasswordWidget from './PasswordWidget';\nimport RadioWidget from './RadioWidget';\nimport RangeWidget from './RangeWidget';\nimport SelectWidget from './SelectWidget';\nimport TextareaWidget from './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 AltDateTimeWidget,\n AltDateWidget,\n CheckboxesWidget,\n CheckboxWidget,\n DateTimeWidget,\n DateWidget,\n PasswordWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n"],
5
- "mappings": ";AAEA,SAAgC,iBAAiB;;;ACFjD,SAAS,KAAK,KAAK,aAAa;AAChC;AAAA,EAGE;AAAA,EACA;AAAA,OAGK;AA+BH,SACE,KADF;AA7BJ,IAAM,gBAAgB;AAAA,EACpB,OAAO;AAAA,EACP,gBAAgB;AAClB;AAEA,IAAM,YAAY;AAAA,EAChB,OAAO;AACT;AAMe,SAAR,uBAIL,OAA6C;AAC7C,QAAM,EAAE,UAAU,cAAc,cAAc,gBAAgB,YAAY,OAAO,UAAU,SAAS,IAAI;AACxG,QAAM,YAAY,aAAsB,QAAQ;AAChD,QAAM,gCAAgC;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,QAAM,EAAE,YAAY,IAAI,eAAe,eAAe,WAAW,MAAM,IAAI,SAAS;AACpF,QAAM,SAAS,iBAAiB,KAAK;AAErC,SACE,qBAAC,OAAI,OAAO,cAA+C,QAAQ,WACjE;AAA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IAAM,QAAQ,cAAc;AAErB,SAAS,eAIuB;AACrC,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAMG,QAAO,aAAa;AAI1B,IAAO,gBAAQC;",
4
+ "sourcesContent": ["import { ComponentType } from 'react';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { FormProps, ThemeProps, withTheme } from '@rjsf/core';\n\nimport Templates, { generateTemplates } from './templates';\nimport Widgets, { generateWidgets } from './widgets';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n };\n}\n\nconst Theme = generateTheme();\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\nconst Form = generateForm();\n\nexport { Form, Templates, Theme, Widgets, generateTemplates, generateWidgets };\n\nexport default Form;\n", "import { Col, Row, Space } from 'antd';\nimport {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getUiOptions,\n getTemplate,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nconst BTN_GRP_STYLE = {\n width: '100%',\n justifyContent: 'flex-end',\n};\n\nconst BTN_STYLE = {\n width: 'calc(100% / 4)',\n};\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, index, registry, uiSchema } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldItemButtonsTemplate = getTemplate<'ArrayFieldItemButtonsTemplate', T, S, F>(\n 'ArrayFieldItemButtonsTemplate',\n registry,\n uiOptions,\n );\n const { rowGutter = 24, toolbarAlign = displayLabel ? 'middle' : 'top' } = registry.formContext;\n const margin = hasDescription ? -8 : 16;\n\n return (\n <Row align={toolbarAlign} key={`rjsf-array-item-${index}`} gutter={rowGutter}>\n <Col flex='1'>{children}</Col>\n {hasToolbar && (\n <Col flex='120px' style={{ marginTop: displayLabel ? `${margin}px` : undefined }}>\n <Space.Compact style={BTN_GRP_STYLE}>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} style={BTN_STYLE} />\n </Space.Compact>\n </Col>\n )}\n </Row>\n );\n}\n", "import {\n getTemplate,\n getUiOptions,\n ArrayFieldTemplateProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n buttonId,\n} from '@rjsf/utils';\nimport classNames from 'classnames';\nimport { Col, Row, ConfigProvider } from 'antd';\nimport { useContext } from 'react';\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n className,\n disabled,\n fieldPathId,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n registry,\n required,\n schema,\n title,\n uiSchema,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n const { formContext } = registry;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n const { labelAlign = 'right', rowGutter = 24 } = formContext as GenericObjectType;\n\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n const prefixCls = getPrefixCls('form');\n const labelClsBasic = `${prefixCls}-item-label`;\n const labelColClassName = classNames(\n labelClsBasic,\n labelAlign === 'left' && `${labelClsBasic}-left`,\n // labelCol.className,\n );\n\n return (\n <fieldset className={className} id={fieldPathId.$id}>\n <Row gutter={rowGutter}>\n {(uiOptions.title || title) && (\n <Col className={labelColClassName} span={24}>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n required={required}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n </Col>\n )}\n <Col className='row array-item-list' span={24}>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n </Col>\n {canAdd && (\n <Col span={24}>\n <Row gutter={rowGutter} justify='end'>\n <Col flex='120px'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n disabled={disabled || readonly}\n onClick={onAddClick}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n </Col>\n )}\n </Row>\n </fieldset>\n );\n}\n", "import { ChangeEvent, FocusEvent, MouseEvent, useCallback } from 'react';\nimport { Input, InputNumber } from 'antd';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n getInputProps,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { SchemaExamples } from '@rjsf/core';\n\nconst INPUT_STYLE = {\n width: '100%',\n};\n\n/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.\n * It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.\n * It can be customized/overridden for other themes or individual implementations as needed.\n *\n * @param props - The `WidgetProps` for this template\n */\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: BaseInputTemplateProps<T, S, F>) {\n const {\n disabled,\n registry,\n id,\n htmlName,\n onBlur,\n onChange,\n onChangeOverride,\n onFocus,\n options,\n placeholder,\n readonly,\n schema,\n value,\n type,\n } = props;\n const { formContext } = registry;\n // InputNumber doesn't use a native <input type=\"number\"> directly - it wraps it and controls the stepping behavior\n // through its own props. The step prop in Ant Design expects a number, not the string \"any\"\n const inputProps = getInputProps<T, S, F>(schema, type, options, false);\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n const { ClearButton } = registry.templates.ButtonTemplates;\n\n const handleNumberChange = (nextValue: number | null) => onChange(nextValue);\n\n const handleTextChange = onChangeOverride\n ? onChangeOverride\n : ({ target }: ChangeEvent<HTMLInputElement>) => onChange(target.value === '' ? options.emptyValue : target.value);\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n\n const handleClear = useCallback(\n (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n onChange(options.emptyValue ?? '');\n },\n [onChange, options.emptyValue],\n );\n\n const input =\n inputProps.type === 'number' || inputProps.type === 'integer' ? (\n <InputNumber\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleNumberChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n style={INPUT_STYLE}\n list={schema.examples ? examplesId(id) : undefined}\n {...inputProps}\n value={value}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n ) : (\n <Input\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleTextChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n style={INPUT_STYLE}\n list={schema.examples ? examplesId(id) : undefined}\n {...inputProps}\n value={value}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n );\n\n return (\n <>\n {input}\n {options.allowClearTextInputs && !readonly && !disabled && value && (\n <ClearButton registry={registry} onClick={handleClear} />\n )}\n <SchemaExamples id={id} schema={schema} />\n </>\n );\n}\n", "import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n if (!description) {\n return null;\n }\n return (\n <span id={id}>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </span>\n );\n}\n", "import { Alert, List, Space } from 'antd';\nimport ExclamationCircleOutlined from '@ant-design/icons/ExclamationCircleOutlined';\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 const renderErrors = () => (\n <List className='list-group' size='small'>\n {errors.map((error, index) => (\n <List.Item key={index}>\n <Space>\n <ExclamationCircleOutlined />\n {error.stack}\n </Space>\n </List.Item>\n ))}\n </List>\n );\n\n return (\n <Alert\n className='panel panel-danger errors'\n description={renderErrors()}\n message={translateString(TranslatableString.ErrorsLabel)}\n type='error'\n />\n );\n}\n", "import { Button, ButtonProps } from 'antd';\nimport ArrowDownOutlined from '@ant-design/icons/ArrowDownOutlined';\nimport ArrowUpOutlined from '@ant-design/icons/ArrowUpOutlined';\nimport CopyOutlined from '@ant-design/icons/CopyOutlined';\nimport DeleteOutlined from '@ant-design/icons/DeleteOutlined';\nimport PlusCircleOutlined from '@ant-design/icons/PlusCircleOutlined';\nimport CloseOutlined from '@ant-design/icons/CloseOutlined';\nimport {\n getUiOptions,\n FormContextType,\n IconButtonProps,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n} from '@rjsf/utils';\nimport { MouseEventHandler } from 'react';\n\nexport type AntdIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & Pick<ButtonProps, 'block' | 'danger' | 'size'>;\n\nexport default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const { iconType = 'default', icon, onClick, uiSchema, registry, color, ...otherProps } = props;\n return (\n <Button\n onClick={onClick as MouseEventHandler<HTMLAnchorElement> & MouseEventHandler<HTMLButtonElement>}\n // @ts-expect-error TS2322, Because even casting as `ButtonProps['type']` has issues\n type={iconType}\n icon={icon}\n color={color as ButtonProps['color']}\n style={{ paddingTop: '4px' /* Center the button */ }}\n {...otherProps}\n />\n );\n}\n\nexport function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton\n title={translateString(TranslatableString.AddItemButton)}\n iconType='primary'\n block\n {...props}\n icon={<PlusCircleOutlined />}\n />\n );\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon={<CopyOutlined />} />;\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon={<ArrowDownOutlined />} />\n );\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon={<ArrowUpOutlined />} />;\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n // The `block` prop is not part of the `IconButtonProps` defined in the template, so get it from the uiSchema instead\n const options = getUiOptions<T, S, F>(props.uiSchema);\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton\n title={translateString(TranslatableString.RemoveButton)}\n danger\n block={!!options.block}\n iconType='primary'\n {...props}\n icon={<DeleteOutlined />}\n />\n );\n}\n\nexport function ClearButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton\n title={translateString(TranslatableString.ClearButton)}\n {...props}\n iconType='link'\n icon={<CloseOutlined />}\n />\n );\n}\n", "import { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema, errorId } from '@rjsf/utils';\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldErrorProps<T, S, F>) {\n const { errors = [], fieldPathId } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n return (\n <div id={id}>\n {errors.map((error) => (\n <div key={`field-${id}-error-${error}`}>{error}</div>\n ))}\n </div>\n );\n}\n", "import { Form } from 'antd';\nimport {\n FieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n getTemplate,\n getUiOptions,\n GenericObjectType,\n} from '@rjsf/utils';\n\nconst VERTICAL_LABEL_COL = { span: 24 };\nconst VERTICAL_WRAPPER_COL = { span: 24 };\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 children,\n description,\n displayLabel,\n errors,\n help,\n rawHelp,\n hidden,\n id,\n label,\n rawErrors,\n rawDescription,\n registry,\n required,\n schema,\n uiSchema,\n } = props;\n const { formContext } = registry;\n const {\n colon,\n labelCol = VERTICAL_LABEL_COL,\n wrapperCol = VERTICAL_WRAPPER_COL,\n wrapperStyle,\n descriptionLocation = 'below',\n } = formContext as GenericObjectType;\n\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div className='rjsf-field-hidden'>{children}</div>;\n }\n\n // check to see if there is rawDescription(string) before using description(ReactNode)\n // to prevent showing a blank description area\n const descriptionNode = rawDescription ? description : undefined;\n const descriptionProps: GenericObjectType = {};\n switch (descriptionLocation) {\n case 'tooltip':\n descriptionProps.tooltip = descriptionNode;\n break;\n case 'below':\n default:\n descriptionProps.extra = descriptionNode;\n break;\n }\n const isCheckbox = uiOptions.widget === 'checkbox';\n return (\n <WrapIfAdditionalTemplate {...props}>\n <Form.Item\n colon={colon}\n hasFeedback={schema.type !== 'array' && schema.type !== 'object'}\n help={(!!rawHelp && help) || (rawErrors?.length ? errors : undefined)}\n htmlFor={id}\n label={displayLabel && !isCheckbox && label}\n labelCol={labelCol}\n required={required}\n style={wrapperStyle}\n validateStatus={rawErrors?.length ? 'error' : undefined}\n wrapperCol={wrapperCol}\n {...descriptionProps}\n >\n {children}\n </Form.Item>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import { Col, Row } from 'antd';\nimport { GridTemplateProps } from '@rjsf/utils';\n\n/** Renders a `GridTemplate` for antd, which is expecting the column sizing information coming in via the\n * extra props provided by the caller, which are spread directly on the `Row`/`Col`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the antd grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, ...rest } = props;\n if (column) {\n return <Col {...rest}>{children}</Col>;\n }\n return <Row {...rest}>{children}</Row>;\n}\n", "import { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { optionSchemaField, selector } = props;\n\n return (\n <div>\n <div>{selector}</div>\n {optionSchemaField}\n </div>\n );\n}\n", "import classNames from 'classnames';\nimport isObject from 'lodash/isObject';\nimport isNumber from 'lodash/isNumber';\nimport isString from 'lodash/isString';\nimport {\n FormContextType,\n GenericObjectType,\n ObjectFieldTemplateProps,\n ObjectFieldTemplatePropertyType,\n RJSFSchema,\n StrictRJSFSchema,\n UiSchema,\n canExpand,\n getTemplate,\n getUiOptions,\n titleId,\n buttonId,\n} from '@rjsf/utils';\nimport { Col, Row, ConfigProvider } from 'antd';\nimport { useContext } from 'react';\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 disabled,\n formData,\n fieldPathId,\n onAddProperty,\n optionalDataControl,\n properties,\n readonly,\n required,\n registry,\n schema,\n title,\n uiSchema,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const { formContext } = registry;\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n const { colSpan = 24, labelAlign = 'right', rowGutter = 24 } = formContext as GenericObjectType;\n\n const findSchema = (element: ObjectFieldTemplatePropertyType): S => element.content.props.schema;\n\n const findSchemaType = (element: ObjectFieldTemplatePropertyType) => findSchema(element).type;\n\n const findUiSchema = (element: ObjectFieldTemplatePropertyType): UiSchema<T, S, F> | undefined =>\n element.content.props.uiSchema;\n\n const findUiSchemaField = (element: ObjectFieldTemplatePropertyType) => getUiOptions(findUiSchema(element)).field;\n\n const findUiSchemaWidget = (element: ObjectFieldTemplatePropertyType) => getUiOptions(findUiSchema(element)).widget;\n\n const calculateColSpan = (element: ObjectFieldTemplatePropertyType) => {\n const type = findSchemaType(element);\n const field = findUiSchemaField(element);\n const widget = findUiSchemaWidget(element);\n\n const defaultColSpan =\n properties.length < 2 || // Single or no field in object.\n type === 'object' ||\n type === 'array' ||\n widget === 'textarea'\n ? 24\n : 12;\n\n if (isObject(colSpan)) {\n const colSpanObj: GenericObjectType = colSpan;\n if (isString(widget)) {\n return colSpanObj[widget];\n }\n if (isString(field)) {\n return colSpanObj[field];\n }\n if (isString(type)) {\n return colSpanObj[type];\n }\n }\n if (isNumber(colSpan)) {\n return colSpan;\n }\n return defaultColSpan;\n };\n\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n const prefixCls = getPrefixCls('form');\n const labelClsBasic = `${prefixCls}-item-label`;\n const labelColClassName = classNames(\n labelClsBasic,\n labelAlign === 'left' && `${labelClsBasic}-left`,\n // labelCol.className,\n );\n\n return (\n <fieldset id={fieldPathId.$id}>\n <Row gutter={rowGutter}>\n {title && (\n <Col className={labelColClassName} span={24}>\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n </Col>\n )}\n {!showOptionalDataControlInTitle ? <Col span={24}>{optionalDataControl}</Col> : undefined}\n {properties\n .filter((e) => !e.hidden)\n .map((element: ObjectFieldTemplatePropertyType) => (\n <Col key={element.name} span={calculateColSpan(element)}>\n {element.content}\n </Col>\n ))}\n </Row>\n {canExpand(schema, uiSchema, formData) && (\n <Col span={24}>\n <Row gutter={rowGutter} justify='end'>\n <Col flex='120px'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n disabled={disabled || readonly}\n onClick={onAddProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n </Col>\n )}\n </fieldset>\n );\n}\n", "import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { AddButton, RemoveButton } from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick } = props;\n if (onAddClick) {\n return (\n <AddButton\n id={id}\n registry={registry}\n className='rjsf-add-optional-data'\n onClick={onAddClick}\n title={label}\n size='small'\n iconType='default'\n block={false}\n />\n );\n } else if (onRemoveClick) {\n return (\n <RemoveButton\n id={id}\n registry={registry}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n size='small'\n iconType='default'\n block={false}\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import { Button, ButtonProps } from 'antd';\nimport { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\ntype ButtonType = NonNullable<ButtonProps['type']>;\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(uiSchema);\n if (norender) {\n return null;\n }\n return (\n <Button type={'submit' as ButtonType} {...submitButtonProps} htmlType='submit'>\n {submitText}\n </Button>\n );\n}\n", "import classNames from 'classnames';\nimport { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Col, Divider, Row, ConfigProvider } from 'antd';\nimport { useContext } from 'react';\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 required,\n registry,\n title,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const { formContext } = registry;\n const { colon = true } = formContext;\n\n let labelChildren = title;\n if (colon && typeof title === 'string' && title.trim() !== '') {\n labelChildren = title.replace(/[\uFF1A:]\\s*$/, '');\n }\n\n const handleLabelClick = () => {\n if (!id) {\n return;\n }\n\n const control: HTMLLabelElement | null = document.querySelector(`[id=\"${id}\"]`);\n if (control && control.focus) {\n control.focus();\n }\n };\n\n const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);\n const prefixCls = getPrefixCls('form');\n const labelClassName = classNames({\n [`${prefixCls}-item-required`]: required,\n [`${prefixCls}-item-no-colon`]: !colon,\n });\n let heading = title ? (\n <label\n className={labelClassName}\n htmlFor={id}\n onClick={handleLabelClick}\n title={typeof title === 'string' ? title : ''}\n >\n {labelChildren}\n </label>\n ) : null;\n if (optionalDataControl) {\n heading = (\n <Row>\n <Col flex='auto'>{heading}</Col>\n <Col flex='none'>{optionalDataControl}</Col>\n </Row>\n );\n }\n\n return (\n <>\n {heading}\n <Divider size='small' style={{ marginBlock: '1px' /* pull the margin right up against the label */ }} />\n </>\n );\n}\n", "import { Col, Row, Form, Input } from 'antd';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n UI_OPTIONS_KEY,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n buttonId,\n} from '@rjsf/utils';\n\nconst VERTICAL_LABEL_COL = { span: 24 };\nconst VERTICAL_WRAPPER_COL = { span: 24 };\n\nconst INPUT_STYLE = {\n width: '100%',\n};\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 displayLabel,\n id,\n label,\n onRemoveProperty,\n onKeyRenameBlur,\n readonly,\n required,\n registry,\n schema,\n uiSchema,\n } = props;\n const {\n colon,\n labelCol = VERTICAL_LABEL_COL,\n readonlyAsDisabled = true,\n rowGutter = 24,\n toolbarAlign = 'top',\n wrapperCol = VERTICAL_WRAPPER_COL,\n wrapperStyle,\n } = registry.formContext;\n const { templates, translateString } = registry;\n // Button templates are not overridden in the uiSchema\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n // The `block` prop is not part of the `IconButtonProps` defined in the template, so put it into the uiSchema instead\n const uiOptions = uiSchema ? uiSchema[UI_OPTIONS_KEY] : {};\n const buttonUiOptions = {\n ...uiSchema,\n [UI_OPTIONS_KEY]: { ...uiOptions, block: true },\n };\n\n return (\n <div className={classNames} style={style}>\n <Row align={toolbarAlign} gutter={rowGutter}>\n <Col className='form-additional' flex='1'>\n <div className='form-group'>\n <Form.Item\n colon={colon}\n className='form-group'\n hasFeedback\n htmlFor={`${id}-key`}\n label={displayLabel ? keyLabel : undefined}\n labelCol={labelCol}\n required={required}\n style={wrapperStyle}\n wrapperCol={wrapperCol}\n >\n <Input\n className='form-control'\n defaultValue={label}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={`${id}-key`}\n name={`${id}-key`}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n style={INPUT_STYLE}\n type='text'\n />\n </Form.Item>\n </div>\n </Col>\n <Col className='form-additional' flex='1'>\n {children}\n </Col>\n <Col flex='120px' style={{ marginTop: displayLabel ? '40px' : undefined }}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n className='rjsf-object-property-remove'\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={buttonUiOptions}\n registry={registry}\n />\n </Col>\n </Row>\n </div>\n );\n}\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport ArrayFieldItemTemplate from './ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from './ArrayFieldTemplate';\nimport BaseInputTemplate from './BaseInputTemplate';\nimport DescriptionField from './FieldDescriptionTemplate';\nimport ErrorList from './ErrorList';\nimport { AddButton, CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from './IconButton';\nimport FieldErrorTemplate from './FieldErrorTemplate';\nimport FieldTemplate from './FieldTemplate';\nimport GridTemplate from './GridTemplate';\nimport MultiSchemaFieldTemplate from './MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from './ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from './OptionalDataControlsTemplate';\nimport SubmitButton from './SubmitButton';\nimport TitleField from './TitleField';\nimport WrapIfAdditionalTemplate from './WrapIfAdditionalTemplate';\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 ClearButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\n\nexport default function AltDateTimeWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ time = true, ...props }: WidgetProps<T, S, F>) {\n const { AltDateWidget } = props.registry.widgets;\n return <AltDateWidget time={time} {...props} />;\n}\n", "import { Row, Col, Button } from 'antd';\nimport {\n DateElement,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n useAltDateWidgetProps,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function AltDateWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ autofocus = false, disabled = false, options, readonly = false, time = false, ...props }: WidgetProps<T, S, F>) {\n const { id, name, onBlur, onFocus, registry } = props;\n const { formContext, translateString } = registry;\n const { rowGutter = 24 } = formContext as GenericObjectType;\n const realOptions = { yearsRange: [1900, new Date().getFullYear() + 2], ...options };\n const { elements, handleChange, handleClear, handleSetNow } = useAltDateWidgetProps({\n ...props,\n autofocus,\n options: realOptions,\n });\n\n return (\n <Row gutter={[Math.floor(rowGutter / 2), Math.floor(rowGutter / 2)]}>\n {elements.map((elemProps, i) => {\n const elemId = `${id}_${elemProps.type}`;\n return (\n <Col flex='88px' key={elemId}>\n <DateElement\n rootId={id}\n name={name}\n select={handleChange}\n {...elemProps}\n disabled={disabled}\n readonly={readonly}\n registry={registry}\n onBlur={onBlur}\n onFocus={onFocus}\n autofocus={autofocus && i === 0}\n />\n </Col>\n );\n })}\n {!options.hideNowButton && (\n <Col flex='88px'>\n <Button block className='btn-now' onClick={handleSetNow} type='primary'>\n {translateString(TranslatableString.NowLabel)}\n </Button>\n </Col>\n )}\n {!options.hideClearButton && (\n <Col flex='88px'>\n <Button block className='btn-clear' danger onClick={handleClear} type='primary'>\n {translateString(TranslatableString.ClearLabel)}\n </Button>\n </Col>\n )}\n </Row>\n );\n}\n", "import { FocusEvent } from 'react';\nimport { Checkbox } from 'antd';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n WidgetProps,\n RJSFSchema,\n StrictRJSFSchema,\n GenericObjectType,\n} from '@rjsf/utils';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n autofocus,\n disabled,\n registry,\n id,\n htmlName,\n onBlur,\n onChange,\n onFocus,\n options,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const { enumOptions, enumDisabled, inline, emptyValue } = options;\n\n const handleChange = (nextValue: any) => onChange(enumOptionsValueForIndex<S>(nextValue, enumOptions, emptyValue));\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target.value, enumOptions, emptyValue));\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target.value, enumOptions, emptyValue));\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n id,\n onBlur: !readonly ? handleBlur : undefined,\n onFocus: !readonly ? handleFocus : undefined,\n };\n\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, true) as string[];\n\n return Array.isArray(enumOptions) && enumOptions.length > 0 ? (\n <>\n <Checkbox.Group\n disabled={disabled || (readonlyAsDisabled && readonly)}\n name={htmlName || id}\n onChange={!readonly ? handleChange : undefined}\n value={selectedIndexes}\n {...extraProps}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, i) => (\n <span key={i}>\n <Checkbox\n id={optionId(id, i)}\n name={htmlName || id}\n autoFocus={i === 0 ? autofocus : false}\n disabled={Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1}\n value={String(i)}\n >\n {option.label}\n </Checkbox>\n {!inline && <br />}\n </span>\n ))}\n </Checkbox.Group>\n </>\n ) : null;\n}\n", "import { FocusEvent } from 'react';\nimport { Checkbox, CheckboxProps } from 'antd';\nimport {\n ariaDescribedByIds,\n labelValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n GenericObjectType,\n} from '@rjsf/utils';\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { autofocus, disabled, registry, id, htmlName, label, hideLabel, onBlur, onChange, onFocus, readonly, value } =\n props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange: NonNullable<CheckboxProps['onChange']> = ({ target }) => onChange(target.checked);\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.checked);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.checked);\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n onBlur: !readonly ? handleBlur : undefined,\n onFocus: !readonly ? handleFocus : undefined,\n };\n return (\n <Checkbox\n autoFocus={autofocus}\n checked={typeof value === 'undefined' ? false : value}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onChange={!readonly ? handleChange : undefined}\n {...extraProps}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {labelValue(label, hideLabel, '')}\n </Checkbox>\n );\n}\n", "import dayjs from 'dayjs';\nimport {\n ariaDescribedByIds,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nimport { DatePicker } from 'antd';\n\nconst DATE_PICKER_STYLE = {\n width: '100%',\n};\n\n/** The `DateTimeWidget` component uses the `BaseInputTemplate` changing the type to `datetime-local` and transforms\n * the value to/from utc using the appropriate utility functions.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function DateTimeWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { disabled, registry, id, onBlur, onChange, onFocus, placeholder, readonly, value } = props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange = (nextValue: any) => onChange(nextValue && nextValue.toISOString());\n\n const handleBlur = () => onBlur(id, value);\n\n const handleFocus = () => onFocus(id, value);\n\n const getPopupContainer = (node: any) => node.parentNode;\n\n return (\n <DatePicker\n disabled={disabled || (readonlyAsDisabled && readonly)}\n getPopupContainer={getPopupContainer}\n id={id}\n name={id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n showTime\n style={DATE_PICKER_STYLE}\n value={value && dayjs(value)}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import dayjs from 'dayjs';\nimport {\n ariaDescribedByIds,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n GenericObjectType,\n} from '@rjsf/utils';\n\nimport { DatePicker } from 'antd';\n\nconst DATE_PICKER_STYLE = {\n width: '100%',\n};\n\n/** The `DateWidget` component uses the `BaseInputTemplate` changing the type to `date` and transforms\n * the value to undefined when it is falsy during the `onChange` handling.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function DateWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { disabled, registry, id, onBlur, onChange, onFocus, placeholder, readonly, value } = props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange = (nextValue: any) => onChange(nextValue && nextValue.format('YYYY-MM-DD'));\n\n const handleBlur = () => onBlur(id, value);\n\n const handleFocus = () => onFocus(id, value);\n\n const getPopupContainer = (node: any) => node.parentNode;\n\n return (\n <DatePicker\n disabled={disabled || (readonlyAsDisabled && readonly)}\n getPopupContainer={getPopupContainer}\n id={id}\n name={id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n showTime={false}\n style={DATE_PICKER_STYLE}\n value={value && dayjs(value)}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport { Input } from 'antd';\nimport {\n ariaDescribedByIds,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n GenericObjectType,\n} from '@rjsf/utils';\n\n/** The `PasswordWidget` component uses the `BaseInputTemplate` changing the type to `password`.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function PasswordWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { disabled, registry, id, onBlur, onChange, onFocus, options, placeholder, readonly, value } = props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const emptyValue = options.emptyValue || '';\n\n const handleChange = ({ target }: ChangeEvent<HTMLInputElement>) =>\n onChange(target.value === '' ? emptyValue : target.value);\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target.value);\n\n return (\n <Input.Password\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n value={value || ''}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import { FocusEvent } from 'react';\nimport { Radio, RadioChangeEvent } from 'antd';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n autofocus,\n disabled,\n registry,\n id,\n htmlName,\n onBlur,\n onChange,\n onFocus,\n options,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const handleChange = ({ target: { value: nextValue } }: RadioChangeEvent) =>\n onChange(enumOptionsValueForIndex<S>(nextValue, enumOptions, emptyValue));\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions) as string;\n\n return (\n <Radio.Group\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onChange={!readonly ? handleChange : undefined}\n onBlur={!readonly ? handleBlur : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n value={selectedIndexes}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, i) => (\n <Radio\n id={optionId(id, i)}\n name={htmlName || id}\n autoFocus={i === 0 ? autofocus : false}\n disabled={disabled || (Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1)}\n key={i}\n value={String(i)}\n >\n {option.label}\n </Radio>\n ))}\n </Radio.Group>\n );\n}\n", "import { Slider } from 'antd';\nimport {\n ariaDescribedByIds,\n rangeSpec,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n GenericObjectType,\n} from '@rjsf/utils';\n\n/** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result\n * in a div, with the value along side it.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n autofocus,\n disabled,\n registry,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n schema,\n value,\n } = props;\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const { min, max, step } = rangeSpec(schema);\n\n const emptyValue = options.emptyValue || '';\n\n const handleChange = (nextValue: any) => onChange(nextValue === '' ? emptyValue : nextValue);\n\n const handleBlur = () => onBlur(id, value);\n\n const handleFocus = () => onFocus(id, value);\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n placeholder,\n onBlur: !readonly ? handleBlur : undefined,\n onFocus: !readonly ? handleFocus : undefined,\n };\n\n return (\n <Slider\n autoFocus={autofocus}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n max={max}\n min={min}\n onChange={!readonly ? handleChange : undefined}\n range={false}\n step={step}\n value={value}\n {...extraProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import { useMemo, useState } from 'react';\nimport { Select, SelectProps } from 'antd';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport isString from 'lodash/isString';\nimport { DefaultOptionType } from 'antd/es/select';\n\nconst SELECT_STYLE = {\n width: '100%',\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<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n autofocus,\n disabled,\n registry,\n id,\n htmlName,\n multiple,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n value,\n schema,\n}: WidgetProps<T, S, F>) {\n const [open, setOpen] = useState(false);\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const handleChange = (nextValue: any) => onChange(enumOptionsValueForIndex<S>(nextValue, enumOptions, emptyValue));\n\n const handleBlur = () => onBlur(id, enumOptionsValueForIndex<S>(value, enumOptions, emptyValue));\n\n const handleFocus = () => onFocus(id, enumOptionsValueForIndex<S>(value, enumOptions, emptyValue));\n\n const filterOption: SelectProps['filterOption'] = (input, option) => {\n if (option && isString(option.label)) {\n // labels are strings in this context\n return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;\n }\n return false;\n };\n\n const getPopupContainer = SelectWidget.getPopupContainerCallback();\n\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n name: htmlName || id,\n };\n\n const showPlaceholderOption = !multiple && schema.default === undefined;\n\n const selectOptions: DefaultOptionType[] | undefined = useMemo(() => {\n if (Array.isArray(enumOptions)) {\n const options: DefaultOptionType[] = enumOptions.map(({ value: optionValue, label: optionLabel }, index) => ({\n disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(optionValue) !== -1,\n key: String(index),\n value: String(index),\n label: optionLabel,\n }));\n\n if (showPlaceholderOption) {\n options.unshift({ value: '', label: placeholder || '' });\n }\n return options;\n }\n return undefined;\n }, [enumDisabled, enumOptions, placeholder, showPlaceholderOption]);\n\n return (\n <Select\n open={open}\n autoFocus={autofocus}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n getPopupContainer={getPopupContainer}\n id={id}\n mode={multiple ? 'multiple' : undefined}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n style={SELECT_STYLE}\n value={selectedIndexes}\n {...extraProps}\n // When the open change is called, set the open state, needed so that the select opens properly in the playground\n onOpenChange={setOpen}\n filterOption={filterOption}\n aria-describedby={ariaDescribedByIds(id)}\n options={selectOptions}\n />\n );\n}\n\n/** Give the playground a place to hook into the `getPopupContainer` callback generation function so that it can be\n * disabled while in the playground. Since the callback is a simple function, it can be returned by this static\n * \"generator\" function.\n */\nSelectWidget.getPopupContainerCallback = () => (node: any) => node.parentElement;\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport { Input } from 'antd';\nimport {\n ariaDescribedByIds,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nconst INPUT_STYLE = {\n width: '100%',\n};\n\n/** The `TextareaWidget` is a widget for rendering input fields as textarea.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n disabled,\n registry,\n id,\n htmlName,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\n const { formContext } = registry;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange = ({ target }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange(target.value === '' ? options.emptyValue : target.value);\n\n const handleBlur = ({ target }: FocusEvent<HTMLTextAreaElement>) => onBlur(id, target && target.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLTextAreaElement>) => onFocus(id, target && target.value);\n\n // Antd's typescript definitions do not contain the following props that are actually necessary and, if provided,\n // they are used, so hacking them in via by spreading `extraProps` on the component to avoid typescript errors\n const extraProps = {\n type: 'textarea',\n };\n\n return (\n <Input.TextArea\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={htmlName || id}\n onBlur={!readonly ? handleBlur : undefined}\n onChange={!readonly ? handleChange : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n placeholder={placeholder}\n rows={options.rows || 4}\n style={INPUT_STYLE}\n value={value}\n {...extraProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport AltDateTimeWidget from './AltDateTimeWidget';\nimport AltDateWidget from './AltDateWidget';\nimport CheckboxesWidget from './CheckboxesWidget';\nimport CheckboxWidget from './CheckboxWidget';\nimport DateTimeWidget from './DateTimeWidget';\nimport DateWidget from './DateWidget';\nimport PasswordWidget from './PasswordWidget';\nimport RadioWidget from './RadioWidget';\nimport RangeWidget from './RangeWidget';\nimport SelectWidget from './SelectWidget';\nimport TextareaWidget from './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 AltDateTimeWidget,\n AltDateWidget,\n CheckboxesWidget,\n CheckboxWidget,\n DateTimeWidget,\n DateWidget,\n PasswordWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n"],
5
+ "mappings": ";AAEA,SAAgC,iBAAiB;;;ACFjD,SAAS,KAAK,KAAK,aAAa;AAChC;AAAA,EAGE;AAAA,EACA;AAAA,OAGK;AA+BH,SACE,KADF;AA7BJ,IAAM,gBAAgB;AAAA,EACpB,OAAO;AAAA,EACP,gBAAgB;AAClB;AAEA,IAAM,YAAY;AAAA,EAChB,OAAO;AACT;AAMe,SAAR,uBAIL,OAA6C;AAC7C,QAAM,EAAE,UAAU,cAAc,cAAc,gBAAgB,YAAY,OAAO,UAAU,SAAS,IAAI;AACxG,QAAM,YAAY,aAAsB,QAAQ;AAChD,QAAM,gCAAgC;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,QAAM,EAAE,YAAY,IAAI,eAAe,eAAe,WAAW,MAAM,IAAI,SAAS;AACpF,QAAM,SAAS,iBAAiB,KAAK;AAErC,SACE,qBAAC,OAAI,OAAO,cAA+C,QAAQ,WACjE;AAAA,wBAAC,OAAI,MAAK,KAAK,UAAS;AAAA,IACvB,cACC,oBAAC,OAAI,MAAK,SAAQ,OAAO,EAAE,WAAW,eAAe,GAAG,MAAM,OAAO,OAAU,GAC7E,8BAAC,MAAM,SAAN,EAAc,OAAO,eACpB,8BAAC,iCAA+B,GAAG,cAAc,OAAO,WAAW,GACrE,GACF;AAAA,OAP2B,mBAAmB,KAAK,EASvD;AAEJ;;;AClDA;AAAA,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AAa;AAAA,IACjB,MAAM;AAAA,EACR;AAEA,SACE,gBAAAD;AAAA,IAACF,OAAM;AAAA,IAAN;AAAA,MACC,UAAU,YAAa,sBAAsB;AAAA,MAC7C;AAAA,MACA,MAAM,YAAY;AAAA,MAClB,QAAQ,CAAC,WAAW,aAAa;AAAA,MACjC,UAAU,CAAC,WAAW,eAAe;AAAA,MACrC,SAAS,CAAC,WAAW,cAAc;AAAA,MACnC;AAAA,MACA,MAAM,QAAQ,QAAQ;AAAA,MACtB,OAAOG;AAAA,MACP;AAAA,MACC,GAAG;AAAA,MACJ,oBAAkBF,qBAAmB,EAAE;AAAA;AAAA,EACzC;AAEJ;;;ACtDO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;A5B3BxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAM,QAAQ,cAAc;AAErB,SAAS,eAIuB;AACrC,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAMG,QAAO,aAAa;AAI1B,IAAO,gBAAQC;",
6
6
  "names": ["getTemplate", "getUiOptions", "Col", "Row", "jsx", "jsxs", "AddButton", "jsx", "jsxs", "ClearButton", "jsx", "Space", "jsx", "jsxs", "getUiOptions", "TranslatableString", "jsx", "jsx", "getTemplate", "getUiOptions", "jsx", "WrapIfAdditionalTemplate", "Col", "Row", "jsx", "jsx", "jsxs", "classNames", "getTemplate", "getUiOptions", "buttonId", "Col", "Row", "ConfigProvider", "useContext", "jsx", "jsxs", "AddButton", "jsx", "Button", "jsx", "classNames", "Col", "Row", "ConfigProvider", "useContext", "Fragment", "jsx", "jsxs", "Col", "Row", "Form", "Input", "TranslatableString", "buttonId", "jsx", "jsxs", "VERTICAL_LABEL_COL", "VERTICAL_WRAPPER_COL", "INPUT_STYLE", "classNames", "RemoveButton", "jsx", "AltDateWidget", "Row", "Col", "Button", "TranslatableString", "jsx", "jsxs", "ariaDescribedByIds", "Fragment", "jsx", "jsxs", "Checkbox", "ariaDescribedByIds", "jsx", "ariaDescribedByIds", "jsx", "dayjs", "ariaDescribedByIds", "DatePicker", "jsx", "DATE_PICKER_STYLE", "Input", "ariaDescribedByIds", "jsx", "ariaDescribedByIds", "enumOptionsIndexForValue", "enumOptionsValueForIndex", "optionId", "jsx", "ariaDescribedByIds", "jsx", "ariaDescribedByIds", "enumOptionsIndexForValue", "enumOptionsValueForIndex", "isString", "jsx", "options", "Input", "ariaDescribedByIds", "jsx", "INPUT_STYLE", "Form", "Form"]
7
7
  }
package/dist/antd.umd.js CHANGED
@@ -165,9 +165,7 @@
165
165
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
166
166
  input,
167
167
  options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsxRuntime.jsx(ClearButton2, { registry, onClick: handleClear }),
168
- Array.isArray(schema.examples) && /* @__PURE__ */ jsxRuntime.jsx("datalist", { id: utils.examplesId(id), children: schema.examples.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : []).map((example) => {
169
- return /* @__PURE__ */ jsxRuntime.jsx("option", { value: example }, example);
170
- }) })
168
+ /* @__PURE__ */ jsxRuntime.jsx(core.SchemaExamples, { id, schema })
171
169
  ] });
172
170
  }
173
171
  function DescriptionField(props) {
package/dist/index.cjs CHANGED
@@ -41,7 +41,7 @@ __export(index_exports, {
41
41
  generateWidgets: () => generateWidgets
42
42
  });
43
43
  module.exports = __toCommonJS(index_exports);
44
- var import_core2 = require("@rjsf/core");
44
+ var import_core3 = require("@rjsf/core");
45
45
 
46
46
  // src/templates/ArrayFieldItemTemplate/index.tsx
47
47
  var import_antd = require("antd");
@@ -147,6 +147,7 @@ function ArrayFieldTemplate(props) {
147
147
  var import_react2 = require("react");
148
148
  var import_antd3 = require("antd");
149
149
  var import_utils3 = require("@rjsf/utils");
150
+ var import_core = require("@rjsf/core");
150
151
  var import_jsx_runtime3 = require("react/jsx-runtime");
151
152
  var INPUT_STYLE = {
152
153
  width: "100%"
@@ -220,21 +221,19 @@ function BaseInputTemplate(props) {
220
221
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
221
222
  input,
222
223
  options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ClearButton2, { registry, onClick: handleClear }),
223
- Array.isArray(schema.examples) && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("datalist", { id: (0, import_utils3.examplesId)(id), children: schema.examples.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : []).map((example) => {
224
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: example }, example);
225
- }) })
224
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_core.SchemaExamples, { id, schema })
226
225
  ] });
227
226
  }
228
227
 
229
228
  // src/templates/FieldDescriptionTemplate/index.tsx
230
- var import_core = require("@rjsf/core");
229
+ var import_core2 = require("@rjsf/core");
231
230
  var import_jsx_runtime4 = require("react/jsx-runtime");
232
231
  function DescriptionField(props) {
233
232
  const { id, description, registry, uiSchema } = props;
234
233
  if (!description) {
235
234
  return null;
236
235
  }
237
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { id, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_core.RichDescription, { description, registry, uiSchema }) });
236
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { id, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_core2.RichDescription, { description, registry, uiSchema }) });
238
237
  }
239
238
 
240
239
  // src/templates/ErrorList/index.tsx
@@ -1271,7 +1270,7 @@ function generateTheme() {
1271
1270
  }
1272
1271
  var Theme = generateTheme();
1273
1272
  function generateForm() {
1274
- return (0, import_core2.withTheme)(generateTheme());
1273
+ return (0, import_core3.withTheme)(generateTheme());
1275
1274
  }
1276
1275
  var Form3 = generateForm();
1277
1276
  var index_default = Form3;