@rjsf/primereact 6.0.1 → 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 CHANGED
@@ -33,7 +33,7 @@ __export(index_exports, {
33
33
  module.exports = __toCommonJS(index_exports);
34
34
 
35
35
  // src/PrimeForm/PrimeForm.ts
36
- var import_core2 = require("@rjsf/core");
36
+ var import_core3 = require("@rjsf/core");
37
37
 
38
38
  // src/AddButton/AddButton.tsx
39
39
  var import_button = require("primereact/button");
@@ -63,7 +63,7 @@ function AddButton({
63
63
  var import_utils2 = require("@rjsf/utils");
64
64
  var import_jsx_runtime2 = require("react/jsx-runtime");
65
65
  function ArrayFieldItemTemplate(props) {
66
- const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;
66
+ const { children, buttonsProps, displayLabel, hasToolbar, uiSchema, registry } = props;
67
67
  const uiOptions = (0, import_utils2.getUiOptions)(uiSchema);
68
68
  const ArrayFieldItemButtonsTemplate = (0, import_utils2.getTemplate)(
69
69
  "ArrayFieldItemButtonsTemplate",
@@ -71,7 +71,7 @@ function ArrayFieldItemTemplate(props) {
71
71
  uiOptions
72
72
  );
73
73
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { position: "relative" }, children: [
74
- hasToolbar && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { position: "absolute", right: 0, top: "-10px" }, children: hasToolbar && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { flexDirection: "row" }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ArrayFieldItemButtonsTemplate, { ...buttonsProps }) }) }),
74
+ hasToolbar && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { position: "absolute", right: 0, top: displayLabel ? "24px" : 0 }, children: hasToolbar && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { flexDirection: "row" }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ArrayFieldItemButtonsTemplate, { ...buttonsProps }) }) }),
75
75
  children
76
76
  ] });
77
77
  }
@@ -332,12 +332,12 @@ function FieldErrorTemplate({ errors, fieldPathId }) {
332
332
 
333
333
  // src/FieldHelpTemplate/FieldHelpTemplate.tsx
334
334
  var import_utils8 = require("@rjsf/utils");
335
+ var import_core2 = require("@rjsf/core");
335
336
  var import_jsx_runtime9 = require("react/jsx-runtime");
336
337
  function FieldHelpTemplate(props) {
337
- const { fieldPathId, help } = props;
338
+ const { fieldPathId, help, uiSchema, registry } = props;
338
339
  if (help) {
339
- const id = (0, import_utils8.helpId)(fieldPathId);
340
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("small", { id, children: help });
340
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("small", { id: (0, import_utils8.helpId)(fieldPathId), children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core2.RichHelp, { help, registry, uiSchema }) });
341
341
  }
342
342
  return null;
343
343
  }
@@ -371,10 +371,11 @@ function FieldTemplate(props) {
371
371
  if (hidden) {
372
372
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { style: { display: "none" }, children });
373
373
  }
374
+ const isCheckbox = uiOptions.widget === "checkbox";
374
375
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WrapIfAdditionalTemplate2, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem", marginBottom: "1rem" }, children: [
375
- displayLabel && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Label, { id: props.id, text: props.label, required: props.required }),
376
+ displayLabel && !isCheckbox && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Label, { id: props.id, text: props.label, required: props.required }),
376
377
  children,
377
- displayLabel && rawDescription && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("small", { children: description }),
378
+ displayLabel && rawDescription && !isCheckbox && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("small", { children: description }),
378
379
  errors,
379
380
  help
380
381
  ] }) });
@@ -543,10 +544,12 @@ function WrapIfAdditionalTemplate({
543
544
  style,
544
545
  children,
545
546
  disabled,
547
+ displayLabel,
546
548
  id,
547
549
  label,
548
550
  onRemoveProperty,
549
551
  onKeyRenameBlur,
552
+ rawDescription,
550
553
  readonly,
551
554
  required,
552
555
  schema,
@@ -556,6 +559,8 @@ function WrapIfAdditionalTemplate({
556
559
  const { RemoveButton: RemoveButton2 } = templates.ButtonTemplates;
557
560
  const keyLabel = translateString(import_utils13.TranslatableString.KeyLabel, [label]);
558
561
  const additional = import_utils13.ADDITIONAL_PROPERTY_FLAG in schema;
562
+ const hasDescription = !!rawDescription;
563
+ const margin = hasDescription ? -8 : 12;
559
564
  if (!additional) {
560
565
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: classNames, style, children });
561
566
  }
@@ -563,10 +568,10 @@ function WrapIfAdditionalTemplate({
563
568
  "div",
564
569
  {
565
570
  className: classNames,
566
- style: { ...style, display: "flex", alignItems: "center", gap: "1rem" },
571
+ style: { ...style, display: "flex", alignItems: "flex-start", gap: "1rem" },
567
572
  children: [
568
573
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { style: { flex: 1 }, children: [
569
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("label", { htmlFor: `${id}-key`, style: { display: "block", marginBottom: "0.5rem" }, children: keyLabel }),
574
+ displayLabel && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("label", { htmlFor: `${id}-key`, style: { display: "block", marginBottom: "0.5rem" }, children: keyLabel }),
570
575
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
571
576
  import_inputtext2.InputText,
572
577
  {
@@ -581,7 +586,7 @@ function WrapIfAdditionalTemplate({
581
586
  )
582
587
  ] }),
583
588
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: { flex: 1 }, children }),
584
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
589
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: displayLabel ? { alignSelf: "center", marginTop: `${margin}px` } : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
585
590
  RemoveButton2,
586
591
  {
587
592
  id: (0, import_utils13.buttonId)(id, "remove"),
@@ -1334,7 +1339,7 @@ var Theme_default = generateTheme();
1334
1339
 
1335
1340
  // src/PrimeForm/PrimeForm.ts
1336
1341
  function generateForm() {
1337
- return (0, import_core2.withTheme)(generateTheme());
1342
+ return (0, import_core3.withTheme)(generateTheme());
1338
1343
  }
1339
1344
  var PrimeForm_default = generateForm();
1340
1345
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts", "../src/PrimeForm/PrimeForm.ts", "../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/util.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/ArrayFieldTitleTemplate/ArrayFieldTitleTemplate.tsx", "../src/GridTemplate/GridTemplate.tsx", "../src/Templates/Templates.ts", "../src/AutoCompleteWidget/AutoCompleteWidget.tsx", "../src/CheckboxWidget/CheckboxWidget.tsx", "../src/CheckboxesWidget/CheckboxesWidget.tsx", "../src/ColorWidget/ColorWidget.tsx", "../src/PasswordWidget/PasswordWidget.tsx", "../src/RadioWidget/RadioWidget.tsx", "../src/RangeWidget/RangeWidget.tsx", "../src/SelectWidget/SelectWidget.tsx", "../src/TextareaWidget/TextareaWidget.tsx", "../src/UpDownWidget/UpDownWidget.tsx", "../src/Widgets/Widgets.tsx", "../src/Theme/Theme.ts"],
4
- "sourcesContent": ["import PrimeForm from './PrimeForm/PrimeForm';\n\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Form, generateForm } from './PrimeForm';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\n\nexport default PrimeForm;\n", "import { ComponentType } from 'react';\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme';\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 { Button } from 'primereact/button';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\n/** The `AddButton` renders a button that represents the `Add` action on a form\n */\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n color,\n ...props\n}: IconButtonProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Button\n label={translateString(TranslatableString.AddItemButton)}\n icon='pi pi-plus'\n outlined\n severity='secondary'\n size='small'\n {...props}\n />\n );\n}\n", "import {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, 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 return (\n <div style={{ position: 'relative' }}>\n {hasToolbar && (\n <div style={{ position: 'absolute', right: 0, top: '-10px' }}>\n {hasToolbar && (\n <div style={{ flexDirection: 'row' }}>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} />\n </div>\n )}\n </div>\n )}\n {children}\n </div>\n );\n}\n", "import {\n getTemplate,\n getUiOptions,\n isFixedItems,\n ArrayFieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n buttonId,\n} from '@rjsf/utils';\nimport { Fieldset } from 'primereact/fieldset';\nimport AddButton from '../AddButton';\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n uiSchema,\n fieldPathId,\n canAdd,\n className,\n disabled,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n schema,\n title,\n registry,\n required,\n ...rest\n } = props;\n\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\n return (\n <>\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 <Fieldset\n {...rest}\n id={fieldPathId.$id}\n className={`${className}${isFixedItems<S>(schema) ? '' : ' sortable-form-fields'}`}\n >\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <div key={`array-item-list-${fieldPathId.$id}`}>\n <div>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n </div>\n {canAdd && (\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\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 </div>\n )}\n </div>\n </Fieldset>\n </>\n );\n}\n", "import { ChangeEvent } from 'react';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { InputText } from 'primereact/inputtext';\n\n/** The `BaseInputTemplate` is the template the fallback if no widget is specified.\n */\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: BaseInputTemplateProps<T, S, F>) {\n const {\n id,\n htmlName,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n registry,\n rawErrors = [],\n } = props;\n\n const { AutoCompleteWidget } = registry.widgets;\n\n if (Array.isArray(schema.examples)) {\n return <AutoCompleteWidget {...props} />;\n }\n\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const primeProps = (options.prime || {}) as object;\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <InputText\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n {...primeProps}\n {...inputProps}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n list={schema.examples ? examplesId(id) : undefined}\n value={value || value === 0 ? value : ''}\n invalid={rawErrors.length > 0}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n );\n}\n", "import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n if (!description) {\n return null;\n }\n return (\n <span id={id}>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </span>\n );\n}\n", "import { Message } from 'primereact/message';\nimport { TimesCircleIcon } from 'primereact/icons/timescircle';\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\n/** The `ErrorList` component is the template that renders all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n\n const content = (\n <div style={{ display: 'flex', flexDirection: 'column' }}>\n <div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', gap: '0.5rem' }}>\n <TimesCircleIcon style={{ width: '1.5rem', height: '1.5rem' }} />\n <div className='p-message-summary'>{translateString(TranslatableString.ErrorsLabel)}</div>\n </div>\n <ul className='p-message-list'>\n {errors.map((error, index) => (\n <li key={`error-${index}`}>{error.stack}</li>\n ))}\n </ul>\n </div>\n );\n\n return (\n <Message\n className='p-message'\n style={{\n borderStyle: 'solid',\n borderColor: '#ff5757',\n borderWidth: '0 0 0 6px',\n width: '100%',\n justifyContent: 'start',\n marginBottom: '1rem',\n }}\n severity='error'\n content={content}\n />\n );\n}\n", "import { Button, ButtonProps } from 'primereact/button';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nexport type PrimeIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & Omit<ButtonProps, 'onClick'>;\n\nexport default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const { icon, iconType, uiSchema, registry, ...otherProps } = props;\n return <Button icon={`pi pi-${icon}`} rounded text severity='secondary' {...otherProps} />;\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon='copy' />;\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon='angle-down' />;\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon='angle-up' />;\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.RemoveButton)} {...props} icon='trash' />;\n}\n", "import { errorId, FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Message } from 'primereact/message';\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>({ errors, fieldPathId }: FieldErrorProps<T, S, F>) {\n if (errors && errors.length > 0) {\n const id = errorId(fieldPathId);\n const content = errors.map((error, i: number) => {\n return <div key={i}>{error}</div>;\n });\n\n return (\n <Message\n id={id}\n severity='error'\n style={{ justifyContent: 'left' }}\n text={content}\n pt={{ text: { style: { fontSize: 'smaller' } } }}\n />\n );\n }\n return null;\n}\n", "import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';\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 } = props;\n if (help) {\n const id = helpId(fieldPathId);\n return <small id={id}>{help}</small>;\n }\n return null;\n}\n", "import {\n FieldTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nimport { Label } from '../util';\n\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldTemplateProps<T, S, F>) {\n const { children, errors, help, displayLabel, description, rawDescription, hidden, uiSchema, registry } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n\n return (\n <WrapIfAdditionalTemplate {...props}>\n <div style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem', marginBottom: '1rem' }}>\n {displayLabel && <Label id={props.id} text={props.label} required={props.required} />}\n {children}\n {displayLabel && rawDescription && <small>{description}</small>}\n {errors}\n {help}\n </div>\n </WrapIfAdditionalTemplate>\n );\n}\n", "export function Label({ id, text, required }: { id: string; text?: string; required?: boolean }) {\n if (!text) {\n return null;\n }\n\n return (\n <label htmlFor={id}>\n {text} {required ? '*' : ''}\n </label>\n );\n}\n", "import { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Fieldset } from 'primereact/fieldset';\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { selector, optionSchemaField } = props;\n\n return (\n <Fieldset>\n <div style={{ marginBottom: '1rem' }}>{selector}</div>\n {optionSchemaField}\n </Fieldset>\n );\n}\n", "import {\n FormContextType,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n canExpand,\n descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\n buttonId,\n} from '@rjsf/utils';\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n optionalDataControl,\n onAddProperty,\n title,\n properties,\n disabled,\n readonly,\n required,\n uiSchema,\n schema,\n formData,\n fieldPathId,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n 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 <div style={{ marginBottom: '1rem' }}>\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n )}\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((prop) => prop.content)}\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <div style={{ marginTop: '1rem', textAlign: 'right' }}>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n icon='pi pi-plus'\n onClick={onAddProperty}\n disabled={disabled || readonly}\n registry={registry}\n />\n </div>\n )}\n </>\n );\n}\n", "import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 onClick={onAddClick}\n title={label}\n icon='pi pi-plus'\n style={{ height: '1.5rem', width: '1.5rem' }} // Shrink the button\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 style={{ height: '1.5rem', width: '1.5rem' }} // Shrink the button\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import { Button } from 'primereact/button';\nimport { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\n/** The `SubmitButton` renders a button that represents the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions<T, S, F>(uiSchema);\n if (norender) {\n return null;\n }\n return <Button type='submit' label={submitText} {...submitButtonProps} />;\n}\n", "import { Divider } from 'primereact/divider';\nimport { FormContextType, getUiOptions, RJSFSchema, StrictRJSFSchema, TitleFieldProps, titleId } from '@rjsf/utils';\n\n/** The `TitleField` is the template to use to render the title of a field\n *\n * @param props - The `TitleFieldProps` for this component\n */\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n title,\n uiSchema,\n required,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n let heading = (\n <h5 style={{ margin: 0, fontSize: id === titleId('root') ? '1.5rem' : '1.2rem' }}>\n {uiOptions.title || title} {required ? '*' : ''}\n </h5>\n );\n if (optionalDataControl) {\n heading = (\n <div style={{ display: 'flex' }}>\n <div style={{ flexGrow: 1 }}>{heading}</div>\n <div style={{ marginLeft: '-5px' }}>{optionalDataControl}</div>\n </div>\n );\n }\n return (\n <div id={id}>\n {heading}\n <Divider pt={{ root: { style: { marginTop: '0.5rem' } } }} />\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';\nimport { InputText } from 'primereact/inputtext';\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n classNames,\n style,\n children,\n disabled,\n id,\n label,\n onRemoveProperty,\n onKeyRenameBlur,\n readonly,\n required,\n schema,\n registry,\n}: WrapIfAdditionalTemplateProps<T, S, F>) {\n const { templates, translateString } = registry;\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 return (\n <div\n className={classNames}\n style={{ ...style, display: 'flex', alignItems: 'center', gap: '1rem' }}\n key={`${id}-key`}\n >\n <div style={{ flex: 1 }}>\n <label htmlFor={`${id}-key`} style={{ display: 'block', marginBottom: '0.5rem' }}>\n {keyLabel}\n </label>\n <InputText\n id={`${id}-key`}\n name={`${id}-key`}\n defaultValue={label}\n disabled={disabled || readonly}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n required={required}\n style={{ width: '100%' }}\n />\n </div>\n <div style={{ flex: 1 }}>{children}</div>\n <div>\n <RemoveButton\n id={buttonId(id, 'remove')}\n className='rjsf-object-property-remove'\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n registry={registry}\n />\n </div>\n </div>\n );\n}\n", "import {\n ArrayFieldTitleProps,\n FormContextType,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n titleId,\n} from '@rjsf/utils';\n\n/** The `ArrayFieldTitleTemplate` component renders a header for the array.\n *\n * @param props - The `ArrayFieldTitleProps` for the component\n */\nexport default function ArrayFieldTitleTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ title, uiSchema, required, fieldPathId, optionalDataControl }: ArrayFieldTitleProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n let heading = (\n <h5 id={titleId(fieldPathId)} style={{ margin: 0, fontSize: '1.5rem', marginBottom: '0.2rem' }}>\n {uiOptions.title || title} {required ? '*' : ''}\n </h5>\n );\n if (optionalDataControl) {\n heading = (\n <div style={{ display: 'flex' }}>\n <div style={{ flexGrow: 1 }}>{heading}</div>\n <div>{optionalDataControl}</div>\n </div>\n );\n }\n return heading;\n}\n", "import { useEffect, useState } from 'react';\nimport { GridTemplateProps } from '@rjsf/utils';\n\nconst breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n};\n\ntype Breakpoint = keyof typeof breakpoints;\ntype ResponsiveSpan = Partial<Record<Breakpoint, number>>;\n\nfunction getBreakpoint(width: number): Breakpoint {\n if (width >= breakpoints.xl) {\n return 'xl';\n }\n if (width >= breakpoints.lg) {\n return 'lg';\n }\n if (width >= breakpoints.md) {\n return 'md';\n }\n if (width >= breakpoints.sm) {\n return 'sm';\n }\n return 'xs';\n}\n\nfunction getResponsiveSpan(spanDef: ResponsiveSpan, breakpoint: Breakpoint): number {\n return spanDef[breakpoint] ?? spanDef.xl ?? spanDef.lg ?? spanDef.md ?? spanDef.sm ?? spanDef.xs ?? 12;\n}\n\nfunction getInitialWidth(): number {\n return typeof window !== 'undefined' ? window.innerWidth : breakpoints.xs;\n}\n\n/** Renders a `GridTemplate`, which is expecting the column size for each viewport breakpoint (xs, sm, md, lg, xl)\n * coming in via the extra props provided by the caller.\n * Uses a 12 column grid by default. This can be overridden by passing `layoutGrid` in `uiSchema`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the grid sizing details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n return props.column ? GridTemplateColumn(props) : GridTemplateRow(props);\n}\n\nfunction GridTemplateRow(props: GridTemplateProps) {\n const { children, column, uiSchema, style, ...rest } = props;\n const layoutGrid = uiSchema?.['ui:layoutGrid'] ?? {};\n const totalColumns = layoutGrid.columns ?? 12;\n const gap = layoutGrid.gap ?? '16px';\n\n return (\n <div\n style={{\n display: 'grid',\n gridTemplateColumns: `repeat(${totalColumns}, 1fr)`,\n alignItems: 'start',\n gap,\n ...(style ?? {}),\n }}\n {...rest}\n >\n {children}\n </div>\n );\n}\n\nfunction GridTemplateColumn(props: GridTemplateProps) {\n const { children, column, uiSchema, xs, sm, md, lg, xl, style, ...rest } = props;\n\n const [breakpoint, setBreakpoint] = useState<Breakpoint>(() => getBreakpoint(getInitialWidth()));\n\n useEffect(() => {\n if (typeof window === 'undefined') {\n return;\n }\n\n const handleResize = () => setBreakpoint(getBreakpoint(window.innerWidth));\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n const span = getResponsiveSpan(props as ResponsiveSpan, breakpoint);\n\n return (\n <div style={{ gridColumn: `span ${span} / span ${span}`, ...(style ?? {}) }} {...rest}>\n {children}\n </div>\n );\n}\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../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 MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\nimport ArrayFieldTitleTemplate from '../ArrayFieldTitleTemplate';\nimport GridTemplate from '../GridTemplate';\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 ArrayFieldTitleTemplate,\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 MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n GridTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { ChangeEvent, useState } from 'react';\nimport {\n ariaDescribedByIds,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { AutoComplete, AutoCompleteCompleteEvent } from 'primereact/autocomplete';\n\n/** The `AutoCompleteWidget` is a widget for rendering a field with options.\n * This is used instead of the base input template if the schema has examples.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function AutoCompleteWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n rawErrors = [],\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const primeProps = (options.prime || {}) as object;\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n const examples = (schema.examples as string[]).concat(\n schema.default && !(schema.examples as string[]).includes(schema.default.toString())\n ? [schema.default.toString()]\n : [],\n );\n\n const [items, setItems] = useState<string[]>([]);\n\n const search = (event: AutoCompleteCompleteEvent) => {\n setItems(examples.filter((example) => example.toString().toLowerCase().includes(event.query.toLowerCase())));\n };\n\n return (\n <AutoComplete\n id={id}\n name={id}\n placeholder={placeholder}\n {...primeProps}\n {...inputProps}\n loadingIcon={<></>}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n suggestions={items}\n completeMethod={search}\n value={value || value === 0 ? value : ''}\n dropdown\n invalid={rawErrors.length > 0}\n onChange={(onChangeOverride as any) || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n /* Make autocomplete look like a dropdown, which looks much nicer */\n pt={{\n root: {\n className: 'p-dropdown',\n },\n input: {\n root: {\n style: { border: 'none' },\n },\n },\n dropdownButton: {\n root: {\n className: 'p-button-text p-button-secondary',\n },\n },\n }}\n />\n );\n}\n", "import {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n labelValue,\n schemaRequiresTrueValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Checkbox, CheckboxChangeEvent } from 'primereact/checkbox';\n\nimport { Label } from '../util';\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label = '',\n hideLabel,\n autofocus,\n onChange,\n onBlur,\n options,\n onFocus,\n schema,\n uiSchema,\n registry,\n } = props;\n\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n\n const required = schemaRequiresTrueValue<S>(schema);\n const checked = value === 'true' || value === true;\n const _onChange = (e: CheckboxChangeEvent) => onChange && onChange(e.checked);\n const _onBlur: React.FocusEventHandler<HTMLInputElement> = () => onBlur && onBlur(id, value);\n const _onFocus: React.FocusEventHandler<HTMLInputElement> = () => onFocus && onFocus(id, value);\n const description = options.description ?? schema.description;\n const primeProps = (options.prime || {}) as object;\n\n return (\n <>\n {!hideLabel && !!description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <div style={{ display: 'flex', flexDirection: 'row', gap: '0.5rem', alignItems: 'center' }}>\n <Checkbox\n inputId={id}\n name={htmlName || id}\n {...primeProps}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n checked={typeof value === 'undefined' ? false : checked}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n required={required}\n aria-describedby={ariaDescribedByIds(id)}\n />\n {labelValue(<Label id={id} text={label} />, hideLabel, false)}\n </div>\n </>\n );\n}\n", "import { Checkbox, CheckboxChangeEvent } from 'primereact/checkbox';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n descriptionId,\n getTemplate,\n} from '@rjsf/utils';\n\nimport { Label } from '../util';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n onChange,\n onBlur,\n onFocus,\n schema,\n uiSchema,\n registry,\n hideLabel,\n } = props;\n const { enumOptions, enumDisabled } = options;\n const primeProps = (options.prime || {}) as object;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n\n const _onChange = (index: number) => (e: CheckboxChangeEvent) => {\n if (e.checked) {\n onChange(enumOptionsSelectValue<S>(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue<S>(index, checkboxesValues, enumOptions));\n }\n };\n\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n\n const _onBlur = () => onBlur(id, value);\n const _onFocus = () => onFocus(id, value);\n\n const description = options.description ?? schema.description;\n\n return (\n <div\n id={id}\n style={{ display: 'flex', flexDirection: 'column', gap: '1rem', marginTop: '0.5rem', marginBottom: '0.5rem' }}\n >\n {!hideLabel && !!description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <div key={index} style={{ display: 'flex', flexDirection: 'row', gap: '0.5rem', alignItems: 'center' }}>\n <Checkbox\n inputId={optionId(id, index)}\n name={htmlName || id}\n {...primeProps}\n value={option.value}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n <Label id={optionId(id, index)} text={option.label} />\n </div>\n );\n })}\n </div>\n );\n}\n", "import { ChangeEvent } from 'react';\nimport {\n ariaDescribedByIds,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { ColorPicker } from 'primereact/colorpicker';\n\n/** The `ColorWidget` component renders a color picker.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function ColorWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n id,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const { inline } = options;\n const primeProps = (options.prime || {}) as object;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <ColorPicker\n id={id}\n name={id}\n placeholder={placeholder}\n {...primeProps}\n {...inputProps}\n required={required}\n inline={inline}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n value={value || ''}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n );\n}\n", "import { ChangeEvent } from 'react';\nimport {\n ariaDescribedByIds,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Password } from 'primereact/password';\n\n/** The `PasswordWidget` renders a `Password` component\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function PasswordWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n rawErrors = [],\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const primeProps = (options.prime || {}) as object;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <Password\n id={id}\n name={id}\n placeholder={placeholder}\n {...primeProps}\n {...inputProps}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n value={value || ''}\n invalid={rawErrors.length > 0}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n pt={{ root: { style: { display: 'flex', flexDirection: 'column' } } }}\n />\n );\n}\n", "import {\n ariaDescribedByIds,\n enumOptionsIsSelected,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { RadioButton, RadioButtonChangeEvent } from 'primereact/radiobutton';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { id, htmlName, value, disabled, readonly, onChange, onBlur, onFocus, options } = props;\n const primeProps = (options.prime || {}) as object;\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const _onChange = (e: RadioButtonChangeEvent) => {\n onChange(enumOptionsValueForIndex<S>(e.value, enumOptions, emptyValue));\n };\n\n const _onBlur = () => onBlur(id, value);\n const _onFocus = () => onFocus(id, value);\n\n return (\n <div style={{ display: 'flex', flexDirection: 'row', gap: '1rem' }}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, value);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <div key={index} style={{ display: 'flex', alignItems: 'center' }}>\n <RadioButton\n inputId={optionId(id, index)}\n name={htmlName || id}\n {...primeProps}\n onFocus={_onFocus}\n onBlur={_onBlur}\n onChange={_onChange}\n value={String(index)}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n aria-describedby={ariaDescribedByIds(id)}\n />\n <label htmlFor={optionId(id, index)} style={{ marginLeft: '8px' }}>\n {option.label}\n </label>\n </div>\n );\n })}\n </div>\n );\n}\n", "import { FocusEvent } from 'react';\nimport { Slider, SliderChangeEvent } from 'primereact/slider';\nimport { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps, rangeSpec } from '@rjsf/utils';\n\n/** The `RangeWidget` component uses the `Slider` from PrimeReact, wrapping the result\n * in a div, with the value alongside it.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { value, readonly, disabled, onBlur, onFocus, options, schema, onChange, id } = props;\n const primeProps = (options.prime || {}) as object;\n const sliderProps = { value, id, ...rangeSpec<S>(schema) };\n\n const _onChange = (e: SliderChangeEvent) => {\n onChange(e.value ?? options.emptyValue);\n };\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n\n return (\n <>\n <Slider\n {...primeProps}\n disabled={disabled || readonly}\n onMouseDown={(e) => e.stopPropagation()}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n {...sliderProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import { FocusEvent } from 'react';\nimport { Dropdown } from 'primereact/dropdown';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { MultiSelect } from 'primereact/multiselect';\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { multiple = false } = props;\n\n return multiple ? <MultiSelectWidget {...props} /> : <SingleSelectWidget {...props} />;\n}\n\nfunction SingleSelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n schema,\n id,\n htmlName,\n name, // remove this from dropdownProps\n options,\n label,\n hideLabel,\n required,\n disabled,\n placeholder,\n readonly,\n value,\n multiple,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n errorSchema,\n rawErrors = [],\n registry,\n uiSchema,\n hideError,\n ...dropdownProps\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;\n const primeProps = (options.prime || {}) as object;\n\n multiple = typeof multiple === 'undefined' ? false : multiple;\n\n const emptyValue = multiple ? [] : '';\n const isEmpty = typeof value === 'undefined' || (multiple && value.length < 1) || (!multiple && value === emptyValue);\n\n const _onChange = (e: { value: any }) => onChange(enumOptionsValueForIndex<S>(e.value, enumOptions, optEmptyVal));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n const { ...dropdownRemainingProps } = dropdownProps;\n\n return (\n <Dropdown\n id={id}\n name={htmlName || id}\n {...primeProps}\n value={!isEmpty && typeof selectedIndexes !== 'undefined' ? selectedIndexes : emptyValue}\n options={(enumOptions ?? []).map(({ value, label }, i: number) => ({\n label,\n value: String(i),\n disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(value) !== -1,\n }))}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n placeholder={placeholder}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n aria-describedby={ariaDescribedByIds(id)}\n {...dropdownRemainingProps}\n />\n );\n}\n\nfunction MultiSelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n htmlName,\n options,\n disabled,\n placeholder,\n readonly,\n value,\n multiple = false,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;\n const primeProps = (options.prime || {}) as object;\n\n const emptyValue = multiple ? [] : '';\n const isEmpty = typeof value === 'undefined' || (multiple && value.length < 1) || (!multiple && value === emptyValue);\n\n const _onChange = (e: { value: any }) => onChange(enumOptionsValueForIndex<S>(e.value, enumOptions, optEmptyVal));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n\n return (\n <MultiSelect\n id={id}\n name={htmlName || id}\n {...primeProps}\n value={!isEmpty && typeof selectedIndexes !== 'undefined' ? selectedIndexes : emptyValue}\n options={(enumOptions ?? []).map(({ value, label }, i: number) => ({\n label,\n value: String(i),\n disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(value) !== -1,\n }))}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n placeholder={placeholder}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n display={options.display === 'chip' ? 'chip' : 'comma'}\n aria-describedby={ariaDescribedByIds(id)}\n pt={{ root: { style: { position: 'relative' } } }}\n />\n );\n}\n", "import { ChangeEvent } from 'react';\nimport { InputTextarea } from 'primereact/inputtextarea';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\n\n/** The `TextareaWidget` is a widget for rendering input fields as textarea using PrimeReact.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { id, htmlName, value, required, disabled, readonly, autofocus, onChange, onBlur, onFocus, options } = props;\n const primeProps = (options.prime || {}) as object;\n\n let rows = 5;\n // noinspection SuspiciousTypeOfGuard\n if (typeof options.rows === 'string' || typeof options.rows === 'number') {\n rows = Number(options.rows);\n }\n\n const handleChange = (event: ChangeEvent<HTMLTextAreaElement>) => {\n onChange(event.target.value === '' ? options.emptyValue : event.target.value);\n };\n\n return (\n <InputTextarea\n id={id}\n name={htmlName || id}\n {...primeProps}\n value={value || ''}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n rows={rows}\n onChange={handleChange}\n onBlur={onBlur && ((event) => onBlur(id, event.target.value))}\n onFocus={onFocus && ((event) => onFocus(id, event.target.value))}\n />\n );\n}\n", "import {\n ariaDescribedByIds,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { InputNumber, InputNumberChangeEvent } from 'primereact/inputnumber';\n\n/** The `UpDownWidget` renders an input component for a number.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function UpDownWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n id,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n rawErrors = [],\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const { showButtons, buttonLayout, useGrouping, minFractionDigits, maxFractionDigits, locale, currency } = options;\n const primeProps = (options.prime || {}) as object;\n\n const _onChange = (event: InputNumberChangeEvent) => onChange(event.value === null ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <InputNumber\n id={id}\n name={id}\n {...primeProps}\n placeholder={placeholder}\n step={isNaN(Number(inputProps.step)) ? 1 : Number(inputProps.step)}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n style={buttonLayout === 'vertical' ? { width: '4em' } : {}}\n showButtons={typeof showButtons === 'undefined' ? true : !!showButtons}\n buttonLayout={(buttonLayout as any) ?? 'stacked'}\n useGrouping={!!useGrouping}\n minFractionDigits={minFractionDigits as number}\n maxFractionDigits={maxFractionDigits as number}\n locale={locale as string}\n mode={currency ? 'currency' : 'decimal'}\n currency={currency as string}\n value={isNaN(Number(value)) ? null : Number(value)}\n invalid={rawErrors.length > 0}\n onChange={(onChangeOverride as any) || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n );\n}\n", "import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport AutoCompleteWidget from '../AutoCompleteWidget/AutoCompleteWidget';\nimport CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport ColorWidget from '../ColorWidget/ColorWidget';\nimport PasswordWidget from '../PasswordWidget/PasswordWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\nimport UpDownWidget from '../UpDownWidget/UpDownWidget';\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 AutoCompleteWidget,\n CheckboxWidget,\n CheckboxesWidget,\n ColorWidget,\n PasswordWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n UpDownWidget,\n };\n}\n\nexport default generateWidgets();\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ThemeProps } from '@rjsf/core';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n };\n}\n\nexport default generateTheme();\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,IAAAA,eAAqC;;;ACDrC,oBAAuB;AACvB,mBAAmG;AAY/F;AARW,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA6B;AAC3B,QAAM,EAAE,gBAAgB,IAAI;AAC5B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,gBAAgB,gCAAmB,aAAa;AAAA,MACvD,MAAK;AAAA,MACL,UAAQ;AAAA,MACR,UAAS;AAAA,MACT,MAAK;AAAA,MACJ,GAAG;AAAA;AAAA,EACN;AAEJ;;;ACtBA,IAAAC,gBAOO;AAmBH,IAAAC,sBAAA;AAbW,SAAR,uBAIL,OAA6C;AAC7C,QAAM,EAAE,UAAU,cAAc,YAAY,UAAU,SAAS,IAAI;AACnE,QAAM,gBAAY,4BAAsB,QAAQ;AACh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;AAAA,MACA;AAAA,MACA,MAAM,WAAW,aAAa;AAAA,MAC9B;AAAA,MACA,OAAO,MAAM,OAAO,KAAK,CAAC,IAAI,OAAO,OAAO,KAAK;AAAA,MACjD,SAAS,UAAU,SAAS;AAAA,MAC5B,UAAW,oBAA4B;AAAA,MACvC,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,wBAAkB,mCAAmB,IAAI,CAAC,CAAC,OAAO,QAAQ;AAAA;AAAA,EAC5D;AAEJ;;;ACxDO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;AC1BxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,EACpC;AACF;AAEA,IAAO,gBAAQ,cAAc;;;AhCXtB,SAAS,eAIuB;AACrC,aAAO,wBAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,oBAAQ,aAAa;;;ADP5B,IAAO,gBAAQ;",
6
- "names": ["import_core", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "ArrayFieldTitleTemplate", "import_utils", "import_jsx_runtime", "AutoCompleteWidget", "value", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "import_button", "import_utils", "import_jsx_runtime", "import_utils", "import_message", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "import_jsx_runtime", "WrapIfAdditionalTemplate", "import_fieldset", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "AddButton", "import_jsx_runtime", "import_button", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "import_utils", "import_inputtext", "import_jsx_runtime", "RemoveButton", "import_utils", "import_jsx_runtime", "import_jsx_runtime", "import_react", "import_utils", "import_jsx_runtime", "value", "import_utils", "import_jsx_runtime", "import_checkbox", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "value", "import_utils", "import_jsx_runtime", "value", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "value", "label", "import_jsx_runtime", "import_utils", "import_jsx_runtime"]
4
+ "sourcesContent": ["import PrimeForm from './PrimeForm/PrimeForm';\n\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Form, generateForm } from './PrimeForm';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\n\nexport default PrimeForm;\n", "import { ComponentType } from 'react';\nimport { withTheme, FormProps } from '@rjsf/core';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme';\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 { Button } from 'primereact/button';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\n/** The `AddButton` renders a button that represents the `Add` action on a form\n */\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n color,\n ...props\n}: IconButtonProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Button\n label={translateString(TranslatableString.AddItemButton)}\n icon='pi pi-plus'\n outlined\n severity='secondary'\n size='small'\n {...props}\n />\n );\n}\n", "import {\n ArrayFieldItemTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, displayLabel, 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 return (\n <div style={{ position: 'relative' }}>\n {hasToolbar && (\n <div style={{ position: 'absolute', right: 0, top: displayLabel ? '24px' : 0 }}>\n {hasToolbar && (\n <div style={{ flexDirection: 'row' }}>\n <ArrayFieldItemButtonsTemplate {...buttonsProps} />\n </div>\n )}\n </div>\n )}\n {children}\n </div>\n );\n}\n", "import {\n getTemplate,\n getUiOptions,\n isFixedItems,\n ArrayFieldTemplateProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n buttonId,\n} from '@rjsf/utils';\nimport { Fieldset } from 'primereact/fieldset';\nimport AddButton from '../AddButton';\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n uiSchema,\n fieldPathId,\n canAdd,\n className,\n disabled,\n items,\n optionalDataControl,\n onAddClick,\n readonly,\n schema,\n title,\n registry,\n required,\n ...rest\n } = props;\n\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\n return (\n <>\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 <Fieldset\n {...rest}\n id={fieldPathId.$id}\n className={`${className}${isFixedItems<S>(schema) ? '' : ' sortable-form-fields'}`}\n >\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <div key={`array-item-list-${fieldPathId.$id}`}>\n <div>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n </div>\n {canAdd && (\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\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 </div>\n )}\n </div>\n </Fieldset>\n </>\n );\n}\n", "import { ChangeEvent } from 'react';\nimport {\n ariaDescribedByIds,\n BaseInputTemplateProps,\n examplesId,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\nimport { InputText } from 'primereact/inputtext';\n\n/** The `BaseInputTemplate` is the template the fallback if no widget is specified.\n */\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: BaseInputTemplateProps<T, S, F>) {\n const {\n id,\n htmlName,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n registry,\n rawErrors = [],\n } = props;\n\n const { AutoCompleteWidget } = registry.widgets;\n\n if (Array.isArray(schema.examples)) {\n return <AutoCompleteWidget {...props} />;\n }\n\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const primeProps = (options.prime || {}) as object;\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <InputText\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n {...primeProps}\n {...inputProps}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n list={schema.examples ? examplesId(id) : undefined}\n value={value || value === 0 ? value : ''}\n invalid={rawErrors.length > 0}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n );\n}\n", "import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { RichDescription } from '@rjsf/core';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n if (!description) {\n return null;\n }\n return (\n <span id={id}>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </span>\n );\n}\n", "import { Message } from 'primereact/message';\nimport { TimesCircleIcon } from 'primereact/icons/timescircle';\nimport { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\n/** The `ErrorList` component is the template that renders all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n\n const content = (\n <div style={{ display: 'flex', flexDirection: 'column' }}>\n <div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', gap: '0.5rem' }}>\n <TimesCircleIcon style={{ width: '1.5rem', height: '1.5rem' }} />\n <div className='p-message-summary'>{translateString(TranslatableString.ErrorsLabel)}</div>\n </div>\n <ul className='p-message-list'>\n {errors.map((error, index) => (\n <li key={`error-${index}`}>{error.stack}</li>\n ))}\n </ul>\n </div>\n );\n\n return (\n <Message\n className='p-message'\n style={{\n borderStyle: 'solid',\n borderColor: '#ff5757',\n borderWidth: '0 0 0 6px',\n width: '100%',\n justifyContent: 'start',\n marginBottom: '1rem',\n }}\n severity='error'\n content={content}\n />\n );\n}\n", "import { Button, ButtonProps } from 'primereact/button';\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';\n\nexport type PrimeIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & Omit<ButtonProps, 'onClick'>;\n\nexport default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const { icon, iconType, uiSchema, registry, ...otherProps } = props;\n return <Button icon={`pi pi-${icon}`} rounded text severity='secondary' {...otherProps} />;\n}\n\nexport function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon='copy' />;\n}\n\nexport function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon='angle-down' />;\n}\n\nexport function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon='angle-up' />;\n}\n\nexport function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: PrimeIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.RemoveButton)} {...props} icon='trash' />;\n}\n", "import { errorId, FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Message } from 'primereact/message';\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>({ errors, fieldPathId }: FieldErrorProps<T, S, F>) {\n if (errors && errors.length > 0) {\n const id = errorId(fieldPathId);\n const content = errors.map((error, i: number) => {\n return <div key={i}>{error}</div>;\n });\n\n return (\n <Message\n id={id}\n severity='error'\n style={{ justifyContent: 'left' }}\n text={content}\n pt={{ text: { style: { fontSize: 'smaller' } } }}\n />\n );\n }\n return null;\n}\n", "import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';\nimport { RichHelp } from '@rjsf/core';\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 } = props;\n if (help) {\n return (\n <small id={helpId(fieldPathId)}>\n <RichHelp help={help} registry={registry} uiSchema={uiSchema} />\n </small>\n );\n }\n return null;\n}\n", "import {\n FieldTemplateProps,\n FormContextType,\n getTemplate,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils';\n\nimport { Label } from '../util';\n\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldTemplateProps<T, S, F>) {\n const { children, errors, help, displayLabel, description, rawDescription, hidden, uiSchema, registry } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n\n const isCheckbox = uiOptions.widget === 'checkbox';\n return (\n <WrapIfAdditionalTemplate {...props}>\n <div style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem', marginBottom: '1rem' }}>\n {displayLabel && !isCheckbox && <Label id={props.id} text={props.label} required={props.required} />}\n {children}\n {displayLabel && rawDescription && !isCheckbox && <small>{description}</small>}\n {errors}\n {help}\n </div>\n </WrapIfAdditionalTemplate>\n );\n}\n", "export function Label({ id, text, required }: { id: string; text?: string; required?: boolean }) {\n if (!text) {\n return null;\n }\n\n return (\n <label htmlFor={id}>\n {text} {required ? '*' : ''}\n </label>\n );\n}\n", "import { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Fieldset } from 'primereact/fieldset';\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { selector, optionSchemaField } = props;\n\n return (\n <Fieldset>\n <div style={{ marginBottom: '1rem' }}>{selector}</div>\n {optionSchemaField}\n </Fieldset>\n );\n}\n", "import {\n FormContextType,\n ObjectFieldTemplateProps,\n RJSFSchema,\n StrictRJSFSchema,\n canExpand,\n descriptionId,\n getTemplate,\n getUiOptions,\n titleId,\n buttonId,\n} from '@rjsf/utils';\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n optionalDataControl,\n onAddProperty,\n title,\n properties,\n disabled,\n readonly,\n required,\n uiSchema,\n schema,\n formData,\n fieldPathId,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n 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 <div style={{ marginBottom: '1rem' }}>\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n )}\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((prop) => prop.content)}\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <div style={{ marginTop: '1rem', textAlign: 'right' }}>\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n icon='pi pi-plus'\n onClick={onAddProperty}\n disabled={disabled || readonly}\n registry={registry}\n />\n </div>\n )}\n </>\n );\n}\n", "import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\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 onClick={onAddClick}\n title={label}\n icon='pi pi-plus'\n style={{ height: '1.5rem', width: '1.5rem' }} // Shrink the button\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 style={{ height: '1.5rem', width: '1.5rem' }} // Shrink the button\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import { Button } from 'primereact/button';\nimport { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\n\n/** The `SubmitButton` renders a button that represents the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions<T, S, F>(uiSchema);\n if (norender) {\n return null;\n }\n return <Button type='submit' label={submitText} {...submitButtonProps} />;\n}\n", "import { Divider } from 'primereact/divider';\nimport { FormContextType, getUiOptions, RJSFSchema, StrictRJSFSchema, TitleFieldProps, titleId } from '@rjsf/utils';\n\n/** The `TitleField` is the template to use to render the title of a field\n *\n * @param props - The `TitleFieldProps` for this component\n */\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n title,\n uiSchema,\n required,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n let heading = (\n <h5 style={{ margin: 0, fontSize: id === titleId('root') ? '1.5rem' : '1.2rem' }}>\n {uiOptions.title || title} {required ? '*' : ''}\n </h5>\n );\n if (optionalDataControl) {\n heading = (\n <div style={{ display: 'flex' }}>\n <div style={{ flexGrow: 1 }}>{heading}</div>\n <div style={{ marginLeft: '-5px' }}>{optionalDataControl}</div>\n </div>\n );\n }\n return (\n <div id={id}>\n {heading}\n <Divider pt={{ root: { style: { marginTop: '0.5rem' } } }} />\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';\nimport { InputText } from 'primereact/inputtext';\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n classNames,\n style,\n children,\n disabled,\n displayLabel,\n id,\n label,\n onRemoveProperty,\n onKeyRenameBlur,\n rawDescription,\n readonly,\n required,\n schema,\n registry,\n}: WrapIfAdditionalTemplateProps<T, S, F>) {\n const { templates, translateString } = registry;\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n const hasDescription = !!rawDescription;\n const margin = hasDescription ? -8 : 12;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n return (\n <div\n className={classNames}\n style={{ ...style, display: 'flex', alignItems: 'flex-start', gap: '1rem' }}\n key={`${id}-key`}\n >\n <div style={{ flex: 1 }}>\n {displayLabel && (\n <label htmlFor={`${id}-key`} style={{ display: 'block', marginBottom: '0.5rem' }}>\n {keyLabel}\n </label>\n )}\n <InputText\n id={`${id}-key`}\n name={`${id}-key`}\n defaultValue={label}\n disabled={disabled || readonly}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n required={required}\n style={{ width: '100%' }}\n />\n </div>\n <div style={{ flex: 1 }}>{children}</div>\n <div style={displayLabel ? { alignSelf: 'center', marginTop: `${margin}px` } : undefined}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n className='rjsf-object-property-remove'\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n registry={registry}\n />\n </div>\n </div>\n );\n}\n", "import {\n ArrayFieldTitleProps,\n FormContextType,\n getUiOptions,\n RJSFSchema,\n StrictRJSFSchema,\n titleId,\n} from '@rjsf/utils';\n\n/** The `ArrayFieldTitleTemplate` component renders a header for the array.\n *\n * @param props - The `ArrayFieldTitleProps` for the component\n */\nexport default function ArrayFieldTitleTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ title, uiSchema, required, fieldPathId, optionalDataControl }: ArrayFieldTitleProps<T, S, F>) {\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n let heading = (\n <h5 id={titleId(fieldPathId)} style={{ margin: 0, fontSize: '1.5rem', marginBottom: '0.2rem' }}>\n {uiOptions.title || title} {required ? '*' : ''}\n </h5>\n );\n if (optionalDataControl) {\n heading = (\n <div style={{ display: 'flex' }}>\n <div style={{ flexGrow: 1 }}>{heading}</div>\n <div>{optionalDataControl}</div>\n </div>\n );\n }\n return heading;\n}\n", "import { useEffect, useState } from 'react';\nimport { GridTemplateProps } from '@rjsf/utils';\n\nconst breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n};\n\ntype Breakpoint = keyof typeof breakpoints;\ntype ResponsiveSpan = Partial<Record<Breakpoint, number>>;\n\nfunction getBreakpoint(width: number): Breakpoint {\n if (width >= breakpoints.xl) {\n return 'xl';\n }\n if (width >= breakpoints.lg) {\n return 'lg';\n }\n if (width >= breakpoints.md) {\n return 'md';\n }\n if (width >= breakpoints.sm) {\n return 'sm';\n }\n return 'xs';\n}\n\nfunction getResponsiveSpan(spanDef: ResponsiveSpan, breakpoint: Breakpoint): number {\n return spanDef[breakpoint] ?? spanDef.xl ?? spanDef.lg ?? spanDef.md ?? spanDef.sm ?? spanDef.xs ?? 12;\n}\n\nfunction getInitialWidth(): number {\n return typeof window !== 'undefined' ? window.innerWidth : breakpoints.xs;\n}\n\n/** Renders a `GridTemplate`, which is expecting the column size for each viewport breakpoint (xs, sm, md, lg, xl)\n * coming in via the extra props provided by the caller.\n * Uses a 12 column grid by default. This can be overridden by passing `layoutGrid` in `uiSchema`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the grid sizing details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n return props.column ? GridTemplateColumn(props) : GridTemplateRow(props);\n}\n\nfunction GridTemplateRow(props: GridTemplateProps) {\n const { children, column, uiSchema, style, ...rest } = props;\n const layoutGrid = uiSchema?.['ui:layoutGrid'] ?? {};\n const totalColumns = layoutGrid.columns ?? 12;\n const gap = layoutGrid.gap ?? '16px';\n\n return (\n <div\n style={{\n display: 'grid',\n gridTemplateColumns: `repeat(${totalColumns}, 1fr)`,\n alignItems: 'start',\n gap,\n ...(style ?? {}),\n }}\n {...rest}\n >\n {children}\n </div>\n );\n}\n\nfunction GridTemplateColumn(props: GridTemplateProps) {\n const { children, column, uiSchema, xs, sm, md, lg, xl, style, ...rest } = props;\n\n const [breakpoint, setBreakpoint] = useState<Breakpoint>(() => getBreakpoint(getInitialWidth()));\n\n useEffect(() => {\n if (typeof window === 'undefined') {\n return;\n }\n\n const handleResize = () => setBreakpoint(getBreakpoint(window.innerWidth));\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n const span = getResponsiveSpan(props as ResponsiveSpan, breakpoint);\n\n return (\n <div style={{ gridColumn: `span ${span} / span ${span}`, ...(style ?? {}) }} {...rest}>\n {children}\n </div>\n );\n}\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../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 MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\nimport ArrayFieldTitleTemplate from '../ArrayFieldTitleTemplate';\nimport GridTemplate from '../GridTemplate';\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 ArrayFieldTitleTemplate,\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 MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n GridTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import { ChangeEvent, useState } from 'react';\nimport {\n ariaDescribedByIds,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { AutoComplete, AutoCompleteCompleteEvent } from 'primereact/autocomplete';\n\n/** The `AutoCompleteWidget` is a widget for rendering a field with options.\n * This is used instead of the base input template if the schema has examples.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function AutoCompleteWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n rawErrors = [],\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const primeProps = (options.prime || {}) as object;\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n const examples = (schema.examples as string[]).concat(\n schema.default && !(schema.examples as string[]).includes(schema.default.toString())\n ? [schema.default.toString()]\n : [],\n );\n\n const [items, setItems] = useState<string[]>([]);\n\n const search = (event: AutoCompleteCompleteEvent) => {\n setItems(examples.filter((example) => example.toString().toLowerCase().includes(event.query.toLowerCase())));\n };\n\n return (\n <AutoComplete\n id={id}\n name={id}\n placeholder={placeholder}\n {...primeProps}\n {...inputProps}\n loadingIcon={<></>}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n suggestions={items}\n completeMethod={search}\n value={value || value === 0 ? value : ''}\n dropdown\n invalid={rawErrors.length > 0}\n onChange={(onChangeOverride as any) || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n /* Make autocomplete look like a dropdown, which looks much nicer */\n pt={{\n root: {\n className: 'p-dropdown',\n },\n input: {\n root: {\n style: { border: 'none' },\n },\n },\n dropdownButton: {\n root: {\n className: 'p-button-text p-button-secondary',\n },\n },\n }}\n />\n );\n}\n", "import {\n ariaDescribedByIds,\n descriptionId,\n getTemplate,\n labelValue,\n schemaRequiresTrueValue,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Checkbox, CheckboxChangeEvent } from 'primereact/checkbox';\n\nimport { Label } from '../util';\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label = '',\n hideLabel,\n autofocus,\n onChange,\n onBlur,\n options,\n onFocus,\n schema,\n uiSchema,\n registry,\n } = props;\n\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n\n const required = schemaRequiresTrueValue<S>(schema);\n const checked = value === 'true' || value === true;\n const _onChange = (e: CheckboxChangeEvent) => onChange && onChange(e.checked);\n const _onBlur: React.FocusEventHandler<HTMLInputElement> = () => onBlur && onBlur(id, value);\n const _onFocus: React.FocusEventHandler<HTMLInputElement> = () => onFocus && onFocus(id, value);\n const description = options.description ?? schema.description;\n const primeProps = (options.prime || {}) as object;\n\n return (\n <>\n {!hideLabel && !!description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <div style={{ display: 'flex', flexDirection: 'row', gap: '0.5rem', alignItems: 'center' }}>\n <Checkbox\n inputId={id}\n name={htmlName || id}\n {...primeProps}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n checked={typeof value === 'undefined' ? false : checked}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n required={required}\n aria-describedby={ariaDescribedByIds(id)}\n />\n {labelValue(<Label id={id} text={label} />, hideLabel, false)}\n </div>\n </>\n );\n}\n", "import { Checkbox, CheckboxChangeEvent } from 'primereact/checkbox';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n descriptionId,\n getTemplate,\n} from '@rjsf/utils';\n\nimport { Label } from '../util';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n onChange,\n onBlur,\n onFocus,\n schema,\n uiSchema,\n registry,\n hideLabel,\n } = props;\n const { enumOptions, enumDisabled } = options;\n const primeProps = (options.prime || {}) as object;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n\n const _onChange = (index: number) => (e: CheckboxChangeEvent) => {\n if (e.checked) {\n onChange(enumOptionsSelectValue<S>(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue<S>(index, checkboxesValues, enumOptions));\n }\n };\n\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n\n const _onBlur = () => onBlur(id, value);\n const _onFocus = () => onFocus(id, value);\n\n const description = options.description ?? schema.description;\n\n return (\n <div\n id={id}\n style={{ display: 'flex', flexDirection: 'column', gap: '1rem', marginTop: '0.5rem', marginBottom: '0.5rem' }}\n >\n {!hideLabel && !!description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <div key={index} style={{ display: 'flex', flexDirection: 'row', gap: '0.5rem', alignItems: 'center' }}>\n <Checkbox\n inputId={optionId(id, index)}\n name={htmlName || id}\n {...primeProps}\n value={option.value}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={_onChange(index)}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n <Label id={optionId(id, index)} text={option.label} />\n </div>\n );\n })}\n </div>\n );\n}\n", "import { ChangeEvent } from 'react';\nimport {\n ariaDescribedByIds,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { ColorPicker } from 'primereact/colorpicker';\n\n/** The `ColorWidget` component renders a color picker.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function ColorWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n id,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const { inline } = options;\n const primeProps = (options.prime || {}) as object;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <ColorPicker\n id={id}\n name={id}\n placeholder={placeholder}\n {...primeProps}\n {...inputProps}\n required={required}\n inline={inline}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n value={value || ''}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n );\n}\n", "import { ChangeEvent } from 'react';\nimport {\n ariaDescribedByIds,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { Password } from 'primereact/password';\n\n/** The `PasswordWidget` renders a `Password` component\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function PasswordWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n rawErrors = [],\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const primeProps = (options.prime || {}) as object;\n\n const _onChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange(value === '' ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <Password\n id={id}\n name={id}\n placeholder={placeholder}\n {...primeProps}\n {...inputProps}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n value={value || ''}\n invalid={rawErrors.length > 0}\n onChange={onChangeOverride || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n pt={{ root: { style: { display: 'flex', flexDirection: 'column' } } }}\n />\n );\n}\n", "import {\n ariaDescribedByIds,\n enumOptionsIsSelected,\n enumOptionsValueForIndex,\n optionId,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { RadioButton, RadioButtonChangeEvent } from 'primereact/radiobutton';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { id, htmlName, value, disabled, readonly, onChange, onBlur, onFocus, options } = props;\n const primeProps = (options.prime || {}) as object;\n const { enumOptions, enumDisabled, emptyValue } = options;\n\n const _onChange = (e: RadioButtonChangeEvent) => {\n onChange(enumOptionsValueForIndex<S>(e.value, enumOptions, emptyValue));\n };\n\n const _onBlur = () => onBlur(id, value);\n const _onFocus = () => onFocus(id, value);\n\n return (\n <div style={{ display: 'flex', flexDirection: 'row', gap: '1rem' }}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, value);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;\n return (\n <div key={index} style={{ display: 'flex', alignItems: 'center' }}>\n <RadioButton\n inputId={optionId(id, index)}\n name={htmlName || id}\n {...primeProps}\n onFocus={_onFocus}\n onBlur={_onBlur}\n onChange={_onChange}\n value={String(index)}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n aria-describedby={ariaDescribedByIds(id)}\n />\n <label htmlFor={optionId(id, index)} style={{ marginLeft: '8px' }}>\n {option.label}\n </label>\n </div>\n );\n })}\n </div>\n );\n}\n", "import { FocusEvent } from 'react';\nimport { Slider, SliderChangeEvent } from 'primereact/slider';\nimport { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps, rangeSpec } from '@rjsf/utils';\n\n/** The `RangeWidget` component uses the `Slider` from PrimeReact, wrapping the result\n * in a div, with the value alongside it.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { value, readonly, disabled, onBlur, onFocus, options, schema, onChange, id } = props;\n const primeProps = (options.prime || {}) as object;\n const sliderProps = { value, id, ...rangeSpec<S>(schema) };\n\n const _onChange = (e: SliderChangeEvent) => {\n onChange(e.value ?? options.emptyValue);\n };\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) => onBlur(id, target && target.value);\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) => onFocus(id, target && target.value);\n\n return (\n <>\n <Slider\n {...primeProps}\n disabled={disabled || readonly}\n onMouseDown={(e) => e.stopPropagation()}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n {...sliderProps}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import { FocusEvent } from 'react';\nimport { Dropdown } from 'primereact/dropdown';\nimport {\n ariaDescribedByIds,\n enumOptionsIndexForValue,\n enumOptionsValueForIndex,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { MultiSelect } from 'primereact/multiselect';\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const { multiple = false } = props;\n\n return multiple ? <MultiSelectWidget {...props} /> : <SingleSelectWidget {...props} />;\n}\n\nfunction SingleSelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n schema,\n id,\n htmlName,\n name, // remove this from dropdownProps\n options,\n label,\n hideLabel,\n required,\n disabled,\n placeholder,\n readonly,\n value,\n multiple,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n errorSchema,\n rawErrors = [],\n registry,\n uiSchema,\n hideError,\n ...dropdownProps\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;\n const primeProps = (options.prime || {}) as object;\n\n multiple = typeof multiple === 'undefined' ? false : multiple;\n\n const emptyValue = multiple ? [] : '';\n const isEmpty = typeof value === 'undefined' || (multiple && value.length < 1) || (!multiple && value === emptyValue);\n\n const _onChange = (e: { value: any }) => onChange(enumOptionsValueForIndex<S>(e.value, enumOptions, optEmptyVal));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n const { ...dropdownRemainingProps } = dropdownProps;\n\n return (\n <Dropdown\n id={id}\n name={htmlName || id}\n {...primeProps}\n value={!isEmpty && typeof selectedIndexes !== 'undefined' ? selectedIndexes : emptyValue}\n options={(enumOptions ?? []).map(({ value, label }, i: number) => ({\n label,\n value: String(i),\n disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(value) !== -1,\n }))}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n placeholder={placeholder}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n aria-describedby={ariaDescribedByIds(id)}\n {...dropdownRemainingProps}\n />\n );\n}\n\nfunction MultiSelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n htmlName,\n options,\n disabled,\n placeholder,\n readonly,\n value,\n multiple = false,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n}: WidgetProps<T, S, F>) {\n const { enumOptions, enumDisabled, emptyValue: optEmptyVal } = options;\n const primeProps = (options.prime || {}) as object;\n\n const emptyValue = multiple ? [] : '';\n const isEmpty = typeof value === 'undefined' || (multiple && value.length < 1) || (!multiple && value === emptyValue);\n\n const _onChange = (e: { value: any }) => onChange(enumOptionsValueForIndex<S>(e.value, enumOptions, optEmptyVal));\n const _onBlur = ({ target }: FocusEvent<HTMLInputElement>) =>\n onBlur(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const _onFocus = ({ target }: FocusEvent<HTMLInputElement>) =>\n onFocus(id, enumOptionsValueForIndex<S>(target && target.value, enumOptions, optEmptyVal));\n const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);\n\n return (\n <MultiSelect\n id={id}\n name={htmlName || id}\n {...primeProps}\n value={!isEmpty && typeof selectedIndexes !== 'undefined' ? selectedIndexes : emptyValue}\n options={(enumOptions ?? []).map(({ value, label }, i: number) => ({\n label,\n value: String(i),\n disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(value) !== -1,\n }))}\n onChange={_onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n placeholder={placeholder}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n display={options.display === 'chip' ? 'chip' : 'comma'}\n aria-describedby={ariaDescribedByIds(id)}\n pt={{ root: { style: { position: 'relative' } } }}\n />\n );\n}\n", "import { ChangeEvent } from 'react';\nimport { InputTextarea } from 'primereact/inputtextarea';\nimport { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\n\n/** The `TextareaWidget` is a widget for rendering input fields as textarea using PrimeReact.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const { id, htmlName, value, required, disabled, readonly, autofocus, onChange, onBlur, onFocus, options } = props;\n const primeProps = (options.prime || {}) as object;\n\n let rows = 5;\n // noinspection SuspiciousTypeOfGuard\n if (typeof options.rows === 'string' || typeof options.rows === 'number') {\n rows = Number(options.rows);\n }\n\n const handleChange = (event: ChangeEvent<HTMLTextAreaElement>) => {\n onChange(event.target.value === '' ? options.emptyValue : event.target.value);\n };\n\n return (\n <InputTextarea\n id={id}\n name={htmlName || id}\n {...primeProps}\n value={value || ''}\n required={required}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n rows={rows}\n onChange={handleChange}\n onBlur={onBlur && ((event) => onBlur(id, event.target.value))}\n onFocus={onFocus && ((event) => onFocus(id, event.target.value))}\n />\n );\n}\n", "import {\n ariaDescribedByIds,\n FormContextType,\n getInputProps,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n} from '@rjsf/utils';\nimport { InputNumber, InputNumberChangeEvent } from 'primereact/inputnumber';\n\n/** The `UpDownWidget` renders an input component for a number.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function UpDownWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n id,\n placeholder,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n type,\n rawErrors = [],\n } = props;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const { showButtons, buttonLayout, useGrouping, minFractionDigits, maxFractionDigits, locale, currency } = options;\n const primeProps = (options.prime || {}) as object;\n\n const _onChange = (event: InputNumberChangeEvent) => onChange(event.value === null ? options.emptyValue : value);\n const _onBlur = () => onBlur && onBlur(id, value);\n const _onFocus = () => onFocus && onFocus(id, value);\n\n return (\n <InputNumber\n id={id}\n name={id}\n {...primeProps}\n placeholder={placeholder}\n step={isNaN(Number(inputProps.step)) ? 1 : Number(inputProps.step)}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n style={buttonLayout === 'vertical' ? { width: '4em' } : {}}\n showButtons={typeof showButtons === 'undefined' ? true : !!showButtons}\n buttonLayout={(buttonLayout as any) ?? 'stacked'}\n useGrouping={!!useGrouping}\n minFractionDigits={minFractionDigits as number}\n maxFractionDigits={maxFractionDigits as number}\n locale={locale as string}\n mode={currency ? 'currency' : 'decimal'}\n currency={currency as string}\n value={isNaN(Number(value)) ? null : Number(value)}\n invalid={rawErrors.length > 0}\n onChange={(onChangeOverride as any) || _onChange}\n onBlur={_onBlur}\n onFocus={_onFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n );\n}\n", "import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport AutoCompleteWidget from '../AutoCompleteWidget/AutoCompleteWidget';\nimport CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport ColorWidget from '../ColorWidget/ColorWidget';\nimport PasswordWidget from '../PasswordWidget/PasswordWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\nimport UpDownWidget from '../UpDownWidget/UpDownWidget';\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 AutoCompleteWidget,\n CheckboxWidget,\n CheckboxesWidget,\n ColorWidget,\n PasswordWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n UpDownWidget,\n };\n}\n\nexport default generateWidgets();\n", "import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ThemeProps } from '@rjsf/core';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n };\n}\n\nexport default generateTheme();\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,IAAAA,eAAqC;;;ACDrC,oBAAuB;AACvB,mBAAmG;AAY/F;AARW,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA6B;AAC3B,QAAM,EAAE,gBAAgB,IAAI;AAC5B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,gBAAgB,gCAAmB,aAAa;AAAA,MACvD,MAAK;AAAA,MACL,UAAQ;AAAA,MACR,UAAS;AAAA,MACT,MAAK;AAAA,MACJ,G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import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "ArrayFieldTitleTemplate", "import_utils", "import_jsx_runtime", "AutoCompleteWidget", "value", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "import_button", "import_utils", "import_jsx_runtime", "import_utils", "import_message", "import_jsx_runtime", "import_utils", "import_core", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "import_jsx_runtime", "WrapIfAdditionalTemplate", "import_fieldset", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "AddButton", "import_jsx_runtime", "import_button", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "import_utils", "import_inputtext", "import_jsx_runtime", "RemoveButton", "import_utils", "import_jsx_runtime", "import_jsx_runtime", "import_react", "import_utils", "import_jsx_runtime", "value", "import_utils", "import_jsx_runtime", "import_checkbox", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "value", "import_utils", "import_jsx_runtime", "value", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "value", "label", "import_jsx_runtime", "import_utils", "import_jsx_runtime"]
7
7
  }