@rjsf/react-bootstrap 6.0.0-beta.2 → 6.0.0-beta.20
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/README.md +4 -2
- package/dist/{index.js → index.cjs} +66 -55
- package/dist/index.cjs.map +7 -0
- package/dist/react-bootstrap.esm.js +65 -54
- package/dist/react-bootstrap.esm.js.map +4 -4
- package/dist/react-bootstrap.umd.js +20 -13
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +3 -3
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js +2 -2
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js +2 -2
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +2 -0
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js +6 -0
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js.map +1 -0
- package/lib/MultiSchemaFieldTemplate/index.d.ts +2 -0
- package/lib/MultiSchemaFieldTemplate/index.js +3 -0
- package/lib/MultiSchemaFieldTemplate/index.js.map +1 -0
- 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/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/Templates/Templates.js +2 -0
- package/lib/Templates/Templates.js.map +1 -1
- package/lib/TextareaWidget/TextareaWidget.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -16
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +5 -5
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +3 -3
- package/src/CheckboxWidget/CheckboxWidget.tsx +2 -2
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +1 -1
- package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +2 -2
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +2 -2
- package/src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx +15 -0
- package/src/MultiSchemaFieldTemplate/index.ts +2 -0
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +4 -4
- package/src/RadioWidget/RadioWidget.tsx +1 -1
- package/src/SelectWidget/SelectWidget.tsx +1 -1
- package/src/Templates/Templates.ts +2 -0
- package/src/TextareaWidget/TextareaWidget.tsx +1 -1
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +1 -1
- package/dist/index.js.map +0 -7
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
} from "@rjsf/utils";
|
|
64
64
|
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
65
65
|
function ArrayFieldTemplate(props) {
|
|
66
|
-
const { canAdd, disabled,
|
|
66
|
+
const { canAdd, disabled, fieldPathId, uiSchema, items, onAddClick, readonly, registry, required, schema, title } = props;
|
|
67
67
|
const uiOptions = getUiOptions2(uiSchema);
|
|
68
68
|
const ArrayFieldDescriptionTemplate = getTemplate2(
|
|
69
69
|
"ArrayFieldDescriptionTemplate",
|
|
@@ -87,7 +87,7 @@ function ArrayFieldTemplate(props) {
|
|
|
87
87
|
/* @__PURE__ */ jsx3(
|
|
88
88
|
ArrayFieldTitleTemplate,
|
|
89
89
|
{
|
|
90
|
-
|
|
90
|
+
fieldPathId,
|
|
91
91
|
title: uiOptions.title || title,
|
|
92
92
|
schema,
|
|
93
93
|
uiSchema,
|
|
@@ -98,7 +98,7 @@ function ArrayFieldTemplate(props) {
|
|
|
98
98
|
/* @__PURE__ */ jsx3(
|
|
99
99
|
ArrayFieldDescriptionTemplate,
|
|
100
100
|
{
|
|
101
|
-
|
|
101
|
+
fieldPathId,
|
|
102
102
|
description: uiOptions.description || schema.description,
|
|
103
103
|
schema,
|
|
104
104
|
uiSchema,
|
|
@@ -112,7 +112,7 @@ function ArrayFieldTemplate(props) {
|
|
|
112
112
|
/* @__PURE__ */ jsx3(Col2, { xs: 3, className: "py-4 col-lg-3 col-3", children: /* @__PURE__ */ jsx3(
|
|
113
113
|
AddButton2,
|
|
114
114
|
{
|
|
115
|
-
id: buttonId(
|
|
115
|
+
id: buttonId(fieldPathId, "add"),
|
|
116
116
|
className: "rjsf-array-item-add",
|
|
117
117
|
onClick: onAddClick,
|
|
118
118
|
disabled: disabled || readonly,
|
|
@@ -121,7 +121,7 @@ function ArrayFieldTemplate(props) {
|
|
|
121
121
|
}
|
|
122
122
|
) })
|
|
123
123
|
] }) })
|
|
124
|
-
] }, `array-item-list-${
|
|
124
|
+
] }, `array-item-list-${fieldPathId.$id}`)
|
|
125
125
|
] }) }) });
|
|
126
126
|
}
|
|
127
127
|
|
|
@@ -265,11 +265,11 @@ import { errorId } from "@rjsf/utils";
|
|
|
265
265
|
import ListGroup2 from "react-bootstrap/ListGroup";
|
|
266
266
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
267
267
|
function FieldErrorTemplate(props) {
|
|
268
|
-
const { errors = [],
|
|
268
|
+
const { errors = [], fieldPathId } = props;
|
|
269
269
|
if (errors.length === 0) {
|
|
270
270
|
return null;
|
|
271
271
|
}
|
|
272
|
-
const id = errorId(
|
|
272
|
+
const id = errorId(fieldPathId);
|
|
273
273
|
return /* @__PURE__ */ jsx8(ListGroup2, { as: "ul", id, children: errors.map((error, i) => {
|
|
274
274
|
return /* @__PURE__ */ jsx8(ListGroup2.Item, { as: "li", className: "border-0 m-0 p-0", children: /* @__PURE__ */ jsx8("small", { className: "m-0 text-danger", children: error }) }, i);
|
|
275
275
|
}) });
|
|
@@ -280,11 +280,11 @@ import { helpId } from "@rjsf/utils";
|
|
|
280
280
|
import Form2 from "react-bootstrap/Form";
|
|
281
281
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
282
282
|
function FieldHelpTemplate(props) {
|
|
283
|
-
const {
|
|
283
|
+
const { fieldPathId, help, hasErrors } = props;
|
|
284
284
|
if (!help) {
|
|
285
285
|
return null;
|
|
286
286
|
}
|
|
287
|
-
const id = helpId(
|
|
287
|
+
const id = helpId(fieldPathId);
|
|
288
288
|
return /* @__PURE__ */ jsx9(Form2.Text, { className: hasErrors ? "text-danger" : "text-muted", id, children: help });
|
|
289
289
|
}
|
|
290
290
|
|
|
@@ -367,6 +367,16 @@ function GridTemplate(props) {
|
|
|
367
367
|
return /* @__PURE__ */ jsx11(Row3, { ...rest, children });
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
+
// src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx
|
|
371
|
+
import Card2 from "react-bootstrap/Card";
|
|
372
|
+
import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
373
|
+
function MultiSchemaFieldTemplate({ selector, optionSchemaField }) {
|
|
374
|
+
return /* @__PURE__ */ jsxs6(Card2, { style: { marginBottom: "1rem" }, children: [
|
|
375
|
+
/* @__PURE__ */ jsx12(Card2.Body, { children: selector }),
|
|
376
|
+
/* @__PURE__ */ jsx12(Card2.Body, { children: optionSchemaField })
|
|
377
|
+
] });
|
|
378
|
+
}
|
|
379
|
+
|
|
370
380
|
// src/ObjectFieldTemplate/ObjectFieldTemplate.tsx
|
|
371
381
|
import Row4 from "react-bootstrap/Row";
|
|
372
382
|
import Col4 from "react-bootstrap/Col";
|
|
@@ -379,14 +389,14 @@ import {
|
|
|
379
389
|
getUiOptions as getUiOptions4,
|
|
380
390
|
titleId
|
|
381
391
|
} from "@rjsf/utils";
|
|
382
|
-
import { Fragment as Fragment2, jsx as
|
|
392
|
+
import { Fragment as Fragment2, jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
383
393
|
function ObjectFieldTemplate({
|
|
384
394
|
description,
|
|
385
395
|
title,
|
|
386
396
|
properties,
|
|
387
397
|
required,
|
|
388
398
|
uiSchema,
|
|
389
|
-
|
|
399
|
+
fieldPathId,
|
|
390
400
|
schema,
|
|
391
401
|
formData,
|
|
392
402
|
onAddClick,
|
|
@@ -404,11 +414,11 @@ function ObjectFieldTemplate({
|
|
|
404
414
|
const {
|
|
405
415
|
ButtonTemplates: { AddButton: AddButton2 }
|
|
406
416
|
} = registry.templates;
|
|
407
|
-
return /* @__PURE__ */
|
|
408
|
-
title && /* @__PURE__ */
|
|
417
|
+
return /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
418
|
+
title && /* @__PURE__ */ jsx13(
|
|
409
419
|
TitleFieldTemplate,
|
|
410
420
|
{
|
|
411
|
-
id: titleId(
|
|
421
|
+
id: titleId(fieldPathId),
|
|
412
422
|
title,
|
|
413
423
|
required,
|
|
414
424
|
schema,
|
|
@@ -416,25 +426,25 @@ function ObjectFieldTemplate({
|
|
|
416
426
|
registry
|
|
417
427
|
}
|
|
418
428
|
),
|
|
419
|
-
description && /* @__PURE__ */
|
|
429
|
+
description && /* @__PURE__ */ jsx13(
|
|
420
430
|
DescriptionFieldTemplate,
|
|
421
431
|
{
|
|
422
|
-
id: descriptionId(
|
|
432
|
+
id: descriptionId(fieldPathId),
|
|
423
433
|
description,
|
|
424
434
|
schema,
|
|
425
435
|
uiSchema,
|
|
426
436
|
registry
|
|
427
437
|
}
|
|
428
438
|
),
|
|
429
|
-
/* @__PURE__ */
|
|
430
|
-
properties.map((element, index) => /* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ jsxs7(Container2, { fluid: true, className: "p-0", children: [
|
|
440
|
+
properties.map((element, index) => /* @__PURE__ */ jsx13(Row4, { style: { marginBottom: "10px" }, className: element.hidden ? "d-none" : void 0, children: /* @__PURE__ */ jsxs7(Col4, { xs: 12, children: [
|
|
431
441
|
" ",
|
|
432
442
|
element.content
|
|
433
443
|
] }) }, index)),
|
|
434
|
-
canExpand(schema, uiSchema, formData) ? /* @__PURE__ */
|
|
444
|
+
canExpand(schema, uiSchema, formData) ? /* @__PURE__ */ jsx13(Row4, { children: /* @__PURE__ */ jsx13(Col4, { xs: { offset: 9, span: 3 }, className: "py-4", children: /* @__PURE__ */ jsx13(
|
|
435
445
|
AddButton2,
|
|
436
446
|
{
|
|
437
|
-
id: buttonId2(
|
|
447
|
+
id: buttonId2(fieldPathId, "add"),
|
|
438
448
|
onClick: onAddClick(schema),
|
|
439
449
|
disabled: disabled || readonly,
|
|
440
450
|
className: "rjsf-object-property-expand",
|
|
@@ -449,27 +459,27 @@ function ObjectFieldTemplate({
|
|
|
449
459
|
// src/SubmitButton/SubmitButton.tsx
|
|
450
460
|
import Button3 from "react-bootstrap/Button";
|
|
451
461
|
import { getSubmitButtonOptions } from "@rjsf/utils";
|
|
452
|
-
import { jsx as
|
|
462
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
453
463
|
function SubmitButton(props) {
|
|
454
464
|
const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions(props.uiSchema);
|
|
455
465
|
if (norender) {
|
|
456
466
|
return null;
|
|
457
467
|
}
|
|
458
|
-
return /* @__PURE__ */
|
|
468
|
+
return /* @__PURE__ */ jsx14("div", { children: /* @__PURE__ */ jsx14(Button3, { variant: "primary", type: "submit", ...submitButtonProps, children: submitText }) });
|
|
459
469
|
}
|
|
460
470
|
|
|
461
471
|
// src/TitleField/TitleField.tsx
|
|
462
472
|
import { getUiOptions as getUiOptions5 } from "@rjsf/utils";
|
|
463
|
-
import { jsx as
|
|
473
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
464
474
|
function TitleField({
|
|
465
475
|
id,
|
|
466
476
|
title,
|
|
467
477
|
uiSchema
|
|
468
478
|
}) {
|
|
469
479
|
const uiOptions = getUiOptions5(uiSchema);
|
|
470
|
-
return /* @__PURE__ */
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
480
|
+
return /* @__PURE__ */ jsxs8("div", { id, className: "my-1", children: [
|
|
481
|
+
/* @__PURE__ */ jsx15("h5", { children: uiOptions.title || title }),
|
|
482
|
+
/* @__PURE__ */ jsx15("hr", { className: "border-0 bg-secondary", style: { height: "1px" } })
|
|
473
483
|
] });
|
|
474
484
|
}
|
|
475
485
|
|
|
@@ -482,7 +492,7 @@ import {
|
|
|
482
492
|
import Row5 from "react-bootstrap/Row";
|
|
483
493
|
import Col5 from "react-bootstrap/Col";
|
|
484
494
|
import Form4 from "react-bootstrap/Form";
|
|
485
|
-
import { jsx as
|
|
495
|
+
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
486
496
|
function WrapIfAdditionalTemplate({
|
|
487
497
|
classNames,
|
|
488
498
|
style,
|
|
@@ -503,14 +513,14 @@ function WrapIfAdditionalTemplate({
|
|
|
503
513
|
const keyLabel = translateString(TranslatableString4.KeyLabel, [label]);
|
|
504
514
|
const additional = ADDITIONAL_PROPERTY_FLAG in schema;
|
|
505
515
|
if (!additional) {
|
|
506
|
-
return /* @__PURE__ */
|
|
516
|
+
return /* @__PURE__ */ jsx16("div", { className: classNames, style, children });
|
|
507
517
|
}
|
|
508
518
|
const handleBlur = ({ target }) => onKeyChange(target.value);
|
|
509
519
|
const keyId = `${id}-key`;
|
|
510
|
-
return /* @__PURE__ */
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
/* @__PURE__ */
|
|
513
|
-
/* @__PURE__ */
|
|
520
|
+
return /* @__PURE__ */ jsxs9(Row5, { className: classNames, style, children: [
|
|
521
|
+
/* @__PURE__ */ jsx16(Col5, { xs: 5, children: /* @__PURE__ */ jsxs9(Form4.Group, { children: [
|
|
522
|
+
/* @__PURE__ */ jsx16(Form4.Label, { htmlFor: keyId, children: keyLabel }),
|
|
523
|
+
/* @__PURE__ */ jsx16(
|
|
514
524
|
Form4.Control,
|
|
515
525
|
{
|
|
516
526
|
required,
|
|
@@ -523,8 +533,8 @@ function WrapIfAdditionalTemplate({
|
|
|
523
533
|
}
|
|
524
534
|
)
|
|
525
535
|
] }) }),
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
/* @__PURE__ */
|
|
536
|
+
/* @__PURE__ */ jsx16(Col5, { xs: 5, children }),
|
|
537
|
+
/* @__PURE__ */ jsx16(Col5, { xs: 2, className: "py-4 d-grid gap-2", children: /* @__PURE__ */ jsx16(
|
|
528
538
|
RemoveButton2,
|
|
529
539
|
{
|
|
530
540
|
id: buttonId3(id, "remove"),
|
|
@@ -558,6 +568,7 @@ function generateTemplates() {
|
|
|
558
568
|
FieldHelpTemplate,
|
|
559
569
|
FieldTemplate,
|
|
560
570
|
GridTemplate,
|
|
571
|
+
MultiSchemaFieldTemplate,
|
|
561
572
|
ObjectFieldTemplate,
|
|
562
573
|
TitleFieldTemplate: TitleField,
|
|
563
574
|
WrapIfAdditionalTemplate
|
|
@@ -574,7 +585,7 @@ import {
|
|
|
574
585
|
schemaRequiresTrueValue
|
|
575
586
|
} from "@rjsf/utils";
|
|
576
587
|
import Form5 from "react-bootstrap/Form";
|
|
577
|
-
import { jsx as
|
|
588
|
+
import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
578
589
|
function CheckboxWidget(props) {
|
|
579
590
|
const {
|
|
580
591
|
id,
|
|
@@ -602,8 +613,8 @@ function CheckboxWidget(props) {
|
|
|
602
613
|
const _onBlur = ({ target }) => onBlur(id, target && target.checked);
|
|
603
614
|
const _onFocus = ({ target }) => onFocus(id, target && target.checked);
|
|
604
615
|
const description = options.description || schema.description;
|
|
605
|
-
return /* @__PURE__ */
|
|
606
|
-
!hideLabel && description && /* @__PURE__ */
|
|
616
|
+
return /* @__PURE__ */ jsxs10(Form5.Group, { className: disabled || readonly ? "disabled" : "", "aria-describedby": ariaDescribedByIds2(id), children: [
|
|
617
|
+
!hideLabel && description && /* @__PURE__ */ jsx17(
|
|
607
618
|
DescriptionFieldTemplate,
|
|
608
619
|
{
|
|
609
620
|
id: descriptionId2(id),
|
|
@@ -613,7 +624,7 @@ function CheckboxWidget(props) {
|
|
|
613
624
|
registry
|
|
614
625
|
}
|
|
615
626
|
),
|
|
616
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ jsx17(
|
|
617
628
|
Form5.Check,
|
|
618
629
|
{
|
|
619
630
|
id,
|
|
@@ -642,7 +653,7 @@ import {
|
|
|
642
653
|
enumOptionsValueForIndex,
|
|
643
654
|
optionId
|
|
644
655
|
} from "@rjsf/utils";
|
|
645
|
-
import { jsx as
|
|
656
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
646
657
|
function CheckboxesWidget({ id, disabled, options, value, autofocus, readonly, required, onChange, onBlur, onFocus }) {
|
|
647
658
|
const { enumOptions, enumDisabled, inline, emptyValue } = options;
|
|
648
659
|
const checkboxesValues = Array.isArray(value) ? value : [value];
|
|
@@ -655,10 +666,10 @@ function CheckboxesWidget({ id, disabled, options, value, autofocus, readonly, r
|
|
|
655
666
|
};
|
|
656
667
|
const _onBlur = ({ target }) => onBlur(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
|
|
657
668
|
const _onFocus = ({ target }) => onFocus(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
|
|
658
|
-
return /* @__PURE__ */
|
|
669
|
+
return /* @__PURE__ */ jsx18(Form6.Group, { children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
|
|
659
670
|
const checked = enumOptionsIsSelected(option.value, checkboxesValues);
|
|
660
671
|
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
|
|
661
|
-
return /* @__PURE__ */
|
|
672
|
+
return /* @__PURE__ */ jsx18(
|
|
662
673
|
Form6.Check,
|
|
663
674
|
{
|
|
664
675
|
inline,
|
|
@@ -689,7 +700,7 @@ import {
|
|
|
689
700
|
enumOptionsValueForIndex as enumOptionsValueForIndex2,
|
|
690
701
|
optionId as optionId2
|
|
691
702
|
} from "@rjsf/utils";
|
|
692
|
-
import { jsx as
|
|
703
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
693
704
|
function RadioWidget({
|
|
694
705
|
id,
|
|
695
706
|
options,
|
|
@@ -706,10 +717,10 @@ function RadioWidget({
|
|
|
706
717
|
const _onBlur = ({ target }) => onBlur(id, enumOptionsValueForIndex2(target && target.value, enumOptions, emptyValue));
|
|
707
718
|
const _onFocus = ({ target }) => onFocus(id, enumOptionsValueForIndex2(target && target.value, enumOptions, emptyValue));
|
|
708
719
|
const inline = Boolean(options && options.inline);
|
|
709
|
-
return /* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ jsx19(Form7.Group, { className: "mb-0", children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
|
|
710
721
|
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
|
|
711
722
|
const checked = enumOptionsIsSelected2(option.value, value);
|
|
712
|
-
const radio = /* @__PURE__ */
|
|
723
|
+
const radio = /* @__PURE__ */ jsx19(
|
|
713
724
|
Form7.Check,
|
|
714
725
|
{
|
|
715
726
|
inline,
|
|
@@ -735,7 +746,7 @@ function RadioWidget({
|
|
|
735
746
|
// src/RangeWidget/RangeWidget.tsx
|
|
736
747
|
import { rangeSpec } from "@rjsf/utils";
|
|
737
748
|
import FormRange from "react-bootstrap/FormRange";
|
|
738
|
-
import { Fragment as Fragment3, jsx as
|
|
749
|
+
import { Fragment as Fragment3, jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
739
750
|
function RangeWidget(props) {
|
|
740
751
|
const { id, value, disabled, onChange, onBlur, onFocus, schema } = props;
|
|
741
752
|
const _onChange = ({ target: { value: value2 } }) => onChange(value2);
|
|
@@ -751,9 +762,9 @@ function RangeWidget(props) {
|
|
|
751
762
|
onFocus: _onFocus,
|
|
752
763
|
...rangeSpec(schema)
|
|
753
764
|
};
|
|
754
|
-
return /* @__PURE__ */
|
|
755
|
-
/* @__PURE__ */
|
|
756
|
-
/* @__PURE__ */
|
|
765
|
+
return /* @__PURE__ */ jsxs11(Fragment3, { children: [
|
|
766
|
+
/* @__PURE__ */ jsx20(FormRange, { ...rangeProps }),
|
|
767
|
+
/* @__PURE__ */ jsx20("span", { className: "range-view", children: value })
|
|
757
768
|
] });
|
|
758
769
|
}
|
|
759
770
|
|
|
@@ -764,7 +775,7 @@ import {
|
|
|
764
775
|
enumOptionsIndexForValue,
|
|
765
776
|
enumOptionsValueForIndex as enumOptionsValueForIndex3
|
|
766
777
|
} from "@rjsf/utils";
|
|
767
|
-
import { jsx as
|
|
778
|
+
import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
768
779
|
function SelectWidget({
|
|
769
780
|
schema,
|
|
770
781
|
id,
|
|
@@ -792,7 +803,7 @@ function SelectWidget({
|
|
|
792
803
|
}
|
|
793
804
|
const selectedIndexes = enumOptionsIndexForValue(value, enumOptions, multiple);
|
|
794
805
|
const showPlaceholderOption = !multiple && schema.default === void 0;
|
|
795
|
-
return /* @__PURE__ */
|
|
806
|
+
return /* @__PURE__ */ jsxs12(
|
|
796
807
|
FormSelect,
|
|
797
808
|
{
|
|
798
809
|
id,
|
|
@@ -817,10 +828,10 @@ function SelectWidget({
|
|
|
817
828
|
},
|
|
818
829
|
"aria-describedby": ariaDescribedByIds5(id),
|
|
819
830
|
children: [
|
|
820
|
-
showPlaceholderOption && /* @__PURE__ */
|
|
831
|
+
showPlaceholderOption && /* @__PURE__ */ jsx21("option", { value: "", children: placeholder }),
|
|
821
832
|
enumOptions.map(({ value: value2, label }, i) => {
|
|
822
833
|
const disabled2 = Array.isArray(enumDisabled) && enumDisabled.indexOf(value2) != -1;
|
|
823
|
-
return /* @__PURE__ */
|
|
834
|
+
return /* @__PURE__ */ jsx21("option", { id: label, value: String(i), disabled: disabled2, children: label }, i);
|
|
824
835
|
})
|
|
825
836
|
]
|
|
826
837
|
}
|
|
@@ -831,7 +842,7 @@ function SelectWidget({
|
|
|
831
842
|
import { ariaDescribedByIds as ariaDescribedByIds6 } from "@rjsf/utils";
|
|
832
843
|
import FormControl from "react-bootstrap/FormControl";
|
|
833
844
|
import InputGroup from "react-bootstrap/InputGroup";
|
|
834
|
-
import { jsx as
|
|
845
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
835
846
|
function TextareaWidget({
|
|
836
847
|
id,
|
|
837
848
|
placeholder,
|
|
@@ -848,7 +859,7 @@ function TextareaWidget({
|
|
|
848
859
|
const _onChange = ({ target: { value: value2 } }) => onChange(value2 === "" ? options.emptyValue : value2);
|
|
849
860
|
const _onBlur = ({ target }) => onBlur(id, target && target.value);
|
|
850
861
|
const _onFocus = ({ target }) => onFocus(id, target && target.value);
|
|
851
|
-
return /* @__PURE__ */
|
|
862
|
+
return /* @__PURE__ */ jsx22(InputGroup, { children: /* @__PURE__ */ jsx22(
|
|
852
863
|
FormControl,
|
|
853
864
|
{
|
|
854
865
|
id,
|