fastapi-rtk 1.0.45 → 1.0.47
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/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/.external/cjs/ajv@8.18.0/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/cjs/{i18next@25.8.13_typescript@5.9.3 → i18next@25.8.14_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/.external/esm/{i18next@25.8.13_typescript@5.9.3 → i18next@25.8.14_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +1 -1
- package/dist/.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 +2 -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 +2 -2
- package/dist/core/cjs/Dialogs/DeleteDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/EditDialog.cjs +2 -2
- package/dist/core/cjs/Modals/CommonModal.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/ErrorDialog.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.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/Tables/NextGenDataGrid/patch/MRT_TablePaper.cjs +3 -3
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/head/MRT_TableHead.cjs +78 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/head/MRT_TableHead.module.css.cjs +16 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/table/MRT_Table.cjs +2 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.cjs +74 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.module.css.cjs +12 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.cjs → toolbar/MRT_TopToolbar.cjs} +3 -3
- 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 +2 -2
- package/dist/core/esm/Dialogs/DeleteDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/EditDialog.mjs +2 -2
- package/dist/core/esm/Modals/CommonModal.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/ErrorDialog.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.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/Tables/NextGenDataGrid/patch/MRT_TablePaper.mjs +2 -2
- package/dist/core/esm/Tables/NextGenDataGrid/patch/head/MRT_TableHead.mjs +78 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/head/MRT_TableHead.module.css.mjs +16 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/table/MRT_Table.mjs +2 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.mjs +74 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.module.css.mjs +12 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.mjs → toolbar/MRT_TopToolbar.mjs} +3 -3
- 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/core/lib/Tables/NextGenDataGrid/patch/head/MRT_TableHead.d.ts +5 -0
- package/dist/core/lib/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.d.ts +4 -0
- package/dist/core/styles.css +118 -40
- package/package.json +1 -1
- /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.15_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.16_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
- /package/dist/.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@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
- /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.15_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.16_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
- /package/dist/.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@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_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.13_react-dom@19.2.4_react@19.2.4_typescript@5.9.3 → react-i18next@15.7.4_i18next@25.8.14_react-dom@19.2.4_react@19.2.4_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
- /package/dist/core/cjs/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.module.css.cjs → toolbar/MRT_TopToolbar.module.css.cjs} +0 -0
- /package/dist/core/cjs/Tables/NextGenDataGrid/patch/{common.styles.module.css.cjs → toolbar/common.styles.module.css.cjs} +0 -0
- /package/dist/core/esm/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.module.css.mjs → toolbar/MRT_TopToolbar.module.css.mjs} +0 -0
- /package/dist/core/esm/Tables/NextGenDataGrid/patch/{common.styles.module.css.mjs → toolbar/common.styles.module.css.mjs} +0 -0
- /package/dist/core/lib/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.d.ts → toolbar/MRT_TopToolbar.d.ts} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "_root_1p9h3_1";
|
|
4
|
+
const classes = {
|
|
5
|
+
root,
|
|
6
|
+
"root-fullscreen": "_root-fullscreen_1p9h3_16",
|
|
7
|
+
"custom-toolbar-container": "_custom-toolbar-container_1p9h3_21",
|
|
8
|
+
"paginator-container": "_paginator-container_1p9h3_30",
|
|
9
|
+
"paginator-container-alert-banner": "_paginator-container-alert-banner_1p9h3_38"
|
|
10
|
+
};
|
|
11
|
+
exports.default = classes;
|
|
12
|
+
exports.root = root;
|
package/dist/core/cjs/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.cjs → toolbar/MRT_TopToolbar.cjs}
RENAMED
|
@@ -4,11 +4,11 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
6
|
const hooks = require("@mantine/hooks");
|
|
7
|
-
const clsx = require("
|
|
8
|
-
const index_esm = require("
|
|
7
|
+
const clsx = require("../../../../../../.external/cjs/clsx@2.1.1/clsx/dist/clsx.cjs");
|
|
8
|
+
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");
|
|
9
9
|
const common_styles_module = require("./common.styles.module.css.cjs");
|
|
10
|
+
const MRT_ToolbarAlertBanner = require("./MRT_ToolbarAlertBanner.cjs");
|
|
10
11
|
const MRT_TopToolbar_module = require("./MRT_TopToolbar.module.css.cjs");
|
|
11
|
-
const MRT_ToolbarAlertBanner = require("./toolbar/MRT_ToolbarAlertBanner.cjs");
|
|
12
12
|
const MRT_TopToolbar = ({ table, ...rest }) => {
|
|
13
13
|
const {
|
|
14
14
|
getState,
|
|
@@ -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.14_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.14_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.14_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.14_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
8
8
|
const useProvideLang = (baseMRTLocalization = {}) => {
|
|
9
9
|
const translation = useTranslation.useTranslation();
|
|
10
10
|
const [localStorageLanguage, setLocalStorageLanguage] = hooks.useLocalStorage(constants.LANG_LOCAL_STORAGE_PROPS);
|
package/dist/core/cjs/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ const utils = require("fastapi-rtk/utils");
|
|
|
39
39
|
const zustand = require("fastapi-rtk/zustand");
|
|
40
40
|
const index = require("../../.external/cjs/@tanstack_react-query@5.90.21_react@19.2.4/@tanstack/react-query/build/modern/index.cjs");
|
|
41
41
|
const index_esm = require("../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.cjs");
|
|
42
|
-
const useTranslation = require("../../.external/cjs/react-i18next@15.7.4_i18next@25.8.
|
|
42
|
+
const useTranslation = require("../../.external/cjs/react-i18next@15.7.4_i18next@25.8.14_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.14_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.14_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.14_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.14_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.14_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.14_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();
|
|
@@ -5,7 +5,7 @@ import { deepMerge } from "fastapi-rtk/utils";
|
|
|
5
5
|
import { useProps, Stack } from "@mantine/core";
|
|
6
6
|
import { useForm } from "@mantine/form";
|
|
7
7
|
import { useDebouncedState } from "@mantine/hooks";
|
|
8
|
-
import { yupResolver } from "../../../.external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.
|
|
8
|
+
import { yupResolver } from "../../../.external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.16_yup@1.7.1/mantine-form-yup-resolver/dist/esm/index.mjs";
|
|
9
9
|
import { useMemo, useCallback, useEffect } from "react";
|
|
10
10
|
import { useApi } from "../hooks/api/useApi.mjs";
|
|
11
11
|
import { useForms } from "../hooks/api/useForms.mjs";
|
|
@@ -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.14_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.14_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();
|
|
@@ -6,7 +6,7 @@ import { useProps, Stack } from "@mantine/core";
|
|
|
6
6
|
import { useForm } from "@mantine/form";
|
|
7
7
|
import { useDebouncedState } from "@mantine/hooks";
|
|
8
8
|
import { l as lodashExports } from "../_virtual/lodash.mjs";
|
|
9
|
-
import { yupResolver } from "../../../.external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.
|
|
9
|
+
import { yupResolver } from "../../../.external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.16_yup@1.7.1/mantine-form-yup-resolver/dist/esm/index.mjs";
|
|
10
10
|
import { useMemo, useRef, useEffect, useCallback } from "react";
|
|
11
11
|
import { convertToFormInputs as convertToFormInputs$1 } from "../ActionIcons/utils/convertToFormInputs.mjs";
|
|
12
12
|
import { convertToFormInputs } from "../fab-react-toolkit-patch/utils/convertToFormInputs.mjs";
|
|
@@ -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.14_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.14_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.14_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 }) => {
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useProps, Box, Flex, ActionIcon, Divider, Text, ScrollArea, Button, Group } from "@mantine/core";
|
|
3
3
|
import { useForm } from "@mantine/form";
|
|
4
4
|
import { randomId } from "@mantine/hooks";
|
|
5
|
-
import { yupResolver } from "../../../../../../.external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.
|
|
5
|
+
import { yupResolver } from "../../../../../../.external/esm/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.16_yup@1.7.1/mantine-form-yup-resolver/dist/esm/index.mjs";
|
|
6
6
|
import { useEffect } from "react";
|
|
7
7
|
import { object as create$3, array as create$2, mixed as create$8, string as create$6 } from "../../../../../../.external/esm/yup@1.7.1/yup/index.esm.mjs";
|
|
8
8
|
import { useApi } from "../../../../hooks/api/useApi.mjs";
|
|
@@ -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.14_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.14_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.14_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;
|
|
@@ -2,10 +2,10 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
3
3
|
import { Paper } from "@mantine/core";
|
|
4
4
|
import { clsx } from "../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
5
|
-
import { MRT_BottomToolbar } 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";
|
|
6
5
|
import { MRT_TableContainer } from "./MRT_TableContainer.mjs";
|
|
7
6
|
import classes from "./MRT_TablePaper.module.css.mjs";
|
|
8
|
-
import {
|
|
7
|
+
import { MRT_BottomToolbar } from "./toolbar/MRT_BottomToolbar.mjs";
|
|
8
|
+
import { MRT_TopToolbar } from "./toolbar/MRT_TopToolbar.mjs";
|
|
9
9
|
const MRT_TablePaper = ({ table, ...rest }) => {
|
|
10
10
|
const {
|
|
11
11
|
getState,
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from "../../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
3
|
+
import classes from "./MRT_TableHead.module.css.mjs";
|
|
4
|
+
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
5
|
+
import { TableThead, TableTr, TableTh } from "@mantine/core";
|
|
6
|
+
import { MRT_TableHeadRow } 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";
|
|
7
|
+
import { useMemo } from "react";
|
|
8
|
+
import { useSelectionStore } from "../../components/OptimizedMRT_RowSelectColumn/zustand.mjs";
|
|
9
|
+
import { MRT_ToolbarAlertBanner } from "../toolbar/MRT_ToolbarAlertBanner.mjs";
|
|
10
|
+
const MRT_TableHead = ({ columnVirtualizer, table, ...rest }) => {
|
|
11
|
+
const {
|
|
12
|
+
getHeaderGroups,
|
|
13
|
+
getSelectedRowModel,
|
|
14
|
+
getState,
|
|
15
|
+
options: { enableStickyHeader, layoutMode, mantineTableHeadProps, positionToolbarAlertBanner },
|
|
16
|
+
refs: { tableHeadRef }
|
|
17
|
+
} = table;
|
|
18
|
+
const { isFullScreen, showAlertBanner } = getState();
|
|
19
|
+
const tableHeadProps = {
|
|
20
|
+
...parseFromValuesOrFunc(mantineTableHeadProps, {
|
|
21
|
+
table
|
|
22
|
+
}),
|
|
23
|
+
...rest
|
|
24
|
+
};
|
|
25
|
+
const stickyHeader = enableStickyHeader || isFullScreen;
|
|
26
|
+
const {
|
|
27
|
+
getPrePaginationRowModel,
|
|
28
|
+
options: { manualPagination, rowCount }
|
|
29
|
+
} = table;
|
|
30
|
+
const { rowSelection } = getState();
|
|
31
|
+
const totalRowCount = rowCount ?? getPrePaginationRowModel().flatRows.length;
|
|
32
|
+
const optimizations = table.refs.optimizations.current;
|
|
33
|
+
const store = table.refs.selectionStoreRef.current;
|
|
34
|
+
const optimizedRowSelection = useSelectionStore(store, (state) => state.rowSelection);
|
|
35
|
+
const selectedRowCount = useMemo(
|
|
36
|
+
() => manualPagination ? Object.values((optimizations == null ? void 0 : optimizations.selection) ? optimizedRowSelection : rowSelection).filter(Boolean).length : getSelectedRowModel().rows.length,
|
|
37
|
+
[optimizedRowSelection, rowSelection, totalRowCount, manualPagination]
|
|
38
|
+
);
|
|
39
|
+
const RTKShowAlertBanner = showAlertBanner || selectedRowCount;
|
|
40
|
+
return /* @__PURE__ */ jsx(
|
|
41
|
+
TableThead,
|
|
42
|
+
{
|
|
43
|
+
...tableHeadProps,
|
|
44
|
+
className: clsx(
|
|
45
|
+
classes.root,
|
|
46
|
+
(layoutMode == null ? void 0 : layoutMode.startsWith("grid")) ? classes["root-grid"] : classes["root-table-row-group"],
|
|
47
|
+
stickyHeader && classes["root-sticky"],
|
|
48
|
+
tableHeadProps == null ? void 0 : tableHeadProps.className
|
|
49
|
+
),
|
|
50
|
+
pos: stickyHeader && (layoutMode == null ? void 0 : layoutMode.startsWith("grid")) ? "sticky" : "relative",
|
|
51
|
+
ref: (ref) => {
|
|
52
|
+
tableHeadRef.current = ref;
|
|
53
|
+
if (tableHeadProps == null ? void 0 : tableHeadProps.ref) {
|
|
54
|
+
tableHeadProps.ref.current = ref;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
children: positionToolbarAlertBanner === "head-overlay" && RTKShowAlertBanner ? /* @__PURE__ */ jsx(TableTr, { className: clsx(classes["banner-tr"], (layoutMode == null ? void 0 : layoutMode.startsWith("grid")) && classes.grid), children: /* @__PURE__ */ jsx(
|
|
58
|
+
TableTh,
|
|
59
|
+
{
|
|
60
|
+
className: clsx(classes["banner-th"], (layoutMode == null ? void 0 : layoutMode.startsWith("grid")) && classes.grid),
|
|
61
|
+
colSpan: table.getVisibleLeafColumns().length,
|
|
62
|
+
children: /* @__PURE__ */ jsx(MRT_ToolbarAlertBanner, { table })
|
|
63
|
+
}
|
|
64
|
+
) }) : getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(
|
|
65
|
+
MRT_TableHeadRow,
|
|
66
|
+
{
|
|
67
|
+
columnVirtualizer,
|
|
68
|
+
headerGroup,
|
|
69
|
+
table
|
|
70
|
+
},
|
|
71
|
+
headerGroup.id
|
|
72
|
+
))
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
MRT_TableHead
|
|
78
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const root = "_root_1b9w4_1";
|
|
2
|
+
const grid = "_grid_1b9w4_30";
|
|
3
|
+
const classes = {
|
|
4
|
+
root,
|
|
5
|
+
"root-grid": "_root-grid_1b9w4_7",
|
|
6
|
+
"root-table-row-group": "_root-table-row-group_1b9w4_11",
|
|
7
|
+
"root-sticky": "_root-sticky_1b9w4_15",
|
|
8
|
+
"banner-tr": "_banner-tr_1b9w4_21",
|
|
9
|
+
"banner-th": "_banner-th_1b9w4_25",
|
|
10
|
+
grid
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
classes as default,
|
|
14
|
+
grid,
|
|
15
|
+
root
|
|
16
|
+
};
|
|
@@ -4,8 +4,9 @@ import classes from "./MRT_Table.module.css.mjs";
|
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
6
6
|
import { useMantineColorScheme, Table, lighten, darken } from "@mantine/core";
|
|
7
|
-
import { parseCSSVarId, useMRT_ColumnVirtualizer,
|
|
7
|
+
import { parseCSSVarId, useMRT_ColumnVirtualizer, MRT_TableFooter } 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";
|
|
8
8
|
import { Memo_MRT_TableBody, MRT_TableBody } from "../body/MRT_TableBody.mjs";
|
|
9
|
+
import { MRT_TableHead } from "../head/MRT_TableHead.mjs";
|
|
9
10
|
const MRT_Table = ({ table, ...rest }) => {
|
|
10
11
|
const {
|
|
11
12
|
getFlatHeaders,
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from "../../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
3
|
+
import commonClasses from "./common.styles.module.css.mjs";
|
|
4
|
+
import classes from "./MRT_BottomToolbar.module.css.mjs";
|
|
5
|
+
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
6
|
+
import { Box } from "@mantine/core";
|
|
7
|
+
import { useMediaQuery } from "@mantine/hooks";
|
|
8
|
+
import { MRT_ProgressBar, MRT_ToolbarDropZone, MRT_TablePagination } 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";
|
|
9
|
+
import { MRT_ToolbarAlertBanner } from "./MRT_ToolbarAlertBanner.mjs";
|
|
10
|
+
const MRT_BottomToolbar = ({ table, ...rest }) => {
|
|
11
|
+
const {
|
|
12
|
+
getState,
|
|
13
|
+
options: {
|
|
14
|
+
enablePagination,
|
|
15
|
+
mantineBottomToolbarProps,
|
|
16
|
+
positionPagination,
|
|
17
|
+
positionToolbarAlertBanner,
|
|
18
|
+
positionToolbarDropZone,
|
|
19
|
+
renderBottomToolbarCustomActions
|
|
20
|
+
},
|
|
21
|
+
refs: { bottomToolbarRef }
|
|
22
|
+
} = table;
|
|
23
|
+
const { isFullScreen } = getState();
|
|
24
|
+
const isMobile = useMediaQuery("(max-width: 720px)");
|
|
25
|
+
const toolbarProps = {
|
|
26
|
+
...parseFromValuesOrFunc(mantineBottomToolbarProps, {
|
|
27
|
+
table
|
|
28
|
+
}),
|
|
29
|
+
...rest
|
|
30
|
+
};
|
|
31
|
+
const stackAlertBanner = isMobile || !!renderBottomToolbarCustomActions;
|
|
32
|
+
return /* @__PURE__ */ jsxs(
|
|
33
|
+
Box,
|
|
34
|
+
{
|
|
35
|
+
...toolbarProps,
|
|
36
|
+
className: clsx(
|
|
37
|
+
"mrt-bottom-toolbar",
|
|
38
|
+
classes.root,
|
|
39
|
+
commonClasses["common-toolbar-styles"],
|
|
40
|
+
isFullScreen && classes["root-fullscreen"],
|
|
41
|
+
toolbarProps == null ? void 0 : toolbarProps.className
|
|
42
|
+
),
|
|
43
|
+
ref: (node) => {
|
|
44
|
+
if (node) {
|
|
45
|
+
bottomToolbarRef.current = node;
|
|
46
|
+
if (toolbarProps == null ? void 0 : toolbarProps.ref) {
|
|
47
|
+
toolbarProps.ref.current = node;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ jsx(MRT_ProgressBar, { isTopToolbar: false, table }),
|
|
53
|
+
positionToolbarAlertBanner === "bottom" && /* @__PURE__ */ jsx(MRT_ToolbarAlertBanner, { stackAlertBanner, table }),
|
|
54
|
+
["both", "bottom"].includes(positionToolbarDropZone ?? "") && /* @__PURE__ */ jsx(MRT_ToolbarDropZone, { table }),
|
|
55
|
+
/* @__PURE__ */ jsxs(Box, { className: classes["custom-toolbar-container"], children: [
|
|
56
|
+
renderBottomToolbarCustomActions ? renderBottomToolbarCustomActions({ table }) : /* @__PURE__ */ jsx("span", {}),
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
Box,
|
|
59
|
+
{
|
|
60
|
+
className: clsx(
|
|
61
|
+
classes["paginator-container"],
|
|
62
|
+
stackAlertBanner && classes["paginator-container-alert-banner"]
|
|
63
|
+
),
|
|
64
|
+
children: enablePagination && ["both", "bottom"].includes(positionPagination ?? "") && /* @__PURE__ */ jsx(MRT_TablePagination, { position: "bottom", table })
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
MRT_BottomToolbar
|
|
74
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const root = "_root_1p9h3_1";
|
|
2
|
+
const classes = {
|
|
3
|
+
root,
|
|
4
|
+
"root-fullscreen": "_root-fullscreen_1p9h3_16",
|
|
5
|
+
"custom-toolbar-container": "_custom-toolbar-container_1p9h3_21",
|
|
6
|
+
"paginator-container": "_paginator-container_1p9h3_30",
|
|
7
|
+
"paginator-container-alert-banner": "_paginator-container-alert-banner_1p9h3_38"
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
classes as default,
|
|
11
|
+
root
|
|
12
|
+
};
|
package/dist/core/esm/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.mjs → toolbar/MRT_TopToolbar.mjs}
RENAMED
|
@@ -2,11 +2,11 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
3
3
|
import { Box, Group, Flex, Center } from "@mantine/core";
|
|
4
4
|
import { useMediaQuery } from "@mantine/hooks";
|
|
5
|
-
import { clsx } from "
|
|
6
|
-
import { MRT_ToolbarDropZone, MRT_GlobalFilterTextInput, MRT_ToolbarInternalButtons, MRT_TablePagination, MRT_ProgressBar } from "
|
|
5
|
+
import { clsx } from "../../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
6
|
+
import { MRT_ToolbarDropZone, MRT_GlobalFilterTextInput, MRT_ToolbarInternalButtons, MRT_TablePagination, MRT_ProgressBar } 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";
|
|
7
7
|
import commonClasses from "./common.styles.module.css.mjs";
|
|
8
|
+
import { MRT_ToolbarAlertBanner } from "./MRT_ToolbarAlertBanner.mjs";
|
|
8
9
|
import classes from "./MRT_TopToolbar.module.css.mjs";
|
|
9
|
-
import { MRT_ToolbarAlertBanner } from "./toolbar/MRT_ToolbarAlertBanner.mjs";
|
|
10
10
|
const MRT_TopToolbar = ({ table, ...rest }) => {
|
|
11
11
|
const {
|
|
12
12
|
getState,
|
|
@@ -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.14_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.14_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.14_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.14_react-dom@19.2.4_react@19.2.4_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
6
6
|
const useProvideLang = (baseMRTLocalization = {}) => {
|
|
7
7
|
const translation = useTranslation();
|
|
8
8
|
const [localStorageLanguage, setLocalStorageLanguage] = useLocalStorage(LANG_LOCAL_STORAGE_PROPS);
|
package/dist/core/esm/index.mjs
CHANGED
|
@@ -37,7 +37,7 @@ export * from "fastapi-rtk/utils";
|
|
|
37
37
|
export * from "fastapi-rtk/zustand";
|
|
38
38
|
import * as index from "../../.external/esm/@tanstack_react-query@5.90.21_react@19.2.4/@tanstack/react-query/build/modern/index.mjs";
|
|
39
39
|
import * as index_esm from "../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.mjs";
|
|
40
|
-
import { useTranslation } from "../../.external/esm/react-i18next@15.7.4_i18next@25.8.
|
|
40
|
+
import { useTranslation } from "../../.external/esm/react-i18next@15.7.4_i18next@25.8.14_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,
|