fastapi-rtk 1.0.24 → 1.0.25
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/MantineInputs/MantineBooleanInput.cjs +5 -15
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineEnumInput.cjs +6 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.cjs +8 -5
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useBooleanProps.cjs +40 -18
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useSelectProps.cjs +10 -2
- 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/MantineInputs/MantineBooleanInput.mjs +6 -16
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineEnumInput.mjs +7 -4
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineOneOfEnumInput.mjs +9 -6
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useBooleanProps.mjs +40 -18
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useSelectProps.mjs +10 -2
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/cjs/{i18next@25.8.1_typescript@5.9.3 → i18next@25.8.3_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +14 -2
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/.external/esm/{i18next@25.8.1_typescript@5.9.3 → i18next@25.8.3_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +14 -2
- 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/ApiProvider/hooks/useProvideForm.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/ApiProvider/hooks/useProvideForm.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/MantineInputs/MantineBooleanInput.cjs +5 -15
- package/dist/jsonforms/cjs/MantineInputs/MantineEnumInput.cjs +6 -3
- package/dist/jsonforms/cjs/MantineInputs/MantineOneOfEnumInput.cjs +8 -5
- package/dist/jsonforms/cjs/hooks/useBooleanProps.cjs +40 -18
- package/dist/jsonforms/cjs/hooks/useSelectProps.cjs +10 -2
- package/dist/jsonforms/esm/MantineInputs/MantineBooleanInput.mjs +6 -16
- package/dist/jsonforms/esm/MantineInputs/MantineEnumInput.mjs +7 -4
- package/dist/jsonforms/esm/MantineInputs/MantineOneOfEnumInput.mjs +9 -6
- package/dist/jsonforms/esm/hooks/useBooleanProps.mjs +40 -18
- package/dist/jsonforms/esm/hooks/useSelectProps.mjs +10 -2
- package/dist/jsonforms/lib/hooks/useBooleanProps.d.ts +6 -6
- package/dist/jsonforms/lib/hooks/useMultiSelectProps.d.ts +8 -0
- package/dist/jsonforms/lib/hooks/useSelectProps.d.ts +15 -1
- package/dist/zustand/cjs/useProxy/useProxy.cjs +1 -1
- package/dist/zustand/esm/useProxy/useProxy.mjs +1 -1
- package/package.json +1 -1
- /package/dist/.external/cjs/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.11_@types_react@19.2.10_react@19.2.4 → zustand@5.0.11_@types_react@19.2.11_react@19.2.4}/zustand/esm/react.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.11_@types_react@19.2.10_react@19.2.4 → zustand@5.0.11_@types_react@19.2.11_react@19.2.4}/zustand/esm/vanilla.cjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.4_i18next@25.8.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_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.1_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.3_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.11_@types_react@19.2.10_react@19.2.4 → zustand@5.0.11_@types_react@19.2.11_react@19.2.4}/zustand/esm/react.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.11_@types_react@19.2.10_react@19.2.4 → zustand@5.0.11_@types_react@19.2.11_react@19.2.4}/zustand/esm/vanilla.mjs +0 -0
|
@@ -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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const constants = require("fastapi-rtk/constants");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const react = require("../../../../../.external/cjs/zustand@5.0.11_@types_react@19.2.
|
|
5
|
+
const react = require("../../../../../.external/cjs/zustand@5.0.11_@types_react@19.2.11_react@19.2.4/zustand/esm/react.cjs");
|
|
6
6
|
const useProvideForm = () => {
|
|
7
7
|
const [storeAdd] = React.useState(
|
|
8
8
|
() => react.create((set, get) => ({
|
|
@@ -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.3_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.3_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.3_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.3_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 zustand = require("fastapi-rtk/zustand");
|
|
|
39
39
|
const index = require("../../.external/cjs/@tanstack_react-query@5.90.20_react@19.2.4/@tanstack/react-query/build/modern/index.cjs");
|
|
40
40
|
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");
|
|
41
41
|
const Filter = require("./Tables/DataGrid/Toolbar/Filter/Filter.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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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.3_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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initialState, VIEW_MODE } from "fastapi-rtk/constants";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { create } from "../../../../../.external/esm/zustand@5.0.11_@types_react@19.2.
|
|
3
|
+
import { create } from "../../../../../.external/esm/zustand@5.0.11_@types_react@19.2.11_react@19.2.4/zustand/esm/react.mjs";
|
|
4
4
|
const useProvideForm = () => {
|
|
5
5
|
const [storeAdd] = useState(
|
|
6
6
|
() => create((set, get) => ({
|
|
@@ -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.3_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.3_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.3_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.3_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/zustand";
|
|
|
37
37
|
import * as index from "../../.external/esm/@tanstack_react-query@5.90.20_react@19.2.4/@tanstack/react-query/build/modern/index.mjs";
|
|
38
38
|
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";
|
|
39
39
|
import { Filter } from "./Tables/DataGrid/Toolbar/Filter/Filter.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.3_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,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const utils = require("fastapi-rtk/utils");
|
|
5
4
|
const core = require("@mantine/core");
|
|
6
5
|
const React = require("react");
|
|
7
6
|
const useBooleanProps = require("../hooks/useBooleanProps.cjs");
|
|
@@ -11,25 +10,16 @@ function MantineBooleanInput(props) {
|
|
|
11
10
|
var _a;
|
|
12
11
|
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
13
12
|
const { path, schema, uischema } = props;
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
var _a2;
|
|
17
|
-
return (((_a2 = uischema.options) == null ? void 0 : _a2.variant) ?? schema.format) === "checkbox";
|
|
18
|
-
},
|
|
19
|
-
[schema.format, (_a = uischema.options) == null ? void 0 : _a.variant]
|
|
20
|
-
);
|
|
21
|
-
const booleanProps = useBooleanProps.useBooleanProps(isCheckbox, { value, onChange: commonProps.onChange });
|
|
13
|
+
const format = ((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format ?? "select";
|
|
14
|
+
const booleanProps = useBooleanProps.useBooleanProps(format, { value, onChange: commonProps.onChange });
|
|
22
15
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...booleanProps }), [booleanProps, commonProps]);
|
|
23
16
|
const [Component, _props] = useContextProps.useContextProps("Boolean", path, componentProps, props);
|
|
24
17
|
if (!props.visible) {
|
|
25
18
|
return null;
|
|
26
19
|
}
|
|
27
20
|
const { inputWrapperOrder, ...__props } = _props;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
...utils.deepMerge({ styles: { root: { minHeight: "calc(2.25rem * 1)", alignContent: "center" } } }, __props)
|
|
32
|
-
}
|
|
33
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(core.Select, { inputWrapperOrder, ...__props }) : Component;
|
|
21
|
+
const InnerComponent = format === "checkbox" ? core.Checkbox : format === "native" ? core.NativeSelect : core.Select;
|
|
22
|
+
const innerProps = format === "checkbox" ? {} : { inputWrapperOrder };
|
|
23
|
+
return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(InnerComponent, { ...innerProps, ...__props }) : Component;
|
|
34
24
|
}
|
|
35
25
|
exports.MantineBooleanInput = MantineBooleanInput;
|
|
@@ -7,14 +7,17 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useSelectProps = require("../hooks/useSelectProps.cjs");
|
|
9
9
|
function MantineEnumInput(props) {
|
|
10
|
+
var _a;
|
|
10
11
|
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path } = props;
|
|
12
|
-
const
|
|
12
|
+
const { path, schema, uischema } = props;
|
|
13
|
+
const isNative = (((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format) === "native";
|
|
14
|
+
const selectProps = useSelectProps.useSelectProps(value, props.options, isNative, { onChange: commonProps.onChange });
|
|
13
15
|
const componentProps = React.useMemo(() => ({ ...commonProps, ...selectProps }), [commonProps, selectProps]);
|
|
14
16
|
const [Component, _props] = useContextProps.useContextProps("Enum", path, componentProps, props);
|
|
15
17
|
if (!props.visible) {
|
|
16
18
|
return null;
|
|
17
19
|
}
|
|
18
|
-
|
|
20
|
+
const InnerComponent = isNative ? core.NativeSelect : core.Select;
|
|
21
|
+
return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(InnerComponent, { ..._props }) : Component;
|
|
19
22
|
}
|
|
20
23
|
exports.MantineEnumInput = MantineEnumInput;
|
|
@@ -7,13 +7,15 @@ const useCommonProps = require("../hooks/useCommonProps.cjs");
|
|
|
7
7
|
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
8
8
|
const useSelectProps = require("../hooks/useSelectProps.cjs");
|
|
9
9
|
function MantineOneOfEnumInput(props) {
|
|
10
|
+
var _a;
|
|
10
11
|
const { value, ...commonProps } = useCommonProps.useCommonProps(props);
|
|
11
|
-
const { path } = props;
|
|
12
|
-
const
|
|
12
|
+
const { path, schema, uischema } = props;
|
|
13
|
+
const isNative = (((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format) === "native";
|
|
14
|
+
const selectProps = useSelectProps.useSelectProps(value, props.options, isNative, { onChange: commonProps.onChange });
|
|
13
15
|
const errorProps = React.useMemo(() => {
|
|
14
|
-
var
|
|
16
|
+
var _a2;
|
|
15
17
|
const isNull = value === null;
|
|
16
|
-
const error = (
|
|
18
|
+
const error = (_a2 = commonProps.error) == null ? void 0 : _a2.filter(
|
|
17
19
|
(error2) => error2.key === "is a required property" || !isNull ? error2 : false
|
|
18
20
|
);
|
|
19
21
|
return (error == null ? void 0 : error.length) ? { error } : { error: isNull && commonProps.required ? "is a required property" : void 0 };
|
|
@@ -26,6 +28,7 @@ function MantineOneOfEnumInput(props) {
|
|
|
26
28
|
if (!props.visible) {
|
|
27
29
|
return null;
|
|
28
30
|
}
|
|
29
|
-
|
|
31
|
+
const InnerComponent = isNative ? core.NativeSelect : core.Select;
|
|
32
|
+
return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(InnerComponent, { ..._props }) : Component;
|
|
30
33
|
}
|
|
31
34
|
exports.MantineOneOfEnumInput = MantineOneOfEnumInput;
|
|
@@ -1,23 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const utils = require("fastapi-rtk/utils");
|
|
4
|
-
function useBooleanProps(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
4
|
+
function useBooleanProps(type, { value, onChange }) {
|
|
5
|
+
switch (type) {
|
|
6
|
+
case "checkbox":
|
|
7
|
+
return {
|
|
8
|
+
checked: value || false,
|
|
9
|
+
onChange: (event) => onChange(event.target.checked)
|
|
10
|
+
};
|
|
11
|
+
case "native":
|
|
12
|
+
return {
|
|
13
|
+
data: [
|
|
14
|
+
{
|
|
15
|
+
value: String(true),
|
|
16
|
+
label: "True"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
value: String(false),
|
|
20
|
+
label: "False"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
value: utils.isTruthy(value) ? String(value) : "",
|
|
24
|
+
onChange: (event) => onChange(utils.isTruthy(event.currentTarget.value) ? event.currentTarget.value === String(true) : void 0)
|
|
25
|
+
};
|
|
26
|
+
case "select":
|
|
27
|
+
return {
|
|
28
|
+
data: [
|
|
29
|
+
{
|
|
30
|
+
value: String(true),
|
|
31
|
+
label: "True"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: String(false),
|
|
35
|
+
label: "False"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
value: utils.isTruthy(value) ? String(value) : null,
|
|
39
|
+
onChange: (value2) => onChange(utils.isTruthy(value2) ? value2 === String(true) : void 0)
|
|
40
|
+
};
|
|
41
|
+
default:
|
|
42
|
+
throw new Error(`Unknown boolean type: ${type}`);
|
|
43
|
+
}
|
|
22
44
|
}
|
|
23
45
|
exports.useBooleanProps = useBooleanProps;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function useSelectProps(value, options) {
|
|
4
|
-
|
|
3
|
+
function useSelectProps(value, options, isNative = false, { onChange } = {}) {
|
|
4
|
+
if (isNative) {
|
|
5
|
+
return {
|
|
6
|
+
data: [{ value: "", label: "" }, ...options],
|
|
7
|
+
value: value || "",
|
|
8
|
+
onChange: (event) => onChange(event.currentTarget.value || void 0)
|
|
9
|
+
};
|
|
10
|
+
} else {
|
|
11
|
+
return { data: options, value: value || null, searchable: true };
|
|
12
|
+
}
|
|
5
13
|
}
|
|
6
14
|
exports.useSelectProps = useSelectProps;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { Checkbox, Select } from "@mantine/core";
|
|
2
|
+
import { Checkbox, NativeSelect, Select } from "@mantine/core";
|
|
4
3
|
import { useMemo } from "react";
|
|
5
4
|
import { useBooleanProps } from "../hooks/useBooleanProps.mjs";
|
|
6
5
|
import { useCommonProps } from "../hooks/useCommonProps.mjs";
|
|
@@ -9,26 +8,17 @@ function MantineBooleanInput(props) {
|
|
|
9
8
|
var _a;
|
|
10
9
|
const { value, ...commonProps } = useCommonProps(props);
|
|
11
10
|
const { path, schema, uischema } = props;
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
var _a2;
|
|
15
|
-
return (((_a2 = uischema.options) == null ? void 0 : _a2.variant) ?? schema.format) === "checkbox";
|
|
16
|
-
},
|
|
17
|
-
[schema.format, (_a = uischema.options) == null ? void 0 : _a.variant]
|
|
18
|
-
);
|
|
19
|
-
const booleanProps = useBooleanProps(isCheckbox, { value, onChange: commonProps.onChange });
|
|
11
|
+
const format = ((_a = uischema.options) == null ? void 0 : _a.variant) ?? schema.format ?? "select";
|
|
12
|
+
const booleanProps = useBooleanProps(format, { value, onChange: commonProps.onChange });
|
|
20
13
|
const componentProps = useMemo(() => ({ ...commonProps, ...booleanProps }), [booleanProps, commonProps]);
|
|
21
14
|
const [Component, _props] = useContextProps("Boolean", path, componentProps, props);
|
|
22
15
|
if (!props.visible) {
|
|
23
16
|
return null;
|
|
24
17
|
}
|
|
25
18
|
const { inputWrapperOrder, ...__props } = _props;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...deepMerge({ styles: { root: { minHeight: "calc(2.25rem * 1)", alignContent: "center" } } }, __props)
|
|
30
|
-
}
|
|
31
|
-
) : /* @__PURE__ */ jsx(Select, { inputWrapperOrder, ...__props }) : Component;
|
|
19
|
+
const InnerComponent = format === "checkbox" ? Checkbox : format === "native" ? NativeSelect : Select;
|
|
20
|
+
const innerProps = format === "checkbox" ? {} : { inputWrapperOrder };
|
|
21
|
+
return Component === void 0 ? /* @__PURE__ */ jsx(InnerComponent, { ...innerProps, ...__props }) : Component;
|
|
32
22
|
}
|
|
33
23
|
export {
|
|
34
24
|
MantineBooleanInput
|