@fattureincloud/fic-design-system 0.7.25 → 0.7.27-tmp
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/newTable/Table.d.ts +1 -1
- package/dist/components/newTable/components/header/Header.d.ts +6 -3
- package/dist/components/newTable/components/header/headerCell/ActionHeaderCell.d.ts +6 -3
- package/dist/components/newTable/components/header/headerCell/HeaderCell.d.ts +6 -3
- package/dist/components/newTable/types.d.ts +4 -4
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
@@ -31,5 +31,5 @@ import { TableProps } from './types';
|
|
31
31
|
* @param {function} onRowClick Callback called after a click on a row, returns the row
|
32
32
|
* @param {number} rowIdHighlight id of the row that will be highlighted
|
33
33
|
*/
|
34
|
-
declare const Table: <T>({ data, columns, isSelectable,
|
34
|
+
declare const Table: <T>({ data, columns, isSelectable, favorites, onFavoritesChange, toggles, onTogglesChange, rowSize, headerSize, isFavoritesSortable, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, renderEmptyState, onRowClick, bodyHeight, totalPages, rowIdHighlight, rowHighlightColor, rowSelection, setRowSelection, forceHideSettings, renderBulkActions, }: TableProps<T>) => JSX.Element;
|
35
35
|
export default Table;
|
@@ -1,11 +1,14 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
import { HeaderGroup, RowSelectionState } from '@tanstack/react-table';
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
3
3
|
import { OnSort, RowSize } from '../../types';
|
4
4
|
interface HeaderProps<T> {
|
5
5
|
headerGroup: HeaderGroup<T>[];
|
6
6
|
headerSize?: RowSize;
|
7
7
|
onSort?: OnSort<T>;
|
8
8
|
forceHideSettings: boolean;
|
9
|
+
rowSelection?: T[];
|
10
|
+
setRowSelection?: Dispatch<SetStateAction<T[]>>;
|
11
|
+
setInternalRowSelection: Dispatch<SetStateAction<RowSelectionState>>;
|
9
12
|
}
|
10
|
-
declare const Header: <T>({ headerGroup, headerSize, onSort, forceHideSettings }: HeaderProps<T>) => JSX.Element;
|
13
|
+
declare const Header: <T>({ headerGroup, headerSize, onSort, forceHideSettings, rowSelection, setRowSelection, setInternalRowSelection, }: HeaderProps<T>) => JSX.Element;
|
11
14
|
export default Header;
|
@@ -1,9 +1,12 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
import { Header, RowSelectionState } from '@tanstack/react-table';
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
3
3
|
interface CustomHeaderCellProps<T> {
|
4
4
|
header: Header<T, unknown>;
|
5
5
|
onOpen?: (isOpen: boolean) => void;
|
6
6
|
forceHideSettings: boolean;
|
7
|
+
rowSelection?: T[];
|
8
|
+
setRowSelection?: Dispatch<SetStateAction<T[]>>;
|
9
|
+
setInternalRowSelection: Dispatch<SetStateAction<RowSelectionState>>;
|
7
10
|
}
|
8
|
-
declare const ActionHeaderCell: <T>({ header, onOpen, forceHideSettings }: CustomHeaderCellProps<T>) => JSX.Element;
|
11
|
+
declare const ActionHeaderCell: <T>({ header, onOpen, forceHideSettings, rowSelection, setRowSelection, setInternalRowSelection, }: CustomHeaderCellProps<T>) => JSX.Element;
|
9
12
|
export default ActionHeaderCell;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Header, SortDirection } from '@tanstack/react-table';
|
2
|
-
import { default as React } from 'react';
|
1
|
+
import { Header, RowSelectionState, SortDirection } from '@tanstack/react-table';
|
2
|
+
import { default as React, Dispatch, SetStateAction } from 'react';
|
3
3
|
import { CustomSorted, OnSort, RowSize } from '../../../types';
|
4
4
|
interface HeaderCellProps<T> {
|
5
5
|
header: Header<T, unknown>;
|
@@ -8,6 +8,9 @@ interface HeaderCellProps<T> {
|
|
8
8
|
customSorted?: false | SortDirection;
|
9
9
|
setCustomSorted?: React.Dispatch<React.SetStateAction<CustomSorted<T> | undefined>>;
|
10
10
|
forceHideSettings: boolean;
|
11
|
+
rowSelection?: T[];
|
12
|
+
setRowSelection?: Dispatch<SetStateAction<T[]>>;
|
13
|
+
setInternalRowSelection: Dispatch<SetStateAction<RowSelectionState>>;
|
11
14
|
}
|
12
|
-
declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, forceHideSettings, }: HeaderCellProps<T>) => JSX.Element;
|
15
|
+
declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, forceHideSettings, rowSelection, setRowSelection, setInternalRowSelection, }: HeaderCellProps<T>) => JSX.Element;
|
13
16
|
export default HeaderCell;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
import { DisplayColumnDef, GroupColumnDef, IdentifiedColumnDef, PaginationState, Row, SortDirection } from '@tanstack/react-table';
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
3
3
|
import { AvatarProps } from '../avatar';
|
4
4
|
import { ButtonProps } from '../buttons';
|
5
5
|
import { DropdownItemType } from '../dropdown';
|
@@ -43,8 +43,8 @@ export interface TableProps<T> {
|
|
43
43
|
totalPages?: number;
|
44
44
|
rowIdHighlight?: number | string;
|
45
45
|
rowHighlightColor?: string;
|
46
|
-
rowSelection?:
|
47
|
-
setRowSelection?:
|
46
|
+
rowSelection?: T[];
|
47
|
+
setRowSelection?: Dispatch<SetStateAction<T[]>>;
|
48
48
|
forceHideSettings?: boolean;
|
49
49
|
}
|
50
50
|
interface SettingsDropdownConfig {
|