@rjsf/react-bootstrap 6.0.2 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +23 -14
- package/dist/index.cjs.map +3 -3
- package/dist/react-bootstrap.esm.js +21 -12
- package/dist/react-bootstrap.esm.js.map +2 -2
- package/dist/react-bootstrap.umd.js +20 -12
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +3 -2
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js +3 -3
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/FieldTemplate/FieldTemplate.js +1 -1
- package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +6 -2
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +4 -3
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +2 -2
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +4 -4
- package/src/FieldTemplate/FieldTemplate.tsx +2 -0
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +1 -1
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +9 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/Form/Form.tsx", "../src/AddButton/AddButton.tsx", "../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx", "../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx", "../src/BaseInputTemplate/BaseInputTemplate.tsx", "../src/DescriptionField/DescriptionField.tsx", "../src/ErrorList/ErrorList.tsx", "../src/IconButton/IconButton.tsx", "../src/FieldErrorTemplate/FieldErrorTemplate.tsx", "../src/FieldHelpTemplate/FieldHelpTemplate.tsx", "../src/FieldTemplate/FieldTemplate.tsx", "../src/GridTemplate/GridTemplate.tsx", "../src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx", "../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx", "../src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx", "../src/SubmitButton/SubmitButton.tsx", "../src/TitleField/TitleField.tsx", "../src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx", "../src/Templates/Templates.ts", "../src/CheckboxWidget/CheckboxWidget.tsx", "../src/CheckboxesWidget/CheckboxesWidget.tsx", "../src/RadioWidget/RadioWidget.tsx", "../src/RangeWidget/RangeWidget.tsx", "../src/SelectWidget/SelectWidget.tsx", "../src/TextareaWidget/TextareaWidget.tsx", "../src/Widgets/Widgets.ts", "../src/Theme/Theme.tsx", "../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { ComponentType } from 'react';\n\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { generateTheme } from '../Theme';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n", "import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\nimport Button from 'react-bootstrap/Button';\nimport { BsPlus } from '@react-icons/all-files/bs/BsPlus';\n\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n ...props\n}: IconButtonProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Button\n title={translateString(TranslatableString.AddItemButton)}\n {...props}\n style={{ width: '100%' }}\n className={`ml-1 ${props.className}`}\n >\n <BsPlus />\n </Button>\n );\n}\n", "import { CSSProperties } from 'react';\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldItemButtonsTemplate = getTemplate<'ArrayFieldItemButtonsTemplate', T, S, F>(\n 'ArrayFieldItemButtonsTemplate',\n registry,\n uiOptions,\n );\n const btnStyle: CSSProperties = {\n flex: 1,\n paddingLeft: 6,\n paddingRight: 6,\n fontWeight: 'bold',\n };\n return (\n <div>\n <Row className='mb-2 d-flex align-items-center'>\n <Col xs='9' lg='9'>\n {children}\n </Col>\n <Col xs='3' lg='3' className='py-4'>\n {hasToolbar && (\n <div className='d-flex flex-row'>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} style={btnStyle} />\n </div>\n )}\n </Col>\n </Row>\n </div>\n );\n}\n", "import Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Container from 'react-bootstrap/Container';\nimport {\n ArrayFieldTemplateProps,\n buttonId,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n disabled,\n fieldPathId,\n uiSchema,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n registry,\n required,\n schema,\n title,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <div>\n <Row className='p-0 m-0'>\n <Col className='p-0 m-0'>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <Container fluid key={`array-item-list-${fieldPathId.$id}`} className='p-0 m-0'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n {canAdd && (\n <Container className=''>\n <Row className='mt-2'>\n <Col xs={9}></Col>\n <Col xs={3} className='py-4 col-lg-3 col-3'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n </Container>\n )}\n </Container>\n </Col>\n </Row>\n </div>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Form from 'react-bootstrap/Form';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n htmlName,\n placeholder,\n required,\n readonly,\n disabled,\n type,\n value,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n rawErrors = [],\n children,\n extraProps,\n}: BaseInputTemplateProps<T, S, F>) {\n const inputProps = {\n ...extraProps,\n ...getInputProps<T, S, F>(schema, type, options),\n };\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n\n // const classNames = [rawErrors.length > 0 ? \"is-invalid\" : \"\", type === 'file' ? 'custom-file-label': \"\"]\n return (\n <>\n <Form.Control\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled}\n readOnly={readonly}\n className={rawErrors.length > 0 ? 'is-invalid' : ''}\n list={schema.examples ? examplesId(id) : undefined}\n {...inputProps}\n value={value || value === 0 ? value : ''}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n {children}\n {Array.isArray(schema.examples) ? (\n <datalist id={examplesId(id)}>\n {(schema.examples as string[])\n .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])\n .map((example: any) => {\n return <option key={example} value={example} />;\n })}\n </datalist>\n ) : null}\n </>\n );\n}\n", "import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ id, description, registry, uiSchema }: DescriptionFieldProps<T, S, F>) {\n if (!description) {\n return null;\n }\n\n return (\n <div>\n <div id={id} className='mb-3'>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </div>\n </div>\n );\n}\n", "import Card from 'react-bootstrap/Card';\nimport ListGroup from 'react-bootstrap/ListGroup';\n\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Card border='danger' className='mb-4'>\n <Card.Header className='alert-danger'>{translateString(TranslatableString.ErrorsLabel)}</Card.Header>\n <Card.Body className='p-0'>\n <ListGroup>\n {errors.map((error, i: number) => {\n return (\n <ListGroup.Item key={i} className='border-0'>\n <span>{error.stack}</span>\n </ListGroup.Item>\n );\n })}\n </ListGroup>\n </Card.Body>\n </Card>\n );\n}\n", "import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\nimport Button, { ButtonProps } from 'react-bootstrap/Button';\nimport { IoIosCopy } from '@react-icons/all-files/io/IoIosCopy';\nimport { IoIosRemove } from '@react-icons/all-files/io/IoIosRemove';\nimport { AiOutlineArrowUp } from '@react-icons/all-files/ai/AiOutlineArrowUp';\nimport { AiOutlineArrowDown } from '@react-icons/all-files/ai/AiOutlineArrowDown';\n\nexport type BootstrapIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & ButtonProps;\n\nexport default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const { icon, iconType, className, uiSchema, registry, ...otherProps } = props;\n return (\n <Button {...otherProps} variant={props.variant || 'light'} size='sm'>\n {icon}\n </Button>\n );\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon={<IoIosCopy />} />;\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon={<AiOutlineArrowDown />} />\n );\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon={<AiOutlineArrowUp />} />;\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton\n title={translateString(TranslatableString.RemoveButton)}\n variant='danger'\n {...props}\n icon={<IoIosRemove />}\n />\n );\n}\n", "import { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema, errorId } from '@rjsf/utils';\nimport ListGroup from 'react-bootstrap/ListGroup';\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldErrorProps<T, S, F>) {\n const { errors = [], fieldPathId } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n return (\n <ListGroup as='ul' id={id}>\n {errors.map((error, i) => {\n return (\n <ListGroup.Item as='li' key={i} className='border-0 m-0 p-0'>\n <small className='m-0 text-danger'>{error}</small>\n </ListGroup.Item>\n );\n })}\n </ListGroup>\n );\n}\n", "import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';\nimport Form from 'react-bootstrap/Form';\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldHelpProps<T, S, F>) {\n const { fieldPathId, help, hasErrors } = props;\n if (!help) {\n return null;\n }\n const id = helpId(fieldPathId);\n return (\n <Form.Text className={hasErrors ? 'text-danger' : 'text-muted'} id={id}>\n {help}\n </Form.Text>\n );\n}\n", "import {\n FieldTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport Form from 'react-bootstrap/Form';\n\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n children,\n displayLabel,\n rawErrors = [],\n errors,\n help,\n description,\n rawDescription,\n classNames,\n style,\n disabled,\n label,\n hidden,\n onKeyRename,\n onKeyRenameBlur,\n onRemoveProperty,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n}: FieldTemplateProps<T, S, F>) {\n const uiOptions = getUiOptions(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n if (hidden) {\n return <div className='hidden'>{children}</div>;\n }\n const isCheckbox = uiOptions.widget === 'checkbox';\n\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n onKeyRename={onKeyRename}\n onKeyRenameBlur={onKeyRenameBlur}\n onRemoveProperty={onRemoveProperty}\n readonly={readonly}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n >\n <Form.Group>\n {displayLabel && !isCheckbox && (\n <Form.Label htmlFor={id} className={rawErrors.length > 0 ? 'text-danger' : ''}>\n {label}\n {required ? '*' : null}\n </Form.Label>\n )}\n {children}\n {displayLabel && rawDescription && !isCheckbox && (\n <Form.Text className={rawErrors.length > 0 ? 'text-danger' : 'text-muted'}>{description}</Form.Text>\n )}\n {errors}\n {help}\n </Form.Group>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport { GridTemplateProps } from '@rjsf/utils';\n\n/** Renders a `GridTemplate` for react-bootstrap, which is expecting the column sizing information coming in via the\n * extra props provided by the caller, which are spread directly on the `Row`/`Col`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the react-bootstrap grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, ...rest } = props;\n if (column) {\n return <Col {...rest}>{children}</Col>;\n }\n return <Row {...rest}>{children}</Row>;\n}\n", "import { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport Card from 'react-bootstrap/Card';\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ selector, optionSchemaField }: MultiSchemaFieldTemplateProps<T, S, F>) {\n return (\n <Card style={{ marginBottom: '1rem' }}>\n <Card.Body>{selector}</Card.Body>\n <Card.Body>{optionSchemaField}</Card.Body>\n </Card>\n );\n}\n", "import Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Container from 'react-bootstrap/Container';\n\nimport {\n buttonId,\n canExpand,\n descriptionId,\n FormContextType,\n getTemplate,\n getUiOptions,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n titleId,\n} from '@rjsf/utils';\n\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n description,\n title,\n properties,\n required,\n uiSchema,\n fieldPathId,\n schema,\n formData,\n optionalDataControl,\n onAddProperty,\n disabled,\n readonly,\n registry,\n}: ObjectFieldTemplateProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Container fluid className='p-0'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((element: any, index: number) => (\n <Row key={index} style={{ marginBottom: '10px' }} className={element.hidden ? 'd-none' : undefined}>\n <Col xs={12}> {element.content}</Col>\n </Row>\n ))}\n {canExpand(schema, uiSchema, formData) ? (\n <Row>\n <Col xs={{ offset: 9, span: 3 }} className='py-4'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n onClick={onAddProperty}\n disabled={disabled || readonly}\n className='rjsf-object-property-expand'\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n ) : null}\n </Container>\n </>\n );\n}\n", "import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { BsPlus } from '@react-icons/all-files/bs/BsPlus';\n\nimport IconButton, { RemoveButton } from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick } = props;\n if (onAddClick) {\n return (\n <IconButton\n id={id}\n registry={registry}\n className='rjsf-add-optional-data'\n icon={<BsPlus />}\n onClick={onAddClick}\n title={label}\n size='sm'\n variant='secondary'\n />\n );\n } else if (onRemoveClick) {\n return (\n <RemoveButton\n id={id}\n registry={registry}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n size='sm'\n variant='secondary'\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import Button from 'react-bootstrap/Button';\nimport { FormContextType, getSubmitButtonOptions, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\nexport default function SubmitButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SubmitButtonProps<T, S, F>,\n) {\n const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions<T, S, F>(props.uiSchema);\n if (norender) {\n return null;\n }\n return (\n <div>\n <Button variant='primary' type='submit' {...submitButtonProps}>\n {submitText}\n </Button>\n </div>\n );\n}\n", "import { FormContextType, getUiOptions, RJSFSchema, StrictRJSFSchema, TitleFieldProps } from '@rjsf/utils';\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Container from 'react-bootstrap/Container';\n\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n title,\n uiSchema,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n let heading = <h5>{uiOptions.title || title}</h5>;\n if (optionalDataControl) {\n heading = (\n <Container fluid className='p-0'>\n <Row>\n <Col xs='11'>{heading}</Col>\n <Col xs='1' style={{ marginLeft: '-5px' }}>\n {optionalDataControl}\n </Col>\n </Row>\n </Container>\n );\n }\n return (\n <div id={id} className='my-1'>\n {heading}\n <hr className='border-0 bg-secondary mt-0' style={{ height: '1px' }} />\n </div>\n );\n}\n", "import {\n ADDITIONAL_PROPERTY_FLAG,\n buttonId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n} from '@rjsf/utils';\n\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Form from 'react-bootstrap/Form';\n\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n classNames,\n style,\n children,\n disabled,\n id,\n label,\n onRemoveProperty,\n onKeyRenameBlur,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n}: WrapIfAdditionalTemplateProps<T, S, F>) {\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 keyId = `${id}-key`;\n\n return (\n <Row className={classNames} style={style} key={keyId}>\n <Col xs={5}>\n <Form.Group>\n <Form.Label htmlFor={keyId}>{keyLabel}</Form.Label>\n <Form.Control\n required={required}\n defaultValue={label}\n disabled={disabled || readonly}\n id={keyId}\n name={keyId}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n type='text'\n />\n </Form.Group>\n </Col>\n <Col xs={5}>{children}</Col>\n <Col xs={2} className='py-4 d-grid gap-2'>\n <RemoveButton\n id={buttonId(id, 'remove')}\n className='rjsf-object-property-remove w-100'\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n );\n}\n", "import AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate/BaseInputTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n labelValue,\n WidgetProps,\n schemaRequiresTrueValue,\n StrictRJSFSchema,\n RJSFSchema,\n FormContextType,\n} from '@rjsf/utils';\nimport Form from 'react-bootstrap/Form';\n\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label,\n hideLabel,\n schema,\n autofocus,\n options,\n onChange,\n onBlur,\n onFocus,\n registry,\n uiSchema,\n } = props;\n // Because an unchecked checkbox will cause html5 validation to fail, only add\n // the \"required\" attribute if the field value must be \"true\", due to the\n // \"const\" or \"enum\" keywords\n const required = schemaRequiresTrueValue<S>(schema);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n\n const _onChange = ({ target: { checked } }: FocusEvent<HTMLInputElement>) => onChange(checked);\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.checked);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.checked);\n\n const description = options.description || schema.description;\n return (\n <Form.Group className={disabled || readonly ? 'disabled' : ''} aria-describedby={ariaDescribedByIds(id)}>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Form.Check\n id={id}\n name={htmlName || id}\n label={labelValue(label, hideLabel || !label)}\n checked={typeof value === 'undefined' ? false : value}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n onChange={_onChange}\n type='checkbox'\n onBlur={_onBlur}\n onFocus={_onFocus}\n />\n </Form.Group>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Form from 'react-bootstrap/Form';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n required,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, inline, emptyValue } = options;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n\n const _onChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n if (checked) {\n onChange(enumOptionsSelectValue<S>(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue<S>(index, checkboxesValues, enumOptions));\n }\n };\n\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n return (\n <Form.Group>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index: number) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n\n return (\n <Form.Check\n key={option.value}\n inline={inline}\n required={required}\n checked={checked}\n className='bg-transparent border-0'\n type={'checkbox'}\n id={optionId(id, index)}\n name={htmlName || id}\n label={option.label}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n disabled={disabled || itemDisabled || readonly}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n })}\n </Form.Group>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Form from 'react-bootstrap/Form';\nimport {\n ariaDescribedByIds,\n enumOptionsIsSelected,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n htmlName,\n options,\n value,\n required,\n disabled,\n readonly,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(enumOptionsValueForIndex<S>(value, enumOptions, emptyValue));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n const inline = Boolean(options && options.inline);\n\n return (\n <Form.Group className='mb-0'>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n const checked = enumOptionsIsSelected<S>(option.value, value);\n\n const radio = (\n <Form.Check\n inline={inline}\n label={option.label}\n id={optionId(id, index)}\n key={index}\n name={htmlName || id}\n type='radio'\n disabled={disabled || itemDisabled || readonly}\n checked={checked}\n required={required}\n value={String(index)}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n return radio;\n })}\n </Form.Group>\n );\n}\n", "import { FormContextType, rangeSpec, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ChangeEvent, FocusEvent } from 'react';\nimport FormRange from 'react-bootstrap/FormRange';\n\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { id, value, disabled, onChange, onBlur, onFocus, schema } = props;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) => onChange(value);\n const _onBlur = ({ target: { value } }: FocusEvent<HTMLInputElement>) => onBlur(id, value);\n const _onFocus = ({ target: { value } }: FocusEvent<HTMLInputElement>) => onFocus(id, value);\n\n const rangeProps = {\n value,\n id,\n name: id,\n disabled,\n onChange: _onChange,\n onBlur: _onBlur,\n onFocus: _onFocus,\n ...rangeSpec<S>(schema),\n };\n\n return (\n <>\n <FormRange {...rangeProps} />\n <span className='range-view'>{value}</span>\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport FormSelect from 'react-bootstrap/FormSelect';\nimport {\n ariaDescribedByIds,\n FormContextType,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function SelectWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n schema,\n id,\n htmlName,\n options,\n required,\n disabled,\n readonly,\n value,\n multiple,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n placeholder,\n rawErrors = [],\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyValue } = options;\n\n const emptyValue = multiple ? [] : '';\n\n function getValue(event: FocusEvent | ChangeEvent | any, multiple?: boolean) {\n if (multiple) {\n return [].slice\n .call(event.target.options as any)\n .filter((o: any) => o.selected)\n .map((o: any) => o.value);\n } else {\n return event.target.value;\n }\n }\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n const showPlaceholderOption = !multiple && schema.default === undefined;\n\n return (\n <FormSelect\n id={id}\n name={htmlName || id}\n value={typeof selectedIndexes === 'undefined' ? emptyValue : selectedIndexes}\n required={required}\n multiple={multiple}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n className={rawErrors.length > 0 ? 'is-invalid' : ''}\n onBlur={\n onBlur &&\n ((event: FocusEvent) => {\n const newValue = getValue(event, multiple);\n onBlur(id, enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyValue));\n })\n }\n onFocus={\n onFocus &&\n ((event: FocusEvent) => {\n const newValue = getValue(event, multiple);\n onFocus(id, enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyValue));\n })\n }\n onChange={(event: ChangeEvent) => {\n const newValue = getValue(event, multiple);\n onChange(enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyValue));\n }}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {showPlaceholderOption && <option value=''>{placeholder}</option>}\n {(enumOptions as any).map(({ value, label }: any, i: number) => {\n const disabled: any = Array.isArray(enumDisabled) && (enumDisabled as any).indexOf(value) != -1;\n return (\n <option key={i} id={label} value={String(i)} disabled={disabled}>\n {label}\n </option>\n );\n })}\n </FormSelect>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport FormControl from 'react-bootstrap/FormControl';\nimport InputGroup from 'react-bootstrap/InputGroup';\n\ntype CustomWidgetProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = WidgetProps<\n T,\n S,\n F\n> & {\n options: any;\n};\n\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n htmlName,\n placeholder,\n value,\n required,\n disabled,\n autofocus,\n readonly,\n onBlur,\n onFocus,\n onChange,\n options,\n}: CustomWidgetProps<T, S, F>) {\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = ({ target }: FocusEvent<HTMLTextAreaElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLTextAreaElement>) => onFocus(id, target && target.value);\n\n return (\n <InputGroup>\n <FormControl\n id={id}\n name={htmlName || id}\n as='textarea'\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readonly}\n value={value}\n required={required}\n autoFocus={autofocus}\n rows={options.rows || 5}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </InputGroup>\n );\n}\n", "import CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\nimport { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n", "import { ThemeProps } from '@rjsf/core';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n };\n}\n\nexport default generateTheme();\n", "import Form from './Form/Form';\n\nexport { default as Form, generateForm } from './Form';\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\n\nexport default Form;\n"],
|
|
5
|
-
"mappings": ";AAEA,SAAS,iBAA4B;;;ACFrC,SAAyE,0BAA0B;AACnG,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uC,QAAQ,IAAI,UAAU,OAAO,KAAK;AAEpG,SACE,gBAAAD,MAAC,cACC,0BAAAA;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAM,YAAY;AAAA,MAClB,IAAG;AAAA,MACH;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA,WAAW;AAAA,MACX,MAAM,QAAQ,QAAQ;AAAA,MACtB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,oBAAkBD,oBAAmB,EAAE;AAAA;AAAA,EACzC,GACF;AAEJ;;;AChDO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;ACjBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;A1BXtB,SAAS,eAIuB;AACrC,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,eAAQ,aAAa;;;A2BP5B,IAAO,gBAAQ;",
|
|
4
|
+
"sourcesContent": ["import { ComponentType } from 'react';\n\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { generateTheme } from '../Theme';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n", "import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\nimport Button from 'react-bootstrap/Button';\nimport { BsPlus } from '@react-icons/all-files/bs/BsPlus';\n\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n ...props\n}: IconButtonProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Button\n title={translateString(TranslatableString.AddItemButton)}\n {...props}\n style={{ width: '100%' }}\n className={`ml-1 ${props.className}`}\n >\n <BsPlus />\n </Button>\n );\n}\n", "import { CSSProperties } from 'react';\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, uiSchema, registry } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldItemButtonsTemplate = getTemplate<'ArrayFieldItemButtonsTemplate', T, S, F>(\n 'ArrayFieldItemButtonsTemplate',\n registry,\n uiOptions,\n );\n const btnStyle: CSSProperties = {\n flex: 1,\n paddingLeft: 6,\n paddingRight: 6,\n fontWeight: 'bold',\n };\n const padding = hasDescription ? 'pb-1' : 'pt-4 mt-2';\n return (\n <div>\n <Row className='mb-2 d-flex align-items-center'>\n <Col xs='8' md='9' lg='10'>\n {children}\n </Col>\n <Col xs='4' md='3' lg='2' className={displayLabel ? padding : 'py-4'}>\n {hasToolbar && (\n <div className='d-flex flex-row'>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} style={btnStyle} />\n </div>\n )}\n </Col>\n </Row>\n </div>\n );\n}\n", "import Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Container from 'react-bootstrap/Container';\nimport {\n ArrayFieldTemplateProps,\n buttonId,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n disabled,\n fieldPathId,\n uiSchema,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n registry,\n required,\n schema,\n title,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <div>\n <Row className='p-0 m-0'>\n <Col className='p-0 m-0'>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <Container fluid key={`array-item-list-${fieldPathId.$id}`} className='p-0 m-0'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n {canAdd && (\n <Container className=''>\n <Row className='mt-2'>\n <Col xs={9} md={10} lg={11}></Col>\n <Col xs={3} md={2} lg={1} className='py-4'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n </Container>\n )}\n </Container>\n </Col>\n </Row>\n </div>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Form from 'react-bootstrap/Form';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n htmlName,\n placeholder,\n required,\n readonly,\n disabled,\n type,\n value,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n rawErrors = [],\n children,\n extraProps,\n}: BaseInputTemplateProps<T, S, F>) {\n const inputProps = {\n ...extraProps,\n ...getInputProps<T, S, F>(schema, type, options),\n };\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n\n // const classNames = [rawErrors.length > 0 ? \"is-invalid\" : \"\", type === 'file' ? 'custom-file-label': \"\"]\n return (\n <>\n <Form.Control\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled}\n readOnly={readonly}\n className={rawErrors.length > 0 ? 'is-invalid' : ''}\n list={schema.examples ? examplesId(id) : undefined}\n {...inputProps}\n value={value || value === 0 ? value : ''}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n {children}\n {Array.isArray(schema.examples) ? (\n <datalist id={examplesId(id)}>\n {(schema.examples as string[])\n .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])\n .map((example: any) => {\n return <option key={example} value={example} />;\n })}\n </datalist>\n ) : null}\n </>\n );\n}\n", "import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ id, description, registry, uiSchema }: DescriptionFieldProps<T, S, F>) {\n if (!description) {\n return null;\n }\n\n return (\n <div>\n <div id={id} className='mb-3'>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </div>\n </div>\n );\n}\n", "import Card from 'react-bootstrap/Card';\nimport ListGroup from 'react-bootstrap/ListGroup';\n\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Card border='danger' className='mb-4'>\n <Card.Header className='alert-danger'>{translateString(TranslatableString.ErrorsLabel)}</Card.Header>\n <Card.Body className='p-0'>\n <ListGroup>\n {errors.map((error, i: number) => {\n return (\n <ListGroup.Item key={i} className='border-0'>\n <span>{error.stack}</span>\n </ListGroup.Item>\n );\n })}\n </ListGroup>\n </Card.Body>\n </Card>\n );\n}\n", "import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\nimport Button, { ButtonProps } from 'react-bootstrap/Button';\nimport { IoIosCopy } from '@react-icons/all-files/io/IoIosCopy';\nimport { IoIosRemove } from '@react-icons/all-files/io/IoIosRemove';\nimport { AiOutlineArrowUp } from '@react-icons/all-files/ai/AiOutlineArrowUp';\nimport { AiOutlineArrowDown } from '@react-icons/all-files/ai/AiOutlineArrowDown';\n\nexport type BootstrapIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & ButtonProps;\n\nexport default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const { icon, iconType, className, uiSchema, registry, ...otherProps } = props;\n return (\n <Button {...otherProps} variant={props.variant || 'light'} size='sm'>\n {icon}\n </Button>\n );\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon={<IoIosCopy />} />;\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon={<AiOutlineArrowDown />} />\n );\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon={<AiOutlineArrowUp />} />;\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton\n title={translateString(TranslatableString.RemoveButton)}\n variant='danger'\n {...props}\n icon={<IoIosRemove />}\n />\n );\n}\n", "import { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema, errorId } from '@rjsf/utils';\nimport ListGroup from 'react-bootstrap/ListGroup';\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldErrorProps<T, S, F>) {\n const { errors = [], fieldPathId } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n return (\n <ListGroup as='ul' id={id}>\n {errors.map((error, i) => {\n return (\n <ListGroup.Item as='li' key={i} className='border-0 m-0 p-0'>\n <small className='m-0 text-danger'>{error}</small>\n </ListGroup.Item>\n );\n })}\n </ListGroup>\n );\n}\n", "import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';\nimport { RichHelp } from '@rjsf/core';\nimport Form from 'react-bootstrap/Form';\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldHelpProps<T, S, F>) {\n const { fieldPathId, help, uiSchema, registry, hasErrors } = props;\n if (!help) {\n return null;\n }\n return (\n <Form.Text id={helpId(fieldPathId)} className={hasErrors ? 'text-danger' : 'text-muted'}>\n <RichHelp help={help} registry={registry} uiSchema={uiSchema} />\n </Form.Text>\n );\n}\n", "import {\n FieldTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport Form from 'react-bootstrap/Form';\n\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n children,\n displayLabel,\n rawErrors = [],\n errors,\n help,\n description,\n rawDescription,\n classNames,\n style,\n disabled,\n label,\n hidden,\n onKeyRename,\n onKeyRenameBlur,\n onRemoveProperty,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n}: FieldTemplateProps<T, S, F>) {\n const uiOptions = getUiOptions(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n if (hidden) {\n return <div className='hidden'>{children}</div>;\n }\n const isCheckbox = uiOptions.widget === 'checkbox';\n\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n displayLabel={displayLabel}\n rawDescription={rawDescription}\n onKeyRename={onKeyRename}\n onKeyRenameBlur={onKeyRenameBlur}\n onRemoveProperty={onRemoveProperty}\n readonly={readonly}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n >\n <Form.Group>\n {displayLabel && !isCheckbox && (\n <Form.Label htmlFor={id} className={rawErrors.length > 0 ? 'text-danger' : ''}>\n {label}\n {required ? '*' : null}\n </Form.Label>\n )}\n {children}\n {displayLabel && rawDescription && !isCheckbox && (\n <Form.Text className={rawErrors.length > 0 ? 'text-danger' : 'text-muted'}>{description}</Form.Text>\n )}\n {errors}\n {help}\n </Form.Group>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport { GridTemplateProps } from '@rjsf/utils';\n\n/** Renders a `GridTemplate` for react-bootstrap, which is expecting the column sizing information coming in via the\n * extra props provided by the caller, which are spread directly on the `Row`/`Col`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the react-bootstrap grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, ...rest } = props;\n if (column) {\n return <Col {...rest}>{children}</Col>;\n }\n return <Row {...rest}>{children}</Row>;\n}\n", "import { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport Card from 'react-bootstrap/Card';\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ selector, optionSchemaField }: MultiSchemaFieldTemplateProps<T, S, F>) {\n return (\n <Card style={{ marginBottom: '1rem' }}>\n <Card.Body>{selector}</Card.Body>\n <Card.Body>{optionSchemaField}</Card.Body>\n </Card>\n );\n}\n", "import Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Container from 'react-bootstrap/Container';\n\nimport {\n buttonId,\n canExpand,\n descriptionId,\n FormContextType,\n getTemplate,\n getUiOptions,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n titleId,\n} from '@rjsf/utils';\n\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n description,\n title,\n properties,\n required,\n uiSchema,\n fieldPathId,\n schema,\n formData,\n optionalDataControl,\n onAddProperty,\n disabled,\n readonly,\n registry,\n}: ObjectFieldTemplateProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Container fluid className='p-0'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((element: any, index: number) => (\n <Row key={index} style={{ marginBottom: '10px' }} className={element.hidden ? 'd-none' : undefined}>\n <Col xs={12}> {element.content}</Col>\n </Row>\n ))}\n {canExpand(schema, uiSchema, formData) ? (\n <Row>\n <Col xs={{ offset: 11, span: 1 }} className='py-0.5'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n onClick={onAddProperty}\n disabled={disabled || readonly}\n className='rjsf-object-property-expand'\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n ) : null}\n </Container>\n </>\n );\n}\n", "import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { BsPlus } from '@react-icons/all-files/bs/BsPlus';\n\nimport IconButton, { RemoveButton } from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick } = props;\n if (onAddClick) {\n return (\n <IconButton\n id={id}\n registry={registry}\n className='rjsf-add-optional-data'\n icon={<BsPlus />}\n onClick={onAddClick}\n title={label}\n size='sm'\n variant='secondary'\n />\n );\n } else if (onRemoveClick) {\n return (\n <RemoveButton\n id={id}\n registry={registry}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n size='sm'\n variant='secondary'\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import Button from 'react-bootstrap/Button';\nimport { FormContextType, getSubmitButtonOptions, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\nexport default function SubmitButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SubmitButtonProps<T, S, F>,\n) {\n const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions<T, S, F>(props.uiSchema);\n if (norender) {\n return null;\n }\n return (\n <div>\n <Button variant='primary' type='submit' {...submitButtonProps}>\n {submitText}\n </Button>\n </div>\n );\n}\n", "import { FormContextType, getUiOptions, RJSFSchema, StrictRJSFSchema, TitleFieldProps } from '@rjsf/utils';\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Container from 'react-bootstrap/Container';\n\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n title,\n uiSchema,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n let heading = <h5>{uiOptions.title || title}</h5>;\n if (optionalDataControl) {\n heading = (\n <Container fluid className='p-0'>\n <Row>\n <Col xs='11'>{heading}</Col>\n <Col xs='1' style={{ marginLeft: '-5px' }}>\n {optionalDataControl}\n </Col>\n </Row>\n </Container>\n );\n }\n return (\n <div id={id} className='my-1'>\n {heading}\n <hr className='border-0 bg-secondary mt-0' style={{ height: '1px' }} />\n </div>\n );\n}\n", "import {\n ADDITIONAL_PROPERTY_FLAG,\n buttonId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n} from '@rjsf/utils';\n\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Form from 'react-bootstrap/Form';\n\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n classNames,\n style,\n children,\n disabled,\n id,\n label,\n displayLabel,\n onRemoveProperty,\n onKeyRenameBlur,\n rawDescription,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n}: WrapIfAdditionalTemplateProps<T, S, F>) {\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 const descPadding = rawDescription ? 1 : 0;\n const descMargin = rawDescription ? -24 : 0;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n const keyId = `${id}-key`;\n const margin = displayLabel ? 12 + descMargin : 0;\n const padding = displayLabel ? 4 + descPadding : 1;\n\n return (\n <Row className={classNames} style={style} key={keyId}>\n <Col xs={5}>\n <Form.Group>\n {displayLabel && <Form.Label htmlFor={keyId}>{keyLabel}</Form.Label>}\n <Form.Control\n required={required}\n defaultValue={label}\n disabled={disabled || readonly}\n id={keyId}\n name={keyId}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n type='text'\n />\n </Form.Group>\n </Col>\n <Col xs={6}>{children}</Col>\n <Col xs={1} className={`py-${padding} d-grid gap-2`} style={{ marginTop: `${margin}px` }}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n className='rjsf-object-property-remove w-100'\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n );\n}\n", "import AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate/BaseInputTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n labelValue,\n WidgetProps,\n schemaRequiresTrueValue,\n StrictRJSFSchema,\n RJSFSchema,\n FormContextType,\n} from '@rjsf/utils';\nimport Form from 'react-bootstrap/Form';\n\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label,\n hideLabel,\n schema,\n autofocus,\n options,\n onChange,\n onBlur,\n onFocus,\n registry,\n uiSchema,\n } = props;\n // Because an unchecked checkbox will cause html5 validation to fail, only add\n // the \"required\" attribute if the field value must be \"true\", due to the\n // \"const\" or \"enum\" keywords\n const required = schemaRequiresTrueValue<S>(schema);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n\n const _onChange = ({ target: { checked } }: FocusEvent<HTMLInputElement>) => onChange(checked);\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.checked);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.checked);\n\n const description = options.description || schema.description;\n return (\n <Form.Group className={disabled || readonly ? 'disabled' : ''} aria-describedby={ariaDescribedByIds(id)}>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Form.Check\n id={id}\n name={htmlName || id}\n label={labelValue(label, hideLabel || !label)}\n checked={typeof value === 'undefined' ? false : value}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n onChange={_onChange}\n type='checkbox'\n onBlur={_onBlur}\n onFocus={_onFocus}\n />\n </Form.Group>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Form from 'react-bootstrap/Form';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n required,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, inline, emptyValue } = options;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n\n const _onChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n if (checked) {\n onChange(enumOptionsSelectValue<S>(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue<S>(index, checkboxesValues, enumOptions));\n }\n };\n\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n return (\n <Form.Group>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index: number) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n\n return (\n <Form.Check\n key={option.value}\n inline={inline}\n required={required}\n checked={checked}\n className='bg-transparent border-0'\n type={'checkbox'}\n id={optionId(id, index)}\n name={htmlName || id}\n label={option.label}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n disabled={disabled || itemDisabled || readonly}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n })}\n </Form.Group>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Form from 'react-bootstrap/Form';\nimport {\n ariaDescribedByIds,\n enumOptionsIsSelected,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n htmlName,\n options,\n value,\n required,\n disabled,\n readonly,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(enumOptionsValueForIndex<S>(value, enumOptions, emptyValue));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n const inline = Boolean(options && options.inline);\n\n return (\n <Form.Group className='mb-0'>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n const checked = enumOptionsIsSelected<S>(option.value, value);\n\n const radio = (\n <Form.Check\n inline={inline}\n label={option.label}\n id={optionId(id, index)}\n key={index}\n name={htmlName || id}\n type='radio'\n disabled={disabled || itemDisabled || readonly}\n checked={checked}\n required={required}\n value={String(index)}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n return radio;\n })}\n </Form.Group>\n );\n}\n", "import { FormContextType, rangeSpec, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ChangeEvent, FocusEvent } from 'react';\nimport FormRange from 'react-bootstrap/FormRange';\n\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { id, value, disabled, onChange, onBlur, onFocus, schema } = props;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) => onChange(value);\n const _onBlur = ({ target: { value } }: FocusEvent<HTMLInputElement>) => onBlur(id, value);\n const _onFocus = ({ target: { value } }: FocusEvent<HTMLInputElement>) => onFocus(id, value);\n\n const rangeProps = {\n value,\n id,\n name: id,\n disabled,\n onChange: _onChange,\n onBlur: _onBlur,\n onFocus: _onFocus,\n ...rangeSpec<S>(schema),\n };\n\n return (\n <>\n <FormRange {...rangeProps} />\n <span className='range-view'>{value}</span>\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport FormSelect from 'react-bootstrap/FormSelect';\nimport {\n ariaDescribedByIds,\n FormContextType,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function SelectWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n schema,\n id,\n htmlName,\n options,\n required,\n disabled,\n readonly,\n value,\n multiple,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n placeholder,\n rawErrors = [],\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyValue } = options;\n\n const emptyValue = multiple ? [] : '';\n\n function getValue(event: FocusEvent | ChangeEvent | any, multiple?: boolean) {\n if (multiple) {\n return [].slice\n .call(event.target.options as any)\n .filter((o: any) => o.selected)\n .map((o: any) => o.value);\n } else {\n return event.target.value;\n }\n }\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n const showPlaceholderOption = !multiple && schema.default === undefined;\n\n return (\n <FormSelect\n id={id}\n name={htmlName || id}\n value={typeof selectedIndexes === 'undefined' ? emptyValue : selectedIndexes}\n required={required}\n multiple={multiple}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n className={rawErrors.length > 0 ? 'is-invalid' : ''}\n onBlur={\n onBlur &&\n ((event: FocusEvent) => {\n const newValue = getValue(event, multiple);\n onBlur(id, enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyValue));\n })\n }\n onFocus={\n onFocus &&\n ((event: FocusEvent) => {\n const newValue = getValue(event, multiple);\n onFocus(id, enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyValue));\n })\n }\n onChange={(event: ChangeEvent) => {\n const newValue = getValue(event, multiple);\n onChange(enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyValue));\n }}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {showPlaceholderOption && <option value=''>{placeholder}</option>}\n {(enumOptions as any).map(({ value, label }: any, i: number) => {\n const disabled: any = Array.isArray(enumDisabled) && (enumDisabled as any).indexOf(value) != -1;\n return (\n <option key={i} id={label} value={String(i)} disabled={disabled}>\n {label}\n </option>\n );\n })}\n </FormSelect>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport FormControl from 'react-bootstrap/FormControl';\nimport InputGroup from 'react-bootstrap/InputGroup';\n\ntype CustomWidgetProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = WidgetProps<\n T,\n S,\n F\n> & {\n options: any;\n};\n\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n htmlName,\n placeholder,\n value,\n required,\n disabled,\n autofocus,\n readonly,\n onBlur,\n onFocus,\n onChange,\n options,\n}: CustomWidgetProps<T, S, F>) {\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = ({ target }: FocusEvent<HTMLTextAreaElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLTextAreaElement>) => onFocus(id, target && target.value);\n\n return (\n <InputGroup>\n <FormControl\n id={id}\n name={htmlName || id}\n as='textarea'\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readonly}\n value={value}\n required={required}\n autoFocus={autofocus}\n rows={options.rows || 5}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </InputGroup>\n );\n}\n", "import CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\nimport { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n", "import { ThemeProps } from '@rjsf/core';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n };\n}\n\nexport default generateTheme();\n", "import Form from './Form/Form';\n\nexport { default as Form, generateForm } from './Form';\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\n\nexport default Form;\n"],
|
|
5
|
+
"mappings": ";AAEA,SAAS,iBAA4B;;;ACFrC,SAAyE,0BAA0B;AACnG,OAAO,YAAY;AACnB,SAAS,cAAc;AAejB;AAbS,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA6B;AAC3B,QAAM,EAAE,gBAAgB,IAAI;AAC5B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,gBAAgB,mBAAmB,aAAa;AAAA,MACtD,GAAG;AAAA,MACJ,OAAO,EAAE,OAAO,OAAO;AAAA,MACvB,WAAW,QAAQ,MAAM,SAAS;AAAA,MAElC,8BAAC,UAAO;AAAA;AAAA,EACV;AAEJ;;;ACnBA,OAAO,SAAS;AAChB,OAAO,SAAS;AAChB;AAAA,EAGE;AAAA,EACA;AAAA,OAGK;AAuBD,SACE,OAAAA,MADF;AArBS,SAAR,uBAIL,OAA6C;AAC7C,QAAM,EAAE,UAAU,cAAc,cAAc,gBAAgB,YAAY,UAAU,SAAS,IAAI;AACjG,QAAM,YAAY,aAAsB,QAAQ;AAChD,QAAM,gCAAgC;AAAA,IACpC;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,QAAM,WAA0B;AAAA,IAC9B,MAAM;AAAA,IACN,aAAa;AAAA,IACb,cAAc;AAAA,IACd,YAAY;AAAA,EACd;AACA,QAAM,UAAU,iBAAiB,SAAS;AAC1C,SACE,gBAAAA,KAAC,SACC,+BAAC,OAAI,WAAU,mCACb;AAAA,oBAAAA,KAAC,OAAI,IAAG,KAAI,IAAG,KAAI,IAAG,MACnB,UACH;AAAA,IACA,gBAAAA,KAAC,OAAI,IAAG,KAAI,IAAG,KA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;ACjBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;A1BXtB,SAAS,eAIuB;AACrC,SAAO,UAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,eAAQ,aAAa;;;A2BP5B,IAAO,gBAAQ;",
|
|
6
6
|
"names": ["jsx", "Row", "Col", "getTemplate", "getUiOptions", "jsx", "jsxs", "AddButton", "jsx", "jsxs", "value", "jsx", "TranslatableString", "jsx", "jsxs", "TranslatableString", "Button", "jsx", "ListGroup", "jsx", "Form", "jsx", "getTemplate", "getUiOptions", "Form", "jsx", "jsxs", "WrapIfAdditionalTemplate", "Row", "Col", "jsx", "Card", "jsx", "jsxs", "Row", "Col", "Container", "buttonId", "getTemplate", "getUiOptions", "Fragment", "jsx", "jsxs", "AddButton", "BsPlus", "jsx", "BsPlus", "Button", "jsx", "getUiOptions", "Row", "Col", "Container", "jsx", "jsxs", "buttonId", "TranslatableString", "Row", "Col", "Form", "jsx", "jsxs", "RemoveButton", "ariaDescribedByIds", "descriptionId", "getTemplate", "Form", "jsx", "jsxs", "Form", "ariaDescribedByIds", "jsx", "Form", "ariaDescribedByIds", "enumOptionsIsSelected", "enumOptionsValueForIndex", "optionId", "jsx", "value", "Fragment", "jsx", "jsxs", "value", "ariaDescribedByIds", "enumOptionsValueForIndex", "jsx", "jsxs", "multiple", "value", "disabled", "ariaDescribedByIds", "jsx", "value"]
|
|
7
7
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
function ArrayFieldItemTemplate(props) {
|
|
26
|
-
const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;
|
|
26
|
+
const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, uiSchema, registry } = props;
|
|
27
27
|
const uiOptions = utils.getUiOptions(uiSchema);
|
|
28
28
|
const ArrayFieldItemButtonsTemplate = utils.getTemplate(
|
|
29
29
|
"ArrayFieldItemButtonsTemplate",
|
|
@@ -36,9 +36,10 @@
|
|
|
36
36
|
paddingRight: 6,
|
|
37
37
|
fontWeight: "bold"
|
|
38
38
|
};
|
|
39
|
+
const padding = hasDescription ? "pb-1" : "pt-4 mt-2";
|
|
39
40
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs(Row2, { className: "mb-2 d-flex align-items-center", children: [
|
|
40
|
-
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: "9", lg: "
|
|
41
|
-
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: "3", lg: "
|
|
41
|
+
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: "8", md: "9", lg: "10", children }),
|
|
42
|
+
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: "4", md: "3", lg: "2", className: displayLabel ? padding : "py-4", children: hasToolbar && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "d-flex flex-row", children: /* @__PURE__ */ jsxRuntime.jsx(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle }) }) })
|
|
42
43
|
] }) });
|
|
43
44
|
}
|
|
44
45
|
function ArrayFieldTemplate(props) {
|
|
@@ -98,8 +99,8 @@
|
|
|
98
99
|
!showOptionalDataControlInTitle ? optionalDataControl : void 0,
|
|
99
100
|
items,
|
|
100
101
|
canAdd && /* @__PURE__ */ jsxRuntime.jsx(Container, { className: "", children: /* @__PURE__ */ jsxRuntime.jsxs(Row2, { className: "mt-2", children: [
|
|
101
|
-
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: 9 }),
|
|
102
|
-
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: 3, className: "py-4
|
|
102
|
+
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: 9, md: 10, lg: 11 }),
|
|
103
|
+
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: 3, md: 2, lg: 1, className: "py-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
103
104
|
AddButton2,
|
|
104
105
|
{
|
|
105
106
|
id: utils.buttonId(fieldPathId, "add"),
|
|
@@ -233,12 +234,11 @@
|
|
|
233
234
|
}) });
|
|
234
235
|
}
|
|
235
236
|
function FieldHelpTemplate(props) {
|
|
236
|
-
const { fieldPathId, help, hasErrors } = props;
|
|
237
|
+
const { fieldPathId, help, uiSchema, registry, hasErrors } = props;
|
|
237
238
|
if (!help) {
|
|
238
239
|
return null;
|
|
239
240
|
}
|
|
240
|
-
|
|
241
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Form3.Text, { className: hasErrors ? "text-danger" : "text-muted", id, children: help });
|
|
241
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Form3.Text, { id: utils.helpId(fieldPathId), className: hasErrors ? "text-danger" : "text-muted", children: /* @__PURE__ */ jsxRuntime.jsx(core.RichHelp, { help, registry, uiSchema }) });
|
|
242
242
|
}
|
|
243
243
|
function FieldTemplate({
|
|
244
244
|
id,
|
|
@@ -281,6 +281,8 @@
|
|
|
281
281
|
disabled,
|
|
282
282
|
id,
|
|
283
283
|
label,
|
|
284
|
+
displayLabel,
|
|
285
|
+
rawDescription,
|
|
284
286
|
onKeyRename,
|
|
285
287
|
onKeyRenameBlur,
|
|
286
288
|
onRemoveProperty,
|
|
@@ -370,7 +372,7 @@
|
|
|
370
372
|
" ",
|
|
371
373
|
element.content
|
|
372
374
|
] }) }, index)),
|
|
373
|
-
utils.canExpand(schema, uiSchema, formData) ? /* @__PURE__ */ jsxRuntime.jsx(Row2, { children: /* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: { offset:
|
|
375
|
+
utils.canExpand(schema, uiSchema, formData) ? /* @__PURE__ */ jsxRuntime.jsx(Row2, { children: /* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: { offset: 11, span: 1 }, className: "py-0.5", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
374
376
|
AddButton2,
|
|
375
377
|
{
|
|
376
378
|
id: utils.buttonId(fieldPathId, "add"),
|
|
@@ -449,8 +451,10 @@
|
|
|
449
451
|
disabled,
|
|
450
452
|
id,
|
|
451
453
|
label,
|
|
454
|
+
displayLabel,
|
|
452
455
|
onRemoveProperty,
|
|
453
456
|
onKeyRenameBlur,
|
|
457
|
+
rawDescription,
|
|
454
458
|
readonly,
|
|
455
459
|
required,
|
|
456
460
|
schema,
|
|
@@ -461,13 +465,17 @@
|
|
|
461
465
|
const { RemoveButton: RemoveButton2 } = templates.ButtonTemplates;
|
|
462
466
|
const keyLabel = translateString(utils.TranslatableString.KeyLabel, [label]);
|
|
463
467
|
const additional = utils.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
468
|
+
const descPadding = rawDescription ? 1 : 0;
|
|
469
|
+
const descMargin = rawDescription ? -24 : 0;
|
|
464
470
|
if (!additional) {
|
|
465
471
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames, style, children });
|
|
466
472
|
}
|
|
467
473
|
const keyId = `${id}-key`;
|
|
474
|
+
const margin = displayLabel ? 12 + descMargin : 0;
|
|
475
|
+
const padding = displayLabel ? 4 + descPadding : 1;
|
|
468
476
|
return /* @__PURE__ */ jsxRuntime.jsxs(Row2, { className: classNames, style, children: [
|
|
469
477
|
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: 5, children: /* @__PURE__ */ jsxRuntime.jsxs(Form3.Group, { children: [
|
|
470
|
-
/* @__PURE__ */ jsxRuntime.jsx(Form3.Label, { htmlFor: keyId, children: keyLabel }),
|
|
478
|
+
displayLabel && /* @__PURE__ */ jsxRuntime.jsx(Form3.Label, { htmlFor: keyId, children: keyLabel }),
|
|
471
479
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
472
480
|
Form3.Control,
|
|
473
481
|
{
|
|
@@ -481,8 +489,8 @@
|
|
|
481
489
|
}
|
|
482
490
|
)
|
|
483
491
|
] }) }),
|
|
484
|
-
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs:
|
|
485
|
-
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs:
|
|
492
|
+
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: 6, children }),
|
|
493
|
+
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: 1, className: `py-${padding} d-grid gap-2`, style: { marginTop: `${margin}px` }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
486
494
|
RemoveButton2,
|
|
487
495
|
{
|
|
488
496
|
id: utils.buttonId(id, "remove"),
|
|
@@ -3,7 +3,7 @@ import Row from 'react-bootstrap/Row';
|
|
|
3
3
|
import Col from 'react-bootstrap/Col';
|
|
4
4
|
import { getTemplate, getUiOptions, } from '@rjsf/utils';
|
|
5
5
|
export default function ArrayFieldItemTemplate(props) {
|
|
6
|
-
const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;
|
|
6
|
+
const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, uiSchema, registry } = props;
|
|
7
7
|
const uiOptions = getUiOptions(uiSchema);
|
|
8
8
|
const ArrayFieldItemButtonsTemplate = getTemplate('ArrayFieldItemButtonsTemplate', registry, uiOptions);
|
|
9
9
|
const btnStyle = {
|
|
@@ -12,6 +12,7 @@ export default function ArrayFieldItemTemplate(props) {
|
|
|
12
12
|
paddingRight: 6,
|
|
13
13
|
fontWeight: 'bold',
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
const padding = hasDescription ? 'pb-1' : 'pt-4 mt-2';
|
|
16
|
+
return (_jsx("div", { children: _jsxs(Row, { className: 'mb-2 d-flex align-items-center', children: [_jsx(Col, { xs: '8', md: '9', lg: '10', children: children }), _jsx(Col, { xs: '4', md: '3', lg: '2', className: displayLabel ? padding : 'py-4', children: hasToolbar && (_jsx("div", { className: 'd-flex flex-row', children: _jsx(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle }) })) })] }) }));
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=ArrayFieldItemTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayFieldItemTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,EAGL,WAAW,EACX,YAAY,GAGb,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAI5C,KAA2C;IAC3C,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"ArrayFieldItemTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,EAGL,WAAW,EACX,YAAY,GAGb,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAI5C,KAA2C;IAC3C,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACvG,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,6BAA6B,GAAG,WAAW,CAC/C,+BAA+B,EAC/B,QAAQ,EACR,SAAS,CACV,CAAC;IACF,MAAM,QAAQ,GAAkB;QAC9B,IAAI,EAAE,CAAC;QACP,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,MAAM;KACnB,CAAC;IACF,MAAM,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC;IACtD,OAAO,CACL,wBACE,MAAC,GAAG,IAAC,SAAS,EAAC,iCAAiC,aAC9C,KAAC,GAAG,IAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,YACvB,QAAQ,GACL,EACN,KAAC,GAAG,IAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,YACjE,UAAU,IAAI,CACb,cAAK,SAAS,EAAC,iBAAiB,YAC9B,KAAC,6BAA6B,OAAK,YAAY,EAAE,KAAK,EAAE,QAAQ,GAAI,GAChE,CACP,GACG,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -11,6 +11,6 @@ export default function ArrayFieldTemplate(props) {
|
|
|
11
11
|
const showOptionalDataControlInTitle = !readonly && !disabled;
|
|
12
12
|
// Button templates are not overridden in the uiSchema
|
|
13
13
|
const { ButtonTemplates: { AddButton }, } = registry.templates;
|
|
14
|
-
return (_jsx("div", { children: _jsx(Row, { className: 'p-0 m-0', children: _jsxs(Col, { className: 'p-0 m-0', children: [_jsx(ArrayFieldTitleTemplate, { fieldPathId: fieldPathId, title: uiOptions.title || title, schema: schema, uiSchema: uiSchema, required: required, registry: registry, optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : undefined }), _jsx(ArrayFieldDescriptionTemplate, { fieldPathId: fieldPathId, description: uiOptions.description || schema.description, schema: schema, uiSchema: uiSchema, registry: registry }), _jsxs(Container, { fluid: true, className: 'p-0 m-0', children: [!showOptionalDataControlInTitle ? optionalDataControl : undefined, items, canAdd && (_jsx(Container, { className: '', children: _jsxs(Row, { className: 'mt-2', children: [_jsx(Col, { xs: 9 }), _jsx(Col, { xs: 3, className: 'py-4
|
|
14
|
+
return (_jsx("div", { children: _jsx(Row, { className: 'p-0 m-0', children: _jsxs(Col, { className: 'p-0 m-0', children: [_jsx(ArrayFieldTitleTemplate, { fieldPathId: fieldPathId, title: uiOptions.title || title, schema: schema, uiSchema: uiSchema, required: required, registry: registry, optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : undefined }), _jsx(ArrayFieldDescriptionTemplate, { fieldPathId: fieldPathId, description: uiOptions.description || schema.description, schema: schema, uiSchema: uiSchema, registry: registry }), _jsxs(Container, { fluid: true, className: 'p-0 m-0', children: [!showOptionalDataControlInTitle ? optionalDataControl : undefined, items, canAdd && (_jsx(Container, { className: '', children: _jsxs(Row, { className: 'mt-2', children: [_jsx(Col, { xs: 9, md: 10, lg: 11 }), _jsx(Col, { xs: 3, md: 2, lg: 1, className: 'py-4', children: _jsx(AddButton, { id: buttonId(fieldPathId, 'add'), className: 'rjsf-array-item-add', onClick: onAddClick, disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }) })] }) }))] }, `array-item-list-${fieldPathId.$id}`)] }) }) }));
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=ArrayFieldTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayFieldTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAEL,QAAQ,EAER,WAAW,EACX,YAAY,GAGb,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,KAAuC;IACvC,MAAM,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,GACN,GAAG,KAAK,CAAC;IACV,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,6BAA6B,GAAG,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,6BAA6B,IAC5B,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,SAAS,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,EACxD,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,EACF,MAAC,SAAS,IAAC,KAAK,QAA4C,SAAS,EAAC,SAAS,aAC5E,CAAC,8BAA8B,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,EACjE,KAAK,EACL,MAAM,IAAI,CACT,KAAC,SAAS,IAAC,SAAS,EAAC,EAAE,YACrB,MAAC,GAAG,IAAC,SAAS,EAAC,MAAM,aACnB,KAAC,GAAG,IAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAQ,EAClC,KAAC,GAAG,IAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAC,MAAM,YACxC,KAAC,SAAS,IACR,EAAE,EAAE,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,EAChC,SAAS,EAAC,qBAAqB,EAC/B,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,GACE,IACF,GACI,CACb,KAnBmB,mBAAmB,WAAW,CAAC,GAAG,EAAE,CAoB9C,IACR,GACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { helpId } from '@rjsf/utils';
|
|
3
|
+
import { RichHelp } from '@rjsf/core';
|
|
3
4
|
import Form from 'react-bootstrap/Form';
|
|
4
5
|
/** The `FieldHelpTemplate` component renders any help desired for a field
|
|
5
6
|
*
|
|
6
7
|
* @param props - The `FieldHelpProps` to be rendered
|
|
7
8
|
*/
|
|
8
9
|
export default function FieldHelpTemplate(props) {
|
|
9
|
-
const { fieldPathId, help, hasErrors } = props;
|
|
10
|
+
const { fieldPathId, help, uiSchema, registry, hasErrors } = props;
|
|
10
11
|
if (!help) {
|
|
11
12
|
return null;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
return (_jsx(Form.Text, { className: hasErrors ? 'text-danger' : 'text-muted', id: id, children: help }));
|
|
14
|
+
return (_jsx(Form.Text, { id: helpId(fieldPathId), className: hasErrors ? 'text-danger' : 'text-muted', children: _jsx(RichHelp, { help: help, registry: registry, uiSchema: uiSchema }) }));
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=FieldHelpTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldHelpTemplate.js","sourceRoot":"","sources":["../../src/FieldHelpTemplate/FieldHelpTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiE,MAAM,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAA8B;IAC9B,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"FieldHelpTemplate.js","sourceRoot":"","sources":["../../src/FieldHelpTemplate/FieldHelpTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiE,MAAM,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAA8B;IAC9B,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACnE,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,KAAC,IAAI,CAAC,IAAI,IAAC,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,YACrF,KAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,GACtD,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -8,6 +8,6 @@ export default function FieldTemplate({ id, children, displayLabel, rawErrors =
|
|
|
8
8
|
return _jsx("div", { className: 'hidden', children: children });
|
|
9
9
|
}
|
|
10
10
|
const isCheckbox = uiOptions.widget === 'checkbox';
|
|
11
|
-
return (_jsx(WrapIfAdditionalTemplate, { classNames: classNames, style: style, disabled: disabled, id: id, label: label, onKeyRename: onKeyRename, onKeyRenameBlur: onKeyRenameBlur, onRemoveProperty: onRemoveProperty, readonly: readonly, required: required, schema: schema, uiSchema: uiSchema, registry: registry, children: _jsxs(Form.Group, { children: [displayLabel && !isCheckbox && (_jsxs(Form.Label, { htmlFor: id, className: rawErrors.length > 0 ? 'text-danger' : '', children: [label, required ? '*' : null] })), children, displayLabel && rawDescription && !isCheckbox && (_jsx(Form.Text, { className: rawErrors.length > 0 ? 'text-danger' : 'text-muted', children: description })), errors, help] }) }));
|
|
11
|
+
return (_jsx(WrapIfAdditionalTemplate, { classNames: classNames, style: style, disabled: disabled, id: id, label: label, displayLabel: displayLabel, rawDescription: rawDescription, onKeyRename: onKeyRename, onKeyRenameBlur: onKeyRenameBlur, onRemoveProperty: onRemoveProperty, readonly: readonly, required: required, schema: schema, uiSchema: uiSchema, registry: registry, children: _jsxs(Form.Group, { children: [displayLabel && !isCheckbox && (_jsxs(Form.Label, { htmlFor: id, className: rawErrors.length > 0 ? 'text-danger' : '', children: [label, required ? '*' : null] })), children, displayLabel && rawDescription && !isCheckbox && (_jsx(Form.Text, { className: rawErrors.length > 0 ? 'text-danger' : 'text-muted', children: description })), errors, help] }) }));
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=FieldTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldTemplate.js","sourceRoot":"","sources":["../../src/FieldTemplate/FieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,WAAW,EACX,YAAY,GAGb,MAAM,aAAa,CAAC;AACrB,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,aAAa,CAInC,EACA,EAAE,EACF,QAAQ,EACR,YAAY,EACZ,SAAS,GAAG,EAAE,EACd,MAAM,EACN,IAAI,EACJ,WAAW,EACX,cAAc,EACd,UAAU,EACV,KAAK,EACL,QAAQ,EACR,KAAK,EACL,MAAM,EACN,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,GACoB;IAC5B,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,wBAAwB,GAAG,WAAW,CAC1C,0BAA0B,EAC1B,QAAQ,EACR,SAAS,CACV,CAAC;IACF,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,cAAK,SAAS,EAAC,QAAQ,YAAE,QAAQ,GAAO,CAAC;IAClD,CAAC;IACD,MAAM,UAAU,GAAG,SAAS,CAAC,MAAM,KAAK,UAAU,CAAC;IAEnD,OAAO,CACL,KAAC,wBAAwB,IACvB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MA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
|
|
10
10
|
const showOptionalDataControlInTitle = !readonly && !disabled;
|
|
11
11
|
// Button templates are not overridden in the uiSchema
|
|
12
12
|
const { ButtonTemplates: { AddButton }, } = registry.templates;
|
|
13
|
-
return (_jsxs(_Fragment, { children: [title && (_jsx(TitleFieldTemplate, { id: titleId(fieldPathId), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry, optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : undefined })), description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(fieldPathId), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsxs(Container, { fluid: true, className: 'p-0', children: [!showOptionalDataControlInTitle ? optionalDataControl : undefined, properties.map((element, index) => (_jsx(Row, { style: { marginBottom: '10px' }, className: element.hidden ? 'd-none' : undefined, children: _jsxs(Col, { xs: 12, children: [" ", element.content] }) }, index))), canExpand(schema, uiSchema, formData) ? (_jsx(Row, { children: _jsx(Col, { xs: { offset:
|
|
13
|
+
return (_jsxs(_Fragment, { children: [title && (_jsx(TitleFieldTemplate, { id: titleId(fieldPathId), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry, optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : undefined })), description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(fieldPathId), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsxs(Container, { fluid: true, className: 'p-0', children: [!showOptionalDataControlInTitle ? optionalDataControl : undefined, properties.map((element, index) => (_jsx(Row, { style: { marginBottom: '10px' }, className: element.hidden ? 'd-none' : undefined, children: _jsxs(Col, { xs: 12, children: [" ", element.content] }) }, index))), canExpand(schema, uiSchema, formData) ? (_jsx(Row, { children: _jsx(Col, { xs: { offset: 11, span: 1 }, className: 'py-0.5', children: _jsx(AddButton, { id: buttonId(fieldPathId, 'add'), onClick: onAddProperty, disabled: disabled || readonly, className: 'rjsf-object-property-expand', uiSchema: uiSchema, registry: registry }) }) })) : null] })] }));
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=ObjectFieldTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectFieldTemplate.js","sourceRoot":"","sources":["../../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,OAAO,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EAEb,WAAW,EACX,YAAY,EAIZ,OAAO,GACR,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAIzC,EACA,WAAW,EACX,KAAK,EACL,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,GAC0B;IAClC,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,kBAAkB,GAAG,WAAW,CAAgC,oBAAoB,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IACjH,MAAM,wBAAwB,GAAG,WAAW,CAC1C,0BAA0B,EAC1B,QAAQ,EACR,SAAS,CACV,CAAC;IACF,MAAM,8BAA8B,GAAG,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC;IAC9D,sDAAsD;IACtD,MAAM,EACJ,eAAe,EAAE,EAAE,SAAS,EAAE,GAC/B,GAAG,QAAQ,CAAC,SAAS,CAAC;IACvB,OAAO,CACL,8BACG,KAAK,IAAI,CACR,KAAC,kBAAkB,IACjB,EAAE,EAAE,OAAO,CAAC,WAAW,CAAC,EACxB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,mBAAmB,EAAE,8BAA8B,CAAC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CAAC,CAC/C,KAAC,GAAG,IAAa,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,YAChG,MAAC,GAAG,IAAC,EAAE,EAAE,EAAE,kBAAI,OAAO,CAAC,OAAO,IAAO,IAD7B,KAAK,CAET,CACP,CAAC,EACD,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CACvC,KAAC,GAAG,cACF,KAAC,GAAG,IAAC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,SAAS,EAAC,QAAQ,YAClD,KAAC,SAAS,IACR,EAAE,EAAE,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,EAChC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,SAAS,EAAC,6BAA6B,EACvC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,GACE,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACE,IACX,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FormContextType, RJSFSchema, StrictRJSFSchema, WrapIfAdditionalTemplateProps } from '@rjsf/utils';
|
|
2
|
-
export default function WrapIfAdditionalTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ classNames, style, children, disabled, id, label, onRemoveProperty, onKeyRenameBlur, readonly, required, schema, uiSchema, registry, }: WrapIfAdditionalTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function WrapIfAdditionalTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ classNames, style, children, disabled, id, label, displayLabel, onRemoveProperty, onKeyRenameBlur, rawDescription, readonly, required, schema, uiSchema, registry, }: WrapIfAdditionalTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,16 +3,20 @@ import { ADDITIONAL_PROPERTY_FLAG, buttonId, TranslatableString, } from '@rjsf/u
|
|
|
3
3
|
import Row from 'react-bootstrap/Row';
|
|
4
4
|
import Col from 'react-bootstrap/Col';
|
|
5
5
|
import Form from 'react-bootstrap/Form';
|
|
6
|
-
export default function WrapIfAdditionalTemplate({ classNames, style, children, disabled, id, label, onRemoveProperty, onKeyRenameBlur, readonly, required, schema, uiSchema, registry, }) {
|
|
6
|
+
export default function WrapIfAdditionalTemplate({ classNames, style, children, disabled, id, label, displayLabel, onRemoveProperty, onKeyRenameBlur, rawDescription, readonly, required, schema, uiSchema, registry, }) {
|
|
7
7
|
const { templates, translateString } = registry;
|
|
8
8
|
// Button templates are not overridden in the uiSchema
|
|
9
9
|
const { RemoveButton } = templates.ButtonTemplates;
|
|
10
10
|
const keyLabel = translateString(TranslatableString.KeyLabel, [label]);
|
|
11
11
|
const additional = ADDITIONAL_PROPERTY_FLAG in schema;
|
|
12
|
+
const descPadding = rawDescription ? 1 : 0;
|
|
13
|
+
const descMargin = rawDescription ? -24 : 0;
|
|
12
14
|
if (!additional) {
|
|
13
15
|
return (_jsx("div", { className: classNames, style: style, children: children }));
|
|
14
16
|
}
|
|
15
17
|
const keyId = `${id}-key`;
|
|
16
|
-
|
|
18
|
+
const margin = displayLabel ? 12 + descMargin : 0;
|
|
19
|
+
const padding = displayLabel ? 4 + descPadding : 1;
|
|
20
|
+
return (_jsxs(Row, { className: classNames, style: style, children: [_jsx(Col, { xs: 5, children: _jsxs(Form.Group, { children: [displayLabel && _jsx(Form.Label, { htmlFor: keyId, children: keyLabel }), _jsx(Form.Control, { required: required, defaultValue: label, disabled: disabled || readonly, id: keyId, name: keyId, onBlur: !readonly ? onKeyRenameBlur : undefined, type: 'text' })] }) }), _jsx(Col, { xs: 6, children: children }), _jsx(Col, { xs: 1, className: `py-${padding} d-grid gap-2`, style: { marginTop: `${margin}px` }, children: _jsx(RemoveButton, { id: buttonId(id, 'remove'), className: 'rjsf-object-property-remove w-100', disabled: disabled || readonly, onClick: onRemoveProperty, uiSchema: uiSchema, registry: registry }) })] }, keyId));
|
|
17
21
|
}
|
|
18
22
|
//# sourceMappingURL=WrapIfAdditionalTemplate.js.map
|