fastapi-rtk 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineIntegerInput.cjs +8 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineNumberInput.cjs +7 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/cells/MantineIntegerCell.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/controls/MantineIntegerControl.cjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineIntegerInput.mjs +8 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineNumberInput.mjs +7 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/cells/MantineIntegerCell.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/controls/MantineIntegerControl.mjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.cjs +1 -1
- package/dist/.external/cjs/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.cjs +2 -2
- package/dist/.external/cjs/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.cjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/errorBoundaryUtils.mjs +1 -1
- package/dist/.external/esm/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/useBaseQuery.mjs +2 -2
- package/dist/.external/esm/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/useQuery.mjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/hooks/useProvideApi.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/cjs/fab-react-toolkit-patch/api/hooks/useProvideApi.cjs +2 -2
- package/dist/core/cjs/fab-react-toolkit-patch/auth/hooks/useProvideAuth.cjs +2 -2
- package/dist/core/cjs/fab-react-toolkit-patch/auth/hooks/useProvideInfo.cjs +1 -1
- package/dist/core/esm/Wrappers/ApiProvider/hooks/useProvideApi.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideInfo.mjs +1 -1
- package/dist/core/esm/fab-react-toolkit-patch/api/hooks/useProvideApi.mjs +2 -2
- package/dist/core/esm/fab-react-toolkit-patch/auth/hooks/useProvideAuth.mjs +2 -2
- package/dist/core/esm/fab-react-toolkit-patch/auth/hooks/useProvideInfo.mjs +1 -1
- package/dist/jsonforms/cjs/MantineInputs/MantineIntegerInput.cjs +8 -0
- package/dist/jsonforms/cjs/MantineInputs/MantineNumberInput.cjs +7 -3
- package/dist/jsonforms/cjs/cells/MantineIntegerCell.cjs +2 -2
- package/dist/jsonforms/cjs/controls/MantineIntegerControl.cjs +2 -2
- package/dist/jsonforms/esm/MantineInputs/MantineIntegerInput.mjs +8 -0
- package/dist/jsonforms/esm/MantineInputs/MantineNumberInput.mjs +7 -3
- package/dist/jsonforms/esm/cells/MantineIntegerCell.mjs +2 -2
- package/dist/jsonforms/esm/controls/MantineIntegerControl.mjs +2 -2
- package/dist/jsonforms/lib/MantineInputs/MantineIntegerInput.d.ts +4 -0
- package/dist/jsonforms/lib/MantineInputs/MantineNumberInput.d.ts +5 -0
- package/package.json +1 -1
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/focusManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/infiniteQueryBehavior.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/mutation.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/mutationCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/notifyManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/onlineManager.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/query.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/queryCache.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/queryClient.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/queryObserver.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/removable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/retryer.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/subscribable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/thenable.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/utils.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.cjs +0 -0
- /package/dist/.external/cjs/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/suspense.cjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/focusManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/infiniteQueryBehavior.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/mutation.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/mutationCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/notifyManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/onlineManager.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/query.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/queryCache.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/queryClient.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/queryObserver.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/removable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/retryer.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/subscribable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/thenable.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_query-core@5.81.5 → @tanstack_query-core@5.82.0}/@tanstack/query-core/build/modern/utils.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/IsRestoringProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/QueryClientProvider.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/QueryErrorResetBoundary.mjs +0 -0
- /package/dist/.external/esm/{@tanstack_react-query@5.81.5_react@18.3.1 → @tanstack_react-query@5.82.0_react@18.3.1}/@tanstack/react-query/build/modern/suspense.mjs +0 -0
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineIntegerInput.cjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const MantineNumberInput = require("./MantineNumberInput.cjs");
|
|
5
|
+
function MantineIntegerInput({ margin, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MantineNumberInput.InnerMantineNumberInput, { ...props, contextName: "Integer", margin });
|
|
7
|
+
}
|
|
8
|
+
exports.MantineIntegerInput = MantineIntegerInput;
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineNumberInput.cjs
CHANGED
|
@@ -6,15 +6,19 @@ const React = require("react");
|
|
|
6
6
|
const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useNumberProps = require("../hooks/useNumberProps.cjs");
|
|
9
|
-
|
|
9
|
+
const InnerMantineNumberInput = ({ contextName, margin, ...props }) => {
|
|
10
10
|
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
11
|
const { path, data } = props;
|
|
12
|
-
const numberProps = useNumberProps.useNumberProps(
|
|
12
|
+
const numberProps = useNumberProps.useNumberProps(contextName.toLowerCase(), { data, onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...numberProps }), [commonProps, numberProps]);
|
|
14
|
-
const [Component, _props] = useContextProps.useContextProps(
|
|
14
|
+
const [Component, _props] = useContextProps.useContextProps(contextName, path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
return /* @__PURE__ */ jsxRuntime.jsx(core.Box, { m: Component === null ? void 0 : margin, children: Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.NumberInput, { ..._props }) : Component });
|
|
19
|
+
};
|
|
20
|
+
function MantineNumberInput({ margin, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(InnerMantineNumberInput, { ...props, contextName: "Number", margin });
|
|
19
22
|
}
|
|
23
|
+
exports.InnerMantineNumberInput = InnerMantineNumberInput;
|
|
20
24
|
exports.MantineNumberInput = MantineNumberInput;
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const jsonformsCore_esm = require("../../../../../../../.external/cjs/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.cjs");
|
|
5
5
|
const jsonformsReact_esm = require("../../../../../../../.external/cjs/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.cjs");
|
|
6
|
-
const
|
|
6
|
+
const MantineIntegerInput = require("../MantineInputs/MantineIntegerInput.cjs");
|
|
7
7
|
const mantineIntegerCellTester = jsonformsCore_esm.rankWith(1, jsonformsCore_esm.isIntegerControl);
|
|
8
|
-
const MantineIntegerCell = jsonformsReact_esm.withJsonFormsCellProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
+
const MantineIntegerCell = jsonformsReact_esm.withJsonFormsCellProps((props) => /* @__PURE__ */ jsxRuntime.jsx(MantineIntegerInput.MantineIntegerInput, { ...props }));
|
|
9
9
|
exports.MantineIntegerCell = MantineIntegerCell;
|
|
10
10
|
exports.mantineIntegerCellTester = mantineIntegerCellTester;
|
package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/controls/MantineIntegerControl.cjs
CHANGED
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const jsonformsCore_esm = require("../../../../../../../.external/cjs/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.cjs");
|
|
5
5
|
const jsonformsReact_esm = require("../../../../../../../.external/cjs/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.cjs");
|
|
6
|
-
const
|
|
6
|
+
const MantineIntegerInput = require("../MantineInputs/MantineIntegerInput.cjs");
|
|
7
7
|
const constants = require("../utils/constants.cjs");
|
|
8
8
|
const mantineIntegerControlTester = jsonformsCore_esm.rankWith(1, jsonformsCore_esm.isIntegerControl);
|
|
9
|
-
const MantineIntegerControl = jsonformsReact_esm.withJsonFormsControlProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
+
const MantineIntegerControl = jsonformsReact_esm.withJsonFormsControlProps((props) => /* @__PURE__ */ jsxRuntime.jsx(MantineIntegerInput.MantineIntegerInput, { margin: constants.DEFAULT_MARGIN, ...props }));
|
|
10
10
|
exports.MantineIntegerControl = MantineIntegerControl;
|
|
11
11
|
exports.mantineIntegerControlTester = mantineIntegerControlTester;
|
package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineIntegerInput.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { InnerMantineNumberInput } from "./MantineNumberInput.mjs";
|
|
3
|
+
function MantineIntegerInput({ margin, ...props }) {
|
|
4
|
+
return /* @__PURE__ */ jsx(InnerMantineNumberInput, { ...props, contextName: "Integer", margin });
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
MantineIntegerInput
|
|
8
|
+
};
|
package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineNumberInput.mjs
CHANGED
|
@@ -4,17 +4,21 @@ import { useMemo } from "react";
|
|
|
4
4
|
import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
5
5
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
6
6
|
import { useNumberProps } from "../hooks/useNumberProps.mjs";
|
|
7
|
-
|
|
7
|
+
const InnerMantineNumberInput = ({ contextName, margin, ...props }) => {
|
|
8
8
|
const commonProps = useCommonProps(props);
|
|
9
9
|
const { path, data } = props;
|
|
10
|
-
const numberProps = useNumberProps(
|
|
10
|
+
const numberProps = useNumberProps(contextName.toLowerCase(), { data, onChange: commonProps.onChange });
|
|
11
11
|
const componentProps = useMemo(() => ({ ...commonProps, ...numberProps }), [commonProps, numberProps]);
|
|
12
|
-
const [Component, _props] = useContextProps(
|
|
12
|
+
const [Component, _props] = useContextProps(contextName, path, componentProps, props);
|
|
13
13
|
if (!props.visible) {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
return /* @__PURE__ */ jsx(Box, { m: Component === null ? void 0 : margin, children: Component === void 0 ? /* @__PURE__ */ jsx(NumberInput, { ..._props }) : Component });
|
|
17
|
+
};
|
|
18
|
+
function MantineNumberInput({ margin, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx(InnerMantineNumberInput, { ...props, contextName: "Number", margin });
|
|
17
20
|
}
|
|
18
21
|
export {
|
|
22
|
+
InnerMantineNumberInput,
|
|
19
23
|
MantineNumberInput
|
|
20
24
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { rankWith, isIntegerControl } from "../../../../../../../.external/esm/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
3
3
|
import { withJsonFormsCellProps } from "../../../../../../../.external/esm/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { MantineIntegerInput } from "../MantineInputs/MantineIntegerInput.mjs";
|
|
5
5
|
const mantineIntegerCellTester = rankWith(1, isIntegerControl);
|
|
6
|
-
const MantineIntegerCell = withJsonFormsCellProps((props) => /* @__PURE__ */ jsx(
|
|
6
|
+
const MantineIntegerCell = withJsonFormsCellProps((props) => /* @__PURE__ */ jsx(MantineIntegerInput, { ...props }));
|
|
7
7
|
export {
|
|
8
8
|
MantineIntegerCell,
|
|
9
9
|
mantineIntegerCellTester
|
package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/controls/MantineIntegerControl.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { rankWith, isIntegerControl } from "../../../../../../../.external/esm/@jsonforms_core@3.6.0/@jsonforms/core/lib/jsonforms-core.esm.mjs";
|
|
3
3
|
import { withJsonFormsControlProps } from "../../../../../../../.external/esm/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { MantineIntegerInput } from "../MantineInputs/MantineIntegerInput.mjs";
|
|
5
5
|
import { DEFAULT_MARGIN } from "../utils/constants.mjs";
|
|
6
6
|
const mantineIntegerControlTester = rankWith(1, isIntegerControl);
|
|
7
|
-
const MantineIntegerControl = withJsonFormsControlProps((props) => /* @__PURE__ */ jsx(
|
|
7
|
+
const MantineIntegerControl = withJsonFormsControlProps((props) => /* @__PURE__ */ jsx(MantineIntegerInput, { margin: DEFAULT_MARGIN, ...props }));
|
|
8
8
|
export {
|
|
9
9
|
MantineIntegerControl,
|
|
10
10
|
mantineIntegerControlTester
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const utils = require("../../../../../@tanstack_query-core@5.
|
|
4
|
+
const utils = require("../../../../../@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/utils.cjs");
|
|
5
5
|
function _interopNamespaceDefault(e) {
|
|
6
6
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
7
|
if (e) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const notifyManager = require("../../../../../@tanstack_query-core@5.
|
|
5
|
-
const utils = require("../../../../../@tanstack_query-core@5.
|
|
4
|
+
const notifyManager = require("../../../../../@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/notifyManager.cjs");
|
|
5
|
+
const utils = require("../../../../../@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/utils.cjs");
|
|
6
6
|
const QueryClientProvider = require("./QueryClientProvider.cjs");
|
|
7
7
|
const QueryErrorResetBoundary = require("./QueryErrorResetBoundary.cjs");
|
|
8
8
|
const errorBoundaryUtils = require("./errorBoundaryUtils.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const queryObserver = require("../../../../../@tanstack_query-core@5.
|
|
3
|
+
const queryObserver = require("../../../../../@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/queryObserver.cjs");
|
|
4
4
|
const useBaseQuery = require("./useBaseQuery.cjs");
|
|
5
5
|
function useQuery(options, queryClient) {
|
|
6
6
|
return useBaseQuery.useBaseQuery(options, queryObserver.QueryObserver);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { shouldThrowError } from "../../../../../@tanstack_query-core@5.
|
|
2
|
+
import { shouldThrowError } from "../../../../../@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/utils.mjs";
|
|
3
3
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
|
4
4
|
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
|
5
5
|
if (!errorResetBoundary.isReset()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { notifyManager } from "../../../../../@tanstack_query-core@5.
|
|
3
|
-
import { noop, isServer } from "../../../../../@tanstack_query-core@5.
|
|
2
|
+
import { notifyManager } from "../../../../../@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/notifyManager.mjs";
|
|
3
|
+
import { noop, isServer } from "../../../../../@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/utils.mjs";
|
|
4
4
|
import { useQueryClient } from "./QueryClientProvider.mjs";
|
|
5
5
|
import { useQueryErrorResetBoundary } from "./QueryErrorResetBoundary.mjs";
|
|
6
6
|
import { ensurePreventErrorBoundaryRetry, useClearResetErrorBoundary, getHasError } from "./errorBoundaryUtils.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryObserver } from "../../../../../@tanstack_query-core@5.
|
|
1
|
+
import { QueryObserver } from "../../../../../@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/queryObserver.mjs";
|
|
2
2
|
import { useBaseQuery } from "./useBaseQuery.mjs";
|
|
3
3
|
function useQuery(options, queryClient) {
|
|
4
4
|
return useBaseQuery(options, QueryObserver);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const hooks = require("@mantine/hooks");
|
|
6
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
6
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
7
7
|
const createItem = require("../utils/api/createItem.cjs");
|
|
8
8
|
const deleteItem = require("../utils/api/deleteItem.cjs");
|
|
9
9
|
const downloadItems = require("../utils/api/downloadItems.cjs");
|
|
@@ -17,7 +17,7 @@ const uploadItems = require("../utils/api/uploadItems.cjs");
|
|
|
17
17
|
const convertId = require("../utils/convertId.cjs");
|
|
18
18
|
const convertInfo = require("../utils/convertInfo.cjs");
|
|
19
19
|
const createQueryParams = require("../utils/createQueryParams.cjs");
|
|
20
|
-
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.
|
|
20
|
+
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/utils.cjs");
|
|
21
21
|
function useProvideApi({
|
|
22
22
|
path,
|
|
23
23
|
initialQueryParams,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const zustand = require("fastapi-rtk/zustand");
|
|
5
|
-
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.
|
|
6
|
-
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.
|
|
5
|
+
const queryClient = require("../../../../.external/cjs/@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/queryClient.cjs");
|
|
6
|
+
const QueryClientProvider = require("../../../../.external/cjs/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const useProvideAuth = require("../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.cjs");
|
|
9
9
|
const useProvideInfo = require("../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
4
|
-
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
|
+
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const authFetch = require("../utils/authFetch.cjs");
|
|
7
7
|
const userCRUD = require("../utils/userCRUD.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const authFetch = require("../utils/authFetch.cjs");
|
|
6
6
|
function useProvideInfo(baseUrl, auth) {
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const hooks = require("@mantine/hooks");
|
|
6
|
-
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.
|
|
7
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
6
|
+
const utils$1 = require("../../../../../.external/cjs/@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/utils.cjs");
|
|
7
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
8
8
|
const createItem = require("../utils/api/createItem.cjs");
|
|
9
9
|
const deleteItem = require("../utils/api/deleteItem.cjs");
|
|
10
10
|
const downloadItems = require("../utils/api/downloadItems.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
4
|
-
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
|
+
const QueryClientProvider = require("../../../../../.external/cjs/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.cjs");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const authFetch = require("../utils/authFetch.cjs");
|
|
7
7
|
const userCRUD = require("../utils/userCRUD.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.
|
|
3
|
+
const useQuery = require("../../../../../.external/cjs/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const authFetch = require("../utils/authFetch.cjs");
|
|
6
6
|
function useFabProvideInfo(baseUrl, auth) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useMemo, useCallback } from "react";
|
|
2
2
|
import { getItemId, urlJoin } from "fastapi-rtk/utils";
|
|
3
3
|
import { useDidUpdate, useSetState } from "@mantine/hooks";
|
|
4
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
4
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
5
5
|
import { createItem } from "../utils/api/createItem.mjs";
|
|
6
6
|
import { deleteItem } from "../utils/api/deleteItem.mjs";
|
|
7
7
|
import { downloadItems } from "../utils/api/downloadItems.mjs";
|
|
@@ -15,7 +15,7 @@ import { uploadItems } from "../utils/api/uploadItems.mjs";
|
|
|
15
15
|
import { convertId } from "../utils/convertId.mjs";
|
|
16
16
|
import { convertInfo } from "../utils/convertInfo.mjs";
|
|
17
17
|
import { createQueryParams } from "../utils/createQueryParams.mjs";
|
|
18
|
-
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.
|
|
18
|
+
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/utils.mjs";
|
|
19
19
|
function useProvideApi({
|
|
20
20
|
path,
|
|
21
21
|
initialQueryParams,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useProxy } from "fastapi-rtk/zustand";
|
|
3
|
-
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.
|
|
4
|
-
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.
|
|
3
|
+
import { QueryClient } from "../../../../.external/esm/@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/queryClient.mjs";
|
|
4
|
+
import { QueryClientProvider } from "../../../../.external/esm/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { useFabProvideAuth } from "../../fab-react-toolkit-patch/auth/hooks/useProvideAuth.mjs";
|
|
7
7
|
import { useFabProvideInfo } from "../../fab-react-toolkit-patch/auth/hooks/useProvideInfo.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
2
|
-
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
|
+
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
3
3
|
import { useState, useCallback } from "react";
|
|
4
4
|
import { authSignin, authSignout, authResetPassword, authOAuthSignin } from "../utils/authFetch.mjs";
|
|
5
5
|
import { getUser, updateUser } from "../utils/userCRUD.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { authInfo } from "../utils/authFetch.mjs";
|
|
4
4
|
function useProvideInfo(baseUrl, auth) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useMemo, useCallback } from "react";
|
|
2
2
|
import { getItemId, urlJoin } from "fastapi-rtk/utils";
|
|
3
3
|
import { useDidUpdate, useSetState } from "@mantine/hooks";
|
|
4
|
-
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.
|
|
5
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
4
|
+
import { keepPreviousData } from "../../../../../.external/esm/@tanstack_query-core@5.82.0/@tanstack/query-core/build/modern/utils.mjs";
|
|
5
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
6
6
|
import { createItem } from "../utils/api/createItem.mjs";
|
|
7
7
|
import { deleteItem } from "../utils/api/deleteItem.mjs";
|
|
8
8
|
import { downloadItems } from "../utils/api/downloadItems.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
2
|
-
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
|
+
import { useQueryClient } from "../../../../../.external/esm/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/QueryClientProvider.mjs";
|
|
3
3
|
import { useState, useCallback } from "react";
|
|
4
4
|
import { authSignin, authSignout, authResetPassword, authOAuthSignin } from "../utils/authFetch.mjs";
|
|
5
5
|
import { getUser, updateUser } from "../utils/userCRUD.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.
|
|
1
|
+
import { useQuery } from "../../../../../.external/esm/@tanstack_react-query@5.82.0_react@18.3.1/@tanstack/react-query/build/modern/useQuery.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { authInfo } from "../utils/authFetch.mjs";
|
|
4
4
|
function useFabProvideInfo(baseUrl, auth) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const MantineNumberInput = require("./MantineNumberInput.cjs");
|
|
5
|
+
function MantineIntegerInput({ margin, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MantineNumberInput.InnerMantineNumberInput, { ...props, contextName: "Integer", margin });
|
|
7
|
+
}
|
|
8
|
+
exports.MantineIntegerInput = MantineIntegerInput;
|
|
@@ -6,15 +6,19 @@ const React = require("react");
|
|
|
6
6
|
const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useNumberProps = require("../hooks/useNumberProps.cjs");
|
|
9
|
-
|
|
9
|
+
const InnerMantineNumberInput = ({ contextName, margin, ...props }) => {
|
|
10
10
|
const commonProps = useCommonProps.useCommonProps(props);
|
|
11
11
|
const { path, data } = props;
|
|
12
|
-
const numberProps = useNumberProps.useNumberProps(
|
|
12
|
+
const numberProps = useNumberProps.useNumberProps(contextName.toLowerCase(), { data, onChange: commonProps.onChange });
|
|
13
13
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...numberProps }), [commonProps, numberProps]);
|
|
14
|
-
const [Component, _props] = useContextProps.useContextProps(
|
|
14
|
+
const [Component, _props] = useContextProps.useContextProps(contextName, path, componentProps, props);
|
|
15
15
|
if (!props.visible) {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
return /* @__PURE__ */ jsxRuntime.jsx(core.Box, { m: Component === null ? void 0 : margin, children: Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.NumberInput, { ..._props }) : Component });
|
|
19
|
+
};
|
|
20
|
+
function MantineNumberInput({ margin, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(InnerMantineNumberInput, { ...props, contextName: "Number", margin });
|
|
19
22
|
}
|
|
23
|
+
exports.InnerMantineNumberInput = InnerMantineNumberInput;
|
|
20
24
|
exports.MantineNumberInput = MantineNumberInput;
|
|
@@ -3,8 +3,8 @@ 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
|
|
6
|
+
const MantineIntegerInput = require("../MantineInputs/MantineIntegerInput.cjs");
|
|
7
7
|
const mantineIntegerCellTester = core.rankWith(1, core.isIntegerControl);
|
|
8
|
-
const MantineIntegerCell = react.withJsonFormsCellProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
+
const MantineIntegerCell = react.withJsonFormsCellProps((props) => /* @__PURE__ */ jsxRuntime.jsx(MantineIntegerInput.MantineIntegerInput, { ...props }));
|
|
9
9
|
exports.MantineIntegerCell = MantineIntegerCell;
|
|
10
10
|
exports.mantineIntegerCellTester = mantineIntegerCellTester;
|
|
@@ -3,9 +3,9 @@ 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
|
|
6
|
+
const MantineIntegerInput = require("../MantineInputs/MantineIntegerInput.cjs");
|
|
7
7
|
const constants = require("../utils/constants.cjs");
|
|
8
8
|
const mantineIntegerControlTester = core.rankWith(1, core.isIntegerControl);
|
|
9
|
-
const MantineIntegerControl = react.withJsonFormsControlProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
+
const MantineIntegerControl = react.withJsonFormsControlProps((props) => /* @__PURE__ */ jsxRuntime.jsx(MantineIntegerInput.MantineIntegerInput, { margin: constants.DEFAULT_MARGIN, ...props }));
|
|
10
10
|
exports.MantineIntegerControl = MantineIntegerControl;
|
|
11
11
|
exports.mantineIntegerControlTester = mantineIntegerControlTester;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { InnerMantineNumberInput } from "./MantineNumberInput.mjs";
|
|
3
|
+
function MantineIntegerInput({ margin, ...props }) {
|
|
4
|
+
return /* @__PURE__ */ jsx(InnerMantineNumberInput, { ...props, contextName: "Integer", margin });
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
MantineIntegerInput
|
|
8
|
+
};
|
|
@@ -4,17 +4,21 @@ import { useMemo } from "react";
|
|
|
4
4
|
import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
5
5
|
import { useContextProps } from "../hooks/useContextProps.mjs";
|
|
6
6
|
import { useNumberProps } from "../hooks/useNumberProps.mjs";
|
|
7
|
-
|
|
7
|
+
const InnerMantineNumberInput = ({ contextName, margin, ...props }) => {
|
|
8
8
|
const commonProps = useCommonProps(props);
|
|
9
9
|
const { path, data } = props;
|
|
10
|
-
const numberProps = useNumberProps(
|
|
10
|
+
const numberProps = useNumberProps(contextName.toLowerCase(), { data, onChange: commonProps.onChange });
|
|
11
11
|
const componentProps = useMemo(() => ({ ...commonProps, ...numberProps }), [commonProps, numberProps]);
|
|
12
|
-
const [Component, _props] = useContextProps(
|
|
12
|
+
const [Component, _props] = useContextProps(contextName, path, componentProps, props);
|
|
13
13
|
if (!props.visible) {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
return /* @__PURE__ */ jsx(Box, { m: Component === null ? void 0 : margin, children: Component === void 0 ? /* @__PURE__ */ jsx(NumberInput, { ..._props }) : Component });
|
|
17
|
+
};
|
|
18
|
+
function MantineNumberInput({ margin, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx(InnerMantineNumberInput, { ...props, contextName: "Number", margin });
|
|
17
20
|
}
|
|
18
21
|
export {
|
|
22
|
+
InnerMantineNumberInput,
|
|
19
23
|
MantineNumberInput
|
|
20
24
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { rankWith, isIntegerControl } from "@jsonforms/core";
|
|
3
3
|
import { withJsonFormsCellProps } from "@jsonforms/react";
|
|
4
|
-
import {
|
|
4
|
+
import { MantineIntegerInput } from "../MantineInputs/MantineIntegerInput.mjs";
|
|
5
5
|
const mantineIntegerCellTester = rankWith(1, isIntegerControl);
|
|
6
|
-
const MantineIntegerCell = withJsonFormsCellProps((props) => /* @__PURE__ */ jsx(
|
|
6
|
+
const MantineIntegerCell = withJsonFormsCellProps((props) => /* @__PURE__ */ jsx(MantineIntegerInput, { ...props }));
|
|
7
7
|
export {
|
|
8
8
|
MantineIntegerCell,
|
|
9
9
|
mantineIntegerCellTester
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { rankWith, isIntegerControl } from "@jsonforms/core";
|
|
3
3
|
import { withJsonFormsControlProps } from "@jsonforms/react";
|
|
4
|
-
import {
|
|
4
|
+
import { MantineIntegerInput } from "../MantineInputs/MantineIntegerInput.mjs";
|
|
5
5
|
import { DEFAULT_MARGIN } from "../utils/constants.mjs";
|
|
6
6
|
const mantineIntegerControlTester = rankWith(1, isIntegerControl);
|
|
7
|
-
const MantineIntegerControl = withJsonFormsControlProps((props) => /* @__PURE__ */ jsx(
|
|
7
|
+
const MantineIntegerControl = withJsonFormsControlProps((props) => /* @__PURE__ */ jsx(MantineIntegerInput, { margin: DEFAULT_MARGIN, ...props }));
|
|
8
8
|
export {
|
|
9
9
|
MantineIntegerControl,
|
|
10
10
|
mantineIntegerControlTester
|
|
@@ -2,3 +2,8 @@ export function MantineNumberInput({ margin, ...props }: {
|
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
margin: any;
|
|
4
4
|
}): import("react").JSX.Element;
|
|
5
|
+
export function InnerMantineNumberInput({ contextName, margin, ...props }: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
contextName: any;
|
|
8
|
+
margin: any;
|
|
9
|
+
}): import("react").JSX.Element;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|