fastapi-rtk 2.7.0 → 2.8.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/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index3.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index4.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index5.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +13 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineObjectInput.cjs +23 -12
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +117 -23
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.cjs +30 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useContextProps.cjs +5 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +48 -13
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +31 -11
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/labels/MantineLabelRenderer.cjs +9 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ArrayToolbar.cjs +15 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +83 -18
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +76 -43
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index3.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index4.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index5.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +16 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs +23 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +118 -24
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.mjs +31 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useContextProps.mjs +5 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +49 -14
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +32 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/labels/MantineLabelRenderer.mjs +9 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ArrayToolbar.mjs +16 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +85 -20
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +79 -46
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/codegen/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/validate/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/discriminator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/codegen/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/validate/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/discriminator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +13 -4
- package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +23 -12
- package/dist/jsonforms/cjs/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
- package/dist/jsonforms/cjs/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
- package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +117 -23
- package/dist/jsonforms/cjs/complex/MantineTableControl/TableToolbar.cjs +30 -4
- package/dist/jsonforms/cjs/hooks/useContextProps.cjs +5 -7
- package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +48 -13
- package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +31 -11
- package/dist/jsonforms/cjs/labels/MantineLabelRenderer.cjs +9 -1
- package/dist/jsonforms/cjs/layouts/Array/ArrayToolbar.cjs +15 -4
- package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +83 -18
- package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +76 -43
- package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +16 -7
- package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +23 -12
- package/dist/jsonforms/esm/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
- package/dist/jsonforms/esm/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
- package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +118 -24
- package/dist/jsonforms/esm/complex/MantineTableControl/TableToolbar.mjs +31 -5
- package/dist/jsonforms/esm/hooks/useContextProps.mjs +5 -7
- package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +49 -14
- package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +32 -12
- package/dist/jsonforms/esm/labels/MantineLabelRenderer.mjs +9 -1
- package/dist/jsonforms/esm/layouts/Array/ArrayToolbar.mjs +16 -5
- package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +85 -20
- package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +79 -46
- package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
- package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
- package/dist/jsonforms/lib/MantineInputs/MantineObjectInput.d.ts +1 -1
- package/dist/jsonforms/lib/complex/MantineTableControl/MantineTableControl.customizer.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineTableControl/types.d.ts +1 -0
- package/dist/jsonforms/lib/hooks/useContextProps.d.ts +3 -1
- package/dist/jsonforms/lib/hooks/useNavigationComponent.d.ts +1 -1
- package/dist/jsonforms/lib/layouts/Array/ExpandPanelRenderer.d.ts +1 -1
- package/dist/jsonforms/lib/layouts/Array/MantineArrayLayout.d.ts +1 -1
- package/dist/utils/cjs/deepMerge/deepMerge.cjs +1 -1
- package/dist/utils/esm/deepMerge/deepMerge.mjs +1 -1
- package/dist/utils/lib/deepMerge/deepMerge.d.ts +2 -0
- package/package.json +1 -1
|
@@ -66,7 +66,8 @@ const useToolbarComponent = (props) => {
|
|
|
66
66
|
id: "tooltip-add",
|
|
67
67
|
title: translations == null ? void 0 : translations.addTooltip,
|
|
68
68
|
onClick: onAdd,
|
|
69
|
-
...iconProps
|
|
69
|
+
...iconProps,
|
|
70
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(plus, {})
|
|
70
71
|
},
|
|
71
72
|
rest,
|
|
72
73
|
{}
|
|
@@ -74,17 +75,36 @@ const useToolbarComponent = (props) => {
|
|
|
74
75
|
const TextLabel = ComponentLabel === void 0 ? (_label_props == null ? void 0 : _label_props.value) ? /* @__PURE__ */ jsxRuntime.jsx(core.Input.Label, { children: _label_props == null ? void 0 : _label_props.value }) : null : ComponentLabel;
|
|
75
76
|
const TextDescription = ComponentDescription === void 0 ? (_description_props == null ? void 0 : _description_props.value) ? /* @__PURE__ */ jsxRuntime.jsx(core.Input.Description, { children: _description_props == null ? void 0 : _description_props.value }) : null : ComponentDescription;
|
|
76
77
|
const IconValidation = ComponentValidation === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(ValidationIcon, { ..._validation_props }) : ComponentValidation;
|
|
77
|
-
const ActionIconAdd = ComponentAdd === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._add_props
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
const ActionIconAdd = ComponentAdd === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._add_props }) : ComponentAdd;
|
|
79
|
+
const [ComponentFlex, _flex_props] = useContextProps.useContextProps(
|
|
80
|
+
`${componentName}.${componentIdentifier}.Flex`,
|
|
81
|
+
`${path}.${componentIdentifier}.Flex`,
|
|
82
|
+
{
|
|
83
|
+
justify: "flex-start",
|
|
84
|
+
align: "center",
|
|
85
|
+
gap: "sm",
|
|
86
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
82
87
|
TextLabel,
|
|
83
88
|
IconValidation
|
|
84
|
-
] })
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
] })
|
|
90
|
+
},
|
|
91
|
+
rest,
|
|
92
|
+
{ withAllProps: false }
|
|
93
|
+
);
|
|
94
|
+
const flexEl = ComponentFlex === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Flex, { ..._flex_props }) : ComponentFlex;
|
|
95
|
+
const [ComponentWrapper, _wrapper_props] = useContextProps.useContextProps(
|
|
96
|
+
`${componentName}.${componentIdentifier}.Wrapper`,
|
|
97
|
+
`${path}.${componentIdentifier}.Wrapper`,
|
|
98
|
+
{
|
|
99
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
100
|
+
flexEl,
|
|
101
|
+
TextDescription
|
|
102
|
+
] })
|
|
103
|
+
},
|
|
104
|
+
rest,
|
|
105
|
+
{ withAllProps: false }
|
|
106
|
+
);
|
|
107
|
+
const wrapperEl = ComponentWrapper === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Input.Wrapper, { ..._wrapper_props }) : ComponentWrapper;
|
|
108
|
+
return [wrapperEl, ActionIconAdd];
|
|
89
109
|
};
|
|
90
110
|
exports.useToolbarComponent = useToolbarComponent;
|
|
@@ -4,12 +4,20 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const jsonformsCore_esm = require("../../../../../../../.external/cjs/@jsonforms_core@3.7.0/@jsonforms/core/lib/jsonforms-core.esm.cjs");
|
|
5
5
|
const jsonformsReact_esm = require("../../../../../../../.external/cjs/@jsonforms_react@3.7.0_@jsonforms_core@3.7.0_react@19.2.3/@jsonforms/react/lib/jsonforms-react.esm.cjs");
|
|
6
6
|
const core = require("@mantine/core");
|
|
7
|
+
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
7
8
|
const Component = (props) => {
|
|
8
9
|
const { text, visible } = props;
|
|
10
|
+
const [CustomComponent, _props] = useContextProps.useContextProps(
|
|
11
|
+
"Label",
|
|
12
|
+
`Label.${text}`,
|
|
13
|
+
{ fw: "bold", size: "xl", children: text },
|
|
14
|
+
props,
|
|
15
|
+
{ withAllProps: false }
|
|
16
|
+
);
|
|
9
17
|
if (!visible) {
|
|
10
18
|
return null;
|
|
11
19
|
}
|
|
12
|
-
return /* @__PURE__ */ jsxRuntime.jsx(core.Title, {
|
|
20
|
+
return CustomComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Title, { ..._props }) : CustomComponent;
|
|
13
21
|
};
|
|
14
22
|
const mantineLabelTester = jsonformsCore_esm.rankWith(1, jsonformsCore_esm.isLabelable);
|
|
15
23
|
const MantineLabelRenderer = jsonformsReact_esm.withJsonFormsLabelProps(Component);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const React = require("react");
|
|
6
|
+
const useContextProps = require("../../hooks/useContextProps.cjs");
|
|
6
7
|
const useToolbarComponent = require("../../hooks/useToolbarComponent.cjs");
|
|
7
8
|
const ArrayLayoutToolbar = React.memo(function ArrayLayoutToolbar2(props) {
|
|
8
9
|
const { addItem, path, enabled, createDefault } = props;
|
|
@@ -12,9 +13,19 @@ const ArrayLayoutToolbar = React.memo(function ArrayLayoutToolbar2(props) {
|
|
|
12
13
|
onAdd: addItem(path, createDefault()),
|
|
13
14
|
...props
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const [ToolbarGroup, _toolbarGroupProps] = useContextProps.useContextProps(
|
|
17
|
+
"Array.Header.Group",
|
|
18
|
+
`${path}.Header.Group`,
|
|
19
|
+
{
|
|
20
|
+
justify: "space-between",
|
|
21
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
22
|
+
ToolbarComponent,
|
|
23
|
+
enabled && ToolbarAdd
|
|
24
|
+
] })
|
|
25
|
+
},
|
|
26
|
+
props,
|
|
27
|
+
{ withAllProps: false }
|
|
28
|
+
);
|
|
29
|
+
return ToolbarGroup === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Group, { ..._toolbarGroupProps }) : ToolbarGroup;
|
|
19
30
|
});
|
|
20
31
|
exports.ArrayLayoutToolbar = ArrayLayoutToolbar;
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs
CHANGED
|
@@ -6,6 +6,7 @@ const jsonformsReact_esm = require("../../../../../../../../.external/cjs/@jsonf
|
|
|
6
6
|
const core = require("@mantine/core");
|
|
7
7
|
const merge = require("../../../../../_virtual/merge.cjs");
|
|
8
8
|
const React = require("react");
|
|
9
|
+
const useContextProps = require("../../hooks/useContextProps.cjs");
|
|
9
10
|
const useNavigationComponent = require("../../hooks/useNavigationComponent.cjs");
|
|
10
11
|
const Component = (props) => {
|
|
11
12
|
const [labelHtmlId] = React.useState(jsonformsCore_esm.createId("expand-panel"));
|
|
@@ -47,24 +48,88 @@ const Component = (props) => {
|
|
|
47
48
|
showSortButtons,
|
|
48
49
|
...props
|
|
49
50
|
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
51
|
+
const [AvatarComp, _avatarProps] = useContextProps.useContextProps(
|
|
52
|
+
"Array.Item.Avatar",
|
|
53
|
+
`${childPath}.Item.Avatar`,
|
|
54
|
+
{ children: index + 1 },
|
|
55
|
+
props,
|
|
56
|
+
{ withAllProps: false }
|
|
57
|
+
);
|
|
58
|
+
const avatarEl = AvatarComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Avatar, { ..._avatarProps }) : AvatarComp;
|
|
59
|
+
const [StackComp, _stackProps] = useContextProps.useContextProps(
|
|
60
|
+
"Array.Item.Stack",
|
|
61
|
+
`${childPath}.Item.Stack`,
|
|
62
|
+
{ children: childLabel },
|
|
63
|
+
props,
|
|
64
|
+
{ withAllProps: false }
|
|
65
|
+
);
|
|
66
|
+
const stackEl = StackComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { ..._stackProps }) : StackComp;
|
|
67
|
+
const [GroupComp, _groupProps] = useContextProps.useContextProps(
|
|
68
|
+
"Array.Item.Group",
|
|
69
|
+
`${childPath}.Item.Group`,
|
|
70
|
+
{
|
|
71
|
+
justify: "space-between",
|
|
72
|
+
pr: "md",
|
|
73
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
74
|
+
stackEl,
|
|
75
|
+
NavigationComponent
|
|
76
|
+
] })
|
|
77
|
+
},
|
|
78
|
+
props,
|
|
79
|
+
{ withAllProps: false }
|
|
80
|
+
);
|
|
81
|
+
const groupEl = GroupComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Group, { ..._groupProps }) : GroupComp;
|
|
82
|
+
const [ControlComp, _controlProps] = useContextProps.useContextProps(
|
|
83
|
+
"Array.Item.Control",
|
|
84
|
+
`${childPath}.Item.Control`,
|
|
85
|
+
{ component: "div", icon: avatarEl, children: groupEl },
|
|
86
|
+
props,
|
|
87
|
+
{ withAllProps: false }
|
|
88
|
+
);
|
|
89
|
+
const controlEl = ControlComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Accordion.Control, { ..._controlProps }) : ControlComp;
|
|
90
|
+
const [CenterComp, _centerProps] = useContextProps.useContextProps(
|
|
91
|
+
"Array.Item.Center",
|
|
92
|
+
`${childPath}.Item.Center`,
|
|
93
|
+
{ children: controlEl },
|
|
94
|
+
props,
|
|
95
|
+
{ withAllProps: false }
|
|
96
|
+
);
|
|
97
|
+
const centerEl = CenterComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Center, { ..._centerProps }) : CenterComp;
|
|
98
|
+
const [PanelComp, _panelProps] = useContextProps.useContextProps(
|
|
99
|
+
"Array.Item.Panel",
|
|
100
|
+
`${childPath}.Item.Panel`,
|
|
101
|
+
{
|
|
102
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
103
|
+
jsonformsReact_esm.JsonFormsDispatch,
|
|
104
|
+
{
|
|
105
|
+
enabled,
|
|
106
|
+
schema,
|
|
107
|
+
uischema: foundUISchema,
|
|
108
|
+
path: childPath,
|
|
109
|
+
renderers,
|
|
110
|
+
cells
|
|
111
|
+
},
|
|
112
|
+
childPath
|
|
113
|
+
)
|
|
114
|
+
},
|
|
115
|
+
props,
|
|
116
|
+
{ withAllProps: false }
|
|
117
|
+
);
|
|
118
|
+
const panelEl = PanelComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Accordion.Panel, { ..._panelProps }) : PanelComp;
|
|
119
|
+
const [ItemComp, _itemProps] = useContextProps.useContextProps(
|
|
120
|
+
"Array.Item.Accordion",
|
|
121
|
+
`${childPath}.Item.Accordion`,
|
|
122
|
+
{
|
|
123
|
+
value: childPath,
|
|
124
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
125
|
+
centerEl,
|
|
126
|
+
panelEl
|
|
127
|
+
] })
|
|
128
|
+
},
|
|
129
|
+
props,
|
|
130
|
+
{ withAllProps: false }
|
|
131
|
+
);
|
|
132
|
+
return ItemComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Accordion.Item, { value: childPath, ..._itemProps }) : ItemComp;
|
|
68
133
|
};
|
|
69
134
|
const MemoComponent = React.memo(Component);
|
|
70
135
|
const useCtxDispatchToExpandPanelProps = (dispatch) => ({
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs
CHANGED
|
@@ -35,50 +35,83 @@ const Component = (props) => {
|
|
|
35
35
|
const doDisableAdd = disableAdd || appliedUiSchemaOptions.disableAdd;
|
|
36
36
|
const doDisableRemove = disableRemove || appliedUiSchemaOptions.disableRemove;
|
|
37
37
|
const innerCreateDefaultValue = React.useCallback(() => jsonformsCore_esm.createDefaultValue(props.schema, props.rootSchema), [props.schema]);
|
|
38
|
-
const [Component2, _props] = useContextProps.useContextProps("Array.Accordion", `${path}.Accordion`, {}, props, {
|
|
39
|
-
withAllProps: false
|
|
40
|
-
});
|
|
41
38
|
const headerErrors = useArrayHeaderErrors.useArrayHeaderErrors(path, schema);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
39
|
+
const [Component2, _props] = useContextProps.useContextProps(
|
|
40
|
+
"Array.Accordion",
|
|
41
|
+
`${path}.Accordion`,
|
|
42
|
+
{
|
|
43
|
+
variant: "separated",
|
|
44
|
+
children: map(range(data), (index) => {
|
|
45
|
+
const childPath = jsonformsCore_esm.Paths.compose(path, `${index}`);
|
|
46
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47
|
+
ExpandPanelRenderer.ExpandPanelRenderer,
|
|
48
|
+
{
|
|
49
|
+
enabled,
|
|
50
|
+
path,
|
|
51
|
+
childPath,
|
|
52
|
+
index,
|
|
53
|
+
rootSchema,
|
|
54
|
+
schema,
|
|
55
|
+
uischema,
|
|
56
|
+
uischemas,
|
|
57
|
+
renderers,
|
|
58
|
+
cells,
|
|
59
|
+
enableUp: index !== 0,
|
|
60
|
+
enableDown: index !== data - 1,
|
|
61
|
+
disableRemove: doDisableRemove,
|
|
62
|
+
config,
|
|
63
|
+
translations
|
|
64
|
+
},
|
|
65
|
+
index
|
|
66
|
+
);
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
props,
|
|
70
|
+
{ withAllProps: false }
|
|
71
|
+
);
|
|
72
|
+
const accordionEl = Component2 === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Accordion, { ..._props }) : Component2;
|
|
73
|
+
const [EmptyComponent, _emptyProps] = useContextProps.useContextProps(
|
|
74
|
+
"Array.Empty",
|
|
75
|
+
`${path}.Empty`,
|
|
76
|
+
{ ta: "center", children: translations.noDataMessage },
|
|
77
|
+
props,
|
|
78
|
+
{ withAllProps: false }
|
|
79
|
+
);
|
|
80
|
+
const emptyEl = EmptyComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Text, { ..._emptyProps }) : EmptyComponent;
|
|
81
|
+
const [InnerStack, _innerStackProps] = useContextProps.useContextProps(
|
|
82
|
+
"Array.Items",
|
|
83
|
+
`${path}.Items`,
|
|
84
|
+
{ children: data > 0 ? accordionEl : emptyEl },
|
|
85
|
+
props,
|
|
86
|
+
{ withAllProps: false }
|
|
87
|
+
);
|
|
88
|
+
const itemsEl = InnerStack === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { ..._innerStackProps }) : InnerStack;
|
|
89
|
+
const [OuterStack, _outerStackProps] = useContextProps.useContextProps(
|
|
90
|
+
"Array.Stack",
|
|
91
|
+
`${path}.Stack`,
|
|
92
|
+
{
|
|
93
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
94
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
95
|
+
ArrayToolbar.ArrayLayoutToolbar,
|
|
96
|
+
{
|
|
97
|
+
translations,
|
|
98
|
+
label: jsonformsCore_esm.computeLabel(label, required ?? false, appliedUiSchemaOptions.hideRequiredAsterisk),
|
|
99
|
+
description,
|
|
100
|
+
errors: headerErrors,
|
|
101
|
+
path,
|
|
102
|
+
enabled,
|
|
103
|
+
addItem,
|
|
104
|
+
createDefault: innerCreateDefaultValue,
|
|
105
|
+
disableAdd: doDisableAdd
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
itemsEl
|
|
109
|
+
] })
|
|
110
|
+
},
|
|
111
|
+
props,
|
|
112
|
+
{ withAllProps: false }
|
|
113
|
+
);
|
|
114
|
+
return OuterStack === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { ..._outerStackProps }) : OuterStack;
|
|
82
115
|
};
|
|
83
116
|
const MantineArrayLayout = React.memo(Component);
|
|
84
117
|
exports.MantineArrayLayout = MantineArrayLayout;
|
|
@@ -13,12 +13,12 @@ const Component = (props) => {
|
|
|
13
13
|
const [Component2, _props] = useContextProps.useContextProps(
|
|
14
14
|
"HorizontalLayout",
|
|
15
15
|
`${path}.HorizontalLayout`,
|
|
16
|
-
((_a = uischema.options) == null ? void 0 : _a.props) ?? {},
|
|
16
|
+
{ ...childProps, renderers, cells, ...((_a = uischema.options) == null ? void 0 : _a.props) ?? {} },
|
|
17
17
|
props,
|
|
18
18
|
{ withAllProps: false }
|
|
19
19
|
);
|
|
20
20
|
if (Component2 === void 0) {
|
|
21
|
-
return /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, ..._props
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, ..._props });
|
|
22
22
|
}
|
|
23
23
|
return Component2;
|
|
24
24
|
};
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs
CHANGED
|
@@ -13,12 +13,12 @@ const Component = (props) => {
|
|
|
13
13
|
const [Component2, _props] = useContextProps.useContextProps(
|
|
14
14
|
"VerticalLayout",
|
|
15
15
|
`${path}.VerticalLayout`,
|
|
16
|
-
((_a = uischema.options) == null ? void 0 : _a.props) ?? {},
|
|
16
|
+
{ ...childProps, renderers, cells, ...((_a = uischema.options) == null ? void 0 : _a.props) ?? {} },
|
|
17
17
|
props,
|
|
18
18
|
{ withAllProps: false }
|
|
19
19
|
);
|
|
20
20
|
if (Component2 === void 0) {
|
|
21
|
-
return /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, ..._props
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, ..._props });
|
|
22
22
|
}
|
|
23
23
|
return Component2;
|
|
24
24
|
};
|
package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { parseFromValuesOrFunc, MemoWrapper } from "fastapi-rtk/utils";
|
|
3
|
+
import { FileInput, Box } from "@mantine/core";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
6
6
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
@@ -17,13 +17,22 @@ const InnerMantineFileInput = (props) => {
|
|
|
17
17
|
const fileProps = useFileProps({ value, onChange: commonProps.onChange, accept, errors });
|
|
18
18
|
const componentProps = useMemo(() => ({ ...commonProps, ...fileProps }), [commonProps, fileProps]);
|
|
19
19
|
const [Component, _props] = useContextProps(contextName, path, componentProps, rest);
|
|
20
|
+
const [BoxComponent, _boxProps] = useContextProps(
|
|
21
|
+
`${contextName}.Box`,
|
|
22
|
+
`${path}.Box`,
|
|
23
|
+
{
|
|
24
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
25
|
+
/* @__PURE__ */ jsx(FileInput, { ..._props }),
|
|
26
|
+
parseFromValuesOrFunc(children, { componentProps, jsonFormsProps: rest })
|
|
27
|
+
] })
|
|
28
|
+
},
|
|
29
|
+
rest,
|
|
30
|
+
{ withAllProps: false }
|
|
31
|
+
);
|
|
20
32
|
if (!rest.visible) {
|
|
21
33
|
return null;
|
|
22
34
|
}
|
|
23
|
-
return Component === void 0 ? /* @__PURE__ */ jsx(MemoWrapper, { componentName: `${componentName}-${path}`, ..._props, children: /* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */ jsx(FileInput, { ..._props }),
|
|
25
|
-
parseFromValuesOrFunc(children, { componentProps, jsonFormsProps: rest })
|
|
26
|
-
] }) }) : Component;
|
|
35
|
+
return Component === void 0 ? /* @__PURE__ */ jsx(MemoWrapper, { componentName: `${componentName}-${path}`, ..._props, children: BoxComponent === void 0 ? /* @__PURE__ */ jsx(Box, { ..._boxProps }) : BoxComponent }) : Component;
|
|
27
36
|
};
|
|
28
37
|
function MantineFileInput(props) {
|
|
29
38
|
return /* @__PURE__ */ jsx(InnerMantineFileInput, { ...props, contextName: "File", componentName: "MantineFileInput" });
|
package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { findUISchema, Generate } from "../../../../../../../.external/esm/@jsonforms_core@3.7.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
3
3
|
import { JsonFormsDispatch } from "../../../../../../../.external/esm/@jsonforms_react@3.7.0_@jsonforms_core@3.7.0_react@19.2.3/@jsonforms/react/lib/jsonforms-react.esm.mjs";
|
|
4
|
+
import { Box } from "@mantine/core";
|
|
4
5
|
import { l as lodashExports } from "../../../../_virtual/lodash.mjs";
|
|
5
6
|
import { useMemo } from "react";
|
|
7
|
+
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
6
8
|
function MantineObjectInput(props) {
|
|
7
9
|
const { renderers, cells, uischemas, schema, path, visible, enabled, uischema, rootSchema } = props;
|
|
8
10
|
const label = "label" in props ? props.label : void 0;
|
|
@@ -21,21 +23,30 @@ function MantineObjectInput(props) {
|
|
|
21
23
|
),
|
|
22
24
|
[uischemas, schema, path, label, uischema, rootSchema]
|
|
23
25
|
);
|
|
26
|
+
const [Component, _props] = useContextProps(
|
|
27
|
+
"Object",
|
|
28
|
+
`${path}.Object`,
|
|
29
|
+
{
|
|
30
|
+
children: /* @__PURE__ */ jsx(
|
|
31
|
+
JsonFormsDispatch,
|
|
32
|
+
{
|
|
33
|
+
visible,
|
|
34
|
+
enabled,
|
|
35
|
+
schema,
|
|
36
|
+
uischema: detailUiSchema,
|
|
37
|
+
path,
|
|
38
|
+
renderers,
|
|
39
|
+
cells
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
},
|
|
43
|
+
props,
|
|
44
|
+
{ withAllProps: false }
|
|
45
|
+
);
|
|
24
46
|
if (!visible) {
|
|
25
47
|
return null;
|
|
26
48
|
}
|
|
27
|
-
return /* @__PURE__ */ jsx(
|
|
28
|
-
JsonFormsDispatch,
|
|
29
|
-
{
|
|
30
|
-
visible,
|
|
31
|
-
enabled,
|
|
32
|
-
schema,
|
|
33
|
-
uischema: detailUiSchema,
|
|
34
|
-
path,
|
|
35
|
-
renderers,
|
|
36
|
-
cells
|
|
37
|
-
}
|
|
38
|
-
);
|
|
49
|
+
return Component === void 0 ? /* @__PURE__ */ jsx(Box, { ..._props }) : Component;
|
|
39
50
|
}
|
|
40
51
|
export {
|
|
41
52
|
MantineObjectInput
|
|
@@ -1,15 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Flex, Text, Stack, Modal } from "@mantine/core";
|
|
3
3
|
import React from "react";
|
|
4
|
+
import { useContextProps } from "../../hooks/useContextProps.mjs";
|
|
4
5
|
const DeleteDialog = React.memo(function DeleteDialog2(props) {
|
|
5
6
|
const { open, onClose, onConfirm, onCancel, title, message, acceptText, declineText } = props;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const [FlexComponent, _flexProps] = useContextProps(
|
|
8
|
+
"Array.DeleteDialog.Flex",
|
|
9
|
+
"Array.DeleteDialog.Flex",
|
|
10
|
+
{
|
|
11
|
+
justify: "flex-end",
|
|
12
|
+
align: "center",
|
|
13
|
+
gap: "md",
|
|
14
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15
|
+
/* @__PURE__ */ jsx(Button, { onClick: onCancel, children: declineText }),
|
|
16
|
+
/* @__PURE__ */ jsx(Button, { onClick: onConfirm, children: acceptText })
|
|
17
|
+
] })
|
|
18
|
+
},
|
|
19
|
+
props,
|
|
20
|
+
{ withAllProps: false }
|
|
21
|
+
);
|
|
22
|
+
const flexEl = FlexComponent === void 0 ? /* @__PURE__ */ jsx(Flex, { ..._flexProps }) : FlexComponent;
|
|
23
|
+
const [StackComponent, _stackProps] = useContextProps(
|
|
24
|
+
"Array.DeleteDialog.Stack",
|
|
25
|
+
"Array.DeleteDialog.Stack",
|
|
26
|
+
{
|
|
27
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28
|
+
/* @__PURE__ */ jsx(Text, { children: message }),
|
|
29
|
+
flexEl
|
|
30
|
+
] })
|
|
31
|
+
},
|
|
32
|
+
props,
|
|
33
|
+
{ withAllProps: false }
|
|
34
|
+
);
|
|
35
|
+
const stackEl = StackComponent === void 0 ? /* @__PURE__ */ jsx(Stack, { ..._stackProps }) : StackComponent;
|
|
36
|
+
const [ModalComponent, _modalProps] = useContextProps(
|
|
37
|
+
"Array.DeleteDialog",
|
|
38
|
+
"Array.DeleteDialog",
|
|
39
|
+
{ withCloseButton: false, centered: true, title, keepMounted: true, opened: open, onClose, children: stackEl },
|
|
40
|
+
props,
|
|
41
|
+
{ withAllProps: false }
|
|
42
|
+
);
|
|
43
|
+
return ModalComponent === void 0 ? /* @__PURE__ */ jsx(Modal, { opened: open, onClose, ..._modalProps }) : ModalComponent;
|
|
13
44
|
});
|
|
14
45
|
export {
|
|
15
46
|
DeleteDialog
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { rankWith, or, isPrimitiveArrayControl, isObjectArrayControl } from "../../../../../../../../.external/esm/@jsonforms_core@3.7.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
3
3
|
import { withJsonFormsArrayLayoutProps, withTranslateProps, withArrayTranslationProps } from "../../../../../../../../.external/esm/@jsonforms_react@3.7.0_@jsonforms_core@3.7.0_react@19.2.3/@jsonforms/react/lib/jsonforms-react.esm.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { Box, MantineThemeProvider } from "@mantine/core";
|
|
5
5
|
import { useState, useCallback } from "react";
|
|
6
|
+
import { useContextProps } from "../../hooks/useContextProps.mjs";
|
|
6
7
|
import { useThemeCustomizer } from "../../hooks/useThemeCustomizer.mjs";
|
|
7
8
|
import { isEnumArrayArrayControl } from "../../testers/isEnumArrayArrayControl.mjs";
|
|
8
9
|
import { isFilesControl } from "../../testers/isFilesControl.mjs";
|
|
@@ -53,17 +54,21 @@ const Component = (props) => {
|
|
|
53
54
|
)
|
|
54
55
|
] });
|
|
55
56
|
};
|
|
56
|
-
const FileArrayComponent = (props) =>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
)
|
|
57
|
+
const FileArrayComponent = (props) => {
|
|
58
|
+
const [HiddenBox, _hiddenBoxProps] = useContextProps(
|
|
59
|
+
"Array.File.HiddenValidation",
|
|
60
|
+
"Array.File.HiddenValidation",
|
|
61
|
+
{ style: { display: "none" } },
|
|
62
|
+
props,
|
|
63
|
+
{ withAllProps: false }
|
|
64
|
+
);
|
|
65
|
+
const theme = useThemeCustomizer({
|
|
66
|
+
"Table.Header.Validation": {
|
|
67
|
+
component: HiddenBox === void 0 ? /* @__PURE__ */ jsx(Box, { ..._hiddenBoxProps }) : HiddenBox
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
return /* @__PURE__ */ jsx(MantineThemeProvider, { theme, children: /* @__PURE__ */ jsx(Component, { ...props }) });
|
|
71
|
+
};
|
|
67
72
|
const mantineArrayControlTester = rankWith(
|
|
68
73
|
1,
|
|
69
74
|
or(isObjectArrayControl, isPrimitiveArrayControl, isEnumArrayArrayControl, isJsonArrayControl)
|