@rjsf/mantine 6.0.2 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +100 -91
- package/dist/index.cjs.map +2 -2
- package/dist/mantine.esm.js +83 -74
- package/dist/mantine.esm.js.map +3 -3
- package/dist/mantine.umd.js +40 -32
- package/lib/templates/ArrayFieldTitleTemplate.js +8 -4
- package/lib/templates/ArrayFieldTitleTemplate.js.map +1 -1
- package/lib/templates/BaseInputTemplate.js +15 -1
- package/lib/templates/BaseInputTemplate.js.map +1 -1
- package/lib/templates/FieldHelpTemplate.js +3 -3
- package/lib/templates/FieldHelpTemplate.js.map +1 -1
- package/lib/templates/FieldTemplate.js +1 -1
- package/lib/templates/FieldTemplate.js.map +1 -1
- package/lib/templates/WrapIfAdditionalTemplate.js +2 -2
- package/lib/templates/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils.js +1 -0
- package/lib/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/templates/ArrayFieldTitleTemplate.tsx +13 -4
- package/src/templates/BaseInputTemplate.tsx +19 -22
- package/src/templates/FieldHelpTemplate.tsx +4 -5
- package/src/templates/FieldTemplate.tsx +2 -0
- package/src/templates/WrapIfAdditionalTemplate.tsx +24 -21
- package/src/utils.ts +1 -0
package/dist/mantine.esm.js
CHANGED
|
@@ -108,16 +108,23 @@ import {
|
|
|
108
108
|
getUiOptions as getUiOptions3,
|
|
109
109
|
titleId
|
|
110
110
|
} from "@rjsf/utils";
|
|
111
|
-
import { Title } from "@mantine/core";
|
|
112
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
111
|
+
import { Grid, Title } from "@mantine/core";
|
|
112
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
113
113
|
function ArrayFieldTitleTemplate(props) {
|
|
114
|
-
const { fieldPathId, title, uiSchema, registry } = props;
|
|
114
|
+
const { fieldPathId, title, uiSchema, registry, optionalDataControl } = props;
|
|
115
115
|
const options = getUiOptions3(uiSchema, registry.globalUiOptions);
|
|
116
116
|
const { label: displayLabel = true } = options;
|
|
117
117
|
if (!title || !displayLabel) {
|
|
118
118
|
return null;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
let heading = title ? /* @__PURE__ */ jsx3(Title, { id: titleId(fieldPathId), order: 4, fw: "normal", children: title }) : null;
|
|
121
|
+
if (optionalDataControl) {
|
|
122
|
+
heading = /* @__PURE__ */ jsxs3(Grid, { children: [
|
|
123
|
+
/* @__PURE__ */ jsx3(Grid.Col, { span: "auto", children: heading }),
|
|
124
|
+
/* @__PURE__ */ jsx3(Grid.Col, { span: "content", children: optionalDataControl })
|
|
125
|
+
] });
|
|
126
|
+
}
|
|
127
|
+
return heading;
|
|
121
128
|
}
|
|
122
129
|
|
|
123
130
|
// src/templates/BaseInputTemplate.tsx
|
|
@@ -135,6 +142,7 @@ var uiOptionsKeys = [
|
|
|
135
142
|
"emptyValue",
|
|
136
143
|
"classNames",
|
|
137
144
|
"title",
|
|
145
|
+
"label",
|
|
138
146
|
"help",
|
|
139
147
|
"autocomplete",
|
|
140
148
|
"disabled",
|
|
@@ -167,7 +175,7 @@ function cleanupOptions(options) {
|
|
|
167
175
|
}
|
|
168
176
|
|
|
169
177
|
// src/templates/BaseInputTemplate.tsx
|
|
170
|
-
import { Fragment, jsx as jsx4, jsxs as
|
|
178
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
171
179
|
function BaseInputTemplate(props) {
|
|
172
180
|
const {
|
|
173
181
|
id,
|
|
@@ -191,6 +199,7 @@ function BaseInputTemplate(props) {
|
|
|
191
199
|
children
|
|
192
200
|
} = props;
|
|
193
201
|
const inputProps = getInputProps(schema, type, options, false);
|
|
202
|
+
const description = hideLabel ? void 0 : options.description || schema.description;
|
|
194
203
|
const themeProps = cleanupOptions(options);
|
|
195
204
|
const handleNumberChange = useCallback((value2) => onChange(value2), [onChange]);
|
|
196
205
|
const handleChange = useCallback(
|
|
@@ -213,50 +222,45 @@ function BaseInputTemplate(props) {
|
|
|
213
222
|
},
|
|
214
223
|
[onFocus, id]
|
|
215
224
|
);
|
|
225
|
+
const componentProps = {
|
|
226
|
+
id,
|
|
227
|
+
name: htmlName || id,
|
|
228
|
+
label: labelValue(label || void 0, hideLabel, false),
|
|
229
|
+
required,
|
|
230
|
+
autoFocus: autofocus,
|
|
231
|
+
disabled: disabled || readonly,
|
|
232
|
+
onBlur: !readonly ? handleBlur : void 0,
|
|
233
|
+
onFocus: !readonly ? handleFocus : void 0,
|
|
234
|
+
placeholder,
|
|
235
|
+
error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
|
|
236
|
+
list: schema.examples ? examplesId(id) : void 0
|
|
237
|
+
};
|
|
216
238
|
const input = inputProps.type === "number" || inputProps.type === "integer" ? /* @__PURE__ */ jsx4(
|
|
217
239
|
NumberInput,
|
|
218
240
|
{
|
|
219
|
-
id,
|
|
220
|
-
name: htmlName || id,
|
|
221
|
-
label: labelValue(label || void 0, hideLabel, false),
|
|
222
|
-
required,
|
|
223
|
-
autoFocus: autofocus,
|
|
224
|
-
disabled: disabled || readonly,
|
|
225
|
-
onBlur: !readonly ? handleBlur : void 0,
|
|
226
241
|
onChange: !readonly ? handleNumberChange : void 0,
|
|
227
|
-
|
|
228
|
-
placeholder,
|
|
229
|
-
error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
|
|
230
|
-
list: schema.examples ? examplesId(id) : void 0,
|
|
242
|
+
...componentProps,
|
|
231
243
|
...inputProps,
|
|
232
244
|
...themeProps,
|
|
233
245
|
step: typeof inputProps.step === "number" ? inputProps.step : 1,
|
|
234
246
|
type: "text",
|
|
247
|
+
description,
|
|
235
248
|
value,
|
|
236
249
|
"aria-describedby": ariaDescribedByIds(id, !!schema.examples)
|
|
237
250
|
}
|
|
238
251
|
) : /* @__PURE__ */ jsx4(
|
|
239
252
|
TextInput,
|
|
240
253
|
{
|
|
241
|
-
id,
|
|
242
|
-
name: htmlName || id,
|
|
243
|
-
label: labelValue(label || void 0, hideLabel, false),
|
|
244
|
-
required,
|
|
245
|
-
autoFocus: autofocus,
|
|
246
|
-
disabled: disabled || readonly,
|
|
247
|
-
onBlur: !readonly ? handleBlur : void 0,
|
|
248
254
|
onChange: !readonly ? handleChange : void 0,
|
|
249
|
-
|
|
250
|
-
placeholder,
|
|
251
|
-
error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
|
|
252
|
-
list: schema.examples ? examplesId(id) : void 0,
|
|
255
|
+
...componentProps,
|
|
253
256
|
...inputProps,
|
|
254
257
|
...themeProps,
|
|
258
|
+
description,
|
|
255
259
|
value,
|
|
256
260
|
"aria-describedby": ariaDescribedByIds(id, !!schema.examples)
|
|
257
261
|
}
|
|
258
262
|
);
|
|
259
|
-
return /* @__PURE__ */
|
|
263
|
+
return /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
260
264
|
input,
|
|
261
265
|
children,
|
|
262
266
|
Array.isArray(schema.examples) && /* @__PURE__ */ jsx4("datalist", { id: examplesId(id), children: schema.examples.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : []).map((example) => {
|
|
@@ -282,9 +286,9 @@ import { TranslatableString } from "@rjsf/utils";
|
|
|
282
286
|
import { Alert, Title as Title2, List } from "@mantine/core";
|
|
283
287
|
|
|
284
288
|
// src/templates/icons.tsx
|
|
285
|
-
import { jsx as jsx6, jsxs as
|
|
289
|
+
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
286
290
|
function Plus({ size, style, ...others }) {
|
|
287
|
-
return /* @__PURE__ */
|
|
291
|
+
return /* @__PURE__ */ jsxs5(
|
|
288
292
|
"svg",
|
|
289
293
|
{
|
|
290
294
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -308,7 +312,7 @@ function Plus({ size, style, ...others }) {
|
|
|
308
312
|
);
|
|
309
313
|
}
|
|
310
314
|
function Copy({ size, style, ...others }) {
|
|
311
|
-
return /* @__PURE__ */
|
|
315
|
+
return /* @__PURE__ */ jsxs5(
|
|
312
316
|
"svg",
|
|
313
317
|
{
|
|
314
318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -332,7 +336,7 @@ function Copy({ size, style, ...others }) {
|
|
|
332
336
|
);
|
|
333
337
|
}
|
|
334
338
|
function ChevronDown({ size, style, ...others }) {
|
|
335
|
-
return /* @__PURE__ */
|
|
339
|
+
return /* @__PURE__ */ jsxs5(
|
|
336
340
|
"svg",
|
|
337
341
|
{
|
|
338
342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -355,7 +359,7 @@ function ChevronDown({ size, style, ...others }) {
|
|
|
355
359
|
);
|
|
356
360
|
}
|
|
357
361
|
function ChevronUp({ size, style, ...others }) {
|
|
358
|
-
return /* @__PURE__ */
|
|
362
|
+
return /* @__PURE__ */ jsxs5(
|
|
359
363
|
"svg",
|
|
360
364
|
{
|
|
361
365
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -378,7 +382,7 @@ function ChevronUp({ size, style, ...others }) {
|
|
|
378
382
|
);
|
|
379
383
|
}
|
|
380
384
|
function X({ size, style, ...others }) {
|
|
381
|
-
return /* @__PURE__ */
|
|
385
|
+
return /* @__PURE__ */ jsxs5(
|
|
382
386
|
"svg",
|
|
383
387
|
{
|
|
384
388
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -402,7 +406,7 @@ function X({ size, style, ...others }) {
|
|
|
402
406
|
);
|
|
403
407
|
}
|
|
404
408
|
function ExclamationCircle({ size, style, ...others }) {
|
|
405
|
-
return /* @__PURE__ */
|
|
409
|
+
return /* @__PURE__ */ jsxs5(
|
|
406
410
|
"svg",
|
|
407
411
|
{
|
|
408
412
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -567,7 +571,7 @@ import {
|
|
|
567
571
|
getTemplate as getTemplate3,
|
|
568
572
|
getUiOptions as getUiOptions4
|
|
569
573
|
} from "@rjsf/utils";
|
|
570
|
-
import { jsx as jsx12, jsxs as
|
|
574
|
+
import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
571
575
|
function FieldTemplate(props) {
|
|
572
576
|
const {
|
|
573
577
|
id,
|
|
@@ -595,13 +599,15 @@ function FieldTemplate(props) {
|
|
|
595
599
|
if (hidden) {
|
|
596
600
|
return /* @__PURE__ */ jsx12(Box4, { display: "none", children });
|
|
597
601
|
}
|
|
598
|
-
return /* @__PURE__ */
|
|
602
|
+
return /* @__PURE__ */ jsxs6(
|
|
599
603
|
WrapIfAdditionalTemplate2,
|
|
600
604
|
{
|
|
601
605
|
id,
|
|
602
606
|
classNames,
|
|
603
607
|
style,
|
|
604
608
|
label,
|
|
609
|
+
displayLabel,
|
|
610
|
+
rawDescription,
|
|
605
611
|
schema,
|
|
606
612
|
uiSchema,
|
|
607
613
|
registry,
|
|
@@ -618,28 +624,28 @@ function FieldTemplate(props) {
|
|
|
618
624
|
// src/templates/FieldHelpTemplate.tsx
|
|
619
625
|
import { helpId } from "@rjsf/utils";
|
|
620
626
|
import { Text as Text2 } from "@mantine/core";
|
|
627
|
+
import { RichHelp } from "@rjsf/core";
|
|
621
628
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
622
629
|
function FieldHelpTemplate(props) {
|
|
623
|
-
const { fieldPathId, help } = props;
|
|
630
|
+
const { fieldPathId, help, uiSchema, registry } = props;
|
|
624
631
|
if (!help) {
|
|
625
632
|
return null;
|
|
626
633
|
}
|
|
627
|
-
|
|
628
|
-
return /* @__PURE__ */ jsx13(Text2, { id, size: "sm", my: "xs", c: "dimmed", children: help });
|
|
634
|
+
return /* @__PURE__ */ jsx13(Text2, { id: helpId(fieldPathId), size: "sm", my: "xs", c: "dimmed", children: /* @__PURE__ */ jsx13(RichHelp, { help, registry, uiSchema }) });
|
|
629
635
|
}
|
|
630
636
|
|
|
631
637
|
// src/templates/GridTemplate.tsx
|
|
632
|
-
import { Container, Grid } from "@mantine/core";
|
|
638
|
+
import { Container, Grid as Grid2 } from "@mantine/core";
|
|
633
639
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
634
640
|
function GridTemplate(props) {
|
|
635
641
|
const { children, column, fluid = true, ...rest } = props;
|
|
636
642
|
if (column) {
|
|
637
|
-
return /* @__PURE__ */ jsx14(
|
|
643
|
+
return /* @__PURE__ */ jsx14(Grid2.Col, { ...rest, children });
|
|
638
644
|
}
|
|
639
645
|
if (fluid) {
|
|
640
|
-
return /* @__PURE__ */ jsx14(Container, { p: "4", mx: 0, w: "100%", children: /* @__PURE__ */ jsx14(
|
|
646
|
+
return /* @__PURE__ */ jsx14(Container, { p: "4", mx: 0, w: "100%", children: /* @__PURE__ */ jsx14(Grid2, { ...rest, children }) });
|
|
641
647
|
}
|
|
642
|
-
return /* @__PURE__ */ jsx14(
|
|
648
|
+
return /* @__PURE__ */ jsx14(Grid2, { grow: true, ...rest, children });
|
|
643
649
|
}
|
|
644
650
|
|
|
645
651
|
// src/templates/ObjectFieldTemplate.tsx
|
|
@@ -652,7 +658,7 @@ import {
|
|
|
652
658
|
getUiOptions as getUiOptions5,
|
|
653
659
|
titleId as titleId2
|
|
654
660
|
} from "@rjsf/utils";
|
|
655
|
-
import { jsx as jsx15, jsxs as
|
|
661
|
+
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
656
662
|
function ObjectFieldTemplate(props) {
|
|
657
663
|
const {
|
|
658
664
|
title,
|
|
@@ -683,7 +689,7 @@ function ObjectFieldTemplate(props) {
|
|
|
683
689
|
const gridCols = typeof uiOptions?.gridCols === "number" && uiOptions?.gridCols || void 0;
|
|
684
690
|
const gridSpacing = uiOptions?.gridSpacing;
|
|
685
691
|
const gridVerticalSpacing = uiOptions?.gridVerticalSpacing;
|
|
686
|
-
return /* @__PURE__ */
|
|
692
|
+
return /* @__PURE__ */ jsxs7(Container2, { id: fieldPathId.$id, p: 0, children: [
|
|
687
693
|
title && /* @__PURE__ */ jsx15(
|
|
688
694
|
TitleFieldTemplate,
|
|
689
695
|
{
|
|
@@ -706,7 +712,7 @@ function ObjectFieldTemplate(props) {
|
|
|
706
712
|
registry
|
|
707
713
|
}
|
|
708
714
|
),
|
|
709
|
-
/* @__PURE__ */
|
|
715
|
+
/* @__PURE__ */ jsxs7(
|
|
710
716
|
SimpleGrid,
|
|
711
717
|
{
|
|
712
718
|
cols: gridCols,
|
|
@@ -766,15 +772,15 @@ function OptionalDataControlsTemplate(props) {
|
|
|
766
772
|
}
|
|
767
773
|
|
|
768
774
|
// src/templates/TitleField.tsx
|
|
769
|
-
import { Grid as
|
|
770
|
-
import { jsx as jsx17, jsxs as
|
|
775
|
+
import { Grid as Grid3, Title as Title3 } from "@mantine/core";
|
|
776
|
+
import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
771
777
|
function TitleField(props) {
|
|
772
778
|
const { id, title, optionalDataControl } = props;
|
|
773
779
|
let heading = title ? /* @__PURE__ */ jsx17(Title3, { id, order: 3, fw: "normal", children: title }) : null;
|
|
774
780
|
if (optionalDataControl) {
|
|
775
|
-
heading = /* @__PURE__ */
|
|
776
|
-
/* @__PURE__ */ jsx17(
|
|
777
|
-
/* @__PURE__ */ jsx17(
|
|
781
|
+
heading = /* @__PURE__ */ jsxs8(Grid3, { children: [
|
|
782
|
+
/* @__PURE__ */ jsx17(Grid3.Col, { span: "auto", children: heading }),
|
|
783
|
+
/* @__PURE__ */ jsx17(Grid3.Col, { span: "content", children: optionalDataControl })
|
|
778
784
|
] });
|
|
779
785
|
}
|
|
780
786
|
return heading;
|
|
@@ -787,14 +793,16 @@ import {
|
|
|
787
793
|
buttonId as buttonId3,
|
|
788
794
|
TranslatableString as TranslatableString4
|
|
789
795
|
} from "@rjsf/utils";
|
|
790
|
-
import { Flex as Flex2, Grid as
|
|
791
|
-
import { jsx as jsx18, jsxs as
|
|
796
|
+
import { Flex as Flex2, Grid as Grid4, TextInput as TextInput2 } from "@mantine/core";
|
|
797
|
+
import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
792
798
|
function WrapIfAdditionalTemplate(props) {
|
|
793
799
|
const {
|
|
794
800
|
id,
|
|
795
801
|
classNames,
|
|
796
802
|
style,
|
|
797
803
|
label,
|
|
804
|
+
displayLabel,
|
|
805
|
+
rawDescription,
|
|
798
806
|
required,
|
|
799
807
|
readonly,
|
|
800
808
|
disabled,
|
|
@@ -817,24 +825,25 @@ function WrapIfAdditionalTemplate(props) {
|
|
|
817
825
|
...uiSchema,
|
|
818
826
|
[UI_OPTIONS_KEY]: { ...uiOptions, block: true }
|
|
819
827
|
};
|
|
820
|
-
return /* @__PURE__ */ jsx18("div", { className: classNames, style, children: /* @__PURE__ */
|
|
821
|
-
/* @__PURE__ */
|
|
822
|
-
/* @__PURE__ */ jsx18(
|
|
828
|
+
return /* @__PURE__ */ jsx18("div", { className: classNames, style, children: /* @__PURE__ */ jsxs9(Flex2, { gap: "xs", align: "end", justify: "center", children: [
|
|
829
|
+
/* @__PURE__ */ jsxs9(Grid4, { w: "100%", align: "center", children: [
|
|
830
|
+
/* @__PURE__ */ jsx18(Grid4.Col, { span: 6, className: "form-additional", children: /* @__PURE__ */ jsx18(
|
|
823
831
|
TextInput2,
|
|
824
832
|
{
|
|
825
833
|
className: "form-group",
|
|
826
|
-
label: keyLabel,
|
|
834
|
+
label: displayLabel ? keyLabel : void 0,
|
|
827
835
|
defaultValue: label,
|
|
828
836
|
required,
|
|
837
|
+
description: rawDescription ? "\xA0" : void 0,
|
|
829
838
|
disabled: disabled || readonly,
|
|
830
839
|
id: `${id}-key`,
|
|
831
840
|
name: `${id}-key`,
|
|
832
841
|
onBlur: !readonly ? onKeyRenameBlur : void 0
|
|
833
842
|
}
|
|
834
|
-
) })
|
|
835
|
-
/* @__PURE__ */ jsx18(
|
|
843
|
+
) }),
|
|
844
|
+
/* @__PURE__ */ jsx18(Grid4.Col, { span: 6, className: "form-additional", children })
|
|
836
845
|
] }),
|
|
837
|
-
/* @__PURE__ */ jsx18(
|
|
846
|
+
/* @__PURE__ */ jsx18("div", { children: /* @__PURE__ */ jsx18(
|
|
838
847
|
RemoveButton2,
|
|
839
848
|
{
|
|
840
849
|
id: buttonId3(id, "remove"),
|
|
@@ -845,15 +854,15 @@ function WrapIfAdditionalTemplate(props) {
|
|
|
845
854
|
uiSchema: buttonUiOptions,
|
|
846
855
|
registry
|
|
847
856
|
}
|
|
848
|
-
)
|
|
857
|
+
) })
|
|
849
858
|
] }) });
|
|
850
859
|
}
|
|
851
860
|
|
|
852
861
|
// src/templates/MultiSchemaFieldTemplate.tsx
|
|
853
862
|
import { Stack } from "@mantine/core";
|
|
854
|
-
import { jsxs as
|
|
863
|
+
import { jsxs as jsxs10 } from "react/jsx-runtime";
|
|
855
864
|
function MultiSchemaFieldTemplate({ selector, optionSchemaField }) {
|
|
856
|
-
return /* @__PURE__ */
|
|
865
|
+
return /* @__PURE__ */ jsxs10(Stack, { style: { marginBottom: "1rem" }, children: [
|
|
857
866
|
selector,
|
|
858
867
|
optionSchemaField
|
|
859
868
|
] });
|
|
@@ -902,14 +911,14 @@ import {
|
|
|
902
911
|
useAltDateWidgetProps
|
|
903
912
|
} from "@rjsf/utils";
|
|
904
913
|
import { Flex as Flex3, Box as Box6, Group as Group4, Button as Button2, Select, Input } from "@mantine/core";
|
|
905
|
-
import { Fragment as Fragment2, jsx as jsx20, jsxs as
|
|
914
|
+
import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
906
915
|
function AltDateWidget(props) {
|
|
907
916
|
const { id, required, disabled, readonly, label, hideLabel, rawErrors, options, registry } = props;
|
|
908
917
|
const { translateString } = registry;
|
|
909
918
|
const { elements, handleChange, handleClear, handleSetNow } = useAltDateWidgetProps(props);
|
|
910
|
-
return /* @__PURE__ */
|
|
919
|
+
return /* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
911
920
|
!hideLabel && !!label && /* @__PURE__ */ jsx20(Input.Label, { id: titleId3(id), required, children: label }),
|
|
912
|
-
/* @__PURE__ */
|
|
921
|
+
/* @__PURE__ */ jsxs11(Flex3, { gap: "xs", align: "center", wrap: "nowrap", children: [
|
|
913
922
|
elements.map((elemProps, i) => {
|
|
914
923
|
const elemId = `${id}_${elemProps.type}`;
|
|
915
924
|
return /* @__PURE__ */ jsx20(Box6, { children: /* @__PURE__ */ jsx20(
|
|
@@ -929,7 +938,7 @@ function AltDateWidget(props) {
|
|
|
929
938
|
}
|
|
930
939
|
) }, i);
|
|
931
940
|
}),
|
|
932
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ jsxs11(Group4, { wrap: "nowrap", gap: 3, children: [
|
|
933
942
|
(options.hideNowButton !== "undefined" ? !options.hideNowButton : true) && /* @__PURE__ */ jsx20(Button2, { variant: "subtle", size: "xs", onClick: handleSetNow, children: translateString(TranslatableString5.NowLabel) }),
|
|
934
943
|
(options.hideClearButton !== "undefined" ? !options.hideClearButton : true) && /* @__PURE__ */ jsx20(Button2, { variant: "subtle", size: "xs", onClick: handleClear, children: translateString(TranslatableString5.ClearLabel) })
|
|
935
944
|
] })
|
|
@@ -1132,7 +1141,7 @@ import {
|
|
|
1132
1141
|
titleId as titleId4
|
|
1133
1142
|
} from "@rjsf/utils";
|
|
1134
1143
|
import { Checkbox, Flex as Flex4, Input as Input2 } from "@mantine/core";
|
|
1135
|
-
import { Fragment as Fragment3, jsx as jsx25, jsxs as
|
|
1144
|
+
import { Fragment as Fragment3, jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1136
1145
|
function CheckboxesWidget(props) {
|
|
1137
1146
|
const {
|
|
1138
1147
|
id,
|
|
@@ -1177,7 +1186,7 @@ function CheckboxesWidget(props) {
|
|
|
1177
1186
|
[onFocus, id, enumOptions, emptyValue]
|
|
1178
1187
|
);
|
|
1179
1188
|
const selectedIndexes = enumOptionsIndexForValue(value, enumOptions, true);
|
|
1180
|
-
return Array.isArray(enumOptions) && enumOptions.length > 0 ? /* @__PURE__ */
|
|
1189
|
+
return Array.isArray(enumOptions) && enumOptions.length > 0 ? /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
1181
1190
|
!hideLabel && !!label && /* @__PURE__ */ jsx25(Input2.Label, { id: titleId4(id), required, children: label }),
|
|
1182
1191
|
/* @__PURE__ */ jsx25(
|
|
1183
1192
|
Checkbox.Group,
|
|
@@ -1218,7 +1227,7 @@ import {
|
|
|
1218
1227
|
ariaDescribedByIds as ariaDescribedByIds6
|
|
1219
1228
|
} from "@rjsf/utils";
|
|
1220
1229
|
import { Checkbox as Checkbox2 } from "@mantine/core";
|
|
1221
|
-
import { Fragment as Fragment4, jsx as jsx26, jsxs as
|
|
1230
|
+
import { Fragment as Fragment4, jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1222
1231
|
function CheckboxWidget(props) {
|
|
1223
1232
|
const {
|
|
1224
1233
|
id,
|
|
@@ -1270,7 +1279,7 @@ function CheckboxWidget(props) {
|
|
|
1270
1279
|
[onFocus, id]
|
|
1271
1280
|
);
|
|
1272
1281
|
const description = options.description || schema.description;
|
|
1273
|
-
return /* @__PURE__ */
|
|
1282
|
+
return /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
1274
1283
|
!hideLabel && !!description && /* @__PURE__ */ jsx26(
|
|
1275
1284
|
DescriptionFieldTemplate,
|
|
1276
1285
|
{
|
|
@@ -1598,7 +1607,7 @@ import {
|
|
|
1598
1607
|
titleId as titleId5
|
|
1599
1608
|
} from "@rjsf/utils";
|
|
1600
1609
|
import { Slider, Input as Input3 } from "@mantine/core";
|
|
1601
|
-
import { Fragment as Fragment5, jsx as jsx31, jsxs as
|
|
1610
|
+
import { Fragment as Fragment5, jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1602
1611
|
function RangeWidget(props) {
|
|
1603
1612
|
const {
|
|
1604
1613
|
id,
|
|
@@ -1637,7 +1646,7 @@ function RangeWidget(props) {
|
|
|
1637
1646
|
onFocus(id, value);
|
|
1638
1647
|
}
|
|
1639
1648
|
}, [onFocus, id, value]);
|
|
1640
|
-
return /* @__PURE__ */
|
|
1649
|
+
return /* @__PURE__ */ jsxs14(Fragment5, { children: [
|
|
1641
1650
|
!hideLabel && !!label && /* @__PURE__ */ jsx31(Input3.Label, { id: titleId5(id), required, children: label }),
|
|
1642
1651
|
options?.description && /* @__PURE__ */ jsx31(Input3.Description, { children: options.description }),
|
|
1643
1652
|
/* @__PURE__ */ jsx31(
|