fastapi-rtk 1.0.38 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +5 -6
  2. package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useFileProps.cjs +2 -2
  3. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +5 -6
  4. package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useFileProps.mjs +2 -2
  5. package/dist/.external/cjs/{i18next@25.8.11_typescript@5.9.3 → i18next@25.8.13_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +12 -4
  6. package/dist/.external/esm/{i18next@25.8.11_typescript@5.9.3 → i18next@25.8.13_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +12 -4
  7. package/dist/core/cjs/ActionIcons/Add/Add.cjs +1 -1
  8. package/dist/core/cjs/ActionIcons/Delete/Delete.cjs +1 -1
  9. package/dist/core/cjs/ActionIcons/Download/Download.cjs +1 -1
  10. package/dist/core/cjs/ActionIcons/Edit/Edit.cjs +1 -1
  11. package/dist/core/cjs/ActionIcons/Refresh/Refresh.cjs +1 -1
  12. package/dist/core/cjs/ActionIcons/View/View.cjs +1 -1
  13. package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
  14. package/dist/core/cjs/Dialogs/DeleteDialog.cjs +1 -1
  15. package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
  16. package/dist/core/cjs/Modals/CommonModal.cjs +1 -1
  17. package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +1 -1
  18. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +1 -1
  19. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.cjs +1 -1
  20. package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.cjs +1 -1
  21. package/dist/core/cjs/Wrappers/Provider/Contexts/LangContext.cjs +3 -3
  22. package/dist/core/cjs/Wrappers/Provider/hooks/useProvideLang.cjs +1 -1
  23. package/dist/core/cjs/index.cjs +1 -1
  24. package/dist/core/esm/ActionIcons/Add/Add.mjs +1 -1
  25. package/dist/core/esm/ActionIcons/Delete/Delete.mjs +1 -1
  26. package/dist/core/esm/ActionIcons/Download/Download.mjs +1 -1
  27. package/dist/core/esm/ActionIcons/Edit/Edit.mjs +1 -1
  28. package/dist/core/esm/ActionIcons/Refresh/Refresh.mjs +1 -1
  29. package/dist/core/esm/ActionIcons/View/View.mjs +1 -1
  30. package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
  31. package/dist/core/esm/Dialogs/DeleteDialog.mjs +1 -1
  32. package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
  33. package/dist/core/esm/Modals/CommonModal.mjs +1 -1
  34. package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +1 -1
  35. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +1 -1
  36. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/HeaderInputs/HeaderBetweenInput.mjs +1 -1
  37. package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/HeaderAdvancedFiltersMenuButton.mjs +1 -1
  38. package/dist/core/esm/Wrappers/Provider/Contexts/LangContext.mjs +3 -3
  39. package/dist/core/esm/Wrappers/Provider/hooks/useProvideLang.mjs +1 -1
  40. package/dist/core/esm/index.mjs +1 -1
  41. package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +5 -6
  42. package/dist/jsonforms/cjs/hooks/useFileProps.cjs +2 -2
  43. package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +5 -6
  44. package/dist/jsonforms/esm/hooks/useFileProps.mjs +2 -2
  45. package/dist/jsonforms/lib/hooks/useFileProps.d.ts +3 -3
  46. package/package.json +1 -1
  47. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.cjs +0 -0
  48. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.cjs +0 -0
  49. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.cjs +0 -0
  50. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.cjs +0 -0
  51. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.cjs +0 -0
  52. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.cjs +0 -0
  53. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.cjs +0 -0
  54. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
  55. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.mjs +0 -0
  56. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/context.mjs +0 -0
  57. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/defaults.mjs +0 -0
  58. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.mjs +0 -0
  59. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.mjs +0 -0
  60. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/unescape.mjs +0 -0
  61. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/useTranslation.mjs +0 -0
  62. /package/dist/.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@15.7.4_i18next@25.8.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
@@ -10,12 +10,11 @@ const useFileProps = require("../hooks/useFileProps.cjs");
10
10
  const InnerMantineFileInput = ({ contextName, children, ...props }) => {
11
11
  const { value, ...commonProps } = useCommonProps.useCommonProps(props);
12
12
  const { path, schema, errors } = props;
13
- const fileProps = useFileProps.useFileProps({
14
- value,
15
- onChange: commonProps.onChange,
16
- contentMediaType: schema.contentMediaType,
17
- errors
18
- });
13
+ const accept = React.useMemo(
14
+ () => (/* @__PURE__ */ new Set([...schema.contentMediaType ?? [], ...schema["x-file-types"] ?? []])).values().toArray().join(","),
15
+ [schema.contentMediaType, schema["x-file-types"]]
16
+ );
17
+ const fileProps = useFileProps.useFileProps({ value, onChange: commonProps.onChange, accept, errors });
19
18
  const componentProps = React.useMemo(() => ({ ...commonProps, ...fileProps }), [commonProps, fileProps]);
20
19
  const [Component, _props] = useContextProps.useContextProps(contextName, path, componentProps, props);
21
20
  if (!props.visible) {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- function useFileProps({ value, onChange, contentMediaType, errors }) {
4
+ function useFileProps({ value, onChange, accept, errors }) {
5
5
  var _a;
6
6
  const filteredErrors = (_a = errors == null ? void 0 : errors.split("\n").filter((error) => !error.startsWith("must be string"))) == null ? void 0 : _a.join("\n");
7
7
  value = value || null;
@@ -11,7 +11,7 @@ function useFileProps({ value, onChange, contentMediaType, errors }) {
11
11
  return {
12
12
  value,
13
13
  onChange: (value2) => onChange(value2 || void 0),
14
- accept: contentMediaType || void 0,
14
+ accept: accept || void 0,
15
15
  error: filteredErrors ? filteredErrors.split("\n").map((error) => /* @__PURE__ */ jsxRuntime.jsx("span", { style: { display: "block" }, children: error }, error)) : void 0,
16
16
  clearable: true
17
17
  };
@@ -8,12 +8,11 @@ import { useFileProps } from "../hooks/useFileProps.mjs";
8
8
  const InnerMantineFileInput = ({ contextName, children, ...props }) => {
9
9
  const { value, ...commonProps } = useCommonProps(props);
10
10
  const { path, schema, errors } = props;
11
- const fileProps = useFileProps({
12
- value,
13
- onChange: commonProps.onChange,
14
- contentMediaType: schema.contentMediaType,
15
- errors
16
- });
11
+ const accept = useMemo(
12
+ () => (/* @__PURE__ */ new Set([...schema.contentMediaType ?? [], ...schema["x-file-types"] ?? []])).values().toArray().join(","),
13
+ [schema.contentMediaType, schema["x-file-types"]]
14
+ );
15
+ const fileProps = useFileProps({ value, onChange: commonProps.onChange, accept, errors });
17
16
  const componentProps = useMemo(() => ({ ...commonProps, ...fileProps }), [commonProps, fileProps]);
18
17
  const [Component, _props] = useContextProps(contextName, path, componentProps, props);
19
18
  if (!props.visible) {
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- function useFileProps({ value, onChange, contentMediaType, errors }) {
2
+ function useFileProps({ value, onChange, accept, errors }) {
3
3
  var _a;
4
4
  const filteredErrors = (_a = errors == null ? void 0 : errors.split("\n").filter((error) => !error.startsWith("must be string"))) == null ? void 0 : _a.join("\n");
5
5
  value = value || null;
@@ -9,7 +9,7 @@ function useFileProps({ value, onChange, contentMediaType, errors }) {
9
9
  return {
10
10
  value,
11
11
  onChange: (value2) => onChange(value2 || void 0),
12
- accept: contentMediaType || void 0,
12
+ accept: accept || void 0,
13
13
  error: filteredErrors ? filteredErrors.split("\n").map((error) => /* @__PURE__ */ jsx("span", { style: { display: "block" }, children: error }, error)) : void 0,
14
14
  clearable: true
15
15
  };
@@ -1705,9 +1705,13 @@ const bindMemberFunctions = (inst) => {
1705
1705
  }
1706
1706
  });
1707
1707
  };
1708
- let supportNoticeShown = false;
1708
+ const SUPPORT_NOTICE_KEY = "__i18next_supportNoticeShown";
1709
+ const getSupportNoticeShown = () => typeof globalThis !== "undefined" && !!globalThis[SUPPORT_NOTICE_KEY];
1710
+ const setSupportNoticeShown = () => {
1711
+ if (typeof globalThis !== "undefined") globalThis[SUPPORT_NOTICE_KEY] = true;
1712
+ };
1709
1713
  const usesLocize = (inst) => {
1710
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
1714
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
1711
1715
  if (((_c = (_b = (_a = inst == null ? void 0 : inst.modules) == null ? void 0 : _a.backend) == null ? void 0 : _b.name) == null ? void 0 : _c.indexOf("Locize")) > 0) return true;
1712
1716
  if (((_g = (_f = (_e = (_d = inst == null ? void 0 : inst.modules) == null ? void 0 : _d.backend) == null ? void 0 : _e.constructor) == null ? void 0 : _f.name) == null ? void 0 : _g.indexOf("Locize")) > 0) return true;
1713
1717
  if ((_i = (_h = inst == null ? void 0 : inst.options) == null ? void 0 : _h.backend) == null ? void 0 : _i.backends) {
@@ -1716,6 +1720,10 @@ const usesLocize = (inst) => {
1716
1720
  return ((_a2 = b == null ? void 0 : b.name) == null ? void 0 : _a2.indexOf("Locize")) > 0 || ((_c2 = (_b2 = b == null ? void 0 : b.constructor) == null ? void 0 : _b2.name) == null ? void 0 : _c2.indexOf("Locize")) > 0;
1717
1721
  })) return true;
1718
1722
  }
1723
+ if ((_k = (_j = inst == null ? void 0 : inst.options) == null ? void 0 : _j.backend) == null ? void 0 : _k.projectId) return true;
1724
+ if ((_m = (_l = inst == null ? void 0 : inst.options) == null ? void 0 : _l.backend) == null ? void 0 : _m.backendOptions) {
1725
+ if (inst.options.backend.backendOptions.some((b) => b == null ? void 0 : b.projectId)) return true;
1726
+ }
1719
1727
  return false;
1720
1728
  };
1721
1729
  class I18n extends EventEmitter {
@@ -1770,9 +1778,9 @@ class I18n extends EventEmitter {
1770
1778
  if (typeof this.options.overloadTranslationOptionHandler !== "function") {
1771
1779
  this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
1772
1780
  }
1773
- if (this.options.showSupportNotice !== false && !usesLocize(this) && !supportNoticeShown) {
1781
+ if (this.options.showSupportNotice !== false && !usesLocize(this) && !getSupportNoticeShown()) {
1774
1782
  if (typeof console !== "undefined" && typeof console.info !== "undefined") console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");
1775
- supportNoticeShown = true;
1783
+ setSupportNoticeShown();
1776
1784
  }
1777
1785
  const createClassOnDemand = (ClassOrObject) => {
1778
1786
  if (!ClassOrObject) return null;
@@ -1703,9 +1703,13 @@ const bindMemberFunctions = (inst) => {
1703
1703
  }
1704
1704
  });
1705
1705
  };
1706
- let supportNoticeShown = false;
1706
+ const SUPPORT_NOTICE_KEY = "__i18next_supportNoticeShown";
1707
+ const getSupportNoticeShown = () => typeof globalThis !== "undefined" && !!globalThis[SUPPORT_NOTICE_KEY];
1708
+ const setSupportNoticeShown = () => {
1709
+ if (typeof globalThis !== "undefined") globalThis[SUPPORT_NOTICE_KEY] = true;
1710
+ };
1707
1711
  const usesLocize = (inst) => {
1708
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
1712
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
1709
1713
  if (((_c = (_b = (_a = inst == null ? void 0 : inst.modules) == null ? void 0 : _a.backend) == null ? void 0 : _b.name) == null ? void 0 : _c.indexOf("Locize")) > 0) return true;
1710
1714
  if (((_g = (_f = (_e = (_d = inst == null ? void 0 : inst.modules) == null ? void 0 : _d.backend) == null ? void 0 : _e.constructor) == null ? void 0 : _f.name) == null ? void 0 : _g.indexOf("Locize")) > 0) return true;
1711
1715
  if ((_i = (_h = inst == null ? void 0 : inst.options) == null ? void 0 : _h.backend) == null ? void 0 : _i.backends) {
@@ -1714,6 +1718,10 @@ const usesLocize = (inst) => {
1714
1718
  return ((_a2 = b == null ? void 0 : b.name) == null ? void 0 : _a2.indexOf("Locize")) > 0 || ((_c2 = (_b2 = b == null ? void 0 : b.constructor) == null ? void 0 : _b2.name) == null ? void 0 : _c2.indexOf("Locize")) > 0;
1715
1719
  })) return true;
1716
1720
  }
1721
+ if ((_k = (_j = inst == null ? void 0 : inst.options) == null ? void 0 : _j.backend) == null ? void 0 : _k.projectId) return true;
1722
+ if ((_m = (_l = inst == null ? void 0 : inst.options) == null ? void 0 : _l.backend) == null ? void 0 : _m.backendOptions) {
1723
+ if (inst.options.backend.backendOptions.some((b) => b == null ? void 0 : b.projectId)) return true;
1724
+ }
1717
1725
  return false;
1718
1726
  };
1719
1727
  class I18n extends EventEmitter {
@@ -1768,9 +1776,9 @@ class I18n extends EventEmitter {
1768
1776
  if (typeof this.options.overloadTranslationOptionHandler !== "function") {
1769
1777
  this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
1770
1778
  }
1771
- if (this.options.showSupportNotice !== false && !usesLocize(this) && !supportNoticeShown) {
1779
+ if (this.options.showSupportNotice !== false && !usesLocize(this) && !getSupportNoticeShown()) {
1772
1780
  if (typeof console !== "undefined" && typeof console.info !== "undefined") console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");
1773
- supportNoticeShown = true;
1781
+ setSupportNoticeShown();
1774
1782
  }
1775
1783
  const createClassOnDemand = (ClassOrObject) => {
1776
1784
  if (!ClassOrObject) return null;
@@ -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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
9
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
9
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
11
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
12
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
9
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
12
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
20
+ const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
13
+ const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
23
+ const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
10
+ const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
8
+ const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
16
+ const useTranslation = require("../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
7
+ const useTranslation = require("../../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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) => {
@@ -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_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
11
+ const useTranslation = require("../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_typescript@5.9.3/i18next/dist/esm/i18next.cjs");
8
+ const i18next = require("../../../../../.external/cjs/i18next@25.8.13_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.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");
12
+ const I18nextProvider = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
7
+ const useTranslation = require("../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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);
@@ -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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
42
+ const useTranslation = require("../../.external/cjs/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
7
+ import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
7
+ import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
9
+ import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
10
+ import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
7
+ import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
10
+ import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
18
+ import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
11
+ import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
21
+ import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
8
+ import { useTranslation } from "../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
6
+ import { useTranslation } from "../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
14
+ import { useTranslation } from "../../../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
5
+ import { useTranslation } from "../../../../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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) => {
@@ -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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
9
+ import { useTranslation } from "../../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.11_typescript@5.9.3/i18next/dist/esm/i18next.mjs";
6
+ import { createInstance } from "../../../../../.external/esm/i18next@25.8.13_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_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";
10
+ import { I18nextProvider } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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.13_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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
5
+ import { useTranslation } from "../../../../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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);
@@ -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.11_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
40
+ import { useTranslation } from "../../.external/esm/react-i18next@15.7.4_i18next@25.8.13_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,
@@ -10,12 +10,11 @@ const useFileProps = require("../hooks/useFileProps.cjs");
10
10
  const InnerMantineFileInput = ({ contextName, children, ...props }) => {
11
11
  const { value, ...commonProps } = useCommonProps.useCommonProps(props);
12
12
  const { path, schema, errors } = props;
13
- const fileProps = useFileProps.useFileProps({
14
- value,
15
- onChange: commonProps.onChange,
16
- contentMediaType: schema.contentMediaType,
17
- errors
18
- });
13
+ const accept = React.useMemo(
14
+ () => (/* @__PURE__ */ new Set([...schema.contentMediaType ?? [], ...schema["x-file-types"] ?? []])).values().toArray().join(","),
15
+ [schema.contentMediaType, schema["x-file-types"]]
16
+ );
17
+ const fileProps = useFileProps.useFileProps({ value, onChange: commonProps.onChange, accept, errors });
19
18
  const componentProps = React.useMemo(() => ({ ...commonProps, ...fileProps }), [commonProps, fileProps]);
20
19
  const [Component, _props] = useContextProps.useContextProps(contextName, path, componentProps, props);
21
20
  if (!props.visible) {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- function useFileProps({ value, onChange, contentMediaType, errors }) {
4
+ function useFileProps({ value, onChange, accept, errors }) {
5
5
  var _a;
6
6
  const filteredErrors = (_a = errors == null ? void 0 : errors.split("\n").filter((error) => !error.startsWith("must be string"))) == null ? void 0 : _a.join("\n");
7
7
  value = value || null;
@@ -11,7 +11,7 @@ function useFileProps({ value, onChange, contentMediaType, errors }) {
11
11
  return {
12
12
  value,
13
13
  onChange: (value2) => onChange(value2 || void 0),
14
- accept: contentMediaType || void 0,
14
+ accept: accept || void 0,
15
15
  error: filteredErrors ? filteredErrors.split("\n").map((error) => /* @__PURE__ */ jsxRuntime.jsx("span", { style: { display: "block" }, children: error }, error)) : void 0,
16
16
  clearable: true
17
17
  };
@@ -8,12 +8,11 @@ import { useFileProps } from "../hooks/useFileProps.mjs";
8
8
  const InnerMantineFileInput = ({ contextName, children, ...props }) => {
9
9
  const { value, ...commonProps } = useCommonProps(props);
10
10
  const { path, schema, errors } = props;
11
- const fileProps = useFileProps({
12
- value,
13
- onChange: commonProps.onChange,
14
- contentMediaType: schema.contentMediaType,
15
- errors
16
- });
11
+ const accept = useMemo(
12
+ () => (/* @__PURE__ */ new Set([...schema.contentMediaType ?? [], ...schema["x-file-types"] ?? []])).values().toArray().join(","),
13
+ [schema.contentMediaType, schema["x-file-types"]]
14
+ );
15
+ const fileProps = useFileProps({ value, onChange: commonProps.onChange, accept, errors });
17
16
  const componentProps = useMemo(() => ({ ...commonProps, ...fileProps }), [commonProps, fileProps]);
18
17
  const [Component, _props] = useContextProps(contextName, path, componentProps, props);
19
18
  if (!props.visible) {
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- function useFileProps({ value, onChange, contentMediaType, errors }) {
2
+ function useFileProps({ value, onChange, accept, errors }) {
3
3
  var _a;
4
4
  const filteredErrors = (_a = errors == null ? void 0 : errors.split("\n").filter((error) => !error.startsWith("must be string"))) == null ? void 0 : _a.join("\n");
5
5
  value = value || null;
@@ -9,7 +9,7 @@ function useFileProps({ value, onChange, contentMediaType, errors }) {
9
9
  return {
10
10
  value,
11
11
  onChange: (value2) => onChange(value2 || void 0),
12
- accept: contentMediaType || void 0,
12
+ accept: accept || void 0,
13
13
  error: filteredErrors ? filteredErrors.split("\n").map((error) => /* @__PURE__ */ jsx("span", { style: { display: "block" }, children: error }, error)) : void 0,
14
14
  clearable: true
15
15
  };
@@ -4,14 +4,14 @@
4
4
  * @param {Object} params - The parameters object.
5
5
  * @param {string | File} params.value - The initial value of the file input.
6
6
  * @param {Function} params.onChange - The callback function to handle changes in the file input.
7
- * @param {string} params.contentMediaType - The accepted media type for the file input.
7
+ * @param {string} params.accept - The accepted media type for the file input.
8
8
  * @param {string} params.errors - The error messages associated with the file input.
9
9
  * @returns - An object containing properties for the file input component.
10
10
  */
11
- export function useFileProps({ value, onChange, contentMediaType, errors }: {
11
+ export function useFileProps({ value, onChange, accept, errors }: {
12
12
  value: string | File;
13
13
  onChange: Function;
14
- contentMediaType: string;
14
+ accept: string;
15
15
  errors: string;
16
16
  }): {
17
17
  value: File;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastapi-rtk",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "private": false,
5
5
  "description": "A React component library for FastAPI in combination with FastAPI React Toolkit backend, built with Mantine, JsonForms, and Zustand.",
6
6
  "license": "MIT",