fastapi-rtk 0.2.47 → 0.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +2 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +3 -2
- package/dist/.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._v6brefjjgmgbqbolvm3v6bkbsa/mantine-react-table/dist/index.esm.cjs +0 -73
- 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._v6brefjjgmgbqbolvm3v6bkbsa/mantine-react-table/dist/index.esm.mjs +2 -75
- 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/NextGenDataGrid.cjs +2 -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/hooks/useSize.cjs +4 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MRT_TableContainer.cjs +81 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MRT_TableContainer.module.css.cjs +10 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MRT_TablePaper.cjs +66 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MRT_TablePaper.module.css.cjs +8 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MantineReactTable.cjs +16 -0
- 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 +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/NextGenDataGrid.mjs +2 -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/hooks/useSize.mjs +4 -2
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MRT_TableContainer.mjs +81 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MRT_TableContainer.module.css.mjs +10 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MRT_TablePaper.mjs +66 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MRT_TablePaper.module.css.mjs +8 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MantineReactTable.mjs +16 -0
- 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/core/lib/Tables/NextGenDataGrid/hooks/useSize.d.ts +3 -0
- package/dist/core/lib/Tables/NextGenDataGrid/patch/MRT_TableContainer.d.ts +4 -0
- package/dist/core/lib/Tables/NextGenDataGrid/patch/MRT_TablePaper.d.ts +4 -0
- package/dist/core/lib/Tables/NextGenDataGrid/patch/MantineReactTable.d.ts +1 -0
- package/dist/core/styles.css +91 -0
- package/dist/jsonforms/cjs/JsonFormsWithCustomizer/JsonFormsWithCustomizer.cjs +2 -1
- package/dist/jsonforms/esm/JsonFormsWithCustomizer/JsonFormsWithCustomizer.mjs +3 -2
- 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/{i18next@25.5.2_typescript@5.9.2 → i18next@25.5.3_typescript@5.9.3}/i18next/dist/esm/i18next.cjs +0 -0
- /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.2_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.3_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/context.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/defaults.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/unescape.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/useTranslation.cjs +0 -0
- /package/dist/.external/cjs/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/utils.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.8_@types_react@18.3.24_react@18.3.1 → zustand@5.0.8_@types_react@18.3.25_react@18.3.1}/zustand/esm/react.cjs +0 -0
- /package/dist/.external/cjs/{zustand@5.0.8_@types_react@18.3.24_react@18.3.1 → zustand@5.0.8_@types_react@18.3.25_react@18.3.1}/zustand/esm/vanilla.cjs +0 -0
- /package/dist/.external/esm/{i18next@25.5.2_typescript@5.9.2 → i18next@25.5.3_typescript@5.9.3}/i18next/dist/esm/i18next.mjs +0 -0
- /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.2_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.3_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/I18nextProvider.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/context.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/defaults.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/i18nInstance.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/initReactI18next.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/unescape.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/useTranslation.mjs +0 -0
- /package/dist/.external/esm/{react-i18next@15.7.3_i18next@25.5.2_react-dom@18.3.1_react@18.3.1_typescript@5.9.2 → react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3}/react-i18next/dist/es/utils.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.8_@types_react@18.3.24_react@18.3.1 → zustand@5.0.8_@types_react@18.3.25_react@18.3.1}/zustand/esm/react.mjs +0 -0
- /package/dist/.external/esm/{zustand@5.0.8_@types_react@18.3.24_react@18.3.1 → zustand@5.0.8_@types_react@18.3.25_react@18.3.1}/zustand/esm/vanilla.mjs +0 -0
|
@@ -26,7 +26,8 @@ const JsonFormsWithCustomizer = React.memo(function JsonFormsWithCustomizer2({
|
|
|
26
26
|
createTranslator = defaultCreateTranslator,
|
|
27
27
|
...props
|
|
28
28
|
}) {
|
|
29
|
-
const
|
|
29
|
+
const mergedCustomizer = React.useMemo(() => core.deepMerge({ __: { debounce } }, customizer), [customizer, debounce]);
|
|
30
|
+
const theme = useThemeCustomizer.useThemeCustomizer(mergedCustomizer);
|
|
30
31
|
const { currentLanguage } = core.useLang({ throwOnError: false });
|
|
31
32
|
const i18n = React.useMemo(
|
|
32
33
|
() => currentLanguage && translations ? {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useLang, FastAPIRTKLogger } from "fastapi-rtk/core";
|
|
2
|
+
import { deepMerge, useLang, FastAPIRTKLogger } from "fastapi-rtk/core";
|
|
3
3
|
import { JsonForms } from "../../../../../../../.external/esm/@jsonforms_react@3.6.0_@jsonforms_core@3.6.0_react@18.3.1/@jsonforms/react/lib/jsonforms-react.esm.mjs";
|
|
4
4
|
import { MantineThemeProvider } from "@mantine/core";
|
|
5
5
|
import { memo, useMemo } from "react";
|
|
@@ -24,7 +24,8 @@ const JsonFormsWithCustomizer = memo(function JsonFormsWithCustomizer2({
|
|
|
24
24
|
createTranslator = defaultCreateTranslator,
|
|
25
25
|
...props
|
|
26
26
|
}) {
|
|
27
|
-
const
|
|
27
|
+
const mergedCustomizer = useMemo(() => deepMerge({ __: { debounce } }, customizer), [customizer, debounce]);
|
|
28
|
+
const theme = useThemeCustomizer(mergedCustomizer);
|
|
28
29
|
const { currentLanguage } = useLang({ throwOnError: false });
|
|
29
30
|
const i18n = useMemo(
|
|
30
31
|
() => currentLanguage && translations ? {
|
|
@@ -2572,8 +2572,6 @@ const useMRT_TableInstance = (definedTableOptions) => {
|
|
|
2572
2572
|
return table;
|
|
2573
2573
|
};
|
|
2574
2574
|
const useMantineReactTable = (tableOptions) => useMRT_TableInstance(useMRT_TableOptions(tableOptions));
|
|
2575
|
-
var classes$8 = { "root": "MRT_TablePaper-module_root__q0v5L" };
|
|
2576
|
-
var classes$7 = { "root": "MRT_TableContainer-module_root__JIsGB", "root-sticky": "MRT_TableContainer-module_root-sticky__uC4qx", "root-fullscreen": "MRT_TableContainer-module_root-fullscreen__aM8Jg" };
|
|
2577
2575
|
var classes$6 = { "root": "MRT_Table-module_root__ms2uS", "root-grid": "MRT_Table-module_root-grid__2Pynz" };
|
|
2578
2576
|
const useMRT_ColumnVirtualizer = (table) => {
|
|
2579
2577
|
var _a, _b, _c, _d;
|
|
@@ -2678,31 +2676,6 @@ const MRT_EditRowModal = (_a) => {
|
|
|
2678
2676
|
table
|
|
2679
2677
|
}))) !== null && _b !== void 0 ? _b : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("form", { onSubmit: (e) => e.preventDefault(), children: jsxRuntime.jsx(core.Stack, { gap: "lg", pb: 24, pt: 16, children: internalEditComponents }) }), jsxRuntime.jsx(core.Flex, { justify: "flex-end", children: jsxRuntime.jsx(MRT_EditActionButtons, { row, table, variant: "text" }) })] }));
|
|
2680
2678
|
};
|
|
2681
|
-
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
2682
|
-
const MRT_TableContainer = (_a) => {
|
|
2683
|
-
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2684
|
-
const { getState, options: { createDisplayMode, editDisplayMode, enableStickyHeader, mantineLoadingOverlayProps, mantineTableContainerProps }, refs: { bottomToolbarRef, tableContainerRef, topToolbarRef } } = table;
|
|
2685
|
-
const { creatingRow, editingRow, isFullScreen, isLoading, showLoadingOverlay } = getState();
|
|
2686
|
-
const [totalToolbarHeight, setTotalToolbarHeight] = React.useState(0);
|
|
2687
|
-
const tableContainerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableContainerProps, { table })), rest);
|
|
2688
|
-
const loadingOverlayProps = parseFromValuesOrFunc(mantineLoadingOverlayProps, { table });
|
|
2689
|
-
useIsomorphicLayoutEffect(() => {
|
|
2690
|
-
var _a2, _b, _c, _d;
|
|
2691
|
-
const topToolbarHeight = typeof document !== "undefined" ? (_b = (_a2 = topToolbarRef.current) === null || _a2 === void 0 ? void 0 : _a2.offsetHeight) !== null && _b !== void 0 ? _b : 0 : 0;
|
|
2692
|
-
const bottomToolbarHeight = typeof document !== "undefined" ? (_d = (_c = bottomToolbarRef === null || bottomToolbarRef === void 0 ? void 0 : bottomToolbarRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight) !== null && _d !== void 0 ? _d : 0 : 0;
|
|
2693
|
-
setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
|
|
2694
|
-
});
|
|
2695
|
-
const createModalOpen = createDisplayMode === "modal" && creatingRow;
|
|
2696
|
-
const editModalOpen = editDisplayMode === "modal" && editingRow;
|
|
2697
|
-
return jsxRuntime.jsxs(core.Box, Object.assign({}, tableContainerProps, { __vars: Object.assign({ "--mrt-top-toolbar-height": `${totalToolbarHeight}` }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.__vars), className: clsx.clsx("mrt-table-container", classes$7.root, enableStickyHeader && classes$7["root-sticky"], isFullScreen && classes$7["root-fullscreen"], tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.className), ref: (node) => {
|
|
2698
|
-
if (node) {
|
|
2699
|
-
tableContainerRef.current = node;
|
|
2700
|
-
if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
|
|
2701
|
-
tableContainerProps.ref.current = node;
|
|
2702
|
-
}
|
|
2703
|
-
}
|
|
2704
|
-
}, children: [jsxRuntime.jsx(core.LoadingOverlay, Object.assign({ visible: isLoading || showLoadingOverlay, zIndex: 2 }, loadingOverlayProps)), jsxRuntime.jsx(MRT_Table, { table }), (createModalOpen || editModalOpen) && jsxRuntime.jsx(MRT_EditRowModal, { open: true, table })] }));
|
|
2705
|
-
};
|
|
2706
2679
|
var commonClasses = { "common-toolbar-styles": "common-styles-module_common-toolbar-styles__DnjR8" };
|
|
2707
2680
|
var classes$5 = { "root": "MRT_BottomToolbar-module_root__VDeWo", "root-fullscreen": "MRT_BottomToolbar-module_root-fullscreen__esE15", "custom-toolbar-container": "MRT_BottomToolbar-module_custom-toolbar-container__XcDRF", "paginator-container": "MRT_BottomToolbar-module_paginator-container__A3eWY", "paginator-container-alert-banner": "MRT_BottomToolbar-module_paginator-container-alert-banner__gyqtO" };
|
|
2708
2681
|
var classes$4 = { "collapse": "MRT_ProgressBar-module_collapse__rOLJH", "collapse-top": "MRT_ProgressBar-module_collapse-top__oCi0h" };
|
|
@@ -2804,49 +2777,6 @@ const MRT_TopToolbar = (_a) => {
|
|
|
2804
2777
|
}
|
|
2805
2778
|
}, children: [positionToolbarAlertBanner === "top" && jsxRuntime.jsx(MRT_ToolbarAlertBanner, { stackAlertBanner, table }), ["both", "top"].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : "") && jsxRuntime.jsx(MRT_ToolbarDropZone, { table }), jsxRuntime.jsxs(core.Flex, { className: clsx.clsx(classes$1["actions-container"], stackAlertBanner && classes$1["actions-container-stack-alert"]), children: [enableGlobalFilter && positionGlobalFilter === "left" && jsxRuntime.jsx(MRT_GlobalFilterTextInput, Object.assign({}, globalFilterProps)), (_b = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _b !== void 0 ? _b : jsxRuntime.jsx("span", {}), enableToolbarInternalActions ? jsxRuntime.jsxs(core.Flex, { justify: "end", wrap: "wrap-reverse", children: [enableGlobalFilter && positionGlobalFilter === "right" && jsxRuntime.jsx(MRT_GlobalFilterTextInput, Object.assign({}, globalFilterProps)), jsxRuntime.jsx(MRT_ToolbarInternalButtons, { table })] }) : enableGlobalFilter && positionGlobalFilter === "right" && jsxRuntime.jsx(MRT_GlobalFilterTextInput, Object.assign({}, globalFilterProps))] }), enablePagination && ["both", "top"].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : "") && jsxRuntime.jsx(core.Flex, { justify: "end", children: jsxRuntime.jsx(MRT_TablePagination, { position: "top", table }) }), jsxRuntime.jsx(MRT_ProgressBar, { isTopToolbar: true, table })] }));
|
|
2806
2779
|
};
|
|
2807
|
-
const MRT_TablePaper = (_a) => {
|
|
2808
|
-
var _b, _c;
|
|
2809
|
-
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2810
|
-
const { getState, options: { enableBottomToolbar, enableTopToolbar, mantinePaperProps, renderBottomToolbar, renderTopToolbar }, refs: { tablePaperRef } } = table;
|
|
2811
|
-
const { isFullScreen } = getState();
|
|
2812
|
-
const tablePaperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantinePaperProps, { table })), rest);
|
|
2813
|
-
return jsxRuntime.jsxs(core.Paper, Object.assign({ shadow: "xs", withBorder: true }, tablePaperProps, {
|
|
2814
|
-
className: clsx.clsx("mrt-table-paper", classes$8.root, isFullScreen && "mrt-table-paper-fullscreen", tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.className),
|
|
2815
|
-
ref: (ref) => {
|
|
2816
|
-
tablePaperRef.current = ref;
|
|
2817
|
-
if (tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.ref) {
|
|
2818
|
-
tablePaperProps.ref.current = ref;
|
|
2819
|
-
}
|
|
2820
|
-
},
|
|
2821
|
-
// rare case where we should use inline styles to guarantee highest specificity
|
|
2822
|
-
style: (theme) => Object.assign(Object.assign({ zIndex: isFullScreen ? 200 : void 0 }, parseFromValuesOrFunc(tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.style, theme)), isFullScreen ? {
|
|
2823
|
-
border: 0,
|
|
2824
|
-
borderRadius: 0,
|
|
2825
|
-
bottom: 0,
|
|
2826
|
-
height: "100vh",
|
|
2827
|
-
left: 0,
|
|
2828
|
-
margin: 0,
|
|
2829
|
-
maxHeight: "100vh",
|
|
2830
|
-
maxWidth: "100vw",
|
|
2831
|
-
padding: 0,
|
|
2832
|
-
position: "fixed",
|
|
2833
|
-
right: 0,
|
|
2834
|
-
top: 0,
|
|
2835
|
-
width: "100vw"
|
|
2836
|
-
} : null),
|
|
2837
|
-
children: [enableTopToolbar && ((_b = parseFromValuesOrFunc(renderTopToolbar, { table })) !== null && _b !== void 0 ? _b : jsxRuntime.jsx(MRT_TopToolbar, { table })), jsxRuntime.jsx(MRT_TableContainer, { table }), enableBottomToolbar && ((_c = parseFromValuesOrFunc(renderBottomToolbar, { table })) !== null && _c !== void 0 ? _c : jsxRuntime.jsx(MRT_BottomToolbar, { table }))]
|
|
2838
|
-
}));
|
|
2839
|
-
};
|
|
2840
|
-
const isTableInstanceProp = (props) => props.table !== void 0;
|
|
2841
|
-
const MantineReactTable = (props) => {
|
|
2842
|
-
let table;
|
|
2843
|
-
if (isTableInstanceProp(props)) {
|
|
2844
|
-
table = props.table;
|
|
2845
|
-
} else {
|
|
2846
|
-
table = useMantineReactTable(props);
|
|
2847
|
-
}
|
|
2848
|
-
return jsxRuntime.jsx(MRT_TablePaper, { table });
|
|
2849
|
-
};
|
|
2850
2780
|
exports.MRT_AggregationFns = MRT_AggregationFns;
|
|
2851
2781
|
exports.MRT_BottomToolbar = MRT_BottomToolbar;
|
|
2852
2782
|
exports.MRT_ColumnActionMenu = MRT_ColumnActionMenu;
|
|
@@ -2883,7 +2813,6 @@ exports.MRT_TableBodyEmptyRow = MRT_TableBodyEmptyRow;
|
|
|
2883
2813
|
exports.MRT_TableBodyRow = MRT_TableBodyRow;
|
|
2884
2814
|
exports.MRT_TableBodyRowGrabHandle = MRT_TableBodyRowGrabHandle;
|
|
2885
2815
|
exports.MRT_TableBodyRowPinButton = MRT_TableBodyRowPinButton;
|
|
2886
|
-
exports.MRT_TableContainer = MRT_TableContainer;
|
|
2887
2816
|
exports.MRT_TableDetailPanel = MRT_TableDetailPanel;
|
|
2888
2817
|
exports.MRT_TableFooter = MRT_TableFooter;
|
|
2889
2818
|
exports.MRT_TableFooterCell = MRT_TableFooterCell;
|
|
@@ -2897,7 +2826,6 @@ exports.MRT_TableHeadCellResizeHandle = MRT_TableHeadCellResizeHandle;
|
|
|
2897
2826
|
exports.MRT_TableHeadCellSortLabel = MRT_TableHeadCellSortLabel;
|
|
2898
2827
|
exports.MRT_TableHeadRow = MRT_TableHeadRow;
|
|
2899
2828
|
exports.MRT_TablePagination = MRT_TablePagination;
|
|
2900
|
-
exports.MRT_TablePaper = MRT_TablePaper;
|
|
2901
2829
|
exports.MRT_ToggleDensePaddingButton = MRT_ToggleDensePaddingButton;
|
|
2902
2830
|
exports.MRT_ToggleFiltersButton = MRT_ToggleFiltersButton;
|
|
2903
2831
|
exports.MRT_ToggleFullScreenButton = MRT_ToggleFullScreenButton;
|
|
@@ -2907,7 +2835,6 @@ exports.MRT_ToolbarAlertBanner = MRT_ToolbarAlertBanner;
|
|
|
2907
2835
|
exports.MRT_ToolbarDropZone = MRT_ToolbarDropZone;
|
|
2908
2836
|
exports.MRT_ToolbarInternalButtons = MRT_ToolbarInternalButtons;
|
|
2909
2837
|
exports.MRT_TopToolbar = MRT_TopToolbar;
|
|
2910
|
-
exports.MantineReactTable = MantineReactTable;
|
|
2911
2838
|
exports.Memo_MRT_TableBody = Memo_MRT_TableBody;
|
|
2912
2839
|
exports.Memo_MRT_TableBodyCell = Memo_MRT_TableBodyCell;
|
|
2913
2840
|
exports.Memo_MRT_TableBodyRow = Memo_MRT_TableBodyRow;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { clsx } from "../../../clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
3
|
-
import { useRef, useMemo, useState, useReducer, useEffect,
|
|
4
|
-
import { useDirection, Flex, Tooltip,
|
|
3
|
+
import { useRef, useMemo, useState, useReducer, useEffect, Fragment as Fragment$1, memo, createElement, useCallback } from "react";
|
|
4
|
+
import { useDirection, Flex, Tooltip, Switch, Radio, Checkbox, Box, ActionIcon, Menu, Button, Select, MultiSelect, TextInput, Badge, Collapse, Alert, Stack, Transition, Text, Group, Pagination, Progress, useMantineColorScheme, Table, lighten, darken, Modal, TableThead, TableTr, TableTh, TableTbody, TableTfoot, useMantineTheme, TableTd, Popover, Indicator, Skeleton, RangeSlider, Autocomplete, CopyButton, UnstyledButton, Highlight } from "@mantine/core";
|
|
5
5
|
import { useReactTable } from "../../../@tanstack_react-table@8.20.5_react-dom@18.3.1_react@18.3.1/@tanstack/react-table/build/lib/index.mjs";
|
|
6
6
|
import { rankItem, compareItems, rankings } from "../../../@tanstack_match-sorter-utils@8.19.4/@tanstack/match-sorter-utils/build/lib/index.mjs";
|
|
7
7
|
import { useVirtualizer } from "../../../@tanstack_react-virtual@3.11.2_react-dom@18.3.1_react@18.3.1/@tanstack/react-virtual/dist/esm/index.mjs";
|
|
@@ -2570,8 +2570,6 @@ const useMRT_TableInstance = (definedTableOptions) => {
|
|
|
2570
2570
|
return table;
|
|
2571
2571
|
};
|
|
2572
2572
|
const useMantineReactTable = (tableOptions) => useMRT_TableInstance(useMRT_TableOptions(tableOptions));
|
|
2573
|
-
var classes$8 = { "root": "MRT_TablePaper-module_root__q0v5L" };
|
|
2574
|
-
var classes$7 = { "root": "MRT_TableContainer-module_root__JIsGB", "root-sticky": "MRT_TableContainer-module_root-sticky__uC4qx", "root-fullscreen": "MRT_TableContainer-module_root-fullscreen__aM8Jg" };
|
|
2575
2573
|
var classes$6 = { "root": "MRT_Table-module_root__ms2uS", "root-grid": "MRT_Table-module_root-grid__2Pynz" };
|
|
2576
2574
|
const useMRT_ColumnVirtualizer = (table) => {
|
|
2577
2575
|
var _a, _b, _c, _d;
|
|
@@ -2676,31 +2674,6 @@ const MRT_EditRowModal = (_a) => {
|
|
|
2676
2674
|
table
|
|
2677
2675
|
}))) !== null && _b !== void 0 ? _b : jsxs(Fragment, { children: [jsx("form", { onSubmit: (e) => e.preventDefault(), children: jsx(Stack, { gap: "lg", pb: 24, pt: 16, children: internalEditComponents }) }), jsx(Flex, { justify: "flex-end", children: jsx(MRT_EditActionButtons, { row, table, variant: "text" }) })] }));
|
|
2678
2676
|
};
|
|
2679
|
-
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
2680
|
-
const MRT_TableContainer = (_a) => {
|
|
2681
|
-
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2682
|
-
const { getState, options: { createDisplayMode, editDisplayMode, enableStickyHeader, mantineLoadingOverlayProps, mantineTableContainerProps }, refs: { bottomToolbarRef, tableContainerRef, topToolbarRef } } = table;
|
|
2683
|
-
const { creatingRow, editingRow, isFullScreen, isLoading, showLoadingOverlay } = getState();
|
|
2684
|
-
const [totalToolbarHeight, setTotalToolbarHeight] = useState(0);
|
|
2685
|
-
const tableContainerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableContainerProps, { table })), rest);
|
|
2686
|
-
const loadingOverlayProps = parseFromValuesOrFunc(mantineLoadingOverlayProps, { table });
|
|
2687
|
-
useIsomorphicLayoutEffect(() => {
|
|
2688
|
-
var _a2, _b, _c, _d;
|
|
2689
|
-
const topToolbarHeight = typeof document !== "undefined" ? (_b = (_a2 = topToolbarRef.current) === null || _a2 === void 0 ? void 0 : _a2.offsetHeight) !== null && _b !== void 0 ? _b : 0 : 0;
|
|
2690
|
-
const bottomToolbarHeight = typeof document !== "undefined" ? (_d = (_c = bottomToolbarRef === null || bottomToolbarRef === void 0 ? void 0 : bottomToolbarRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight) !== null && _d !== void 0 ? _d : 0 : 0;
|
|
2691
|
-
setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
|
|
2692
|
-
});
|
|
2693
|
-
const createModalOpen = createDisplayMode === "modal" && creatingRow;
|
|
2694
|
-
const editModalOpen = editDisplayMode === "modal" && editingRow;
|
|
2695
|
-
return jsxs(Box, Object.assign({}, tableContainerProps, { __vars: Object.assign({ "--mrt-top-toolbar-height": `${totalToolbarHeight}` }, tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.__vars), className: clsx("mrt-table-container", classes$7.root, enableStickyHeader && classes$7["root-sticky"], isFullScreen && classes$7["root-fullscreen"], tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.className), ref: (node) => {
|
|
2696
|
-
if (node) {
|
|
2697
|
-
tableContainerRef.current = node;
|
|
2698
|
-
if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
|
|
2699
|
-
tableContainerProps.ref.current = node;
|
|
2700
|
-
}
|
|
2701
|
-
}
|
|
2702
|
-
}, children: [jsx(LoadingOverlay, Object.assign({ visible: isLoading || showLoadingOverlay, zIndex: 2 }, loadingOverlayProps)), jsx(MRT_Table, { table }), (createModalOpen || editModalOpen) && jsx(MRT_EditRowModal, { open: true, table })] }));
|
|
2703
|
-
};
|
|
2704
2677
|
var commonClasses = { "common-toolbar-styles": "common-styles-module_common-toolbar-styles__DnjR8" };
|
|
2705
2678
|
var classes$5 = { "root": "MRT_BottomToolbar-module_root__VDeWo", "root-fullscreen": "MRT_BottomToolbar-module_root-fullscreen__esE15", "custom-toolbar-container": "MRT_BottomToolbar-module_custom-toolbar-container__XcDRF", "paginator-container": "MRT_BottomToolbar-module_paginator-container__A3eWY", "paginator-container-alert-banner": "MRT_BottomToolbar-module_paginator-container-alert-banner__gyqtO" };
|
|
2706
2679
|
var classes$4 = { "collapse": "MRT_ProgressBar-module_collapse__rOLJH", "collapse-top": "MRT_ProgressBar-module_collapse-top__oCi0h" };
|
|
@@ -2802,49 +2775,6 @@ const MRT_TopToolbar = (_a) => {
|
|
|
2802
2775
|
}
|
|
2803
2776
|
}, children: [positionToolbarAlertBanner === "top" && jsx(MRT_ToolbarAlertBanner, { stackAlertBanner, table }), ["both", "top"].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : "") && jsx(MRT_ToolbarDropZone, { table }), jsxs(Flex, { className: clsx(classes$1["actions-container"], stackAlertBanner && classes$1["actions-container-stack-alert"]), children: [enableGlobalFilter && positionGlobalFilter === "left" && jsx(MRT_GlobalFilterTextInput, Object.assign({}, globalFilterProps)), (_b = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _b !== void 0 ? _b : jsx("span", {}), enableToolbarInternalActions ? jsxs(Flex, { justify: "end", wrap: "wrap-reverse", children: [enableGlobalFilter && positionGlobalFilter === "right" && jsx(MRT_GlobalFilterTextInput, Object.assign({}, globalFilterProps)), jsx(MRT_ToolbarInternalButtons, { table })] }) : enableGlobalFilter && positionGlobalFilter === "right" && jsx(MRT_GlobalFilterTextInput, Object.assign({}, globalFilterProps))] }), enablePagination && ["both", "top"].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : "") && jsx(Flex, { justify: "end", children: jsx(MRT_TablePagination, { position: "top", table }) }), jsx(MRT_ProgressBar, { isTopToolbar: true, table })] }));
|
|
2804
2777
|
};
|
|
2805
|
-
const MRT_TablePaper = (_a) => {
|
|
2806
|
-
var _b, _c;
|
|
2807
|
-
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2808
|
-
const { getState, options: { enableBottomToolbar, enableTopToolbar, mantinePaperProps, renderBottomToolbar, renderTopToolbar }, refs: { tablePaperRef } } = table;
|
|
2809
|
-
const { isFullScreen } = getState();
|
|
2810
|
-
const tablePaperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantinePaperProps, { table })), rest);
|
|
2811
|
-
return jsxs(Paper, Object.assign({ shadow: "xs", withBorder: true }, tablePaperProps, {
|
|
2812
|
-
className: clsx("mrt-table-paper", classes$8.root, isFullScreen && "mrt-table-paper-fullscreen", tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.className),
|
|
2813
|
-
ref: (ref) => {
|
|
2814
|
-
tablePaperRef.current = ref;
|
|
2815
|
-
if (tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.ref) {
|
|
2816
|
-
tablePaperProps.ref.current = ref;
|
|
2817
|
-
}
|
|
2818
|
-
},
|
|
2819
|
-
// rare case where we should use inline styles to guarantee highest specificity
|
|
2820
|
-
style: (theme) => Object.assign(Object.assign({ zIndex: isFullScreen ? 200 : void 0 }, parseFromValuesOrFunc(tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.style, theme)), isFullScreen ? {
|
|
2821
|
-
border: 0,
|
|
2822
|
-
borderRadius: 0,
|
|
2823
|
-
bottom: 0,
|
|
2824
|
-
height: "100vh",
|
|
2825
|
-
left: 0,
|
|
2826
|
-
margin: 0,
|
|
2827
|
-
maxHeight: "100vh",
|
|
2828
|
-
maxWidth: "100vw",
|
|
2829
|
-
padding: 0,
|
|
2830
|
-
position: "fixed",
|
|
2831
|
-
right: 0,
|
|
2832
|
-
top: 0,
|
|
2833
|
-
width: "100vw"
|
|
2834
|
-
} : null),
|
|
2835
|
-
children: [enableTopToolbar && ((_b = parseFromValuesOrFunc(renderTopToolbar, { table })) !== null && _b !== void 0 ? _b : jsx(MRT_TopToolbar, { table })), jsx(MRT_TableContainer, { table }), enableBottomToolbar && ((_c = parseFromValuesOrFunc(renderBottomToolbar, { table })) !== null && _c !== void 0 ? _c : jsx(MRT_BottomToolbar, { table }))]
|
|
2836
|
-
}));
|
|
2837
|
-
};
|
|
2838
|
-
const isTableInstanceProp = (props) => props.table !== void 0;
|
|
2839
|
-
const MantineReactTable = (props) => {
|
|
2840
|
-
let table;
|
|
2841
|
-
if (isTableInstanceProp(props)) {
|
|
2842
|
-
table = props.table;
|
|
2843
|
-
} else {
|
|
2844
|
-
table = useMantineReactTable(props);
|
|
2845
|
-
}
|
|
2846
|
-
return jsx(MRT_TablePaper, { table });
|
|
2847
|
-
};
|
|
2848
2778
|
export {
|
|
2849
2779
|
MRT_AggregationFns,
|
|
2850
2780
|
MRT_BottomToolbar,
|
|
@@ -2882,7 +2812,6 @@ export {
|
|
|
2882
2812
|
MRT_TableBodyRow,
|
|
2883
2813
|
MRT_TableBodyRowGrabHandle,
|
|
2884
2814
|
MRT_TableBodyRowPinButton,
|
|
2885
|
-
MRT_TableContainer,
|
|
2886
2815
|
MRT_TableDetailPanel,
|
|
2887
2816
|
MRT_TableFooter,
|
|
2888
2817
|
MRT_TableFooterCell,
|
|
@@ -2896,7 +2825,6 @@ export {
|
|
|
2896
2825
|
MRT_TableHeadCellSortLabel,
|
|
2897
2826
|
MRT_TableHeadRow,
|
|
2898
2827
|
MRT_TablePagination,
|
|
2899
|
-
MRT_TablePaper,
|
|
2900
2828
|
MRT_ToggleDensePaddingButton,
|
|
2901
2829
|
MRT_ToggleFiltersButton,
|
|
2902
2830
|
MRT_ToggleFullScreenButton,
|
|
@@ -2906,7 +2834,6 @@ export {
|
|
|
2906
2834
|
MRT_ToolbarDropZone,
|
|
2907
2835
|
MRT_ToolbarInternalButtons,
|
|
2908
2836
|
MRT_TopToolbar,
|
|
2909
|
-
MantineReactTable,
|
|
2910
2837
|
Memo_MRT_TableBody,
|
|
2911
2838
|
Memo_MRT_TableBodyCell,
|
|
2912
2839
|
Memo_MRT_TableBodyRow,
|
|
@@ -6,7 +6,7 @@ const core = require("@mantine/core");
|
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
8
8
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
9
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.
|
|
9
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
10
10
|
const IconPlus = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconPlus.cjs");
|
|
11
11
|
const Add = React.memo(({ tooltipProps, ...props }) => {
|
|
12
12
|
const { t } = useTranslation.useTranslation();
|
|
@@ -6,7 +6,7 @@ const core = require("@mantine/core");
|
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
8
8
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
9
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.
|
|
9
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
10
10
|
const IconTrash = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconTrash.cjs");
|
|
11
11
|
const Delete = React.memo(({ id, ...props }) => {
|
|
12
12
|
const { t } = useTranslation.useTranslation();
|
|
@@ -8,7 +8,7 @@ const hooks = require("@mantine/hooks");
|
|
|
8
8
|
const React = require("react");
|
|
9
9
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
10
10
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
11
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.
|
|
11
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
12
12
|
const IconSeparatorVertical = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconSeparatorVertical.cjs");
|
|
13
13
|
const IconDownload = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconDownload.cjs");
|
|
14
14
|
const Download = React.memo(({ tooltipProps, ...props }) => {
|
|
@@ -9,7 +9,7 @@ const React = require("react");
|
|
|
9
9
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
10
10
|
const useForms = require("../../hooks/api/useForms.cjs");
|
|
11
11
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
12
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.
|
|
12
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
13
13
|
const IconPencil = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@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.
|
|
9
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
10
10
|
const IconRefresh = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@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.
|
|
12
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
13
13
|
const IconEye = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconEye.cjs");
|
|
14
14
|
const View = React.memo(({ id, ...props }) => {
|
|
15
15
|
const { getEntry } = useApi.useApi();
|
|
@@ -7,7 +7,7 @@ const utils = require("fastapi-rtk/utils");
|
|
|
7
7
|
const core = require("@mantine/core");
|
|
8
8
|
const form = require("@mantine/form");
|
|
9
9
|
const hooks = require("@mantine/hooks");
|
|
10
|
-
const index = require("../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.
|
|
10
|
+
const index = require("../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.3_yup@1.7.1/mantine-form-yup-resolver/dist/esm/index.cjs");
|
|
11
11
|
const React = require("react");
|
|
12
12
|
const useApi = require("../hooks/api/useApi.cjs");
|
|
13
13
|
const useForms = require("../hooks/api/useForms.cjs");
|
|
@@ -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.
|
|
20
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_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.
|
|
13
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_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();
|
|
@@ -8,7 +8,7 @@ const core = require("@mantine/core");
|
|
|
8
8
|
const form = require("@mantine/form");
|
|
9
9
|
const hooks = require("@mantine/hooks");
|
|
10
10
|
const lodash = require("../_virtual/lodash.cjs");
|
|
11
|
-
const index = require("../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.
|
|
11
|
+
const index = require("../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.3_yup@1.7.1/mantine-form-yup-resolver/dist/esm/index.cjs");
|
|
12
12
|
const React = require("react");
|
|
13
13
|
const convertToFormInputs$1 = require("../ActionIcons/utils/convertToFormInputs.cjs");
|
|
14
14
|
const convertToFormInputs = require("../fab-react-toolkit-patch/utils/convertToFormInputs.cjs");
|
|
@@ -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.
|
|
23
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_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@18.3.
|
|
|
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.
|
|
10
|
+
const useTranslation = require("../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
11
11
|
function CommonModal({
|
|
12
12
|
children,
|
|
13
13
|
view,
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const useApi = require("../../hooks/api/useApi.cjs");
|
|
6
6
|
require("../../Wrappers/Provider/Contexts/LangContext.cjs");
|
|
7
|
-
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.
|
|
7
|
+
const useTranslation = require("../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
8
8
|
const IconAlertCircle = require("../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@tabler/icons-react/dist/esm/icons/IconAlertCircle.cjs");
|
|
9
9
|
function ErrorDialog() {
|
|
10
10
|
const { error, resetError } = useApi.useApi();
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const form = require("@mantine/form");
|
|
6
6
|
const hooks = require("@mantine/hooks");
|
|
7
|
-
const index = require("../../../../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.
|
|
7
|
+
const index = require("../../../../../../.external/cjs/mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.3_yup@1.7.1/mantine-form-yup-resolver/dist/esm/index.cjs");
|
|
8
8
|
const React = require("react");
|
|
9
9
|
const index_esm = require("../../../../../../.external/cjs/yup@1.7.1/yup/index.esm.cjs");
|
|
10
10
|
const useApi = require("../../../../hooks/api/useApi.cjs");
|
|
@@ -28,6 +28,7 @@ const useSize = require("./hooks/useSize.cjs");
|
|
|
28
28
|
const useSorting = require("./hooks/useSorting.cjs");
|
|
29
29
|
const useToolbar = require("./hooks/useToolbar/useToolbar.cjs");
|
|
30
30
|
const useToolbarAlertBanner = require("./hooks/useToolbarAlertBanner/useToolbarAlertBanner.cjs");
|
|
31
|
+
const MantineReactTable = require("./patch/MantineReactTable.cjs");
|
|
31
32
|
const baseProps = { enableStickyHeader: true, enableColumnPinning: true };
|
|
32
33
|
const NextGenDataGrid = React.forwardRef((props, ref) => {
|
|
33
34
|
var _a, _b, _c, _d, _e;
|
|
@@ -229,7 +230,7 @@ const NextGenDataGrid = React.forwardRef((props, ref) => {
|
|
|
229
230
|
/* @__PURE__ */ jsxRuntime.jsx(EditDialog.EditDialog, { jsonForms: form == null ? void 0 : form.edit, ...(_d = form == null ? void 0 : form.edit) == null ? void 0 : _d.dialogProps }),
|
|
230
231
|
/* @__PURE__ */ jsxRuntime.jsx(DeleteDialog.DeleteDialog, { ...(_e = form == null ? void 0 : form.delete) == null ? void 0 : _e.dialogProps })
|
|
231
232
|
] }),
|
|
232
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
233
|
+
/* @__PURE__ */ jsxRuntime.jsx(MantineReactTable.MantineReactTable, { table: mrtTable, ...rest }),
|
|
233
234
|
children == null ? void 0 : children({ table: mrtTable }),
|
|
234
235
|
!hideError ? /* @__PURE__ */ jsxRuntime.jsx(ErrorDialog.ErrorDialog, {}) : null
|
|
235
236
|
] });
|
|
@@ -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.
|
|
16
|
+
const useTranslation = require("../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_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.
|
|
7
|
+
const useTranslation = require("../../../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
8
8
|
const IconX = require("../../../../../../../../.external/cjs/@tabler_icons-react@3.18.0_react@18.3.1/@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.
|
|
11
|
+
const useTranslation = require("../../../../../../.external/cjs/react-i18next@15.7.4_i18next@25.5.3_react-dom@18.3.1_react@18.3.1_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;
|
|
@@ -17,7 +17,8 @@ function useSize(withBorder) {
|
|
|
17
17
|
() => ({ ref: bottomToolbarRef, pos: "sticky", bottom: 0 }),
|
|
18
18
|
[bottomToolbarRef]
|
|
19
19
|
);
|
|
20
|
-
const mantineTableContainerProps = React.useMemo(
|
|
20
|
+
const mantineTableContainerProps = React.useMemo(() => ({ h: "100%" }), []);
|
|
21
|
+
const mantineTableContainerWrapperProps = React.useMemo(
|
|
21
22
|
() => ({
|
|
22
23
|
h: `calc(100% - ${topToolbarHeight + bottomToolbarHeight}px)`
|
|
23
24
|
}),
|
|
@@ -27,7 +28,8 @@ function useSize(withBorder) {
|
|
|
27
28
|
mantinePaperProps,
|
|
28
29
|
mantineTopToolbarProps,
|
|
29
30
|
mantineBottomToolbarProps,
|
|
30
|
-
mantineTableContainerProps
|
|
31
|
+
mantineTableContainerProps,
|
|
32
|
+
mantineTableContainerWrapperProps
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
exports.useSize = useSize;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const utils = require("fastapi-rtk/utils");
|
|
5
|
+
const core = require("@mantine/core");
|
|
6
|
+
const clsx = require("../../../../../.external/cjs/clsx@2.1.1/clsx/dist/clsx.cjs");
|
|
7
|
+
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._v6brefjjgmgbqbolvm3v6bkbsa/mantine-react-table/dist/index.esm.cjs");
|
|
8
|
+
const React = require("react");
|
|
9
|
+
const MRT_TableContainer_module = require("./MRT_TableContainer.module.css.cjs");
|
|
10
|
+
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
11
|
+
const MRT_TableContainer = ({ table, ...rest }) => {
|
|
12
|
+
const {
|
|
13
|
+
getState,
|
|
14
|
+
options: {
|
|
15
|
+
createDisplayMode,
|
|
16
|
+
editDisplayMode,
|
|
17
|
+
enableStickyHeader,
|
|
18
|
+
mantineLoadingOverlayProps,
|
|
19
|
+
mantineTableContainerProps,
|
|
20
|
+
mantineTableContainerWrapperProps
|
|
21
|
+
},
|
|
22
|
+
refs: { bottomToolbarRef, tableContainerRef, topToolbarRef }
|
|
23
|
+
} = table;
|
|
24
|
+
const { creatingRow, editingRow, isFullScreen, isLoading, showLoadingOverlay } = getState();
|
|
25
|
+
const [totalToolbarHeight, setTotalToolbarHeight] = React.useState(0);
|
|
26
|
+
const tableContainerProps = {
|
|
27
|
+
...utils.parseFromValuesOrFunc(mantineTableContainerProps, { table }),
|
|
28
|
+
...rest
|
|
29
|
+
};
|
|
30
|
+
const loadingOverlayProps = utils.parseFromValuesOrFunc(mantineLoadingOverlayProps, { table });
|
|
31
|
+
useIsomorphicLayoutEffect(() => {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
const topToolbarHeight = typeof document !== "undefined" ? ((_a = topToolbarRef.current) == null ? void 0 : _a.offsetHeight) ?? 0 : 0;
|
|
34
|
+
const bottomToolbarHeight = typeof document !== "undefined" ? ((_b = bottomToolbarRef == null ? void 0 : bottomToolbarRef.current) == null ? void 0 : _b.offsetHeight) ?? 0 : 0;
|
|
35
|
+
setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
|
|
36
|
+
});
|
|
37
|
+
const createModalOpen = createDisplayMode === "modal" && creatingRow;
|
|
38
|
+
const editModalOpen = editDisplayMode === "modal" && editingRow;
|
|
39
|
+
const tableContainerWrapperProps = utils.parseFromValuesOrFunc(mantineTableContainerWrapperProps, { table });
|
|
40
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
41
|
+
core.Box,
|
|
42
|
+
{
|
|
43
|
+
pos: "relative",
|
|
44
|
+
...tableContainerWrapperProps,
|
|
45
|
+
className: clsx.clsx("mrt-table-container-wrapper", tableContainerWrapperProps == null ? void 0 : tableContainerWrapperProps.className),
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx(core.LoadingOverlay, { visible: isLoading || showLoadingOverlay, zIndex: 2, ...loadingOverlayProps }),
|
|
48
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
49
|
+
core.Box,
|
|
50
|
+
{
|
|
51
|
+
...tableContainerProps,
|
|
52
|
+
__vars: {
|
|
53
|
+
"--mrt-top-toolbar-height": `${totalToolbarHeight}`,
|
|
54
|
+
...tableContainerProps == null ? void 0 : tableContainerProps.__vars
|
|
55
|
+
},
|
|
56
|
+
className: clsx.clsx(
|
|
57
|
+
"mrt-table-container",
|
|
58
|
+
MRT_TableContainer_module.default.root,
|
|
59
|
+
enableStickyHeader && MRT_TableContainer_module.default["root-sticky"],
|
|
60
|
+
isFullScreen && MRT_TableContainer_module.default["root-fullscreen"],
|
|
61
|
+
tableContainerProps == null ? void 0 : tableContainerProps.className
|
|
62
|
+
),
|
|
63
|
+
ref: (node) => {
|
|
64
|
+
if (node) {
|
|
65
|
+
tableContainerRef.current = node;
|
|
66
|
+
if (tableContainerProps == null ? void 0 : tableContainerProps.ref) {
|
|
67
|
+
tableContainerProps.ref.current = node;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_Table, { table }),
|
|
73
|
+
(createModalOpen || editModalOpen) && /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_EditRowModal, { open: true, table })
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
exports.MRT_TableContainer = MRT_TableContainer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "_root_1krki_1";
|
|
4
|
+
const classes = {
|
|
5
|
+
root,
|
|
6
|
+
"root-sticky": "_root-sticky_1krki_8",
|
|
7
|
+
"root-fullscreen": "_root-fullscreen_1krki_16"
|
|
8
|
+
};
|
|
9
|
+
exports.default = classes;
|
|
10
|
+
exports.root = root;
|