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
@@ -1,8 +1,8 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useArrayHeaderErrors } from "../../hooks/useArrayHeaderErrors.mjs";
3
3
  import { useContextProps } from "../../hooks/useContextProps.mjs";
4
- import { createDefaultValue, computeLabel, Paths } from "../../../../../../../../.external/esm/@jsonforms_core@3.7.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
5
- import { Stack, Accordion, Text } from "@mantine/core";
4
+ import { createDefaultValue, Paths, computeLabel } from "../../../../../../../../.external/esm/@jsonforms_core@3.7.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
5
+ import { Accordion, Text, Stack } from "@mantine/core";
6
6
  import map from "../../../../../_virtual/map.mjs";
7
7
  import merge from "../../../../../_virtual/merge.mjs";
8
8
  import range from "../../../../../_virtual/range.mjs";
@@ -33,50 +33,83 @@ const Component = (props) => {
33
33
  const doDisableAdd = disableAdd || appliedUiSchemaOptions.disableAdd;
34
34
  const doDisableRemove = disableRemove || appliedUiSchemaOptions.disableRemove;
35
35
  const innerCreateDefaultValue = useCallback(() => createDefaultValue(props.schema, props.rootSchema), [props.schema]);
36
- const [Component2, _props] = useContextProps("Array.Accordion", `${path}.Accordion`, {}, props, {
37
- withAllProps: false
38
- });
39
36
  const headerErrors = useArrayHeaderErrors(path, schema);
40
- return /* @__PURE__ */ jsxs(Stack, { children: [
41
- /* @__PURE__ */ jsx(
42
- ArrayLayoutToolbar,
43
- {
44
- translations,
45
- label: computeLabel(label, required ?? false, appliedUiSchemaOptions.hideRequiredAsterisk),
46
- description,
47
- errors: headerErrors,
48
- path,
49
- enabled,
50
- addItem,
51
- createDefault: innerCreateDefaultValue,
52
- disableAdd: doDisableAdd
53
- }
54
- ),
55
- /* @__PURE__ */ jsx(Stack, { children: data > 0 ? Component2 === void 0 ? /* @__PURE__ */ jsx(Accordion, { variant: "separated", ..._props, children: map(range(data), (index) => {
56
- const childPath = Paths.compose(path, `${index}`);
57
- return /* @__PURE__ */ jsx(
58
- ExpandPanelRenderer,
59
- {
60
- enabled,
61
- path,
62
- childPath,
63
- index,
64
- rootSchema,
65
- schema,
66
- uischema,
67
- uischemas,
68
- renderers,
69
- cells,
70
- enableUp: index !== 0,
71
- enableDown: index !== data - 1,
72
- disableRemove: doDisableRemove,
73
- config,
74
- translations
75
- },
76
- index
77
- );
78
- }) }) : Component2 : /* @__PURE__ */ jsx(Text, { ta: "center", children: translations.noDataMessage }) })
79
- ] });
37
+ const [Component2, _props] = useContextProps(
38
+ "Array.Accordion",
39
+ `${path}.Accordion`,
40
+ {
41
+ variant: "separated",
42
+ children: map(range(data), (index) => {
43
+ const childPath = Paths.compose(path, `${index}`);
44
+ return /* @__PURE__ */ jsx(
45
+ ExpandPanelRenderer,
46
+ {
47
+ enabled,
48
+ path,
49
+ childPath,
50
+ index,
51
+ rootSchema,
52
+ schema,
53
+ uischema,
54
+ uischemas,
55
+ renderers,
56
+ cells,
57
+ enableUp: index !== 0,
58
+ enableDown: index !== data - 1,
59
+ disableRemove: doDisableRemove,
60
+ config,
61
+ translations
62
+ },
63
+ index
64
+ );
65
+ })
66
+ },
67
+ props,
68
+ { withAllProps: false }
69
+ );
70
+ const accordionEl = Component2 === void 0 ? /* @__PURE__ */ jsx(Accordion, { ..._props }) : Component2;
71
+ const [EmptyComponent, _emptyProps] = useContextProps(
72
+ "Array.Empty",
73
+ `${path}.Empty`,
74
+ { ta: "center", children: translations.noDataMessage },
75
+ props,
76
+ { withAllProps: false }
77
+ );
78
+ const emptyEl = EmptyComponent === void 0 ? /* @__PURE__ */ jsx(Text, { ..._emptyProps }) : EmptyComponent;
79
+ const [InnerStack, _innerStackProps] = useContextProps(
80
+ "Array.Items",
81
+ `${path}.Items`,
82
+ { children: data > 0 ? accordionEl : emptyEl },
83
+ props,
84
+ { withAllProps: false }
85
+ );
86
+ const itemsEl = InnerStack === void 0 ? /* @__PURE__ */ jsx(Stack, { ..._innerStackProps }) : InnerStack;
87
+ const [OuterStack, _outerStackProps] = useContextProps(
88
+ "Array.Stack",
89
+ `${path}.Stack`,
90
+ {
91
+ children: /* @__PURE__ */ jsxs(Fragment, { children: [
92
+ /* @__PURE__ */ jsx(
93
+ ArrayLayoutToolbar,
94
+ {
95
+ translations,
96
+ label: computeLabel(label, required ?? false, appliedUiSchemaOptions.hideRequiredAsterisk),
97
+ description,
98
+ errors: headerErrors,
99
+ path,
100
+ enabled,
101
+ addItem,
102
+ createDefault: innerCreateDefaultValue,
103
+ disableAdd: doDisableAdd
104
+ }
105
+ ),
106
+ itemsEl
107
+ ] })
108
+ },
109
+ props,
110
+ { withAllProps: false }
111
+ );
112
+ return OuterStack === void 0 ? /* @__PURE__ */ jsx(Stack, { ..._outerStackProps }) : OuterStack;
80
113
  };
81
114
  const MantineArrayLayout = memo(Component);
82
115
  export {
@@ -11,12 +11,12 @@ const Component = (props) => {
11
11
  const [Component2, _props] = useContextProps(
12
12
  "HorizontalLayout",
13
13
  `${path}.HorizontalLayout`,
14
- ((_a = uischema.options) == null ? void 0 : _a.props) ?? {},
14
+ { ...childProps, renderers, cells, ...((_a = uischema.options) == null ? void 0 : _a.props) ?? {} },
15
15
  props,
16
16
  { withAllProps: false }
17
17
  );
18
18
  if (Component2 === void 0) {
19
- return /* @__PURE__ */ jsx(MantineLayoutRenderer, { ...childProps, ..._props, renderers, cells });
19
+ return /* @__PURE__ */ jsx(MantineLayoutRenderer, { ...childProps, ..._props });
20
20
  }
21
21
  return Component2;
22
22
  };
@@ -11,12 +11,12 @@ const Component = (props) => {
11
11
  const [Component2, _props] = useContextProps(
12
12
  "VerticalLayout",
13
13
  `${path}.VerticalLayout`,
14
- ((_a = uischema.options) == null ? void 0 : _a.props) ?? {},
14
+ { ...childProps, renderers, cells, ...((_a = uischema.options) == null ? void 0 : _a.props) ?? {} },
15
15
  props,
16
16
  { withAllProps: false }
17
17
  );
18
18
  if (Component2 === void 0) {
19
- return /* @__PURE__ */ jsx(MantineLayoutRenderer, { ...childProps, ..._props, renderers, cells });
19
+ return /* @__PURE__ */ jsx(MantineLayoutRenderer, { ...childProps, ..._props });
20
20
  }
21
21
  return Component2;
22
22
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index3.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index5.cjs");
4
4
  const code = require("./code.cjs");
5
5
  const scope = require("./scope.cjs");
6
6
  var hasRequiredCodegen;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../.bundled/jsonforms/cjs/_virtual/index10.cjs");
3
+ const index = require("../../../../../../.bundled/jsonforms/cjs/_virtual/index6.cjs");
4
4
  const index$1 = require("./codegen/index.cjs");
5
5
  const validation_error = require("../runtime/validation_error.cjs");
6
6
  const names = require("./names.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index5.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index4.cjs");
4
4
  const boolSchema = require("./boolSchema.cjs");
5
5
  const dataType = require("./dataType.cjs");
6
6
  const applicability = require("./applicability.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index8.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index9.cjs");
4
4
  const additionalItems = require("./additionalItems.cjs");
5
5
  const prefixItems = require("./prefixItems.cjs");
6
6
  const items = require("./items.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index6.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index7.cjs");
4
4
  const id = require("./id.cjs");
5
5
  const ref = require("./ref.cjs");
6
6
  var hasRequiredCore;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index4.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index3.cjs");
4
4
  const index$1 = require("../../compile/codegen/index.cjs");
5
5
  const types = require("./types.cjs");
6
6
  const index$2 = require("../../compile/index.cjs");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index9.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index10.cjs");
4
4
  const format = require("./format.cjs");
5
5
  var hasRequiredFormat;
6
6
  function requireFormat() {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index7.cjs");
3
+ const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index8.cjs");
4
4
  const limitNumber = require("./limitNumber.cjs");
5
5
  const multipleOf = require("./multipleOf.cjs");
6
6
  const limitLength = require("./limitLength.cjs");
@@ -1,4 +1,4 @@
1
- import { __exports as codegen } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index3.mjs";
1
+ import { __exports as codegen } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index5.mjs";
2
2
  import { __require as requireCode } from "./code.mjs";
3
3
  import { __require as requireScope } from "./scope.mjs";
4
4
  var hasRequiredCodegen;
@@ -1,4 +1,4 @@
1
- import { __exports as compile } from "../../../../../../.bundled/jsonforms/esm/_virtual/index10.mjs";
1
+ import { __exports as compile } from "../../../../../../.bundled/jsonforms/esm/_virtual/index6.mjs";
2
2
  import { __require as requireCodegen } from "./codegen/index.mjs";
3
3
  import { __require as requireValidation_error } from "../runtime/validation_error.mjs";
4
4
  import { __require as requireNames } from "./names.mjs";
@@ -1,4 +1,4 @@
1
- import { __exports as validate } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index5.mjs";
1
+ import { __exports as validate } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index4.mjs";
2
2
  import { __require as requireBoolSchema } from "./boolSchema.mjs";
3
3
  import { __require as requireDataType } from "./dataType.mjs";
4
4
  import { __require as requireApplicability } from "./applicability.mjs";
@@ -1,4 +1,4 @@
1
- import { __exports as applicator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index8.mjs";
1
+ import { __exports as applicator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index9.mjs";
2
2
  import { __require as requireAdditionalItems } from "./additionalItems.mjs";
3
3
  import { __require as requirePrefixItems } from "./prefixItems.mjs";
4
4
  import { __require as requireItems } from "./items.mjs";
@@ -1,4 +1,4 @@
1
- import { __exports as core } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index6.mjs";
1
+ import { __exports as core } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index7.mjs";
2
2
  import { __require as requireId } from "./id.mjs";
3
3
  import { __require as requireRef } from "./ref.mjs";
4
4
  var hasRequiredCore;
@@ -1,4 +1,4 @@
1
- import { __exports as discriminator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index4.mjs";
1
+ import { __exports as discriminator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index3.mjs";
2
2
  import { __require as requireCodegen } from "../../compile/codegen/index.mjs";
3
3
  import { __require as requireTypes } from "./types.mjs";
4
4
  import { __require as requireCompile } from "../../compile/index.mjs";
@@ -1,4 +1,4 @@
1
- import { __exports as format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index9.mjs";
1
+ import { __exports as format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index10.mjs";
2
2
  import { __require as requireFormat$1 } from "./format.mjs";
3
3
  var hasRequiredFormat;
4
4
  function requireFormat() {
@@ -1,4 +1,4 @@
1
- import { __exports as validation } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index7.mjs";
1
+ import { __exports as validation } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index8.mjs";
2
2
  import { __require as requireLimitNumber } from "./limitNumber.mjs";
3
3
  import { __require as requireMultipleOf } from "./multipleOf.mjs";
4
4
  import { __require as requireLimitLength } from "./limitLength.mjs";
@@ -19,13 +19,22 @@ const InnerMantineFileInput = (props) => {
19
19
  const fileProps = useFileProps.useFileProps({ value, onChange: commonProps.onChange, accept, errors });
20
20
  const componentProps = React.useMemo(() => ({ ...commonProps, ...fileProps }), [commonProps, fileProps]);
21
21
  const [Component, _props] = useContextProps.useContextProps(contextName, path, componentProps, rest);
22
+ const [BoxComponent, _boxProps] = useContextProps.useContextProps(
23
+ `${contextName}.Box`,
24
+ `${path}.Box`,
25
+ {
26
+ children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
27
+ /* @__PURE__ */ jsxRuntime.jsx(core.FileInput, { ..._props }),
28
+ utils.parseFromValuesOrFunc(children, { componentProps, jsonFormsProps: rest })
29
+ ] })
30
+ },
31
+ rest,
32
+ { withAllProps: false }
33
+ );
22
34
  if (!rest.visible) {
23
35
  return null;
24
36
  }
25
- return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(utils.MemoWrapper, { componentName: `${componentName}-${path}`, ..._props, children: /* @__PURE__ */ jsxRuntime.jsxs(core.Box, { children: [
26
- /* @__PURE__ */ jsxRuntime.jsx(core.FileInput, { ..._props }),
27
- utils.parseFromValuesOrFunc(children, { componentProps, jsonFormsProps: rest })
28
- ] }) }) : Component;
37
+ return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(utils.MemoWrapper, { componentName: `${componentName}-${path}`, ..._props, children: BoxComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Box, { ..._boxProps }) : BoxComponent }) : Component;
29
38
  };
30
39
  function MantineFileInput(props) {
31
40
  return /* @__PURE__ */ jsxRuntime.jsx(InnerMantineFileInput, { ...props, contextName: "File", componentName: "MantineFileInput" });
@@ -3,8 +3,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const core = require("@jsonforms/core");
5
5
  const react = require("@jsonforms/react");
6
+ const core$1 = require("@mantine/core");
6
7
  const lodash = require("../_virtual/lodash.cjs");
7
8
  const React = require("react");
9
+ const useContextProps = require("../hooks/useContextProps.cjs");
8
10
  function MantineObjectInput(props) {
9
11
  const { renderers, cells, uischemas, schema, path, visible, enabled, uischema, rootSchema } = props;
10
12
  const label = "label" in props ? props.label : void 0;
@@ -23,20 +25,29 @@ function MantineObjectInput(props) {
23
25
  ),
24
26
  [uischemas, schema, path, label, uischema, rootSchema]
25
27
  );
28
+ const [Component, _props] = useContextProps.useContextProps(
29
+ "Object",
30
+ `${path}.Object`,
31
+ {
32
+ children: /* @__PURE__ */ jsxRuntime.jsx(
33
+ react.JsonFormsDispatch,
34
+ {
35
+ visible,
36
+ enabled,
37
+ schema,
38
+ uischema: detailUiSchema,
39
+ path,
40
+ renderers,
41
+ cells
42
+ }
43
+ )
44
+ },
45
+ props,
46
+ { withAllProps: false }
47
+ );
26
48
  if (!visible) {
27
49
  return null;
28
50
  }
29
- return /* @__PURE__ */ jsxRuntime.jsx(
30
- react.JsonFormsDispatch,
31
- {
32
- visible,
33
- enabled,
34
- schema,
35
- uischema: detailUiSchema,
36
- path,
37
- renderers,
38
- cells
39
- }
40
- );
51
+ return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Box, { ..._props }) : Component;
41
52
  }
42
53
  exports.MantineObjectInput = MantineObjectInput;
@@ -3,14 +3,45 @@ 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 DeleteDialog = React.memo(function DeleteDialog2(props) {
7
8
  const { open, onClose, onConfirm, onCancel, title, message, acceptText, declineText } = props;
8
- return /* @__PURE__ */ jsxRuntime.jsx(core.Modal, { opened: open, withCloseButton: false, centered: true, title, keepMounted: true, onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(core.Stack, { children: [
9
- /* @__PURE__ */ jsxRuntime.jsx(core.Text, { children: message }),
10
- /* @__PURE__ */ jsxRuntime.jsxs(core.Flex, { justify: "flex-end", align: "center", gap: "md", children: [
11
- /* @__PURE__ */ jsxRuntime.jsx(core.Button, { onClick: onCancel, children: declineText }),
12
- /* @__PURE__ */ jsxRuntime.jsx(core.Button, { onClick: onConfirm, children: acceptText })
13
- ] })
14
- ] }) });
9
+ const [FlexComponent, _flexProps] = useContextProps.useContextProps(
10
+ "Array.DeleteDialog.Flex",
11
+ "Array.DeleteDialog.Flex",
12
+ {
13
+ justify: "flex-end",
14
+ align: "center",
15
+ gap: "md",
16
+ children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17
+ /* @__PURE__ */ jsxRuntime.jsx(core.Button, { onClick: onCancel, children: declineText }),
18
+ /* @__PURE__ */ jsxRuntime.jsx(core.Button, { onClick: onConfirm, children: acceptText })
19
+ ] })
20
+ },
21
+ props,
22
+ { withAllProps: false }
23
+ );
24
+ const flexEl = FlexComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Flex, { ..._flexProps }) : FlexComponent;
25
+ const [StackComponent, _stackProps] = useContextProps.useContextProps(
26
+ "Array.DeleteDialog.Stack",
27
+ "Array.DeleteDialog.Stack",
28
+ {
29
+ children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
30
+ /* @__PURE__ */ jsxRuntime.jsx(core.Text, { children: message }),
31
+ flexEl
32
+ ] })
33
+ },
34
+ props,
35
+ { withAllProps: false }
36
+ );
37
+ const stackEl = StackComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Stack, { ..._stackProps }) : StackComponent;
38
+ const [ModalComponent, _modalProps] = useContextProps.useContextProps(
39
+ "Array.DeleteDialog",
40
+ "Array.DeleteDialog",
41
+ { withCloseButton: false, centered: true, title, keepMounted: true, opened: open, onClose, children: stackEl },
42
+ props,
43
+ { withAllProps: false }
44
+ );
45
+ return ModalComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Modal, { opened: open, onClose, ..._modalProps }) : ModalComponent;
15
46
  });
16
47
  exports.DeleteDialog = DeleteDialog;
@@ -5,6 +5,7 @@ const core = require("@jsonforms/core");
5
5
  const react = require("@jsonforms/react");
6
6
  const core$1 = require("@mantine/core");
7
7
  const React = require("react");
8
+ const useContextProps = require("../../hooks/useContextProps.cjs");
8
9
  const useThemeCustomizer = require("../../hooks/useThemeCustomizer.cjs");
9
10
  const isEnumArrayArrayControl = require("../../testers/isEnumArrayArrayControl.cjs");
10
11
  const isFilesControl = require("../../testers/isFilesControl.cjs");
@@ -55,17 +56,21 @@ const Component = (props) => {
55
56
  )
56
57
  ] });
57
58
  };
58
- const FileArrayComponent = (props) => /* @__PURE__ */ jsxRuntime.jsx(
59
- core$1.MantineThemeProvider,
60
- {
61
- theme: useThemeCustomizer.useThemeCustomizer({
62
- "Table.Header.Validation": {
63
- component: /* @__PURE__ */ jsxRuntime.jsx(core$1.Box, { style: { display: "none" } })
64
- }
65
- }),
66
- children: /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props })
67
- }
68
- );
59
+ const FileArrayComponent = (props) => {
60
+ const [HiddenBox, _hiddenBoxProps] = useContextProps.useContextProps(
61
+ "Array.File.HiddenValidation",
62
+ "Array.File.HiddenValidation",
63
+ { style: { display: "none" } },
64
+ props,
65
+ { withAllProps: false }
66
+ );
67
+ const theme = useThemeCustomizer.useThemeCustomizer({
68
+ "Table.Header.Validation": {
69
+ component: HiddenBox === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Box, { ..._hiddenBoxProps }) : HiddenBox
70
+ }
71
+ });
72
+ return /* @__PURE__ */ jsxRuntime.jsx(core$1.MantineThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props }) });
73
+ };
69
74
  const mantineArrayControlTester = core.rankWith(
70
75
  1,
71
76
  core.or(core.isObjectArrayControl, core.isPrimitiveArrayControl, isEnumArrayArrayControl.isEnumArrayArrayControl, isJsonArrayControl.isJsonArrayControl)