fastapi-rtk 1.0.45 → 1.0.46
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/index3.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index4.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index5.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/index3.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index4.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index5.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/compile/codegen/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/compile/validate/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/discriminator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.18.0/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/compile/codegen/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/compile/validate/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/discriminator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.18.0/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.mjs +2 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/MRT_TablePaper.cjs +3 -3
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/head/MRT_TableHead.cjs +78 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/head/MRT_TableHead.module.css.cjs +16 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/table/MRT_Table.cjs +2 -1
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.cjs +74 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.module.css.cjs +12 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.cjs → toolbar/MRT_TopToolbar.cjs} +3 -3
- package/dist/core/esm/Tables/NextGenDataGrid/patch/MRT_TablePaper.mjs +2 -2
- package/dist/core/esm/Tables/NextGenDataGrid/patch/head/MRT_TableHead.mjs +78 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/head/MRT_TableHead.module.css.mjs +16 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/table/MRT_Table.mjs +2 -1
- package/dist/core/esm/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.mjs +74 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.module.css.mjs +12 -0
- package/dist/core/esm/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.mjs → toolbar/MRT_TopToolbar.mjs} +3 -3
- package/dist/core/lib/Tables/NextGenDataGrid/patch/head/MRT_TableHead.d.ts +5 -0
- package/dist/core/lib/Tables/NextGenDataGrid/patch/toolbar/MRT_BottomToolbar.d.ts +4 -0
- package/dist/core/styles.css +118 -40
- package/package.json +1 -1
- /package/dist/core/cjs/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.module.css.cjs → toolbar/MRT_TopToolbar.module.css.cjs} +0 -0
- /package/dist/core/cjs/Tables/NextGenDataGrid/patch/{common.styles.module.css.cjs → toolbar/common.styles.module.css.cjs} +0 -0
- /package/dist/core/esm/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.module.css.mjs → toolbar/MRT_TopToolbar.module.css.mjs} +0 -0
- /package/dist/core/esm/Tables/NextGenDataGrid/patch/{common.styles.module.css.mjs → toolbar/common.styles.module.css.mjs} +0 -0
- /package/dist/core/lib/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.d.ts → toolbar/MRT_TopToolbar.d.ts} +0 -0
|
@@ -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/index5.cjs");
|
|
4
4
|
const code = require("./code.cjs");
|
|
5
5
|
const scope = require("./scope.cjs");
|
|
6
6
|
var hasRequiredCodegen;
|
|
@@ -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/index4.cjs");
|
|
4
4
|
const boolSchema = require("./boolSchema.cjs");
|
|
5
5
|
const dataType = require("./dataType.cjs");
|
|
6
6
|
const applicability = require("./applicability.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/index3.cjs");
|
|
4
4
|
const index$1 = require("../../compile/codegen/index.cjs");
|
|
5
5
|
const types = require("./types.cjs");
|
|
6
6
|
const index$2 = require("../../compile/index.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/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");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as codegen } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as codegen } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index5.mjs";
|
|
2
2
|
import { __require as requireCode } from "./code.mjs";
|
|
3
3
|
import { __require as requireScope } from "./scope.mjs";
|
|
4
4
|
var hasRequiredCodegen;
|
|
@@ -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 validate } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as validate } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index4.mjs";
|
|
2
2
|
import { __require as requireBoolSchema } from "./boolSchema.mjs";
|
|
3
3
|
import { __require as requireDataType } from "./dataType.mjs";
|
|
4
4
|
import { __require as requireApplicability } from "./applicability.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 discriminator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/
|
|
1
|
+
import { __exports as discriminator } from "../../../../../../../.bundled/jsonforms/esm/_virtual/index3.mjs";
|
|
2
2
|
import { __require as requireCodegen } from "../../compile/codegen/index.mjs";
|
|
3
3
|
import { __require as requireTypes } from "./types.mjs";
|
|
4
4
|
import { __require as requireCompile } from "../../compile/index.mjs";
|
|
@@ -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,11 +1,11 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { clsx } from "../../../clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
3
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, Menu, Transition, Group, Pagination, Progress, Modal, Stack, Button,
|
|
4
|
+
import { useDirection, TableTd, TableTr, Collapse, Skeleton, Select, MultiSelect, TextInput, CopyButton, Tooltip, UnstyledButton, Highlight, Text, Box, ActionIcon, Switch, Radio, Checkbox, Flex, Menu, Transition, 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.4_react@19.2.4/@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.4_react@19.2.4/@tanstack/react-virtual/dist/esm/index.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { useDebouncedValue, useHover, useMediaQuery } from "@mantine/hooks";
|
|
9
9
|
import { DateInput } from "@mantine/dates";
|
|
10
10
|
import { createRow as createRow$1, getSortedRowModel, getPaginationRowModel, getGroupedRowModel, getFilteredRowModel, getFacetedUniqueValues, getFacetedRowModel, getFacetedMinMaxValues, getExpandedRowModel, getCoreRowModel, aggregationFns, filterFns, sortingFns } from "../../../@tanstack_table-core@8.20.5/@tanstack/table-core/build/lib/index.mjs";
|
|
11
11
|
import { defaultRangeExtractor } from "../../../@tanstack_virtual-core@3.11.2/@tanstack/virtual-core/dist/esm/index.mjs";
|
|
@@ -4,10 +4,10 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
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._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.cjs");
|
|
8
7
|
const MRT_TableContainer = require("./MRT_TableContainer.cjs");
|
|
9
8
|
const MRT_TablePaper_module = require("./MRT_TablePaper.module.css.cjs");
|
|
10
|
-
const
|
|
9
|
+
const MRT_BottomToolbar = require("./toolbar/MRT_BottomToolbar.cjs");
|
|
10
|
+
const MRT_TopToolbar = require("./toolbar/MRT_TopToolbar.cjs");
|
|
11
11
|
const MRT_TablePaper = ({ table, ...rest }) => {
|
|
12
12
|
const {
|
|
13
13
|
getState,
|
|
@@ -59,7 +59,7 @@ const MRT_TablePaper = ({ table, ...rest }) => {
|
|
|
59
59
|
children: [
|
|
60
60
|
enableTopToolbar && (utils.parseFromValuesOrFunc(renderTopToolbar, { table }) ?? /* @__PURE__ */ jsxRuntime.jsx(MRT_TopToolbar.MRT_TopToolbar, { table })),
|
|
61
61
|
/* @__PURE__ */ jsxRuntime.jsx(MRT_TableContainer.MRT_TableContainer, { table }),
|
|
62
|
-
enableBottomToolbar && (utils.parseFromValuesOrFunc(renderBottomToolbar, { table }) ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
62
|
+
enableBottomToolbar && (utils.parseFromValuesOrFunc(renderBottomToolbar, { table }) ?? /* @__PURE__ */ jsxRuntime.jsx(MRT_BottomToolbar.MRT_BottomToolbar, { table }))
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const clsx = require("../../../../../../.external/cjs/clsx@2.1.1/clsx/dist/clsx.cjs");
|
|
5
|
+
const MRT_TableHead_module = require("./MRT_TableHead.module.css.cjs");
|
|
6
|
+
const utils = require("fastapi-rtk/utils");
|
|
7
|
+
const core = require("@mantine/core");
|
|
8
|
+
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.cjs");
|
|
9
|
+
const React = require("react");
|
|
10
|
+
const zustand = require("../../components/OptimizedMRT_RowSelectColumn/zustand.cjs");
|
|
11
|
+
const MRT_ToolbarAlertBanner = require("../toolbar/MRT_ToolbarAlertBanner.cjs");
|
|
12
|
+
const MRT_TableHead = ({ columnVirtualizer, table, ...rest }) => {
|
|
13
|
+
const {
|
|
14
|
+
getHeaderGroups,
|
|
15
|
+
getSelectedRowModel,
|
|
16
|
+
getState,
|
|
17
|
+
options: { enableStickyHeader, layoutMode, mantineTableHeadProps, positionToolbarAlertBanner },
|
|
18
|
+
refs: { tableHeadRef }
|
|
19
|
+
} = table;
|
|
20
|
+
const { isFullScreen, showAlertBanner } = getState();
|
|
21
|
+
const tableHeadProps = {
|
|
22
|
+
...utils.parseFromValuesOrFunc(mantineTableHeadProps, {
|
|
23
|
+
table
|
|
24
|
+
}),
|
|
25
|
+
...rest
|
|
26
|
+
};
|
|
27
|
+
const stickyHeader = enableStickyHeader || isFullScreen;
|
|
28
|
+
const {
|
|
29
|
+
getPrePaginationRowModel,
|
|
30
|
+
options: { manualPagination, rowCount }
|
|
31
|
+
} = table;
|
|
32
|
+
const { rowSelection } = getState();
|
|
33
|
+
const totalRowCount = rowCount ?? getPrePaginationRowModel().flatRows.length;
|
|
34
|
+
const optimizations = table.refs.optimizations.current;
|
|
35
|
+
const store = table.refs.selectionStoreRef.current;
|
|
36
|
+
const optimizedRowSelection = zustand.useSelectionStore(store, (state) => state.rowSelection);
|
|
37
|
+
const selectedRowCount = React.useMemo(
|
|
38
|
+
() => manualPagination ? Object.values((optimizations == null ? void 0 : optimizations.selection) ? optimizedRowSelection : rowSelection).filter(Boolean).length : getSelectedRowModel().rows.length,
|
|
39
|
+
[optimizedRowSelection, rowSelection, totalRowCount, manualPagination]
|
|
40
|
+
);
|
|
41
|
+
const RTKShowAlertBanner = showAlertBanner || selectedRowCount;
|
|
42
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43
|
+
core.TableThead,
|
|
44
|
+
{
|
|
45
|
+
...tableHeadProps,
|
|
46
|
+
className: clsx.clsx(
|
|
47
|
+
MRT_TableHead_module.default.root,
|
|
48
|
+
(layoutMode == null ? void 0 : layoutMode.startsWith("grid")) ? MRT_TableHead_module.default["root-grid"] : MRT_TableHead_module.default["root-table-row-group"],
|
|
49
|
+
stickyHeader && MRT_TableHead_module.default["root-sticky"],
|
|
50
|
+
tableHeadProps == null ? void 0 : tableHeadProps.className
|
|
51
|
+
),
|
|
52
|
+
pos: stickyHeader && (layoutMode == null ? void 0 : layoutMode.startsWith("grid")) ? "sticky" : "relative",
|
|
53
|
+
ref: (ref) => {
|
|
54
|
+
tableHeadRef.current = ref;
|
|
55
|
+
if (tableHeadProps == null ? void 0 : tableHeadProps.ref) {
|
|
56
|
+
tableHeadProps.ref.current = ref;
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
children: positionToolbarAlertBanner === "head-overlay" && RTKShowAlertBanner ? /* @__PURE__ */ jsxRuntime.jsx(core.TableTr, { className: clsx.clsx(MRT_TableHead_module.default["banner-tr"], (layoutMode == null ? void 0 : layoutMode.startsWith("grid")) && MRT_TableHead_module.default.grid), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
60
|
+
core.TableTh,
|
|
61
|
+
{
|
|
62
|
+
className: clsx.clsx(MRT_TableHead_module.default["banner-th"], (layoutMode == null ? void 0 : layoutMode.startsWith("grid")) && MRT_TableHead_module.default.grid),
|
|
63
|
+
colSpan: table.getVisibleLeafColumns().length,
|
|
64
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(MRT_ToolbarAlertBanner.MRT_ToolbarAlertBanner, { table })
|
|
65
|
+
}
|
|
66
|
+
) }) : getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
index_esm.MRT_TableHeadRow,
|
|
68
|
+
{
|
|
69
|
+
columnVirtualizer,
|
|
70
|
+
headerGroup,
|
|
71
|
+
table
|
|
72
|
+
},
|
|
73
|
+
headerGroup.id
|
|
74
|
+
))
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
exports.MRT_TableHead = MRT_TableHead;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "_root_1b9w4_1";
|
|
4
|
+
const grid = "_grid_1b9w4_30";
|
|
5
|
+
const classes = {
|
|
6
|
+
root,
|
|
7
|
+
"root-grid": "_root-grid_1b9w4_7",
|
|
8
|
+
"root-table-row-group": "_root-table-row-group_1b9w4_11",
|
|
9
|
+
"root-sticky": "_root-sticky_1b9w4_15",
|
|
10
|
+
"banner-tr": "_banner-tr_1b9w4_21",
|
|
11
|
+
"banner-th": "_banner-th_1b9w4_25",
|
|
12
|
+
grid
|
|
13
|
+
};
|
|
14
|
+
exports.default = classes;
|
|
15
|
+
exports.grid = grid;
|
|
16
|
+
exports.root = root;
|
|
@@ -8,6 +8,7 @@ const utils = require("fastapi-rtk/utils");
|
|
|
8
8
|
const core = require("@mantine/core");
|
|
9
9
|
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.cjs");
|
|
10
10
|
const MRT_TableBody = require("../body/MRT_TableBody.cjs");
|
|
11
|
+
const MRT_TableHead = require("../head/MRT_TableHead.cjs");
|
|
11
12
|
const MRT_Table = ({ table, ...rest }) => {
|
|
12
13
|
const {
|
|
13
14
|
getFlatHeaders,
|
|
@@ -57,7 +58,7 @@ const MRT_Table = ({ table, ...rest }) => {
|
|
|
57
58
|
...tableProps.__vars
|
|
58
59
|
},
|
|
59
60
|
children: [
|
|
60
|
-
enableTableHead && /* @__PURE__ */ jsxRuntime.jsx(
|
|
61
|
+
enableTableHead && /* @__PURE__ */ jsxRuntime.jsx(MRT_TableHead.MRT_TableHead, { ...commonTableGroupProps }),
|
|
61
62
|
memoMode === "table-body" || columnSizingInfo.isResizingColumn ? /* @__PURE__ */ jsxRuntime.jsx(MRT_TableBody.Memo_MRT_TableBody, { ...commonTableGroupProps, tableProps }) : /* @__PURE__ */ jsxRuntime.jsx(MRT_TableBody.MRT_TableBody, { ...commonTableGroupProps, tableProps }),
|
|
62
63
|
enableTableFooter && /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_TableFooter, { ...commonTableGroupProps })
|
|
63
64
|
]
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const clsx = require("../../../../../../.external/cjs/clsx@2.1.1/clsx/dist/clsx.cjs");
|
|
5
|
+
const common_styles_module = require("./common.styles.module.css.cjs");
|
|
6
|
+
const MRT_BottomToolbar_module = require("./MRT_BottomToolbar.module.css.cjs");
|
|
7
|
+
const utils = require("fastapi-rtk/utils");
|
|
8
|
+
const core = require("@mantine/core");
|
|
9
|
+
const hooks = require("@mantine/hooks");
|
|
10
|
+
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.cjs");
|
|
11
|
+
const MRT_ToolbarAlertBanner = require("./MRT_ToolbarAlertBanner.cjs");
|
|
12
|
+
const MRT_BottomToolbar = ({ table, ...rest }) => {
|
|
13
|
+
const {
|
|
14
|
+
getState,
|
|
15
|
+
options: {
|
|
16
|
+
enablePagination,
|
|
17
|
+
mantineBottomToolbarProps,
|
|
18
|
+
positionPagination,
|
|
19
|
+
positionToolbarAlertBanner,
|
|
20
|
+
positionToolbarDropZone,
|
|
21
|
+
renderBottomToolbarCustomActions
|
|
22
|
+
},
|
|
23
|
+
refs: { bottomToolbarRef }
|
|
24
|
+
} = table;
|
|
25
|
+
const { isFullScreen } = getState();
|
|
26
|
+
const isMobile = hooks.useMediaQuery("(max-width: 720px)");
|
|
27
|
+
const toolbarProps = {
|
|
28
|
+
...utils.parseFromValuesOrFunc(mantineBottomToolbarProps, {
|
|
29
|
+
table
|
|
30
|
+
}),
|
|
31
|
+
...rest
|
|
32
|
+
};
|
|
33
|
+
const stackAlertBanner = isMobile || !!renderBottomToolbarCustomActions;
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
35
|
+
core.Box,
|
|
36
|
+
{
|
|
37
|
+
...toolbarProps,
|
|
38
|
+
className: clsx.clsx(
|
|
39
|
+
"mrt-bottom-toolbar",
|
|
40
|
+
MRT_BottomToolbar_module.default.root,
|
|
41
|
+
common_styles_module["common-toolbar-styles"],
|
|
42
|
+
isFullScreen && MRT_BottomToolbar_module.default["root-fullscreen"],
|
|
43
|
+
toolbarProps == null ? void 0 : toolbarProps.className
|
|
44
|
+
),
|
|
45
|
+
ref: (node) => {
|
|
46
|
+
if (node) {
|
|
47
|
+
bottomToolbarRef.current = node;
|
|
48
|
+
if (toolbarProps == null ? void 0 : toolbarProps.ref) {
|
|
49
|
+
toolbarProps.ref.current = node;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_ProgressBar, { isTopToolbar: false, table }),
|
|
55
|
+
positionToolbarAlertBanner === "bottom" && /* @__PURE__ */ jsxRuntime.jsx(MRT_ToolbarAlertBanner.MRT_ToolbarAlertBanner, { stackAlertBanner, table }),
|
|
56
|
+
["both", "bottom"].includes(positionToolbarDropZone ?? "") && /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_ToolbarDropZone, { table }),
|
|
57
|
+
/* @__PURE__ */ jsxRuntime.jsxs(core.Box, { className: MRT_BottomToolbar_module.default["custom-toolbar-container"], children: [
|
|
58
|
+
renderBottomToolbarCustomActions ? renderBottomToolbarCustomActions({ table }) : /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
59
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
60
|
+
core.Box,
|
|
61
|
+
{
|
|
62
|
+
className: clsx.clsx(
|
|
63
|
+
MRT_BottomToolbar_module.default["paginator-container"],
|
|
64
|
+
stackAlertBanner && MRT_BottomToolbar_module.default["paginator-container-alert-banner"]
|
|
65
|
+
),
|
|
66
|
+
children: enablePagination && ["both", "bottom"].includes(positionPagination ?? "") && /* @__PURE__ */ jsxRuntime.jsx(index_esm.MRT_TablePagination, { position: "bottom", table })
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] })
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
exports.MRT_BottomToolbar = MRT_BottomToolbar;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "_root_1p9h3_1";
|
|
4
|
+
const classes = {
|
|
5
|
+
root,
|
|
6
|
+
"root-fullscreen": "_root-fullscreen_1p9h3_16",
|
|
7
|
+
"custom-toolbar-container": "_custom-toolbar-container_1p9h3_21",
|
|
8
|
+
"paginator-container": "_paginator-container_1p9h3_30",
|
|
9
|
+
"paginator-container-alert-banner": "_paginator-container-alert-banner_1p9h3_38"
|
|
10
|
+
};
|
|
11
|
+
exports.default = classes;
|
|
12
|
+
exports.root = root;
|
package/dist/core/cjs/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.cjs → toolbar/MRT_TopToolbar.cjs}
RENAMED
|
@@ -4,11 +4,11 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const utils = require("fastapi-rtk/utils");
|
|
5
5
|
const core = require("@mantine/core");
|
|
6
6
|
const hooks = require("@mantine/hooks");
|
|
7
|
-
const clsx = require("
|
|
8
|
-
const index_esm = require("
|
|
7
|
+
const clsx = require("../../../../../../.external/cjs/clsx@2.1.1/clsx/dist/clsx.cjs");
|
|
8
|
+
const index_esm = require("../../../../../../.external/cjs/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.cjs");
|
|
9
9
|
const common_styles_module = require("./common.styles.module.css.cjs");
|
|
10
|
+
const MRT_ToolbarAlertBanner = require("./MRT_ToolbarAlertBanner.cjs");
|
|
10
11
|
const MRT_TopToolbar_module = require("./MRT_TopToolbar.module.css.cjs");
|
|
11
|
-
const MRT_ToolbarAlertBanner = require("./toolbar/MRT_ToolbarAlertBanner.cjs");
|
|
12
12
|
const MRT_TopToolbar = ({ table, ...rest }) => {
|
|
13
13
|
const {
|
|
14
14
|
getState,
|
|
@@ -2,10 +2,10 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
3
3
|
import { Paper } from "@mantine/core";
|
|
4
4
|
import { clsx } from "../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
5
|
-
import { MRT_BottomToolbar } from "../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.mjs";
|
|
6
5
|
import { MRT_TableContainer } from "./MRT_TableContainer.mjs";
|
|
7
6
|
import classes from "./MRT_TablePaper.module.css.mjs";
|
|
8
|
-
import {
|
|
7
|
+
import { MRT_BottomToolbar } from "./toolbar/MRT_BottomToolbar.mjs";
|
|
8
|
+
import { MRT_TopToolbar } from "./toolbar/MRT_TopToolbar.mjs";
|
|
9
9
|
const MRT_TablePaper = ({ table, ...rest }) => {
|
|
10
10
|
const {
|
|
11
11
|
getState,
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from "../../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
3
|
+
import classes from "./MRT_TableHead.module.css.mjs";
|
|
4
|
+
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
5
|
+
import { TableThead, TableTr, TableTh } from "@mantine/core";
|
|
6
|
+
import { MRT_TableHeadRow } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.mjs";
|
|
7
|
+
import { useMemo } from "react";
|
|
8
|
+
import { useSelectionStore } from "../../components/OptimizedMRT_RowSelectColumn/zustand.mjs";
|
|
9
|
+
import { MRT_ToolbarAlertBanner } from "../toolbar/MRT_ToolbarAlertBanner.mjs";
|
|
10
|
+
const MRT_TableHead = ({ columnVirtualizer, table, ...rest }) => {
|
|
11
|
+
const {
|
|
12
|
+
getHeaderGroups,
|
|
13
|
+
getSelectedRowModel,
|
|
14
|
+
getState,
|
|
15
|
+
options: { enableStickyHeader, layoutMode, mantineTableHeadProps, positionToolbarAlertBanner },
|
|
16
|
+
refs: { tableHeadRef }
|
|
17
|
+
} = table;
|
|
18
|
+
const { isFullScreen, showAlertBanner } = getState();
|
|
19
|
+
const tableHeadProps = {
|
|
20
|
+
...parseFromValuesOrFunc(mantineTableHeadProps, {
|
|
21
|
+
table
|
|
22
|
+
}),
|
|
23
|
+
...rest
|
|
24
|
+
};
|
|
25
|
+
const stickyHeader = enableStickyHeader || isFullScreen;
|
|
26
|
+
const {
|
|
27
|
+
getPrePaginationRowModel,
|
|
28
|
+
options: { manualPagination, rowCount }
|
|
29
|
+
} = table;
|
|
30
|
+
const { rowSelection } = getState();
|
|
31
|
+
const totalRowCount = rowCount ?? getPrePaginationRowModel().flatRows.length;
|
|
32
|
+
const optimizations = table.refs.optimizations.current;
|
|
33
|
+
const store = table.refs.selectionStoreRef.current;
|
|
34
|
+
const optimizedRowSelection = useSelectionStore(store, (state) => state.rowSelection);
|
|
35
|
+
const selectedRowCount = useMemo(
|
|
36
|
+
() => manualPagination ? Object.values((optimizations == null ? void 0 : optimizations.selection) ? optimizedRowSelection : rowSelection).filter(Boolean).length : getSelectedRowModel().rows.length,
|
|
37
|
+
[optimizedRowSelection, rowSelection, totalRowCount, manualPagination]
|
|
38
|
+
);
|
|
39
|
+
const RTKShowAlertBanner = showAlertBanner || selectedRowCount;
|
|
40
|
+
return /* @__PURE__ */ jsx(
|
|
41
|
+
TableThead,
|
|
42
|
+
{
|
|
43
|
+
...tableHeadProps,
|
|
44
|
+
className: clsx(
|
|
45
|
+
classes.root,
|
|
46
|
+
(layoutMode == null ? void 0 : layoutMode.startsWith("grid")) ? classes["root-grid"] : classes["root-table-row-group"],
|
|
47
|
+
stickyHeader && classes["root-sticky"],
|
|
48
|
+
tableHeadProps == null ? void 0 : tableHeadProps.className
|
|
49
|
+
),
|
|
50
|
+
pos: stickyHeader && (layoutMode == null ? void 0 : layoutMode.startsWith("grid")) ? "sticky" : "relative",
|
|
51
|
+
ref: (ref) => {
|
|
52
|
+
tableHeadRef.current = ref;
|
|
53
|
+
if (tableHeadProps == null ? void 0 : tableHeadProps.ref) {
|
|
54
|
+
tableHeadProps.ref.current = ref;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
children: positionToolbarAlertBanner === "head-overlay" && RTKShowAlertBanner ? /* @__PURE__ */ jsx(TableTr, { className: clsx(classes["banner-tr"], (layoutMode == null ? void 0 : layoutMode.startsWith("grid")) && classes.grid), children: /* @__PURE__ */ jsx(
|
|
58
|
+
TableTh,
|
|
59
|
+
{
|
|
60
|
+
className: clsx(classes["banner-th"], (layoutMode == null ? void 0 : layoutMode.startsWith("grid")) && classes.grid),
|
|
61
|
+
colSpan: table.getVisibleLeafColumns().length,
|
|
62
|
+
children: /* @__PURE__ */ jsx(MRT_ToolbarAlertBanner, { table })
|
|
63
|
+
}
|
|
64
|
+
) }) : getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(
|
|
65
|
+
MRT_TableHeadRow,
|
|
66
|
+
{
|
|
67
|
+
columnVirtualizer,
|
|
68
|
+
headerGroup,
|
|
69
|
+
table
|
|
70
|
+
},
|
|
71
|
+
headerGroup.id
|
|
72
|
+
))
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
MRT_TableHead
|
|
78
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const root = "_root_1b9w4_1";
|
|
2
|
+
const grid = "_grid_1b9w4_30";
|
|
3
|
+
const classes = {
|
|
4
|
+
root,
|
|
5
|
+
"root-grid": "_root-grid_1b9w4_7",
|
|
6
|
+
"root-table-row-group": "_root-table-row-group_1b9w4_11",
|
|
7
|
+
"root-sticky": "_root-sticky_1b9w4_15",
|
|
8
|
+
"banner-tr": "_banner-tr_1b9w4_21",
|
|
9
|
+
"banner-th": "_banner-th_1b9w4_25",
|
|
10
|
+
grid
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
classes as default,
|
|
14
|
+
grid,
|
|
15
|
+
root
|
|
16
|
+
};
|
|
@@ -4,8 +4,9 @@ import classes from "./MRT_Table.module.css.mjs";
|
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
6
6
|
import { useMantineColorScheme, Table, lighten, darken } from "@mantine/core";
|
|
7
|
-
import { parseCSSVarId, useMRT_ColumnVirtualizer,
|
|
7
|
+
import { parseCSSVarId, useMRT_ColumnVirtualizer, MRT_TableFooter } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.mjs";
|
|
8
8
|
import { Memo_MRT_TableBody, MRT_TableBody } from "../body/MRT_TableBody.mjs";
|
|
9
|
+
import { MRT_TableHead } from "../head/MRT_TableHead.mjs";
|
|
9
10
|
const MRT_Table = ({ table, ...rest }) => {
|
|
10
11
|
const {
|
|
11
12
|
getFlatHeaders,
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from "../../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
3
|
+
import commonClasses from "./common.styles.module.css.mjs";
|
|
4
|
+
import classes from "./MRT_BottomToolbar.module.css.mjs";
|
|
5
|
+
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
6
|
+
import { Box } from "@mantine/core";
|
|
7
|
+
import { useMediaQuery } from "@mantine/hooks";
|
|
8
|
+
import { MRT_ProgressBar, MRT_ToolbarDropZone, MRT_TablePagination } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.mjs";
|
|
9
|
+
import { MRT_ToolbarAlertBanner } from "./MRT_ToolbarAlertBanner.mjs";
|
|
10
|
+
const MRT_BottomToolbar = ({ table, ...rest }) => {
|
|
11
|
+
const {
|
|
12
|
+
getState,
|
|
13
|
+
options: {
|
|
14
|
+
enablePagination,
|
|
15
|
+
mantineBottomToolbarProps,
|
|
16
|
+
positionPagination,
|
|
17
|
+
positionToolbarAlertBanner,
|
|
18
|
+
positionToolbarDropZone,
|
|
19
|
+
renderBottomToolbarCustomActions
|
|
20
|
+
},
|
|
21
|
+
refs: { bottomToolbarRef }
|
|
22
|
+
} = table;
|
|
23
|
+
const { isFullScreen } = getState();
|
|
24
|
+
const isMobile = useMediaQuery("(max-width: 720px)");
|
|
25
|
+
const toolbarProps = {
|
|
26
|
+
...parseFromValuesOrFunc(mantineBottomToolbarProps, {
|
|
27
|
+
table
|
|
28
|
+
}),
|
|
29
|
+
...rest
|
|
30
|
+
};
|
|
31
|
+
const stackAlertBanner = isMobile || !!renderBottomToolbarCustomActions;
|
|
32
|
+
return /* @__PURE__ */ jsxs(
|
|
33
|
+
Box,
|
|
34
|
+
{
|
|
35
|
+
...toolbarProps,
|
|
36
|
+
className: clsx(
|
|
37
|
+
"mrt-bottom-toolbar",
|
|
38
|
+
classes.root,
|
|
39
|
+
commonClasses["common-toolbar-styles"],
|
|
40
|
+
isFullScreen && classes["root-fullscreen"],
|
|
41
|
+
toolbarProps == null ? void 0 : toolbarProps.className
|
|
42
|
+
),
|
|
43
|
+
ref: (node) => {
|
|
44
|
+
if (node) {
|
|
45
|
+
bottomToolbarRef.current = node;
|
|
46
|
+
if (toolbarProps == null ? void 0 : toolbarProps.ref) {
|
|
47
|
+
toolbarProps.ref.current = node;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ jsx(MRT_ProgressBar, { isTopToolbar: false, table }),
|
|
53
|
+
positionToolbarAlertBanner === "bottom" && /* @__PURE__ */ jsx(MRT_ToolbarAlertBanner, { stackAlertBanner, table }),
|
|
54
|
+
["both", "bottom"].includes(positionToolbarDropZone ?? "") && /* @__PURE__ */ jsx(MRT_ToolbarDropZone, { table }),
|
|
55
|
+
/* @__PURE__ */ jsxs(Box, { className: classes["custom-toolbar-container"], children: [
|
|
56
|
+
renderBottomToolbarCustomActions ? renderBottomToolbarCustomActions({ table }) : /* @__PURE__ */ jsx("span", {}),
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
Box,
|
|
59
|
+
{
|
|
60
|
+
className: clsx(
|
|
61
|
+
classes["paginator-container"],
|
|
62
|
+
stackAlertBanner && classes["paginator-container-alert-banner"]
|
|
63
|
+
),
|
|
64
|
+
children: enablePagination && ["both", "bottom"].includes(positionPagination ?? "") && /* @__PURE__ */ jsx(MRT_TablePagination, { position: "bottom", table })
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
MRT_BottomToolbar
|
|
74
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const root = "_root_1p9h3_1";
|
|
2
|
+
const classes = {
|
|
3
|
+
root,
|
|
4
|
+
"root-fullscreen": "_root-fullscreen_1p9h3_16",
|
|
5
|
+
"custom-toolbar-container": "_custom-toolbar-container_1p9h3_21",
|
|
6
|
+
"paginator-container": "_paginator-container_1p9h3_30",
|
|
7
|
+
"paginator-container-alert-banner": "_paginator-container-alert-banner_1p9h3_38"
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
classes as default,
|
|
11
|
+
root
|
|
12
|
+
};
|
package/dist/core/esm/Tables/NextGenDataGrid/patch/{MRT_TopToolbar.mjs → toolbar/MRT_TopToolbar.mjs}
RENAMED
|
@@ -2,11 +2,11 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { parseFromValuesOrFunc } from "fastapi-rtk/utils";
|
|
3
3
|
import { Box, Group, Flex, Center } from "@mantine/core";
|
|
4
4
|
import { useMediaQuery } from "@mantine/hooks";
|
|
5
|
-
import { clsx } from "
|
|
6
|
-
import { MRT_ToolbarDropZone, MRT_GlobalFilterTextInput, MRT_ToolbarInternalButtons, MRT_TablePagination, MRT_ProgressBar } from "
|
|
5
|
+
import { clsx } from "../../../../../../.external/esm/clsx@2.1.1/clsx/dist/clsx.mjs";
|
|
6
|
+
import { MRT_ToolbarDropZone, MRT_GlobalFilterTextInput, MRT_ToolbarInternalButtons, MRT_TablePagination, MRT_ProgressBar } from "../../../../../../.external/esm/mantine-react-table@2.0.0-beta.9_@mantine_core@7.17.8_@mantine_dates@7.17.8_@mantine_hooks@7._7jqiyi5sshrifwwn7z7vmkfdl4/mantine-react-table/dist/index.esm.mjs";
|
|
7
7
|
import commonClasses from "./common.styles.module.css.mjs";
|
|
8
|
+
import { MRT_ToolbarAlertBanner } from "./MRT_ToolbarAlertBanner.mjs";
|
|
8
9
|
import classes from "./MRT_TopToolbar.module.css.mjs";
|
|
9
|
-
import { MRT_ToolbarAlertBanner } from "./toolbar/MRT_ToolbarAlertBanner.mjs";
|
|
10
10
|
const MRT_TopToolbar = ({ table, ...rest }) => {
|
|
11
11
|
const {
|
|
12
12
|
getState,
|
package/dist/core/styles.css
CHANGED
|
@@ -1762,6 +1762,78 @@
|
|
|
1762
1762
|
transform: translateY(calc(var(--mrt-virtual-row-start) * 1px));
|
|
1763
1763
|
will-change: transform;
|
|
1764
1764
|
}
|
|
1765
|
+
._root_1b9w4_1 {
|
|
1766
|
+
background-color: var(--mrt-base-background-color);
|
|
1767
|
+
opacity: 0.97;
|
|
1768
|
+
position: relative;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
._root-grid_1b9w4_7 {
|
|
1772
|
+
display: grid;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
._root-table-row-group_1b9w4_11 {
|
|
1776
|
+
display: table-row-group;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
._root-sticky_1b9w4_15 {
|
|
1780
|
+
position: sticky;
|
|
1781
|
+
top: 0;
|
|
1782
|
+
z-index: 3;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
._banner-tr_1b9w4_21 {
|
|
1786
|
+
display: table-row;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
._banner-th_1b9w4_25 {
|
|
1790
|
+
display: table-cell;
|
|
1791
|
+
padding: 0;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
._grid_1b9w4_30 {
|
|
1795
|
+
display: grid;
|
|
1796
|
+
}
|
|
1797
|
+
._alert_bw71q_1 {
|
|
1798
|
+
border-radius: 0;
|
|
1799
|
+
font-size: 1rem;
|
|
1800
|
+
left: 0;
|
|
1801
|
+
position: relative;
|
|
1802
|
+
padding: calc(0.5rem * var(--mantine-scale));
|
|
1803
|
+
right: 0;
|
|
1804
|
+
top: 0;
|
|
1805
|
+
width: 100%;
|
|
1806
|
+
z-index: 2;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
._alert-stacked_bw71q_13 {
|
|
1810
|
+
margin-bottom: 0;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
._alert-bottom_bw71q_17 {
|
|
1814
|
+
margin-bottom: -16px;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
._alert-badge_bw71q_21 {
|
|
1818
|
+
margin-left: 1ch;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
._toolbar-alert_bw71q_25 {
|
|
1822
|
+
gap: var(--mantine-spacing-sm);
|
|
1823
|
+
padding: 8px 16px;
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
._toolbar-alert_bw71q_25._head-overlay_bw71q_28 {
|
|
1827
|
+
padding: 2px;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
._toolbar-alert_bw71q_25._head-overlay_bw71q_28.xl {
|
|
1831
|
+
padding: 16px;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
._toolbar-alert_bw71q_25._head-overlay_bw71q_28.md {
|
|
1835
|
+
padding: 8px;
|
|
1836
|
+
}
|
|
1765
1837
|
:root {
|
|
1766
1838
|
/* default background color for everything */
|
|
1767
1839
|
--mrt-base-background-color: var(--mantine-color-body);
|
|
@@ -1843,67 +1915,73 @@
|
|
|
1843
1915
|
transition: all 150ms ease-in-out;
|
|
1844
1916
|
z-index: 3;
|
|
1845
1917
|
}
|
|
1846
|
-
.
|
|
1918
|
+
._root_1p9h3_1 {
|
|
1847
1919
|
background-color: var(--mrt-base-background-color);
|
|
1920
|
+
border-top: 1px solid
|
|
1921
|
+
var(--mantine-color-gray-3);
|
|
1922
|
+
}
|
|
1923
|
+
[data-mantine-color-scheme='dark'] ._root_1p9h3_1 {
|
|
1924
|
+
border-top: 1px solid
|
|
1925
|
+
var(--mantine-color-dark-4);
|
|
1926
|
+
}
|
|
1927
|
+
._root_1p9h3_1 {
|
|
1928
|
+
bottom: var(--mrt-bottom-toolbar-bottom);
|
|
1929
|
+
box-shadow: 0 1px 2px -1px color-mix(
|
|
1930
|
+
in srgb,
|
|
1931
|
+
var(--mantine-color-black) 10%,
|
|
1932
|
+
transparent
|
|
1933
|
+
) inset;
|
|
1934
|
+
left: 0;
|
|
1935
|
+
right: 0;
|
|
1848
1936
|
position: relative;
|
|
1849
1937
|
}
|
|
1850
1938
|
|
|
1851
|
-
._root-
|
|
1852
|
-
position:
|
|
1853
|
-
|
|
1939
|
+
._root-fullscreen_1p9h3_16 {
|
|
1940
|
+
position: fixed !important;
|
|
1941
|
+
bottom: 0;
|
|
1854
1942
|
}
|
|
1855
1943
|
|
|
1856
|
-
.
|
|
1857
|
-
align-items:
|
|
1944
|
+
._custom-toolbar-container_1p9h3_21 {
|
|
1945
|
+
align-items: center;
|
|
1858
1946
|
box-sizing: border-box;
|
|
1947
|
+
display: flex;
|
|
1859
1948
|
justify-content: space-between;
|
|
1860
1949
|
padding: calc(0.5rem * var(--mantine-scale));
|
|
1950
|
+
width: 100%;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
._paginator-container_1p9h3_30 {
|
|
1954
|
+
display: flex;
|
|
1955
|
+
justify-content: flex-end;
|
|
1861
1956
|
right: 0;
|
|
1862
1957
|
top: 0;
|
|
1863
|
-
width: 100%;
|
|
1864
1958
|
position: absolute;
|
|
1865
1959
|
}
|
|
1866
1960
|
|
|
1867
|
-
.
|
|
1961
|
+
._paginator-container-alert-banner_1p9h3_38 {
|
|
1868
1962
|
position: relative !important;
|
|
1869
1963
|
}
|
|
1870
|
-
.
|
|
1871
|
-
|
|
1872
|
-
font-size: 1rem;
|
|
1873
|
-
left: 0;
|
|
1964
|
+
._root_4odg9_1 {
|
|
1965
|
+
background-color: var(--mrt-base-background-color);
|
|
1874
1966
|
position: relative;
|
|
1875
|
-
padding: calc(0.5rem * var(--mantine-scale));
|
|
1876
|
-
right: 0;
|
|
1877
|
-
top: 0;
|
|
1878
|
-
width: 100%;
|
|
1879
|
-
z-index: 2;
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
._alert-stacked_bw71q_13 {
|
|
1883
|
-
margin-bottom: 0;
|
|
1884
1967
|
}
|
|
1885
1968
|
|
|
1886
|
-
.
|
|
1887
|
-
|
|
1969
|
+
._root-fullscreen_4odg9_6 {
|
|
1970
|
+
position: sticky !important;
|
|
1971
|
+
top: 0;
|
|
1888
1972
|
}
|
|
1889
1973
|
|
|
1890
|
-
.
|
|
1891
|
-
|
|
1974
|
+
._actions-container_4odg9_11 {
|
|
1975
|
+
align-items: flex-start;
|
|
1976
|
+
box-sizing: border-box;
|
|
1977
|
+
justify-content: space-between;
|
|
1978
|
+
padding: calc(0.5rem * var(--mantine-scale));
|
|
1979
|
+
right: 0;
|
|
1980
|
+
top: 0;
|
|
1981
|
+
width: 100%;
|
|
1982
|
+
position: absolute;
|
|
1892
1983
|
}
|
|
1893
1984
|
|
|
1894
|
-
.
|
|
1895
|
-
|
|
1896
|
-
padding: 8px 16px;
|
|
1985
|
+
._actions-container-stack-alert_4odg9_22 {
|
|
1986
|
+
position: relative !important;
|
|
1897
1987
|
}
|
|
1898
|
-
|
|
1899
|
-
._toolbar-alert_bw71q_25._head-overlay_bw71q_28 {
|
|
1900
|
-
padding: 2px;
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
|
-
._toolbar-alert_bw71q_25._head-overlay_bw71q_28.xl {
|
|
1904
|
-
padding: 16px;
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
._toolbar-alert_bw71q_25._head-overlay_bw71q_28.md {
|
|
1908
|
-
padding: 8px;
|
|
1909
|
-
}
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|