fastapi-rtk 1.0.0 → 1.0.1
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/@tanstack_react-table@8.20.5_react-dom@18.3.1_react@18.3.1/@tanstack/react-table/build/lib/index.cjs +16 -0
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/cjs/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 +113 -2
- package/dist/.external/esm/@tanstack_react-table@8.20.5_react-dom@18.3.1_react@18.3.1/@tanstack/react-table/build/lib/index.mjs +16 -0
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/.external/esm/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 +116 -5
- package/dist/core/cjs/Dialogs/AddDialog.cjs +1 -1
- package/dist/core/cjs/Dialogs/EditDialog.cjs +1 -1
- package/dist/core/cjs/Tables/DataGrid/Toolbar/Filter/FilterMenu.cjs +1 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.cjs +12 -3
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MRT_TopToolbar.cjs +1 -1
- package/dist/core/cjs/index.cjs +2 -0
- package/dist/core/esm/Dialogs/AddDialog.mjs +1 -1
- package/dist/core/esm/Dialogs/EditDialog.mjs +1 -1
- package/dist/core/esm/Tables/DataGrid/Toolbar/Filter/FilterMenu.mjs +1 -1
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.mjs +12 -3
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MRT_TopToolbar.mjs +2 -2
- package/dist/core/esm/index.mjs +2 -0
- package/dist/core/lib/Tables/NextGenDataGrid/hooks/useToolbar/useToolbar.d.ts +3 -2
- package/dist/core/lib/index.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/.external/cjs/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.5_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.6_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.cjs +0 -0
- /package/dist/.external/esm/{mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.5_yup@1.7.1 → mantine-form-yup-resolver@2.0.0_@mantine_form@8.3.6_yup@1.7.1}/mantine-form-yup-resolver/dist/esm/index.mjs +0 -0
|
@@ -29,6 +29,21 @@ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
|
29
29
|
*
|
|
30
30
|
* @license MIT
|
|
31
31
|
*/
|
|
32
|
+
function flexRender(Comp, props) {
|
|
33
|
+
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ React__namespace.createElement(Comp, props) : Comp;
|
|
34
|
+
}
|
|
35
|
+
function isReactComponent(component) {
|
|
36
|
+
return isClassComponent(component) || typeof component === "function" || isExoticComponent(component);
|
|
37
|
+
}
|
|
38
|
+
function isClassComponent(component) {
|
|
39
|
+
return typeof component === "function" && (() => {
|
|
40
|
+
const proto = Object.getPrototypeOf(component);
|
|
41
|
+
return proto.prototype && proto.prototype.isReactComponent;
|
|
42
|
+
})();
|
|
43
|
+
}
|
|
44
|
+
function isExoticComponent(component) {
|
|
45
|
+
return typeof component === "object" && typeof component.$$typeof === "symbol" && ["react.memo", "react.forward_ref"].includes(component.$$typeof.description);
|
|
46
|
+
}
|
|
32
47
|
function useReactTable(options) {
|
|
33
48
|
const resolvedOptions = {
|
|
34
49
|
state: {},
|
|
@@ -108,4 +123,5 @@ exports.reSplitAlphaNumeric = index.reSplitAlphaNumeric;
|
|
|
108
123
|
exports.selectRowsFn = index.selectRowsFn;
|
|
109
124
|
exports.shouldAutoRemoveFilter = index.shouldAutoRemoveFilter;
|
|
110
125
|
exports.sortingFns = index.sortingFns;
|
|
126
|
+
exports.flexRender = flexRender;
|
|
111
127
|
exports.useReactTable = useReactTable;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../../../.bundled/jsonforms/cjs/_virtual/
|
|
3
|
+
const index = require("../../../../../../.bundled/jsonforms/cjs/_virtual/index10.cjs");
|
|
4
4
|
const index$1 = require("./codegen/index.cjs");
|
|
5
5
|
const validation_error = require("../runtime/validation_error.cjs");
|
|
6
6
|
const names = require("./names.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/
|
|
3
|
+
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index8.cjs");
|
|
4
4
|
const additionalItems = require("./additionalItems.cjs");
|
|
5
5
|
const prefixItems = require("./prefixItems.cjs");
|
|
6
6
|
const items = require("./items.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/
|
|
3
|
+
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index6.cjs");
|
|
4
4
|
const id = require("./id.cjs");
|
|
5
5
|
const ref = require("./ref.cjs");
|
|
6
6
|
var hasRequiredCore;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/
|
|
3
|
+
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index9.cjs");
|
|
4
4
|
const format = require("./format.cjs");
|
|
5
5
|
var hasRequiredFormat;
|
|
6
6
|
function requireFormat() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/
|
|
3
|
+
const index = require("../../../../../../../.bundled/jsonforms/cjs/_virtual/index7.cjs");
|
|
4
4
|
const limitNumber = require("./limitNumber.cjs");
|
|
5
5
|
const multipleOf = require("./multipleOf.cjs");
|
|
6
6
|
const limitLength = require("./limitLength.cjs");
|
|
@@ -118,7 +118,7 @@ const getPrimaryShade = (theme) => {
|
|
|
118
118
|
var _a, _b;
|
|
119
119
|
return typeof theme.primaryShade === "number" ? theme.primaryShade : (_b = (_a = theme.primaryShade) === null || _a === void 0 ? void 0 : _a.dark) !== null && _b !== void 0 ? _b : 7;
|
|
120
120
|
};
|
|
121
|
-
const getPrimaryColor = (theme, shade) => theme.colors[theme.primaryColor][getPrimaryShade(theme)];
|
|
121
|
+
const getPrimaryColor = (theme, shade) => theme.colors[theme.primaryColor][shade !== null && shade !== void 0 ? shade : getPrimaryShade(theme)];
|
|
122
122
|
function dataVariable(name, value) {
|
|
123
123
|
const key = `data-${name}`;
|
|
124
124
|
switch (typeof value) {
|
|
@@ -2019,7 +2019,17 @@ const MRT_GlobalFilterTextInput = (_a) => {
|
|
|
2019
2019
|
}
|
|
2020
2020
|
} }))] });
|
|
2021
2021
|
};
|
|
2022
|
-
const
|
|
2022
|
+
const flexRender = index.flexRender;
|
|
2023
|
+
function createMRTColumnHelper() {
|
|
2024
|
+
return {
|
|
2025
|
+
accessor: (accessor, column) => {
|
|
2026
|
+
return typeof accessor === "function" ? Object.assign(Object.assign({}, column), { accessorFn: accessor }) : Object.assign(Object.assign({}, column), { accessorKey: accessor });
|
|
2027
|
+
},
|
|
2028
|
+
display: (column) => column,
|
|
2029
|
+
group: (column) => column
|
|
2030
|
+
};
|
|
2031
|
+
}
|
|
2032
|
+
const createRow = (table, originalRow, rowIndex = -1, depth = 0, subRows, parentId) => index$1.createRow(table, "mrt-row-create", originalRow !== null && originalRow !== void 0 ? originalRow : Object.assign({}, ...getAllLeafColumnDefs(table.options.columns).map((col) => ({
|
|
2023
2033
|
[getColumnId(col)]: ""
|
|
2024
2034
|
}))), rowIndex, depth, subRows, parentId);
|
|
2025
2035
|
const getMRT_RowActionsColumnDef = (tableOptions) => {
|
|
@@ -2572,6 +2582,8 @@ const useMRT_TableInstance = (definedTableOptions) => {
|
|
|
2572
2582
|
return table;
|
|
2573
2583
|
};
|
|
2574
2584
|
const useMantineReactTable = (tableOptions) => useMRT_TableInstance(useMRT_TableOptions(tableOptions));
|
|
2585
|
+
var classes$8 = { "root": "MRT_TablePaper-module_root__q0v5L" };
|
|
2586
|
+
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
2587
|
var classes$6 = { "root": "MRT_Table-module_root__ms2uS", "root-grid": "MRT_Table-module_root-grid__2Pynz" };
|
|
2576
2588
|
const useMRT_ColumnVirtualizer = (table) => {
|
|
2577
2589
|
var _a, _b, _c, _d;
|
|
@@ -2676,6 +2688,31 @@ const MRT_EditRowModal = (_a) => {
|
|
|
2676
2688
|
table
|
|
2677
2689
|
}))) !== 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" }) })] }));
|
|
2678
2690
|
};
|
|
2691
|
+
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
2692
|
+
const MRT_TableContainer = (_a) => {
|
|
2693
|
+
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2694
|
+
const { getState, options: { createDisplayMode, editDisplayMode, enableStickyHeader, mantineLoadingOverlayProps, mantineTableContainerProps }, refs: { bottomToolbarRef, tableContainerRef, topToolbarRef } } = table;
|
|
2695
|
+
const { creatingRow, editingRow, isFullScreen, isLoading, showLoadingOverlay } = getState();
|
|
2696
|
+
const [totalToolbarHeight, setTotalToolbarHeight] = React.useState(0);
|
|
2697
|
+
const tableContainerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableContainerProps, { table })), rest);
|
|
2698
|
+
const loadingOverlayProps = parseFromValuesOrFunc(mantineLoadingOverlayProps, { table });
|
|
2699
|
+
useIsomorphicLayoutEffect(() => {
|
|
2700
|
+
var _a2, _b, _c, _d;
|
|
2701
|
+
const topToolbarHeight = typeof document !== "undefined" ? (_b = (_a2 = topToolbarRef.current) === null || _a2 === void 0 ? void 0 : _a2.offsetHeight) !== null && _b !== void 0 ? _b : 0 : 0;
|
|
2702
|
+
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;
|
|
2703
|
+
setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
|
|
2704
|
+
});
|
|
2705
|
+
const createModalOpen = createDisplayMode === "modal" && creatingRow;
|
|
2706
|
+
const editModalOpen = editDisplayMode === "modal" && editingRow;
|
|
2707
|
+
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) => {
|
|
2708
|
+
if (node) {
|
|
2709
|
+
tableContainerRef.current = node;
|
|
2710
|
+
if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
|
|
2711
|
+
tableContainerProps.ref.current = node;
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
}, 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 })] }));
|
|
2715
|
+
};
|
|
2679
2716
|
var commonClasses = { "common-toolbar-styles": "common-styles-module_common-toolbar-styles__DnjR8" };
|
|
2680
2717
|
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" };
|
|
2681
2718
|
var classes$4 = { "collapse": "MRT_ProgressBar-module_collapse__rOLJH", "collapse-top": "MRT_ProgressBar-module_collapse-top__oCi0h" };
|
|
@@ -2745,6 +2782,7 @@ const MRT_BottomToolbar = (_a) => {
|
|
|
2745
2782
|
}
|
|
2746
2783
|
}, children: [jsxRuntime.jsx(MRT_ProgressBar, { isTopToolbar: false, table }), positionToolbarAlertBanner === "bottom" && jsxRuntime.jsx(MRT_ToolbarAlertBanner, { stackAlertBanner, table }), ["both", "bottom"].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : "") && jsxRuntime.jsx(MRT_ToolbarDropZone, { table }), jsxRuntime.jsxs(core.Box, { className: classes$5["custom-toolbar-container"], children: [renderBottomToolbarCustomActions ? renderBottomToolbarCustomActions({ table }) : jsxRuntime.jsx("span", {}), jsxRuntime.jsx(core.Box, { className: clsx.clsx(classes$5["paginator-container"], stackAlertBanner && classes$5["paginator-container-alert-banner"]), children: enablePagination && ["both", "bottom"].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : "") && jsxRuntime.jsx(MRT_TablePagination, { position: "bottom", table }) })] })] }));
|
|
2747
2784
|
};
|
|
2785
|
+
var classes$1 = { "root": "MRT_TopToolbar-module_root__r4-V9", "root-fullscreen": "MRT_TopToolbar-module_root-fullscreen__3itT8", "actions-container": "MRT_TopToolbar-module_actions-container__-uL0u", "actions-container-stack-alert": "MRT_TopToolbar-module_actions-container-stack-alert__OYDL6" };
|
|
2748
2786
|
var classes = { "root": "MRT_ToolbarInternalButtons-module_root__NKoUG" };
|
|
2749
2787
|
const MRT_ToolbarInternalButtons = (_a) => {
|
|
2750
2788
|
var _b;
|
|
@@ -2752,6 +2790,73 @@ const MRT_ToolbarInternalButtons = (_a) => {
|
|
|
2752
2790
|
const { options: { columnFilterDisplayMode, enableColumnFilters, enableColumnOrdering, enableColumnPinning, enableDensityToggle, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, initialState, renderToolbarInternalActions } } = table;
|
|
2753
2791
|
return jsxRuntime.jsx(core.Flex, Object.assign({}, rest, { className: clsx.clsx("mrt-toolbar-internal-buttons", classes.root, rest === null || rest === void 0 ? void 0 : rest.className), children: (_b = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({ table })) !== null && _b !== void 0 ? _b : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [enableFilters && enableGlobalFilter && !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && jsxRuntime.jsx(MRT_ToggleGlobalFilterButton, { table }), enableFilters && enableColumnFilters && columnFilterDisplayMode !== "popover" && jsxRuntime.jsx(MRT_ToggleFiltersButton, { table }), (enableHiding || enableColumnOrdering || enableColumnPinning) && jsxRuntime.jsx(MRT_ShowHideColumnsButton, { table }), enableDensityToggle && jsxRuntime.jsx(MRT_ToggleDensePaddingButton, { table }), enableFullScreenToggle && jsxRuntime.jsx(MRT_ToggleFullScreenButton, { table })] }) }));
|
|
2754
2792
|
};
|
|
2793
|
+
const MRT_TopToolbar = (_a) => {
|
|
2794
|
+
var _b;
|
|
2795
|
+
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2796
|
+
const { getState, options: { enableGlobalFilter, enablePagination, enableToolbarInternalActions, mantineTopToolbarProps, positionGlobalFilter, positionPagination, positionToolbarAlertBanner, positionToolbarDropZone, renderTopToolbarCustomActions }, refs: { topToolbarRef } } = table;
|
|
2797
|
+
const { isFullScreen, showGlobalFilter } = getState();
|
|
2798
|
+
const isMobile = hooks.useMediaQuery("(max-width:720px)");
|
|
2799
|
+
const isTablet = hooks.useMediaQuery("(max-width:1024px)");
|
|
2800
|
+
const toolbarProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTopToolbarProps, { table })), rest);
|
|
2801
|
+
const stackAlertBanner = isMobile || !!renderTopToolbarCustomActions || showGlobalFilter && isTablet;
|
|
2802
|
+
const globalFilterProps = {
|
|
2803
|
+
style: !isTablet ? {
|
|
2804
|
+
zIndex: 3
|
|
2805
|
+
} : void 0,
|
|
2806
|
+
table
|
|
2807
|
+
};
|
|
2808
|
+
return jsxRuntime.jsxs(core.Box, Object.assign({}, toolbarProps, { className: clsx.clsx(commonClasses["common-toolbar-styles"], classes$1["root"], isFullScreen && classes$1["root-fullscreen"], toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.className), ref: (node) => {
|
|
2809
|
+
if (node) {
|
|
2810
|
+
topToolbarRef.current = node;
|
|
2811
|
+
if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
|
|
2812
|
+
toolbarProps.ref.current = node;
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
}, 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 })] }));
|
|
2816
|
+
};
|
|
2817
|
+
const MRT_TablePaper = (_a) => {
|
|
2818
|
+
var _b, _c;
|
|
2819
|
+
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2820
|
+
const { getState, options: { enableBottomToolbar, enableTopToolbar, mantinePaperProps, renderBottomToolbar, renderTopToolbar }, refs: { tablePaperRef } } = table;
|
|
2821
|
+
const { isFullScreen } = getState();
|
|
2822
|
+
const tablePaperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantinePaperProps, { table })), rest);
|
|
2823
|
+
return jsxRuntime.jsxs(core.Paper, Object.assign({ shadow: "xs", withBorder: true }, tablePaperProps, {
|
|
2824
|
+
className: clsx.clsx("mrt-table-paper", classes$8.root, isFullScreen && "mrt-table-paper-fullscreen", tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.className),
|
|
2825
|
+
ref: (ref) => {
|
|
2826
|
+
tablePaperRef.current = ref;
|
|
2827
|
+
if (tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.ref) {
|
|
2828
|
+
tablePaperProps.ref.current = ref;
|
|
2829
|
+
}
|
|
2830
|
+
},
|
|
2831
|
+
// rare case where we should use inline styles to guarantee highest specificity
|
|
2832
|
+
style: (theme) => Object.assign(Object.assign({ zIndex: isFullScreen ? 200 : void 0 }, parseFromValuesOrFunc(tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.style, theme)), isFullScreen ? {
|
|
2833
|
+
border: 0,
|
|
2834
|
+
borderRadius: 0,
|
|
2835
|
+
bottom: 0,
|
|
2836
|
+
height: "100vh",
|
|
2837
|
+
left: 0,
|
|
2838
|
+
margin: 0,
|
|
2839
|
+
maxHeight: "100vh",
|
|
2840
|
+
maxWidth: "100vw",
|
|
2841
|
+
padding: 0,
|
|
2842
|
+
position: "fixed",
|
|
2843
|
+
right: 0,
|
|
2844
|
+
top: 0,
|
|
2845
|
+
width: "100vw"
|
|
2846
|
+
} : null),
|
|
2847
|
+
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 }))]
|
|
2848
|
+
}));
|
|
2849
|
+
};
|
|
2850
|
+
const isTableInstanceProp = (props) => props.table !== void 0;
|
|
2851
|
+
const MantineReactTable = (props) => {
|
|
2852
|
+
let table;
|
|
2853
|
+
if (isTableInstanceProp(props)) {
|
|
2854
|
+
table = props.table;
|
|
2855
|
+
} else {
|
|
2856
|
+
table = useMantineReactTable(props);
|
|
2857
|
+
}
|
|
2858
|
+
return jsxRuntime.jsx(MRT_TablePaper, { table });
|
|
2859
|
+
};
|
|
2755
2860
|
exports.MRT_AggregationFns = MRT_AggregationFns;
|
|
2756
2861
|
exports.MRT_BottomToolbar = MRT_BottomToolbar;
|
|
2757
2862
|
exports.MRT_ColumnActionMenu = MRT_ColumnActionMenu;
|
|
@@ -2788,6 +2893,7 @@ exports.MRT_TableBodyEmptyRow = MRT_TableBodyEmptyRow;
|
|
|
2788
2893
|
exports.MRT_TableBodyRow = MRT_TableBodyRow;
|
|
2789
2894
|
exports.MRT_TableBodyRowGrabHandle = MRT_TableBodyRowGrabHandle;
|
|
2790
2895
|
exports.MRT_TableBodyRowPinButton = MRT_TableBodyRowPinButton;
|
|
2896
|
+
exports.MRT_TableContainer = MRT_TableContainer;
|
|
2791
2897
|
exports.MRT_TableDetailPanel = MRT_TableDetailPanel;
|
|
2792
2898
|
exports.MRT_TableFooter = MRT_TableFooter;
|
|
2793
2899
|
exports.MRT_TableFooterCell = MRT_TableFooterCell;
|
|
@@ -2801,6 +2907,7 @@ exports.MRT_TableHeadCellResizeHandle = MRT_TableHeadCellResizeHandle;
|
|
|
2801
2907
|
exports.MRT_TableHeadCellSortLabel = MRT_TableHeadCellSortLabel;
|
|
2802
2908
|
exports.MRT_TableHeadRow = MRT_TableHeadRow;
|
|
2803
2909
|
exports.MRT_TablePagination = MRT_TablePagination;
|
|
2910
|
+
exports.MRT_TablePaper = MRT_TablePaper;
|
|
2804
2911
|
exports.MRT_ToggleDensePaddingButton = MRT_ToggleDensePaddingButton;
|
|
2805
2912
|
exports.MRT_ToggleFiltersButton = MRT_ToggleFiltersButton;
|
|
2806
2913
|
exports.MRT_ToggleFullScreenButton = MRT_ToggleFullScreenButton;
|
|
@@ -2809,12 +2916,16 @@ exports.MRT_ToggleRowActionMenuButton = MRT_ToggleRowActionMenuButton;
|
|
|
2809
2916
|
exports.MRT_ToolbarAlertBanner = MRT_ToolbarAlertBanner;
|
|
2810
2917
|
exports.MRT_ToolbarDropZone = MRT_ToolbarDropZone;
|
|
2811
2918
|
exports.MRT_ToolbarInternalButtons = MRT_ToolbarInternalButtons;
|
|
2919
|
+
exports.MRT_TopToolbar = MRT_TopToolbar;
|
|
2920
|
+
exports.MantineReactTable = MantineReactTable;
|
|
2812
2921
|
exports.Memo_MRT_TableBody = Memo_MRT_TableBody;
|
|
2813
2922
|
exports.Memo_MRT_TableBodyCell = Memo_MRT_TableBodyCell;
|
|
2814
2923
|
exports.Memo_MRT_TableBodyRow = Memo_MRT_TableBodyRow;
|
|
2924
|
+
exports.createMRTColumnHelper = createMRTColumnHelper;
|
|
2815
2925
|
exports.createRow = createRow;
|
|
2816
2926
|
exports.dataVariable = dataVariable;
|
|
2817
2927
|
exports.defaultDisplayColumnProps = defaultDisplayColumnProps;
|
|
2928
|
+
exports.flexRender = flexRender;
|
|
2818
2929
|
exports.getAllLeafColumnDefs = getAllLeafColumnDefs;
|
|
2819
2930
|
exports.getCanRankRows = getCanRankRows;
|
|
2820
2931
|
exports.getColumnId = getColumnId;
|
|
@@ -11,6 +11,21 @@ import { ColumnFaceting, ColumnFiltering, ColumnGrouping, ColumnOrdering, Column
|
|
|
11
11
|
*
|
|
12
12
|
* @license MIT
|
|
13
13
|
*/
|
|
14
|
+
function flexRender(Comp, props) {
|
|
15
|
+
return !Comp ? null : isReactComponent(Comp) ? /* @__PURE__ */ React.createElement(Comp, props) : Comp;
|
|
16
|
+
}
|
|
17
|
+
function isReactComponent(component) {
|
|
18
|
+
return isClassComponent(component) || typeof component === "function" || isExoticComponent(component);
|
|
19
|
+
}
|
|
20
|
+
function isClassComponent(component) {
|
|
21
|
+
return typeof component === "function" && (() => {
|
|
22
|
+
const proto = Object.getPrototypeOf(component);
|
|
23
|
+
return proto.prototype && proto.prototype.isReactComponent;
|
|
24
|
+
})();
|
|
25
|
+
}
|
|
26
|
+
function isExoticComponent(component) {
|
|
27
|
+
return typeof component === "object" && typeof component.$$typeof === "symbol" && ["react.memo", "react.forward_ref"].includes(component.$$typeof.description);
|
|
28
|
+
}
|
|
14
29
|
function useReactTable(options) {
|
|
15
30
|
const resolvedOptions = {
|
|
16
31
|
state: {},
|
|
@@ -68,6 +83,7 @@ export {
|
|
|
68
83
|
expandRows,
|
|
69
84
|
filterFns,
|
|
70
85
|
flattenBy,
|
|
86
|
+
flexRender,
|
|
71
87
|
functionalUpdate,
|
|
72
88
|
getCoreRowModel,
|
|
73
89
|
getExpandedRowModel,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as compile } from "../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as compile } from "../../../../../../.bundled/jsonforms/esm/_virtual/index10.mjs";
|
|
2
2
|
import { __require as requireCodegen } from "./codegen/index.mjs";
|
|
3
3
|
import { __require as requireValidation_error } from "../runtime/validation_error.mjs";
|
|
4
4
|
import { __require as requireNames } from "./names.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as applicator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as applicator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index8.mjs";
|
|
2
2
|
import { __require as requireAdditionalItems } from "./additionalItems.mjs";
|
|
3
3
|
import { __require as requirePrefixItems } from "./prefixItems.mjs";
|
|
4
4
|
import { __require as requireItems } from "./items.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as core } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as core } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index6.mjs";
|
|
2
2
|
import { __require as requireId } from "./id.mjs";
|
|
3
3
|
import { __require as requireRef } from "./ref.mjs";
|
|
4
4
|
var hasRequiredCore;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as format } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index9.mjs";
|
|
2
2
|
import { __require as requireFormat$1 } from "./format.mjs";
|
|
3
3
|
var hasRequiredFormat;
|
|
4
4
|
function requireFormat() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as validation } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as validation } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index7.mjs";
|
|
2
2
|
import { __require as requireLimitNumber } from "./limitNumber.mjs";
|
|
3
3
|
import { __require as requireMultipleOf } from "./multipleOf.mjs";
|
|
4
4
|
import { __require as requireLimitLength } from "./limitLength.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
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, 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
|
-
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";
|
|
3
|
+
import { useRef, useMemo, useState, useReducer, useEffect, Fragment as Fragment$1, memo, createElement, useCallback, useLayoutEffect } 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, LoadingOverlay, Paper } from "@mantine/core";
|
|
5
|
+
import { useReactTable, flexRender as flexRender$1 } 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";
|
|
8
8
|
import { useMediaQuery, useDebouncedValue, useHover } from "@mantine/hooks";
|
|
@@ -116,7 +116,7 @@ const getPrimaryShade = (theme) => {
|
|
|
116
116
|
var _a, _b;
|
|
117
117
|
return typeof theme.primaryShade === "number" ? theme.primaryShade : (_b = (_a = theme.primaryShade) === null || _a === void 0 ? void 0 : _a.dark) !== null && _b !== void 0 ? _b : 7;
|
|
118
118
|
};
|
|
119
|
-
const getPrimaryColor = (theme, shade) => theme.colors[theme.primaryColor][getPrimaryShade(theme)];
|
|
119
|
+
const getPrimaryColor = (theme, shade) => theme.colors[theme.primaryColor][shade !== null && shade !== void 0 ? shade : getPrimaryShade(theme)];
|
|
120
120
|
function dataVariable(name, value) {
|
|
121
121
|
const key = `data-${name}`;
|
|
122
122
|
switch (typeof value) {
|
|
@@ -2017,7 +2017,17 @@ const MRT_GlobalFilterTextInput = (_a) => {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
} }))] });
|
|
2019
2019
|
};
|
|
2020
|
-
const
|
|
2020
|
+
const flexRender = flexRender$1;
|
|
2021
|
+
function createMRTColumnHelper() {
|
|
2022
|
+
return {
|
|
2023
|
+
accessor: (accessor, column) => {
|
|
2024
|
+
return typeof accessor === "function" ? Object.assign(Object.assign({}, column), { accessorFn: accessor }) : Object.assign(Object.assign({}, column), { accessorKey: accessor });
|
|
2025
|
+
},
|
|
2026
|
+
display: (column) => column,
|
|
2027
|
+
group: (column) => column
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
const createRow = (table, originalRow, rowIndex = -1, depth = 0, subRows, parentId) => createRow$1(table, "mrt-row-create", originalRow !== null && originalRow !== void 0 ? originalRow : Object.assign({}, ...getAllLeafColumnDefs(table.options.columns).map((col) => ({
|
|
2021
2031
|
[getColumnId(col)]: ""
|
|
2022
2032
|
}))), rowIndex, depth, subRows, parentId);
|
|
2023
2033
|
const getMRT_RowActionsColumnDef = (tableOptions) => {
|
|
@@ -2570,6 +2580,8 @@ const useMRT_TableInstance = (definedTableOptions) => {
|
|
|
2570
2580
|
return table;
|
|
2571
2581
|
};
|
|
2572
2582
|
const useMantineReactTable = (tableOptions) => useMRT_TableInstance(useMRT_TableOptions(tableOptions));
|
|
2583
|
+
var classes$8 = { "root": "MRT_TablePaper-module_root__q0v5L" };
|
|
2584
|
+
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" };
|
|
2573
2585
|
var classes$6 = { "root": "MRT_Table-module_root__ms2uS", "root-grid": "MRT_Table-module_root-grid__2Pynz" };
|
|
2574
2586
|
const useMRT_ColumnVirtualizer = (table) => {
|
|
2575
2587
|
var _a, _b, _c, _d;
|
|
@@ -2674,6 +2686,31 @@ const MRT_EditRowModal = (_a) => {
|
|
|
2674
2686
|
table
|
|
2675
2687
|
}))) !== 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" }) })] }));
|
|
2676
2688
|
};
|
|
2689
|
+
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
2690
|
+
const MRT_TableContainer = (_a) => {
|
|
2691
|
+
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2692
|
+
const { getState, options: { createDisplayMode, editDisplayMode, enableStickyHeader, mantineLoadingOverlayProps, mantineTableContainerProps }, refs: { bottomToolbarRef, tableContainerRef, topToolbarRef } } = table;
|
|
2693
|
+
const { creatingRow, editingRow, isFullScreen, isLoading, showLoadingOverlay } = getState();
|
|
2694
|
+
const [totalToolbarHeight, setTotalToolbarHeight] = useState(0);
|
|
2695
|
+
const tableContainerProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTableContainerProps, { table })), rest);
|
|
2696
|
+
const loadingOverlayProps = parseFromValuesOrFunc(mantineLoadingOverlayProps, { table });
|
|
2697
|
+
useIsomorphicLayoutEffect(() => {
|
|
2698
|
+
var _a2, _b, _c, _d;
|
|
2699
|
+
const topToolbarHeight = typeof document !== "undefined" ? (_b = (_a2 = topToolbarRef.current) === null || _a2 === void 0 ? void 0 : _a2.offsetHeight) !== null && _b !== void 0 ? _b : 0 : 0;
|
|
2700
|
+
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;
|
|
2701
|
+
setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);
|
|
2702
|
+
});
|
|
2703
|
+
const createModalOpen = createDisplayMode === "modal" && creatingRow;
|
|
2704
|
+
const editModalOpen = editDisplayMode === "modal" && editingRow;
|
|
2705
|
+
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) => {
|
|
2706
|
+
if (node) {
|
|
2707
|
+
tableContainerRef.current = node;
|
|
2708
|
+
if (tableContainerProps === null || tableContainerProps === void 0 ? void 0 : tableContainerProps.ref) {
|
|
2709
|
+
tableContainerProps.ref.current = node;
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
}, children: [jsx(LoadingOverlay, Object.assign({ visible: isLoading || showLoadingOverlay, zIndex: 2 }, loadingOverlayProps)), jsx(MRT_Table, { table }), (createModalOpen || editModalOpen) && jsx(MRT_EditRowModal, { open: true, table })] }));
|
|
2713
|
+
};
|
|
2677
2714
|
var commonClasses = { "common-toolbar-styles": "common-styles-module_common-toolbar-styles__DnjR8" };
|
|
2678
2715
|
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" };
|
|
2679
2716
|
var classes$4 = { "collapse": "MRT_ProgressBar-module_collapse__rOLJH", "collapse-top": "MRT_ProgressBar-module_collapse-top__oCi0h" };
|
|
@@ -2743,6 +2780,7 @@ const MRT_BottomToolbar = (_a) => {
|
|
|
2743
2780
|
}
|
|
2744
2781
|
}, children: [jsx(MRT_ProgressBar, { isTopToolbar: false, table }), positionToolbarAlertBanner === "bottom" && jsx(MRT_ToolbarAlertBanner, { stackAlertBanner, table }), ["both", "bottom"].includes(positionToolbarDropZone !== null && positionToolbarDropZone !== void 0 ? positionToolbarDropZone : "") && jsx(MRT_ToolbarDropZone, { table }), jsxs(Box, { className: classes$5["custom-toolbar-container"], children: [renderBottomToolbarCustomActions ? renderBottomToolbarCustomActions({ table }) : jsx("span", {}), jsx(Box, { className: clsx(classes$5["paginator-container"], stackAlertBanner && classes$5["paginator-container-alert-banner"]), children: enablePagination && ["both", "bottom"].includes(positionPagination !== null && positionPagination !== void 0 ? positionPagination : "") && jsx(MRT_TablePagination, { position: "bottom", table }) })] })] }));
|
|
2745
2782
|
};
|
|
2783
|
+
var classes$1 = { "root": "MRT_TopToolbar-module_root__r4-V9", "root-fullscreen": "MRT_TopToolbar-module_root-fullscreen__3itT8", "actions-container": "MRT_TopToolbar-module_actions-container__-uL0u", "actions-container-stack-alert": "MRT_TopToolbar-module_actions-container-stack-alert__OYDL6" };
|
|
2746
2784
|
var classes = { "root": "MRT_ToolbarInternalButtons-module_root__NKoUG" };
|
|
2747
2785
|
const MRT_ToolbarInternalButtons = (_a) => {
|
|
2748
2786
|
var _b;
|
|
@@ -2750,6 +2788,73 @@ const MRT_ToolbarInternalButtons = (_a) => {
|
|
|
2750
2788
|
const { options: { columnFilterDisplayMode, enableColumnFilters, enableColumnOrdering, enableColumnPinning, enableDensityToggle, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableHiding, initialState, renderToolbarInternalActions } } = table;
|
|
2751
2789
|
return jsx(Flex, Object.assign({}, rest, { className: clsx("mrt-toolbar-internal-buttons", classes.root, rest === null || rest === void 0 ? void 0 : rest.className), children: (_b = renderToolbarInternalActions === null || renderToolbarInternalActions === void 0 ? void 0 : renderToolbarInternalActions({ table })) !== null && _b !== void 0 ? _b : jsxs(Fragment, { children: [enableFilters && enableGlobalFilter && !(initialState === null || initialState === void 0 ? void 0 : initialState.showGlobalFilter) && jsx(MRT_ToggleGlobalFilterButton, { table }), enableFilters && enableColumnFilters && columnFilterDisplayMode !== "popover" && jsx(MRT_ToggleFiltersButton, { table }), (enableHiding || enableColumnOrdering || enableColumnPinning) && jsx(MRT_ShowHideColumnsButton, { table }), enableDensityToggle && jsx(MRT_ToggleDensePaddingButton, { table }), enableFullScreenToggle && jsx(MRT_ToggleFullScreenButton, { table })] }) }));
|
|
2752
2790
|
};
|
|
2791
|
+
const MRT_TopToolbar = (_a) => {
|
|
2792
|
+
var _b;
|
|
2793
|
+
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2794
|
+
const { getState, options: { enableGlobalFilter, enablePagination, enableToolbarInternalActions, mantineTopToolbarProps, positionGlobalFilter, positionPagination, positionToolbarAlertBanner, positionToolbarDropZone, renderTopToolbarCustomActions }, refs: { topToolbarRef } } = table;
|
|
2795
|
+
const { isFullScreen, showGlobalFilter } = getState();
|
|
2796
|
+
const isMobile = useMediaQuery("(max-width:720px)");
|
|
2797
|
+
const isTablet = useMediaQuery("(max-width:1024px)");
|
|
2798
|
+
const toolbarProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantineTopToolbarProps, { table })), rest);
|
|
2799
|
+
const stackAlertBanner = isMobile || !!renderTopToolbarCustomActions || showGlobalFilter && isTablet;
|
|
2800
|
+
const globalFilterProps = {
|
|
2801
|
+
style: !isTablet ? {
|
|
2802
|
+
zIndex: 3
|
|
2803
|
+
} : void 0,
|
|
2804
|
+
table
|
|
2805
|
+
};
|
|
2806
|
+
return jsxs(Box, Object.assign({}, toolbarProps, { className: clsx(commonClasses["common-toolbar-styles"], classes$1["root"], isFullScreen && classes$1["root-fullscreen"], toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.className), ref: (node) => {
|
|
2807
|
+
if (node) {
|
|
2808
|
+
topToolbarRef.current = node;
|
|
2809
|
+
if (toolbarProps === null || toolbarProps === void 0 ? void 0 : toolbarProps.ref) {
|
|
2810
|
+
toolbarProps.ref.current = node;
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
}, 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 })] }));
|
|
2814
|
+
};
|
|
2815
|
+
const MRT_TablePaper = (_a) => {
|
|
2816
|
+
var _b, _c;
|
|
2817
|
+
var { table } = _a, rest = __rest(_a, ["table"]);
|
|
2818
|
+
const { getState, options: { enableBottomToolbar, enableTopToolbar, mantinePaperProps, renderBottomToolbar, renderTopToolbar }, refs: { tablePaperRef } } = table;
|
|
2819
|
+
const { isFullScreen } = getState();
|
|
2820
|
+
const tablePaperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(mantinePaperProps, { table })), rest);
|
|
2821
|
+
return jsxs(Paper, Object.assign({ shadow: "xs", withBorder: true }, tablePaperProps, {
|
|
2822
|
+
className: clsx("mrt-table-paper", classes$8.root, isFullScreen && "mrt-table-paper-fullscreen", tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.className),
|
|
2823
|
+
ref: (ref) => {
|
|
2824
|
+
tablePaperRef.current = ref;
|
|
2825
|
+
if (tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.ref) {
|
|
2826
|
+
tablePaperProps.ref.current = ref;
|
|
2827
|
+
}
|
|
2828
|
+
},
|
|
2829
|
+
// rare case where we should use inline styles to guarantee highest specificity
|
|
2830
|
+
style: (theme) => Object.assign(Object.assign({ zIndex: isFullScreen ? 200 : void 0 }, parseFromValuesOrFunc(tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.style, theme)), isFullScreen ? {
|
|
2831
|
+
border: 0,
|
|
2832
|
+
borderRadius: 0,
|
|
2833
|
+
bottom: 0,
|
|
2834
|
+
height: "100vh",
|
|
2835
|
+
left: 0,
|
|
2836
|
+
margin: 0,
|
|
2837
|
+
maxHeight: "100vh",
|
|
2838
|
+
maxWidth: "100vw",
|
|
2839
|
+
padding: 0,
|
|
2840
|
+
position: "fixed",
|
|
2841
|
+
right: 0,
|
|
2842
|
+
top: 0,
|
|
2843
|
+
width: "100vw"
|
|
2844
|
+
} : null),
|
|
2845
|
+
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 }))]
|
|
2846
|
+
}));
|
|
2847
|
+
};
|
|
2848
|
+
const isTableInstanceProp = (props) => props.table !== void 0;
|
|
2849
|
+
const MantineReactTable = (props) => {
|
|
2850
|
+
let table;
|
|
2851
|
+
if (isTableInstanceProp(props)) {
|
|
2852
|
+
table = props.table;
|
|
2853
|
+
} else {
|
|
2854
|
+
table = useMantineReactTable(props);
|
|
2855
|
+
}
|
|
2856
|
+
return jsx(MRT_TablePaper, { table });
|
|
2857
|
+
};
|
|
2753
2858
|
export {
|
|
2754
2859
|
MRT_AggregationFns,
|
|
2755
2860
|
MRT_BottomToolbar,
|
|
@@ -2787,6 +2892,7 @@ export {
|
|
|
2787
2892
|
MRT_TableBodyRow,
|
|
2788
2893
|
MRT_TableBodyRowGrabHandle,
|
|
2789
2894
|
MRT_TableBodyRowPinButton,
|
|
2895
|
+
MRT_TableContainer,
|
|
2790
2896
|
MRT_TableDetailPanel,
|
|
2791
2897
|
MRT_TableFooter,
|
|
2792
2898
|
MRT_TableFooterCell,
|
|
@@ -2800,6 +2906,7 @@ export {
|
|
|
2800
2906
|
MRT_TableHeadCellSortLabel,
|
|
2801
2907
|
MRT_TableHeadRow,
|
|
2802
2908
|
MRT_TablePagination,
|
|
2909
|
+
MRT_TablePaper,
|
|
2803
2910
|
MRT_ToggleDensePaddingButton,
|
|
2804
2911
|
MRT_ToggleFiltersButton,
|
|
2805
2912
|
MRT_ToggleFullScreenButton,
|
|
@@ -2808,12 +2915,16 @@ export {
|
|
|
2808
2915
|
MRT_ToolbarAlertBanner,
|
|
2809
2916
|
MRT_ToolbarDropZone,
|
|
2810
2917
|
MRT_ToolbarInternalButtons,
|
|
2918
|
+
MRT_TopToolbar,
|
|
2919
|
+
MantineReactTable,
|
|
2811
2920
|
Memo_MRT_TableBody,
|
|
2812
2921
|
Memo_MRT_TableBodyCell,
|
|
2813
2922
|
Memo_MRT_TableBodyRow,
|
|
2923
|
+
createMRTColumnHelper,
|
|
2814
2924
|
createRow,
|
|
2815
2925
|
dataVariable,
|
|
2816
2926
|
defaultDisplayColumnProps,
|
|
2927
|
+
flexRender,
|
|
2817
2928
|
getAllLeafColumnDefs,
|
|
2818
2929
|
getCanRankRows,
|
|
2819
2930
|
getColumnId,
|
|
@@ -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.6_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");
|
|
@@ -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.6_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");
|
|
@@ -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.6_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");
|
|
@@ -72,9 +72,7 @@ function useToolbar(toolbar = {}, quickFilters, hideToolbar, enableAdvancedFilte
|
|
|
72
72
|
);
|
|
73
73
|
return {
|
|
74
74
|
renderToolbarInternalActions,
|
|
75
|
-
renderTopToolbarCenterActions: centerToolbar,
|
|
76
75
|
enableTopToolbar: !hideToolbar,
|
|
77
|
-
enableFilters: (customizer == null ? void 0 : customizer.filter) !== null,
|
|
78
76
|
...React.useMemo(() => {
|
|
79
77
|
if (quickFilterUI && leftToolbar) {
|
|
80
78
|
throw new Error("quickFilters and toolbar.leftToolbar are mutually exclusive, please use only one of them");
|
|
@@ -96,8 +94,19 @@ function useToolbar(toolbar = {}, quickFilters, hideToolbar, enableAdvancedFilte
|
|
|
96
94
|
};
|
|
97
95
|
props.positionToolbarAlertBanner = "bottom";
|
|
98
96
|
}
|
|
97
|
+
if (centerToolbar) {
|
|
98
|
+
const { custom: custom2 } = centerToolbar;
|
|
99
|
+
props.renderTopToolbarCenterActions = ({ table }) => {
|
|
100
|
+
const functionProps = {
|
|
101
|
+
api,
|
|
102
|
+
auth,
|
|
103
|
+
mrtProps: { table }
|
|
104
|
+
};
|
|
105
|
+
return renderCustomizedToolbars(void 0, {}, functionProps, custom2);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
99
108
|
return props;
|
|
100
|
-
}, [api, auth, leftToolbar, quickFilterUI])
|
|
109
|
+
}, [api, auth, centerToolbar, leftToolbar, quickFilterUI])
|
|
101
110
|
};
|
|
102
111
|
}
|
|
103
112
|
exports.useToolbar = useToolbar;
|
|
@@ -70,7 +70,7 @@ const MRT_TopToolbar = ({ table, ...rest }) => {
|
|
|
70
70
|
children: [
|
|
71
71
|
enableGlobalFilter && positionGlobalFilter === "left" && /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_GlobalFilterTextInput, { ...globalFilterProps }),
|
|
72
72
|
(renderTopToolbarCustomActions == null ? void 0 : renderTopToolbarCustomActions({ table })) ?? /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
73
|
-
|
|
73
|
+
renderTopToolbarCenterActions ? /* @__PURE__ */ jsxRuntime.jsx(core.Center, { children: renderTopToolbarCenterActions({ table }) }) : void 0,
|
|
74
74
|
enableToolbarInternalActions ? /* @__PURE__ */ jsxRuntime.jsxs(core.Flex, { justify: "end", wrap: "wrap-reverse", children: [
|
|
75
75
|
enableGlobalFilter && positionGlobalFilter === "right" && /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_GlobalFilterTextInput, { ...globalFilterProps }),
|
|
76
76
|
/* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_ToolbarInternalButtons, { table })
|
package/dist/core/cjs/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ const constants = require("fastapi-rtk/constants");
|
|
|
34
34
|
const hooks = require("fastapi-rtk/hooks");
|
|
35
35
|
const utils = require("fastapi-rtk/utils");
|
|
36
36
|
const zustand = require("fastapi-rtk/zustand");
|
|
37
|
+
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");
|
|
37
38
|
const Filter = require("./Tables/DataGrid/Toolbar/Filter/Filter.cjs");
|
|
38
39
|
const useTranslation = require("../../.external/cjs/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.cjs");
|
|
39
40
|
exports.Actions = Actions.Actions;
|
|
@@ -70,6 +71,7 @@ exports.ApiProvider = ApiProvider.ApiProvider;
|
|
|
70
71
|
exports.InfiniteScroll = InfiniteScroll.InfiniteScroll;
|
|
71
72
|
exports.LazyLoadWrapper = LazyLoadWrapper.LazyLoadWrapper;
|
|
72
73
|
exports.Provider = Provider.Provider;
|
|
74
|
+
exports.mrt = index_esm;
|
|
73
75
|
exports.Filter = Filter.Filter;
|
|
74
76
|
exports.useTranslation = useTranslation.useTranslation;
|
|
75
77
|
Object.keys(_bundledJsonforms).forEach((k) => {
|
|
@@ -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.6_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";
|
|
@@ -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.6_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";
|
|
@@ -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.6_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";
|
|
@@ -70,9 +70,7 @@ function useToolbar(toolbar = {}, quickFilters, hideToolbar, enableAdvancedFilte
|
|
|
70
70
|
);
|
|
71
71
|
return {
|
|
72
72
|
renderToolbarInternalActions,
|
|
73
|
-
renderTopToolbarCenterActions: centerToolbar,
|
|
74
73
|
enableTopToolbar: !hideToolbar,
|
|
75
|
-
enableFilters: (customizer == null ? void 0 : customizer.filter) !== null,
|
|
76
74
|
...useMemo(() => {
|
|
77
75
|
if (quickFilterUI && leftToolbar) {
|
|
78
76
|
throw new Error("quickFilters and toolbar.leftToolbar are mutually exclusive, please use only one of them");
|
|
@@ -94,8 +92,19 @@ function useToolbar(toolbar = {}, quickFilters, hideToolbar, enableAdvancedFilte
|
|
|
94
92
|
};
|
|
95
93
|
props.positionToolbarAlertBanner = "bottom";
|
|
96
94
|
}
|
|
95
|
+
if (centerToolbar) {
|
|
96
|
+
const { custom: custom2 } = centerToolbar;
|
|
97
|
+
props.renderTopToolbarCenterActions = ({ table }) => {
|
|
98
|
+
const functionProps = {
|
|
99
|
+
api,
|
|
100
|
+
auth,
|
|
101
|
+
mrtProps: { table }
|
|
102
|
+
};
|
|
103
|
+
return renderCustomizedToolbars(void 0, {}, functionProps, custom2);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
97
106
|
return props;
|
|
98
|
-
}, [api, auth, leftToolbar, quickFilterUI])
|
|
107
|
+
}, [api, auth, centerToolbar, leftToolbar, quickFilterUI])
|
|
99
108
|
};
|
|
100
109
|
}
|
|
101
110
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
3
|
-
import { Box, Group, Flex } from "@mantine/core";
|
|
3
|
+
import { Box, Group, Flex, Center } from "@mantine/core";
|
|
4
4
|
import { useMediaQuery } from "@mantine/hooks";
|
|
5
5
|
import { clsx } from "../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
6
6
|
import { MRT_ToolbarAlertBanner, 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._v6brefjjgmgbqbolvm3v6bkbsa/mantine-react-table/dist/index.esm.mjs";
|
|
@@ -68,7 +68,7 @@ const MRT_TopToolbar = ({ table, ...rest }) => {
|
|
|
68
68
|
children: [
|
|
69
69
|
enableGlobalFilter && positionGlobalFilter === "left" && /* @__PURE__ */ jsx(MRT_GlobalFilterTextInput, { ...globalFilterProps }),
|
|
70
70
|
(renderTopToolbarCustomActions == null ? void 0 : renderTopToolbarCustomActions({ table })) ?? /* @__PURE__ */ jsx("span", {}),
|
|
71
|
-
|
|
71
|
+
renderTopToolbarCenterActions ? /* @__PURE__ */ jsx(Center, { children: renderTopToolbarCenterActions({ table }) }) : void 0,
|
|
72
72
|
enableToolbarInternalActions ? /* @__PURE__ */ jsxs(Flex, { justify: "end", wrap: "wrap-reverse", children: [
|
|
73
73
|
enableGlobalFilter && positionGlobalFilter === "right" && /* @__PURE__ */ jsx(MRT_GlobalFilterTextInput, { ...globalFilterProps }),
|
|
74
74
|
/* @__PURE__ */ jsx(MRT_ToolbarInternalButtons, { table })
|
package/dist/core/esm/index.mjs
CHANGED
|
@@ -32,6 +32,7 @@ export * from "fastapi-rtk/constants";
|
|
|
32
32
|
export * from "fastapi-rtk/hooks";
|
|
33
33
|
export * from "fastapi-rtk/utils";
|
|
34
34
|
export * from "fastapi-rtk/zustand";
|
|
35
|
+
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._v6brefjjgmgbqbolvm3v6bkbsa/mantine-react-table/dist/index.esm.mjs";
|
|
35
36
|
import { Filter } from "./Tables/DataGrid/Toolbar/Filter/Filter.mjs";
|
|
36
37
|
import { useTranslation } from "../../.external/esm/react-i18next@15.7.4_i18next@25.6.0_react-dom@18.3.1_react@18.3.1_typescript@5.9.3/react-i18next/dist/es/useTranslation.mjs";
|
|
37
38
|
export {
|
|
@@ -62,6 +63,7 @@ export {
|
|
|
62
63
|
UserMenu,
|
|
63
64
|
View,
|
|
64
65
|
ViewDialog,
|
|
66
|
+
index_esm as mrt,
|
|
65
67
|
normalProps,
|
|
66
68
|
overlayProps,
|
|
67
69
|
useApi,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export function useToolbar(toolbar: {}, quickFilters: any, hideToolbar: any, enableAdvancedFilters: any): {
|
|
2
2
|
renderTopToolbarCustomActions(): import("react").JSX.Element;
|
|
3
3
|
positionToolbarAlertBanner: string;
|
|
4
|
+
renderTopToolbarCenterActions({ table }: {
|
|
5
|
+
table: any;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
4
7
|
renderToolbarInternalActions: ({ table }: {
|
|
5
8
|
table: any;
|
|
6
9
|
}) => import("react").JSX.Element;
|
|
7
|
-
renderTopToolbarCenterActions: any;
|
|
8
10
|
enableTopToolbar: boolean;
|
|
9
|
-
enableFilters: boolean;
|
|
10
11
|
};
|
package/dist/core/lib/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { ApiProvider } from './Wrappers/ApiProvider/ApiProvider';
|
|
|
20
20
|
export { InfiniteScroll } from './Wrappers/InfiniteScroll/InfiniteScroll';
|
|
21
21
|
export { LazyLoadWrapper } from './Wrappers/LazyLoadWrapper/LazyLoadWrapper';
|
|
22
22
|
export { Provider } from './Wrappers/Provider/Provider';
|
|
23
|
+
export * as mrt from 'mantine-react-table';
|
|
23
24
|
export { Filter } from './Tables/DataGrid/Toolbar/Filter/Filter';
|
|
24
25
|
export { useLang, useTranslation } from './hooks/lang/useLang';
|
|
25
26
|
export { DataGrid, DataGrid as Datagrid } from './Tables/DataGrid/DataGrid';
|
package/package.json
CHANGED
|
File without changes
|