@rjsf/react-bootstrap 6.1.2 → 6.2.3
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 -3
- package/dist/index.cjs.map +3 -3
- package/dist/react-bootstrap.esm.js +23 -3
- package/dist/react-bootstrap.esm.js.map +3 -3
- package/dist/react-bootstrap.umd.js +25 -7
- package/lib/BaseInputTemplate/BaseInputTemplate.d.ts +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js +10 -2
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/IconButton/IconButton.d.ts +1 -0
- package/lib/IconButton/IconButton.js +5 -0
- package/lib/IconButton/IconButton.js.map +1 -1
- package/lib/Templates/Templates.js +2 -1
- package/lib/Templates/Templates.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +14 -1
- package/src/IconButton/IconButton.tsx +10 -0
- package/src/Templates/Templates.ts +2 -1
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +1 -1
|
@@ -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, 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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emplate", "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"]
|
|
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, MouseEvent, useCallback } 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 registry,\n}: BaseInputTemplateProps<T, S, F>) {\n const { ClearButton } = registry.templates.ButtonTemplates;\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 const _onClear = useCallback(\n (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n onChange(options.emptyValue ?? '');\n },\n [onChange, options.emptyValue],\n );\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 {options.allowClearTextInputs && !readonly && !disabled && value && (\n <ClearButton registry={registry} onClick={_onClear} />\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';\nimport { IoMdClose } from '@react-icons/all-files/io/IoMdClose';\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\nexport function ClearButton<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.ClearButton)} {...props} icon={<IoMdClose />} />;\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`, maxHeight: `2.5rem` }}>\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, ClearButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n ClearButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { 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,QAA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|
+
"names": ["jsx", "Row", "Col", "getTemplate", "getUiOptions", "jsx", "jsxs", "AddButton", "jsx", "jsxs", "ClearButton", "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
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('@rjsf/utils'), require('react-bootstrap/Button'), require('@react-icons/all-files/bs/BsPlus'), require('react/jsx-runtime'), require('react-bootstrap/Row'), require('react-bootstrap/Col'), require('react-bootstrap/Container'), require('react-bootstrap/Form'), require('react-bootstrap/Card'), require('react-bootstrap/ListGroup'), require('@react-icons/all-files/io/IoIosCopy'), require('@react-icons/all-files/io/IoIosRemove'), require('@react-icons/all-files/ai/AiOutlineArrowUp'), require('@react-icons/all-files/ai/AiOutlineArrowDown'), require('react-bootstrap/FormRange'), require('react-bootstrap/FormSelect'), require('react-bootstrap/FormControl'), require('react-bootstrap/InputGroup')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', '@rjsf/utils', 'react-bootstrap/Button', '@react-icons/all-files/bs/BsPlus', 'react/jsx-runtime', 'react-bootstrap/Row', 'react-bootstrap/Col', 'react-bootstrap/Container', 'react-bootstrap/Form', 'react-bootstrap/Card', 'react-bootstrap/ListGroup', '@react-icons/all-files/io/IoIosCopy', '@react-icons/all-files/io/IoIosRemove', '@react-icons/all-files/ai/AiOutlineArrowUp', '@react-icons/all-files/ai/AiOutlineArrowDown', 'react-bootstrap/FormRange', 'react-bootstrap/FormSelect', 'react-bootstrap/FormControl', 'react-bootstrap/InputGroup'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/react-bootstrap"] = {}, global.core, global.utils, global.Button, global.BsPlus, global.jsxRuntime, global.Row2, global.Col2, global.Container, global.Form3, global.Card, global.ListGroup, global.IoIosCopy, global.IoIosRemove, global.AiOutlineArrowUp, global.AiOutlineArrowDown, global.FormRange, global.FormSelect, global.FormControl, global.InputGroup));
|
|
5
|
-
})(this, (function (exports, core, utils, Button, BsPlus, jsxRuntime, Row2, Col2, Container, Form3, Card, ListGroup, IoIosCopy, IoIosRemove, AiOutlineArrowUp, AiOutlineArrowDown, FormRange, FormSelect, FormControl, InputGroup) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('@rjsf/utils'), require('react-bootstrap/Button'), require('@react-icons/all-files/bs/BsPlus'), require('react/jsx-runtime'), require('react-bootstrap/Row'), require('react-bootstrap/Col'), require('react-bootstrap/Container'), require('react'), require('react-bootstrap/Form'), require('react-bootstrap/Card'), require('react-bootstrap/ListGroup'), require('@react-icons/all-files/io/IoIosCopy'), require('@react-icons/all-files/io/IoIosRemove'), require('@react-icons/all-files/ai/AiOutlineArrowUp'), require('@react-icons/all-files/ai/AiOutlineArrowDown'), require('@react-icons/all-files/io/IoMdClose'), require('react-bootstrap/FormRange'), require('react-bootstrap/FormSelect'), require('react-bootstrap/FormControl'), require('react-bootstrap/InputGroup')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', '@rjsf/utils', 'react-bootstrap/Button', '@react-icons/all-files/bs/BsPlus', 'react/jsx-runtime', 'react-bootstrap/Row', 'react-bootstrap/Col', 'react-bootstrap/Container', 'react', 'react-bootstrap/Form', 'react-bootstrap/Card', 'react-bootstrap/ListGroup', '@react-icons/all-files/io/IoIosCopy', '@react-icons/all-files/io/IoIosRemove', '@react-icons/all-files/ai/AiOutlineArrowUp', '@react-icons/all-files/ai/AiOutlineArrowDown', '@react-icons/all-files/io/IoMdClose', 'react-bootstrap/FormRange', 'react-bootstrap/FormSelect', 'react-bootstrap/FormControl', 'react-bootstrap/InputGroup'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/react-bootstrap"] = {}, global.core, global.utils, global.Button, global.BsPlus, global.jsxRuntime, global.Row2, global.Col2, global.Container, global.react, global.Form3, global.Card, global.ListGroup, global.IoIosCopy, global.IoIosRemove, global.AiOutlineArrowUp, global.AiOutlineArrowDown, global.IoMdClose, global.FormRange, global.FormSelect, global.FormControl, global.InputGroup));
|
|
5
|
+
})(this, (function (exports, core, utils, Button, BsPlus, jsxRuntime, Row2, Col2, Container, react, Form3, Card, ListGroup, IoIosCopy, IoIosRemove, AiOutlineArrowUp, AiOutlineArrowDown, IoMdClose, FormRange, FormSelect, FormControl, InputGroup) { 'use strict';
|
|
6
6
|
|
|
7
7
|
// src/Form/Form.tsx
|
|
8
8
|
function AddButton({
|
|
@@ -133,8 +133,10 @@
|
|
|
133
133
|
schema,
|
|
134
134
|
rawErrors = [],
|
|
135
135
|
children,
|
|
136
|
-
extraProps
|
|
136
|
+
extraProps,
|
|
137
|
+
registry
|
|
137
138
|
}) {
|
|
139
|
+
const { ClearButton: ClearButton2 } = registry.templates.ButtonTemplates;
|
|
138
140
|
const inputProps = {
|
|
139
141
|
...extraProps,
|
|
140
142
|
...utils.getInputProps(schema, type, options)
|
|
@@ -142,6 +144,14 @@
|
|
|
142
144
|
const _onChange = ({ target: { value: value2 } }) => onChange(value2 === "" ? options.emptyValue : value2);
|
|
143
145
|
const _onBlur = ({ target }) => onBlur(id, target && target.value);
|
|
144
146
|
const _onFocus = ({ target }) => onFocus(id, target && target.value);
|
|
147
|
+
const _onClear = react.useCallback(
|
|
148
|
+
(e) => {
|
|
149
|
+
e.preventDefault();
|
|
150
|
+
e.stopPropagation();
|
|
151
|
+
onChange(options.emptyValue ?? "");
|
|
152
|
+
},
|
|
153
|
+
[onChange, options.emptyValue]
|
|
154
|
+
);
|
|
145
155
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
146
156
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
147
157
|
Form3.Control,
|
|
@@ -163,6 +173,7 @@
|
|
|
163
173
|
"aria-describedby": utils.ariaDescribedByIds(id, !!schema.examples)
|
|
164
174
|
}
|
|
165
175
|
),
|
|
176
|
+
options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsxRuntime.jsx(ClearButton2, { registry, onClick: _onClear }),
|
|
166
177
|
children,
|
|
167
178
|
Array.isArray(schema.examples) ? /* @__PURE__ */ jsxRuntime.jsx("datalist", { id: utils.examplesId(id), children: schema.examples.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : []).map((example) => {
|
|
168
179
|
return /* @__PURE__ */ jsxRuntime.jsx("option", { value: example }, example);
|
|
@@ -223,6 +234,12 @@
|
|
|
223
234
|
}
|
|
224
235
|
);
|
|
225
236
|
}
|
|
237
|
+
function ClearButton(props) {
|
|
238
|
+
const {
|
|
239
|
+
registry: { translateString }
|
|
240
|
+
} = props;
|
|
241
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.ClearButton), ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(IoMdClose.IoMdClose, {}) });
|
|
242
|
+
}
|
|
226
243
|
function FieldErrorTemplate(props) {
|
|
227
244
|
const { errors = [], fieldPathId } = props;
|
|
228
245
|
if (errors.length === 0) {
|
|
@@ -490,7 +507,7 @@
|
|
|
490
507
|
)
|
|
491
508
|
] }) }),
|
|
492
509
|
/* @__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(
|
|
510
|
+
/* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: 1, className: `py-${padding} d-grid gap-2`, style: { marginTop: `${margin}px`, maxHeight: `2.5rem` }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
494
511
|
RemoveButton2,
|
|
495
512
|
{
|
|
496
513
|
id: utils.buttonId(id, "remove"),
|
|
@@ -516,7 +533,8 @@
|
|
|
516
533
|
MoveDownButton,
|
|
517
534
|
MoveUpButton,
|
|
518
535
|
RemoveButton,
|
|
519
|
-
SubmitButton
|
|
536
|
+
SubmitButton,
|
|
537
|
+
ClearButton
|
|
520
538
|
},
|
|
521
539
|
DescriptionFieldTemplate: DescriptionField,
|
|
522
540
|
ErrorListTemplate: ErrorList,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
|
-
export default function BaseInputTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ id, htmlName, placeholder, required, readonly, disabled, type, value, onChange, onChangeOverride, onBlur, onFocus, autofocus, options, schema, rawErrors, children, extraProps, }: BaseInputTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function BaseInputTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ id, htmlName, placeholder, required, readonly, disabled, type, value, onChange, onChangeOverride, onBlur, onFocus, autofocus, options, schema, rawErrors, children, extraProps, registry, }: BaseInputTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
2
3
|
import Form from 'react-bootstrap/Form';
|
|
3
4
|
import { ariaDescribedByIds, examplesId, getInputProps, } from '@rjsf/utils';
|
|
4
|
-
export default function BaseInputTemplate({ id, htmlName, placeholder, required, readonly, disabled, type, value, onChange, onChangeOverride, onBlur, onFocus, autofocus, options, schema, rawErrors = [], children, extraProps, }) {
|
|
5
|
+
export default function BaseInputTemplate({ id, htmlName, placeholder, required, readonly, disabled, type, value, onChange, onChangeOverride, onBlur, onFocus, autofocus, options, schema, rawErrors = [], children, extraProps, registry, }) {
|
|
6
|
+
const { ClearButton } = registry.templates.ButtonTemplates;
|
|
5
7
|
const inputProps = {
|
|
6
8
|
...extraProps,
|
|
7
9
|
...getInputProps(schema, type, options),
|
|
@@ -9,8 +11,14 @@ export default function BaseInputTemplate({ id, htmlName, placeholder, required,
|
|
|
9
11
|
const _onChange = ({ target: { value } }) => onChange(value === '' ? options.emptyValue : value);
|
|
10
12
|
const _onBlur = ({ target }) => onBlur(id, target && target.value);
|
|
11
13
|
const _onFocus = ({ target }) => onFocus(id, target && target.value);
|
|
14
|
+
const _onClear = useCallback((e) => {
|
|
15
|
+
var _a;
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
e.stopPropagation();
|
|
18
|
+
onChange((_a = options.emptyValue) !== null && _a !== void 0 ? _a : '');
|
|
19
|
+
}, [onChange, options.emptyValue]);
|
|
12
20
|
// const classNames = [rawErrors.length > 0 ? "is-invalid" : "", type === 'file' ? 'custom-file-label': ""]
|
|
13
|
-
return (_jsxs(_Fragment, { children: [_jsx(Form.Control, { id: id, name: htmlName || id, placeholder: placeholder, autoFocus: autofocus, required: required, disabled: disabled, readOnly: readonly, className: rawErrors.length > 0 ? 'is-invalid' : '', list: schema.examples ? examplesId(id) : undefined, ...inputProps, value: value || value === 0 ? value : '', onChange: onChangeOverride || _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }), children, Array.isArray(schema.examples) ? (_jsx("datalist", { id: examplesId(id), children: schema.examples
|
|
21
|
+
return (_jsxs(_Fragment, { children: [_jsx(Form.Control, { id: id, name: htmlName || id, placeholder: placeholder, autoFocus: autofocus, required: required, disabled: disabled, readOnly: readonly, className: rawErrors.length > 0 ? 'is-invalid' : '', list: schema.examples ? examplesId(id) : undefined, ...inputProps, value: value || value === 0 ? value : '', onChange: onChangeOverride || _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }), options.allowClearTextInputs && !readonly && !disabled && value && (_jsx(ClearButton, { registry: registry, onClick: _onClear })), children, Array.isArray(schema.examples) ? (_jsx("datalist", { id: examplesId(id), children: schema.examples
|
|
14
22
|
.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : [])
|
|
15
23
|
.map((example) => {
|
|
16
24
|
return _jsx("option", { value: example }, example);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuC,WAAW,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,IAAI,MAAM,sBAAsB,CAAC;AACxC,OAAO,EACL,kBAAkB,EAElB,UAAU,EAEV,aAAa,GAGd,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,EACA,EAAE,EACF,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,E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CAAC,GACK,CACZ,CAAC,CAAC,CAAC,IAAI,IACP,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -6,3 +6,4 @@ export declare function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSch
|
|
|
6
6
|
export declare function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: BootstrapIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: BootstrapIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: BootstrapIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function ClearButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: BootstrapIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,7 @@ import { IoIosCopy } from '@react-icons/all-files/io/IoIosCopy';
|
|
|
5
5
|
import { IoIosRemove } from '@react-icons/all-files/io/IoIosRemove';
|
|
6
6
|
import { AiOutlineArrowUp } from '@react-icons/all-files/ai/AiOutlineArrowUp';
|
|
7
7
|
import { AiOutlineArrowDown } from '@react-icons/all-files/ai/AiOutlineArrowDown';
|
|
8
|
+
import { IoMdClose } from '@react-icons/all-files/io/IoMdClose';
|
|
8
9
|
export default function IconButton(props) {
|
|
9
10
|
const { icon, iconType, className, uiSchema, registry, ...otherProps } = props;
|
|
10
11
|
return (_jsx(Button, { ...otherProps, variant: props.variant || 'light', size: 'sm', children: icon }));
|
|
@@ -25,4 +26,8 @@ export function RemoveButton(props) {
|
|
|
25
26
|
const { registry: { translateString }, } = props;
|
|
26
27
|
return (_jsx(IconButton, { title: translateString(TranslatableString.RemoveButton), variant: 'danger', ...props, icon: _jsx(IoIosRemove, {}) }));
|
|
27
28
|
}
|
|
29
|
+
export function ClearButton(props) {
|
|
30
|
+
const { registry: { translateString }, } = props;
|
|
31
|
+
return _jsx(IconButton, { title: translateString(TranslatableString.ClearButton), ...props, icon: _jsx(IoMdClose, {}) });
|
|
32
|
+
}
|
|
28
33
|
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../src/IconButton/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjH,OAAO,MAAuB,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../src/IconButton/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjH,OAAO,MAAuB,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAQhE,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,KAAwC;IAExC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC/E,OAAO,CACL,KAAC,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AAED,MAAM,UAAU,WAAW,CACzB,KAAwC;IAExC,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,KAAC,UAAU,IAAC,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,KAAM,KAAK,EAAE,IAAI,EAAE,KAAC,SAAS,KAAG,GAAI,CAAC;AAChH,CAAC"}
|
|
@@ -4,7 +4,7 @@ import ArrayFieldTemplate from '../ArrayFieldTemplate';
|
|
|
4
4
|
import BaseInputTemplate from '../BaseInputTemplate/BaseInputTemplate';
|
|
5
5
|
import DescriptionField from '../DescriptionField';
|
|
6
6
|
import ErrorList from '../ErrorList';
|
|
7
|
-
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from '../IconButton';
|
|
7
|
+
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';
|
|
8
8
|
import FieldErrorTemplate from '../FieldErrorTemplate';
|
|
9
9
|
import FieldHelpTemplate from '../FieldHelpTemplate';
|
|
10
10
|
import FieldTemplate from '../FieldTemplate';
|
|
@@ -27,6 +27,7 @@ export function generateTemplates() {
|
|
|
27
27
|
MoveUpButton,
|
|
28
28
|
RemoveButton,
|
|
29
29
|
SubmitButton,
|
|
30
|
+
ClearButton,
|
|
30
31
|
},
|
|
31
32
|
DescriptionFieldTemplate: DescriptionField,
|
|
32
33
|
ErrorListTemplate: ErrorList,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Templates.js","sourceRoot":"","sources":["../../src/Templates/Templates.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,SAAS,MAAM,cA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;QACnB,4BAA4B;QAC5B,kBAAkB,EAAE,UAAU;QAC9B,wBAAwB;KACzB,CAAC;AACJ,CAAC;AAED,eAAe,iBAAiB,EAAE,CAAC"}
|
|
@@ -17,6 +17,6 @@ export default function WrapIfAdditionalTemplate({ classNames, style, children,
|
|
|
17
17
|
const keyId = `${id}-key`;
|
|
18
18
|
const margin = displayLabel ? 12 + descMargin : 0;
|
|
19
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));
|
|
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`, maxHeight: `2.5rem` }, children: _jsx(RemoveButton, { id: buttonId(id, 'remove'), className: 'rjsf-object-property-remove w-100', disabled: disabled || readonly, onClick: onRemoveProperty, uiSchema: uiSchema, registry: registry }) })] }, keyId));
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=WrapIfAdditionalTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WrapIfAdditionalTemplate.js","sourceRoot":"","sources":["../../src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,wBAAwB,EACxB,QAAQ,EAIR,kBAAkB,GAEnB,MAAM,aAAa,CAAC;AAErB,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAI9C,EACA,UAAU,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,EAAE,EACF,KAAK,EACL,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,GAC+B;IACvC,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IAChD,sDAAsD;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC,eAAe,CAAC;IACnD,MAAM,QAAQ,GAAG,eAAe,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACvE,MAAM,UAAU,GAAG,wBAAwB,IAAI,MAAM,CAAC;IACtD,MAAM,WAAW,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAE5C,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,CACL,cAAK,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,YACrC,QAAQ,GACL,CACP,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,GAAG,EAAE,MAAM,CAAC;IAC1B,MAA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