@rjsf/semantic-ui 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 +82 -74
- package/dist/index.cjs.map +3 -3
- package/dist/semantic-ui.esm.js +89 -119
- package/dist/semantic-ui.esm.js.map +3 -3
- package/dist/semantic-ui.umd.js +79 -72
- package/lib/AddButton/AddButton.d.ts +2 -2
- 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 +6 -6
- package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js +6 -6
- 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.map +1 -1
- package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts +1 -1
- 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/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 +1 -1
- 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 -7
- package/lib/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/RangeWidget/RangeWidget.d.ts +1 -1
- package/lib/RangeWidget/RangeWidget.js +5 -5
- package/lib/RangeWidget/RangeWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.d.ts +1 -1
- package/lib/SelectWidget/SelectWidget.js +5 -6
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/SemanticUIForm/SemanticUIForm.d.ts +3 -3
- package/lib/SemanticUIForm/SemanticUIForm.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 +6 -6
- 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/Widgets/Widgets.d.ts +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +2 -2
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/util.d.ts +7 -7
- package/lib/util.js +9 -3
- package/lib/util.js.map +1 -1
- package/package.json +8 -8
- package/src/AddButton/AddButton.tsx +5 -3
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +2 -8
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +2 -10
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +13 -20
- package/src/CheckboxWidget/CheckboxWidget.tsx +12 -20
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +11 -14
- package/src/DescriptionField/DescriptionField.tsx +1 -1
- package/src/ErrorList/ErrorList.tsx +3 -1
- package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +2 -1
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +2 -1
- package/src/FieldTemplate/FieldTemplate.tsx +2 -8
- 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 +2 -12
- package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +3 -2
- package/src/RadioWidget/RadioWidget.tsx +13 -16
- package/src/RangeWidget/RangeWidget.tsx +10 -9
- package/src/SelectWidget/SelectWidget.tsx +20 -18
- package/src/SemanticUIForm/SemanticUIForm.ts +4 -3
- package/src/SubmitButton/SubmitButton.tsx +2 -1
- package/src/Templates/Templates.ts +1 -1
- package/src/TextareaWidget/TextareaWidget.tsx +10 -16
- package/src/Theme/Theme.ts +2 -2
- package/src/TitleField/TitleField.tsx +1 -1
- package/src/Widgets/Widgets.tsx +1 -1
- package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +6 -13
- package/src/util.tsx +17 -18
package/dist/semantic-ui.umd.js
CHANGED
|
@@ -34,14 +34,13 @@
|
|
|
34
34
|
const formContextProps = formContext.semantic;
|
|
35
35
|
const schemaProps = utils.getUiOptions(uiSchema).semantic;
|
|
36
36
|
const optionProps = options.semantic;
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
);
|
|
37
|
+
return {
|
|
38
|
+
...defaultSchemaProps,
|
|
39
|
+
...defaultContextProps,
|
|
40
|
+
...schemaProps,
|
|
41
|
+
...optionProps,
|
|
42
|
+
...formContextProps
|
|
43
|
+
};
|
|
45
44
|
}
|
|
46
45
|
function getSemanticErrorProps({
|
|
47
46
|
formContext = {},
|
|
@@ -53,7 +52,7 @@
|
|
|
53
52
|
const semanticOptions = utils.getUiOptions(uiSchema).semantic;
|
|
54
53
|
const schemaProps = semanticOptions && semanticOptions.errorOptions;
|
|
55
54
|
const optionProps = options.semantic && options.semantic.errorOptions;
|
|
56
|
-
return
|
|
55
|
+
return { ...defaultProps, ...schemaProps, ...optionProps, ...formContextProps };
|
|
57
56
|
}
|
|
58
57
|
function cleanClassNames(classNameArr, omit = []) {
|
|
59
58
|
const classList = classNameArr.filter(Boolean).reduce((previous, current) => previous.concat(current.trim().split(/\s+/)), []);
|
|
@@ -209,10 +208,10 @@
|
|
|
209
208
|
formContext: registry.formContext,
|
|
210
209
|
options
|
|
211
210
|
});
|
|
212
|
-
const
|
|
213
|
-
const
|
|
214
|
-
const
|
|
215
|
-
const
|
|
211
|
+
const handleChange = ({ target: { value: newValue } }) => onChange(newValue === "" ? options.emptyValue : newValue);
|
|
212
|
+
const handleBlur = () => onBlur && onBlur(id, value);
|
|
213
|
+
const handleFocus = () => onFocus && onFocus(id, value);
|
|
214
|
+
const handleClear = react.useCallback(
|
|
216
215
|
(e) => {
|
|
217
216
|
e.preventDefault();
|
|
218
217
|
e.stopPropagation();
|
|
@@ -236,14 +235,14 @@
|
|
|
236
235
|
...semanticProps,
|
|
237
236
|
value: value || value === 0 ? value : "",
|
|
238
237
|
error: rawErrors.length > 0,
|
|
239
|
-
onChange: onChangeOverride ||
|
|
240
|
-
onBlur:
|
|
241
|
-
onFocus:
|
|
238
|
+
onChange: onChangeOverride || handleChange,
|
|
239
|
+
onBlur: handleBlur,
|
|
240
|
+
onFocus: handleFocus,
|
|
242
241
|
"aria-describedby": utils.ariaDescribedByIds(id, !!schema.examples)
|
|
243
242
|
},
|
|
244
243
|
id
|
|
245
244
|
),
|
|
246
|
-
options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsxRuntime.jsx(ClearButton2, { registry, onClick:
|
|
245
|
+
options.allowClearTextInputs && !readonly && !disabled && value && /* @__PURE__ */ jsxRuntime.jsx(ClearButton2, { registry, onClick: handleClear }),
|
|
247
246
|
/* @__PURE__ */ jsxRuntime.jsx(core.SchemaExamples, { id, schema })
|
|
248
247
|
] });
|
|
249
248
|
}
|
|
@@ -261,7 +260,10 @@
|
|
|
261
260
|
const { translateString } = registry;
|
|
262
261
|
return /* @__PURE__ */ jsxRuntime.jsxs(semanticUiReact.Message, { negative: true, children: [
|
|
263
262
|
/* @__PURE__ */ jsxRuntime.jsx(semanticUiReact.Message.Header, { children: translateString(utils.TranslatableString.ErrorsLabel) }),
|
|
264
|
-
/* @__PURE__ */ jsxRuntime.jsx(semanticUiReact.Message.List, { children: errors.map((error, index) =>
|
|
263
|
+
/* @__PURE__ */ jsxRuntime.jsx(semanticUiReact.Message.List, { children: errors.map((error, index) => (
|
|
264
|
+
// oxlint-disable-next-line react/no-array-index-key
|
|
265
|
+
/* @__PURE__ */ jsxRuntime.jsx(semanticUiReact.Message.Item, { children: error.stack }, `error-${index}`)
|
|
266
|
+
)) })
|
|
265
267
|
] });
|
|
266
268
|
}
|
|
267
269
|
var DEFAULT_OPTIONS = {
|
|
@@ -353,7 +355,7 @@
|
|
|
353
355
|
}
|
|
354
356
|
return /* @__PURE__ */ jsxRuntime.jsx(semanticUiReact.Grid, { ...rest, children });
|
|
355
357
|
}
|
|
356
|
-
function
|
|
358
|
+
function IconButtonFn(props) {
|
|
357
359
|
const { icon, iconType, color, className, uiSchema, registry, ...otherProps } = props;
|
|
358
360
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
359
361
|
semanticUiReact.Button,
|
|
@@ -366,36 +368,42 @@
|
|
|
366
368
|
}
|
|
367
369
|
);
|
|
368
370
|
}
|
|
369
|
-
|
|
371
|
+
var IconButton = react.memo(IconButtonFn);
|
|
372
|
+
function CopyButtonFn(props) {
|
|
370
373
|
const {
|
|
371
374
|
registry: { translateString }
|
|
372
375
|
} = props;
|
|
373
376
|
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.CopyButton), ...props, icon: "copy" });
|
|
374
377
|
}
|
|
375
|
-
|
|
378
|
+
var CopyButton = react.memo(CopyButtonFn);
|
|
379
|
+
function MoveDownButtonFn(props) {
|
|
376
380
|
const {
|
|
377
381
|
registry: { translateString }
|
|
378
382
|
} = props;
|
|
379
383
|
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.MoveDownButton), ...props, icon: "angle down" });
|
|
380
384
|
}
|
|
381
|
-
|
|
385
|
+
var MoveDownButton = react.memo(MoveDownButtonFn);
|
|
386
|
+
function MoveUpButtonFn(props) {
|
|
382
387
|
const {
|
|
383
388
|
registry: { translateString }
|
|
384
389
|
} = props;
|
|
385
390
|
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.MoveUpButton), ...props, icon: "angle up" });
|
|
386
391
|
}
|
|
387
|
-
|
|
392
|
+
var MoveUpButton = react.memo(MoveUpButtonFn);
|
|
393
|
+
function RemoveButtonFn(props) {
|
|
388
394
|
const {
|
|
389
395
|
registry: { translateString }
|
|
390
396
|
} = props;
|
|
391
397
|
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.RemoveButton), ...props, icon: "trash" });
|
|
392
398
|
}
|
|
393
|
-
|
|
399
|
+
var RemoveButton = react.memo(RemoveButtonFn);
|
|
400
|
+
function ClearButtonFn(props) {
|
|
394
401
|
const {
|
|
395
402
|
registry: { translateString }
|
|
396
403
|
} = props;
|
|
397
404
|
return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { title: translateString(utils.TranslatableString.ClearButton), ...props, icon: "close" });
|
|
398
405
|
}
|
|
406
|
+
var ClearButton = react.memo(ClearButtonFn);
|
|
399
407
|
function MultiSchemaFieldTemplate(props) {
|
|
400
408
|
const { selector, optionSchemaField } = props;
|
|
401
409
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -492,7 +500,8 @@
|
|
|
492
500
|
size: "mini"
|
|
493
501
|
}
|
|
494
502
|
);
|
|
495
|
-
}
|
|
503
|
+
}
|
|
504
|
+
if (onRemoveClick) {
|
|
496
505
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
497
506
|
RemoveButton,
|
|
498
507
|
{
|
|
@@ -571,13 +580,13 @@
|
|
|
571
580
|
className: "form-group",
|
|
572
581
|
hasFeedback: true,
|
|
573
582
|
fluid: true,
|
|
574
|
-
htmlFor:
|
|
583
|
+
htmlFor: id,
|
|
575
584
|
label: displayLabel ? keyLabel : void 0,
|
|
576
585
|
required,
|
|
577
586
|
defaultValue: label,
|
|
578
587
|
disabled: disabled || readonlyAsDisabled && readonly,
|
|
579
|
-
id
|
|
580
|
-
name:
|
|
588
|
+
id,
|
|
589
|
+
name: id,
|
|
581
590
|
onBlur: !readonly ? onKeyRenameBlur : void 0,
|
|
582
591
|
style: wrapperStyle,
|
|
583
592
|
type: "text"
|
|
@@ -659,21 +668,21 @@
|
|
|
659
668
|
inverted: "false"
|
|
660
669
|
}
|
|
661
670
|
});
|
|
662
|
-
const
|
|
671
|
+
const handleChange = (index) => ({ target: { checked } }) => {
|
|
663
672
|
if (checked) {
|
|
664
673
|
onChange(utils.enumOptionsSelectValue(index, checkboxesValues, enumOptions));
|
|
665
674
|
} else {
|
|
666
675
|
onChange(utils.enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
|
|
667
676
|
}
|
|
668
677
|
};
|
|
669
|
-
const
|
|
670
|
-
const
|
|
678
|
+
const handleBlur = () => onBlur(id, value);
|
|
679
|
+
const handleFocus = () => onFocus(id, value);
|
|
671
680
|
const inlineOption = inline ? { inline: true } : { grouped: true };
|
|
672
681
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
673
682
|
!hideLabel && !!label && /* @__PURE__ */ jsxRuntime.jsx(TitleFieldTemplate, { id: utils.titleId(id), title: label, schema, uiSchema, registry }),
|
|
674
683
|
/* @__PURE__ */ jsxRuntime.jsx(semanticUiReact.Form.Group, { id, name: htmlName || id, ...inlineOption, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
|
|
675
684
|
const checked = utils.enumOptionsIsSelected(option.value, checkboxesValues);
|
|
676
|
-
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.
|
|
685
|
+
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);
|
|
677
686
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
678
687
|
semanticUiReact.Form.Checkbox,
|
|
679
688
|
{
|
|
@@ -685,12 +694,12 @@
|
|
|
685
694
|
error: rawErrors.length > 0,
|
|
686
695
|
disabled: disabled || itemDisabled || readonly,
|
|
687
696
|
autoFocus: autofocus && index === 0,
|
|
688
|
-
onChange:
|
|
689
|
-
onBlur:
|
|
690
|
-
onFocus:
|
|
697
|
+
onChange: handleChange(index),
|
|
698
|
+
onBlur: handleBlur,
|
|
699
|
+
onFocus: handleFocus,
|
|
691
700
|
"aria-describedby": utils.ariaDescribedByIds(id)
|
|
692
701
|
},
|
|
693
|
-
|
|
702
|
+
String(option.value)
|
|
694
703
|
);
|
|
695
704
|
}) })
|
|
696
705
|
] });
|
|
@@ -728,10 +737,10 @@
|
|
|
728
737
|
options
|
|
729
738
|
);
|
|
730
739
|
const required = utils.schemaRequiresTrueValue(schema);
|
|
731
|
-
const checked = value
|
|
732
|
-
const
|
|
733
|
-
const
|
|
734
|
-
const
|
|
740
|
+
const checked = value === "true" || value === true;
|
|
741
|
+
const handleChange = (_, data) => onChange && onChange(data.checked);
|
|
742
|
+
const handleBlur = () => onBlur && onBlur(id, value);
|
|
743
|
+
const handleFocus = () => onFocus && onFocus(id, value);
|
|
735
744
|
const description = options.description ?? schema.description;
|
|
736
745
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
737
746
|
!hideLabel && description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -754,9 +763,9 @@
|
|
|
754
763
|
...semanticProps,
|
|
755
764
|
checked: typeof value === "undefined" ? false : checked,
|
|
756
765
|
error: rawErrors.length > 0,
|
|
757
|
-
onChange:
|
|
758
|
-
onBlur:
|
|
759
|
-
onFocus:
|
|
766
|
+
onChange: handleChange,
|
|
767
|
+
onBlur: handleBlur,
|
|
768
|
+
onFocus: handleFocus,
|
|
760
769
|
required,
|
|
761
770
|
label: utils.labelValue(label, hideLabel, false),
|
|
762
771
|
"aria-describedby": utils.ariaDescribedByIds(id)
|
|
@@ -787,15 +796,13 @@
|
|
|
787
796
|
options,
|
|
788
797
|
uiSchema
|
|
789
798
|
});
|
|
790
|
-
const
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
const _onBlur = () => onBlur(id, value);
|
|
794
|
-
const _onFocus = () => onFocus(id, value);
|
|
799
|
+
const handleChange = (_, { value: eventValue }) => onChange(utils.enumOptionValueDecoder(String(eventValue), enumOptions, optionValueFormat, emptyValue));
|
|
800
|
+
const handleBlur = () => onBlur(id, value);
|
|
801
|
+
const handleFocus = () => onFocus(id, value);
|
|
795
802
|
const inlineOption = options.inline ? { inline: true } : { grouped: true };
|
|
796
803
|
return /* @__PURE__ */ jsxRuntime.jsx(semanticUiReact.Form.Group, { ...inlineOption, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
|
|
797
804
|
const checked = utils.enumOptionsIsSelected(option.value, value);
|
|
798
|
-
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.
|
|
805
|
+
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);
|
|
799
806
|
return /* @__PURE__ */ react.createElement(
|
|
800
807
|
semanticUiReact.Form.Field,
|
|
801
808
|
{
|
|
@@ -804,13 +811,13 @@
|
|
|
804
811
|
id: utils.optionId(id, index),
|
|
805
812
|
name: htmlName || id,
|
|
806
813
|
...semanticProps,
|
|
807
|
-
onFocus:
|
|
808
|
-
onBlur:
|
|
809
|
-
onChange:
|
|
814
|
+
onFocus: handleFocus,
|
|
815
|
+
onBlur: handleBlur,
|
|
816
|
+
onChange: handleChange,
|
|
810
817
|
label: option.label,
|
|
811
818
|
value: utils.enumOptionValueEncoder(option.value, index, optionValueFormat),
|
|
812
819
|
error: rawErrors.length > 0,
|
|
813
|
-
key:
|
|
820
|
+
key: String(option.value),
|
|
814
821
|
checked,
|
|
815
822
|
disabled: disabled || itemDisabled || readonly,
|
|
816
823
|
"aria-describedby": utils.ariaDescribedByIds(id)
|
|
@@ -842,9 +849,9 @@
|
|
|
842
849
|
fluid: true
|
|
843
850
|
}
|
|
844
851
|
});
|
|
845
|
-
const
|
|
846
|
-
const
|
|
847
|
-
const
|
|
852
|
+
const handleChange = ({ target: { value: value2 } }) => onChange && onChange(value2 === "" ? options.emptyValue : value2);
|
|
853
|
+
const handleBlur = () => onBlur && onBlur(id, value);
|
|
854
|
+
const handleFocus = () => onFocus && onFocus(id, value);
|
|
848
855
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
849
856
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
850
857
|
semanticUiReact.Input,
|
|
@@ -858,9 +865,9 @@
|
|
|
858
865
|
...semanticProps,
|
|
859
866
|
value: value || "",
|
|
860
867
|
error: rawErrors.length > 0,
|
|
861
|
-
onChange:
|
|
862
|
-
onBlur:
|
|
863
|
-
onFocus:
|
|
868
|
+
onChange: handleChange,
|
|
869
|
+
onBlur: handleBlur,
|
|
870
|
+
onFocus: handleFocus,
|
|
864
871
|
"aria-describedby": utils.ariaDescribedByIds(id)
|
|
865
872
|
},
|
|
866
873
|
id
|
|
@@ -871,7 +878,7 @@
|
|
|
871
878
|
function createDefaultValueOptionsForDropDown(enumOptions, enumDisabled, showPlaceholderOption, placeholder, format = "indexed") {
|
|
872
879
|
const disabledOptions = enumDisabled || [];
|
|
873
880
|
const options = map(enumOptions, ({ label, value }, index) => ({
|
|
874
|
-
disabled: disabledOptions.
|
|
881
|
+
disabled: disabledOptions.includes(value),
|
|
875
882
|
key: label,
|
|
876
883
|
text: label,
|
|
877
884
|
value: utils.enumOptionValueEncoder(value, index, format)
|
|
@@ -926,9 +933,9 @@
|
|
|
926
933
|
placeholder,
|
|
927
934
|
optionValueFormat
|
|
928
935
|
);
|
|
929
|
-
const
|
|
930
|
-
const
|
|
931
|
-
const
|
|
936
|
+
const handleChange = (_, { value: enumValue }) => onChange(utils.enumOptionValueDecoder(enumValue, enumOptions, optionValueFormat, optEmptyVal));
|
|
937
|
+
const handleBlur = (_, { target }) => onBlur(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, optEmptyVal));
|
|
938
|
+
const handleFocus = (_, { target }) => onFocus(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, optEmptyVal));
|
|
932
939
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
933
940
|
semanticUiReact.Form.Dropdown,
|
|
934
941
|
{
|
|
@@ -945,9 +952,9 @@
|
|
|
945
952
|
autoFocus: autofocus,
|
|
946
953
|
readOnly: readonly,
|
|
947
954
|
options: dropdownOptions,
|
|
948
|
-
onChange:
|
|
949
|
-
onBlur:
|
|
950
|
-
onFocus:
|
|
955
|
+
onChange: handleChange,
|
|
956
|
+
onBlur: handleBlur,
|
|
957
|
+
onFocus: handleFocus,
|
|
951
958
|
"aria-describedby": utils.ariaDescribedByIds(id)
|
|
952
959
|
},
|
|
953
960
|
id
|
|
@@ -977,9 +984,9 @@
|
|
|
977
984
|
options,
|
|
978
985
|
defaultSchemaProps: { inverted: "false" }
|
|
979
986
|
});
|
|
980
|
-
const
|
|
981
|
-
const
|
|
982
|
-
const
|
|
987
|
+
const handleChange = ({ target: { value: value2 } }) => onChange && onChange(value2 === "" ? options.emptyValue : value2);
|
|
988
|
+
const handleBlur = () => onBlur && onBlur(id, value);
|
|
989
|
+
const handleFocus = () => onFocus && onFocus(id, value);
|
|
983
990
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
984
991
|
semanticUiReact.Form.TextArea,
|
|
985
992
|
{
|
|
@@ -994,9 +1001,9 @@
|
|
|
994
1001
|
value: value || "",
|
|
995
1002
|
error: rawErrors.length > 0,
|
|
996
1003
|
rows: options.rows || 5,
|
|
997
|
-
onChange:
|
|
998
|
-
onBlur:
|
|
999
|
-
onFocus:
|
|
1004
|
+
onChange: handleChange,
|
|
1005
|
+
onBlur: handleBlur,
|
|
1006
|
+
onFocus: handleFocus,
|
|
1000
1007
|
"aria-describedby": utils.ariaDescribedByIds(id)
|
|
1001
1008
|
},
|
|
1002
1009
|
id
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
|
-
import { SemanticIconButtonProps } from '../IconButton/index.js';
|
|
1
|
+
import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
|
+
import type { SemanticIconButtonProps } from '../IconButton/index.js';
|
|
3
3
|
/** The `AddButton` renders a button that represent the `Add` action on a form
|
|
4
4
|
*/
|
|
5
5
|
export default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ uiSchema, registry, color, ...props }: SemanticIconButtonProps<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":";
|
|
1
|
+
{"version":3,"file":"AddButton.js","sourceRoot":"","sources":["../../src/AddButton/AddButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAIjD;GACG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAoF,EACnH,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACyB;IACjC,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IACrC,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,aAAa,CAAC,EACxD,KAAK,EAAE,KAA6B,EACpC,IAAI,EAAC,MAAM,KACP,KAAK,EACT,IAAI,kBAEJ,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG,GACb,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.
|
|
3
3
|
*
|
|
4
4
|
* @param props - The `ArrayFieldItemTemplateProps` props for the component
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getUiOptions, getTemplate
|
|
2
|
+
import { getUiOptions, getTemplate } from '@rjsf/utils';
|
|
3
3
|
import { Button, Grid, Segment } from 'semantic-ui-react';
|
|
4
4
|
import { getSemanticProps, MaybeWrap } from '../util.js';
|
|
5
5
|
const gridStyle = (vertical) => ({
|
|
@@ -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":";AACA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,SAAS,GAAG,CAAC,QAAiB,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,EAAE,MAAM;IACf,mBAAmB,EAAE,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI;CACpD,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAI5C,KAA2C;IAC3C,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,GAC5G,KAAK,CAAC;IACR,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,aAAa,GAAG,gBAAgB,CAAU;QAC9C,QAAQ,EAAE,cAAc;QACxB,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,kBAAkB,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE;KACjE,CAAC,CAAC;IACH,MAAM,EAAE,iBAAiB,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,aAAa,CAAC;IACrE,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,OAAO,CACL,cAAK,SAAS,EAAC,iBAAiB,YAC9B,KAAC,SAAS,IAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,YAC3C,MAAC,IAAI,IAAC,KAAK,EAAE,EAAE,GAAG,SAAS,CAAC,CAAC,iBAAiB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,aACrE,KAAC,IAAI,CAAC,MAAM,IAAC,KAAK,EAAE,EAAE,EAAE,aAAa,EAAC,QAAQ,YAC3C,QAAQ,GACG,EACb,UAAU,IAAI,CACb,KAAC,IAAI,CAAC,MAAM,cACV,KAAC,MAAM,CAAC,KAAK,IACX,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,CAAC,iBAAiB,EAC5B,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,YAE9D,KAAC,6BAA6B,OAAK,YAAY,GAAI,GACtC,GACH,CACf,IACI,GACG,GACR,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
/** The `ArrayFieldTemplate` component is the template used to render all items in an array.
|
|
3
3
|
*
|
|
4
4
|
* @param props - The `ArrayFieldTemplateProps` props for the component
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getTemplate, getUiOptions, isFixedItems, buttonId
|
|
2
|
+
import { getTemplate, getUiOptions, isFixedItems, buttonId } from '@rjsf/utils';
|
|
3
3
|
import { cleanClassNames } from '../util.js';
|
|
4
4
|
/** The `ArrayFieldTemplate` component is the template used to render all items in an array.
|
|
5
5
|
*
|
|
@@ -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,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,KAAuC;IACvC,MAAM,EACJ,QAAQ,EACR,WAAW,EACX,MAAM,EACN,SAAS;IACT,4EAA4E;IAC5E,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,UAAU;IACV,yEAAyE;IACzE,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,GACT,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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AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.
|
|
3
3
|
* It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.
|
|
4
4
|
* It can be customized/overridden for other themes or individual implementations as needed.
|
|
@@ -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, labelValue
|
|
4
|
+
import { ariaDescribedByIds, examplesId, getInputProps, labelValue } from '@rjsf/utils';
|
|
5
5
|
import { Form } from 'semantic-ui-react';
|
|
6
6
|
import { getSemanticProps } from '../util.js';
|
|
7
7
|
/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.
|
|
@@ -19,15 +19,15 @@ export default function BaseInputTemplate(props) {
|
|
|
19
19
|
formContext: registry.formContext,
|
|
20
20
|
options,
|
|
21
21
|
});
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
22
|
+
const handleChange = ({ target: { value: newValue } }) => onChange(newValue === '' ? options.emptyValue : newValue);
|
|
23
|
+
const handleBlur = () => onBlur && onBlur(id, value);
|
|
24
|
+
const handleFocus = () => onFocus && onFocus(id, value);
|
|
25
|
+
const handleClear = useCallback((e) => {
|
|
26
26
|
var _a;
|
|
27
27
|
e.preventDefault();
|
|
28
28
|
e.stopPropagation();
|
|
29
29
|
onChange((_a = options.emptyValue) !== null && _a !== void 0 ? _a : '');
|
|
30
30
|
}, [onChange, options.emptyValue]);
|
|
31
|
-
return (_jsxs(_Fragment, { children: [_jsx(Form.Input, { id: id, name: htmlName || id, placeholder: placeholder, ...inputProps, label: labelValue(label || undefined, hideLabel, false), required: required, autoFocus: autofocus, disabled: disabled || readonly, list: schema.examples ? examplesId(id) : undefined, ...semanticProps, value: value || value === 0 ? value : '', error: rawErrors.length > 0, onChange: onChangeOverride ||
|
|
31
|
+
return (_jsxs(_Fragment, { children: [_jsx(Form.Input, { id: id, name: htmlName || id, placeholder: placeholder, ...inputProps, label: labelValue(label || undefined, hideLabel, false), required: required, autoFocus: autofocus, disabled: disabled || readonly, list: schema.examples ? examplesId(id) : undefined, ...semanticProps, value: value || value === 0 ? value : '', error: rawErrors.length > 0, onChange: onChangeOverride || handleChange, onBlur: handleBlur, onFocus: handleFocus, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }, id), options.allowClearTextInputs && !readonly && !disabled && value && (_jsx(ClearButton, { registry: registry, onClick: handleClear })), _jsx(SchemaExamples, { id: id, schema: schema })] }));
|
|
32
32
|
}
|
|
33
33
|
//# 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":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,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AAU,CAAC,CAC/B,CAAC;IAEF,OAAO,CACL,8BACE,KAAC,IAAI,CAAC,KAAK,IAET,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,QAAQ,IAAI,EAAE,EACpB,WAAW,EAAE,WAAW,KACpB,UAAU,EACd,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,EACvD,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,KAC9C,aAAa,EACjB,KAAK,EAAE,KAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EACxC,KAAK,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,EAC3B,QAAQ,EAAE,gBAAgB,IAAI,YAAY,EAC1C,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,WAAW,sBACF,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAhBtD,EAAE,CAiBP,EACD,OAAO,CAAC,oBAAoB,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,KAAK,IAAI,CAClE,KAAC,WAAW,IAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,GAAI,CAC1D,EACD,KAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,GAAI,IACzC,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
|
|
1
|
+
import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
|
|
2
2
|
/** The `CheckBoxWidget` is a widget for rendering boolean properties.
|
|
3
3
|
* It is typically used to represent a boolean.
|
|
4
4
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, 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 'semantic-ui-react';
|
|
4
4
|
import { getSemanticProps } from '../util.js';
|
|
5
5
|
/** The `CheckBoxWidget` is a widget for rendering boolean properties.
|
|
@@ -23,11 +23,11 @@ export default function CheckboxWidget(props) {
|
|
|
23
23
|
// the "required" attribute if the field value must be "true", due to the
|
|
24
24
|
// "const" or "enum" keywords
|
|
25
25
|
const required = schemaRequiresTrueValue(schema);
|
|
26
|
-
const checked = value
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
26
|
+
const checked = value === 'true' || value === true;
|
|
27
|
+
const handleChange = (_, data) => onChange && onChange(data.checked);
|
|
28
|
+
const handleBlur = () => onBlur && onBlur(id, value);
|
|
29
|
+
const handleFocus = () => onFocus && onFocus(id, value);
|
|
30
30
|
const description = (_a = options.description) !== null && _a !== void 0 ? _a : schema.description;
|
|
31
|
-
return (_jsxs(_Fragment, { children: [!hideLabel && description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(id), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsx(Form.Checkbox, { id: id, name: htmlName || id, disabled: disabled || readonly, autoFocus: autofocus, ...semanticProps, checked: typeof value === 'undefined' ? false : checked, error: rawErrors.length > 0, onChange:
|
|
31
|
+
return (_jsxs(_Fragment, { children: [!hideLabel && description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(id), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsx(Form.Checkbox, { id: id, name: htmlName || id, disabled: disabled || readonly, autoFocus: autofocus, ...semanticProps, checked: typeof value === 'undefined' ? false : checked, error: rawErrors.length > 0, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, required: required, label: labelValue(label, hideLabel, false), "aria-describedby": ariaDescribedByIds(id) })] }));
|
|
32
32
|
}
|
|
33
33
|
//# 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;AAElH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAIpC,KAA2B;;IAC3B,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,SAAS,EACT,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,aAAa,GAAG,gBAAgB,CAAU;QAC9C,OAAO;QACP,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,QAAQ;QACR,kBAAkB,EAAE;YAClB,QAAQ,EAAE,OAAO;SAClB;KACF,CAAC,CAAC;IACH,MAAM,wBAAwB,GAAG,WAAW,CAC1C,0BAA0B,EAC1B,QAAQ,EACR,OAAO,CACR,CAAC;IACF,8EAA8E;IAC9E,yEAAyE;IACzE,6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,CAAC,sBACxB,kBAAkB,CAAC,EAAE,CAAC,GACxC,IACD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
|
|
1
|
+
import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
|
|
2
2
|
/** The `CheckboxesWidget` is a widget for rendering checkbox groups.
|
|
3
3
|
* It is typically used to represent an array of enums.
|
|
4
4
|
*
|
|
@@ -20,8 +20,8 @@ export default function CheckboxesWidget(props) {
|
|
|
20
20
|
inverted: 'false',
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
//
|
|
23
|
+
const handleChange = (index) => ({ target: { checked } }) => {
|
|
24
|
+
// oxlint-disable-next-line no-shadow
|
|
25
25
|
if (checked) {
|
|
26
26
|
onChange(enumOptionsSelectValue(index, checkboxesValues, enumOptions));
|
|
27
27
|
}
|
|
@@ -29,14 +29,14 @@ export default function CheckboxesWidget(props) {
|
|
|
29
29
|
onChange(enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const
|
|
33
|
-
const
|
|
32
|
+
const handleBlur = () => onBlur(id, value);
|
|
33
|
+
const handleFocus = () => onFocus(id, value);
|
|
34
34
|
const inlineOption = inline ? { inline: true } : { grouped: true };
|
|
35
35
|
return (_jsxs(_Fragment, { children: [!hideLabel && !!label && (_jsx(TitleFieldTemplate, { id: titleId(id), title: label, schema: schema, uiSchema: uiSchema, registry: registry })), _jsx(Form.Group, { id: id, name: htmlName || id, ...inlineOption, children: Array.isArray(enumOptions) &&
|
|
36
36
|
enumOptions.map((option, index) => {
|
|
37
37
|
const checked = enumOptionsIsSelected(option.value, checkboxesValues);
|
|
38
|
-
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.
|
|
39
|
-
return (_jsx(Form.Checkbox, { id: optionId(id, index), name: htmlName || id, label: option.label, ...semanticProps, checked: checked, error: rawErrors.length > 0, disabled: disabled || itemDisabled || readonly, autoFocus: autofocus && index === 0, onChange:
|
|
38
|
+
const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);
|
|
39
|
+
return (_jsx(Form.Checkbox, { id: optionId(id, index), name: htmlName || id, label: option.label, ...semanticProps, checked: checked, error: rawErrors.length > 0, disabled: disabled || itemDisabled || readonly, autoFocus: autofocus && index === 0, onChange: handleChange(index), onBlur: handleBlur, onFocus: handleFocus, "aria-describedby": ariaDescribedByIds(id) }, String(option.value)));
|
|
40
40
|
}) })] }));
|
|
41
41
|
}
|
|
42
42
|
//# 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,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,OAAO,GACR,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAItC,KAA2B;IAC3B,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,EACT,QAAQ,EACR,KAAK,EACL,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,kBAAkB,GAAG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'@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,4 +1,4 @@
|
|
|
1
|
-
import { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
1
|
+
import type { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`
|
|
3
3
|
*
|
|
4
4
|
* @param props - The `ErrorListProps` for this component
|
|
@@ -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,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAoF,EACnH,MAAM,EACN,QAAQ,GACgB;IACxB,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IACrC,OAAO,CACL,MAAC,OAAO,IAAC,QAAQ,mBACf,KAAC,OAAO,CAAC,MAAM,cAAE,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,GAAkB,EAClF,KAAC,OAAO,CAAC,IAAI,cACV,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAE5B,KAAC,OAAO,CAAC,IAAI,cAAyB,KAAK,CAAC,KAAK,IAA9B,SAAS,KAAK,EAAE,CAA8B,CAClE,CAAC,GACW,IACP,CACX,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
|
|
@@ -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,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,eAAe,GAAG;IACtB,OAAO,EAAE;QACP,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,OAAO;KACd;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAA4B;IACrE,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAC;IACjC,MAAM,OAAO,GAAG,qBAAqB,CAAU;QAC7C,WAAW;QACX,QAAQ;QACR,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;IACH,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACnC,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChC,MA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