fastapi-rtk 2.7.1 → 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.
Files changed (71) hide show
  1. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +13 -4
  2. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineObjectInput.cjs +23 -12
  3. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
  4. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
  5. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +117 -23
  6. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.cjs +30 -4
  7. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useContextProps.cjs +5 -7
  8. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +48 -13
  9. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +31 -11
  10. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/labels/MantineLabelRenderer.cjs +9 -1
  11. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ArrayToolbar.cjs +15 -4
  12. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +83 -18
  13. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +76 -43
  14. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
  15. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
  16. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +16 -7
  17. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs +23 -12
  18. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
  19. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
  20. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +118 -24
  21. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.mjs +31 -5
  22. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useContextProps.mjs +5 -7
  23. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +49 -14
  24. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +32 -12
  25. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/labels/MantineLabelRenderer.mjs +9 -1
  26. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ArrayToolbar.mjs +16 -5
  27. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +85 -20
  28. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +79 -46
  29. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
  30. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
  31. package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +13 -4
  32. package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +23 -12
  33. package/dist/jsonforms/cjs/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
  34. package/dist/jsonforms/cjs/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
  35. package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +117 -23
  36. package/dist/jsonforms/cjs/complex/MantineTableControl/TableToolbar.cjs +30 -4
  37. package/dist/jsonforms/cjs/hooks/useContextProps.cjs +5 -7
  38. package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +48 -13
  39. package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +31 -11
  40. package/dist/jsonforms/cjs/labels/MantineLabelRenderer.cjs +9 -1
  41. package/dist/jsonforms/cjs/layouts/Array/ArrayToolbar.cjs +15 -4
  42. package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +83 -18
  43. package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +76 -43
  44. package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
  45. package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
  46. package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +16 -7
  47. package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +23 -12
  48. package/dist/jsonforms/esm/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
  49. package/dist/jsonforms/esm/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
  50. package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +118 -24
  51. package/dist/jsonforms/esm/complex/MantineTableControl/TableToolbar.mjs +31 -5
  52. package/dist/jsonforms/esm/hooks/useContextProps.mjs +5 -7
  53. package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +49 -14
  54. package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +32 -12
  55. package/dist/jsonforms/esm/labels/MantineLabelRenderer.mjs +9 -1
  56. package/dist/jsonforms/esm/layouts/Array/ArrayToolbar.mjs +16 -5
  57. package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +85 -20
  58. package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +79 -46
  59. package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
  60. package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
  61. package/dist/jsonforms/lib/MantineInputs/MantineObjectInput.d.ts +1 -1
  62. package/dist/jsonforms/lib/complex/MantineTableControl/MantineTableControl.customizer.test.d.ts +1 -0
  63. package/dist/jsonforms/lib/complex/MantineTableControl/types.d.ts +1 -0
  64. package/dist/jsonforms/lib/hooks/useContextProps.d.ts +3 -1
  65. package/dist/jsonforms/lib/hooks/useNavigationComponent.d.ts +1 -1
  66. package/dist/jsonforms/lib/layouts/Array/ExpandPanelRenderer.d.ts +1 -1
  67. package/dist/jsonforms/lib/layouts/Array/MantineArrayLayout.d.ts +1 -1
  68. package/dist/utils/cjs/deepMerge/deepMerge.cjs +1 -1
  69. package/dist/utils/esm/deepMerge/deepMerge.mjs +1 -1
  70. package/dist/utils/lib/deepMerge/deepMerge.d.ts +2 -0
  71. package/package.json +1 -1
@@ -20,7 +20,8 @@ const useNavigationComponent = (props) => {
20
20
  ["aria-label"]: translations == null ? void 0 : translations.upAriaLabel,
21
21
  onClick: onUp,
22
22
  disabled: !enableUp,
23
- ...iconProps
23
+ ...iconProps,
24
+ children: /* @__PURE__ */ jsxRuntime.jsx(arrowUp, {})
24
25
  },
25
26
  rest,
26
27
  { withAllProps: false }
@@ -33,7 +34,8 @@ const useNavigationComponent = (props) => {
33
34
  ["aria-label"]: translations == null ? void 0 : translations.downAriaLabel,
34
35
  onClick: onDown,
35
36
  disabled: !enableDown,
36
- ...iconProps
37
+ ...iconProps,
38
+ children: /* @__PURE__ */ jsxRuntime.jsx(arrowDown, {})
37
39
  },
38
40
  rest,
39
41
  { withAllProps: false }
@@ -46,22 +48,44 @@ const useNavigationComponent = (props) => {
46
48
  title: translations == null ? void 0 : translations.removeTooltip,
47
49
  ["aria-label"]: translations == null ? void 0 : translations.removeAriaLabel,
48
50
  onClick: onDelete,
49
- ...iconProps
51
+ ...iconProps,
52
+ children: /* @__PURE__ */ jsxRuntime.jsx(trash, {})
50
53
  },
51
54
  rest,
52
55
  { withAllProps: false }
53
56
  );
57
+ const [ComponentUpCol, _up_col_props] = useContextProps.useContextProps(
58
+ `${componentName}.${componentIdentifier}.Up.Col`,
59
+ `${childPath}.${componentIdentifier}.Up.Col`,
60
+ { span: "content", children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._up_props }) },
61
+ rest,
62
+ { withAllProps: false }
63
+ );
64
+ const [ComponentDownCol, _down_col_props] = useContextProps.useContextProps(
65
+ `${componentName}.${componentIdentifier}.Down.Col`,
66
+ `${childPath}.${componentIdentifier}.Down.Col`,
67
+ { span: "content", children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._down_props }) },
68
+ rest,
69
+ { withAllProps: false }
70
+ );
71
+ const [ComponentRemoveCol, _remove_col_props] = useContextProps.useContextProps(
72
+ `${componentName}.${componentIdentifier}.Remove.Col`,
73
+ `${childPath}.${componentIdentifier}.Remove.Col`,
74
+ { span: "content", children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._remove_props }) },
75
+ rest,
76
+ { withAllProps: false }
77
+ );
54
78
  const ActionIconUp = React.useMemo(
55
- () => ComponentUp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: "content", children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._up_props, children: /* @__PURE__ */ jsxRuntime.jsx(arrowUp, {}) }) }) : ComponentUp,
56
- [ComponentUp, _up_props]
79
+ () => ComponentUp === void 0 ? ComponentUpCol === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { ..._up_col_props }) : ComponentUpCol : ComponentUp,
80
+ [ComponentUp, ComponentUpCol, _up_col_props]
57
81
  );
58
82
  const ActionIconDown = React.useMemo(
59
- () => ComponentDown === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: "content", children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._down_props, children: /* @__PURE__ */ jsxRuntime.jsx(arrowDown, {}) }) }) : ComponentDown,
60
- [ComponentDown, _down_props]
83
+ () => ComponentDown === void 0 ? ComponentDownCol === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { ..._down_col_props }) : ComponentDownCol : ComponentDown,
84
+ [ComponentDown, ComponentDownCol, _down_col_props]
61
85
  );
62
86
  const ActionIconRemove = React.useMemo(
63
- () => ComponentRemove === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { span: "content", children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._remove_props, children: /* @__PURE__ */ jsxRuntime.jsx(trash, {}) }) }) : ComponentRemove,
64
- [ComponentRemove, _remove_props]
87
+ () => ComponentRemove === void 0 ? ComponentRemoveCol === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { ..._remove_col_props }) : ComponentRemoveCol : ComponentRemove,
88
+ [ComponentRemove, ComponentRemoveCol, _remove_col_props]
65
89
  );
66
90
  const SortButtons = React.useMemo(
67
91
  () => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -76,9 +100,20 @@ const useNavigationComponent = (props) => {
76
100
  );
77
101
  const enableRemove = React.useMemo(() => !disableRemove && !!ActionIconRemove, [disableRemove, ActionIconRemove]);
78
102
  const showComponent = React.useMemo(() => enableSort || enableRemove, [enableSort, enableRemove]);
79
- return showComponent ? /* @__PURE__ */ jsxRuntime.jsxs(core.Grid, { justify: "flex-end", align: "center", children: [
80
- enableSort && SortButtons,
81
- enableRemove && ActionIconRemove
82
- ] }) : void 0;
103
+ const [ComponentGrid, _grid_props] = useContextProps.useContextProps(
104
+ `${componentName}.${componentIdentifier}.Grid`,
105
+ `${childPath}.${componentIdentifier}.Grid`,
106
+ {
107
+ justify: "flex-end",
108
+ align: "center",
109
+ children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
110
+ enableSort && SortButtons,
111
+ enableRemove && ActionIconRemove
112
+ ] })
113
+ },
114
+ rest,
115
+ { withAllProps: false }
116
+ );
117
+ return showComponent ? ComponentGrid === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid, { ..._grid_props }) : ComponentGrid : void 0;
83
118
  };
84
119
  exports.useNavigationComponent = useNavigationComponent;
@@ -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, children: /* @__PURE__ */ jsxRuntime.jsx(plus, {}) }) : ComponentAdd;
78
- return [
79
- // eslint-disable-next-line react/jsx-key
80
- /* @__PURE__ */ jsxRuntime.jsxs(core.Input.Wrapper, { children: [
81
- /* @__PURE__ */ jsxRuntime.jsxs(core.Flex, { justify: "flex-start", align: "center", gap: "sm", children: [
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
- TextDescription
86
- ] }),
87
- ActionIconAdd
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 core = require("@jsonforms/core");
5
5
  const react = require("@jsonforms/react");
6
6
  const core$1 = 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$1.Title, { fw: "bold", size: "xl", children: text });
20
+ return CustomComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Title, { ..._props }) : CustomComponent;
13
21
  };
14
22
  const mantineLabelTester = core.rankWith(1, core.isLabelable);
15
23
  const MantineLabelRenderer = react.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
- return /* @__PURE__ */ jsxRuntime.jsxs(core.Group, { justify: "space-between", children: [
16
- ToolbarComponent,
17
- enabled && ToolbarAdd
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;
@@ -6,6 +6,7 @@ const react = require("@jsonforms/react");
6
6
  const core$1 = 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(core.createId("expand-panel"));
@@ -47,24 +48,88 @@ const Component = (props) => {
47
48
  showSortButtons,
48
49
  ...props
49
50
  });
50
- return /* @__PURE__ */ jsxRuntime.jsxs(core$1.Accordion.Item, { value: childPath, children: [
51
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Center, { children: /* @__PURE__ */ jsxRuntime.jsx(core$1.Accordion.Control, { component: "div", icon: /* @__PURE__ */ jsxRuntime.jsx(core$1.Avatar, { children: index + 1 }), children: /* @__PURE__ */ jsxRuntime.jsxs(core$1.Group, { justify: "space-between", pr: "md", children: [
52
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Stack, { children: childLabel }),
53
- NavigationComponent
54
- ] }) }) }),
55
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Accordion.Panel, { children: /* @__PURE__ */ jsxRuntime.jsx(
56
- react.JsonFormsDispatch,
57
- {
58
- enabled,
59
- schema,
60
- uischema: foundUISchema,
61
- path: childPath,
62
- renderers,
63
- cells
64
- },
65
- childPath
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$1.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$1.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$1.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$1.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$1.Center, { ..._centerProps }) : CenterComp;
98
+ const [PanelComp, _panelProps] = useContextProps.useContextProps(
99
+ "Array.Item.Panel",
100
+ `${childPath}.Item.Panel`,
101
+ {
102
+ children: /* @__PURE__ */ jsxRuntime.jsx(
103
+ react.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$1.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$1.Accordion.Item, { value: childPath, ..._itemProps }) : ItemComp;
68
133
  };
69
134
  const MemoComponent = React.memo(Component);
70
135
  const useCtxDispatchToExpandPanelProps = (dispatch) => ({
@@ -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(() => core.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
- return /* @__PURE__ */ jsxRuntime.jsxs(core$1.Stack, { children: [
43
- /* @__PURE__ */ jsxRuntime.jsx(
44
- ArrayToolbar.ArrayLayoutToolbar,
45
- {
46
- translations,
47
- label: core.computeLabel(label, required ?? false, appliedUiSchemaOptions.hideRequiredAsterisk),
48
- description,
49
- errors: headerErrors,
50
- path,
51
- enabled,
52
- addItem,
53
- createDefault: innerCreateDefaultValue,
54
- disableAdd: doDisableAdd
55
- }
56
- ),
57
- /* @__PURE__ */ jsxRuntime.jsx(core$1.Stack, { children: data > 0 ? Component2 === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Accordion, { variant: "separated", ..._props, children: map(range(data), (index) => {
58
- const childPath = core.Paths.compose(path, `${index}`);
59
- return /* @__PURE__ */ jsxRuntime.jsx(
60
- ExpandPanelRenderer.ExpandPanelRenderer,
61
- {
62
- enabled,
63
- path,
64
- childPath,
65
- index,
66
- rootSchema,
67
- schema,
68
- uischema,
69
- uischemas,
70
- renderers,
71
- cells,
72
- enableUp: index !== 0,
73
- enableDown: index !== data - 1,
74
- disableRemove: doDisableRemove,
75
- config,
76
- translations
77
- },
78
- index
79
- );
80
- }) }) : Component2 : /* @__PURE__ */ jsxRuntime.jsx(core$1.Text, { ta: "center", children: translations.noDataMessage }) })
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 = core.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$1.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$1.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$1.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: core.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$1.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, renderers, cells });
21
+ return /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, ..._props });
22
22
  }
23
23
  return Component2;
24
24
  };
@@ -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, renderers, cells });
21
+ return /* @__PURE__ */ jsxRuntime.jsx(layout.MantineLayoutRenderer, { ...childProps, ..._props });
22
22
  }
23
23
  return Component2;
24
24
  };
@@ -1,6 +1,6 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { MemoWrapper, parseFromValuesOrFunc } from "fastapi-rtk/utils";
3
- import { Box, FileInput } from "@mantine/core";
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__ */ jsxs(Box, { children: [
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" });
@@ -1,8 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { findUISchema, Generate } from "@jsonforms/core";
3
3
  import { JsonFormsDispatch } from "@jsonforms/react";
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 { jsx, jsxs } from "react/jsx-runtime";
2
- import { Modal, Stack, Text, Flex, Button } from "@mantine/core";
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
- return /* @__PURE__ */ jsx(Modal, { opened: open, withCloseButton: false, centered: true, title, keepMounted: true, onClose, children: /* @__PURE__ */ jsxs(Stack, { children: [
7
- /* @__PURE__ */ jsx(Text, { children: message }),
8
- /* @__PURE__ */ jsxs(Flex, { justify: "flex-end", align: "center", gap: "md", children: [
9
- /* @__PURE__ */ jsx(Button, { onClick: onCancel, children: declineText }),
10
- /* @__PURE__ */ jsx(Button, { onClick: onConfirm, children: acceptText })
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