@rjsf/mantine 6.4.2 → 6.5.1
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 +59 -45
- package/dist/index.cjs.map +2 -2
- package/dist/mantine.esm.js +69 -49
- package/dist/mantine.esm.js.map +3 -3
- package/dist/mantine.umd.js +59 -45
- package/lib/Form/index.js +1 -1
- package/lib/Theme/index.js +2 -2
- package/lib/index.d.ts +4 -4
- package/lib/index.js +4 -4
- package/lib/templates/BaseInputTemplate.js +3 -2
- package/lib/templates/BaseInputTemplate.js.map +1 -1
- package/lib/templates/ButtonTemplates/AddButton.js +2 -2
- package/lib/templates/ButtonTemplates/IconButton.js +1 -1
- package/lib/templates/ButtonTemplates/index.js +3 -3
- package/lib/templates/ErrorList.js +1 -1
- package/lib/templates/OptionalDataControlsTemplate.js +2 -2
- package/lib/templates/WrapIfAdditionalTemplate.js +1 -1
- package/lib/templates/WrapIfAdditionalTemplate.js.map +1 -1
- package/lib/templates/index.js +16 -16
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/widgets/CheckboxesWidget.js +10 -9
- package/lib/widgets/CheckboxesWidget.js.map +1 -1
- package/lib/widgets/ColorWidget.js +1 -1
- package/lib/widgets/DateTime/DateTimeWidget.js +1 -1
- package/lib/widgets/DateTime/DateWidget.js +1 -1
- package/lib/widgets/DateTime/index.d.ts +5 -5
- package/lib/widgets/DateTime/index.js +5 -5
- package/lib/widgets/FileWidget.js +1 -1
- package/lib/widgets/PasswordWidget.js +1 -1
- package/lib/widgets/RadioWidget.js +10 -9
- package/lib/widgets/RadioWidget.js.map +1 -1
- package/lib/widgets/RangeWidget.js +1 -1
- package/lib/widgets/SelectWidget.js +30 -13
- package/lib/widgets/SelectWidget.js.map +1 -1
- package/lib/widgets/TextareaWidget.js +1 -1
- package/lib/widgets/index.js +10 -10
- package/package.json +10 -10
- package/src/templates/BaseInputTemplate.tsx +5 -1
- package/src/templates/WrapIfAdditionalTemplate.tsx +1 -0
- package/src/widgets/CheckboxesWidget.tsx +11 -8
- package/src/widgets/RadioWidget.tsx +11 -8
- package/src/widgets/SelectWidget.tsx +40 -32
package/dist/mantine.umd.js
CHANGED
|
@@ -214,17 +214,20 @@
|
|
|
214
214
|
error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
|
|
215
215
|
list: schema.examples ? utils.examplesId(id) : void 0
|
|
216
216
|
};
|
|
217
|
+
const { min, max, ...restInputProps } = inputProps;
|
|
217
218
|
const input = inputProps.type === "number" || inputProps.type === "integer" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
218
219
|
core$1.NumberInput,
|
|
219
220
|
{
|
|
220
221
|
onChange: !readonly ? handleNumberChange : void 0,
|
|
221
222
|
...componentProps,
|
|
222
|
-
...
|
|
223
|
+
...restInputProps,
|
|
223
224
|
...themeProps,
|
|
224
225
|
step: typeof inputProps.step === "number" ? inputProps.step : 1,
|
|
225
226
|
type: "text",
|
|
226
227
|
description,
|
|
227
228
|
value,
|
|
229
|
+
min: typeof min === "number" ? min : void 0,
|
|
230
|
+
max: typeof max === "number" ? max : void 0,
|
|
228
231
|
"aria-describedby": utils.ariaDescribedByIds(id, !!schema.examples)
|
|
229
232
|
}
|
|
230
233
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -741,7 +744,8 @@
|
|
|
741
744
|
id: `${id}-key`,
|
|
742
745
|
name: `${id}-key`,
|
|
743
746
|
onBlur: !readonly ? onKeyRenameBlur : void 0
|
|
744
|
-
}
|
|
747
|
+
},
|
|
748
|
+
label
|
|
745
749
|
) }),
|
|
746
750
|
/* @__PURE__ */ jsxRuntime.jsx(core$1.Grid.Col, { span: 6, className: "form-additional", children })
|
|
747
751
|
] }),
|
|
@@ -1003,30 +1007,31 @@
|
|
|
1003
1007
|
onFocus
|
|
1004
1008
|
} = props;
|
|
1005
1009
|
const { enumOptions, enumDisabled, inline, emptyValue } = options;
|
|
1010
|
+
const optionValueFormat = utils.getOptionValueFormat(options);
|
|
1006
1011
|
const themeProps = cleanupOptions(options);
|
|
1007
1012
|
const handleChange = react.useCallback(
|
|
1008
1013
|
(nextValue) => {
|
|
1009
1014
|
if (!disabled && !readonly && onChange) {
|
|
1010
|
-
onChange(utils.
|
|
1015
|
+
onChange(utils.enumOptionValueDecoder(nextValue, enumOptions, optionValueFormat, emptyValue));
|
|
1011
1016
|
}
|
|
1012
1017
|
},
|
|
1013
|
-
[onChange, disabled, readonly, enumOptions, emptyValue]
|
|
1018
|
+
[onChange, disabled, readonly, enumOptions, emptyValue, optionValueFormat]
|
|
1014
1019
|
);
|
|
1015
1020
|
const handleBlur = react.useCallback(
|
|
1016
1021
|
({ target }) => {
|
|
1017
1022
|
if (onBlur) {
|
|
1018
|
-
onBlur(id, utils.
|
|
1023
|
+
onBlur(id, utils.enumOptionValueDecoder(target.value, enumOptions, optionValueFormat, emptyValue));
|
|
1019
1024
|
}
|
|
1020
1025
|
},
|
|
1021
|
-
[onBlur, id, enumOptions, emptyValue]
|
|
1026
|
+
[onBlur, id, enumOptions, emptyValue, optionValueFormat]
|
|
1022
1027
|
);
|
|
1023
1028
|
const handleFocus = react.useCallback(
|
|
1024
1029
|
({ target }) => {
|
|
1025
1030
|
if (onFocus) {
|
|
1026
|
-
onFocus(id, utils.
|
|
1031
|
+
onFocus(id, utils.enumOptionValueDecoder(target.value, enumOptions, optionValueFormat, emptyValue));
|
|
1027
1032
|
}
|
|
1028
1033
|
},
|
|
1029
|
-
[onFocus, id, enumOptions, emptyValue]
|
|
1034
|
+
[onFocus, id, enumOptions, emptyValue, optionValueFormat]
|
|
1030
1035
|
);
|
|
1031
1036
|
const selectedIndexes = utils.enumOptionsIndexForValue(value, enumOptions, true);
|
|
1032
1037
|
return Array.isArray(enumOptions) && enumOptions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -1047,7 +1052,7 @@
|
|
|
1047
1052
|
{
|
|
1048
1053
|
id: utils.optionId(id, i),
|
|
1049
1054
|
name: htmlName || id,
|
|
1050
|
-
value:
|
|
1055
|
+
value: utils.enumOptionValueEncoder(option.value, i, optionValueFormat),
|
|
1051
1056
|
label: option.label,
|
|
1052
1057
|
disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1,
|
|
1053
1058
|
autoFocus: i === 0 && autofocus,
|
|
@@ -1336,30 +1341,31 @@
|
|
|
1336
1341
|
onFocus
|
|
1337
1342
|
} = props;
|
|
1338
1343
|
const { enumOptions, enumDisabled, inline, emptyValue } = options;
|
|
1344
|
+
const optionValueFormat = utils.getOptionValueFormat(options);
|
|
1339
1345
|
const themeProps = cleanupOptions(options);
|
|
1340
1346
|
const handleChange = react.useCallback(
|
|
1341
1347
|
(nextValue) => {
|
|
1342
1348
|
if (!disabled && !readonly && onChange) {
|
|
1343
|
-
onChange(utils.
|
|
1349
|
+
onChange(utils.enumOptionValueDecoder(nextValue, enumOptions, optionValueFormat, emptyValue));
|
|
1344
1350
|
}
|
|
1345
1351
|
},
|
|
1346
|
-
[onChange, disabled, readonly, enumOptions, emptyValue]
|
|
1352
|
+
[onChange, disabled, readonly, enumOptions, emptyValue, optionValueFormat]
|
|
1347
1353
|
);
|
|
1348
1354
|
const handleBlur = react.useCallback(
|
|
1349
1355
|
({ target }) => {
|
|
1350
1356
|
if (onBlur) {
|
|
1351
|
-
onBlur(id, utils.
|
|
1357
|
+
onBlur(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
1352
1358
|
}
|
|
1353
1359
|
},
|
|
1354
|
-
[onBlur, id, enumOptions, emptyValue]
|
|
1360
|
+
[onBlur, id, enumOptions, emptyValue, optionValueFormat]
|
|
1355
1361
|
);
|
|
1356
1362
|
const handleFocus = react.useCallback(
|
|
1357
1363
|
({ target }) => {
|
|
1358
1364
|
if (onFocus) {
|
|
1359
|
-
onFocus(id, utils.
|
|
1365
|
+
onFocus(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
1360
1366
|
}
|
|
1361
1367
|
},
|
|
1362
|
-
[onFocus, id, enumOptions, emptyValue]
|
|
1368
|
+
[onFocus, id, enumOptions, emptyValue, optionValueFormat]
|
|
1363
1369
|
);
|
|
1364
1370
|
const selected = utils.enumOptionsIndexForValue(value, enumOptions);
|
|
1365
1371
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1379,7 +1385,7 @@
|
|
|
1379
1385
|
core$1.Radio,
|
|
1380
1386
|
{
|
|
1381
1387
|
id: utils.optionId(id, i),
|
|
1382
|
-
value:
|
|
1388
|
+
value: utils.enumOptionValueEncoder(option.value, i, optionValueFormat),
|
|
1383
1389
|
label: option.label,
|
|
1384
1390
|
disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1,
|
|
1385
1391
|
autoFocus: i === 0 && autofocus,
|
|
@@ -1473,64 +1479,72 @@
|
|
|
1473
1479
|
onFocus
|
|
1474
1480
|
} = props;
|
|
1475
1481
|
const { enumOptions, enumDisabled, emptyValue } = options;
|
|
1482
|
+
const optionValueFormat = utils.getOptionValueFormat(options);
|
|
1476
1483
|
const themeProps = cleanupOptions(options);
|
|
1477
1484
|
const handleChange = react.useCallback(
|
|
1478
1485
|
(nextValue) => {
|
|
1479
1486
|
if (!disabled && !readonly && onChange) {
|
|
1480
|
-
onChange(utils.
|
|
1487
|
+
onChange(utils.enumOptionValueDecoder(nextValue, enumOptions, optionValueFormat, emptyValue));
|
|
1481
1488
|
}
|
|
1482
1489
|
},
|
|
1483
|
-
[onChange, disabled, readonly, enumOptions, emptyValue]
|
|
1490
|
+
[onChange, disabled, readonly, enumOptions, emptyValue, optionValueFormat]
|
|
1484
1491
|
);
|
|
1485
1492
|
const handleBlur = react.useCallback(
|
|
1486
1493
|
({ target }) => {
|
|
1487
1494
|
if (onBlur) {
|
|
1488
|
-
onBlur(id, utils.
|
|
1495
|
+
onBlur(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
1489
1496
|
}
|
|
1490
1497
|
},
|
|
1491
|
-
[onBlur, id, enumOptions, emptyValue]
|
|
1498
|
+
[onBlur, id, enumOptions, emptyValue, optionValueFormat]
|
|
1492
1499
|
);
|
|
1493
1500
|
const handleFocus = react.useCallback(
|
|
1494
1501
|
({ target }) => {
|
|
1495
1502
|
if (onFocus) {
|
|
1496
|
-
onFocus(id, utils.
|
|
1503
|
+
onFocus(id, utils.enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
|
|
1497
1504
|
}
|
|
1498
1505
|
},
|
|
1499
|
-
[onFocus, id, enumOptions, emptyValue]
|
|
1506
|
+
[onFocus, id, enumOptions, emptyValue, optionValueFormat]
|
|
1500
1507
|
);
|
|
1501
|
-
const selectedIndexes = utils.enumOptionsIndexForValue(value, enumOptions, multiple);
|
|
1502
1508
|
const selectOptions = react.useMemo(() => {
|
|
1503
1509
|
if (Array.isArray(enumOptions)) {
|
|
1504
1510
|
return enumOptions.map((option, index) => ({
|
|
1505
1511
|
key: String(index),
|
|
1506
|
-
value:
|
|
1512
|
+
value: utils.enumOptionValueEncoder(option.value, index, optionValueFormat),
|
|
1507
1513
|
label: option.label,
|
|
1508
1514
|
disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1
|
|
1509
1515
|
}));
|
|
1510
1516
|
}
|
|
1511
1517
|
return [];
|
|
1512
|
-
}, [enumDisabled, enumOptions]);
|
|
1513
|
-
const
|
|
1514
|
-
|
|
1515
|
-
|
|
1518
|
+
}, [enumDisabled, enumOptions, optionValueFormat]);
|
|
1519
|
+
const sharedProps = {
|
|
1520
|
+
id,
|
|
1521
|
+
name: htmlName || id,
|
|
1522
|
+
label: utils.labelValue(label || void 0, hideLabel, false),
|
|
1523
|
+
data: selectOptions,
|
|
1524
|
+
onChange: !readonly ? handleChange : void 0,
|
|
1525
|
+
onBlur: !readonly ? handleBlur : void 0,
|
|
1526
|
+
onFocus: !readonly ? handleFocus : void 0,
|
|
1527
|
+
autoFocus: autofocus,
|
|
1528
|
+
placeholder,
|
|
1529
|
+
disabled: disabled || readonly,
|
|
1530
|
+
required,
|
|
1531
|
+
error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
|
|
1532
|
+
searchable: true,
|
|
1533
|
+
"aria-describedby": utils.ariaDescribedByIds(id),
|
|
1534
|
+
comboboxProps: { withinPortal: false },
|
|
1535
|
+
...themeProps
|
|
1536
|
+
};
|
|
1537
|
+
return multiple ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1538
|
+
core$1.MultiSelect,
|
|
1516
1539
|
{
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
autoFocus: autofocus,
|
|
1526
|
-
placeholder,
|
|
1527
|
-
disabled: disabled || readonly,
|
|
1528
|
-
required,
|
|
1529
|
-
error: rawErrors && rawErrors.length > 0 ? rawErrors.join("\n") : void 0,
|
|
1530
|
-
searchable: true,
|
|
1531
|
-
...themeProps,
|
|
1532
|
-
"aria-describedby": utils.ariaDescribedByIds(id),
|
|
1533
|
-
comboboxProps: { withinPortal: false }
|
|
1540
|
+
...sharedProps,
|
|
1541
|
+
value: utils.enumOptionSelectedValue(value, enumOptions, true, optionValueFormat, [])
|
|
1542
|
+
}
|
|
1543
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1544
|
+
core$1.Select,
|
|
1545
|
+
{
|
|
1546
|
+
...sharedProps,
|
|
1547
|
+
value: utils.enumOptionSelectedValue(value, enumOptions, false, optionValueFormat, null)
|
|
1534
1548
|
}
|
|
1535
1549
|
);
|
|
1536
1550
|
}
|
package/lib/Form/index.js
CHANGED
package/lib/Theme/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { generateTemplates } from '../templates';
|
|
2
|
-
import { generateWidgets } from '../widgets';
|
|
1
|
+
import { generateTemplates } from '../templates/index.js';
|
|
2
|
+
import { generateWidgets } from '../widgets/index.js';
|
|
3
3
|
export function generateTheme() {
|
|
4
4
|
return {
|
|
5
5
|
templates: generateTemplates(),
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Form, { generateForm } from './Form';
|
|
2
|
-
import Templates, { generateTemplates } from './templates';
|
|
3
|
-
import Theme, { generateTheme } from './Theme';
|
|
4
|
-
import Widgets, { generateWidgets } from './widgets';
|
|
1
|
+
import Form, { generateForm } from './Form/index.js';
|
|
2
|
+
import Templates, { generateTemplates } from './templates/index.js';
|
|
3
|
+
import Theme, { generateTheme } from './Theme/index.js';
|
|
4
|
+
import Widgets, { generateWidgets } from './widgets/index.js';
|
|
5
5
|
export { Form, Templates, Theme, Widgets, generateForm, generateTemplates, generateTheme, generateWidgets };
|
|
6
6
|
export default Form;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Form, { generateForm } from './Form';
|
|
2
|
-
import Templates, { generateTemplates } from './templates';
|
|
3
|
-
import Theme, { generateTheme } from './Theme';
|
|
4
|
-
import Widgets, { generateWidgets } from './widgets';
|
|
1
|
+
import Form, { generateForm } from './Form/index.js';
|
|
2
|
+
import Templates, { generateTemplates } from './templates/index.js';
|
|
3
|
+
import Theme, { generateTheme } from './Theme/index.js';
|
|
4
|
+
import Widgets, { generateWidgets } from './widgets/index.js';
|
|
5
5
|
export { Form, Templates, Theme, Widgets, generateForm, generateTemplates, generateTheme, generateWidgets };
|
|
6
6
|
export default Form;
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@ import { useCallback } from 'react';
|
|
|
3
3
|
import { ariaDescribedByIds, examplesId, getInputProps, labelValue, } from '@rjsf/utils';
|
|
4
4
|
import { TextInput, NumberInput } from '@mantine/core';
|
|
5
5
|
import { SchemaExamples } from '@rjsf/core';
|
|
6
|
-
import { cleanupOptions } from '../utils';
|
|
6
|
+
import { cleanupOptions } from '../utils.js';
|
|
7
7
|
/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.
|
|
8
8
|
* It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.
|
|
9
9
|
* It can be customized/overridden for other themes or individual implementations as needed.
|
|
@@ -47,7 +47,8 @@ export default function BaseInputTemplate(props) {
|
|
|
47
47
|
error: rawErrors && rawErrors.length > 0 ? rawErrors.join('\n') : undefined,
|
|
48
48
|
list: schema.examples ? examplesId(id) : undefined,
|
|
49
49
|
};
|
|
50
|
-
const
|
|
50
|
+
const { min, max, ...restInputProps } = inputProps;
|
|
51
|
+
const input = inputProps.type === 'number' || inputProps.type === 'integer' ? (_jsx(NumberInput, { onChange: !readonly ? handleNumberChange : undefined, ...componentProps, ...restInputProps, ...themeProps, step: typeof inputProps.step === 'number' ? inputProps.step : 1, type: 'text', description: description, value: value, min: typeof min === 'number' ? min : undefined, max: typeof max === 'number' ? max : undefined, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) })) : (_jsx(TextInput, { onChange: !readonly ? handleChange : undefined, ...componentProps, ...inputProps, ...themeProps, description: description, value: value, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }));
|
|
51
52
|
return (_jsxs(_Fragment, { children: [input, options.allowClearTextInputs && !readonly && !disabled && value && (_jsx(ClearButton, { registry: registry, onClick: handleClear })), children, _jsx(SchemaExamples, { id: id, schema: schema })] }));
|
|
52
53
|
}
|
|
53
54
|
//# sourceMappingURL=BaseInputTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/templates/BaseInputTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuC,WAAW,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EACL,kBAAkB,EAElB,UAAU,EACV,aAAa,EACb,UAAU,GAIX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,W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'@rjsf/utils';
|
|
3
|
-
import IconButton from './IconButton';
|
|
4
|
-
import { Plus } from '../icons';
|
|
3
|
+
import IconButton from './IconButton.js';
|
|
4
|
+
import { Plus } from '../icons.js';
|
|
5
5
|
/** The `AddButton` renders a button that represent the `Add` action on a form
|
|
6
6
|
*/
|
|
7
7
|
export default function AddButton(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ActionIcon } from '@mantine/core';
|
|
3
3
|
import { TranslatableString } from '@rjsf/utils';
|
|
4
|
-
import { Copy, ChevronDown, ChevronUp, X } from '../icons';
|
|
4
|
+
import { Copy, ChevronDown, ChevronUp, X } from '../icons.js';
|
|
5
5
|
export default function IconButton(props) {
|
|
6
6
|
const { icon, iconType = 'sm', color, onClick, uiSchema, registry, ...otherProps } = props;
|
|
7
7
|
return (_jsx(ActionIcon, { size: iconType, color: color, onClick: onClick, ...otherProps, children: icon }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import SubmitButton from './SubmitButton';
|
|
2
|
-
import AddButton from './AddButton';
|
|
3
|
-
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from './IconButton';
|
|
1
|
+
import SubmitButton from './SubmitButton.js';
|
|
2
|
+
import AddButton from './AddButton.js';
|
|
3
|
+
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from './IconButton.js';
|
|
4
4
|
function buttonTemplates() {
|
|
5
5
|
return {
|
|
6
6
|
SubmitButton,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { TranslatableString } from '@rjsf/utils';
|
|
3
3
|
import { Alert, Title, List } from '@mantine/core';
|
|
4
|
-
import { ExclamationCircle } from './icons';
|
|
4
|
+
import { ExclamationCircle } from './icons.js';
|
|
5
5
|
/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`
|
|
6
6
|
*
|
|
7
7
|
* @param props - The `ErrorListProps` for this component
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import AddButton from './ButtonTemplates/AddButton';
|
|
3
|
-
import { RemoveButton } from './ButtonTemplates/IconButton';
|
|
2
|
+
import AddButton from './ButtonTemplates/AddButton.js';
|
|
3
|
+
import { RemoveButton } from './ButtonTemplates/IconButton.js';
|
|
4
4
|
/** The OptionalDataControlsTemplate renders one of three different states. If
|
|
5
5
|
* there is an `onAddClick()` function, it renders the "Add" button. If there is
|
|
6
6
|
* an `onRemoveClick()` function, it renders the "Remove" button. Otherwise it
|
|
@@ -22,6 +22,6 @@ export default function WrapIfAdditionalTemplate(props) {
|
|
|
22
22
|
...uiSchema,
|
|
23
23
|
[UI_OPTIONS_KEY]: { ...uiOptions, block: true },
|
|
24
24
|
};
|
|
25
|
-
return (_jsx("div", { className: classNames, style: style, children: _jsxs(Flex, { gap: 'xs', align: 'end', justify: 'center', children: [_jsxs(Grid, { w: '100%', align: 'center', children: [_jsx(Grid.Col, { span: 6, className: 'form-additional', children: _jsx(TextInput, { className: 'form-group', label: displayLabel ? keyLabel : undefined, defaultValue: label, required: required, description: rawDescription ? '\u00A0' : undefined, disabled: disabled || readonly, id: `${id}-key`, name: `${id}-key`, onBlur: !readonly ? onKeyRenameBlur : undefined }) }), _jsx(Grid.Col, { span: 6, className: 'form-additional', children: children })] }), _jsx("div", { children: _jsx(RemoveButton, { id: buttonId(id, 'remove'), iconType: 'sm', className: 'rjsf-array-item-remove', disabled: disabled || readonly, onClick: onRemoveProperty, uiSchema: buttonUiOptions, registry: registry }) })] }) }));
|
|
25
|
+
return (_jsx("div", { className: classNames, style: style, children: _jsxs(Flex, { gap: 'xs', align: 'end', justify: 'center', children: [_jsxs(Grid, { w: '100%', align: 'center', children: [_jsx(Grid.Col, { span: 6, className: 'form-additional', children: _jsx(TextInput, { className: 'form-group', label: displayLabel ? keyLabel : undefined, defaultValue: label, required: required, description: rawDescription ? '\u00A0' : undefined, disabled: disabled || readonly, id: `${id}-key`, name: `${id}-key`, onBlur: !readonly ? onKeyRenameBlur : undefined }, label) }), _jsx(Grid.Col, { span: 6, className: 'form-additional', children: children })] }), _jsx("div", { children: _jsx(RemoveButton, { id: buttonId(id, 'remove'), iconType: 'sm', className: 'rjsf-array-item-remove', disabled: disabled || readonly, onClick: onRemoveProperty, uiSchema: buttonUiOptions, registry: registry }) })] }) }));
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=WrapIfAdditionalTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WrapIfAdditionalTemplate.js","sourceRoot":"","sources":["../../src/templates/WrapIfAdditionalTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,QAAQ,EAIR,kBAAkB,GAEnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEtD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAI9C,KAA6C;IAC7C,MAAM,EACJ,EAAE,EACF,UAAU,EACV,KAAK,EACL,KAAK,EACL,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IAChD,sDAAsD;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC,eAAe,CAAC;IACnD,MAAM,QAAQ,GAAG,eAAe,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACvE,MAAM,UAAU,GAAG,wBAAwB,IAAI,MAAM,CAAC;IAEtD,IAAI,CAAC,UAAU,EA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ClD,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,EAAE,EAAE,GAAG,EAAE,MAAM,EACf,IAAI,EAAE,GAAG,EAAE,MAAM,EACjB,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,IAT1C,KAAK,CAUV,GACO,EACX,KAAC,IAAI,CAAC,GAAG,IAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAC,iBAAiB,YAC3C,QAAQ,GACA,IACN,EACP,wBACE,KAAC,YAAY,IACX,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,EAC1B,QAAQ,EAAC,IAAI,EACb,SAAS,EAAC,wBAAwB,EAClC,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,QAAQ,GAClB,GACE,IACD,GACH,CACP,CAAC;AACJ,CAAC"}
|
package/lib/templates/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import ArrayFieldItemTemplate from './ArrayFieldItemTemplate';
|
|
2
|
-
import ArrayFieldTemplate from './ArrayFieldTemplate';
|
|
3
|
-
import ArrayFieldTitleTemplate from './ArrayFieldTitleTemplate';
|
|
4
|
-
import BaseInputTemplate from './BaseInputTemplate';
|
|
5
|
-
import DescriptionField from './DescriptionField';
|
|
6
|
-
import ErrorList from './ErrorList';
|
|
7
|
-
import ButtonTemplates from './ButtonTemplates';
|
|
8
|
-
import FieldErrorTemplate from './FieldErrorTemplate';
|
|
9
|
-
import FieldTemplate from './FieldTemplate';
|
|
10
|
-
import FieldHelpTemplate from './FieldHelpTemplate';
|
|
11
|
-
import GridTemplate from './GridTemplate';
|
|
12
|
-
import ObjectFieldTemplate from './ObjectFieldTemplate';
|
|
13
|
-
import OptionalDataControlsTemplate from './OptionalDataControlsTemplate';
|
|
14
|
-
import TitleField from './TitleField';
|
|
15
|
-
import WrapIfAdditionalTemplate from './WrapIfAdditionalTemplate';
|
|
16
|
-
import MultiSchemaFieldTemplate from './MultiSchemaFieldTemplate';
|
|
1
|
+
import ArrayFieldItemTemplate from './ArrayFieldItemTemplate.js';
|
|
2
|
+
import ArrayFieldTemplate from './ArrayFieldTemplate.js';
|
|
3
|
+
import ArrayFieldTitleTemplate from './ArrayFieldTitleTemplate.js';
|
|
4
|
+
import BaseInputTemplate from './BaseInputTemplate.js';
|
|
5
|
+
import DescriptionField from './DescriptionField.js';
|
|
6
|
+
import ErrorList from './ErrorList.js';
|
|
7
|
+
import ButtonTemplates from './ButtonTemplates/index.js';
|
|
8
|
+
import FieldErrorTemplate from './FieldErrorTemplate.js';
|
|
9
|
+
import FieldTemplate from './FieldTemplate.js';
|
|
10
|
+
import FieldHelpTemplate from './FieldHelpTemplate.js';
|
|
11
|
+
import GridTemplate from './GridTemplate.js';
|
|
12
|
+
import ObjectFieldTemplate from './ObjectFieldTemplate.js';
|
|
13
|
+
import OptionalDataControlsTemplate from './OptionalDataControlsTemplate.js';
|
|
14
|
+
import TitleField from './TitleField.js';
|
|
15
|
+
import WrapIfAdditionalTemplate from './WrapIfAdditionalTemplate.js';
|
|
16
|
+
import MultiSchemaFieldTemplate from './MultiSchemaFieldTemplate.js';
|
|
17
17
|
export function generateTemplates() {
|
|
18
18
|
return {
|
|
19
19
|
ArrayFieldItemTemplate,
|