asma-core-ui 3.0.4 → 3.0.6
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-core-ui.es.js +4 -4
- package/dist/src/components/table/components/TableFooter.d.ts +1 -2
- package/dist/src/components/table/components/TableHeaderCell.d.ts +9 -0
- package/dist/src/components/table/components/TablePagination.d.ts +1 -2
- package/dist/src/components/table/helpers/getTableHeaderStyle.d.ts +10 -0
- package/dist/src/components/table/story/components/styled-flex-table/generateActions.d.ts +6 -0
- package/dist/src/components/table/story/components/styled-flex-table/useColumns.d.ts +5 -0
- package/dist/src/components/table/story/components/{RenderSubRows.d.ts → styled-table/RenderSubRows.d.ts} +1 -1
- package/dist/src/components/table/story/components/{getRowActions.d.ts → styled-table/getRowActions.d.ts} +1 -1
- package/dist/src/components/table/story/components/{useTableColumns.d.ts → styled-table/useTableColumns.d.ts} +1 -1
- package/dist/src/components/table/story/components/{useTableSubRowsColumns.d.ts → styled-table/useTableSubRowsColumns.d.ts} +1 -1
- package/dist/src/components/table/story/service/Templates.query.d.ts +5 -0
- package/dist/src/components/table/story/service/types.d.ts +9 -0
- package/dist/src/components/table/story/service/useFetchTemplates.d.ts +4 -0
- package/dist/src/components/table/types.d.ts +1 -0
- package/dist/style.css +2 -2
- package/package.json +2 -1
|
@@ -3,8 +3,7 @@ import { type Table } from '@tanstack/react-table';
|
|
|
3
3
|
import type { StyledTableProps } from '../types';
|
|
4
4
|
export declare function TableFooter<TData extends {
|
|
5
5
|
id: string | number;
|
|
6
|
-
}, TCustomData = Record<string, unknown>>({ table, styledTableProps
|
|
6
|
+
}, TCustomData = Record<string, unknown>>({ table, styledTableProps }: {
|
|
7
7
|
table: Table<TData>;
|
|
8
8
|
styledTableProps: StyledTableProps<TData, TCustomData>;
|
|
9
|
-
tableId: string;
|
|
10
9
|
}): JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type Header } from '@tanstack/react-table';
|
|
3
|
+
import type { StyledTableProps } from '../types';
|
|
4
|
+
export declare function TableHeaderCell<TData extends {
|
|
5
|
+
id: string | number;
|
|
6
|
+
}, TCustomData = Record<string, unknown>>({ styledTableProps, header, }: {
|
|
7
|
+
styledTableProps: StyledTableProps<TData, TCustomData>;
|
|
8
|
+
header: Header<TData, unknown>;
|
|
9
|
+
}): JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Table } from '@tanstack/react-table';
|
|
3
|
-
export declare function TablePagination<TData>({ table, locale
|
|
3
|
+
export declare function TablePagination<TData>({ table, locale }: {
|
|
4
4
|
locale: 'en' | 'no';
|
|
5
5
|
table: Table<TData>;
|
|
6
|
-
tableId: string;
|
|
7
6
|
}): JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Header } from '@tanstack/react-table';
|
|
2
|
+
export declare const getTableHeaderStyle: <TData>(props: {
|
|
3
|
+
enableResizing: boolean;
|
|
4
|
+
header: Header<TData, unknown>;
|
|
5
|
+
element: HTMLTableCellElement | null;
|
|
6
|
+
}) => {
|
|
7
|
+
width: string | number | undefined;
|
|
8
|
+
maxWidth: string | number | undefined;
|
|
9
|
+
minWidth: string | number | undefined;
|
|
10
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Participant } from '
|
|
1
|
+
import type { Participant } from '../../helpers/makeData';
|
|
2
2
|
import type { ColumnDef } from '@tanstack/react-table';
|
|
3
3
|
export declare const useTableSubRowsColumns: () => {
|
|
4
4
|
columns: ColumnDef<Participant, Participant>[];
|
|
@@ -57,6 +57,7 @@ export type StyledTableProps<TData, TCustomData> = {
|
|
|
57
57
|
getRowSelectionIds?: (ids: string[]) => void;
|
|
58
58
|
hideHeader?: boolean;
|
|
59
59
|
pageSize?: number;
|
|
60
|
+
enableResizing?: boolean;
|
|
60
61
|
} & Omit<TTableOptions<TData>, 'getCoreRowModel' | 'getExpandedRowModel' | 'getFilteredRowModel' | 'getSortedRowModel'> & TFooter<TData>;
|
|
61
62
|
export declare const SELECT_COLUMN_ID = "select";
|
|
62
63
|
export declare const EXPAND_COLUMN_ID = "expand-column-id";
|