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.
Files changed (103) hide show
  1. package/dist/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
  2. package/dist/.bundled/jsonforms/cjs/_virtual/index3.cjs +2 -2
  3. package/dist/.bundled/jsonforms/cjs/_virtual/index4.cjs +2 -2
  4. package/dist/.bundled/jsonforms/cjs/_virtual/index5.cjs +2 -2
  5. package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
  6. package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
  7. package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
  8. package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
  9. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +13 -4
  10. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineObjectInput.cjs +23 -12
  11. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
  12. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
  13. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +117 -23
  14. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.cjs +30 -4
  15. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useContextProps.cjs +5 -7
  16. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +48 -13
  17. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +31 -11
  18. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/labels/MantineLabelRenderer.cjs +9 -1
  19. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ArrayToolbar.cjs +15 -4
  20. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +83 -18
  21. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +76 -43
  22. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
  23. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
  24. package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
  25. package/dist/.bundled/jsonforms/esm/_virtual/index3.mjs +2 -2
  26. package/dist/.bundled/jsonforms/esm/_virtual/index4.mjs +2 -2
  27. package/dist/.bundled/jsonforms/esm/_virtual/index5.mjs +2 -2
  28. package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
  29. package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
  30. package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
  31. package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
  32. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +16 -7
  33. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs +23 -12
  34. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
  35. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
  36. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +118 -24
  37. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.mjs +31 -5
  38. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useContextProps.mjs +5 -7
  39. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +49 -14
  40. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +32 -12
  41. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/labels/MantineLabelRenderer.mjs +9 -1
  42. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ArrayToolbar.mjs +16 -5
  43. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +85 -20
  44. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +79 -46
  45. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
  46. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
  47. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/codegen/index.cjs +1 -1
  48. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
  49. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/validate/index.cjs +1 -1
  50. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
  51. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
  52. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/discriminator/index.cjs +1 -1
  53. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
  54. package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
  55. package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/codegen/index.mjs +1 -1
  56. package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
  57. package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/validate/index.mjs +1 -1
  58. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
  59. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
  60. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/discriminator/index.mjs +1 -1
  61. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
  62. package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
  63. package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +13 -4
  64. package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +23 -12
  65. package/dist/jsonforms/cjs/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
  66. package/dist/jsonforms/cjs/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
  67. package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +117 -23
  68. package/dist/jsonforms/cjs/complex/MantineTableControl/TableToolbar.cjs +30 -4
  69. package/dist/jsonforms/cjs/hooks/useContextProps.cjs +5 -7
  70. package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +48 -13
  71. package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +31 -11
  72. package/dist/jsonforms/cjs/labels/MantineLabelRenderer.cjs +9 -1
  73. package/dist/jsonforms/cjs/layouts/Array/ArrayToolbar.cjs +15 -4
  74. package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +83 -18
  75. package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +76 -43
  76. package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
  77. package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
  78. package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +16 -7
  79. package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +23 -12
  80. package/dist/jsonforms/esm/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
  81. package/dist/jsonforms/esm/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
  82. package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +118 -24
  83. package/dist/jsonforms/esm/complex/MantineTableControl/TableToolbar.mjs +31 -5
  84. package/dist/jsonforms/esm/hooks/useContextProps.mjs +5 -7
  85. package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +49 -14
  86. package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +32 -12
  87. package/dist/jsonforms/esm/labels/MantineLabelRenderer.mjs +9 -1
  88. package/dist/jsonforms/esm/layouts/Array/ArrayToolbar.mjs +16 -5
  89. package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +85 -20
  90. package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +79 -46
  91. package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
  92. package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
  93. package/dist/jsonforms/lib/MantineInputs/MantineObjectInput.d.ts +1 -1
  94. package/dist/jsonforms/lib/complex/MantineTableControl/MantineTableControl.customizer.test.d.ts +1 -0
  95. package/dist/jsonforms/lib/complex/MantineTableControl/types.d.ts +1 -0
  96. package/dist/jsonforms/lib/hooks/useContextProps.d.ts +3 -1
  97. package/dist/jsonforms/lib/hooks/useNavigationComponent.d.ts +1 -1
  98. package/dist/jsonforms/lib/layouts/Array/ExpandPanelRenderer.d.ts +1 -1
  99. package/dist/jsonforms/lib/layouts/Array/MantineArrayLayout.d.ts +1 -1
  100. package/dist/utils/cjs/deepMerge/deepMerge.cjs +1 -1
  101. package/dist/utils/esm/deepMerge/deepMerge.mjs +1 -1
  102. package/dist/utils/lib/deepMerge/deepMerge.d.ts +2 -0
  103. 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, 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 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, { fw: "bold", size: "xl", children: text });
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
- 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 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
- return /* @__PURE__ */ jsxRuntime.jsxs(core.Accordion.Item, { value: childPath, children: [
51
- /* @__PURE__ */ jsxRuntime.jsx(core.Center, { children: /* @__PURE__ */ jsxRuntime.jsx(core.Accordion.Control, { component: "div", icon: /* @__PURE__ */ jsxRuntime.jsx(core.Avatar, { children: index + 1 }), children: /* @__PURE__ */ jsxRuntime.jsxs(core.Group, { justify: "space-between", pr: "md", children: [
52
- /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { children: childLabel }),
53
- NavigationComponent
54
- ] }) }) }),
55
- /* @__PURE__ */ jsxRuntime.jsx(core.Accordion.Panel, { children: /* @__PURE__ */ jsxRuntime.jsx(
56
- jsonformsReact_esm.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.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) => ({
@@ -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
- return /* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { children: [
43
- /* @__PURE__ */ jsxRuntime.jsx(
44
- ArrayToolbar.ArrayLayoutToolbar,
45
- {
46
- translations,
47
- label: jsonformsCore_esm.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.Stack, { children: data > 0 ? Component2 === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Accordion, { variant: "separated", ..._props, children: map(range(data), (index) => {
58
- const childPath = jsonformsCore_esm.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.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 = 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, 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,4 +1,4 @@
1
- var compile = {};
1
+ var format = {};
2
2
  export {
3
- compile as __exports
3
+ format as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var codegen = {};
1
+ var discriminator = {};
2
2
  export {
3
- codegen as __exports
3
+ discriminator as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var discriminator = {};
1
+ var validate = {};
2
2
  export {
3
- discriminator as __exports
3
+ validate as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var validate = {};
1
+ var codegen = {};
2
2
  export {
3
- validate as __exports
3
+ codegen as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var core = {};
1
+ var compile = {};
2
2
  export {
3
- core as __exports
3
+ compile as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var validation = {};
1
+ var core = {};
2
2
  export {
3
- validation as __exports
3
+ core as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var applicator = {};
1
+ var validation = {};
2
2
  export {
3
- applicator as __exports
3
+ validation as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var format = {};
1
+ var applicator = {};
2
2
  export {
3
- format as __exports
3
+ applicator as __exports
4
4
  };
@@ -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 "../../../../../../../.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 { 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
@@ -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 { MantineThemeProvider, Box } from "@mantine/core";
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) => /* @__PURE__ */ jsx(
57
- MantineThemeProvider,
58
- {
59
- theme: useThemeCustomizer({
60
- "Table.Header.Validation": {
61
- component: /* @__PURE__ */ jsx(Box, { style: { display: "none" } })
62
- }
63
- }),
64
- children: /* @__PURE__ */ jsx(Component, { ...props })
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)