@rjsf/react-bootstrap 6.0.2 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +23 -14
- package/dist/index.cjs.map +3 -3
- package/dist/react-bootstrap.esm.js +21 -12
- package/dist/react-bootstrap.esm.js.map +2 -2
- package/dist/react-bootstrap.umd.js +20 -12
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +3 -2
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js +3 -3
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/FieldTemplate/FieldTemplate.js +1 -1
- package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +6 -2
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +4 -3
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +2 -2
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +4 -4
- package/src/FieldTemplate/FieldTemplate.tsx +2 -0
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +1 -1
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +9 -3
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ __export(index_exports, {
|
|
|
43
43
|
module.exports = __toCommonJS(index_exports);
|
|
44
44
|
|
|
45
45
|
// src/Form/Form.tsx
|
|
46
|
-
var
|
|
46
|
+
var import_core3 = require("@rjsf/core");
|
|
47
47
|
|
|
48
48
|
// src/AddButton/AddButton.tsx
|
|
49
49
|
var import_utils = require("@rjsf/utils");
|
|
@@ -74,7 +74,7 @@ var import_Col = __toESM(require("react-bootstrap/Col"), 1);
|
|
|
74
74
|
var import_utils2 = require("@rjsf/utils");
|
|
75
75
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
76
76
|
function ArrayFieldItemTemplate(props) {
|
|
77
|
-
const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;
|
|
77
|
+
const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, uiSchema, registry } = props;
|
|
78
78
|
const uiOptions = (0, import_utils2.getUiOptions)(uiSchema);
|
|
79
79
|
const ArrayFieldItemButtonsTemplate = (0, import_utils2.getTemplate)(
|
|
80
80
|
"ArrayFieldItemButtonsTemplate",
|
|
@@ -87,9 +87,10 @@ function ArrayFieldItemTemplate(props) {
|
|
|
87
87
|
paddingRight: 6,
|
|
88
88
|
fontWeight: "bold"
|
|
89
89
|
};
|
|
90
|
+
const padding = hasDescription ? "pb-1" : "pt-4 mt-2";
|
|
90
91
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_Row.default, { className: "mb-2 d-flex align-items-center", children: [
|
|
91
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_Col.default, { xs: "9", lg: "
|
|
92
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_Col.default, { xs: "3", lg: "
|
|
92
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_Col.default, { xs: "8", md: "9", lg: "10", children }),
|
|
93
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_Col.default, { xs: "4", md: "3", lg: "2", className: displayLabel ? padding : "py-4", children: hasToolbar && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "d-flex flex-row", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle }) }) })
|
|
93
94
|
] }) });
|
|
94
95
|
}
|
|
95
96
|
|
|
@@ -156,8 +157,8 @@ function ArrayFieldTemplate(props) {
|
|
|
156
157
|
!showOptionalDataControlInTitle ? optionalDataControl : void 0,
|
|
157
158
|
items,
|
|
158
159
|
canAdd && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Container.default, { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_Row2.default, { className: "mt-2", children: [
|
|
159
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Col2.default, { xs: 9 }),
|
|
160
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Col2.default, { xs: 3, className: "py-4
|
|
160
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Col2.default, { xs: 9, md: 10, lg: 11 }),
|
|
161
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Col2.default, { xs: 3, md: 2, lg: 1, className: "py-4", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
161
162
|
AddButton2,
|
|
162
163
|
{
|
|
163
164
|
id: (0, import_utils3.buttonId)(fieldPathId, "add"),
|
|
@@ -322,15 +323,15 @@ function FieldErrorTemplate(props) {
|
|
|
322
323
|
|
|
323
324
|
// src/FieldHelpTemplate/FieldHelpTemplate.tsx
|
|
324
325
|
var import_utils8 = require("@rjsf/utils");
|
|
326
|
+
var import_core2 = require("@rjsf/core");
|
|
325
327
|
var import_Form2 = __toESM(require("react-bootstrap/Form"), 1);
|
|
326
328
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
327
329
|
function FieldHelpTemplate(props) {
|
|
328
|
-
const { fieldPathId, help, hasErrors } = props;
|
|
330
|
+
const { fieldPathId, help, uiSchema, registry, hasErrors } = props;
|
|
329
331
|
if (!help) {
|
|
330
332
|
return null;
|
|
331
333
|
}
|
|
332
|
-
|
|
333
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Form2.default.Text, { className: hasErrors ? "text-danger" : "text-muted", id, children: help });
|
|
334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Form2.default.Text, { id: (0, import_utils8.helpId)(fieldPathId), className: hasErrors ? "text-danger" : "text-muted", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core2.RichHelp, { help, registry, uiSchema }) });
|
|
334
335
|
}
|
|
335
336
|
|
|
336
337
|
// src/FieldTemplate/FieldTemplate.tsx
|
|
@@ -378,6 +379,8 @@ function FieldTemplate({
|
|
|
378
379
|
disabled,
|
|
379
380
|
id,
|
|
380
381
|
label,
|
|
382
|
+
displayLabel,
|
|
383
|
+
rawDescription,
|
|
381
384
|
onKeyRename,
|
|
382
385
|
onKeyRenameBlur,
|
|
383
386
|
onRemoveProperty,
|
|
@@ -483,7 +486,7 @@ function ObjectFieldTemplate({
|
|
|
483
486
|
" ",
|
|
484
487
|
element.content
|
|
485
488
|
] }) }, index)),
|
|
486
|
-
(0, import_utils10.canExpand)(schema, uiSchema, formData) ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Row4.default, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Col4.default, { xs: { offset:
|
|
489
|
+
(0, import_utils10.canExpand)(schema, uiSchema, formData) ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Row4.default, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Col4.default, { xs: { offset: 11, span: 1 }, className: "py-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
487
490
|
AddButton2,
|
|
488
491
|
{
|
|
489
492
|
id: (0, import_utils10.buttonId)(fieldPathId, "add"),
|
|
@@ -585,8 +588,10 @@ function WrapIfAdditionalTemplate({
|
|
|
585
588
|
disabled,
|
|
586
589
|
id,
|
|
587
590
|
label,
|
|
591
|
+
displayLabel,
|
|
588
592
|
onRemoveProperty,
|
|
589
593
|
onKeyRenameBlur,
|
|
594
|
+
rawDescription,
|
|
590
595
|
readonly,
|
|
591
596
|
required,
|
|
592
597
|
schema,
|
|
@@ -597,13 +602,17 @@ function WrapIfAdditionalTemplate({
|
|
|
597
602
|
const { RemoveButton: RemoveButton2 } = templates.ButtonTemplates;
|
|
598
603
|
const keyLabel = translateString(import_utils13.TranslatableString.KeyLabel, [label]);
|
|
599
604
|
const additional = import_utils13.ADDITIONAL_PROPERTY_FLAG in schema;
|
|
605
|
+
const descPadding = rawDescription ? 1 : 0;
|
|
606
|
+
const descMargin = rawDescription ? -24 : 0;
|
|
600
607
|
if (!additional) {
|
|
601
608
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: classNames, style, children });
|
|
602
609
|
}
|
|
603
610
|
const keyId = `${id}-key`;
|
|
611
|
+
const margin = displayLabel ? 12 + descMargin : 0;
|
|
612
|
+
const padding = displayLabel ? 4 + descPadding : 1;
|
|
604
613
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_Row6.default, { className: classNames, style, children: [
|
|
605
614
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Col6.default, { xs: 5, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_Form4.default.Group, { children: [
|
|
606
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Form4.default.Label, { htmlFor: keyId, children: keyLabel }),
|
|
615
|
+
displayLabel && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Form4.default.Label, { htmlFor: keyId, children: keyLabel }),
|
|
607
616
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
608
617
|
import_Form4.default.Control,
|
|
609
618
|
{
|
|
@@ -617,8 +626,8 @@ function WrapIfAdditionalTemplate({
|
|
|
617
626
|
}
|
|
618
627
|
)
|
|
619
628
|
] }) }),
|
|
620
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Col6.default, { xs:
|
|
621
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Col6.default, { xs:
|
|
629
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Col6.default, { xs: 6, children }),
|
|
630
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Col6.default, { xs: 1, className: `py-${padding} d-grid gap-2`, style: { marginTop: `${margin}px` }, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
622
631
|
RemoveButton2,
|
|
623
632
|
{
|
|
624
633
|
id: (0, import_utils13.buttonId)(id, "remove"),
|
|
@@ -983,7 +992,7 @@ var Theme_default = generateTheme();
|
|
|
983
992
|
|
|
984
993
|
// src/Form/Form.tsx
|
|
985
994
|
function generateForm() {
|
|
986
|
-
return (0,
|
|
995
|
+
return (0, import_core3.withTheme)(generateTheme());
|
|
987
996
|
}
|
|
988
997
|
var Form_default = generateForm();
|
|
989
998
|
|
package/dist/index.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts", "../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"],
|
|
4
|
-
"sourcesContent": ["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", "import { ComponentType } from 'react';\n\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { generateTheme } from '../Theme';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n", "import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\nimport Button from 'react-bootstrap/Button';\nimport { BsPlus } from '@react-icons/all-files/bs/BsPlus';\n\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n ...props\n}: IconButtonProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Button\n title={translateString(TranslatableString.AddItemButton)}\n {...props}\n style={{ width: '100%' }}\n className={`ml-1 ${props.className}`}\n >\n <BsPlus />\n </Button>\n );\n}\n", "import { CSSProperties } from 'react';\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldItemButtonsTemplate = getTemplate<'ArrayFieldItemButtonsTemplate', T, S, F>(\n 'ArrayFieldItemButtonsTemplate',\n registry,\n uiOptions,\n );\n const btnStyle: CSSProperties = {\n flex: 1,\n paddingLeft: 6,\n paddingRight: 6,\n fontWeight: 'bold',\n };\n return (\n <div>\n <Row className='mb-2 d-flex align-items-center'>\n <Col xs='9' lg='9'>\n {children}\n </Col>\n <Col xs='3' lg='3' className='py-4'>\n {hasToolbar && (\n <div className='d-flex flex-row'>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} style={btnStyle} />\n </div>\n )}\n </Col>\n </Row>\n </div>\n );\n}\n", "import Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Container from 'react-bootstrap/Container';\nimport {\n ArrayFieldTemplateProps,\n buttonId,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n canAdd,\n disabled,\n fieldPathId,\n uiSchema,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n registry,\n required,\n schema,\n title,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <div>\n <Row className='p-0 m-0'>\n <Col className='p-0 m-0'>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <Container fluid key={`array-item-list-${fieldPathId.$id}`} className='p-0 m-0'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n {canAdd && (\n <Container className=''>\n <Row className='mt-2'>\n <Col xs={9}></Col>\n <Col xs={3} className='py-4 col-lg-3 col-3'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n </Container>\n )}\n </Container>\n </Col>\n </Row>\n </div>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Form from 'react-bootstrap/Form';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n htmlName,\n placeholder,\n required,\n readonly,\n disabled,\n type,\n value,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n rawErrors = [],\n children,\n extraProps,\n}: BaseInputTemplateProps<T, S, F>) {\n const inputProps = {\n ...extraProps,\n ...getInputProps<T, S, F>(schema, type, options),\n };\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n\n // const classNames = [rawErrors.length > 0 ? \"is-invalid\" : \"\", type === 'file' ? 'custom-file-label': \"\"]\n return (\n <>\n <Form.Control\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled}\n readOnly={readonly}\n className={rawErrors.length > 0 ? 'is-invalid' : ''}\n list={schema.examples ? examplesId(id) : undefined}\n {...inputProps}\n value={value || value === 0 ? value : ''}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n {children}\n {Array.isArray(schema.examples) ? (\n <datalist id={examplesId(id)}>\n {(schema.examples as string[])\n .concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])\n .map((example: any) => {\n return <option key={example} value={example} />;\n })}\n </datalist>\n ) : null}\n </>\n );\n}\n", "import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ id, description, registry, uiSchema }: DescriptionFieldProps<T, S, F>) {\n if (!description) {\n return null;\n }\n\n return (\n <div>\n <div id={id} className='mb-3'>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </div>\n </div>\n );\n}\n", "import Card from 'react-bootstrap/Card';\nimport ListGroup from 'react-bootstrap/ListGroup';\n\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Card border='danger' className='mb-4'>\n <Card.Header className='alert-danger'>{translateString(TranslatableString.ErrorsLabel)}</Card.Header>\n <Card.Body className='p-0'>\n <ListGroup>\n {errors.map((error, i: number) => {\n return (\n <ListGroup.Item key={i} className='border-0'>\n <span>{error.stack}</span>\n </ListGroup.Item>\n );\n })}\n </ListGroup>\n </Card.Body>\n </Card>\n );\n}\n", "import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\nimport Button, { ButtonProps } from 'react-bootstrap/Button';\nimport { IoIosCopy } from '@react-icons/all-files/io/IoIosCopy';\nimport { IoIosRemove } from '@react-icons/all-files/io/IoIosRemove';\nimport { AiOutlineArrowUp } from '@react-icons/all-files/ai/AiOutlineArrowUp';\nimport { AiOutlineArrowDown } from '@react-icons/all-files/ai/AiOutlineArrowDown';\n\nexport type BootstrapIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & ButtonProps;\n\nexport default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const { icon, iconType, className, uiSchema, registry, ...otherProps } = props;\n return (\n <Button {...otherProps} variant={props.variant || 'light'} size='sm'>\n {icon}\n </Button>\n );\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon={<IoIosCopy />} />;\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon={<AiOutlineArrowDown />} />\n );\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon={<AiOutlineArrowUp />} />;\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: BootstrapIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return (\n <IconButton\n title={translateString(TranslatableString.RemoveButton)}\n variant='danger'\n {...props}\n icon={<IoIosRemove />}\n />\n );\n}\n", "import { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema, errorId } from '@rjsf/utils';\nimport ListGroup from 'react-bootstrap/ListGroup';\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldErrorProps<T, S, F>) {\n const { errors = [], fieldPathId } = props;\n if (errors.length === 0) {\n return null;\n }\n const id = errorId(fieldPathId);\n\n return (\n <ListGroup as='ul' id={id}>\n {errors.map((error, i) => {\n return (\n <ListGroup.Item as='li' key={i} className='border-0 m-0 p-0'>\n <small className='m-0 text-danger'>{error}</small>\n </ListGroup.Item>\n );\n })}\n </ListGroup>\n );\n}\n", "import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';\nimport Form from 'react-bootstrap/Form';\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldHelpProps<T, S, F>) {\n const { fieldPathId, help, hasErrors } = props;\n if (!help) {\n return null;\n }\n const id = helpId(fieldPathId);\n return (\n <Form.Text className={hasErrors ? 'text-danger' : 'text-muted'} id={id}>\n {help}\n </Form.Text>\n );\n}\n", "import {\n FieldTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport Form from 'react-bootstrap/Form';\n\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n children,\n displayLabel,\n rawErrors = [],\n errors,\n help,\n description,\n rawDescription,\n classNames,\n style,\n disabled,\n label,\n hidden,\n onKeyRename,\n onKeyRenameBlur,\n onRemoveProperty,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n}: FieldTemplateProps<T, S, F>) {\n const uiOptions = getUiOptions(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n if (hidden) {\n return <div className='hidden'>{children}</div>;\n }\n const isCheckbox = uiOptions.widget === 'checkbox';\n\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n disabled={disabled}\n id={id}\n label={label}\n onKeyRename={onKeyRename}\n onKeyRenameBlur={onKeyRenameBlur}\n onRemoveProperty={onRemoveProperty}\n readonly={readonly}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n >\n <Form.Group>\n {displayLabel && !isCheckbox && (\n <Form.Label htmlFor={id} className={rawErrors.length > 0 ? 'text-danger' : ''}>\n {label}\n {required ? '*' : null}\n </Form.Label>\n )}\n {children}\n {displayLabel && rawDescription && !isCheckbox && (\n <Form.Text className={rawErrors.length > 0 ? 'text-danger' : 'text-muted'}>{description}</Form.Text>\n )}\n {errors}\n {help}\n </Form.Group>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport { GridTemplateProps } from '@rjsf/utils';\n\n/** Renders a `GridTemplate` for react-bootstrap, which is expecting the column sizing information coming in via the\n * extra props provided by the caller, which are spread directly on the `Row`/`Col`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the react-bootstrap grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, ...rest } = props;\n if (column) {\n return <Col {...rest}>{children}</Col>;\n }\n return <Row {...rest}>{children}</Row>;\n}\n", "import { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport Card from 'react-bootstrap/Card';\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ selector, optionSchemaField }: MultiSchemaFieldTemplateProps<T, S, F>) {\n return (\n <Card style={{ marginBottom: '1rem' }}>\n <Card.Body>{selector}</Card.Body>\n <Card.Body>{optionSchemaField}</Card.Body>\n </Card>\n );\n}\n", "import Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Container from 'react-bootstrap/Container';\n\nimport {\n buttonId,\n canExpand,\n descriptionId,\n FormContextType,\n getTemplate,\n getUiOptions,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n titleId,\n} from '@rjsf/utils';\n\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n description,\n title,\n properties,\n required,\n uiSchema,\n fieldPathId,\n schema,\n formData,\n optionalDataControl,\n onAddProperty,\n disabled,\n readonly,\n registry,\n}: ObjectFieldTemplateProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Container fluid className='p-0'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((element: any, index: number) => (\n <Row key={index} style={{ marginBottom: '10px' }} className={element.hidden ? 'd-none' : undefined}>\n <Col xs={12}> {element.content}</Col>\n </Row>\n ))}\n {canExpand(schema, uiSchema, formData) ? (\n <Row>\n <Col xs={{ offset: 9, span: 3 }} className='py-4'>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n onClick={onAddProperty}\n disabled={disabled || readonly}\n className='rjsf-object-property-expand'\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n ) : null}\n </Container>\n </>\n );\n}\n", "import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { BsPlus } from '@react-icons/all-files/bs/BsPlus';\n\nimport IconButton, { RemoveButton } from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick } = props;\n if (onAddClick) {\n return (\n <IconButton\n id={id}\n registry={registry}\n className='rjsf-add-optional-data'\n icon={<BsPlus />}\n onClick={onAddClick}\n title={label}\n size='sm'\n variant='secondary'\n />\n );\n } else if (onRemoveClick) {\n return (\n <RemoveButton\n id={id}\n registry={registry}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n size='sm'\n variant='secondary'\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import Button from 'react-bootstrap/Button';\nimport { FormContextType, getSubmitButtonOptions, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\nexport default function SubmitButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SubmitButtonProps<T, S, F>,\n) {\n const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions<T, S, F>(props.uiSchema);\n if (norender) {\n return null;\n }\n return (\n <div>\n <Button variant='primary' type='submit' {...submitButtonProps}>\n {submitText}\n </Button>\n </div>\n );\n}\n", "import { FormContextType, getUiOptions, RJSFSchema, StrictRJSFSchema, TitleFieldProps } from '@rjsf/utils';\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Container from 'react-bootstrap/Container';\n\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n title,\n uiSchema,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n let heading = <h5>{uiOptions.title || title}</h5>;\n if (optionalDataControl) {\n heading = (\n <Container fluid className='p-0'>\n <Row>\n <Col xs='11'>{heading}</Col>\n <Col xs='1' style={{ marginLeft: '-5px' }}>\n {optionalDataControl}\n </Col>\n </Row>\n </Container>\n );\n }\n return (\n <div id={id} className='my-1'>\n {heading}\n <hr className='border-0 bg-secondary mt-0' style={{ height: '1px' }} />\n </div>\n );\n}\n", "import {\n ADDITIONAL_PROPERTY_FLAG,\n buttonId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n TranslatableString,\n WrapIfAdditionalTemplateProps,\n} from '@rjsf/utils';\n\nimport Row from 'react-bootstrap/Row';\nimport Col from 'react-bootstrap/Col';\nimport Form from 'react-bootstrap/Form';\n\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n classNames,\n style,\n children,\n disabled,\n id,\n label,\n onRemoveProperty,\n onKeyRenameBlur,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n}: WrapIfAdditionalTemplateProps<T, S, F>) {\n const { templates, translateString } = registry;\n // Button templates are not overridden in the uiSchema\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n const keyId = `${id}-key`;\n\n return (\n <Row className={classNames} style={style} key={keyId}>\n <Col xs={5}>\n <Form.Group>\n <Form.Label htmlFor={keyId}>{keyLabel}</Form.Label>\n <Form.Control\n required={required}\n defaultValue={label}\n disabled={disabled || readonly}\n id={keyId}\n name={keyId}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n type='text'\n />\n </Form.Group>\n </Col>\n <Col xs={5}>{children}</Col>\n <Col xs={2} className='py-4 d-grid gap-2'>\n <RemoveButton\n id={buttonId(id, 'remove')}\n className='rjsf-object-property-remove w-100'\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Col>\n </Row>\n );\n}\n", "import AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate/BaseInputTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from '../IconButton';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { FocusEvent } from 'react';\nimport {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n labelValue,\n WidgetProps,\n schemaRequiresTrueValue,\n StrictRJSFSchema,\n RJSFSchema,\n FormContextType,\n} from '@rjsf/utils';\nimport Form from 'react-bootstrap/Form';\n\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label,\n hideLabel,\n schema,\n autofocus,\n options,\n onChange,\n onBlur,\n onFocus,\n registry,\n uiSchema,\n } = props;\n // Because an unchecked checkbox will cause html5 validation to fail, only add\n // the \"required\" attribute if the field value must be \"true\", due to the\n // \"const\" or \"enum\" keywords\n const required = schemaRequiresTrueValue<S>(schema);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n\n const _onChange = ({ target: { checked } }: FocusEvent<HTMLInputElement>) => onChange(checked);\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.checked);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.checked);\n\n const description = options.description || schema.description;\n return (\n <Form.Group className={disabled || readonly ? 'disabled' : ''} aria-describedby={ariaDescribedByIds(id)}>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Form.Check\n id={id}\n name={htmlName || id}\n label={labelValue(label, hideLabel || !label)}\n checked={typeof value === 'undefined' ? false : value}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n onChange={_onChange}\n type='checkbox'\n onBlur={_onBlur}\n onFocus={_onFocus}\n />\n </Form.Group>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Form from 'react-bootstrap/Form';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n required,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, inline, emptyValue } = options;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n\n const _onChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n if (checked) {\n onChange(enumOptionsSelectValue<S>(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue<S>(index, checkboxesValues, enumOptions));\n }\n };\n\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n return (\n <Form.Group>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index: number) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n\n return (\n <Form.Check\n key={option.value}\n inline={inline}\n required={required}\n checked={checked}\n className='bg-transparent border-0'\n type={'checkbox'}\n id={optionId(id, index)}\n name={htmlName || id}\n label={option.label}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n disabled={disabled || itemDisabled || readonly}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n })}\n </Form.Group>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport Form from 'react-bootstrap/Form';\nimport {\n ariaDescribedByIds,\n enumOptionsIsSelected,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n htmlName,\n options,\n value,\n required,\n disabled,\n readonly,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(enumOptionsValueForIndex<S>(value, enumOptions, emptyValue));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, emptyValue));\n\n const inline = Boolean(options && options.inline);\n\n return (\n <Form.Group className='mb-0'>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n const checked = enumOptionsIsSelected<S>(option.value, value);\n\n const radio = (\n <Form.Check\n inline={inline}\n label={option.label}\n id={optionId(id, index)}\n key={index}\n name={htmlName || id}\n type='radio'\n disabled={disabled || itemDisabled || readonly}\n checked={checked}\n required={required}\n value={String(index)}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n return radio;\n })}\n </Form.Group>\n );\n}\n", "import { FormContextType, rangeSpec, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ChangeEvent, FocusEvent } from 'react';\nimport FormRange from 'react-bootstrap/FormRange';\n\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { id, value, disabled, onChange, onBlur, onFocus, schema } = props;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) => onChange(value);\n const _onBlur = ({ target: { value } }: FocusEvent<HTMLInputElement>) => onBlur(id, value);\n const _onFocus = ({ target: { value } }: FocusEvent<HTMLInputElement>) => onFocus(id, value);\n\n const rangeProps = {\n value,\n id,\n name: id,\n disabled,\n onChange: _onChange,\n onBlur: _onBlur,\n onFocus: _onFocus,\n ...rangeSpec<S>(schema),\n };\n\n return (\n <>\n <FormRange {...rangeProps} />\n <span className='range-view'>{value}</span>\n </>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport FormSelect from 'react-bootstrap/FormSelect';\nimport {\n ariaDescribedByIds,\n FormContextType,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\n\nexport default function SelectWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n schema,\n id,\n htmlName,\n options,\n required,\n disabled,\n readonly,\n value,\n multiple,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n placeholder,\n rawErrors = [],\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyValue } = options;\n\n const emptyValue = multiple ? [] : '';\n\n function getValue(event: FocusEvent | ChangeEvent | any, multiple?: boolean) {\n if (multiple) {\n return [].slice\n .call(event.target.options as any)\n .filter((o: any) => o.selected)\n .map((o: any) => o.value);\n } else {\n return event.target.value;\n }\n }\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n const showPlaceholderOption = !multiple && schema.default === undefined;\n\n return (\n <FormSelect\n id={id}\n name={htmlName || id}\n value={typeof selectedIndexes === 'undefined' ? emptyValue : selectedIndexes}\n required={required}\n multiple={multiple}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n className={rawErrors.length > 0 ? 'is-invalid' : ''}\n onBlur={\n onBlur &&\n ((event: FocusEvent) => {\n const newValue = getValue(event, multiple);\n onBlur(id, enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyValue));\n })\n }\n onFocus={\n onFocus &&\n ((event: FocusEvent) => {\n const newValue = getValue(event, multiple);\n onFocus(id, enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyValue));\n })\n }\n onChange={(event: ChangeEvent) => {\n const newValue = getValue(event, multiple);\n onChange(enumOptionsValueForIndex<S>(newValue, enumOptions, optEmptyValue));\n }}\n aria-describedby={ariaDescribedByIds(id)}\n >\n {showPlaceholderOption && <option value=''>{placeholder}</option>}\n {(enumOptions as any).map(({ value, label }: any, i: number) => {\n const disabled: any = Array.isArray(enumDisabled) && (enumDisabled as any).indexOf(value) != -1;\n return (\n <option key={i} id={label} value={String(i)} disabled={disabled}>\n {label}\n </option>\n );\n })}\n </FormSelect>\n );\n}\n", "import { ChangeEvent, FocusEvent } from 'react';\nimport { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport FormControl from 'react-bootstrap/FormControl';\nimport InputGroup from 'react-bootstrap/InputGroup';\n\ntype CustomWidgetProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = WidgetProps<\n T,\n S,\n F\n> & {\n options: any;\n};\n\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n id,\n htmlName,\n placeholder,\n value,\n required,\n disabled,\n autofocus,\n readonly,\n onBlur,\n onFocus,\n onChange,\n options,\n}: CustomWidgetProps<T, S, F>) {\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = ({ target }: FocusEvent<HTMLTextAreaElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLTextAreaElement>) => onFocus(id, target && target.value);\n\n return (\n <InputGroup>\n <FormControl\n id={id}\n name={htmlName || id}\n as='textarea'\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readonly}\n value={value}\n required={required}\n autoFocus={autofocus}\n rows={options.rows || 5}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </InputGroup>\n );\n}\n", "import CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\nimport { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n", "import { ThemeProps } from '@rjsf/core';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n };\n}\n\nexport default generateTheme();\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,IAAAA,eAAqC;;;ACFrC,mBAAmG;AACnG,oBAAmB;AACnB,oBAAuB;AAejB;AAbS,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA6B;AAC3B,QAAM,EAAE,gBAAgB,IAAI;AAC5B,SACE;AAAA,IAAC,cAAAC;AAAA,IAAA;AAAA,MACC,OAAO,gBAAgB,gCAAmB,aAAa;AAAA,MACtD,GAAG;AAAA,MACJ,OAAO,EAAE,OAAO,OAAO;AAAA,MACvB,WAAW,QAAQ,MAAM,SAAS;AAAA,MAElC,sDAAC,wBAAO;AAAA;AAAA,EACV;AAEJ;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AM,QAAQ,QAAQ;AAAA,MACtB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,wBAAkB,mCAAmB,EAAE;AAAA;AAAA,EACzC,GACF;AAEJ;;;AChDO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;ACjBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;A1BXtB,SAAS,eAIuB;AACrC,aAAO,wBAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,eAAQ,aAAa;;;ADP5B,IAAO,gBAAQ;",
|
|
6
|
-
"names": ["import_core", "Button", "import_utils", "import_jsx_runtime", "Row", "Col", "import_Row", "import_Col", "import_utils", "import_jsx_runtime", "AddButton", "Row", "Col", "Container", "import_utils", "import_jsx_runtime", "value", "Form", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "Card", "ListGroup", "import_utils", "import_Button", "import_jsx_runtime", "Button", "import_utils", "import_ListGroup", "import_jsx_runtime", "ListGroup", "import_utils", "import_Form", "import_jsx_runtime", "Form", "import_utils", "import_Form", "import_jsx_runtime", "WrapIfAdditionalTemplate", "Form", "import_Row", "import_Col", "import_jsx_runtime", "Col", "Row", "import_Card", "import_jsx_runtime", "Card", "import_Row", "import_Col", "import_Container", "import_utils", "import_jsx_runtime", "AddButton", "Container", "Row", "Col", "import_BsPlus", "import_jsx_runtime", "import_Button", "import_utils", "import_jsx_runtime", "Button", "import_utils", "import_Row", "import_Col", "import_Container", "import_jsx_runtime", "Container", "Row", "Col", "import_utils", "import_Row", "import_Col", "import_Form", "import_jsx_runtime", "RemoveButton", "Row", "Col", "Form", "import_utils", "import_Form", "import_jsx_runtime", "Form", "import_Form", "import_utils", "import_jsx_runtime", "Form", "import_Form", "import_utils", "import_jsx_runtime", "value", "Form", "import_utils", "import_jsx_runtime", "value", "FormRange", "import_utils", "import_jsx_runtime", "multiple", "FormSelect", "value", "disabled", "import_utils", "import_jsx_runtime", "value", "InputGroup", "FormControl"]
|
|
4
|
+
"sourcesContent": ["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", "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"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,IAAAA,eAAqC;;;ACFrC,mBAAmG;AACnG,oBAAmB;AACnB,oBAAuB;AAejB;AAbS,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA6B;AAC3B,QAAM,EAAE,gBAAgB,IAAI;AAC5B,SACE;AAAA,IAAC,cAAAC;AAAA,IAAA;AAAA,MACC,OAAO,gBAAgB,gCAAmB,a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;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA+B;AAC7B,QAAM,YAAY,CAAC,EAAE,QAAQ,EAAE,OAAAC,OAAM,EAAE,MACrC,SAASA,WAAU,KAAK,QAAQ,aAAaA,MAAK;AACpD,QAAM,UAAU,CAAC,EAAE,OAAO,MAAuC,OAAO,IAAI,UAAU,OAAO,KAAK;AAClG,QAAM,WAAW,CAAC,EAAE,OAAO,MAAuC,QAAQ,IAAI,UAAU,OAAO,KAAK;AAEpG,SACE,8CAAC,kBAAAC,SAAA,EACC;AAAA,IAAC,mBAAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,MAAM,YAAY;AAAA,MAClB,IAAG;AAAA,MACH;AAAA,MACA;AAAA,MACA,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA,WAAW;AAAA,MACX,MAAM,QAAQ,QAAQ;AAAA,MACtB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,wBAAkB,mCAAmB,EAAE;AAAA;AAAA,EACzC,GACF;AAEJ;;;AChDO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;ACjBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;A1BXtB,SAAS,eAIuB;AACrC,aAAO,wBAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,eAAQ,aAAa;;;ADP5B,IAAO,gBAAQ;",
|
|
6
|
+
"names": ["import_core", "Button", "import_utils", "import_jsx_runtime", "Row", "Col", "import_Row", "import_Col", "import_utils", "import_jsx_runtime", "AddButton", "Row", "Col", "Container", "import_utils", "import_jsx_runtime", "value", "Form", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "Card", "ListGroup", "import_utils", "import_Button", "import_jsx_runtime", "Button", "import_utils", "import_ListGroup", "import_jsx_runtime", "ListGroup", "import_utils", "import_core", "import_Form", "import_jsx_runtime", "Form", "import_utils", "import_Form", "import_jsx_runtime", "WrapIfAdditionalTemplate", "Form", "import_Row", "import_Col", "import_jsx_runtime", "Col", "Row", "import_Card", "import_jsx_runtime", "Card", "import_Row", "import_Col", "import_Container", "import_utils", "import_jsx_runtime", "AddButton", "Container", "Row", "Col", "import_BsPlus", "import_jsx_runtime", "import_Button", "import_utils", "import_jsx_runtime", "Button", "import_utils", "import_Row", "import_Col", "import_Container", "import_jsx_runtime", "Container", "Row", "Col", "import_utils", "import_Row", "import_Col", "import_Form", "import_jsx_runtime", "RemoveButton", "Row", "Col", "Form", "import_utils", "import_Form", "import_jsx_runtime", "Form", "import_Form", "import_utils", "import_jsx_runtime", "Form", "import_Form", "import_utils", "import_jsx_runtime", "value", "Form", "import_utils", "import_jsx_runtime", "value", "FormRange", "import_utils", "import_jsx_runtime", "multiple", "FormSelect", "value", "disabled", "import_utils", "import_jsx_runtime", "value", "InputGroup", "FormControl"]
|
|
7
7
|
}
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "@rjsf/utils";
|
|
34
34
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
35
35
|
function ArrayFieldItemTemplate(props) {
|
|
36
|
-
const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;
|
|
36
|
+
const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, uiSchema, registry } = props;
|
|
37
37
|
const uiOptions = getUiOptions(uiSchema);
|
|
38
38
|
const ArrayFieldItemButtonsTemplate = getTemplate(
|
|
39
39
|
"ArrayFieldItemButtonsTemplate",
|
|
@@ -46,9 +46,10 @@ function ArrayFieldItemTemplate(props) {
|
|
|
46
46
|
paddingRight: 6,
|
|
47
47
|
fontWeight: "bold"
|
|
48
48
|
};
|
|
49
|
+
const padding = hasDescription ? "pb-1" : "pt-4 mt-2";
|
|
49
50
|
return /* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsxs(Row, { className: "mb-2 d-flex align-items-center", children: [
|
|
50
|
-
/* @__PURE__ */ jsx2(Col, { xs: "9", lg: "
|
|
51
|
-
/* @__PURE__ */ jsx2(Col, { xs: "3", lg: "
|
|
51
|
+
/* @__PURE__ */ jsx2(Col, { xs: "8", md: "9", lg: "10", children }),
|
|
52
|
+
/* @__PURE__ */ jsx2(Col, { xs: "4", md: "3", lg: "2", className: displayLabel ? padding : "py-4", children: hasToolbar && /* @__PURE__ */ jsx2("div", { className: "d-flex flex-row", children: /* @__PURE__ */ jsx2(ArrayFieldItemButtonsTemplate, { ...buttonsProps, style: btnStyle }) }) })
|
|
52
53
|
] }) });
|
|
53
54
|
}
|
|
54
55
|
|
|
@@ -119,8 +120,8 @@ function ArrayFieldTemplate(props) {
|
|
|
119
120
|
!showOptionalDataControlInTitle ? optionalDataControl : void 0,
|
|
120
121
|
items,
|
|
121
122
|
canAdd && /* @__PURE__ */ jsx3(Container, { className: "", children: /* @__PURE__ */ jsxs2(Row2, { className: "mt-2", children: [
|
|
122
|
-
/* @__PURE__ */ jsx3(Col2, { xs: 9 }),
|
|
123
|
-
/* @__PURE__ */ jsx3(Col2, { xs: 3, className: "py-4
|
|
123
|
+
/* @__PURE__ */ jsx3(Col2, { xs: 9, md: 10, lg: 11 }),
|
|
124
|
+
/* @__PURE__ */ jsx3(Col2, { xs: 3, md: 2, lg: 1, className: "py-4", children: /* @__PURE__ */ jsx3(
|
|
124
125
|
AddButton2,
|
|
125
126
|
{
|
|
126
127
|
id: buttonId(fieldPathId, "add"),
|
|
@@ -289,15 +290,15 @@ function FieldErrorTemplate(props) {
|
|
|
289
290
|
|
|
290
291
|
// src/FieldHelpTemplate/FieldHelpTemplate.tsx
|
|
291
292
|
import { helpId } from "@rjsf/utils";
|
|
293
|
+
import { RichHelp } from "@rjsf/core";
|
|
292
294
|
import Form2 from "react-bootstrap/Form";
|
|
293
295
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
294
296
|
function FieldHelpTemplate(props) {
|
|
295
|
-
const { fieldPathId, help, hasErrors } = props;
|
|
297
|
+
const { fieldPathId, help, uiSchema, registry, hasErrors } = props;
|
|
296
298
|
if (!help) {
|
|
297
299
|
return null;
|
|
298
300
|
}
|
|
299
|
-
|
|
300
|
-
return /* @__PURE__ */ jsx9(Form2.Text, { className: hasErrors ? "text-danger" : "text-muted", id, children: help });
|
|
301
|
+
return /* @__PURE__ */ jsx9(Form2.Text, { id: helpId(fieldPathId), className: hasErrors ? "text-danger" : "text-muted", children: /* @__PURE__ */ jsx9(RichHelp, { help, registry, uiSchema }) });
|
|
301
302
|
}
|
|
302
303
|
|
|
303
304
|
// src/FieldTemplate/FieldTemplate.tsx
|
|
@@ -348,6 +349,8 @@ function FieldTemplate({
|
|
|
348
349
|
disabled,
|
|
349
350
|
id,
|
|
350
351
|
label,
|
|
352
|
+
displayLabel,
|
|
353
|
+
rawDescription,
|
|
351
354
|
onKeyRename,
|
|
352
355
|
onKeyRenameBlur,
|
|
353
356
|
onRemoveProperty,
|
|
@@ -460,7 +463,7 @@ function ObjectFieldTemplate({
|
|
|
460
463
|
" ",
|
|
461
464
|
element.content
|
|
462
465
|
] }) }, index)),
|
|
463
|
-
canExpand(schema, uiSchema, formData) ? /* @__PURE__ */ jsx13(Row4, { children: /* @__PURE__ */ jsx13(Col4, { xs: { offset:
|
|
466
|
+
canExpand(schema, uiSchema, formData) ? /* @__PURE__ */ jsx13(Row4, { children: /* @__PURE__ */ jsx13(Col4, { xs: { offset: 11, span: 1 }, className: "py-0.5", children: /* @__PURE__ */ jsx13(
|
|
464
467
|
AddButton2,
|
|
465
468
|
{
|
|
466
469
|
id: buttonId2(fieldPathId, "add"),
|
|
@@ -566,8 +569,10 @@ function WrapIfAdditionalTemplate({
|
|
|
566
569
|
disabled,
|
|
567
570
|
id,
|
|
568
571
|
label,
|
|
572
|
+
displayLabel,
|
|
569
573
|
onRemoveProperty,
|
|
570
574
|
onKeyRenameBlur,
|
|
575
|
+
rawDescription,
|
|
571
576
|
readonly,
|
|
572
577
|
required,
|
|
573
578
|
schema,
|
|
@@ -578,13 +583,17 @@ function WrapIfAdditionalTemplate({
|
|
|
578
583
|
const { RemoveButton: RemoveButton2 } = templates.ButtonTemplates;
|
|
579
584
|
const keyLabel = translateString(TranslatableString4.KeyLabel, [label]);
|
|
580
585
|
const additional = ADDITIONAL_PROPERTY_FLAG in schema;
|
|
586
|
+
const descPadding = rawDescription ? 1 : 0;
|
|
587
|
+
const descMargin = rawDescription ? -24 : 0;
|
|
581
588
|
if (!additional) {
|
|
582
589
|
return /* @__PURE__ */ jsx17("div", { className: classNames, style, children });
|
|
583
590
|
}
|
|
584
591
|
const keyId = `${id}-key`;
|
|
592
|
+
const margin = displayLabel ? 12 + descMargin : 0;
|
|
593
|
+
const padding = displayLabel ? 4 + descPadding : 1;
|
|
585
594
|
return /* @__PURE__ */ jsxs9(Row6, { className: classNames, style, children: [
|
|
586
595
|
/* @__PURE__ */ jsx17(Col6, { xs: 5, children: /* @__PURE__ */ jsxs9(Form4.Group, { children: [
|
|
587
|
-
/* @__PURE__ */ jsx17(Form4.Label, { htmlFor: keyId, children: keyLabel }),
|
|
596
|
+
displayLabel && /* @__PURE__ */ jsx17(Form4.Label, { htmlFor: keyId, children: keyLabel }),
|
|
588
597
|
/* @__PURE__ */ jsx17(
|
|
589
598
|
Form4.Control,
|
|
590
599
|
{
|
|
@@ -598,8 +607,8 @@ function WrapIfAdditionalTemplate({
|
|
|
598
607
|
}
|
|
599
608
|
)
|
|
600
609
|
] }) }),
|
|
601
|
-
/* @__PURE__ */ jsx17(Col6, { xs:
|
|
602
|
-
/* @__PURE__ */ jsx17(Col6, { xs:
|
|
610
|
+
/* @__PURE__ */ jsx17(Col6, { xs: 6, children }),
|
|
611
|
+
/* @__PURE__ */ jsx17(Col6, { xs: 1, className: `py-${padding} d-grid gap-2`, style: { marginTop: `${margin}px` }, children: /* @__PURE__ */ jsx17(
|
|
603
612
|
RemoveButton2,
|
|
604
613
|
{
|
|
605
614
|
id: buttonId3(id, "remove"),
|