@compill/admin 1.0.82 → 1.0.84
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/index.cjs.js
CHANGED
@@ -1408,9 +1408,10 @@ function TableContainer(_a) {
|
|
1408
1408
|
initialPageSize,
|
1409
1409
|
initialVisibleColumns,
|
1410
1410
|
columns,
|
1411
|
+
filtersMethod = "reactRouter",
|
1411
1412
|
children
|
1412
1413
|
} = _a,
|
1413
|
-
props = __rest(_a, ["initialPageSize", "initialVisibleColumns", "columns", "children"]);
|
1414
|
+
props = __rest(_a, ["initialPageSize", "initialVisibleColumns", "columns", "filtersMethod", "children"]);
|
1414
1415
|
return jsxRuntime.jsx("div", Object.assign({
|
1415
1416
|
w: "full",
|
1416
1417
|
dflex: true,
|
@@ -1418,6 +1419,7 @@ function TableContainer(_a) {
|
|
1418
1419
|
}, props, {
|
1419
1420
|
children: jsxRuntime.jsx(table.TableContextProvider, {
|
1420
1421
|
initialPageSize: initialPageSize,
|
1422
|
+
filtersMethod: filtersMethod,
|
1421
1423
|
children: jsxRuntime.jsx(TableContainerContextProvider, {
|
1422
1424
|
columns: columns,
|
1423
1425
|
initialVisibleColumns: initialVisibleColumns,
|
@@ -2580,6 +2582,7 @@ function TableView(_a) {
|
|
2580
2582
|
children: jsxRuntime.jsx(TableContainer, {
|
2581
2583
|
columns: _screen.table.columns,
|
2582
2584
|
initialVisibleColumns: _screen.table.initialVisibleColumns,
|
2585
|
+
filtersMethod: _screen.table.filtersMethod,
|
2583
2586
|
children: jsxRuntime.jsx(TT, {
|
2584
2587
|
id: id,
|
2585
2588
|
title: title,
|
@@ -3158,7 +3161,8 @@ function Sidebar(_a) {
|
|
3158
3161
|
return jsxRuntime.jsxs("div", Object.assign({
|
3159
3162
|
dflex: true,
|
3160
3163
|
flexCol: true,
|
3161
|
-
w: "
|
3164
|
+
w: "full",
|
3165
|
+
md_w: "64",
|
3162
3166
|
minH: "screen",
|
3163
3167
|
p: "0",
|
3164
3168
|
textColor: darkMode ? "white" : "slate-800"
|
package/index.esm.js
CHANGED
@@ -1398,9 +1398,10 @@ function TableContainer(_a) {
|
|
1398
1398
|
initialPageSize,
|
1399
1399
|
initialVisibleColumns,
|
1400
1400
|
columns,
|
1401
|
+
filtersMethod = "reactRouter",
|
1401
1402
|
children
|
1402
1403
|
} = _a,
|
1403
|
-
props = __rest(_a, ["initialPageSize", "initialVisibleColumns", "columns", "children"]);
|
1404
|
+
props = __rest(_a, ["initialPageSize", "initialVisibleColumns", "columns", "filtersMethod", "children"]);
|
1404
1405
|
return jsx("div", Object.assign({
|
1405
1406
|
w: "full",
|
1406
1407
|
dflex: true,
|
@@ -1408,6 +1409,7 @@ function TableContainer(_a) {
|
|
1408
1409
|
}, props, {
|
1409
1410
|
children: jsx(TableContextProvider, {
|
1410
1411
|
initialPageSize: initialPageSize,
|
1412
|
+
filtersMethod: filtersMethod,
|
1411
1413
|
children: jsx(TableContainerContextProvider, {
|
1412
1414
|
columns: columns,
|
1413
1415
|
initialVisibleColumns: initialVisibleColumns,
|
@@ -2570,6 +2572,7 @@ function TableView(_a) {
|
|
2570
2572
|
children: jsx(TableContainer, {
|
2571
2573
|
columns: _screen.table.columns,
|
2572
2574
|
initialVisibleColumns: _screen.table.initialVisibleColumns,
|
2575
|
+
filtersMethod: _screen.table.filtersMethod,
|
2573
2576
|
children: jsx(TT, {
|
2574
2577
|
id: id,
|
2575
2578
|
title: title,
|
@@ -3148,7 +3151,8 @@ function Sidebar(_a) {
|
|
3148
3151
|
return jsxs("div", Object.assign({
|
3149
3152
|
dflex: true,
|
3150
3153
|
flexCol: true,
|
3151
|
-
w: "
|
3154
|
+
w: "full",
|
3155
|
+
md_w: "64",
|
3152
3156
|
minH: "screen",
|
3153
3157
|
p: "0",
|
3154
3158
|
textColor: darkMode ? "white" : "slate-800"
|
package/package.json
CHANGED
@@ -34,6 +34,7 @@ export type CustomDialog = {
|
|
34
34
|
};
|
35
35
|
export type TableViewEditView = CustomDialog | EditItemDialogConfig | QueryWrapperDialogConfig<any>;
|
36
36
|
export type TableViewTable = Omit<TableProps, "onRowClick" | "queryKey" | "queryFn"> & {
|
37
|
+
filtersMethod?: "internal" | "nextRouter" | "reactRouter";
|
37
38
|
initialVisibleColumns?: string[];
|
38
39
|
onRowClick?: {
|
39
40
|
type: "navigate" | "nextpush" | "link";
|
@@ -2,9 +2,10 @@
|
|
2
2
|
import { ColumnDef } from "@tanstack/react-table";
|
3
3
|
import { TileProps } from "@valerya/ui";
|
4
4
|
interface TableContainerProps extends TileProps {
|
5
|
+
filtersMethod?: "internal" | "nextRouter" | "reactRouter";
|
5
6
|
initialPageSize?: number;
|
6
7
|
columns?: ColumnDef<any>[];
|
7
8
|
initialVisibleColumns?: string[];
|
8
9
|
}
|
9
|
-
export declare function TableContainer({ initialPageSize, initialVisibleColumns, columns, children, ...props }: TableContainerProps): JSX.Element;
|
10
|
+
export declare function TableContainer({ initialPageSize, initialVisibleColumns, columns, filtersMethod, children, ...props }: TableContainerProps): JSX.Element;
|
10
11
|
export {};
|