@rjsf/antd 5.12.1 → 5.13.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 +14 -12
- package/dist/antd.esm.js.map +4 -4
- package/dist/antd.umd.js +16 -10
- package/dist/index.js +18 -16
- package/dist/index.js.map +4 -4
- package/lib/templates/IconButton/index.d.ts +1 -1
- package/lib/templates/IconButton/index.js +2 -2
- package/lib/templates/IconButton/index.js.map +1 -1
- package/lib/widgets/AltDateWidget/index.js.map +1 -1
- package/lib/widgets/DateTimeWidget/index.js +1 -1
- package/lib/widgets/DateTimeWidget/index.js.map +1 -1
- package/lib/widgets/DateWidget/index.js +1 -1
- package/lib/widgets/DateWidget/index.js.map +1 -1
- package/package.json +26 -26
- package/src/templates/IconButton/index.tsx +11 -3
- package/src/widgets/AltDateWidget/index.tsx +2 -2
- package/src/widgets/DateTimeWidget/index.tsx +1 -1
- package/src/widgets/DateWidget/index.tsx +1 -1
- package/lib/components/DatePicker/index.d.ts +0 -48
- package/lib/components/DatePicker/index.js +0 -5
- package/lib/components/DatePicker/index.js.map +0 -1
- package/src/components/DatePicker/index.ts +0 -6
package/dist/antd.esm.js
CHANGED
|
@@ -298,8 +298,16 @@ import {
|
|
|
298
298
|
} from "@rjsf/utils";
|
|
299
299
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
300
300
|
function IconButton(props) {
|
|
301
|
-
const { iconType = "default", icon, uiSchema, registry, ...otherProps } = props;
|
|
302
|
-
return /* @__PURE__ */ jsx6(
|
|
301
|
+
const { iconType = "default", icon, onClick, uiSchema, registry, ...otherProps } = props;
|
|
302
|
+
return /* @__PURE__ */ jsx6(
|
|
303
|
+
Button2,
|
|
304
|
+
{
|
|
305
|
+
onClick,
|
|
306
|
+
type: iconType,
|
|
307
|
+
icon,
|
|
308
|
+
...otherProps
|
|
309
|
+
}
|
|
310
|
+
);
|
|
303
311
|
}
|
|
304
312
|
function AddButton(props) {
|
|
305
313
|
const {
|
|
@@ -1005,14 +1013,7 @@ import dayjs from "dayjs";
|
|
|
1005
1013
|
import {
|
|
1006
1014
|
ariaDescribedByIds as ariaDescribedByIds5
|
|
1007
1015
|
} from "@rjsf/utils";
|
|
1008
|
-
|
|
1009
|
-
// src/components/DatePicker/index.ts
|
|
1010
|
-
import dayjsGenerateConfig from "rc-picker/lib/generate/dayjs";
|
|
1011
|
-
import generatePicker from "antd/lib/date-picker/generatePicker";
|
|
1012
|
-
var DatePicker = generatePicker(dayjsGenerateConfig);
|
|
1013
|
-
var DatePicker_default = DatePicker;
|
|
1014
|
-
|
|
1015
|
-
// src/widgets/DateTimeWidget/index.tsx
|
|
1016
|
+
import DatePicker from "antd/lib/date-picker";
|
|
1016
1017
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1017
1018
|
var DATE_PICKER_STYLE = {
|
|
1018
1019
|
width: "100%"
|
|
@@ -1025,7 +1026,7 @@ function DateTimeWidget(props) {
|
|
|
1025
1026
|
const handleFocus = () => onFocus(id, value);
|
|
1026
1027
|
const getPopupContainer = (node) => node.parentNode;
|
|
1027
1028
|
return /* @__PURE__ */ jsx17(
|
|
1028
|
-
|
|
1029
|
+
DatePicker,
|
|
1029
1030
|
{
|
|
1030
1031
|
disabled: disabled || readonlyAsDisabled && readonly,
|
|
1031
1032
|
getPopupContainer,
|
|
@@ -1048,6 +1049,7 @@ import dayjs2 from "dayjs";
|
|
|
1048
1049
|
import {
|
|
1049
1050
|
ariaDescribedByIds as ariaDescribedByIds6
|
|
1050
1051
|
} from "@rjsf/utils";
|
|
1052
|
+
import DatePicker2 from "antd/lib/date-picker";
|
|
1051
1053
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1052
1054
|
var DATE_PICKER_STYLE2 = {
|
|
1053
1055
|
width: "100%"
|
|
@@ -1060,7 +1062,7 @@ function DateWidget(props) {
|
|
|
1060
1062
|
const handleFocus = () => onFocus(id, value);
|
|
1061
1063
|
const getPopupContainer = (node) => node.parentNode;
|
|
1062
1064
|
return /* @__PURE__ */ jsx18(
|
|
1063
|
-
|
|
1065
|
+
DatePicker2,
|
|
1064
1066
|
{
|
|
1065
1067
|
disabled: disabled || readonlyAsDisabled && readonly,
|
|
1066
1068
|
getPopupContainer,
|
package/dist/antd.esm.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/index.ts", "../src/templates/ArrayFieldItemTemplate/index.tsx", "../src/templates/ArrayFieldTemplate/index.tsx", "../src/templates/BaseInputTemplate/index.tsx", "../src/templates/DescriptionField/index.tsx", "../src/templates/ErrorList/index.tsx", "../src/templates/IconButton/index.tsx", "../src/templates/FieldErrorTemplate/index.tsx", "../src/templates/FieldTemplate/index.tsx", "../src/templates/ObjectFieldTemplate/index.tsx", "../src/templates/SubmitButton/index.tsx", "../src/templates/TitleField/index.tsx", "../src/templates/WrapIfAdditionalTemplate/index.tsx", "../src/templates/index.ts", "../src/widgets/AltDateWidget/index.tsx", "../src/widgets/AltDateTimeWidget/index.tsx", "../src/widgets/CheckboxesWidget/index.tsx", "../src/widgets/CheckboxWidget/index.tsx", "../src/widgets/DateTimeWidget/index.tsx", "../src/
|
|
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 Button from 'antd/lib/button';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport { ArrayFieldTemplateItemType, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nconst BTN_GRP_STYLE = {\n width: '100%',\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 `ArrayFieldTemplateItemType` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: ArrayFieldTemplateItemType<T, S, F>) {\n const {\n children,\n disabled,\n hasCopy,\n hasMoveDown,\n hasMoveUp,\n hasRemove,\n hasToolbar,\n index,\n onCopyIndexClick,\n onDropIndexClick,\n onReorderClick,\n readonly,\n registry,\n uiSchema,\n } = props;\n const { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } = registry.templates.ButtonTemplates;\n const { rowGutter = 24, toolbarAlign = 'top' } = registry.formContext;\n\n return (\n <Row align={toolbarAlign} key={`array-item-${index}`} gutter={rowGutter}>\n <Col flex='1'>{children}</Col>\n\n {hasToolbar && (\n <Col flex='192px'>\n <Button.Group style={BTN_GRP_STYLE}>\n {(hasMoveUp || hasMoveDown) && (\n <MoveUpButton\n disabled={disabled || readonly || !hasMoveUp}\n onClick={onReorderClick(index, index - 1)}\n style={BTN_STYLE}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {(hasMoveUp || hasMoveDown) && (\n <MoveDownButton\n disabled={disabled || readonly || !hasMoveDown}\n onClick={onReorderClick(index, index + 1)}\n style={BTN_STYLE}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {hasCopy && (\n <CopyButton\n disabled={disabled || readonly}\n onClick={onCopyIndexClick(index)}\n style={BTN_STYLE}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {hasRemove && (\n <RemoveButton\n disabled={disabled || readonly}\n onClick={onDropIndexClick(index)}\n style={BTN_STYLE}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n </Button.Group>\n </Col>\n )}\n </Row>\n );\n}\n", "import {\n getTemplate,\n getUiOptions,\n ArrayFieldTemplateProps,\n ArrayFieldTemplateItemType,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport classNames from 'classnames';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport { ConfigConsumer, ConfigConsumerProps } from 'antd/lib/config-provider/context';\n\nconst DESCRIPTION_COL_STYLE = {\n paddingBottom: '8px',\n};\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateItemType` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n className,\n disabled,\n formContext,\n idSchema,\n items,\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 ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions\n );\n const ArrayFieldItemTemplate = getTemplate<'ArrayFieldItemTemplate', T, S, F>(\n 'ArrayFieldItemTemplate',\n registry,\n uiOptions\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions\n );\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n const { labelAlign = 'right', rowGutter = 24 } = formContext as GenericObjectType;\n\n return (\n <ConfigConsumer>\n {(configProps: ConfigConsumerProps) => {\n const { getPrefixCls } = configProps;\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={idSchema.$id}>\n <Row gutter={rowGutter}>\n {(uiOptions.title || title) && (\n <Col className={labelColClassName} span={24}>\n <ArrayFieldTitleTemplate\n idSchema={idSchema}\n required={required}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n )}\n {(uiOptions.description || schema.description) && (\n <Col span={24} style={DESCRIPTION_COL_STYLE}>\n <ArrayFieldDescriptionTemplate\n description={uiOptions.description || schema.description}\n idSchema={idSchema}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n )}\n <Col className='row array-item-list' span={24}>\n {items &&\n items.map(({ key, ...itemProps }: ArrayFieldTemplateItemType<T, S, F>) => (\n <ArrayFieldItemTemplate key={key} {...itemProps} />\n ))}\n </Col>\n\n {canAdd && (\n <Col span={24}>\n <Row gutter={rowGutter} justify='end'>\n <Col flex='192px'>\n <AddButton\n className='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 </ConfigConsumer>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Input from 'antd/lib/input';\nimport InputNumber from 'antd/lib/input-number';\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 formContext,\n id,\n onBlur,\n onChange,\n onChangeOverride,\n onFocus,\n options,\n placeholder,\n readonly,\n schema,\n value,\n type,\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options, false);\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\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.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target.value);\n\n const input =\n inputProps.type === 'number' || inputProps.type === 'integer' ? (\n <InputNumber\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={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<T>(id) : undefined}\n {...inputProps}\n value={value}\n aria-describedby={ariaDescribedByIds<T>(id, !!schema.examples)}\n />\n ) : (\n <Input\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={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<T>(id) : undefined}\n {...inputProps}\n value={value}\n aria-describedby={ariaDescribedByIds<T>(id, !!schema.examples)}\n />\n );\n\n return (\n <>\n {input}\n {Array.isArray(schema.examples) && (\n <datalist id={examplesId<T>(id)}>\n {(schema.examples as string[])\n .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])\n .map((example) => {\n return <option key={example} value={example} />;\n })}\n </datalist>\n )}\n </>\n );\n}\n", "import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description } = props;\n if (!description) {\n return null;\n }\n return <span id={id}>{description}</span>;\n}\n", "import Alert from 'antd/lib/alert';\nimport List from 'antd/lib/list';\nimport Space from 'antd/lib/space';\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, ButtonType } from 'antd/lib/button';\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 {\n getUiOptions,\n FormContextType,\n IconButtonProps,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n} from '@rjsf/utils';\n\n// The `type` for IconButtonProps collides with the `type` for `ButtonProps` so omit it to avoid Typescript issue\nexport type AntdIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n> = Omit<IconButtonProps<T, S, F>, 'type'>;\n\nexport default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F> & ButtonProps\n) {\n const { iconType = 'default', icon, uiSchema, registry, ...otherProps } = props;\n return <Button type={iconType as ButtonType} icon={icon} {...otherProps} />;\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 {...props}\n block\n iconType='primary'\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 {...props}\n danger\n block={!!options.block}\n iconType='primary'\n icon={<DeleteOutlined />}\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 = [], idSchema } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId<T>(idSchema);\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/lib/form';\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 classNames,\n style,\n description,\n disabled,\n displayLabel,\n errors,\n formContext,\n help,\n hidden,\n id,\n label,\n onDropPropertyClick,\n onKeyChange,\n rawErrors,\n rawDescription,\n rawHelp,\n readonly,\n registry,\n required,\n schema,\n uiSchema,\n } = props;\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 const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions\n );\n\n if (hidden) {\n return <div className='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\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n onDropPropertyClick={onDropPropertyClick}\n onKeyChange={onKeyChange}\n readonly={readonly}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n >\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 && 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 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 descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\n} from '@rjsf/utils';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport { ConfigConsumer, ConfigConsumerProps } from 'antd/lib/config-provider/context';\n\nconst DESCRIPTION_COL_STYLE = {\n paddingBottom: '8px',\n};\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n disabled,\n formContext,\n formData,\n idSchema,\n onAddClick,\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 DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions\n );\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n const { 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 return (\n <ConfigConsumer>\n {(configProps: ConfigConsumerProps) => {\n const { getPrefixCls } = configProps;\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={idSchema.$id}>\n <Row gutter={rowGutter}>\n {title && (\n <Col className={labelColClassName} span={24}>\n <TitleFieldTemplate\n id={titleId<T>(idSchema)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n )}\n {description && (\n <Col span={24} style={DESCRIPTION_COL_STYLE}>\n <DescriptionFieldTemplate\n id={descriptionId<T>(idSchema)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n )}\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\n {canExpand(schema, uiSchema, formData) && (\n <Col span={24}>\n <Row gutter={rowGutter} justify='end'>\n <Col flex='192px'>\n <AddButton\n className='object-property-expand'\n disabled={disabled || readonly}\n onClick={onAddClick(schema)}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n </Col>\n )}\n </fieldset>\n );\n }}\n </ConfigConsumer>\n );\n}\n", "import Button, { ButtonType } from 'antd/lib/button';\nimport { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\n/** The `SubmitButton` renders a button that represent the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions(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 { ConfigConsumer, ConfigConsumerProps } from 'antd/lib/config-provider/context';\nimport { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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}: 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 return title ? (\n <ConfigConsumer>\n {(configProps: ConfigConsumerProps) => {\n const { getPrefixCls } = configProps;\n const prefixCls = getPrefixCls('form');\n const labelClassName = classNames({\n [`${prefixCls}-item-required`]: required,\n [`${prefixCls}-item-no-colon`]: !colon,\n });\n\n return (\n <label\n className={labelClassName}\n htmlFor={id}\n onClick={handleLabelClick}\n title={typeof title === 'string' ? title : ''}\n >\n {labelChildren}\n </label>\n );\n }}\n </ConfigConsumer>\n ) : null;\n}\n", "import { FocusEvent } from 'react';\nimport Col from 'antd/lib/col';\nimport Form from 'antd/lib/form';\nimport Input from 'antd/lib/input';\nimport Row from 'antd/lib/row';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n UI_OPTIONS_KEY,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\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 id,\n label,\n onDropPropertyClick,\n onKeyChange,\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 const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onKeyChange(target.value);\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={keyLabel}\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 ? handleBlur : 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='192px'>\n <RemoveButton\n className='array-item-remove'\n disabled={disabled || readonly}\n onClick={onDropPropertyClick(label)}\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 './DescriptionField';\nimport ErrorList from './ErrorList';\nimport { AddButton, CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from './IconButton';\nimport FieldErrorTemplate from './FieldErrorTemplate';\nimport FieldTemplate from './FieldTemplate';\nimport ObjectFieldTemplate from './ObjectFieldTemplate';\nimport SubmitButton from './SubmitButton';\nimport TitleField from './TitleField';\nimport WrapIfAdditionalTemplate from './WrapIfAdditionalTemplate';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldTemplate,\n ObjectFieldTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { MouseEvent, useEffect, useState } from 'react';\nimport Button from 'antd/lib/button';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport {\n ariaDescribedByIds,\n pad,\n parseDateString,\n toDateString,\n DateObject,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WidgetProps,\n} from '@rjsf/utils';\n\ntype DateElementProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = Pick<\n WidgetProps<T, S, F>,\n 'id' | 'name' | 'value' | 'disabled' | 'readonly' | 'autofocus' | 'registry' | 'onBlur' | 'onFocus'\n> & {\n select: (property: keyof DateObject, value: any) => void;\n type: string;\n range: [number, number];\n};\n\nconst rangeOptions = (start: number, stop: number) => {\n const options = [];\n for (let i = start; i <= stop; i++) {\n options.push({ value: i, label: pad(i, 2) });\n }\n return options;\n};\n\nconst readyForChange = (state: DateObject) => {\n return Object.values(state).every((value) => value !== -1);\n};\n\nfunction dateElementProps(\n state: DateObject,\n time: boolean,\n yearsRange: [number, number] = [1900, new Date().getFullYear() + 2]\n) {\n const { year, month, day, hour, minute, second } = state;\n const data = [\n {\n type: 'year',\n range: yearsRange,\n value: year,\n },\n { type: 'month', range: [1, 12], value: month },\n { type: 'day', range: [1, 31], value: day },\n ] as { type: string; range: [number, number]; value: number }[];\n if (time) {\n data.push(\n { type: 'hour', range: [0, 23], value: hour || -1 },\n { type: 'minute', range: [0, 59], value: minute || -1 },\n { type: 'second', range: [0, 59], value: second || -1 }\n );\n }\n return data;\n}\n\nexport default function AltDateWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: WidgetProps<T, S, F>) {\n const {\n autofocus,\n disabled,\n formContext,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n readonly,\n registry,\n showTime,\n value,\n } = props;\n const { translateString, widgets } = registry;\n const { SelectWidget } = widgets;\n const { rowGutter = 24 } = formContext as GenericObjectType;\n\n const [state, setState] = useState(parseDateString(value, showTime));\n\n useEffect(() => {\n setState(parseDateString(value, showTime));\n }, [showTime, value]);\n\n const handleChange = (property: keyof DateObject, nextValue: any) => {\n const nextState = {\n ...state,\n [property]: typeof nextValue === 'undefined' ? -1 : nextValue,\n };\n\n if (readyForChange(nextState)) {\n onChange(toDateString(nextState, showTime));\n } else {\n setState(nextState);\n }\n };\n\n const handleNow = (event: MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n if (disabled || readonly) {\n return;\n }\n const nextState = parseDateString(new Date().toJSON(), showTime);\n onChange(toDateString(nextState, showTime));\n };\n\n const handleClear = (event: MouseEvent<HTMLButtonElement>) => {\n event.preventDefault();\n if (disabled || readonly) {\n return;\n }\n onChange(undefined);\n };\n\n const renderDateElement = (elemProps: DateElementProps<T, S, F>) => (\n <SelectWidget\n autofocus={elemProps.autofocus}\n className='form-control'\n disabled={elemProps.disabled}\n id={elemProps.id}\n name={elemProps.name}\n onBlur={elemProps.onBlur}\n onChange={(elemValue) => elemProps.select(elemProps.type as keyof DateObject, elemValue)}\n onFocus={elemProps.onFocus}\n options={{\n enumOptions: rangeOptions(elemProps.range[0], elemProps.range[1]),\n }}\n placeholder={elemProps.type}\n readonly={elemProps.readonly}\n schema={{ type: 'integer' } as S}\n value={elemProps.value}\n registry={registry}\n label=''\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n\n return (\n <Row gutter={[Math.floor(rowGutter / 2), Math.floor(rowGutter / 2)]}>\n {dateElementProps(state, showTime, options.yearsRange as [number, number] | undefined).map((elemProps, i) => {\n const elemId = id + '_' + elemProps.type;\n return (\n <Col flex='88px' key={elemId}>\n {renderDateElement({\n ...elemProps,\n autofocus: autofocus && i === 0,\n disabled,\n id: elemId,\n name: id,\n onBlur,\n onFocus,\n readonly,\n registry,\n select: handleChange,\n // NOTE: antd components accept -1 rather than issue a warning\n // like material-ui, so we need to convert -1 to undefined here.\n value: elemProps.value < 0 ? undefined : elemProps.value,\n })}\n </Col>\n );\n })}\n {!options.hideNowButton && (\n <Col flex='88px'>\n <Button block className='btn-now' onClick={handleNow} 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\nAltDateWidget.defaultProps = {\n autofocus: false,\n disabled: false,\n options: {\n yearsRange: [1900, new Date().getFullYear() + 2],\n },\n readonly: false,\n showTime: false,\n};\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\n\nimport _AltDateWidget from '../AltDateWidget';\n\nexport default function AltDateTimeWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: WidgetProps<T, S, F>) {\n const { AltDateWidget } = props.registry.widgets;\n return <AltDateWidget showTime {...props} />;\n}\n\nAltDateTimeWidget.defaultProps = {\n ..._AltDateWidget.defaultProps,\n showTime: true,\n};\n", "import { FocusEvent } from 'react';\nimport Checkbox from 'antd/lib/checkbox';\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>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value }: WidgetProps<T, S, F>) {\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={id}\n onChange={!readonly ? handleChange : undefined}\n value={selectedIndexes}\n {...extraProps}\n aria-describedby={ariaDescribedByIds<T>(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, i) => (\n <span key={i}>\n <Checkbox\n id={optionId(id, i)}\n name={id}\n autoFocus={i === 0 ? autofocus : false}\n disabled={Array.isArray(enumDisabled) && enumDisabled.indexOf(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, { CheckboxChangeEvent } from 'antd/lib/checkbox';\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, formContext, id, label, hideLabel, onBlur, onChange, onFocus, readonly, value } = props;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange = ({ target }: CheckboxChangeEvent) => onChange(target.checked);\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target.checked);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, 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={id}\n onChange={!readonly ? handleChange : undefined}\n {...extraProps}\n aria-describedby={ariaDescribedByIds<T>(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 '../../components/DatePicker';\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, formContext, id, onBlur, onChange, onFocus, placeholder, readonly, value } = props;\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<T>(id)}\n />\n );\n}\n", "import dayjsGenerateConfig from 'rc-picker/lib/generate/dayjs';\nimport generatePicker from 'antd/lib/date-picker/generatePicker';\n\nconst DatePicker = generatePicker(dayjsGenerateConfig);\n\nexport default DatePicker;\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 '../../components/DatePicker';\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, formContext, id, onBlur, onChange, onFocus, placeholder, readonly, value } = props;\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<T>(id)}\n />\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Input from 'antd/lib/input';\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, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, value } = props;\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<T>(id)}\n />\n );\n}\n", "import { FocusEvent } from 'react';\nimport Radio, { RadioChangeEvent } from 'antd/lib/radio';\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 formContext,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\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.value, enumOptions, emptyValue));\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(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={id}\n onChange={!readonly ? handleChange : undefined}\n onBlur={!readonly ? handleBlur : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n value={selectedIndexes}\n aria-describedby={ariaDescribedByIds<T>(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, i) => (\n <Radio\n id={optionId(id, i)}\n name={id}\n autoFocus={i === 0 ? autofocus : false}\n disabled={Array.isArray(enumDisabled) && enumDisabled.indexOf(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/lib/slider';\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 formContext,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n schema,\n value,\n } = props;\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<T>(id)}\n />\n );\n}\n", "import Select, { DefaultOptionType } from 'antd/lib/select';\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';\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 formContext = {} as F,\n id,\n multiple,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\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 = (input: string, option?: DefaultOptionType) => {\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 = (node: any) => node.parentNode;\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: id,\n };\n return (\n <Select\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 filterOption={filterOption}\n aria-describedby={ariaDescribedByIds<T>(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map(({ value: optionValue, label: optionLabel }, index) => (\n <Select.Option\n disabled={Array.isArray(enumDisabled) && enumDisabled.indexOf(optionValue) !== -1}\n key={String(index)}\n value={String(index)}\n >\n {optionLabel}\n </Select.Option>\n ))}\n </Select>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Input from 'antd/lib/input';\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 formContext,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\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.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLTextAreaElement>) => onFocus(id, 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={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<T>(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 RangeW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,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAMG,QAAO,aAAa;AAI1B,IAAO,cAAQC;",
|
|
6
|
-
"names": ["CopyButton", "MoveDownButton", "MoveUpButton", "RemoveButton", "Col", "Row", "jsx", "jsxs", "ArrayFieldItemTemplate", "AddButton", "jsx", "jsxs", "jsx", "jsx", "jsxs", "Button", "getUiOptions", "TranslatableString", "jsx", "jsx", "getTemplate", "getUiOptions", "jsx", "classNames", "WrapIfAdditionalTemplate", "classNames", "getTemplate", "getUiOptions", "Col", "Row", "ConfigConsumer", "jsx", "jsxs", "DESCRIPTION_COL_STYLE", "AddButton", "Button", "jsx", "classNames", "ConfigConsumer", "jsx", "Col", "Form", "Input", "Row", "TranslatableString", "jsx", "jsxs", "VERTICAL_LABEL_COL", "VERTICAL_WRAPPER_COL", "INPUT_STYLE", "classNames", "RemoveButton", "Button", "Col", "Row", "ariaDescribedByIds", "TranslatableString", "jsx", "jsxs", "SelectWidget", "jsx", "AltDateWidget", "ariaDescribedByIds", "Fragment", "jsx", "jsxs", "Checkbox", "ariaDescribedByIds", "jsx", "ariaDescribedByIds", "jsx", "
|
|
3
|
+
"sources": ["../src/index.ts", "../src/templates/ArrayFieldItemTemplate/index.tsx", "../src/templates/ArrayFieldTemplate/index.tsx", "../src/templates/BaseInputTemplate/index.tsx", "../src/templates/DescriptionField/index.tsx", "../src/templates/ErrorList/index.tsx", "../src/templates/IconButton/index.tsx", "../src/templates/FieldErrorTemplate/index.tsx", "../src/templates/FieldTemplate/index.tsx", "../src/templates/ObjectFieldTemplate/index.tsx", "../src/templates/SubmitButton/index.tsx", "../src/templates/TitleField/index.tsx", "../src/templates/WrapIfAdditionalTemplate/index.tsx", "../src/templates/index.ts", "../src/widgets/AltDateWidget/index.tsx", "../src/widgets/AltDateTimeWidget/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 Button from 'antd/lib/button';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport { ArrayFieldTemplateItemType, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nconst BTN_GRP_STYLE = {\n width: '100%',\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 `ArrayFieldTemplateItemType` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: ArrayFieldTemplateItemType<T, S, F>) {\n const {\n children,\n disabled,\n hasCopy,\n hasMoveDown,\n hasMoveUp,\n hasRemove,\n hasToolbar,\n index,\n onCopyIndexClick,\n onDropIndexClick,\n onReorderClick,\n readonly,\n registry,\n uiSchema,\n } = props;\n const { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } = registry.templates.ButtonTemplates;\n const { rowGutter = 24, toolbarAlign = 'top' } = registry.formContext;\n\n return (\n <Row align={toolbarAlign} key={`array-item-${index}`} gutter={rowGutter}>\n <Col flex='1'>{children}</Col>\n\n {hasToolbar && (\n <Col flex='192px'>\n <Button.Group style={BTN_GRP_STYLE}>\n {(hasMoveUp || hasMoveDown) && (\n <MoveUpButton\n disabled={disabled || readonly || !hasMoveUp}\n onClick={onReorderClick(index, index - 1)}\n style={BTN_STYLE}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {(hasMoveUp || hasMoveDown) && (\n <MoveDownButton\n disabled={disabled || readonly || !hasMoveDown}\n onClick={onReorderClick(index, index + 1)}\n style={BTN_STYLE}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {hasCopy && (\n <CopyButton\n disabled={disabled || readonly}\n onClick={onCopyIndexClick(index)}\n style={BTN_STYLE}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {hasRemove && (\n <RemoveButton\n disabled={disabled || readonly}\n onClick={onDropIndexClick(index)}\n style={BTN_STYLE}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n </Button.Group>\n </Col>\n )}\n </Row>\n );\n}\n", "import {\n getTemplate,\n getUiOptions,\n ArrayFieldTemplateProps,\n ArrayFieldTemplateItemType,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport classNames from 'classnames';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport { ConfigConsumer, ConfigConsumerProps } from 'antd/lib/config-provider/context';\n\nconst DESCRIPTION_COL_STYLE = {\n paddingBottom: '8px',\n};\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateItemType` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n className,\n disabled,\n formContext,\n idSchema,\n items,\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 ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions\n );\n const ArrayFieldItemTemplate = getTemplate<'ArrayFieldItemTemplate', T, S, F>(\n 'ArrayFieldItemTemplate',\n registry,\n uiOptions\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions\n );\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n const { labelAlign = 'right', rowGutter = 24 } = formContext as GenericObjectType;\n\n return (\n <ConfigConsumer>\n {(configProps: ConfigConsumerProps) => {\n const { getPrefixCls } = configProps;\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={idSchema.$id}>\n <Row gutter={rowGutter}>\n {(uiOptions.title || title) && (\n <Col className={labelColClassName} span={24}>\n <ArrayFieldTitleTemplate\n idSchema={idSchema}\n required={required}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n )}\n {(uiOptions.description || schema.description) && (\n <Col span={24} style={DESCRIPTION_COL_STYLE}>\n <ArrayFieldDescriptionTemplate\n description={uiOptions.description || schema.description}\n idSchema={idSchema}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n )}\n <Col className='row array-item-list' span={24}>\n {items &&\n items.map(({ key, ...itemProps }: ArrayFieldTemplateItemType<T, S, F>) => (\n <ArrayFieldItemTemplate key={key} {...itemProps} />\n ))}\n </Col>\n\n {canAdd && (\n <Col span={24}>\n <Row gutter={rowGutter} justify='end'>\n <Col flex='192px'>\n <AddButton\n className='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 </ConfigConsumer>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Input from 'antd/lib/input';\nimport InputNumber from 'antd/lib/input-number';\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 formContext,\n id,\n onBlur,\n onChange,\n onChangeOverride,\n onFocus,\n options,\n placeholder,\n readonly,\n schema,\n value,\n type,\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options, false);\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\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.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target.value);\n\n const input =\n inputProps.type === 'number' || inputProps.type === 'integer' ? (\n <InputNumber\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={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<T>(id) : undefined}\n {...inputProps}\n value={value}\n aria-describedby={ariaDescribedByIds<T>(id, !!schema.examples)}\n />\n ) : (\n <Input\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={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<T>(id) : undefined}\n {...inputProps}\n value={value}\n aria-describedby={ariaDescribedByIds<T>(id, !!schema.examples)}\n />\n );\n\n return (\n <>\n {input}\n {Array.isArray(schema.examples) && (\n <datalist id={examplesId<T>(id)}>\n {(schema.examples as string[])\n .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])\n .map((example) => {\n return <option key={example} value={example} />;\n })}\n </datalist>\n )}\n </>\n );\n}\n", "import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description } = props;\n if (!description) {\n return null;\n }\n return <span id={id}>{description}</span>;\n}\n", "import Alert from 'antd/lib/alert';\nimport List from 'antd/lib/list';\nimport Space from 'antd/lib/space';\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, ButtonType } from 'antd/lib/button';\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 {\n getUiOptions,\n FormContextType,\n IconButtonProps,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n} from '@rjsf/utils';\nimport { MouseEventHandler } from 'react';\n\n// The `type` for IconButtonProps collides with the `type` for `ButtonProps` so omit it to avoid Typescript issue\nexport type AntdIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n> = Omit<IconButtonProps<T, S, F>, 'type'>;\n\nexport default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: AntdIconButtonProps<T, S, F> & Omit<ButtonProps, 'onClick'>\n) {\n const { iconType = 'default', icon, onClick, uiSchema, registry, ...otherProps } = props;\n return (\n <Button\n onClick={onClick as MouseEventHandler<HTMLAnchorElement> & MouseEventHandler<HTMLButtonElement>}\n type={iconType as ButtonType}\n icon={icon}\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 {...props}\n block\n iconType='primary'\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 {...props}\n danger\n block={!!options.block}\n iconType='primary'\n icon={<DeleteOutlined />}\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 = [], idSchema } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId<T>(idSchema);\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/lib/form';\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 classNames,\n style,\n description,\n disabled,\n displayLabel,\n errors,\n formContext,\n help,\n hidden,\n id,\n label,\n onDropPropertyClick,\n onKeyChange,\n rawErrors,\n rawDescription,\n rawHelp,\n readonly,\n registry,\n required,\n schema,\n uiSchema,\n } = props;\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 const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions\n );\n\n if (hidden) {\n return <div className='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\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n onDropPropertyClick={onDropPropertyClick}\n onKeyChange={onKeyChange}\n readonly={readonly}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n >\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 && 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 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 descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\n} from '@rjsf/utils';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport { ConfigConsumer, ConfigConsumerProps } from 'antd/lib/config-provider/context';\n\nconst DESCRIPTION_COL_STYLE = {\n paddingBottom: '8px',\n};\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n disabled,\n formContext,\n formData,\n idSchema,\n onAddClick,\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 DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions\n );\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n const { 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 return (\n <ConfigConsumer>\n {(configProps: ConfigConsumerProps) => {\n const { getPrefixCls } = configProps;\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={idSchema.$id}>\n <Row gutter={rowGutter}>\n {title && (\n <Col className={labelColClassName} span={24}>\n <TitleFieldTemplate\n id={titleId<T>(idSchema)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n )}\n {description && (\n <Col span={24} style={DESCRIPTION_COL_STYLE}>\n <DescriptionFieldTemplate\n id={descriptionId<T>(idSchema)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n )}\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\n {canExpand(schema, uiSchema, formData) && (\n <Col span={24}>\n <Row gutter={rowGutter} justify='end'>\n <Col flex='192px'>\n <AddButton\n className='object-property-expand'\n disabled={disabled || readonly}\n onClick={onAddClick(schema)}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n </Col>\n )}\n </fieldset>\n );\n }}\n </ConfigConsumer>\n );\n}\n", "import Button, { ButtonType } from 'antd/lib/button';\nimport { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\n/** The `SubmitButton` renders a button that represent the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions(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 { ConfigConsumer, ConfigConsumerProps } from 'antd/lib/config-provider/context';\nimport { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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}: 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 return title ? (\n <ConfigConsumer>\n {(configProps: ConfigConsumerProps) => {\n const { getPrefixCls } = configProps;\n const prefixCls = getPrefixCls('form');\n const labelClassName = classNames({\n [`${prefixCls}-item-required`]: required,\n [`${prefixCls}-item-no-colon`]: !colon,\n });\n\n return (\n <label\n className={labelClassName}\n htmlFor={id}\n onClick={handleLabelClick}\n title={typeof title === 'string' ? title : ''}\n >\n {labelChildren}\n </label>\n );\n }}\n </ConfigConsumer>\n ) : null;\n}\n", "import { FocusEvent } from 'react';\nimport Col from 'antd/lib/col';\nimport Form from 'antd/lib/form';\nimport Input from 'antd/lib/input';\nimport Row from 'antd/lib/row';\nimport {\n ADDITIONAL_PROPERTY_FLAG,\n UI_OPTIONS_KEY,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\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 id,\n label,\n onDropPropertyClick,\n onKeyChange,\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 const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onKeyChange(target.value);\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={keyLabel}\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 ? handleBlur : 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='192px'>\n <RemoveButton\n className='array-item-remove'\n disabled={disabled || readonly}\n onClick={onDropPropertyClick(label)}\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 './DescriptionField';\nimport ErrorList from './ErrorList';\nimport { AddButton, CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from './IconButton';\nimport FieldErrorTemplate from './FieldErrorTemplate';\nimport FieldTemplate from './FieldTemplate';\nimport ObjectFieldTemplate from './ObjectFieldTemplate';\nimport SubmitButton from './SubmitButton';\nimport TitleField from './TitleField';\nimport WrapIfAdditionalTemplate from './WrapIfAdditionalTemplate';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldTemplate,\n ObjectFieldTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { MouseEvent, useEffect, useState } from 'react';\nimport Button from 'antd/lib/button';\nimport Col from 'antd/lib/col';\nimport Row from 'antd/lib/row';\nimport {\n ariaDescribedByIds,\n pad,\n parseDateString,\n toDateString,\n DateObject,\n FormContextType,\n GenericObjectType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WidgetProps,\n} from '@rjsf/utils';\n\ntype DateElementProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = Pick<\n WidgetProps<T, S, F>,\n 'id' | 'name' | 'value' | 'disabled' | 'readonly' | 'autofocus' | 'registry' | 'onBlur' | 'onFocus'\n> & {\n select: (property: keyof DateObject, value: any) => void;\n type: string;\n range: [number, number];\n};\n\nconst rangeOptions = (start: number, stop: number) => {\n const options = [];\n for (let i = start; i <= stop; i++) {\n options.push({ value: i, label: pad(i, 2) });\n }\n return options;\n};\n\nconst readyForChange = (state: DateObject) => {\n return Object.values(state).every((value) => value !== -1);\n};\n\nfunction dateElementProps(\n state: DateObject,\n time: boolean,\n yearsRange: [number, number] = [1900, new Date().getFullYear() + 2]\n) {\n const { year, month, day, hour, minute, second } = state;\n const data = [\n {\n type: 'year',\n range: yearsRange,\n value: year,\n },\n { type: 'month', range: [1, 12], value: month },\n { type: 'day', range: [1, 31], value: day },\n ] as { type: string; range: [number, number]; value: number }[];\n if (time) {\n data.push(\n { type: 'hour', range: [0, 23], value: hour || -1 },\n { type: 'minute', range: [0, 59], value: minute || -1 },\n { type: 'second', range: [0, 59], value: second || -1 }\n );\n }\n return data;\n}\n\nexport default function AltDateWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: WidgetProps<T, S, F>) {\n const {\n autofocus,\n disabled,\n formContext,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n readonly,\n registry,\n showTime,\n value,\n } = props;\n const { translateString, widgets } = registry;\n const { SelectWidget } = widgets;\n const { rowGutter = 24 } = formContext as GenericObjectType;\n\n const [state, setState] = useState(parseDateString(value, showTime));\n\n useEffect(() => {\n setState(parseDateString(value, showTime));\n }, [showTime, value]);\n\n const handleChange = (property: keyof DateObject, nextValue: any) => {\n const nextState = {\n ...state,\n [property]: typeof nextValue === 'undefined' ? -1 : nextValue,\n };\n\n if (readyForChange(nextState)) {\n onChange(toDateString(nextState, showTime));\n } else {\n setState(nextState);\n }\n };\n\n const handleNow = (event: MouseEvent) => {\n event.preventDefault();\n if (disabled || readonly) {\n return;\n }\n const nextState = parseDateString(new Date().toJSON(), showTime);\n onChange(toDateString(nextState, showTime));\n };\n\n const handleClear = (event: MouseEvent) => {\n event.preventDefault();\n if (disabled || readonly) {\n return;\n }\n onChange(undefined);\n };\n\n const renderDateElement = (elemProps: DateElementProps<T, S, F>) => (\n <SelectWidget\n autofocus={elemProps.autofocus}\n className='form-control'\n disabled={elemProps.disabled}\n id={elemProps.id}\n name={elemProps.name}\n onBlur={elemProps.onBlur}\n onChange={(elemValue) => elemProps.select(elemProps.type as keyof DateObject, elemValue)}\n onFocus={elemProps.onFocus}\n options={{\n enumOptions: rangeOptions(elemProps.range[0], elemProps.range[1]),\n }}\n placeholder={elemProps.type}\n readonly={elemProps.readonly}\n schema={{ type: 'integer' } as S}\n value={elemProps.value}\n registry={registry}\n label=''\n aria-describedby={ariaDescribedByIds<T>(id)}\n />\n );\n\n return (\n <Row gutter={[Math.floor(rowGutter / 2), Math.floor(rowGutter / 2)]}>\n {dateElementProps(state, showTime, options.yearsRange as [number, number] | undefined).map((elemProps, i) => {\n const elemId = id + '_' + elemProps.type;\n return (\n <Col flex='88px' key={elemId}>\n {renderDateElement({\n ...elemProps,\n autofocus: autofocus && i === 0,\n disabled,\n id: elemId,\n name: id,\n onBlur,\n onFocus,\n readonly,\n registry,\n select: handleChange,\n // NOTE: antd components accept -1 rather than issue a warning\n // like material-ui, so we need to convert -1 to undefined here.\n value: elemProps.value < 0 ? undefined : elemProps.value,\n })}\n </Col>\n );\n })}\n {!options.hideNowButton && (\n <Col flex='88px'>\n <Button block className='btn-now' onClick={handleNow} 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\nAltDateWidget.defaultProps = {\n autofocus: false,\n disabled: false,\n options: {\n yearsRange: [1900, new Date().getFullYear() + 2],\n },\n readonly: false,\n showTime: false,\n};\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\n\nimport _AltDateWidget from '../AltDateWidget';\n\nexport default function AltDateTimeWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any\n>(props: WidgetProps<T, S, F>) {\n const { AltDateWidget } = props.registry.widgets;\n return <AltDateWidget showTime {...props} />;\n}\n\nAltDateTimeWidget.defaultProps = {\n ..._AltDateWidget.defaultProps,\n showTime: true,\n};\n", "import { FocusEvent } from 'react';\nimport Checkbox from 'antd/lib/checkbox';\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>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value }: WidgetProps<T, S, F>) {\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={id}\n onChange={!readonly ? handleChange : undefined}\n value={selectedIndexes}\n {...extraProps}\n aria-describedby={ariaDescribedByIds<T>(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, i) => (\n <span key={i}>\n <Checkbox\n id={optionId(id, i)}\n name={id}\n autoFocus={i === 0 ? autofocus : false}\n disabled={Array.isArray(enumDisabled) && enumDisabled.indexOf(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, { CheckboxChangeEvent } from 'antd/lib/checkbox';\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, formContext, id, label, hideLabel, onBlur, onChange, onFocus, readonly, value } = props;\n const { readonlyAsDisabled = true } = formContext as GenericObjectType;\n\n const handleChange = ({ target }: CheckboxChangeEvent) => onChange(target.checked);\n\n const handleBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target.checked);\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, 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={id}\n onChange={!readonly ? handleChange : undefined}\n {...extraProps}\n aria-describedby={ariaDescribedByIds<T>(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/lib/date-picker';\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, formContext, id, onBlur, onChange, onFocus, placeholder, readonly, value } = props;\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<T>(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/lib/date-picker';\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, formContext, id, onBlur, onChange, onFocus, placeholder, readonly, value } = props;\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<T>(id)}\n />\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Input from 'antd/lib/input';\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, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, value } = props;\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<T>(id)}\n />\n );\n}\n", "import { FocusEvent } from 'react';\nimport Radio, { RadioChangeEvent } from 'antd/lib/radio';\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 formContext,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\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.value, enumOptions, emptyValue));\n\n const handleFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(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={id}\n onChange={!readonly ? handleChange : undefined}\n onBlur={!readonly ? handleBlur : undefined}\n onFocus={!readonly ? handleFocus : undefined}\n value={selectedIndexes}\n aria-describedby={ariaDescribedByIds<T>(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, i) => (\n <Radio\n id={optionId(id, i)}\n name={id}\n autoFocus={i === 0 ? autofocus : false}\n disabled={Array.isArray(enumDisabled) && enumDisabled.indexOf(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/lib/slider';\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 formContext,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n schema,\n value,\n } = props;\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<T>(id)}\n />\n );\n}\n", "import Select, { DefaultOptionType } from 'antd/lib/select';\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';\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 formContext = {} as F,\n id,\n multiple,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\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 = (input: string, option?: DefaultOptionType) => {\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 = (node: any) => node.parentNode;\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: id,\n };\n return (\n <Select\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 filterOption={filterOption}\n aria-describedby={ariaDescribedByIds<T>(id)}\n >\n {Array.isArray(enumOptions) &&\n enumOptions.map(({ value: optionValue, label: optionLabel }, index) => (\n <Select.Option\n disabled={Array.isArray(enumDisabled) && enumDisabled.indexOf(optionValue) !== -1}\n key={String(index)}\n value={String(index)}\n >\n {optionLabel}\n </Select.Option>\n ))}\n </Select>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Input from 'antd/lib/input';\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 formContext,\n id,\n onBlur,\n onChange,\n onFocus,\n options,\n placeholder,\n readonly,\n value,\n}: WidgetProps<T, S, F>) {\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.value);\n\n const handleFocus = ({ target }: FocusEvent<HTMLTextAreaElement>) => onFocus(id, 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={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<T>(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,OAAO,YAAY;AACnB,OAAO,SAAS;AAChB,OAAO,SAAS;AAyCV,cAII,YAJJ;AAtCN,IAAM,gBAAgB;AAAA,EACpB,OAAO;AACT;AAEA,IAAM,YAAY;AAAA,EAChB,OAAO;AACT;AAMe,SAAR,uBAIL,OAA4C;AAC5C,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,EAAE,YAAAA,aAAY,gBAAAC,iBAAgB,cAAAC,eAAc,cAAAC,cAAa,IAAI,SAAS,UAAU;AACtF,QAAM,EAAE,YAAY,IAAI,eAAe,MAAM,IAAI,SAAS;AAE1D,SACE,qBAAC,OAAI,OAA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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,qBAAsB,EAAE;AAAA;AAAA,EAC5C;AAEJ;;;ACpDO,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;;;AzB3BxB,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,cAAQC;",
|
|
6
|
+
"names": ["CopyButton", "MoveDownButton", "MoveUpButton", "RemoveButton", "Col", "Row", "jsx", "jsxs", "ArrayFieldItemTemplate", "AddButton", "jsx", "jsxs", "jsx", "jsx", "jsxs", "Button", "getUiOptions", "TranslatableString", "jsx", "jsx", "getTemplate", "getUiOptions", "jsx", "classNames", "WrapIfAdditionalTemplate", "classNames", "getTemplate", "getUiOptions", "Col", "Row", "ConfigConsumer", "jsx", "jsxs", "DESCRIPTION_COL_STYLE", "AddButton", "Button", "jsx", "classNames", "ConfigConsumer", "jsx", "Col", "Form", "Input", "Row", "TranslatableString", "jsx", "jsxs", "VERTICAL_LABEL_COL", "VERTICAL_WRAPPER_COL", "INPUT_STYLE", "classNames", "RemoveButton", "Button", "Col", "Row", "ariaDescribedByIds", "TranslatableString", "jsx", "jsxs", "SelectWidget", "jsx", "AltDateWidget", "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", "Input", "ariaDescribedByIds", "jsx", "INPUT_STYLE", "Form", "Form"]
|
|
7
7
|
}
|
package/dist/antd.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('antd/lib/button'), require('antd/lib/col'), require('antd/lib/row'), require('react/jsx-runtime'), require('@rjsf/utils'), require('classnames'), require('antd/lib/config-provider/context'), require('antd/lib/input'), require('antd/lib/input-number'), require('antd/lib/alert'), require('antd/lib/list'), require('antd/lib/space'), require('@ant-design/icons/ExclamationCircleOutlined'), require('@ant-design/icons/ArrowDownOutlined'), require('@ant-design/icons/ArrowUpOutlined'), require('@ant-design/icons/CopyOutlined'), require('@ant-design/icons/DeleteOutlined'), require('@ant-design/icons/PlusCircleOutlined'), require('antd/lib/form'), require('lodash/isObject'), require('lodash/isNumber'), require('lodash/isString'), require('react'), require('antd/lib/checkbox'), require('dayjs'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', 'antd/lib/button', 'antd/lib/col', 'antd/lib/row', 'react/jsx-runtime', '@rjsf/utils', 'classnames', 'antd/lib/config-provider/context', 'antd/lib/input', 'antd/lib/input-number', 'antd/lib/alert', 'antd/lib/list', 'antd/lib/space', '@ant-design/icons/ExclamationCircleOutlined', '@ant-design/icons/ArrowDownOutlined', '@ant-design/icons/ArrowUpOutlined', '@ant-design/icons/CopyOutlined', '@ant-design/icons/DeleteOutlined', '@ant-design/icons/PlusCircleOutlined', 'antd/lib/form', 'lodash/isObject', 'lodash/isNumber', 'lodash/isString', 'react', 'antd/lib/checkbox', 'dayjs', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/antd"] = {}, global.core, global.Button4, global.Col2, global.Row2, global.jsxRuntime, global.utils, global.classNames, global.context, global.Input, global.InputNumber, global.Alert, global.List, global.Space, global.ExclamationCircleOutlined, global.ArrowDownOutlined, global.ArrowUpOutlined, global.CopyOutlined, global.DeleteOutlined, global.PlusCircleOutlined, global.Form, global.isObject, global.isNumber, global.isString, global.react, global.Checkbox, global.dayjs, global.
|
|
5
|
-
})(this, (function (exports, core, Button4, Col2, Row2, jsxRuntime, utils, classNames, context, Input, InputNumber, Alert, List, Space, ExclamationCircleOutlined, ArrowDownOutlined, ArrowUpOutlined, CopyOutlined, DeleteOutlined, PlusCircleOutlined, Form, isObject, isNumber, isString, react, Checkbox, dayjs,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('antd/lib/button'), require('antd/lib/col'), require('antd/lib/row'), require('react/jsx-runtime'), require('@rjsf/utils'), require('classnames'), require('antd/lib/config-provider/context'), require('antd/lib/input'), require('antd/lib/input-number'), require('antd/lib/alert'), require('antd/lib/list'), require('antd/lib/space'), require('@ant-design/icons/ExclamationCircleOutlined'), require('@ant-design/icons/ArrowDownOutlined'), require('@ant-design/icons/ArrowUpOutlined'), require('@ant-design/icons/CopyOutlined'), require('@ant-design/icons/DeleteOutlined'), require('@ant-design/icons/PlusCircleOutlined'), require('antd/lib/form'), require('lodash/isObject'), require('lodash/isNumber'), require('lodash/isString'), require('react'), require('antd/lib/checkbox'), require('dayjs'), require('antd/lib/date-picker'), require('antd/lib/radio'), require('antd/lib/slider'), require('antd/lib/select')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', 'antd/lib/button', 'antd/lib/col', 'antd/lib/row', 'react/jsx-runtime', '@rjsf/utils', 'classnames', 'antd/lib/config-provider/context', 'antd/lib/input', 'antd/lib/input-number', 'antd/lib/alert', 'antd/lib/list', 'antd/lib/space', '@ant-design/icons/ExclamationCircleOutlined', '@ant-design/icons/ArrowDownOutlined', '@ant-design/icons/ArrowUpOutlined', '@ant-design/icons/CopyOutlined', '@ant-design/icons/DeleteOutlined', '@ant-design/icons/PlusCircleOutlined', 'antd/lib/form', 'lodash/isObject', 'lodash/isNumber', 'lodash/isString', 'react', 'antd/lib/checkbox', 'dayjs', 'antd/lib/date-picker', 'antd/lib/radio', 'antd/lib/slider', 'antd/lib/select'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/antd"] = {}, global.core, global.Button4, global.Col2, global.Row2, global.jsxRuntime, global.utils, global.classNames, global.context, global.Input, global.InputNumber, global.Alert, global.List, global.Space, global.ExclamationCircleOutlined, global.ArrowDownOutlined, global.ArrowUpOutlined, global.CopyOutlined, global.DeleteOutlined, global.PlusCircleOutlined, global.Form, global.isObject, global.isNumber, global.isString, global.react, global.Checkbox, global.dayjs, global.DatePicker, global.Radio, global.Slider, global.Select));
|
|
5
|
+
})(this, (function (exports, core, Button4, Col2, Row2, jsxRuntime, utils, classNames, context, Input, InputNumber, Alert, List, Space, ExclamationCircleOutlined, ArrowDownOutlined, ArrowUpOutlined, CopyOutlined, DeleteOutlined, PlusCircleOutlined, Form, isObject, isNumber, isString, react, Checkbox, dayjs, DatePicker, Radio, Slider, Select) { 'use strict';
|
|
6
6
|
|
|
7
7
|
// src/index.ts
|
|
8
8
|
var BTN_GRP_STYLE = {
|
|
@@ -252,8 +252,16 @@
|
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
254
|
function IconButton(props) {
|
|
255
|
-
const { iconType = "default", icon, uiSchema, registry, ...otherProps } = props;
|
|
256
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
255
|
+
const { iconType = "default", icon, onClick, uiSchema, registry, ...otherProps } = props;
|
|
256
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
257
|
+
Button4,
|
|
258
|
+
{
|
|
259
|
+
onClick,
|
|
260
|
+
type: iconType,
|
|
261
|
+
icon,
|
|
262
|
+
...otherProps
|
|
263
|
+
}
|
|
264
|
+
);
|
|
257
265
|
}
|
|
258
266
|
function AddButton(props) {
|
|
259
267
|
const {
|
|
@@ -867,8 +875,6 @@
|
|
|
867
875
|
}
|
|
868
876
|
);
|
|
869
877
|
}
|
|
870
|
-
var DatePicker = generatePicker(dayjsGenerateConfig);
|
|
871
|
-
var DatePicker_default = DatePicker;
|
|
872
878
|
var DATE_PICKER_STYLE = {
|
|
873
879
|
width: "100%"
|
|
874
880
|
};
|
|
@@ -880,7 +886,7 @@
|
|
|
880
886
|
const handleFocus = () => onFocus(id, value);
|
|
881
887
|
const getPopupContainer = (node) => node.parentNode;
|
|
882
888
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
883
|
-
|
|
889
|
+
DatePicker,
|
|
884
890
|
{
|
|
885
891
|
disabled: disabled || readonlyAsDisabled && readonly,
|
|
886
892
|
getPopupContainer,
|
|
@@ -908,7 +914,7 @@
|
|
|
908
914
|
const handleFocus = () => onFocus(id, value);
|
|
909
915
|
const getPopupContainer = (node) => node.parentNode;
|
|
910
916
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
911
|
-
|
|
917
|
+
DatePicker,
|
|
912
918
|
{
|
|
913
919
|
disabled: disabled || readonlyAsDisabled && readonly,
|
|
914
920
|
getPopupContainer,
|