fastapi-rtk 1.0.35 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useCommonProps.cjs +7 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useIfProps.cjs +12 -0
- package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useCommonProps.mjs +7 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useIfProps.mjs +12 -0
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/core/cjs/ActionIcons/Add/Add.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Download/Download.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +1 -1
- package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +1 -1
- package/dist/core/cjs/ActionIcons/View/View.cjs +1 -1
- package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/DeleteDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
- package/dist/core/cjs/Modals/CommonModal.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +1 -1
- package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +3 -3
- package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +1 -1
- package/dist/core/cjs/index.cjs +1 -1
- package/dist/core/esm/ActionIcons/Add/Add.mjs +1 -1
- package/dist/core/esm/ActionIcons/Delete/Delete.mjs +1 -1
- package/dist/core/esm/ActionIcons/Download/Download.mjs +1 -1
- package/dist/core/esm/ActionIcons/Edit/Edit.mjs +1 -1
- package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +1 -1
- package/dist/core/esm/ActionIcons/View/View.mjs +1 -1
- package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/DeleteDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
- package/dist/core/esm/Modals/CommonModal.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
- package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +3 -3
- package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +1 -1
- package/dist/core/esm/index.mjs +1 -1
- package/dist/jsonforms/cjs/hooks/useCommonProps.cjs +7 -2
- package/dist/jsonforms/cjs/hooks/useIfProps.cjs +12 -0
- package/dist/jsonforms/esm/hooks/useCommonProps.mjs +7 -2
- package/dist/jsonforms/esm/hooks/useIfProps.mjs +12 -0
- package/dist/jsonforms/lib/hooks/useIfProps.d.ts +15 -0
- package/package.json +1 -1
- /package/dist/.external/cjs/{i18next@25.8.10_typescript@5.9.3 → i18next@25.8.11_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
- /package/dist/.external/esm/{i18next@25.8.10_typescript@5.9.3 → i18next@25.8.11_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.10_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const core$1 = require("fastapi-rtk/core");
|
|
5
|
+
const jsonformsReact_esm = require("../../../../../../../.external/cjs/@jsonforms_react@3.7.0_@jsonforms_core@3.7.0_react@19.2.4/@jsonforms/react/lib/jsonforms-react.esm.cjs");
|
|
5
6
|
const core = require("@mantine/core");
|
|
6
7
|
const hooks = require("@mantine/hooks");
|
|
7
8
|
const React = require("react");
|
|
8
9
|
const isSchemaTypeInclude = require("../utils/isSchemaTypeInclude.cjs");
|
|
10
|
+
const useIfProps = require("./useIfProps.cjs");
|
|
9
11
|
function useCommonProps(props = {}) {
|
|
10
|
-
var _a, _b;
|
|
12
|
+
var _a, _b, _c, _d;
|
|
11
13
|
const __ = core.useProps("__", {}, {});
|
|
12
14
|
const [value, setValue] = React.useState(props.data);
|
|
13
15
|
let valueIfNull = null;
|
|
@@ -38,6 +40,8 @@ function useCommonProps(props = {}) {
|
|
|
38
40
|
onChange(props.schema.default);
|
|
39
41
|
}
|
|
40
42
|
}, [props.schema.default]);
|
|
43
|
+
const { core: core$2 } = jsonformsReact_esm.useJsonForms();
|
|
44
|
+
const ifProps = useIfProps.useIfProps((_b = (_a = props.uischema) == null ? void 0 : _a.options) == null ? void 0 : _b.ifProps, core$2);
|
|
41
45
|
return {
|
|
42
46
|
inputWrapperOrder: ["label", "input", "description", "error"],
|
|
43
47
|
label: props.label,
|
|
@@ -48,7 +52,8 @@ function useCommonProps(props = {}) {
|
|
|
48
52
|
onChange,
|
|
49
53
|
onBlur: () => debouncedCallback.flush(),
|
|
50
54
|
error: props.errors ? props.errors.split("\n").map((error) => /* @__PURE__ */ jsxRuntime.jsx("span", { style: { display: "block" }, children: error }, error)) : void 0,
|
|
51
|
-
...(
|
|
55
|
+
...(_d = (_c = props.uischema) == null ? void 0 : _c.options) == null ? void 0 : _d.props,
|
|
56
|
+
...ifProps
|
|
52
57
|
};
|
|
53
58
|
}
|
|
54
59
|
exports.useCommonProps = useCommonProps;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const useIfProps = (schema, core, key = "props") => React.useMemo(() => {
|
|
5
|
+
if (!schema) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const { if: condition, then: thenBranch, else: elseBranch } = schema;
|
|
9
|
+
const { ajv, data } = core;
|
|
10
|
+
return ajv.validate(condition, data) ? thenBranch == null ? void 0 : thenBranch[key] : elseBranch == null ? void 0 : elseBranch[key];
|
|
11
|
+
}, [schema, core, key]);
|
|
12
|
+
exports.useIfProps = useIfProps;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { DEBOUNCE_JSONFORMS_DELAY } from "fastapi-rtk/core";
|
|
3
|
+
import { useJsonForms } from "../../../../../../../.external/esm/@jsonforms_react@3.7.0_@jsonforms_core@3.7.0_react@19.2.4/@jsonforms/react/lib/jsonforms-react.esm.mjs";
|
|
3
4
|
import { useProps } from "@mantine/core";
|
|
4
5
|
import { useDebouncedCallback } from "@mantine/hooks";
|
|
5
6
|
import { useState, useEffect } from "react";
|
|
6
7
|
import { isSchemaTypeInclude } from "../utils/isSchemaTypeInclude.mjs";
|
|
8
|
+
import { useIfProps } from "./useIfProps.mjs";
|
|
7
9
|
function useCommonProps(props = {}) {
|
|
8
|
-
var _a, _b;
|
|
10
|
+
var _a, _b, _c, _d;
|
|
9
11
|
const __ = useProps("__", {}, {});
|
|
10
12
|
const [value, setValue] = useState(props.data);
|
|
11
13
|
let valueIfNull = null;
|
|
@@ -36,6 +38,8 @@ function useCommonProps(props = {}) {
|
|
|
36
38
|
onChange(props.schema.default);
|
|
37
39
|
}
|
|
38
40
|
}, [props.schema.default]);
|
|
41
|
+
const { core } = useJsonForms();
|
|
42
|
+
const ifProps = useIfProps((_b = (_a = props.uischema) == null ? void 0 : _a.options) == null ? void 0 : _b.ifProps, core);
|
|
39
43
|
return {
|
|
40
44
|
inputWrapperOrder: ["label", "input", "description", "error"],
|
|
41
45
|
label: props.label,
|
|
@@ -46,7 +50,8 @@ function useCommonProps(props = {}) {
|
|
|
46
50
|
onChange,
|
|
47
51
|
onBlur: () => debouncedCallback.flush(),
|
|
48
52
|
error: props.errors ? props.errors.split("\n").map((error) => /* @__PURE__ */ jsx("span", { style: { display: "block" }, children: error }, error)) : void 0,
|
|
49
|
-
...(
|
|
53
|
+
...(_d = (_c = props.uischema) == null ? void 0 : _c.options) == null ? void 0 : _d.props,
|
|
54
|
+
...ifProps
|
|
50
55
|
};
|
|
51
56
|
}
|
|
52
57
|
export {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
const useIfProps = (schema, core, key = "props") => useMemo(() => {
|
|
3
|
+
if (!schema) {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
const { if: condition, then: thenBranch, else: elseBranch } = schema;
|
|
7
|
+
const { ajv, data } = core;
|
|
8
|
+
return ajv.validate(condition, data) ? thenBranch == null ? void 0 : thenBranch[key] : elseBranch == null ? void 0 : elseBranch[key];
|
|
9
|
+
}, [schema, core, key]);
|
|
10
|
+
export {
|
|
11
|
+
useIfProps
|
|
12
|
+
};
|
|
@@ -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/
|
|
3
|
+
const index = require("../../../../../../.bundled/jsonforms/cjs/_virtual/index10.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/
|
|
3
|
+
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index8.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/
|
|
3
|
+
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index6.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/
|
|
3
|
+
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index9.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/
|
|
3
|
+
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index7.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 compile } from "../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as compile } from "../../../../../../.bundled/jsonforms/esm/_virtual/index10.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 applicator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as applicator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index8.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/
|
|
1
|
+
import { __exports as core } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index6.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 format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index9.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/
|
|
1
|
+
import { __exports as validation } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index7.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";
|
|
@@ -6,7 +6,7 @@ const core = require("@mantine/core");
|
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
8
8
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
9
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
9
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
10
10
|
const IconPlus = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPlus.cjs");
|
|
11
11
|
const Add = React.memo(({ tooltipProps, ...props }) => {
|
|
12
12
|
const { t } = useTranslation.useTranslation();
|
|
@@ -6,7 +6,7 @@ const core = require("@mantine/core");
|
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
8
8
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
9
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
9
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
10
10
|
const IconTrash = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconTrash.cjs");
|
|
11
11
|
const Delete = React.memo(({ id, ...props }) => {
|
|
12
12
|
const { t } = useTranslation.useTranslation();
|
|
@@ -8,7 +8,7 @@ const hooks = require("@mantine/hooks");
|
|
|
8
8
|
const React = require("react");
|
|
9
9
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
10
10
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
11
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
11
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
12
12
|
const IconSeparatorVertical = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.cjs");
|
|
13
13
|
const IconDownload = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDownload.cjs");
|
|
14
14
|
const Download = React.memo(({ tooltipProps, ...props }) => {
|
|
@@ -9,7 +9,7 @@ const React = require("react");
|
|
|
9
9
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
10
10
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
11
11
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
12
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
12
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
13
13
|
const IconPencil = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPencil.cjs");
|
|
14
14
|
const Edit = React.memo(({ id, ...props }) => {
|
|
15
15
|
const { getEntry } = useApi.useApi();
|
|
@@ -6,7 +6,7 @@ const core = require("@mantine/core");
|
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
8
8
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
9
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
9
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
10
10
|
const IconRefresh = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconRefresh.cjs");
|
|
11
11
|
const Refresh = React.memo(({ tooltipProps, ...props }) => {
|
|
12
12
|
const { t } = useTranslation.useTranslation();
|
|
@@ -9,7 +9,7 @@ const React = require("react");
|
|
|
9
9
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
10
10
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
11
11
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
12
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
12
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
13
13
|
const IconEye = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEye.cjs");
|
|
14
14
|
const View = React.memo(({ id, ...props }) => {
|
|
15
15
|
const { getEntry } = useApi.useApi();
|
|
@@ -17,7 +17,7 @@ const CommonModal = require("../Modals/CommonModal.cjs");
|
|
|
17
17
|
const normalProps = require("../Modals/normalProps.cjs");
|
|
18
18
|
const overlayProps = require("../Modals/overlayProps.cjs");
|
|
19
19
|
const FormField = require("../Tables/DataGrid/FormField/FormField.cjs");
|
|
20
|
-
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
20
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
21
21
|
function AddDialog({
|
|
22
22
|
jsonForms: __jsonForms,
|
|
23
23
|
onSuccess,
|
|
@@ -10,7 +10,7 @@ const overlayProps = require("../Modals/overlayProps.cjs");
|
|
|
10
10
|
const useApi = require("../hooks/api/useApi.cjs");
|
|
11
11
|
const useForms = require("../hooks/api/useForms.cjs");
|
|
12
12
|
require("../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
13
|
-
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
13
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
14
14
|
const DeleteDialog = ({ deleteText, onSuccess, onError, ...props }) => {
|
|
15
15
|
const { refetch, refetchInfo, deleteEntry } = useApi.useApi();
|
|
16
16
|
const { t } = useTranslation.useTranslation();
|
|
@@ -20,7 +20,7 @@ const CommonModal = require("../Modals/CommonModal.cjs");
|
|
|
20
20
|
const normalProps = require("../Modals/normalProps.cjs");
|
|
21
21
|
const overlayProps = require("../Modals/overlayProps.cjs");
|
|
22
22
|
const FormField = require("../Tables/DataGrid/FormField/FormField.cjs");
|
|
23
|
-
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
23
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
24
24
|
function EditDialog({
|
|
25
25
|
jsonForms: __jsonForms,
|
|
26
26
|
onSuccess,
|
|
@@ -7,7 +7,7 @@ const iconify = require("../../../.external/cjs/@iconify_react@6.0.2_react@19.2.
|
|
|
7
7
|
const core = require("@mantine/core");
|
|
8
8
|
const useInfo = require("../hooks/auth/useInfo.cjs");
|
|
9
9
|
require("../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
10
|
-
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
10
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
11
11
|
function CommonModal({
|
|
12
12
|
children,
|
|
13
13
|
view,
|
|
@@ -5,7 +5,7 @@ const core = require("@mantine/core");
|
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
7
7
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
8
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
8
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
9
9
|
const IconAlertCircle = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconAlertCircle.cjs");
|
|
10
10
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11
11
|
const MessageRenderer = ({ message }) => {
|
|
@@ -13,7 +13,7 @@ const useApi = require("../../../../../hooks/api/useApi.cjs");
|
|
|
13
13
|
require("../../../../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
14
14
|
const utils$1 = require("../utils.cjs");
|
|
15
15
|
const HeaderInput = require("./HeaderInput.cjs");
|
|
16
|
-
const useTranslation = require("../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
16
|
+
const useTranslation = require("../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
17
17
|
const getLocalStorageValue = (key, defaultValue) => {
|
|
18
18
|
const value = localStorage.getItem(key);
|
|
19
19
|
if (value === null) {
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
require("../../../../../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
7
|
-
const useTranslation = require("../../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
7
|
+
const useTranslation = require("../../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
8
8
|
const IconX = require("../../../../../../../../.external/cjs/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconX.cjs");
|
|
9
9
|
const criteria = (v) => v !== void 0 && v !== null && v !== "";
|
|
10
10
|
const HeaderBetweenInput = React.forwardRef(({ clearIcon: _, mrtprops: { textinputprops }, ...props }, ref) => {
|
package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const useAuth = require("../../../../hooks/auth/useAuth.cjs");
|
|
|
8
8
|
require("../../../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
9
9
|
const AdvancedFilters = require("./AdvancedFilters.cjs");
|
|
10
10
|
const FilterMenuButton = require("./FilterMenuButton.cjs");
|
|
11
|
-
const useTranslation = require("../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
11
|
+
const useTranslation = require("../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
12
12
|
const HeaderAdvancedFiltersMenuButton = ({ filters, mrtProps }) => {
|
|
13
13
|
const { t } = useTranslation.useTranslation();
|
|
14
14
|
const { table, column } = mrtProps;
|
|
@@ -5,12 +5,12 @@ const constants = require("fastapi-rtk/constants");
|
|
|
5
5
|
const utils = require("fastapi-rtk/utils");
|
|
6
6
|
const zustand = require("fastapi-rtk/zustand");
|
|
7
7
|
const hooks = require("@mantine/hooks");
|
|
8
|
-
const i18next = require("../../../../../.external/cjs/i18next@25.8.
|
|
8
|
+
const i18next = require("../../../../../.external/cjs/i18next@25.8.11_typescript@5.9.3/i18next/dist/esm/i18next.cjs");
|
|
9
9
|
const React = require("react");
|
|
10
10
|
const de = require("../../../translations/de.cjs");
|
|
11
11
|
const useProvideLang = require("../hooks/useProvideLang.cjs");
|
|
12
|
-
const I18nextProvider = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
13
|
-
const initReactI18next = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
12
|
+
const I18nextProvider = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/I18nextProvider.cjs");
|
|
13
|
+
const initReactI18next = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/initReactI18next.cjs");
|
|
14
14
|
const getI18n = ({ initProps, callback, translations } = {}) => {
|
|
15
15
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
16
16
|
const i18n = i18next.createInstance();
|
|
@@ -4,7 +4,7 @@ const constants = require("fastapi-rtk/constants");
|
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const hooks = require("@mantine/hooks");
|
|
6
6
|
const React = require("react");
|
|
7
|
-
const useTranslation = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
7
|
+
const useTranslation = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
8
8
|
const useProvideLang = (baseMRTLocalization = {}) => {
|
|
9
9
|
const translation = useTranslation.useTranslation();
|
|
10
10
|
const [localStorageLanguage, setLocalStorageLanguage] = hooks.useLocalStorage(constants.LANG_LOCAL_STORAGE_PROPS);
|
package/dist/core/cjs/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ const utils = require("fastapi-rtk/utils");
|
|
|
39
39
|
const zustand = require("fastapi-rtk/zustand");
|
|
40
40
|
const index = require("../../.external/cjs/@tanstack_react-query@5.90.21_react@19.2.4/@tanstack/react-query/build/modern/index.cjs");
|
|
41
41
|
const index_esm = require("../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.cjs");
|
|
42
|
-
const useTranslation = require("../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
42
|
+
const useTranslation = require("../../.external/cjs/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
43
43
|
exports.Actions = Actions.Actions;
|
|
44
44
|
exports.Add = Add.Add;
|
|
45
45
|
exports.Delete = Delete.Delete;
|
|
@@ -4,7 +4,7 @@ import { Tooltip, ActionIcon } from "@mantine/core";
|
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { useForms } from "../../hooks/api/useForms.mjs";
|
|
6
6
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
7
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
7
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
8
8
|
import IconPlus from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPlus.mjs";
|
|
9
9
|
const Add = memo(({ tooltipProps, ...props }) => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -4,7 +4,7 @@ import { Tooltip, ActionIcon } from "@mantine/core";
|
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { useForms } from "../../hooks/api/useForms.mjs";
|
|
6
6
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
7
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
7
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
8
8
|
import IconTrash from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconTrash.mjs";
|
|
9
9
|
const Delete = memo(({ id, ...props }) => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -6,7 +6,7 @@ import { useDisclosure, useDebouncedState } from "@mantine/hooks";
|
|
|
6
6
|
import { memo, useState } from "react";
|
|
7
7
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
8
8
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
9
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
9
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
10
10
|
import IconSeparatorVertical from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.mjs";
|
|
11
11
|
import IconDownload from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconDownload.mjs";
|
|
12
12
|
const Download = memo(({ tooltipProps, ...props }) => {
|
|
@@ -7,7 +7,7 @@ import { memo } from "react";
|
|
|
7
7
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
8
8
|
import { useForms } from "../../hooks/api/useForms.mjs";
|
|
9
9
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
10
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
10
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
11
11
|
import IconPencil from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconPencil.mjs";
|
|
12
12
|
const Edit = memo(({ id, ...props }) => {
|
|
13
13
|
const { getEntry } = useApi();
|
|
@@ -4,7 +4,7 @@ import { ThemeIcon, Loader, Tooltip, ActionIcon } from "@mantine/core";
|
|
|
4
4
|
import { memo, useState } from "react";
|
|
5
5
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
6
6
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
7
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
7
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
8
8
|
import IconRefresh from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconRefresh.mjs";
|
|
9
9
|
const Refresh = memo(({ tooltipProps, ...props }) => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -7,7 +7,7 @@ import { memo } from "react";
|
|
|
7
7
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
8
8
|
import { useForms } from "../../hooks/api/useForms.mjs";
|
|
9
9
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
10
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
10
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
11
11
|
import IconEye from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconEye.mjs";
|
|
12
12
|
const View = memo(({ id, ...props }) => {
|
|
13
13
|
const { getEntry } = useApi();
|
|
@@ -15,7 +15,7 @@ import { CommonModal } from "../Modals/CommonModal.mjs";
|
|
|
15
15
|
import { normalProps } from "../Modals/normalProps.mjs";
|
|
16
16
|
import { overlayProps } from "../Modals/overlayProps.mjs";
|
|
17
17
|
import { FormField } from "../Tables/DataGrid/FormField/FormField.mjs";
|
|
18
|
-
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
18
|
+
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
19
19
|
function AddDialog({
|
|
20
20
|
jsonForms: __jsonForms,
|
|
21
21
|
onSuccess,
|
|
@@ -8,7 +8,7 @@ import { overlayProps } from "../Modals/overlayProps.mjs";
|
|
|
8
8
|
import { useApi } from "../hooks/api/useApi.mjs";
|
|
9
9
|
import { useForms } from "../hooks/api/useForms.mjs";
|
|
10
10
|
import "../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
11
|
-
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
11
|
+
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
12
12
|
const DeleteDialog = ({ deleteText, onSuccess, onError, ...props }) => {
|
|
13
13
|
const { refetch, refetchInfo, deleteEntry } = useApi();
|
|
14
14
|
const { t } = useTranslation();
|
|
@@ -18,7 +18,7 @@ import { CommonModal } from "../Modals/CommonModal.mjs";
|
|
|
18
18
|
import { normalProps } from "../Modals/normalProps.mjs";
|
|
19
19
|
import { overlayProps } from "../Modals/overlayProps.mjs";
|
|
20
20
|
import { FormField } from "../Tables/DataGrid/FormField/FormField.mjs";
|
|
21
|
-
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
21
|
+
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
22
22
|
function EditDialog({
|
|
23
23
|
jsonForms: __jsonForms,
|
|
24
24
|
onSuccess,
|
|
@@ -5,7 +5,7 @@ import { Icon } from "../../../.external/esm/@iconify_react@6.0.2_react@19.2.4/@
|
|
|
5
5
|
import { Modal, Box, Group, Button, CloseButton } from "@mantine/core";
|
|
6
6
|
import { useInfo } from "../hooks/auth/useInfo.mjs";
|
|
7
7
|
import "../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
8
|
-
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
8
|
+
import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
9
9
|
function CommonModal({
|
|
10
10
|
children,
|
|
11
11
|
view,
|
|
@@ -3,7 +3,7 @@ import { Modal, Group, Text, List, Grid, Card } from "@mantine/core";
|
|
|
3
3
|
import { useMemo, Fragment } from "react";
|
|
4
4
|
import { useApi } from "../../hooks/api/useApi.mjs";
|
|
5
5
|
import "../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
6
|
-
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
6
|
+
import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
7
7
|
import IconAlertCircle from "../../../../.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs";
|
|
8
8
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9
9
|
const MessageRenderer = ({ message }) => {
|
|
@@ -11,7 +11,7 @@ import { useApi } from "../../../../../hooks/api/useApi.mjs";
|
|
|
11
11
|
import "../../../../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
12
12
|
import { getBasicInput } from "../utils.mjs";
|
|
13
13
|
import { HeaderInput } from "./HeaderInput.mjs";
|
|
14
|
-
import { useTranslation } from "../../../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
14
|
+
import { useTranslation } from "../../../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
15
15
|
const getLocalStorageValue = (key, defaultValue) => {
|
|
16
16
|
const value = localStorage.getItem(key);
|
|
17
17
|
if (value === null) {
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { ActionIcon, Group, NumberInput } from "@mantine/core";
|
|
3
3
|
import { forwardRef, useState, useEffect, useCallback } from "react";
|
|
4
4
|
import "../../../../../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
5
|
-
import { useTranslation } from "../../../../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
5
|
+
import { useTranslation } from "../../../../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
6
6
|
import IconX from "../../../../../../../../.external/esm/@tabler_icons-react@3.18.0_react@19.2.4/@tabler/icons-react/dist/esm/icons/IconX.mjs";
|
|
7
7
|
const criteria = (v) => v !== void 0 && v !== null && v !== "";
|
|
8
8
|
const HeaderBetweenInput = forwardRef(({ clearIcon: _, mrtprops: { textinputprops }, ...props }, ref) => {
|
package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { useAuth } from "../../../../hooks/auth/useAuth.mjs";
|
|
|
6
6
|
import "../../../../Wrappers/Provider/Contexts/LangContext.mjs";
|
|
7
7
|
import { AdvancedFilters } from "./AdvancedFilters.mjs";
|
|
8
8
|
import { FilterMenuButton } from "./FilterMenuButton.mjs";
|
|
9
|
-
import { useTranslation } from "../../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
9
|
+
import { useTranslation } from "../../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
10
10
|
const HeaderAdvancedFiltersMenuButton = ({ filters, mrtProps }) => {
|
|
11
11
|
const { t } = useTranslation();
|
|
12
12
|
const { table, column } = mrtProps;
|
|
@@ -3,12 +3,12 @@ import { LANG_LOCAL_STORAGE_PROPS } from "fastapi-rtk/constants";
|
|
|
3
3
|
import { createSafeContext, parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
4
4
|
import { useProxy } from "fastapi-rtk/zustand";
|
|
5
5
|
import { useLocalStorage } from "@mantine/hooks";
|
|
6
|
-
import { createInstance } from "../../../../../.external/esm/i18next@25.8.
|
|
6
|
+
import { createInstance } from "../../../../../.external/esm/i18next@25.8.11_typescript@5.9.3/i18next/dist/esm/i18next.mjs";
|
|
7
7
|
import { useRef, useMemo, useEffect } from "react";
|
|
8
8
|
import de from "../../../translations/de.mjs";
|
|
9
9
|
import { useProvideLang } from "../hooks/useProvideLang.mjs";
|
|
10
|
-
import { I18nextProvider } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
11
|
-
import { initReactI18next } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
10
|
+
import { I18nextProvider } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/I18nextProvider.mjs";
|
|
11
|
+
import { initReactI18next } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/initReactI18next.mjs";
|
|
12
12
|
const getI18n = ({ initProps, callback, translations } = {}) => {
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
14
14
|
const i18n = createInstance();
|
|
@@ -2,7 +2,7 @@ import { LANG_LOCAL_STORAGE_PROPS, MRT_LOCALIZATION_IMPORT_MAP } from "fastapi-r
|
|
|
2
2
|
import { FastAPIRTKLogger } from "fastapi-rtk/utils";
|
|
3
3
|
import { useLocalStorage, useSetState } from "@mantine/hooks";
|
|
4
4
|
import { useCallback, useEffect } from "react";
|
|
5
|
-
import { useTranslation } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
5
|
+
import { useTranslation } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
6
6
|
const useProvideLang = (baseMRTLocalization = {}) => {
|
|
7
7
|
const translation = useTranslation();
|
|
8
8
|
const [localStorageLanguage, setLocalStorageLanguage] = useLocalStorage(LANG_LOCAL_STORAGE_PROPS);
|
package/dist/core/esm/index.mjs
CHANGED
|
@@ -37,7 +37,7 @@ export * from "fastapi-rtk/utils";
|
|
|
37
37
|
export * from "fastapi-rtk/zustand";
|
|
38
38
|
import * as index from "../../.external/esm/@tanstack_react-query@5.90.21_react@19.2.4/@tanstack/react-query/build/modern/index.mjs";
|
|
39
39
|
import * as index_esm from "../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.mjs";
|
|
40
|
-
import { useTranslation } from "../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
40
|
+
import { useTranslation } from "../../.external/esm/react-i18next@15.7.4_i18next@25.8.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
41
41
|
export {
|
|
42
42
|
Actions,
|
|
43
43
|
Add,
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const core$1 = require("fastapi-rtk/core");
|
|
5
|
+
const react = require("@jsonforms/react");
|
|
5
6
|
const core = require("@mantine/core");
|
|
6
7
|
const hooks = require("@mantine/hooks");
|
|
7
8
|
const React = require("react");
|
|
8
9
|
const isSchemaTypeInclude = require("../utils/isSchemaTypeInclude.cjs");
|
|
10
|
+
const useIfProps = require("./useIfProps.cjs");
|
|
9
11
|
function useCommonProps(props = {}) {
|
|
10
|
-
var _a, _b;
|
|
12
|
+
var _a, _b, _c, _d;
|
|
11
13
|
const __ = core.useProps("__", {}, {});
|
|
12
14
|
const [value, setValue] = React.useState(props.data);
|
|
13
15
|
let valueIfNull = null;
|
|
@@ -38,6 +40,8 @@ function useCommonProps(props = {}) {
|
|
|
38
40
|
onChange(props.schema.default);
|
|
39
41
|
}
|
|
40
42
|
}, [props.schema.default]);
|
|
43
|
+
const { core: core$2 } = react.useJsonForms();
|
|
44
|
+
const ifProps = useIfProps.useIfProps((_b = (_a = props.uischema) == null ? void 0 : _a.options) == null ? void 0 : _b.ifProps, core$2);
|
|
41
45
|
return {
|
|
42
46
|
inputWrapperOrder: ["label", "input", "description", "error"],
|
|
43
47
|
label: props.label,
|
|
@@ -48,7 +52,8 @@ function useCommonProps(props = {}) {
|
|
|
48
52
|
onChange,
|
|
49
53
|
onBlur: () => debouncedCallback.flush(),
|
|
50
54
|
error: props.errors ? props.errors.split("\n").map((error) => /* @__PURE__ */ jsxRuntime.jsx("span", { style: { display: "block" }, children: error }, error)) : void 0,
|
|
51
|
-
...(
|
|
55
|
+
...(_d = (_c = props.uischema) == null ? void 0 : _c.options) == null ? void 0 : _d.props,
|
|
56
|
+
...ifProps
|
|
52
57
|
};
|
|
53
58
|
}
|
|
54
59
|
exports.useCommonProps = useCommonProps;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const useIfProps = (schema, core, key = "props") => React.useMemo(() => {
|
|
5
|
+
if (!schema) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const { if: condition, then: thenBranch, else: elseBranch } = schema;
|
|
9
|
+
const { ajv, data } = core;
|
|
10
|
+
return ajv.validate(condition, data) ? thenBranch == null ? void 0 : thenBranch[key] : elseBranch == null ? void 0 : elseBranch[key];
|
|
11
|
+
}, [schema, core, key]);
|
|
12
|
+
exports.useIfProps = useIfProps;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { DEBOUNCE_JSONFORMS_DELAY } from "fastapi-rtk/core";
|
|
3
|
+
import { useJsonForms } from "@jsonforms/react";
|
|
3
4
|
import { useProps } from "@mantine/core";
|
|
4
5
|
import { useDebouncedCallback } from "@mantine/hooks";
|
|
5
6
|
import { useState, useEffect } from "react";
|
|
6
7
|
import { isSchemaTypeInclude } from "../utils/isSchemaTypeInclude.mjs";
|
|
8
|
+
import { useIfProps } from "./useIfProps.mjs";
|
|
7
9
|
function useCommonProps(props = {}) {
|
|
8
|
-
var _a, _b;
|
|
10
|
+
var _a, _b, _c, _d;
|
|
9
11
|
const __ = useProps("__", {}, {});
|
|
10
12
|
const [value, setValue] = useState(props.data);
|
|
11
13
|
let valueIfNull = null;
|
|
@@ -36,6 +38,8 @@ function useCommonProps(props = {}) {
|
|
|
36
38
|
onChange(props.schema.default);
|
|
37
39
|
}
|
|
38
40
|
}, [props.schema.default]);
|
|
41
|
+
const { core } = useJsonForms();
|
|
42
|
+
const ifProps = useIfProps((_b = (_a = props.uischema) == null ? void 0 : _a.options) == null ? void 0 : _b.ifProps, core);
|
|
39
43
|
return {
|
|
40
44
|
inputWrapperOrder: ["label", "input", "description", "error"],
|
|
41
45
|
label: props.label,
|
|
@@ -46,7 +50,8 @@ function useCommonProps(props = {}) {
|
|
|
46
50
|
onChange,
|
|
47
51
|
onBlur: () => debouncedCallback.flush(),
|
|
48
52
|
error: props.errors ? props.errors.split("\n").map((error) => /* @__PURE__ */ jsx("span", { style: { display: "block" }, children: error }, error)) : void 0,
|
|
49
|
-
...(
|
|
53
|
+
...(_d = (_c = props.uischema) == null ? void 0 : _c.options) == null ? void 0 : _d.props,
|
|
54
|
+
...ifProps
|
|
50
55
|
};
|
|
51
56
|
}
|
|
52
57
|
export {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
const useIfProps = (schema, core, key = "props") => useMemo(() => {
|
|
3
|
+
if (!schema) {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
const { if: condition, then: thenBranch, else: elseBranch } = schema;
|
|
7
|
+
const { ajv, data } = core;
|
|
8
|
+
return ajv.validate(condition, data) ? thenBranch == null ? void 0 : thenBranch[key] : elseBranch == null ? void 0 : elseBranch[key];
|
|
9
|
+
}, [schema, core, key]);
|
|
10
|
+
export {
|
|
11
|
+
useIfProps
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function useIfProps(schema: IfElseSchema | undefined, core: import('@jsonforms/core').JsonFormsCore, key?: string): Record<string, any> | undefined;
|
|
2
|
+
export type IfElseSchema = {
|
|
3
|
+
/**
|
|
4
|
+
* - The condition to evaluate against the data.
|
|
5
|
+
*/
|
|
6
|
+
if: Record<string, any>;
|
|
7
|
+
/**
|
|
8
|
+
* - The properties to return if the condition is true.
|
|
9
|
+
*/
|
|
10
|
+
then: Record<string, Record<string, any>>;
|
|
11
|
+
/**
|
|
12
|
+
* - The properties to return if the condition is false.
|
|
13
|
+
*/
|
|
14
|
+
else: Record<string, Record<string, any>>;
|
|
15
|
+
};
|
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
|