asma-ui-table 1.0.127 → 1.0.129
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/asma-ui-table.es.js +5 -14379
- package/dist/src/components/Fetching.d.ts +1 -0
- package/dist/src/components/StyledTableIndex.d.ts +5 -6
- package/dist/src/components/TableBody.d.ts +4 -4
- package/dist/src/components/TableRow.d.ts +5 -5
- package/dist/src/components/TableRows.d.ts +4 -4
- package/dist/src/components/TableSkeleton.d.ts +2 -2
- package/dist/src/components/columns/action-column/actionColumn.d.ts +87 -88
- package/dist/src/components/columns/action-column/components/HeaderActionMenu.d.ts +3 -3
- package/dist/src/components/columns/action-column/components/RowActionMenu.d.ts +4 -5
- package/dist/src/components/columns/dndHandleColumn.d.ts +210 -211
- package/dist/src/components/columns/expandColumn.d.ts +2 -3
- package/dist/src/components/columns/helpers/useElementHeightPx.d.ts +2 -1
- package/dist/src/components/columns/helpers/useProxyHorizontalScrollSync.d.ts +5 -4
- package/dist/src/components/columns/selectColumn.d.ts +3 -4
- package/dist/src/components/columns/showTextColumn.d.ts +2 -3
- package/dist/src/components/table-footer/TableFooter.d.ts +4 -4
- package/dist/src/components/table-footer/TablePagination.d.ts +3 -3
- package/dist/src/components/table-header/TableHeader.d.ts +4 -4
- package/dist/src/components/table-header/TableHeaderCell.d.ts +4 -4
- package/dist/src/context/RootContext.d.ts +1 -2
- package/dist/src/custom-features/expand-rows/ExpandRowsFeature.d.ts +1 -2
- package/dist/src/custom-features/expand-rows/index.d.ts +2 -2
- package/dist/src/custom-features/expand-rows/types.d.ts +1 -2
- package/dist/src/custom-features/focus-rows/FocusRowsFeature.d.ts +1 -2
- package/dist/src/custom-features/focus-rows/index.d.ts +1 -1
- package/dist/src/custom-features/focus-rows/types.d.ts +1 -2
- package/dist/src/custom-features/order-columns/OrderColumnsFeature.d.ts +1 -2
- package/dist/src/custom-features/order-columns/index.d.ts +1 -1
- package/dist/src/custom-features/order-columns/types.d.ts +1 -2
- package/dist/src/custom-features/order-columns/usePersistColumnOrder.d.ts +1 -2
- package/dist/src/helpers/cn.d.ts +1 -2
- package/dist/src/helpers/getTableHeaderStyle.d.ts +1 -2
- package/dist/src/helpers/injectColumns.d.ts +1 -2
- package/dist/src/hooks/useStyledTable.d.ts +2 -3
- package/dist/src/index.d.ts +4 -4
- package/dist/src/shared-components/CheckIcon.d.ts +2 -3
- package/dist/src/shared-components/ChevronDownIcon.d.ts +2 -3
- package/dist/src/shared-components/ChevronLeftIcon.d.ts +2 -3
- package/dist/src/shared-components/ChevronRightIcon.d.ts +2 -3
- package/dist/src/shared-components/ChevronUpIcon.d.ts +2 -3
- package/dist/src/shared-components/CircleWarningOutlineIcon.d.ts +2 -3
- package/dist/src/shared-components/DotsHorizontalIcon.d.ts +2 -3
- package/dist/src/shared-components/DotsVerticalIcon.d.ts +2 -3
- package/dist/src/shared-components/DropDownIcon.d.ts +2 -3
- package/dist/src/shared-components/DropUpIcon.d.ts +2 -3
- package/dist/src/shared-components/FilterIcon.d.ts +2 -3
- package/dist/src/shared-components/LoadingIcon.d.ts +2 -3
- package/dist/src/shared-components/PinIcon.d.ts +2 -3
- package/dist/src/shared-components/StyledCheckbox.d.ts +5 -6
- package/dist/src/shared-components/StyledMenuItem.d.ts +2 -3
- package/dist/src/shared-components/button/StyledButton.d.ts +2 -3
- package/dist/src/shared-components/button/index.d.ts +1 -1
- package/dist/src/shared-components/menu-item/index.d.ts +2 -3
- package/dist/src/shared-components/tooltip/index.d.ts +2 -3
- package/dist/src/types.d.ts +7 -8
- package/dist/style.css +1 -1
- package/dist/tailwind.config.d.ts +22 -32
- package/dist/vite.config.d.ts +1 -1
- package/package.json +4 -2
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { StyledTableProps, TableState, ColumnSizingState } from '
|
|
2
|
-
|
|
1
|
+
import type { StyledTableProps, TableState, ColumnSizingState } from '../types';
|
|
3
2
|
type RowWithId = {
|
|
4
3
|
id: string | number;
|
|
5
4
|
};
|
|
6
5
|
export declare const StyledTable: <TData extends RowWithId, TCustomData = Record<string, unknown>>(props: StyledTableProps<TData, TCustomData> & {
|
|
7
|
-
getColumnSizing?: (column_sizing: ColumnSizingState) => void;
|
|
8
|
-
getTableState?: (tableState: TableState) => void;
|
|
9
|
-
setData?: (callback: (data: TData[]) => TData[]) => void;
|
|
10
|
-
}) =>
|
|
6
|
+
getColumnSizing?: ((column_sizing: ColumnSizingState) => void) | undefined;
|
|
7
|
+
getTableState?: ((tableState: TableState) => void) | undefined;
|
|
8
|
+
setData?: ((callback: (data: TData[]) => TData[]) => void) | undefined;
|
|
9
|
+
}) => JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type Table } from '@tanstack/react-table';
|
|
3
|
+
import type { StyledTableProps } from '../types';
|
|
4
4
|
export declare function TableBody<TData extends {
|
|
5
5
|
id: string | number;
|
|
6
6
|
}, TCustomData = Record<string, unknown>>({ table, styledTableProps }: {
|
|
7
7
|
table: Table<TData>;
|
|
8
8
|
styledTableProps: StyledTableProps<TData, TCustomData>;
|
|
9
|
-
}):
|
|
9
|
+
}): JSX.Element | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type Row } from '@tanstack/react-table';
|
|
3
|
+
import { type StyledTableProps } from '../types';
|
|
4
4
|
export declare function TableRow<TData extends {
|
|
5
5
|
id: string | number;
|
|
6
6
|
}, TCustomData = Record<string, unknown>>({ styledTableProps, row, index, }: {
|
|
7
7
|
styledTableProps: StyledTableProps<TData, TCustomData>;
|
|
8
8
|
row: Row<TData>;
|
|
9
9
|
index: number;
|
|
10
|
-
}):
|
|
11
|
-
export declare const Checkmark: () =>
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
export declare const Checkmark: () => JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type Table } from '@tanstack/react-table';
|
|
3
|
+
import type { StyledTableProps } from '../types';
|
|
4
4
|
export declare function TableRows<TData extends {
|
|
5
5
|
id: string | number;
|
|
6
6
|
}, TCustomData = Record<string, unknown>>({ styledTableProps, table }: {
|
|
7
7
|
styledTableProps: StyledTableProps<TData, TCustomData>;
|
|
8
8
|
table: Table<TData>;
|
|
9
|
-
}):
|
|
9
|
+
}): JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { CellContext, HeaderContext, Row } from '
|
|
2
|
-
import { ReactNode } from '
|
|
3
|
-
import { ColumnDef, IAction, ICustomAction, RowActionsState } from '
|
|
4
|
-
|
|
1
|
+
import type { CellContext, HeaderContext, Row } from '@tanstack/react-table';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import { type ColumnDef, type IAction, type ICustomAction, type RowActionsState } from 'src/types';
|
|
5
4
|
export declare function generateActionsColumn<TData>(options: {
|
|
6
5
|
headerPin: boolean;
|
|
7
6
|
actions?: (row: Row<TData>) => (IAction<TData> | ICustomAction<TData>)[];
|
|
@@ -15,27 +14,27 @@ export declare function generateActionsColumn<TData>(options: {
|
|
|
15
14
|
enableHiding: boolean;
|
|
16
15
|
enableSorting: boolean;
|
|
17
16
|
accessorFn: (row: TData) => TData;
|
|
18
|
-
header: (props: HeaderContext<TData, TData>) =>
|
|
19
|
-
cell: (cell: CellContext<TData, TData>) =>
|
|
17
|
+
header: (props: HeaderContext<TData, TData>) => JSX.Element | null;
|
|
18
|
+
cell: (cell: CellContext<TData, TData>) => JSX.Element | null;
|
|
20
19
|
size: number;
|
|
21
20
|
} | {
|
|
22
|
-
getUniqueValues?: import(
|
|
23
|
-
footer?: import(
|
|
24
|
-
cell: import(
|
|
25
|
-
meta?: import(
|
|
21
|
+
getUniqueValues?: import("@tanstack/react-table").AccessorFn<TData, unknown[]> | undefined;
|
|
22
|
+
footer?: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>> | undefined;
|
|
23
|
+
cell: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>>;
|
|
24
|
+
meta?: import("@tanstack/react-table").ColumnMeta<TData, unknown> | undefined;
|
|
26
25
|
enableHiding: boolean;
|
|
27
26
|
enablePinning?: boolean | undefined;
|
|
28
27
|
enableColumnFilter?: boolean | undefined;
|
|
29
|
-
filterFn?: import(
|
|
28
|
+
filterFn?: import("@tanstack/react-table").FilterFnOption<TData> | undefined;
|
|
30
29
|
enableGlobalFilter?: boolean | undefined;
|
|
31
30
|
enableMultiSort?: boolean | undefined;
|
|
32
31
|
enableSorting: boolean;
|
|
33
32
|
invertSorting?: boolean | undefined;
|
|
34
33
|
sortDescFirst?: boolean | undefined;
|
|
35
|
-
sortingFn?: import(
|
|
36
|
-
sortUndefined?: false |
|
|
37
|
-
aggregatedCell?: import(
|
|
38
|
-
aggregationFn?: import(
|
|
34
|
+
sortingFn?: import("@tanstack/react-table").SortingFnOption<TData> | undefined;
|
|
35
|
+
sortUndefined?: false | 1 | -1 | "first" | "last" | undefined;
|
|
36
|
+
aggregatedCell?: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>> | undefined;
|
|
37
|
+
aggregationFn?: import("@tanstack/react-table").AggregationFnOption<TData> | undefined;
|
|
39
38
|
enableGrouping?: boolean | undefined;
|
|
40
39
|
getGroupingValue?: ((row: TData) => any) | undefined;
|
|
41
40
|
enableResizing?: boolean | undefined;
|
|
@@ -47,27 +46,27 @@ export declare function generateActionsColumn<TData>(options: {
|
|
|
47
46
|
headerAlign?: "left" | "center" | "right" | undefined;
|
|
48
47
|
fixedLeft?: boolean | undefined;
|
|
49
48
|
pinnedHeaderText?: string | undefined;
|
|
50
|
-
header: string | ((props: HeaderContext<TData, TData>) =>
|
|
49
|
+
header: string | ((props: HeaderContext<TData, TData>) => JSX.Element | null);
|
|
51
50
|
id: string;
|
|
52
51
|
accessorFn: (row: TData) => TData;
|
|
53
52
|
} | {
|
|
54
|
-
getUniqueValues?: import(
|
|
55
|
-
footer?: import(
|
|
56
|
-
cell: import(
|
|
57
|
-
meta?: import(
|
|
53
|
+
getUniqueValues?: import("@tanstack/react-table").AccessorFn<TData, unknown[]> | undefined;
|
|
54
|
+
footer?: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>> | undefined;
|
|
55
|
+
cell: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>>;
|
|
56
|
+
meta?: import("@tanstack/react-table").ColumnMeta<TData, unknown> | undefined;
|
|
58
57
|
enableHiding: boolean;
|
|
59
58
|
enablePinning?: boolean | undefined;
|
|
60
59
|
enableColumnFilter?: boolean | undefined;
|
|
61
|
-
filterFn?: import(
|
|
60
|
+
filterFn?: import("@tanstack/react-table").FilterFnOption<TData> | undefined;
|
|
62
61
|
enableGlobalFilter?: boolean | undefined;
|
|
63
62
|
enableMultiSort?: boolean | undefined;
|
|
64
63
|
enableSorting: boolean;
|
|
65
64
|
invertSorting?: boolean | undefined;
|
|
66
65
|
sortDescFirst?: boolean | undefined;
|
|
67
|
-
sortingFn?: import(
|
|
68
|
-
sortUndefined?: false |
|
|
69
|
-
aggregatedCell?: import(
|
|
70
|
-
aggregationFn?: import(
|
|
66
|
+
sortingFn?: import("@tanstack/react-table").SortingFnOption<TData> | undefined;
|
|
67
|
+
sortUndefined?: false | 1 | -1 | "first" | "last" | undefined;
|
|
68
|
+
aggregatedCell?: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>> | undefined;
|
|
69
|
+
aggregationFn?: import("@tanstack/react-table").AggregationFnOption<TData> | undefined;
|
|
71
70
|
enableGrouping?: boolean | undefined;
|
|
72
71
|
getGroupingValue?: ((row: TData) => any) | undefined;
|
|
73
72
|
enableResizing?: boolean | undefined;
|
|
@@ -80,27 +79,27 @@ export declare function generateActionsColumn<TData>(options: {
|
|
|
80
79
|
fixedLeft?: boolean | undefined;
|
|
81
80
|
pinnedHeaderText?: string | undefined;
|
|
82
81
|
id: string;
|
|
83
|
-
header: import(
|
|
82
|
+
header: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>>;
|
|
84
83
|
accessorFn: (row: TData) => TData;
|
|
85
84
|
} | {
|
|
86
85
|
columns?: ColumnDef<TData, any>[] | undefined;
|
|
87
|
-
getUniqueValues?: import(
|
|
88
|
-
footer?: import(
|
|
89
|
-
cell: import(
|
|
90
|
-
meta?: import(
|
|
86
|
+
getUniqueValues?: import("@tanstack/react-table").AccessorFn<TData, unknown[]> | undefined;
|
|
87
|
+
footer?: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>> | undefined;
|
|
88
|
+
cell: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>>;
|
|
89
|
+
meta?: import("@tanstack/react-table").ColumnMeta<TData, unknown> | undefined;
|
|
91
90
|
enableHiding: boolean;
|
|
92
91
|
enablePinning?: boolean | undefined;
|
|
93
92
|
enableColumnFilter?: boolean | undefined;
|
|
94
|
-
filterFn?: import(
|
|
93
|
+
filterFn?: import("@tanstack/react-table").FilterFnOption<TData> | undefined;
|
|
95
94
|
enableGlobalFilter?: boolean | undefined;
|
|
96
95
|
enableMultiSort?: boolean | undefined;
|
|
97
96
|
enableSorting: boolean;
|
|
98
97
|
invertSorting?: boolean | undefined;
|
|
99
98
|
sortDescFirst?: boolean | undefined;
|
|
100
|
-
sortingFn?: import(
|
|
101
|
-
sortUndefined?: false |
|
|
102
|
-
aggregatedCell?: import(
|
|
103
|
-
aggregationFn?: import(
|
|
99
|
+
sortingFn?: import("@tanstack/react-table").SortingFnOption<TData> | undefined;
|
|
100
|
+
sortUndefined?: false | 1 | -1 | "first" | "last" | undefined;
|
|
101
|
+
aggregatedCell?: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>> | undefined;
|
|
102
|
+
aggregationFn?: import("@tanstack/react-table").AggregationFnOption<TData> | undefined;
|
|
104
103
|
enableGrouping?: boolean | undefined;
|
|
105
104
|
getGroupingValue?: ((row: TData) => any) | undefined;
|
|
106
105
|
enableResizing?: boolean | undefined;
|
|
@@ -112,28 +111,28 @@ export declare function generateActionsColumn<TData>(options: {
|
|
|
112
111
|
headerAlign?: "left" | "center" | "right" | undefined;
|
|
113
112
|
fixedLeft?: boolean | undefined;
|
|
114
113
|
pinnedHeaderText?: string | undefined;
|
|
115
|
-
header: string | ((props: HeaderContext<TData, TData>) =>
|
|
114
|
+
header: string | ((props: HeaderContext<TData, TData>) => JSX.Element | null);
|
|
116
115
|
id: string;
|
|
117
116
|
accessorFn: (row: TData) => TData;
|
|
118
117
|
} | {
|
|
119
118
|
columns?: ColumnDef<TData, any>[] | undefined;
|
|
120
|
-
getUniqueValues?: import(
|
|
121
|
-
footer?: import(
|
|
122
|
-
cell: import(
|
|
123
|
-
meta?: import(
|
|
119
|
+
getUniqueValues?: import("@tanstack/react-table").AccessorFn<TData, unknown[]> | undefined;
|
|
120
|
+
footer?: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>> | undefined;
|
|
121
|
+
cell: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>>;
|
|
122
|
+
meta?: import("@tanstack/react-table").ColumnMeta<TData, unknown> | undefined;
|
|
124
123
|
enableHiding: boolean;
|
|
125
124
|
enablePinning?: boolean | undefined;
|
|
126
125
|
enableColumnFilter?: boolean | undefined;
|
|
127
|
-
filterFn?: import(
|
|
126
|
+
filterFn?: import("@tanstack/react-table").FilterFnOption<TData> | undefined;
|
|
128
127
|
enableGlobalFilter?: boolean | undefined;
|
|
129
128
|
enableMultiSort?: boolean | undefined;
|
|
130
129
|
enableSorting: boolean;
|
|
131
130
|
invertSorting?: boolean | undefined;
|
|
132
131
|
sortDescFirst?: boolean | undefined;
|
|
133
|
-
sortingFn?: import(
|
|
134
|
-
sortUndefined?: false |
|
|
135
|
-
aggregatedCell?: import(
|
|
136
|
-
aggregationFn?: import(
|
|
132
|
+
sortingFn?: import("@tanstack/react-table").SortingFnOption<TData> | undefined;
|
|
133
|
+
sortUndefined?: false | 1 | -1 | "first" | "last" | undefined;
|
|
134
|
+
aggregatedCell?: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>> | undefined;
|
|
135
|
+
aggregationFn?: import("@tanstack/react-table").AggregationFnOption<TData> | undefined;
|
|
137
136
|
enableGrouping?: boolean | undefined;
|
|
138
137
|
getGroupingValue?: ((row: TData) => any) | undefined;
|
|
139
138
|
enableResizing?: boolean | undefined;
|
|
@@ -146,28 +145,28 @@ export declare function generateActionsColumn<TData>(options: {
|
|
|
146
145
|
fixedLeft?: boolean | undefined;
|
|
147
146
|
pinnedHeaderText?: string | undefined;
|
|
148
147
|
id: string;
|
|
149
|
-
header: import(
|
|
148
|
+
header: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>>;
|
|
150
149
|
accessorFn: (row: TData) => TData;
|
|
151
150
|
} | {
|
|
152
151
|
id: string;
|
|
153
152
|
accessorKey?: (string & {}) | keyof TData | undefined;
|
|
154
|
-
getUniqueValues?: import(
|
|
155
|
-
footer?: import(
|
|
156
|
-
cell: import(
|
|
157
|
-
meta?: import(
|
|
153
|
+
getUniqueValues?: import("@tanstack/react-table").AccessorFn<TData, unknown[]> | undefined;
|
|
154
|
+
footer?: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>> | undefined;
|
|
155
|
+
cell: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>>;
|
|
156
|
+
meta?: import("@tanstack/react-table").ColumnMeta<TData, unknown> | undefined;
|
|
158
157
|
enableHiding: boolean;
|
|
159
158
|
enablePinning?: boolean | undefined;
|
|
160
159
|
enableColumnFilter?: boolean | undefined;
|
|
161
|
-
filterFn?: import(
|
|
160
|
+
filterFn?: import("@tanstack/react-table").FilterFnOption<TData> | undefined;
|
|
162
161
|
enableGlobalFilter?: boolean | undefined;
|
|
163
162
|
enableMultiSort?: boolean | undefined;
|
|
164
163
|
enableSorting: boolean;
|
|
165
164
|
invertSorting?: boolean | undefined;
|
|
166
165
|
sortDescFirst?: boolean | undefined;
|
|
167
|
-
sortingFn?: import(
|
|
168
|
-
sortUndefined?: false |
|
|
169
|
-
aggregatedCell?: import(
|
|
170
|
-
aggregationFn?: import(
|
|
166
|
+
sortingFn?: import("@tanstack/react-table").SortingFnOption<TData> | undefined;
|
|
167
|
+
sortUndefined?: false | 1 | -1 | "first" | "last" | undefined;
|
|
168
|
+
aggregatedCell?: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>> | undefined;
|
|
169
|
+
aggregationFn?: import("@tanstack/react-table").AggregationFnOption<TData> | undefined;
|
|
171
170
|
enableGrouping?: boolean | undefined;
|
|
172
171
|
getGroupingValue?: ((row: TData) => any) | undefined;
|
|
173
172
|
enableResizing?: boolean | undefined;
|
|
@@ -179,28 +178,28 @@ export declare function generateActionsColumn<TData>(options: {
|
|
|
179
178
|
headerAlign?: "left" | "center" | "right" | undefined;
|
|
180
179
|
fixedLeft?: boolean | undefined;
|
|
181
180
|
pinnedHeaderText?: string | undefined;
|
|
182
|
-
header: string | ((props: HeaderContext<TData, TData>) =>
|
|
181
|
+
header: string | ((props: HeaderContext<TData, TData>) => JSX.Element | null);
|
|
183
182
|
accessorFn: (row: TData) => TData;
|
|
184
183
|
} | {
|
|
185
184
|
id: string;
|
|
186
185
|
accessorKey?: (string & {}) | keyof TData | undefined;
|
|
187
|
-
getUniqueValues?: import(
|
|
188
|
-
footer?: import(
|
|
189
|
-
cell: import(
|
|
190
|
-
meta?: import(
|
|
186
|
+
getUniqueValues?: import("@tanstack/react-table").AccessorFn<TData, unknown[]> | undefined;
|
|
187
|
+
footer?: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>> | undefined;
|
|
188
|
+
cell: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>>;
|
|
189
|
+
meta?: import("@tanstack/react-table").ColumnMeta<TData, unknown> | undefined;
|
|
191
190
|
enableHiding: boolean;
|
|
192
191
|
enablePinning?: boolean | undefined;
|
|
193
192
|
enableColumnFilter?: boolean | undefined;
|
|
194
|
-
filterFn?: import(
|
|
193
|
+
filterFn?: import("@tanstack/react-table").FilterFnOption<TData> | undefined;
|
|
195
194
|
enableGlobalFilter?: boolean | undefined;
|
|
196
195
|
enableMultiSort?: boolean | undefined;
|
|
197
196
|
enableSorting: boolean;
|
|
198
197
|
invertSorting?: boolean | undefined;
|
|
199
198
|
sortDescFirst?: boolean | undefined;
|
|
200
|
-
sortingFn?: import(
|
|
201
|
-
sortUndefined?: false |
|
|
202
|
-
aggregatedCell?: import(
|
|
203
|
-
aggregationFn?: import(
|
|
199
|
+
sortingFn?: import("@tanstack/react-table").SortingFnOption<TData> | undefined;
|
|
200
|
+
sortUndefined?: false | 1 | -1 | "first" | "last" | undefined;
|
|
201
|
+
aggregatedCell?: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>> | undefined;
|
|
202
|
+
aggregationFn?: import("@tanstack/react-table").AggregationFnOption<TData> | undefined;
|
|
204
203
|
enableGrouping?: boolean | undefined;
|
|
205
204
|
getGroupingValue?: ((row: TData) => any) | undefined;
|
|
206
205
|
enableResizing?: boolean | undefined;
|
|
@@ -212,27 +211,27 @@ export declare function generateActionsColumn<TData>(options: {
|
|
|
212
211
|
headerAlign?: "left" | "center" | "right" | undefined;
|
|
213
212
|
fixedLeft?: boolean | undefined;
|
|
214
213
|
pinnedHeaderText?: string | undefined;
|
|
215
|
-
header: import(
|
|
214
|
+
header: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>>;
|
|
216
215
|
accessorFn: (row: TData) => TData;
|
|
217
216
|
} | {
|
|
218
|
-
accessorFn: import(
|
|
219
|
-
getUniqueValues?: import(
|
|
220
|
-
footer?: import(
|
|
221
|
-
cell: import(
|
|
222
|
-
meta?: import(
|
|
217
|
+
accessorFn: import("@tanstack/react-table").AccessorFn<TData, unknown>;
|
|
218
|
+
getUniqueValues?: import("@tanstack/react-table").AccessorFn<TData, unknown[]> | undefined;
|
|
219
|
+
footer?: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>> | undefined;
|
|
220
|
+
cell: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>>;
|
|
221
|
+
meta?: import("@tanstack/react-table").ColumnMeta<TData, unknown> | undefined;
|
|
223
222
|
enableHiding: boolean;
|
|
224
223
|
enablePinning?: boolean | undefined;
|
|
225
224
|
enableColumnFilter?: boolean | undefined;
|
|
226
|
-
filterFn?: import(
|
|
225
|
+
filterFn?: import("@tanstack/react-table").FilterFnOption<TData> | undefined;
|
|
227
226
|
enableGlobalFilter?: boolean | undefined;
|
|
228
227
|
enableMultiSort?: boolean | undefined;
|
|
229
228
|
enableSorting: boolean;
|
|
230
229
|
invertSorting?: boolean | undefined;
|
|
231
230
|
sortDescFirst?: boolean | undefined;
|
|
232
|
-
sortingFn?: import(
|
|
233
|
-
sortUndefined?: false |
|
|
234
|
-
aggregatedCell?: import(
|
|
235
|
-
aggregationFn?: import(
|
|
231
|
+
sortingFn?: import("@tanstack/react-table").SortingFnOption<TData> | undefined;
|
|
232
|
+
sortUndefined?: false | 1 | -1 | "first" | "last" | undefined;
|
|
233
|
+
aggregatedCell?: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>> | undefined;
|
|
234
|
+
aggregationFn?: import("@tanstack/react-table").AggregationFnOption<TData> | undefined;
|
|
236
235
|
enableGrouping?: boolean | undefined;
|
|
237
236
|
getGroupingValue?: ((row: TData) => any) | undefined;
|
|
238
237
|
enableResizing?: boolean | undefined;
|
|
@@ -244,27 +243,27 @@ export declare function generateActionsColumn<TData>(options: {
|
|
|
244
243
|
headerAlign?: "left" | "center" | "right" | undefined;
|
|
245
244
|
fixedLeft?: boolean | undefined;
|
|
246
245
|
pinnedHeaderText?: string | undefined;
|
|
247
|
-
header: string | ((props: HeaderContext<TData, TData>) =>
|
|
246
|
+
header: string | ((props: HeaderContext<TData, TData>) => JSX.Element | null);
|
|
248
247
|
id: string;
|
|
249
248
|
} | {
|
|
250
|
-
accessorFn: import(
|
|
251
|
-
getUniqueValues?: import(
|
|
252
|
-
footer?: import(
|
|
253
|
-
cell: import(
|
|
254
|
-
meta?: import(
|
|
249
|
+
accessorFn: import("@tanstack/react-table").AccessorFn<TData, unknown>;
|
|
250
|
+
getUniqueValues?: import("@tanstack/react-table").AccessorFn<TData, unknown[]> | undefined;
|
|
251
|
+
footer?: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>> | undefined;
|
|
252
|
+
cell: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>>;
|
|
253
|
+
meta?: import("@tanstack/react-table").ColumnMeta<TData, unknown> | undefined;
|
|
255
254
|
enableHiding: boolean;
|
|
256
255
|
enablePinning?: boolean | undefined;
|
|
257
256
|
enableColumnFilter?: boolean | undefined;
|
|
258
|
-
filterFn?: import(
|
|
257
|
+
filterFn?: import("@tanstack/react-table").FilterFnOption<TData> | undefined;
|
|
259
258
|
enableGlobalFilter?: boolean | undefined;
|
|
260
259
|
enableMultiSort?: boolean | undefined;
|
|
261
260
|
enableSorting: boolean;
|
|
262
261
|
invertSorting?: boolean | undefined;
|
|
263
262
|
sortDescFirst?: boolean | undefined;
|
|
264
|
-
sortingFn?: import(
|
|
265
|
-
sortUndefined?: false |
|
|
266
|
-
aggregatedCell?: import(
|
|
267
|
-
aggregationFn?: import(
|
|
263
|
+
sortingFn?: import("@tanstack/react-table").SortingFnOption<TData> | undefined;
|
|
264
|
+
sortUndefined?: false | 1 | -1 | "first" | "last" | undefined;
|
|
265
|
+
aggregatedCell?: import("@tanstack/react-table").ColumnDefTemplate<CellContext<TData, unknown>> | undefined;
|
|
266
|
+
aggregationFn?: import("@tanstack/react-table").AggregationFnOption<TData> | undefined;
|
|
268
267
|
enableGrouping?: boolean | undefined;
|
|
269
268
|
getGroupingValue?: ((row: TData) => any) | undefined;
|
|
270
269
|
enableResizing?: boolean | undefined;
|
|
@@ -277,5 +276,5 @@ export declare function generateActionsColumn<TData>(options: {
|
|
|
277
276
|
fixedLeft?: boolean | undefined;
|
|
278
277
|
pinnedHeaderText?: string | undefined;
|
|
279
278
|
id: string;
|
|
280
|
-
header: import(
|
|
279
|
+
header: import("@tanstack/react-table").ColumnDefTemplate<HeaderContext<TData, unknown>>;
|
|
281
280
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { HeaderContext } from '@tanstack/react-table';
|
|
3
3
|
export declare function HeaderActionMenu<TData>({ headerData, locale, }: {
|
|
4
4
|
headerData: HeaderContext<TData, TData>;
|
|
5
5
|
locale?: 'en' | 'no';
|
|
6
|
-
}):
|
|
6
|
+
}): JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CellContext, Row } from '@tanstack/react-table';
|
|
3
|
+
import { type IAction, type ICustomAction, type RowActionsState } from 'src/types';
|
|
5
4
|
export declare function RowActionMenu<TData>({ tableData, actions, rowActionsState, }: {
|
|
6
5
|
tableData: CellContext<TData, TData>;
|
|
7
6
|
actions: (row: Row<TData>) => (IAction<TData> | ICustomAction<TData>)[];
|
|
8
7
|
rowActionsState?: (row: Row<TData>) => RowActionsState | undefined;
|
|
9
|
-
}):
|
|
8
|
+
}): JSX.Element;
|