@rjsf/react-bootstrap 6.6.0 → 6.6.2
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 +83 -64
- package/dist/index.cjs.map +3 -3
- package/dist/react-bootstrap.esm.js +90 -102
- package/dist/react-bootstrap.esm.js.map +3 -3
- package/dist/react-bootstrap.umd.js +82 -64
- package/lib/AddButton/AddButton.d.ts +1 -1
- package/lib/AddButton/AddButton.js.map +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.d.ts +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js +6 -6
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/CheckboxWidget/CheckboxWidget.d.ts +1 -1
- package/lib/CheckboxWidget/CheckboxWidget.js +5 -5
- package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js +5 -5
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/DescriptionField/DescriptionField.d.ts +1 -1
- package/lib/ErrorList/ErrorList.d.ts +1 -1
- package/lib/ErrorList/ErrorList.js +1 -3
- package/lib/ErrorList/ErrorList.js.map +1 -1
- package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts +1 -1
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js +1 -3
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.d.ts +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/FieldTemplate/FieldTemplate.d.ts +1 -1
- package/lib/FieldTemplate/FieldTemplate.js +1 -1
- package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
- package/lib/Form/Form.d.ts +3 -3
- package/lib/Form/Form.js.map +1 -1
- package/lib/GridTemplate/GridTemplate.d.ts +1 -1
- package/lib/IconButton/IconButton.d.ts +15 -8
- package/lib/IconButton/IconButton.js +14 -6
- package/lib/IconButton/IconButton.js.map +1 -1
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +2 -2
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -1
- package/lib/RadioWidget/RadioWidget.d.ts +1 -1
- package/lib/RadioWidget/RadioWidget.js +5 -5
- package/lib/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/RangeWidget/RangeWidget.d.ts +1 -1
- package/lib/RangeWidget/RangeWidget.js +6 -6
- package/lib/RangeWidget/RangeWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.d.ts +1 -1
- package/lib/SelectWidget/SelectWidget.js +6 -8
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/SubmitButton/SubmitButton.d.ts +1 -1
- package/lib/SubmitButton/SubmitButton.js.map +1 -1
- package/lib/Templates/Templates.d.ts +1 -1
- package/lib/TextareaWidget/TextareaWidget.d.ts +1 -1
- package/lib/TextareaWidget/TextareaWidget.js +4 -4
- package/lib/TextareaWidget/TextareaWidget.js.map +1 -1
- package/lib/Theme/Theme.d.ts +2 -2
- package/lib/TitleField/TitleField.d.ts +1 -1
- package/lib/TitleField/TitleField.js.map +1 -1
- package/lib/Widgets/Widgets.d.ts +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/AddButton/AddButton.tsx +2 -1
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +3 -9
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +3 -10
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +13 -19
- package/src/CheckboxWidget/CheckboxWidget.tsx +9 -18
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +10 -13
- package/src/DescriptionField/DescriptionField.tsx +1 -1
- package/src/ErrorList/ErrorList.tsx +8 -8
- package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +8 -8
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +2 -1
- package/src/FieldTemplate/FieldTemplate.tsx +2 -8
- package/src/Form/Form.tsx +4 -3
- package/src/GridTemplate/GridTemplate.tsx +1 -1
- package/src/IconButton/IconButton.tsx +18 -8
- package/src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx +1 -1
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +4 -14
- package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +3 -2
- package/src/RadioWidget/RadioWidget.tsx +11 -14
- package/src/RangeWidget/RangeWidget.tsx +9 -8
- package/src/SelectWidget/SelectWidget.tsx +15 -14
- package/src/SubmitButton/SubmitButton.tsx +2 -1
- package/src/Templates/Templates.ts +1 -1
- package/src/TextareaWidget/TextareaWidget.tsx +10 -9
- package/src/Theme/Theme.tsx +2 -2
- package/src/TitleField/TitleField.tsx +2 -1
- package/src/Widgets/Widgets.ts +1 -1
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +2 -9
|
@@ -141,10 +141,10 @@
|
|
|
141
141
|
...extraProps,
|
|
142
142
|
...utils.getInputProps(schema, type, options)
|
|
143
143
|
};
|
|
144
|
-
const
|
|
145
|
-
const
|
|
146
|
-
const
|
|
147
|
-
const
|
|
144
|
+
const handleChange = ({ target: { value: newValue } }) => onChange(newValue === "" ? options.emptyValue : newValue);
|
|
145
|
+
const handleBlur = ({ target }) => onBlur(id, target && target.value);
|
|
146
|
+
const handleFocus = ({ target }) => onFocus(id, target && target.value);
|
|
147
|
+
const handleClear = react.useCallback(
|
|
148
148
|
(e) => {
|
|
149
149
|
e.preventDefault();
|
|
150
150
|
e.stopPropagation();
|
|
@@ -167,13 +167,13 @@
|
|
|
167
167
|
list: schema.examples ? utils.examplesId(id) : void 0,
|
|
168
168
|
...inputProps,
|
|
169
169
|
value: value || value === 0 ? value : "",
|
|
170
|
-
onChange: onChangeOverride ||
|
|
171
|
-
onBlur:
|
|
172
|
-
onFocus:
|
|
170
|
+
onChange: onChangeOverride || handleChange,
|
|
171
|
+
onBlur: handleBlur,
|
|
172
|
+
onFocus: handleFocus,
|
|
173
173
|
"aria-describedby": utils.ariaDescribedByIds(id, !!schema.examples)
|
|
174
174
|
}
|
|
175
175
|
),
|
|
176
|
-
options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsxRuntime.jsx(ClearButton2, { registry, onClick:
|
|
176
|
+
options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsxRuntime.jsx(ClearButton2, { registry, onClick: handleClear }),
|
|
177
177
|
children,
|
|
178
178
|
/* @__PURE__ */ jsxRuntime.jsx(core.SchemaExamples, { id, schema })
|
|
179
179
|
] });
|
|
@@ -191,9 +191,10 @@
|
|
|
191
191
|
const { translateString } = registry;
|
|
192
192
|
return /* @__PURE__ */ jsxRuntime.jsxs(Card, { border: "danger", className: "mb-4", children: [
|
|
193
193
|
/* @__PURE__ */ jsxRuntime.jsx(Card.Header, { className: "alert-danger", children: translateString(utils.TranslatableString.ErrorsLabel) }),
|
|
194
|
-
/* @__PURE__ */ jsxRuntime.jsx(Card.Body, { className: "p-0", children: /* @__PURE__ */ jsxRuntime.jsx(ListGroup, { children: errors.map((error, i) =>
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
/* @__PURE__ */ jsxRuntime.jsx(Card.Body, { className: "p-0", children: /* @__PURE__ */ jsxRuntime.jsx(ListGroup, { children: errors.map((error, i) => (
|
|
195
|
+
// oxlint-disable-next-line react/no-array-index-key
|
|
196
|
+
/* @__PURE__ */ jsxRuntime.jsx(ListGroup.Item, { className: "border-0", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: error.stack }) }, i)
|
|
197
|
+
)) }) })
|
|
197
198
|
] });
|
|
198
199
|
}
|
|
199
200
|
function FieldErrorTemplate(props) {
|
|
@@ -202,9 +203,10 @@
|
|
|
202
203
|
return null;
|
|
203
204
|
}
|
|
204
205
|
const id = utils.errorId(fieldPathId);
|
|
205
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ListGroup, { as: "ul", id, children: errors.map((error, i) =>
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ListGroup, { as: "ul", id, children: errors.map((error, i) => (
|
|
207
|
+
// oxlint-disable-next-line react/no-array-index-key
|
|
208
|
+
/* @__PURE__ */ jsxRuntime.jsx(ListGroup.Item, { as: "li", className: "border-0 m-0 p-0", children: /* @__PURE__ */ jsxRuntime.jsx("small", { className: "m-0 text-danger", children: error }) }, i)
|
|
209
|
+
)) });
|
|
208
210
|
}
|
|
209
211
|
function FieldHelpTemplate(props) {
|
|
210
212
|
const { fieldPathId, help, uiSchema, registry, hasErrors } = props;
|
|
@@ -284,29 +286,34 @@
|
|
|
284
286
|
}
|
|
285
287
|
return /* @__PURE__ */ jsxRuntime.jsx(Row2, { ...rest, children });
|
|
286
288
|
}
|
|
287
|
-
function
|
|
289
|
+
function IconButtonFn(props) {
|
|
288
290
|
const { icon, iconType, className, uiSchema, registry, ...otherProps } = props;
|
|
289
291
|
return /* @__PURE__ */ jsxRuntime.jsx(Button, { ...otherProps, variant: props.variant || "light", size: "sm", children: icon });
|
|
290
292
|
}
|
|
291
|
-
|
|
293
|
+
var IconButton = react.memo(IconButtonFn);
|
|
294
|
+
var IconButton_default = IconButton;
|
|
295
|
+
function CopyButtonFn(props) {
|
|
292
296
|
const {
|
|
293
297
|
registry: { translateString }
|
|
294
298
|
} = props;
|
|
295
299
|
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.CopyButton), ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(IoIosCopy.IoIosCopy, {}) });
|
|
296
300
|
}
|
|
297
|
-
|
|
301
|
+
var CopyButton = react.memo(CopyButtonFn);
|
|
302
|
+
function MoveDownButtonFn(props) {
|
|
298
303
|
const {
|
|
299
304
|
registry: { translateString }
|
|
300
305
|
} = props;
|
|
301
306
|
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.MoveDownButton), ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(AiOutlineArrowDown.AiOutlineArrowDown, {}) });
|
|
302
307
|
}
|
|
303
|
-
|
|
308
|
+
var MoveDownButton = react.memo(MoveDownButtonFn);
|
|
309
|
+
function MoveUpButtonFn(props) {
|
|
304
310
|
const {
|
|
305
311
|
registry: { translateString }
|
|
306
312
|
} = props;
|
|
307
313
|
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.MoveUpButton), ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(AiOutlineArrowUp.AiOutlineArrowUp, {}) });
|
|
308
314
|
}
|
|
309
|
-
|
|
315
|
+
var MoveUpButton = react.memo(MoveUpButtonFn);
|
|
316
|
+
function RemoveButtonFn(props) {
|
|
310
317
|
const {
|
|
311
318
|
registry: { translateString }
|
|
312
319
|
} = props;
|
|
@@ -320,12 +327,14 @@
|
|
|
320
327
|
}
|
|
321
328
|
);
|
|
322
329
|
}
|
|
323
|
-
|
|
330
|
+
var RemoveButton = react.memo(RemoveButtonFn);
|
|
331
|
+
function ClearButtonFn(props) {
|
|
324
332
|
const {
|
|
325
333
|
registry: { translateString }
|
|
326
334
|
} = props;
|
|
327
335
|
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.ClearButton), ...props, icon: /* @__PURE__ */ jsxRuntime.jsx(IoMdClose.IoMdClose, {}) });
|
|
328
336
|
}
|
|
337
|
+
var ClearButton = react.memo(ClearButtonFn);
|
|
329
338
|
function MultiSchemaFieldTemplate({ selector, optionSchemaField }) {
|
|
330
339
|
return /* @__PURE__ */ jsxRuntime.jsxs(Card, { style: { marginBottom: "1rem" }, children: [
|
|
331
340
|
/* @__PURE__ */ jsxRuntime.jsx(Card.Body, { children: selector }),
|
|
@@ -383,10 +392,10 @@
|
|
|
383
392
|
),
|
|
384
393
|
/* @__PURE__ */ jsxRuntime.jsxs(Container, { fluid: true, className: "p-0", children: [
|
|
385
394
|
!showOptionalDataControlInTitle ? optionalDataControl : void 0,
|
|
386
|
-
properties.map((element
|
|
395
|
+
properties.map((element) => /* @__PURE__ */ jsxRuntime.jsx(Row2, { style: { marginBottom: "10px" }, className: element.hidden ? "d-none" : void 0, children: /* @__PURE__ */ jsxRuntime.jsxs(Col2, { xs: 12, children: [
|
|
387
396
|
" ",
|
|
388
397
|
element.content
|
|
389
|
-
] }) },
|
|
398
|
+
] }) }, element.name)),
|
|
390
399
|
utils.canExpand(schema, uiSchema, formData) ? /* @__PURE__ */ jsxRuntime.jsx(Row2, { children: /* @__PURE__ */ jsxRuntime.jsx(Col2, { xs: { offset: 11, span: 1 }, className: "py-0.5", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
391
400
|
AddButton2,
|
|
392
401
|
{
|
|
@@ -405,7 +414,7 @@
|
|
|
405
414
|
const { id, registry, label, onAddClick, onRemoveClick } = props;
|
|
406
415
|
if (onAddClick) {
|
|
407
416
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
408
|
-
|
|
417
|
+
IconButton_default,
|
|
409
418
|
{
|
|
410
419
|
id,
|
|
411
420
|
registry,
|
|
@@ -417,7 +426,8 @@
|
|
|
417
426
|
variant: "secondary"
|
|
418
427
|
}
|
|
419
428
|
);
|
|
420
|
-
}
|
|
429
|
+
}
|
|
430
|
+
if (onRemoveClick) {
|
|
421
431
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
422
432
|
RemoveButton,
|
|
423
433
|
{
|
|
@@ -565,18 +575,18 @@
|
|
|
565
575
|
const { enumOptions, enumDisabled, inline, emptyValue } = options;
|
|
566
576
|
const optionValueFormat = utils.getOptionValueFormat(options);
|
|
567
577
|
const checkboxesValues = Array.isArray(value) ? value : [value];
|
|
568
|
-
const
|
|
578
|
+
const handleChange = (index) => ({ target: { checked } }) => {
|
|
569
579
|
if (checked) {
|
|
570
580
|
onChange(utils.enumOptionsSelectValue(index, checkboxesValues, enumOptions));
|
|
571
581
|
} else {
|
|
572
582
|
onChange(utils.enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
|
|
573
583
|
}
|
|
574
584
|
};
|
|
575
|
-
const
|
|
576
|
-
const
|
|
585
|
+
const handleBlur = ({ target }) => onBlur(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
586
|
+
const handleFocus = ({ target }) => onFocus(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
577
587
|
return /* @__PURE__ */ jsxRuntime.jsx(Form3.Group, { children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
|
|
578
588
|
const checked = utils.enumOptionsIsSelected(option.value, checkboxesValues);
|
|
579
|
-
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.
|
|
589
|
+
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);
|
|
580
590
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
581
591
|
Form3.Check,
|
|
582
592
|
{
|
|
@@ -589,9 +599,9 @@
|
|
|
589
599
|
name: htmlName || id,
|
|
590
600
|
label: option.label,
|
|
591
601
|
autoFocus: autofocus && index === 0,
|
|
592
|
-
onChange:
|
|
593
|
-
onBlur:
|
|
594
|
-
onFocus:
|
|
602
|
+
onChange: handleChange(index),
|
|
603
|
+
onBlur: handleBlur,
|
|
604
|
+
onFocus: handleFocus,
|
|
595
605
|
disabled: disabled || itemDisabled || readonly,
|
|
596
606
|
"aria-describedby": utils.ariaDescribedByIds(id)
|
|
597
607
|
},
|
|
@@ -623,9 +633,9 @@
|
|
|
623
633
|
registry,
|
|
624
634
|
options
|
|
625
635
|
);
|
|
626
|
-
const
|
|
627
|
-
const
|
|
628
|
-
const
|
|
636
|
+
const handleChange = ({ target: { checked } }) => onChange(checked);
|
|
637
|
+
const handleBlur = ({ target }) => onBlur(id, target && target.checked);
|
|
638
|
+
const handleFocus = ({ target }) => onFocus(id, target && target.checked);
|
|
629
639
|
const description = options.description || schema.description;
|
|
630
640
|
return /* @__PURE__ */ jsxRuntime.jsxs(Form3.Group, { className: disabled || readonly ? "disabled" : "", "aria-describedby": utils.ariaDescribedByIds(id), children: [
|
|
631
641
|
!hideLabel && description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -648,10 +658,10 @@
|
|
|
648
658
|
required,
|
|
649
659
|
disabled: disabled || readonly,
|
|
650
660
|
autoFocus: autofocus,
|
|
651
|
-
onChange:
|
|
661
|
+
onChange: handleChange,
|
|
652
662
|
type: "checkbox",
|
|
653
|
-
onBlur:
|
|
654
|
-
onFocus:
|
|
663
|
+
onBlur: handleBlur,
|
|
664
|
+
onFocus: handleFocus
|
|
655
665
|
}
|
|
656
666
|
)
|
|
657
667
|
] });
|
|
@@ -670,12 +680,12 @@
|
|
|
670
680
|
}) {
|
|
671
681
|
const { enumOptions, enumDisabled, emptyValue } = options;
|
|
672
682
|
const optionValueFormat = utils.getOptionValueFormat(options);
|
|
673
|
-
const
|
|
674
|
-
const
|
|
675
|
-
const
|
|
683
|
+
const handleChange = ({ target: { value: enumValue } }) => onChange(utils.enumOptionValueDecoder(enumValue, enumOptions, optionValueFormat, emptyValue));
|
|
684
|
+
const handleBlur = ({ target }) => onBlur(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
685
|
+
const handleFocus = ({ target }) => onFocus(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
676
686
|
const inline = Boolean(options && options.inline);
|
|
677
687
|
return /* @__PURE__ */ jsxRuntime.jsx(Form3.Group, { className: "mb-0", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
|
|
678
|
-
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.
|
|
688
|
+
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);
|
|
679
689
|
const checked = utils.enumOptionsIsSelected(option.value, value);
|
|
680
690
|
const radio = /* @__PURE__ */ jsxRuntime.jsx(
|
|
681
691
|
Form3.Check,
|
|
@@ -689,29 +699,29 @@
|
|
|
689
699
|
checked,
|
|
690
700
|
required,
|
|
691
701
|
value: utils.enumOptionValueEncoder(option.value, index, optionValueFormat),
|
|
692
|
-
onChange:
|
|
693
|
-
onBlur:
|
|
694
|
-
onFocus:
|
|
702
|
+
onChange: handleChange,
|
|
703
|
+
onBlur: handleBlur,
|
|
704
|
+
onFocus: handleFocus,
|
|
695
705
|
"aria-describedby": utils.ariaDescribedByIds(id)
|
|
696
706
|
},
|
|
697
|
-
|
|
707
|
+
String(option.value)
|
|
698
708
|
);
|
|
699
709
|
return radio;
|
|
700
710
|
}) });
|
|
701
711
|
}
|
|
702
712
|
function RangeWidget(props) {
|
|
703
713
|
const { id, value, disabled, onChange, onBlur, onFocus, schema } = props;
|
|
704
|
-
const
|
|
705
|
-
const
|
|
706
|
-
const
|
|
714
|
+
const handleChange = ({ target: { value: newValue } }) => onChange(newValue);
|
|
715
|
+
const handleBlur = ({ target: { value: newValue } }) => onBlur(id, newValue);
|
|
716
|
+
const handleFocus = ({ target: { value: newValue } }) => onFocus(id, newValue);
|
|
707
717
|
const rangeProps = {
|
|
708
718
|
value,
|
|
709
719
|
id,
|
|
710
720
|
name: id,
|
|
711
721
|
disabled,
|
|
712
|
-
onChange:
|
|
713
|
-
onBlur:
|
|
714
|
-
onFocus:
|
|
722
|
+
onChange: handleChange,
|
|
723
|
+
onBlur: handleBlur,
|
|
724
|
+
onFocus: handleFocus,
|
|
715
725
|
...utils.rangeSpec(schema)
|
|
716
726
|
};
|
|
717
727
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -739,12 +749,11 @@
|
|
|
739
749
|
const { enumOptions, enumDisabled, emptyValue: optEmptyValue } = options;
|
|
740
750
|
const emptyValue = multiple ? [] : "";
|
|
741
751
|
const optionValueFormat = utils.getOptionValueFormat(options);
|
|
742
|
-
function getValue(event,
|
|
743
|
-
if (
|
|
752
|
+
function getValue(event, isMultiple) {
|
|
753
|
+
if (isMultiple) {
|
|
744
754
|
return [].slice.call(event.target.options).filter((o) => o.selected).map((o) => o.value);
|
|
745
|
-
} else {
|
|
746
|
-
return event.target.value;
|
|
747
755
|
}
|
|
756
|
+
return event.target.value;
|
|
748
757
|
}
|
|
749
758
|
const selectValue = utils.enumOptionSelectedValue(value, enumOptions, !!multiple, optionValueFormat, emptyValue);
|
|
750
759
|
const showPlaceholderOption = !multiple && schema.default === void 0;
|
|
@@ -774,9 +783,18 @@
|
|
|
774
783
|
"aria-describedby": utils.ariaDescribedByIds(id),
|
|
775
784
|
children: [
|
|
776
785
|
showPlaceholderOption && /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", children: placeholder }),
|
|
777
|
-
enumOptions
|
|
778
|
-
const
|
|
779
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
786
|
+
enumOptions?.map(({ value: enumValue, label: enumLabel }, i) => {
|
|
787
|
+
const isDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(enumValue);
|
|
788
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
789
|
+
"option",
|
|
790
|
+
{
|
|
791
|
+
id: enumLabel,
|
|
792
|
+
value: utils.enumOptionValueEncoder(enumValue, i, optionValueFormat),
|
|
793
|
+
disabled: isDisabled,
|
|
794
|
+
children: enumLabel
|
|
795
|
+
},
|
|
796
|
+
String(enumValue)
|
|
797
|
+
);
|
|
780
798
|
})
|
|
781
799
|
]
|
|
782
800
|
}
|
|
@@ -796,9 +814,9 @@
|
|
|
796
814
|
onChange,
|
|
797
815
|
options
|
|
798
816
|
}) {
|
|
799
|
-
const
|
|
800
|
-
const
|
|
801
|
-
const
|
|
817
|
+
const handleChange = ({ target: { value: newValue } }) => onChange(newValue === "" ? options.emptyValue : newValue);
|
|
818
|
+
const handleBlur = ({ target }) => onBlur(id, target && target.value);
|
|
819
|
+
const handleFocus = ({ target }) => onFocus(id, target && target.value);
|
|
802
820
|
return /* @__PURE__ */ jsxRuntime.jsx(InputGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
803
821
|
FormControl,
|
|
804
822
|
{
|
|
@@ -812,9 +830,9 @@
|
|
|
812
830
|
required,
|
|
813
831
|
autoFocus: autofocus,
|
|
814
832
|
rows: options.rows || 5,
|
|
815
|
-
onChange:
|
|
816
|
-
onBlur:
|
|
817
|
-
onFocus:
|
|
833
|
+
onChange: handleChange,
|
|
834
|
+
onBlur: handleBlur,
|
|
835
|
+
onFocus: handleFocus,
|
|
818
836
|
"aria-describedby": utils.ariaDescribedByIds(id)
|
|
819
837
|
}
|
|
820
838
|
) });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
export default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ uiSchema, registry, ...props }: IconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddButton.js","sourceRoot":"","sources":["../../src/AddButton/AddButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"AddButton.js","sourceRoot":"","sources":["../../src/AddButton/AddButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAoF,EACnH,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACiB;IACzB,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IACrC,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,aAAa,CAAC,KACpD,KAAK,EACT,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,SAAS,EAAE,QAAQ,KAAK,CAAC,SAAS,EAAE,YAEpC,KAAC,MAAM,KAAG,GACH,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
export default function ArrayFieldItemTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldItemTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getTemplate, getUiOptions
|
|
2
|
+
import { getTemplate, getUiOptions } from '@rjsf/utils';
|
|
3
3
|
import Col from 'react-bootstrap/Col';
|
|
4
4
|
import Row from 'react-bootstrap/Row';
|
|
5
5
|
export default function ArrayFieldItemTemplate(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayFieldItemTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ArrayFieldItemTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAEtC,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAI5C,KAA2C;IAC3C,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACvG,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,6BAA6B,GAAG,WAAW,CAC/C,+BAA+B,EAC/B,QAAQ,EACR,SAAS,CACV,CAAC;IACF,MAAM,QAAQ,GAAkB;QAC9B,IAAI,EAAE,CAAC;QACP,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,MAAM;KACnB,CAAC;IACF,MAAM,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC;IACtD,OAAO,CACL,wBACE,MAAC,GAAG,IAAC,SAAS,EAAC,iCAAiC,aAC9C,KAAC,GAAG,IAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,YACvB,QAAQ,GACL,EACN,KAAC,GAAG,IAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,YACjE,UAAU,IAAI,CACb,cAAK,SAAS,EAAC,iBAAiB,YAC9B,KAAC,6BAA6B,OAAK,YAAY,EAAE,KAAK,EAAE,QAAQ,GAAI,GAChE,CACP,GACG,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
export default function ArrayFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { buttonId, getTemplate, getUiOptions
|
|
2
|
+
import { buttonId, getTemplate, getUiOptions } from '@rjsf/utils';
|
|
3
3
|
import Col from 'react-bootstrap/Col';
|
|
4
4
|
import Container from 'react-bootstrap/Container';
|
|
5
5
|
import Row from 'react-bootstrap/Row';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayFieldTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ArrayFieldTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,GAAG,MAAM,qBAAqB,CAAC;AACtC,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAEtC,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,KAAuC;IACvC,MAAM,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,GACN,GAAG,KAAK,CAAC;IACV,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,6BAA6B,GAAG,WAAW,CAC/C,+BAA+B,EAC/B,QAAQ,EACR,SAAS,CACV,CAAC;IACF,MAAM,uBAAuB,GAAG,WAAW,CACzC,yBAAyB,EACzB,QAAQ,EACR,SAAS,CACV,CAAC;IACF,MAAM,8BAA8B,GAAG,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC;IAC9D,sDAAsD;IACtD,MAAM,EACJ,eAAe,EAAE,EAAE,SAAS,EAAE,GAC/B,GAAG,QAAQ,CAAC,SAAS,CAAC;IACvB,OAAO,CACL,wBACE,KAAC,GAAG,IAAC,SAAS,EAAC,SAAS,YACtB,MAAC,GAAG,IAAC,SAAS,EAAC,SAAS,aACtB,KAAC,uBAAuB,IACtB,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,KAAK,EAC/B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,mBAAmB,EAAE,8BAA8B,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,GACrF,EACF,KAAC,6BAA6B,IAC5B,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,SAAS,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,EACxD,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,EACF,MAAC,SAAS,IAAC,KAAK,QAA4C,SAAS,EAAC,SAAS,aAC5E,CAAC,8BAA8B,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,EACjE,KAAK,EACL,MAAM,IAAI,CACT,KAAC,SAAS,IAAC,SAAS,EAAC,EAAE,YACrB,MAAC,GAAG,IAAC,SAAS,EAAC,MAAM,aACnB,KAAC,GAAG,IAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAI,EAC9B,KAAC,GAAG,IAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAC,MAAM,YACxC,KAAC,SAAS,IACR,EAAE,EAAE,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,EAChC,SAAS,EAAC,qBAAqB,EAC/B,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,GACE,IACF,GACI,CACb,KAnBmB,mBAAmB,WAAW,CAAC,GAAG,EAAE,CAoB9C,IACR,GACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
export default function BaseInputTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ id, htmlName, placeholder, required, readonly, disabled, type, value, onChange, onChangeOverride, onBlur, onFocus, autofocus, options, schema, rawErrors, children, extraProps, registry, }: BaseInputTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { SchemaExamples } from '@rjsf/core';
|
|
4
|
-
import { ariaDescribedByIds, examplesId, getInputProps
|
|
4
|
+
import { ariaDescribedByIds, examplesId, getInputProps } from '@rjsf/utils';
|
|
5
5
|
import Form from 'react-bootstrap/Form';
|
|
6
6
|
export default function BaseInputTemplate({ id, htmlName, placeholder, required, readonly, disabled, type, value, onChange, onChangeOverride, onBlur, onFocus, autofocus, options, schema, rawErrors = [], children, extraProps, registry, }) {
|
|
7
7
|
const { ClearButton } = registry.templates.ButtonTemplates;
|
|
@@ -9,16 +9,16 @@ export default function BaseInputTemplate({ id, htmlName, placeholder, required,
|
|
|
9
9
|
...extraProps,
|
|
10
10
|
...getInputProps(schema, type, options),
|
|
11
11
|
};
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
12
|
+
const handleChange = ({ target: { value: newValue } }) => onChange(newValue === '' ? options.emptyValue : newValue);
|
|
13
|
+
const handleBlur = ({ target }) => onBlur(id, target && target.value);
|
|
14
|
+
const handleFocus = ({ target }) => onFocus(id, target && target.value);
|
|
15
|
+
const handleClear = useCallback((e) => {
|
|
16
16
|
var _a;
|
|
17
17
|
e.preventDefault();
|
|
18
18
|
e.stopPropagation();
|
|
19
19
|
onChange((_a = options.emptyValue) !== null && _a !== void 0 ? _a : '');
|
|
20
20
|
}, [onChange, options.emptyValue]);
|
|
21
21
|
// const classNames = [rawErrors.length > 0 ? "is-invalid" : "", type === 'file' ? 'custom-file-label': ""]
|
|
22
|
-
return (_jsxs(_Fragment, { children: [_jsx(Form.Control, { id: id, name: htmlName || id, placeholder: placeholder, autoFocus: autofocus, required: required, disabled: disabled, readOnly: readonly, className: rawErrors.length > 0 ? 'is-invalid' : '', list: schema.examples ? examplesId(id) : undefined, ...inputProps, value: value || value === 0 ? value : '', onChange: onChangeOverride ||
|
|
22
|
+
return (_jsxs(_Fragment, { children: [_jsx(Form.Control, { id: id, name: htmlName || id, placeholder: placeholder, autoFocus: autofocus, required: required, disabled: disabled, readOnly: readonly, className: rawErrors.length > 0 ? 'is-invalid' : '', list: schema.examples ? examplesId(id) : undefined, ...inputProps, value: value || value === 0 ? value : '', onChange: onChangeOverride || handleChange, onBlur: handleBlur, onFocus: handleFocus, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }), options.allowClearTextInputs && !readonly && !disabled && value && (_jsx(ClearButton, { registry: registry, onClick: handleClear })), children, _jsx(SchemaExamples, { id: id, schema: schema })] }));
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=BaseInputTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WidgetProps, StrictRJSFSchema, RJSFSchema, FormContextType } from '@rjsf/utils';
|
|
1
|
+
import type { WidgetProps, StrictRJSFSchema, RJSFSchema, FormContextType } from '@rjsf/utils';
|
|
2
2
|
export default function CheckboxWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ariaDescribedByIds, descriptionId, getTemplate, labelValue, schemaRequiresTrueValue
|
|
2
|
+
import { ariaDescribedByIds, descriptionId, getTemplate, labelValue, schemaRequiresTrueValue } from '@rjsf/utils';
|
|
3
3
|
import Form from 'react-bootstrap/Form';
|
|
4
4
|
export default function CheckboxWidget(props) {
|
|
5
5
|
const { id, htmlName, value, disabled, readonly, label, hideLabel, schema, autofocus, options, onChange, onBlur, onFocus, registry, uiSchema, } = props;
|
|
@@ -8,10 +8,10 @@ export default function CheckboxWidget(props) {
|
|
|
8
8
|
// "const" or "enum" keywords
|
|
9
9
|
const required = schemaRequiresTrueValue(schema);
|
|
10
10
|
const DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, options);
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
11
|
+
const handleChange = ({ target: { checked } }) => onChange(checked);
|
|
12
|
+
const handleBlur = ({ target }) => onBlur(id, target && target.checked);
|
|
13
|
+
const handleFocus = ({ target }) => onFocus(id, target && target.checked);
|
|
14
14
|
const description = options.description || schema.description;
|
|
15
|
-
return (_jsxs(Form.Group, { className: disabled || readonly ? 'disabled' : '', "aria-describedby": ariaDescribedByIds(id), children: [!hideLabel && description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(id), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsx(Form.Check, { id: id, name: htmlName || id, label: labelValue(label, hideLabel || !label), checked: typeof value === 'undefined' ? false : value, required: required, disabled: disabled || readonly, autoFocus: autofocus, onChange:
|
|
15
|
+
return (_jsxs(Form.Group, { className: disabled || readonly ? 'disabled' : '', "aria-describedby": ariaDescribedByIds(id), children: [!hideLabel && description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(id), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsx(Form.Check, { id: id, name: htmlName || id, label: labelValue(label, hideLabel || !label), checked: typeof value === 'undefined' ? false : value, required: required, disabled: disabled || readonly, autoFocus: autofocus, onChange: handleChange, type: 'checkbox', onBlur: handleBlur, onFocus: handleFocus })] }));
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=CheckboxWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxWidget.js","sourceRoot":"","sources":["../../src/CheckboxWidget/CheckboxWidget.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CheckboxWidget.js","sourceRoot":"","sources":["../../src/CheckboxWidget/CheckboxWidget.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAClH,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,cAAc,CAIpC,KAA2B;IAC3B,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,8EAA8E;IAC9E,yEAAyE;IACzE,6BAA6B;IAC7B,MAAM,QAAQ,GAAG,uBAAuB,CAAI,MAAM,CAAC,CAAC;IACpD,MAAM,wBAAwB,GAAG,WAAW,CAC1C,0BAA0B,EAC1B,QAAQ,EACR,OAAO,CACR,CAAC;IAEF,MAAM,YAAY,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAgC,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAClG,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;IACtG,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;IAExG,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,CAAC;IAC9D,OAAO,CACL,MAAC,IAAI,CAAC,KAAK,IAAC,SAAS,EAAE,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,sBAAoB,kBAAkB,CAAC,EAAE,CAAC,aACpG,CAAC,SAAS,IAAI,WAAW,IAAI,CAC5B,KAAC,wBAAwB,IACvB,EAAE,EAAE,aAAa,CAAC,EAAE,CAAC,EACrB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,CACH,EACD,KAAC,IAAI,CAAC,KAAK,IACT,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,QAAQ,IAAI,EAAE,EACpB,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,SAAS,IAAI,CAAC,KAAK,CAAC,EAC7C,OAAO,EAAE,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EACrD,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAC,UAAU,EACf,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,WAAW,GACpB,IACS,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
|
|
1
|
+
import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
|
|
2
2
|
export default function CheckboxesWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ id, htmlName, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,7 @@ export default function CheckboxesWidget({ id, htmlName, disabled, options, valu
|
|
|
5
5
|
const { enumOptions, enumDisabled, inline, emptyValue } = options;
|
|
6
6
|
const optionValueFormat = getOptionValueFormat(options);
|
|
7
7
|
const checkboxesValues = Array.isArray(value) ? value : [value];
|
|
8
|
-
const
|
|
8
|
+
const handleChange = (index) => ({ target: { checked } }) => {
|
|
9
9
|
if (checked) {
|
|
10
10
|
onChange(enumOptionsSelectValue(index, checkboxesValues, enumOptions));
|
|
11
11
|
}
|
|
@@ -13,13 +13,13 @@ export default function CheckboxesWidget({ id, htmlName, disabled, options, valu
|
|
|
13
13
|
onChange(enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
const
|
|
17
|
-
const
|
|
16
|
+
const handleBlur = ({ target }) => onBlur(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
17
|
+
const handleFocus = ({ target }) => onFocus(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
18
18
|
return (_jsx(Form.Group, { children: Array.isArray(enumOptions) &&
|
|
19
19
|
enumOptions.map((option, index) => {
|
|
20
20
|
const checked = enumOptionsIsSelected(option.value, checkboxesValues);
|
|
21
|
-
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.
|
|
22
|
-
return (_jsx(Form.Check, { inline: inline, required: required, checked: checked, className: 'bg-transparent border-0', type: 'checkbox', id: optionId(id, index), name: htmlName || id, label: option.label, autoFocus: autofocus && index === 0, onChange:
|
|
21
|
+
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);
|
|
22
|
+
return (_jsx(Form.Check, { inline: inline, required: required, checked: checked, className: 'bg-transparent border-0', type: 'checkbox', id: optionId(id, index), name: htmlName || id, label: option.label, autoFocus: autofocus && index === 0, onChange: handleChange(index), onBlur: handleBlur, onFocus: handleFocus, disabled: disabled || itemDisabled || readonly, "aria-describedby": ariaDescribedByIds(id) }, option.value));
|
|
23
23
|
}) }));
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=CheckboxesWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxesWidget.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/CheckboxesWidget.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CheckboxesWidget.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/CheckboxesWidget.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,QAAQ,GACT,MAAM,aAAa,CAAC;AACrB,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAItC,EACA,EAAE,EACF,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,GACc;IACrB,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAClE,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAEhE,MAAM,YAAY,GAChB,CAAC,KAAa,EAAE,EAAE,CAClB,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAiC,EAAE,EAAE;QACzD,IAAI,OAAO,EAAE,CAAC;YACZ,QAAQ,CAAC,sBAAsB,CAAI,KAAK,EAAE,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC;QAC5E,CAAC;aAAM,CAAC;YACN,QAAQ,CAAC,wBAAwB,CAAI,KAAK,EAAE,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC,CAAC;IAEJ,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAC9D,MAAM,CAAC,EAAE,EAAE,sBAAsB,CAAI,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC;IAC5G,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAC/D,OAAO,CAAC,EAAE,EAAE,sBAAsB,CAAI,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7G,OAAO,CACL,KAAC,IAAI,CAAC,KAAK,cACR,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;YACzB,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAa,EAAE,EAAE;gBACxC,MAAM,OAAO,GAAG,qBAAqB,CAAI,MAAM,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;gBACzE,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAExF,OAAO,CACL,KAAC,IAAI,CAAC,KAAK,IAET,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,yBAAyB,EACnC,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,EACvB,IAAI,EAAE,QAAQ,IAAI,EAAE,EACpB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,SAAS,EAAE,SAAS,IAAI,KAAK,KAAK,CAAC,EACnC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,EAC7B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,QAAQ,IAAI,YAAY,IAAI,QAAQ,sBAC5B,kBAAkB,CAAC,EAAE,CAAC,IAdnC,MAAM,CAAC,KAAK,CAejB,CACH,CAAC;YACJ,CAAC,CAAC,GACO,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
/** The `DescriptionField` is the template to use to render the description of a field
|
|
3
3
|
*
|
|
4
4
|
* @param props - The `DescriptionFieldProps` for this component
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
export default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ errors, registry, }: ErrorListProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,8 +4,6 @@ import Card from 'react-bootstrap/Card';
|
|
|
4
4
|
import ListGroup from 'react-bootstrap/ListGroup';
|
|
5
5
|
export default function ErrorList({ errors, registry, }) {
|
|
6
6
|
const { translateString } = registry;
|
|
7
|
-
return (_jsxs(Card, { border: 'danger', className: 'mb-4', children: [_jsx(Card.Header, { className: 'alert-danger', children: translateString(TranslatableString.ErrorsLabel) }), _jsx(Card.Body, { className: 'p-0', children: _jsx(ListGroup, { children: errors.map((error, i) => {
|
|
8
|
-
return (_jsx(ListGroup.Item, { className: 'border-0', children: _jsx("span", { children: error.stack }) }, i));
|
|
9
|
-
}) }) })] }));
|
|
7
|
+
return (_jsxs(Card, { border: 'danger', className: 'mb-4', children: [_jsx(Card.Header, { className: 'alert-danger', children: translateString(TranslatableString.ErrorsLabel) }), _jsx(Card.Body, { className: 'p-0', children: _jsx(ListGroup, { children: errors.map((error, i) => (_jsx(ListGroup.Item, { className: 'border-0', children: _jsx("span", { children: error.stack }) }, i))) }) })] }));
|
|
10
8
|
}
|
|
11
9
|
//# sourceMappingURL=ErrorList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorList.js","sourceRoot":"","sources":["../../src/ErrorList/ErrorList.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ErrorList.js","sourceRoot":"","sources":["../../src/ErrorList/ErrorList.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,IAAI,MAAM,sBAAsB,CAAC;AACxC,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAoF,EACnH,MAAM,EACN,QAAQ,GACgB;IACxB,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IACrC,OAAO,CACL,MAAC,IAAI,IAAC,MAAM,EAAC,QAAQ,EAAC,SAAS,EAAC,MAAM,aACpC,KAAC,IAAI,CAAC,MAAM,IAAC,SAAS,EAAC,cAAc,YAAE,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,GAAe,EACrG,KAAC,IAAI,CAAC,IAAI,IAAC,SAAS,EAAC,KAAK,YACxB,KAAC,SAAS,cACP,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAS,EAAE,EAAE,CAAC,CAEhC,KAAC,SAAS,CAAC,IAAI,IAAS,SAAS,EAAC,UAAU,YAC1C,yBAAO,KAAK,CAAC,KAAK,GAAQ,IADP,CAAC,CAEL,CAClB,CAAC,GACQ,GACF,IACP,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
/** The `FieldErrorTemplate` component renders the errors local to the particular field
|
|
3
3
|
*
|
|
4
4
|
* @param props - The `FieldErrorProps` for the errors being rendered
|
|
@@ -11,8 +11,6 @@ export default function FieldErrorTemplate(props) {
|
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
13
|
const id = errorId(fieldPathId);
|
|
14
|
-
return (_jsx(ListGroup, { as: 'ul', id: id, children: errors.map((error, i) => {
|
|
15
|
-
return (_jsx(ListGroup.Item, { as: 'li', className: 'border-0 m-0 p-0', children: _jsx("small", { className: 'm-0 text-danger', children: error }) }, i));
|
|
16
|
-
}) }));
|
|
14
|
+
return (_jsx(ListGroup, { as: 'ul', id: id, children: errors.map((error, i) => (_jsx(ListGroup.Item, { as: 'li', className: 'border-0 m-0 p-0', children: _jsx("small", { className: 'm-0 text-danger', children: error }) }, i))) }));
|
|
17
15
|
}
|
|
18
16
|
//# sourceMappingURL=FieldErrorTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/FieldErrorTemplate.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/FieldErrorTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,KAA+B;IAC/B,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC3C,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEhC,OAAO,CACL,KAAC,SAAS,IAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAE,EAAE,YACtB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAExB,KAAC,SAAS,CAAC,IAAI,IAAC,EAAE,EAAC,IAAI,EAAS,SAAS,EAAC,kBAAkB,YAC1D,gBAAO,SAAS,EAAC,iBAAiB,YAAE,KAAK,GAAS,IADvB,CAAC,CAEb,CAClB,CAAC,GACQ,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
/** The `FieldHelpTemplate` component renders any help desired for a field
|
|
3
3
|
*
|
|
4
4
|
* @param props - The `FieldHelpProps` to be rendered
|