fastapi-rtk 2.0.3 → 2.0.4
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/.external/esm/mantine-react-table@2.0.0-beta.9_patch_hash_046f1b0f764b8dc88804170e4ca8f096de0796df0be_2e8cfd91765713166f4d486da3b54b13/mantine-react-table/dist/index.esm.mjs +3 -3
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useToolbar/mrtToolbars.cjs +10 -10
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useToolbar/mrtToolbars.mjs +11 -11
- package/dist/core/lib/Tables/NextGenDataGrid/hooks/useToolbar/mrtToolbars.d.ts +42 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { clsx } from "../../../clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { memo, useState, useEffect, useRef, useMemo, useCallback, useReducer, createElement, Fragment as Fragment$1, useLayoutEffect } from "react";
|
|
4
|
+
import { useDirection, TableTd, TableTr, Collapse, Skeleton, Select, MultiSelect, TextInput, CopyButton, Tooltip, UnstyledButton, Highlight, Text, Box, ActionIcon, Switch, Radio, Checkbox, Flex, Transition, Menu, Group, Pagination, Progress, Modal, Stack, Button, TableTfoot, useMantineTheme, TableTh, Popover, Indicator, RangeSlider, Badge, Autocomplete, useMantineColorScheme, Table, lighten, darken, TableTbody, LoadingOverlay, TableThead, Paper, Alert } from "@mantine/core";
|
|
5
5
|
import { useReactTable, flexRender as flexRender$1 } from "../../../@tanstack_react-table@8.20.5_react-dom@19.2.3_react@19.2.3__react@19.2.3/@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@19.2.3_react@19.2.3__react@19.2.3/@tanstack/react-virtual/dist/esm/index.mjs";
|
|
@@ -7,7 +7,7 @@ const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2
|
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const BaseActionIcon = require("../../../../ActionIcons/utils/BaseActionIcon.cjs");
|
|
9
9
|
const DENSITY_NEXT = { md: "xs", xl: "md", xs: "xl" };
|
|
10
|
-
const ToggleGlobalFilterButton =
|
|
10
|
+
const ToggleGlobalFilterButton = ({ table, ...props }) => {
|
|
11
11
|
const { globalFilter, showGlobalFilter } = table.getState();
|
|
12
12
|
const { IconSearch, IconSearchOff } = table.options.icons;
|
|
13
13
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -26,9 +26,9 @@ const ToggleGlobalFilterButton = React.memo(({ table, ...props }) => {
|
|
|
26
26
|
...props
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
|
-
}
|
|
29
|
+
};
|
|
30
30
|
ToggleGlobalFilterButton.displayName = "ToggleGlobalFilterButton";
|
|
31
|
-
const ToggleFiltersButton =
|
|
31
|
+
const ToggleFiltersButton = ({ table, ...props }) => {
|
|
32
32
|
const { showColumnFilters } = table.getState();
|
|
33
33
|
const { IconFilter, IconFilterOff } = table.options.icons;
|
|
34
34
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -40,9 +40,9 @@ const ToggleFiltersButton = React.memo(({ table, ...props }) => {
|
|
|
40
40
|
...props
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
|
-
}
|
|
43
|
+
};
|
|
44
44
|
ToggleFiltersButton.displayName = "ToggleFiltersButton";
|
|
45
|
-
const ToggleDensePaddingButton =
|
|
45
|
+
const ToggleDensePaddingButton = ({ table, ...props }) => {
|
|
46
46
|
const { density } = table.getState();
|
|
47
47
|
const { IconBaselineDensityLarge, IconBaselineDensityMedium, IconBaselineDensitySmall } = table.options.icons;
|
|
48
48
|
const Icon = density === "xs" ? IconBaselineDensitySmall : density === "md" ? IconBaselineDensityMedium : IconBaselineDensityLarge;
|
|
@@ -55,9 +55,9 @@ const ToggleDensePaddingButton = React.memo(({ table, ...props }) => {
|
|
|
55
55
|
...props
|
|
56
56
|
}
|
|
57
57
|
);
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
ToggleDensePaddingButton.displayName = "ToggleDensePaddingButton";
|
|
60
|
-
const ToggleFullScreenButton =
|
|
60
|
+
const ToggleFullScreenButton = ({ table, tooltipProps, ...props }) => {
|
|
61
61
|
const { isFullScreen } = table.getState();
|
|
62
62
|
const { IconMaximize, IconMinimize } = table.options.icons;
|
|
63
63
|
const [tooltipOpened, setTooltipOpened] = React.useState(false);
|
|
@@ -77,9 +77,9 @@ const ToggleFullScreenButton = React.memo(({ table, tooltipProps, ...props }) =>
|
|
|
77
77
|
...props
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
}
|
|
80
|
+
};
|
|
81
81
|
ToggleFullScreenButton.displayName = "ToggleFullScreenButton";
|
|
82
|
-
const ShowHideColumnsButton =
|
|
82
|
+
const ShowHideColumnsButton = ({ table, tooltipProps, iconProps, ...props }) => {
|
|
83
83
|
const { IconColumns } = table.options.icons;
|
|
84
84
|
const label = table.options.localization.showHideColumns;
|
|
85
85
|
const actionIconProps = hooks.useActionIcon(props);
|
|
@@ -87,7 +87,7 @@ const ShowHideColumnsButton = React.memo(({ table, tooltipProps, iconProps, ...p
|
|
|
87
87
|
/* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { withinPortal: true, ...tooltipProps, label: (tooltipProps == null ? void 0 : tooltipProps.label) ?? label, children: /* @__PURE__ */ jsxRuntime.jsx(core.Menu.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { "aria-label": label, ...actionIconProps, children: /* @__PURE__ */ jsxRuntime.jsx(IconColumns, { ...iconProps }) }) }) }),
|
|
88
88
|
/* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_ShowHideColumnsMenu, { table })
|
|
89
89
|
] });
|
|
90
|
-
}
|
|
90
|
+
};
|
|
91
91
|
ShowHideColumnsButton.displayName = "ShowHideColumnsButton";
|
|
92
92
|
exports.ShowHideColumnsButton = ShowHideColumnsButton;
|
|
93
93
|
exports.ToggleDensePaddingButton = ToggleDensePaddingButton;
|
|
@@ -2,10 +2,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useActionIcon } from "fastapi-rtk/hooks";
|
|
3
3
|
import { Menu, Tooltip, ActionIcon } from "@mantine/core";
|
|
4
4
|
import { MRT_ShowHideColumnsMenu } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_patch_hash_046f1b0f764b8dc88804170e4ca8f096de0796df0be_2e8cfd91765713166f4d486da3b54b13/mantine-react-table/dist/index.esm.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { useState } from "react";
|
|
6
6
|
import { BaseActionIcon } from "../../../../ActionIcons/utils/BaseActionIcon.mjs";
|
|
7
7
|
const DENSITY_NEXT = { md: "xs", xl: "md", xs: "xl" };
|
|
8
|
-
const ToggleGlobalFilterButton =
|
|
8
|
+
const ToggleGlobalFilterButton = ({ table, ...props }) => {
|
|
9
9
|
const { globalFilter, showGlobalFilter } = table.getState();
|
|
10
10
|
const { IconSearch, IconSearchOff } = table.options.icons;
|
|
11
11
|
return /* @__PURE__ */ jsx(
|
|
@@ -24,9 +24,9 @@ const ToggleGlobalFilterButton = memo(({ table, ...props }) => {
|
|
|
24
24
|
...props
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
28
|
ToggleGlobalFilterButton.displayName = "ToggleGlobalFilterButton";
|
|
29
|
-
const ToggleFiltersButton =
|
|
29
|
+
const ToggleFiltersButton = ({ table, ...props }) => {
|
|
30
30
|
const { showColumnFilters } = table.getState();
|
|
31
31
|
const { IconFilter, IconFilterOff } = table.options.icons;
|
|
32
32
|
return /* @__PURE__ */ jsx(
|
|
@@ -38,9 +38,9 @@ const ToggleFiltersButton = memo(({ table, ...props }) => {
|
|
|
38
38
|
...props
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
42
|
ToggleFiltersButton.displayName = "ToggleFiltersButton";
|
|
43
|
-
const ToggleDensePaddingButton =
|
|
43
|
+
const ToggleDensePaddingButton = ({ table, ...props }) => {
|
|
44
44
|
const { density } = table.getState();
|
|
45
45
|
const { IconBaselineDensityLarge, IconBaselineDensityMedium, IconBaselineDensitySmall } = table.options.icons;
|
|
46
46
|
const Icon = density === "xs" ? IconBaselineDensitySmall : density === "md" ? IconBaselineDensityMedium : IconBaselineDensityLarge;
|
|
@@ -53,9 +53,9 @@ const ToggleDensePaddingButton = memo(({ table, ...props }) => {
|
|
|
53
53
|
...props
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
|
-
}
|
|
56
|
+
};
|
|
57
57
|
ToggleDensePaddingButton.displayName = "ToggleDensePaddingButton";
|
|
58
|
-
const ToggleFullScreenButton =
|
|
58
|
+
const ToggleFullScreenButton = ({ table, tooltipProps, ...props }) => {
|
|
59
59
|
const { isFullScreen } = table.getState();
|
|
60
60
|
const { IconMaximize, IconMinimize } = table.options.icons;
|
|
61
61
|
const [tooltipOpened, setTooltipOpened] = useState(false);
|
|
@@ -75,9 +75,9 @@ const ToggleFullScreenButton = memo(({ table, tooltipProps, ...props }) => {
|
|
|
75
75
|
...props
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
|
-
}
|
|
78
|
+
};
|
|
79
79
|
ToggleFullScreenButton.displayName = "ToggleFullScreenButton";
|
|
80
|
-
const ShowHideColumnsButton =
|
|
80
|
+
const ShowHideColumnsButton = ({ table, tooltipProps, iconProps, ...props }) => {
|
|
81
81
|
const { IconColumns } = table.options.icons;
|
|
82
82
|
const label = table.options.localization.showHideColumns;
|
|
83
83
|
const actionIconProps = useActionIcon(props);
|
|
@@ -85,7 +85,7 @@ const ShowHideColumnsButton = memo(({ table, tooltipProps, iconProps, ...props }
|
|
|
85
85
|
/* @__PURE__ */ jsx(Tooltip, { withinPortal: true, ...tooltipProps, label: (tooltipProps == null ? void 0 : tooltipProps.label) ?? label, children: /* @__PURE__ */ jsx(Menu.Target, { children: /* @__PURE__ */ jsx(ActionIcon, { "aria-label": label, ...actionIconProps, children: /* @__PURE__ */ jsx(IconColumns, { ...iconProps }) }) }) }),
|
|
86
86
|
/* @__PURE__ */ jsx(MRT_ShowHideColumnsMenu, { table })
|
|
87
87
|
] });
|
|
88
|
-
}
|
|
88
|
+
};
|
|
89
89
|
ShowHideColumnsButton.displayName = "ShowHideColumnsButton";
|
|
90
90
|
export {
|
|
91
91
|
ShowHideColumnsButton,
|
|
@@ -1,5 +1,42 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
1
|
+
export function ToggleGlobalFilterButton({ table, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
table: any;
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
|
+
export namespace ToggleGlobalFilterButton {
|
|
6
|
+
let displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export function ToggleFiltersButton({ table, ...props }: {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
table: any;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
export namespace ToggleFiltersButton {
|
|
13
|
+
let displayName_1: string;
|
|
14
|
+
export { displayName_1 as displayName };
|
|
15
|
+
}
|
|
16
|
+
export function ToggleDensePaddingButton({ table, ...props }: {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
table: any;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
|
+
export namespace ToggleDensePaddingButton {
|
|
21
|
+
let displayName_2: string;
|
|
22
|
+
export { displayName_2 as displayName };
|
|
23
|
+
}
|
|
24
|
+
export function ToggleFullScreenButton({ table, tooltipProps, ...props }: {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
table: any;
|
|
27
|
+
tooltipProps: any;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
|
+
export namespace ToggleFullScreenButton {
|
|
30
|
+
let displayName_3: string;
|
|
31
|
+
export { displayName_3 as displayName };
|
|
32
|
+
}
|
|
33
|
+
export function ShowHideColumnsButton({ table, tooltipProps, iconProps, ...props }: {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
table: any;
|
|
36
|
+
tooltipProps: any;
|
|
37
|
+
iconProps: any;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
|
+
export namespace ShowHideColumnsButton {
|
|
40
|
+
let displayName_4: string;
|
|
41
|
+
export { displayName_4 as displayName };
|
|
42
|
+
}
|
package/package.json
CHANGED