@hitachivantara/uikit-react-core 5.0.1 → 5.0.2
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/cjs/components/ActionsGeneric/ActionsGeneric.styles.cjs +8 -4
- package/dist/cjs/components/ActionsGeneric/ActionsGeneric.styles.cjs.map +1 -1
- package/dist/cjs/components/Banner/BannerContent/ActionContainer/ActionContainer.styles.cjs +10 -6
- package/dist/cjs/components/Banner/BannerContent/ActionContainer/ActionContainer.styles.cjs.map +1 -1
- package/dist/cjs/components/BaseDropdown/BaseDropdown.cjs +1 -0
- package/dist/cjs/components/BaseDropdown/BaseDropdown.cjs.map +1 -1
- package/dist/cjs/components/BaseDropdown/BaseDropdown.styles.cjs +22 -14
- package/dist/cjs/components/BaseDropdown/BaseDropdown.styles.cjs.map +1 -1
- package/dist/cjs/components/BreadCrumb/BreadCrumb.styles.cjs +9 -5
- package/dist/cjs/components/BreadCrumb/BreadCrumb.styles.cjs.map +1 -1
- package/dist/cjs/components/BreadCrumb/Page/Page.styles.cjs +8 -4
- package/dist/cjs/components/BreadCrumb/Page/Page.styles.cjs.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.styles.cjs +9 -5
- package/dist/cjs/components/Dialog/Dialog.styles.cjs.map +1 -1
- package/dist/cjs/components/DropDownMenu/DropDownMenu.styles.cjs +9 -5
- package/dist/cjs/components/DropDownMenu/DropDownMenu.styles.cjs.map +1 -1
- package/dist/cjs/components/Dropdown/List/List.styles.cjs +4 -5
- package/dist/cjs/components/Dropdown/List/List.styles.cjs.map +1 -1
- package/dist/cjs/components/FileUploader/File/File.styles.cjs +16 -12
- package/dist/cjs/components/FileUploader/File/File.styles.cjs.map +1 -1
- package/dist/cjs/components/FileUploader/Preview/Preview.styles.cjs +9 -5
- package/dist/cjs/components/FileUploader/Preview/Preview.styles.cjs.map +1 -1
- package/dist/cjs/components/Header/Brand/Brand.styles.cjs +9 -5
- package/dist/cjs/components/Header/Brand/Brand.styles.cjs.map +1 -1
- package/dist/cjs/components/Table/Table.cjs +1 -1
- package/dist/cjs/components/Table/Table.cjs.map +1 -1
- package/dist/cjs/components/Table/TableBody/TableBody.cjs +1 -1
- package/dist/cjs/components/Table/TableBody/TableBody.cjs.map +1 -1
- package/dist/cjs/components/Table/TableCell/TableCell.cjs +1 -1
- package/dist/cjs/components/Table/TableCell/TableCell.cjs.map +1 -1
- package/dist/cjs/components/Table/TableContainer/TableContainer.cjs +1 -1
- package/dist/cjs/components/Table/TableContainer/TableContainer.cjs.map +1 -1
- package/dist/cjs/components/Table/TableHead/TableHead.cjs +1 -1
- package/dist/cjs/components/Table/TableHead/TableHead.cjs.map +1 -1
- package/dist/cjs/components/Table/TableHeader/TableHeader.cjs +2 -2
- package/dist/cjs/components/Table/TableHeader/TableHeader.cjs.map +1 -1
- package/dist/cjs/components/Table/TableHeader/TableHeader.styles.cjs +15 -8
- package/dist/cjs/components/Table/TableHeader/TableHeader.styles.cjs.map +1 -1
- package/dist/cjs/components/Table/TableRow/TableRow.cjs +1 -1
- package/dist/cjs/components/Table/TableRow/TableRow.cjs.map +1 -1
- package/dist/cjs/components/Table/hooks/useRowSelection.cjs.map +1 -1
- package/dist/cjs/components/Table/hooks/useSortBy.cjs.map +1 -1
- package/dist/cjs/components/Table/hooks/useTable.cjs +24 -20
- package/dist/cjs/components/Table/hooks/useTable.cjs.map +1 -1
- package/dist/cjs/components/Table/renderers/DateColumnCell/DateColumnCell.cjs.map +1 -1
- package/dist/cjs/components/Table/renderers/DropdownColumnCell/DropdownColumnCell.cjs.map +1 -1
- package/dist/cjs/components/Table/renderers/ProgressColumnCell/ProgressColumnCell.cjs.map +1 -1
- package/dist/cjs/components/Table/renderers/SwitchColumnCell/SwitchColumnCell.cjs.map +1 -1
- package/dist/cjs/components/Table/renderers/renderers.cjs +14 -12
- package/dist/cjs/components/Table/renderers/renderers.cjs.map +1 -1
- package/dist/cjs/components/Table/utils/fallbacks.cjs.map +1 -1
- package/dist/cjs/components/Tag/Tag.styles.cjs +9 -5
- package/dist/cjs/components/Tag/Tag.styles.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/Header/Header.styles.cjs +8 -4
- package/dist/cjs/components/VerticalNavigation/Header/Header.styles.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs +1 -1
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs.map +1 -1
- package/dist/esm/components/ActionsGeneric/ActionsGeneric.styles.js +8 -4
- package/dist/esm/components/ActionsGeneric/ActionsGeneric.styles.js.map +1 -1
- package/dist/esm/components/Banner/BannerContent/ActionContainer/ActionContainer.styles.js +10 -6
- package/dist/esm/components/Banner/BannerContent/ActionContainer/ActionContainer.styles.js.map +1 -1
- package/dist/esm/components/BaseDropdown/BaseDropdown.js +1 -0
- package/dist/esm/components/BaseDropdown/BaseDropdown.js.map +1 -1
- package/dist/esm/components/BaseDropdown/BaseDropdown.styles.js +22 -14
- package/dist/esm/components/BaseDropdown/BaseDropdown.styles.js.map +1 -1
- package/dist/esm/components/BreadCrumb/BreadCrumb.styles.js +9 -5
- package/dist/esm/components/BreadCrumb/BreadCrumb.styles.js.map +1 -1
- package/dist/esm/components/BreadCrumb/Page/Page.styles.js +8 -4
- package/dist/esm/components/BreadCrumb/Page/Page.styles.js.map +1 -1
- package/dist/esm/components/Dialog/Dialog.styles.js +9 -5
- package/dist/esm/components/Dialog/Dialog.styles.js.map +1 -1
- package/dist/esm/components/DropDownMenu/DropDownMenu.styles.js +9 -5
- package/dist/esm/components/DropDownMenu/DropDownMenu.styles.js.map +1 -1
- package/dist/esm/components/Dropdown/List/List.styles.js +4 -5
- package/dist/esm/components/Dropdown/List/List.styles.js.map +1 -1
- package/dist/esm/components/FileUploader/File/File.styles.js +16 -12
- package/dist/esm/components/FileUploader/File/File.styles.js.map +1 -1
- package/dist/esm/components/FileUploader/Preview/Preview.styles.js +9 -5
- package/dist/esm/components/FileUploader/Preview/Preview.styles.js.map +1 -1
- package/dist/esm/components/Header/Brand/Brand.styles.js +9 -5
- package/dist/esm/components/Header/Brand/Brand.styles.js.map +1 -1
- package/dist/esm/components/Table/Table.js +1 -1
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/esm/components/Table/TableBody/TableBody.js +1 -1
- package/dist/esm/components/Table/TableBody/TableBody.js.map +1 -1
- package/dist/esm/components/Table/TableCell/TableCell.js +1 -1
- package/dist/esm/components/Table/TableCell/TableCell.js.map +1 -1
- package/dist/esm/components/Table/TableContainer/TableContainer.js +1 -1
- package/dist/esm/components/Table/TableContainer/TableContainer.js.map +1 -1
- package/dist/esm/components/Table/TableHead/TableHead.js +1 -1
- package/dist/esm/components/Table/TableHead/TableHead.js.map +1 -1
- package/dist/esm/components/Table/TableHeader/TableHeader.js +2 -2
- package/dist/esm/components/Table/TableHeader/TableHeader.js.map +1 -1
- package/dist/esm/components/Table/TableHeader/TableHeader.styles.js +15 -8
- package/dist/esm/components/Table/TableHeader/TableHeader.styles.js.map +1 -1
- package/dist/esm/components/Table/TableRow/TableRow.js +1 -1
- package/dist/esm/components/Table/TableRow/TableRow.js.map +1 -1
- package/dist/esm/components/Table/hooks/useRowSelection.js.map +1 -1
- package/dist/esm/components/Table/hooks/useSortBy.js.map +1 -1
- package/dist/esm/components/Table/hooks/useTable.js +24 -20
- package/dist/esm/components/Table/hooks/useTable.js.map +1 -1
- package/dist/esm/components/Table/renderers/DateColumnCell/DateColumnCell.js.map +1 -1
- package/dist/esm/components/Table/renderers/DropdownColumnCell/DropdownColumnCell.js.map +1 -1
- package/dist/esm/components/Table/renderers/ProgressColumnCell/ProgressColumnCell.js.map +1 -1
- package/dist/esm/components/Table/renderers/SwitchColumnCell/SwitchColumnCell.js.map +1 -1
- package/dist/esm/components/Table/renderers/renderers.js +15 -13
- package/dist/esm/components/Table/renderers/renderers.js.map +1 -1
- package/dist/esm/components/Table/utils/fallbacks.js.map +1 -1
- package/dist/esm/components/Tag/Tag.styles.js +9 -5
- package/dist/esm/components/Tag/Tag.styles.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/Header/Header.styles.js +8 -4
- package/dist/esm/components/VerticalNavigation/Header/Header.styles.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js +1 -1
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
- package/dist/types/index.d.ts +173 -258
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
|
+
import { ActionType } from 'react-table';
|
|
3
4
|
import type { AllHTMLAttributes } from 'react';
|
|
4
5
|
import { AvatarProps } from '@mui/material/Avatar';
|
|
5
6
|
import { CardContentProps } from '@mui/material/CardContent';
|
|
6
7
|
import { CardHeaderProps } from '@mui/material/CardHeader';
|
|
7
8
|
import { CardMediaProps } from '@mui/material/CardMedia';
|
|
8
9
|
import { Cell } from 'react-table';
|
|
9
|
-
import { CellPropGetter } from 'react-table';
|
|
10
|
-
import { CellProps } from 'react-table';
|
|
11
10
|
import { ChangeEvent } from 'react';
|
|
12
11
|
import { CheckboxProps } from '@mui/material';
|
|
13
12
|
import { ChipProps } from '@mui/material/Chip';
|
|
@@ -23,12 +22,8 @@ import { DialogTitleProps } from '@mui/material/DialogTitle';
|
|
|
23
22
|
import { DividerProps } from '@mui/material/Divider';
|
|
24
23
|
import { ds3 } from '@hitachivantara/uikit-styles';
|
|
25
24
|
import { ds5 } from '@hitachivantara/uikit-styles';
|
|
26
|
-
import type { ElementType } from 'react';
|
|
27
|
-
import { FooterPropGetter } from 'react-table';
|
|
28
25
|
import type { ForwardRefExoticComponent } from 'react';
|
|
29
26
|
import { GridProps } from '@mui/material';
|
|
30
|
-
import { HeaderPropGetter } from 'react-table';
|
|
31
|
-
import { HeaderProps } from 'react-table';
|
|
32
27
|
import { Hooks } from 'react-table';
|
|
33
28
|
import { HTMLAttributes } from 'react';
|
|
34
29
|
import { HTMLInputTypeAttribute } from 'react';
|
|
@@ -55,11 +50,11 @@ import { PropGetter } from 'react-table';
|
|
|
55
50
|
import { RadioProps } from '@mui/material';
|
|
56
51
|
import { default as React_2 } from 'react';
|
|
57
52
|
import { ReactElement } from 'react';
|
|
53
|
+
import { ReducerTableState } from 'react-table';
|
|
58
54
|
import type { RefAttributes } from 'react';
|
|
59
55
|
import { RefObject } from 'react';
|
|
60
56
|
import { Renderer } from 'react-table';
|
|
61
57
|
import { Row } from 'react-table';
|
|
62
|
-
import { RowPropGetter } from 'react-table';
|
|
63
58
|
import { SnackbarCloseReason } from '@mui/material/Snackbar';
|
|
64
59
|
import { SnackbarContentProps } from '@mui/material/SnackbarContent';
|
|
65
60
|
import type { SnackbarKey } from 'notistack';
|
|
@@ -75,7 +70,6 @@ import { TableHeaderProps } from 'react-table';
|
|
|
75
70
|
import type { TableHTMLAttributes } from 'react';
|
|
76
71
|
import { TableInstance } from 'react-table';
|
|
77
72
|
import { TableOptions } from 'react-table';
|
|
78
|
-
import { TablePropGetter } from 'react-table';
|
|
79
73
|
import { TableProps } from 'react-table';
|
|
80
74
|
import { TableRowProps } from 'react-table';
|
|
81
75
|
import { TableState } from 'react-table';
|
|
@@ -100,6 +94,7 @@ import { UseFiltersColumnProps } from 'react-table';
|
|
|
100
94
|
import { UseFiltersInstanceProps } from 'react-table';
|
|
101
95
|
import { UseFiltersOptions } from 'react-table';
|
|
102
96
|
import { UseFiltersState } from 'react-table';
|
|
97
|
+
import { UseGlobalFiltersColumnOptions } from 'react-table';
|
|
103
98
|
import { UseGlobalFiltersInstanceProps } from 'react-table';
|
|
104
99
|
import { UseGlobalFiltersOptions } from 'react-table';
|
|
105
100
|
import { UseGlobalFiltersState } from 'react-table';
|
|
@@ -118,12 +113,17 @@ import { UseResizeColumnsColumnOptions } from 'react-table';
|
|
|
118
113
|
import { UseResizeColumnsColumnProps } from 'react-table';
|
|
119
114
|
import { UseResizeColumnsOptions } from 'react-table';
|
|
120
115
|
import { UseResizeColumnsState } from 'react-table';
|
|
116
|
+
import { UseRowStateInstanceProps } from 'react-table';
|
|
117
|
+
import { UseRowStateOptions } from 'react-table';
|
|
118
|
+
import { UseRowStateRowProps } from 'react-table';
|
|
119
|
+
import { UseRowStateState } from 'react-table';
|
|
121
120
|
import { UseSortByColumnOptions } from 'react-table';
|
|
122
121
|
import { UseSortByColumnProps } from 'react-table';
|
|
123
122
|
import { UseSortByHooks } from 'react-table';
|
|
124
123
|
import { UseSortByInstanceProps } from 'react-table';
|
|
125
124
|
import { UseSortByOptions } from 'react-table';
|
|
126
125
|
import { UseSortByState } from 'react-table';
|
|
126
|
+
import { UseTableHeaderGroupProps } from 'react-table';
|
|
127
127
|
|
|
128
128
|
declare type Accessor<D extends object> = (originalRow: D, index: number, sub: {
|
|
129
129
|
subRows: D[];
|
|
@@ -1777,17 +1777,22 @@ export declare type HvCardProps = HvBaseProps & {
|
|
|
1777
1777
|
|
|
1778
1778
|
export declare type HvCategoricalColorKeys = "cat1" | "cat1_180" | "cat1_160" | "cat1_140" | "cat1_120" | "cat1_80" | "cat1_60" | "cat1_40" | "cat1_20" | "cat2" | "cat2_180" | "cat2_160" | "cat2_140" | "cat2_120" | "cat2_80" | "cat2_60" | "cat2_40" | "cat2_20" | "cat3" | "cat3_180" | "cat3_160" | "cat3_140" | "cat3_120" | "cat3_80" | "cat3_60" | "cat3_40" | "cat3_20" | "cat4" | "cat4_180" | "cat4_160" | "cat4_140" | "cat4_120" | "cat4_80" | "cat4_60" | "cat4_40" | "cat4_20" | "cat5" | "cat5_180" | "cat5_160" | "cat5_140" | "cat5_120" | "cat5_80" | "cat5_60" | "cat5_40" | "cat5_20" | "cat6" | "cat6_180" | "cat6_160" | "cat6_140" | "cat6_120" | "cat6_80" | "cat6_60" | "cat6_40" | "cat6_20" | "cat7" | "cat7_180" | "cat7_160" | "cat7_140" | "cat7_120" | "cat7_80" | "cat7_60" | "cat7_40" | "cat7_20" | "cat8" | "cat8_180" | "cat8_160" | "cat8_140" | "cat8_120" | "cat8_80" | "cat8_60" | "cat8_40" | "cat8_20" | "cat9" | "cat9_180" | "cat9_160" | "cat9_140" | "cat9_120" | "cat9_80" | "cat9_60" | "cat9_40" | "cat9_20" | "cat10" | "cat10_180" | "cat10_160" | "cat10_140" | "cat10_120" | "cat10_80" | "cat10_60" | "cat10_40" | "cat10_20" | "cat11" | "cat11_180" | "cat11_160" | "cat11_140" | "cat11_120" | "cat11_80" | "cat11_60" | "cat11_40" | "cat11_20" | "cat12" | "cat12_180" | "cat12_160" | "cat12_140" | "cat12_120" | "cat12_80" | "cat12_60" | "cat12_40" | "cat12_20" | "cat13" | "cat14" | "cat15" | "cat16" | "cat17" | "cat18" | "cat19" | "cat20";
|
|
1779
1779
|
|
|
1780
|
-
export declare interface HvCellInstance<D extends object = Record<string, unknown>, V = any> extends Omit<Cell<D, V>, "column" | "row">, UseGroupByCellProps<D
|
|
1781
|
-
column: HvColumnInstance<D>;
|
|
1782
|
-
row: HvRowInstance<D>;
|
|
1783
|
-
getCellProps: (propGetter?:
|
|
1780
|
+
export declare interface HvCellInstance<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer, V = any> extends Omit<Cell<D, V>, "column" | "row" | "getCellProps">, Partial<UseGroupByCellProps<D>> {
|
|
1781
|
+
column: HvColumnInstance<D, H>;
|
|
1782
|
+
row: HvRowInstance<D, H>;
|
|
1783
|
+
getCellProps: (propGetter?: HvCellPropGetter<D, H>) => HvUseTableCellProps;
|
|
1784
1784
|
}
|
|
1785
1785
|
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1786
|
+
declare type HvCellPropGetter<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvPropGetter<D, H, HvUseTableCellProps, {
|
|
1787
|
+
cell: HvCellInstance<D, H>;
|
|
1788
|
+
}>;
|
|
1789
|
+
|
|
1790
|
+
export declare interface HvCellProps<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer, V = any> extends HvTableInstance<D, H> {
|
|
1791
|
+
column: HvColumnInstance<D, H>;
|
|
1792
|
+
row: HvRowInstance<D, H>;
|
|
1793
|
+
cell: HvCellInstance<D, H, V>;
|
|
1794
|
+
value: CellValue<V>;
|
|
1795
|
+
}
|
|
1791
1796
|
|
|
1792
1797
|
/**
|
|
1793
1798
|
* Displays the capacity and current usage of a text input box (character count by default).
|
|
@@ -1979,35 +1984,35 @@ export declare type HvCheckBoxProps = Omit<HvBaseCheckBoxProps, "classes"> & {
|
|
|
1979
1984
|
|
|
1980
1985
|
export declare type HvClickOutsideEvent = MouseEvent | KeyboardEvent | TouchEvent;
|
|
1981
1986
|
|
|
1982
|
-
declare type HvColumnGroup<D extends object = Record<string, unknown
|
|
1983
|
-
Header:
|
|
1987
|
+
declare type HvColumnGroup<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvTableColumnOptions<D, H> & HvColumnGroupInterface<D, H> & ({
|
|
1988
|
+
Header: H;
|
|
1984
1989
|
} | ({
|
|
1985
1990
|
id: IdType<D>;
|
|
1986
1991
|
} & {
|
|
1987
|
-
Header:
|
|
1992
|
+
Header: H;
|
|
1988
1993
|
})) & {
|
|
1989
1994
|
accessor?: Accessor<D>;
|
|
1990
1995
|
};
|
|
1991
1996
|
|
|
1992
|
-
declare interface HvColumnGroupInterface<D extends object> {
|
|
1993
|
-
columns: Array<HvTableColumnConfig<D>>;
|
|
1997
|
+
declare interface HvColumnGroupInterface<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> {
|
|
1998
|
+
columns: Array<HvTableColumnConfig<D, H>>;
|
|
1994
1999
|
}
|
|
1995
2000
|
|
|
1996
|
-
export declare interface HvColumnInstance<D extends object = Record<string, unknown
|
|
1997
|
-
Cell?: Renderer<HvCellProps<D>>;
|
|
1998
|
-
columns: Array<HvColumnInstance<D>>;
|
|
1999
|
-
parent: HvColumnInstance<D>;
|
|
2000
|
-
placeholderOf?: HvColumnInstance
|
|
2001
|
-
getHeaderProps: (propGetter?:
|
|
2002
|
-
getFooterProps: (propGetter?:
|
|
2001
|
+
export declare interface HvColumnInstance<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> extends Omit<ColumnInstance<D>, "Cell" | "columns" | "parent" | "placeholderOf" | "id" | "Header" | "getHeaderProps" | "getFooterProps" | "Footer">, HvTableColumnOptions<D, H>, Partial<UseFiltersColumnProps<D>>, Partial<UseGroupByColumnProps<D>>, Partial<UseResizeColumnsColumnProps<D>>, Partial<UseSortByColumnProps<D>> {
|
|
2002
|
+
Cell?: Renderer<HvCellProps<D, H>>;
|
|
2003
|
+
columns: Array<HvColumnInstance<D, H>>;
|
|
2004
|
+
parent: HvColumnInstance<D, H>;
|
|
2005
|
+
placeholderOf?: HvColumnInstance<D, H>;
|
|
2006
|
+
getHeaderProps: (propGetter?: HvHeaderPropGetter<D, H>) => HvUseTableHeaderProps;
|
|
2007
|
+
getFooterProps: (propGetter?: HvFooterPropGetter<D, H>) => HvUseTableFooterProps;
|
|
2003
2008
|
}
|
|
2004
2009
|
|
|
2005
|
-
declare interface HvColumnInterfaceBasedOnValue<D extends object = Record<string, unknown>, V = any> {
|
|
2006
|
-
Cell?: Renderer<HvCellProps<D, V>>;
|
|
2010
|
+
declare interface HvColumnInterfaceBasedOnValue<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer, V = any> {
|
|
2011
|
+
Cell?: Renderer<HvCellProps<D, H, V>>;
|
|
2007
2012
|
}
|
|
2008
2013
|
|
|
2009
|
-
declare type HvColumnWithLooseAccessor<D extends object = Record<string, unknown
|
|
2010
|
-
Header:
|
|
2014
|
+
declare type HvColumnWithLooseAccessor<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvTableColumnOptions<D, H> & HvColumnInterfaceBasedOnValue<D, H> & ({
|
|
2015
|
+
Header: H;
|
|
2011
2016
|
} | {
|
|
2012
2017
|
id: IdType<D>;
|
|
2013
2018
|
} | {
|
|
@@ -2016,10 +2021,10 @@ declare type HvColumnWithLooseAccessor<D extends object = Record<string, unknown
|
|
|
2016
2021
|
accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D>;
|
|
2017
2022
|
};
|
|
2018
2023
|
|
|
2019
|
-
declare type HvColumnWithStrictAccessor<D extends object = Record<string, unknown
|
|
2024
|
+
declare type HvColumnWithStrictAccessor<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvTableColumnOptions<D, H> & ValueOf<{
|
|
2020
2025
|
[K in keyof D]: {
|
|
2021
2026
|
accessor: K;
|
|
2022
|
-
} & HvColumnInterfaceBasedOnValue<D, D[K]>;
|
|
2027
|
+
} & HvColumnInterfaceBasedOnValue<D, H, D[K]>;
|
|
2023
2028
|
}>;
|
|
2024
2029
|
|
|
2025
2030
|
export declare const HvContainer: ForwardRefExoticComponent<Omit<HvContainerProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
@@ -2135,9 +2140,9 @@ export declare type HvCreateThemeProps = {
|
|
|
2135
2140
|
inheritColorModes?: boolean;
|
|
2136
2141
|
} & HvThemeCustomizationProps;
|
|
2137
2142
|
|
|
2138
|
-
export declare function hvDateColumn<D extends Record<string, unknown>,
|
|
2143
|
+
export declare function hvDateColumn<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(col: HvTableColumnConfig<D, H>, dateFormat?: string): HvTableColumnConfig<D, H>;
|
|
2139
2144
|
|
|
2140
|
-
export declare const HvDateColumnCell: ({ date, dateFormat, }: HvDateColumnCellProp) => JSX.Element
|
|
2145
|
+
export declare const HvDateColumnCell: ({ date, dateFormat, }: HvDateColumnCellProp) => JSX.Element;
|
|
2141
2146
|
|
|
2142
2147
|
declare interface HvDateColumnCellProp {
|
|
2143
2148
|
/** The date's text representation format. */
|
|
@@ -2294,9 +2299,9 @@ export declare type HvDropdownClasses = {
|
|
|
2294
2299
|
rootList?: string;
|
|
2295
2300
|
};
|
|
2296
2301
|
|
|
2297
|
-
export declare function hvDropdownColumn<D extends Record<string, unknown>,
|
|
2302
|
+
export declare function hvDropdownColumn<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(col: HvTableColumnConfig<D, H>, id: string, placeholder: string, disabledPlaceholder: string, onChange?: (identifier: string, value: HvListValue) => void): HvTableColumnConfig<D, H>;
|
|
2298
2303
|
|
|
2299
|
-
export declare const HvDropdownColumnCell: ({ values, disabled, onChange, placeholder, dropdownProps, }: HvDropdownColumnCellProp) => JSX.Element
|
|
2304
|
+
export declare const HvDropdownColumnCell: ({ values, disabled, onChange, placeholder, dropdownProps, }: HvDropdownColumnCellProp) => JSX.Element;
|
|
2300
2305
|
|
|
2301
2306
|
declare interface HvDropdownColumnCellProp {
|
|
2302
2307
|
/** Values to render in the dropdown. */
|
|
@@ -2722,7 +2727,7 @@ export declare type HvEmptyStateProps = HvBaseProps<HTMLDivElement, {
|
|
|
2722
2727
|
classes?: HvEmptyStateClasses;
|
|
2723
2728
|
};
|
|
2724
2729
|
|
|
2725
|
-
export declare function hvExpandColumn<D extends Record<string, unknown
|
|
2730
|
+
export declare function hvExpandColumn<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(col: HvTableColumnConfig<D, H>, expandRowButtonAriaLabel: string, collapseRowButtonAriaLabel: string, getCanRowExpand?: (row: HvRowInstance<D, H>) => boolean): HvTableColumnConfig<D, H>;
|
|
2726
2731
|
|
|
2727
2732
|
export declare type HvExtraDeepPartialProps<T> = Partial<{
|
|
2728
2733
|
[P in keyof T]: DeepPartial<T[P]> & HvExtraProps;
|
|
@@ -2958,6 +2963,10 @@ export declare type HvFooterClasses = {
|
|
|
2958
2963
|
rightContainer?: string;
|
|
2959
2964
|
};
|
|
2960
2965
|
|
|
2966
|
+
declare type HvFooterPropGetter<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvPropGetter<D, H, HvUseTableFooterProps, {
|
|
2967
|
+
column: HvHeaderGroup<D, H>;
|
|
2968
|
+
}>;
|
|
2969
|
+
|
|
2961
2970
|
export declare type HvFooterProps = HvBaseProps & {
|
|
2962
2971
|
name?: React.ReactNode;
|
|
2963
2972
|
copyright?: React.ReactNode;
|
|
@@ -2966,6 +2975,10 @@ export declare type HvFooterProps = HvBaseProps & {
|
|
|
2966
2975
|
classes?: HvFooterClasses;
|
|
2967
2976
|
};
|
|
2968
2977
|
|
|
2978
|
+
declare type HvFooterProps_2<D extends object = Record<string, unknown>> = HvTableInstance<D> & {
|
|
2979
|
+
column: HvColumnInstance<D>;
|
|
2980
|
+
};
|
|
2981
|
+
|
|
2969
2982
|
export declare const HvFormElement: {
|
|
2970
2983
|
({ classes, className, children, id, name, value, disabled, required, readOnly, status, ...others }: HvFormElementProps): JSX_2.Element;
|
|
2971
2984
|
formElementType: string;
|
|
@@ -3273,6 +3286,10 @@ export declare type HvHeaderClasses = {
|
|
|
3273
3286
|
backgroundColor?: string;
|
|
3274
3287
|
};
|
|
3275
3288
|
|
|
3289
|
+
declare interface HvHeaderGroup<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> extends HvColumnInstance<D, H>, Omit<UseTableHeaderGroupProps<D>, "headers"> {
|
|
3290
|
+
headers: Array<HvHeaderGroup<D, H>>;
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3276
3293
|
export declare const HvHeaderMenuBar: ({ id, data, onClick, type, className, }: HvMenuBarProps) => JSX_2.Element;
|
|
3277
3294
|
|
|
3278
3295
|
export declare const HvHeaderMenuItem: ({ id, item, type, onClick }: MenuItemProps) => JSX_2.Element;
|
|
@@ -3303,6 +3320,10 @@ export declare type HvHeaderNavigationProps = HvBaseProps<HTMLDivElement, {
|
|
|
3303
3320
|
|
|
3304
3321
|
export declare type HvHeaderPosition = "fixed" | "absolute" | "sticky" | "static" | "relative";
|
|
3305
3322
|
|
|
3323
|
+
declare type HvHeaderPropGetter<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvPropGetter<D, H, HvUseTableHeaderProps, {
|
|
3324
|
+
column: HvHeaderGroup<D, H>;
|
|
3325
|
+
}>;
|
|
3326
|
+
|
|
3306
3327
|
export declare type HvHeaderProps = HvBaseProps & {
|
|
3307
3328
|
/** The position of the header bar */
|
|
3308
3329
|
position?: HvHeaderPosition;
|
|
@@ -3310,7 +3331,26 @@ export declare type HvHeaderProps = HvBaseProps & {
|
|
|
3310
3331
|
classes?: HvHeaderClasses;
|
|
3311
3332
|
};
|
|
3312
3333
|
|
|
3313
|
-
|
|
3334
|
+
declare type HvHeaderProps_2<D extends object = Record<string, unknown>> = HvTableInstance<D> & {
|
|
3335
|
+
column: HvColumnInstance<D>;
|
|
3336
|
+
};
|
|
3337
|
+
|
|
3338
|
+
export declare interface HvHooks<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> extends Omit<Hooks<D>, "useOptions">, Partial<UseExpandedHooks<D>>, Partial<UseGroupByHooks<D>>, Partial<UseSortByHooks<D>>, Partial<UseHvRowSelectionHooks<D>>, Partial<UseHvTableStickyHooks<D>>, Partial<UseHvPaginationHooks<D>>, Partial<UseHvBulkActionsHooks<D>> {
|
|
3339
|
+
useOptions: Array<(options: HvTableOptions<D, H>, args: HvTableOptions<D, H>) => HvTableOptions<D, H>>;
|
|
3340
|
+
stateReducers: Array<(newState: HvTableState<D>, action: ActionType, previousState?: HvTableState<D>, instance?: HvTableState<D>) => ReducerTableState<D> | undefined>;
|
|
3341
|
+
columns: Array<(columns: Array<HvTableColumnConfig<D, H>>, meta: HvMeta<D, H>) => Array<HvTableColumnConfig<D, H>>>;
|
|
3342
|
+
allColumns: Array<(allColumns: Array<HvColumnInstance<D, H>>, meta: HvMeta<D, H>) => Array<HvTableColumnConfig<D, H>>>;
|
|
3343
|
+
visibleColumns: Array<(allColumns: Array<HvColumnInstance<D, H>>, meta: HvMeta<D, H>) => Array<HvTableColumnConfig<D, H>>>;
|
|
3344
|
+
headerGroups: Array<(allColumns: Array<HvHeaderGroup<D, H>>, meta: HvMeta<D, H>) => Array<HvHeaderGroup<D, H>>>;
|
|
3345
|
+
useInstanceBeforeDimensions: Array<(instance: HvTableInstance<D, H>) => void>;
|
|
3346
|
+
useInstance: Array<(instance: HvTableInstance<D, H>) => void>;
|
|
3347
|
+
useControlledState: Array<(state: HvTableState<D>, meta: HvMeta<D, H>) => HvTableState<D>>;
|
|
3348
|
+
getTableProps: Array<HvTablePropGetter<D, H>>;
|
|
3349
|
+
getHeaderProps: Array<HvHeaderPropGetter<D>>;
|
|
3350
|
+
getFooterProps: Array<HvFooterPropGetter<D>>;
|
|
3351
|
+
getRowProps: Array<HvRowPropGetter<D>>;
|
|
3352
|
+
getCellProps: Array<HvCellPropGetter<D>>;
|
|
3353
|
+
useFinalInstance: Array<(instance: HvTableInstance<D, H>) => void>;
|
|
3314
3354
|
}
|
|
3315
3355
|
|
|
3316
3356
|
/**
|
|
@@ -3920,6 +3960,13 @@ declare type HvMenuBarProps = HvBaseProps<"div", {
|
|
|
3920
3960
|
onClick?: (event: MouseEvent, selection: HvHeaderNavigationItemProp) => void;
|
|
3921
3961
|
};
|
|
3922
3962
|
|
|
3963
|
+
export declare type HvMeta<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer, Extension = never, M = HvMetaBase<D, H>> = [Extension] extends [never] ? M : M & Extension;
|
|
3964
|
+
|
|
3965
|
+
declare interface HvMetaBase<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> {
|
|
3966
|
+
instance: HvTableInstance<D, H>;
|
|
3967
|
+
userProps: any;
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3923
3970
|
export declare const HvMultiButton: ({ className, children, classes, disabled, vertical, variant, ...others }: HvMultiButtonProps) => JSX_2.Element;
|
|
3924
3971
|
|
|
3925
3972
|
export declare type HvMultiButtonClasses = {
|
|
@@ -3955,7 +4002,7 @@ export declare type HvNotistackSnackMessageProps = {
|
|
|
3955
4002
|
snackbarContentProps?: HvSnackbarContentProps;
|
|
3956
4003
|
};
|
|
3957
4004
|
|
|
3958
|
-
export declare function hvNumberColumn<D extends Record<string, unknown>,
|
|
4005
|
+
export declare function hvNumberColumn<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(col: HvTableColumnConfig<D, H>): HvTableColumnConfig<D, H>;
|
|
3959
4006
|
|
|
3960
4007
|
export declare const hvNumberFallback: (value: any) => number | "—";
|
|
3961
4008
|
|
|
@@ -4137,9 +4184,9 @@ export declare type HvProgressBarProps = HvBaseProps & {
|
|
|
4137
4184
|
|
|
4138
4185
|
export declare type HvProgressBarStatus = "inProgress" | "completed" | "error";
|
|
4139
4186
|
|
|
4140
|
-
export declare function hvProgressColumn<D extends Record<string, unknown>,
|
|
4187
|
+
export declare function hvProgressColumn<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(col: HvTableColumnConfig<D, H>, getPartial?: (row: HvRowInstance<D, H>) => number, getTotal?: (row: HvRowInstance<D, H>) => number, color?: "primary" | "secondary"): HvTableColumnConfig<D, H>;
|
|
4141
4188
|
|
|
4142
|
-
export declare const HvProgressColumnCell: ({ partial, total, color, }: HvProgressColumnCellProp) => JSX.Element
|
|
4189
|
+
export declare const HvProgressColumnCell: ({ partial, total, color, }: HvProgressColumnCellProp) => JSX.Element;
|
|
4143
4190
|
|
|
4144
4191
|
declare interface HvProgressColumnCellProp {
|
|
4145
4192
|
/** Current value of the bar. */
|
|
@@ -4150,6 +4197,8 @@ declare interface HvProgressColumnCellProp {
|
|
|
4150
4197
|
color?: "primary" | "secondary";
|
|
4151
4198
|
}
|
|
4152
4199
|
|
|
4200
|
+
export declare type HvPropGetter<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer, Props extends object = Record<string, unknown>, T extends object = never, P = Partial<Props>> = ((props: P, meta: HvMeta<D, H, T>) => P | P[]) | P | P[];
|
|
4201
|
+
|
|
4153
4202
|
/**
|
|
4154
4203
|
* Enables theming capabilities and makes cross-component theme properties available down the tree.
|
|
4155
4204
|
*/
|
|
@@ -4471,16 +4520,20 @@ export declare type HvRightListControls = HvListValue & {
|
|
|
4471
4520
|
desc: boolean;
|
|
4472
4521
|
};
|
|
4473
4522
|
|
|
4474
|
-
export declare interface HvRowInstance<D extends object = Record<string, unknown
|
|
4475
|
-
cells: Array<HvCellInstance<D>>;
|
|
4476
|
-
allCells: Array<HvCellInstance<D>>;
|
|
4477
|
-
getRowProps: (propGetter?:
|
|
4523
|
+
export declare interface HvRowInstance<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> extends Omit<Row<D>, "cells" | "allCells" | "subRows" | "getRowProps">, Partial<Omit<UseGroupByRowProps<D>, "subRows" | "values">>, Partial<UseRowStateRowProps<D>>, Partial<Omit<UseHvRowExpandRowInstance<D>, "subRows">>, Partial<UseHvRowSelectionRowInstance> {
|
|
4524
|
+
cells: Array<HvCellInstance<D, H>>;
|
|
4525
|
+
allCells: Array<HvCellInstance<D, H>>;
|
|
4526
|
+
getRowProps: (propGetter?: HvRowPropGetter<D, H>) => HvUseTableRowProps;
|
|
4478
4527
|
index: number;
|
|
4479
4528
|
original: D;
|
|
4480
4529
|
id: string;
|
|
4481
|
-
subRows: Array<HvRowInstance<D>>;
|
|
4530
|
+
subRows: Array<HvRowInstance<D, H>>;
|
|
4482
4531
|
}
|
|
4483
4532
|
|
|
4533
|
+
declare type HvRowPropGetter<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvPropGetter<D, H, HvUseTableRowProps, {
|
|
4534
|
+
row: HvRowInstance<D, H>;
|
|
4535
|
+
}>;
|
|
4536
|
+
|
|
4484
4537
|
/**
|
|
4485
4538
|
* Allows the user to select one or more items from a list of choices.
|
|
4486
4539
|
*
|
|
@@ -4795,9 +4848,9 @@ export declare type HvSwitchClasses = {
|
|
|
4795
4848
|
invalidSwitch?: string;
|
|
4796
4849
|
};
|
|
4797
4850
|
|
|
4798
|
-
export declare function hvSwitchColumn<D extends Record<string, unknown>,
|
|
4851
|
+
export declare function hvSwitchColumn<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(col: HvTableColumnConfig<D, H>, switchLabel: string, falseLabel?: string, trueLabel?: string, switchProps?: HvBaseSwitchProps): HvTableColumnConfig<D, H>;
|
|
4799
4852
|
|
|
4800
|
-
export declare const HvSwitchColumnCell: ({ checked, value, switchLabel, falseLabel, trueLabel, switchProps, }: HvSwitchColumnCellProp) => JSX.Element
|
|
4853
|
+
export declare const HvSwitchColumnCell: ({ checked, value, switchLabel, falseLabel, trueLabel, switchProps, }: HvSwitchColumnCellProp) => JSX.Element;
|
|
4801
4854
|
|
|
4802
4855
|
declare interface HvSwitchColumnCellProp {
|
|
4803
4856
|
/** Whether the switch is checked or not. */
|
|
@@ -4937,56 +4990,22 @@ export declare type HvTabClasses = {
|
|
|
4937
4990
|
* For better data handling and **advanced features** we recommend the use of the utility hooks collection.
|
|
4938
4991
|
* See the <a href="?id=guides-table-table-hooks--use-hv-hooks&viewMode=docs" target="_self">Table Hooks documentation</a> for more details.
|
|
4939
4992
|
*/
|
|
4940
|
-
export declare const HvTable: ForwardRefExoticComponent<
|
|
4941
|
-
/**
|
|
4942
|
-
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
4943
|
-
* Defaults to `table`.
|
|
4944
|
-
*
|
|
4945
|
-
* When using non-table elements, layout is up to the developer using the component.
|
|
4946
|
-
*/
|
|
4947
|
-
component?: ElementType<any> | undefined;
|
|
4948
|
-
/** Content to be rendered */
|
|
4949
|
-
children: React.ReactNode;
|
|
4950
|
-
/** Whether the `HvTable` has a sticky header row. */
|
|
4951
|
-
stickyHeader?: boolean | undefined;
|
|
4952
|
-
/** Whether the `HvTable` has sticky columns. */
|
|
4953
|
-
stickyColumns?: boolean | undefined;
|
|
4954
|
-
/** Whether the `HvTable` has the list row styles or the default. */
|
|
4955
|
-
variant?: HvTableVariant | undefined;
|
|
4956
|
-
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
4957
|
-
classes?: HvTableClasses | undefined;
|
|
4958
|
-
} & RefAttributes<HTMLElement>>;
|
|
4993
|
+
export declare const HvTable: ForwardRefExoticComponent<HvTableProps & RefAttributes<HTMLElement>>;
|
|
4959
4994
|
|
|
4960
4995
|
/**
|
|
4961
4996
|
* HvTableBody acts as a `tbody` element.
|
|
4962
4997
|
* `HvTableCell` and `HvTableRow` elements in it inherit body-specific styles
|
|
4963
4998
|
*/
|
|
4964
|
-
export declare const HvTableBody: React_2.ForwardRefExoticComponent<
|
|
4965
|
-
children: any;
|
|
4966
|
-
}> & {
|
|
4967
|
-
/**
|
|
4968
|
-
* Content to be rendered
|
|
4969
|
-
*/
|
|
4970
|
-
children: React_2.ReactNode;
|
|
4971
|
-
/**
|
|
4972
|
-
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
4973
|
-
* Defaults to tbody.
|
|
4974
|
-
*/
|
|
4975
|
-
component?: React_2.ElementType<any> | undefined;
|
|
4976
|
-
/** Sets whether or not there should be arrow navigation between the table rows */
|
|
4977
|
-
withNavigation?: boolean | undefined;
|
|
4978
|
-
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
4979
|
-
classes?: HvTableBodyClasses | undefined;
|
|
4980
|
-
} & React_2.RefAttributes<HTMLElement>>;
|
|
4999
|
+
export declare const HvTableBody: React_2.ForwardRefExoticComponent<HvTableBodyProps & React_2.RefAttributes<HTMLElement>>;
|
|
4981
5000
|
|
|
4982
5001
|
export declare type HvTableBodyClasses = {
|
|
4983
5002
|
/** Styles applied to the component root class. */
|
|
4984
5003
|
root?: string;
|
|
4985
5004
|
};
|
|
4986
5005
|
|
|
4987
|
-
export declare
|
|
5006
|
+
export declare interface HvTableBodyProps extends HvBaseProps<HTMLTableSectionElement, {
|
|
4988
5007
|
children: any;
|
|
4989
|
-
}>
|
|
5008
|
+
}> {
|
|
4990
5009
|
/**
|
|
4991
5010
|
* Content to be rendered
|
|
4992
5011
|
*/
|
|
@@ -5000,7 +5019,7 @@ export declare type HvTableBodyProps = HvBaseProps<HTMLTableSectionElement, {
|
|
|
5000
5019
|
withNavigation?: boolean;
|
|
5001
5020
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5002
5021
|
classes?: HvTableBodyClasses;
|
|
5003
|
-
}
|
|
5022
|
+
}
|
|
5004
5023
|
|
|
5005
5024
|
export declare interface HvTAbleBulkActionsProps extends TableCommonProps {
|
|
5006
5025
|
numTotal: number;
|
|
@@ -5014,38 +5033,7 @@ export declare interface HvTAbleBulkActionsProps extends TableCommonProps {
|
|
|
5014
5033
|
/**
|
|
5015
5034
|
* `HvTableCell` acts as a `td` element and inherits styles from its context
|
|
5016
5035
|
*/
|
|
5017
|
-
export declare const HvTableCell: ForwardRefExoticComponent<
|
|
5018
|
-
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to td. */
|
|
5019
|
-
component?: ElementType<any> | undefined;
|
|
5020
|
-
/** Content to be rendered */
|
|
5021
|
-
children?: React.ReactNode;
|
|
5022
|
-
/** Inline styles to be applied to the root element. */
|
|
5023
|
-
style?: CSSProperties | undefined;
|
|
5024
|
-
/** Set the text-align on the table cell content. */
|
|
5025
|
-
align?: HvTableCellAlign | undefined;
|
|
5026
|
-
/** Sets the cell's variant. */
|
|
5027
|
-
variant?: HvTableCellVariant | "listcheckbox" | "listactions" | undefined;
|
|
5028
|
-
/** Specify the cell's type. The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components. */
|
|
5029
|
-
type?: HvTableCellType | undefined;
|
|
5030
|
-
/** Whether or not the cell is part of a sorted column. */
|
|
5031
|
-
sorted?: boolean | undefined;
|
|
5032
|
-
/** The cell is part of a sticky column. */
|
|
5033
|
-
stickyColumn?: boolean | undefined;
|
|
5034
|
-
/** The cell is part of the last sticky to the left column. */
|
|
5035
|
-
stickyColumnMostLeft?: boolean | undefined;
|
|
5036
|
-
/** The cell is part of the first sticky to the right column. */
|
|
5037
|
-
stickyColumnLeastRight?: boolean | undefined;
|
|
5038
|
-
/** The cell is part of the first column in the group. */
|
|
5039
|
-
groupColumnMostLeft?: boolean | undefined;
|
|
5040
|
-
/** The cell is part of the last column in the group. */
|
|
5041
|
-
groupColumnMostRight?: boolean | undefined;
|
|
5042
|
-
/** Whether or not the cell is resizable */
|
|
5043
|
-
resizable?: boolean | undefined;
|
|
5044
|
-
/** Whether or not the cell is being resized */
|
|
5045
|
-
resizing?: boolean | undefined;
|
|
5046
|
-
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5047
|
-
classes?: HvTableCellClasses | undefined;
|
|
5048
|
-
} & RefAttributes<HTMLElement>>;
|
|
5036
|
+
export declare const HvTableCell: ForwardRefExoticComponent<HvTableCellProps & RefAttributes<HTMLElement>>;
|
|
5049
5037
|
|
|
5050
5038
|
export declare type HvTableCellAlign = "center" | "inherit" | "justify" | "left" | "right";
|
|
5051
5039
|
|
|
@@ -5102,7 +5090,7 @@ export declare type HvTableCellClasses = {
|
|
|
5102
5090
|
resizing?: string;
|
|
5103
5091
|
};
|
|
5104
5092
|
|
|
5105
|
-
export declare
|
|
5093
|
+
export declare interface HvTableCellProps extends Omit<TdHTMLAttributes<HTMLTableCellElement>, "align"> {
|
|
5106
5094
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to td. */
|
|
5107
5095
|
component?: React.ElementType;
|
|
5108
5096
|
/** Content to be rendered */
|
|
@@ -5133,7 +5121,7 @@ export declare type HvTableCellProps = Omit<TdHTMLAttributes<HTMLTableCellElemen
|
|
|
5133
5121
|
resizing?: boolean;
|
|
5134
5122
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5135
5123
|
classes?: HvTableCellClasses;
|
|
5136
|
-
}
|
|
5124
|
+
}
|
|
5137
5125
|
|
|
5138
5126
|
export declare type HvTableCellType = "body" | "footer" | "head";
|
|
5139
5127
|
|
|
@@ -5150,38 +5138,26 @@ export declare type HvTableClasses = {
|
|
|
5150
5138
|
listRow?: string;
|
|
5151
5139
|
};
|
|
5152
5140
|
|
|
5153
|
-
export declare type HvTableColumnConfig<D extends object = Record<string, unknown
|
|
5141
|
+
export declare type HvTableColumnConfig<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvColumnGroup<D, H> | HvColumnWithLooseAccessor<D, H> | HvColumnWithStrictAccessor<D, H>;
|
|
5154
5142
|
|
|
5155
|
-
export declare interface HvTableColumnOptions<D extends object = Record<string, unknown
|
|
5143
|
+
export declare interface HvTableColumnOptions<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> extends Omit<ColumnInterface<D>, "Header" | "Footer">, Partial<UseFiltersColumnOptions<D>>, Partial<UseGroupByColumnOptions<D>>, Partial<UseResizeColumnsColumnOptions<D>>, Partial<UseSortByColumnOptions<D>>, Partial<UseGlobalFiltersColumnOptions<D>>, Partial<UseHvTableStylesColumnOptions> {
|
|
5144
|
+
Header?: H;
|
|
5145
|
+
Footer?: Renderer<HvFooterProps_2<D>>;
|
|
5156
5146
|
}
|
|
5157
5147
|
|
|
5158
5148
|
/**
|
|
5159
5149
|
* HvTableContainer is a container for the HvTable
|
|
5160
5150
|
*/
|
|
5161
|
-
export declare const HvTableContainer: ForwardRefExoticComponent<
|
|
5162
|
-
children: any;
|
|
5163
|
-
}> & {
|
|
5164
|
-
/**
|
|
5165
|
-
* Content to be rendered
|
|
5166
|
-
*/
|
|
5167
|
-
children: React.ReactNode;
|
|
5168
|
-
/**
|
|
5169
|
-
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
5170
|
-
* Defaults to tbody.
|
|
5171
|
-
*/
|
|
5172
|
-
component?: ElementType<any> | undefined;
|
|
5173
|
-
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5174
|
-
classes?: HvTableContainerClasses | undefined;
|
|
5175
|
-
} & RefAttributes<HTMLElement>>;
|
|
5151
|
+
export declare const HvTableContainer: ForwardRefExoticComponent<HvTableContainerProps & RefAttributes<HTMLElement>>;
|
|
5176
5152
|
|
|
5177
5153
|
export declare type HvTableContainerClasses = {
|
|
5178
5154
|
/** Styles applied to the component root class. */
|
|
5179
5155
|
root?: string;
|
|
5180
5156
|
};
|
|
5181
5157
|
|
|
5182
|
-
export declare
|
|
5158
|
+
export declare interface HvTableContainerProps extends HvBaseProps<HTMLDivElement, {
|
|
5183
5159
|
children: any;
|
|
5184
|
-
}>
|
|
5160
|
+
}> {
|
|
5185
5161
|
/**
|
|
5186
5162
|
* Content to be rendered
|
|
5187
5163
|
*/
|
|
@@ -5193,33 +5169,15 @@ export declare type HvTableContainerProps = HvBaseProps<HTMLDivElement, {
|
|
|
5193
5169
|
component?: React.ElementType;
|
|
5194
5170
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5195
5171
|
classes?: HvTableContainerClasses;
|
|
5196
|
-
}
|
|
5172
|
+
}
|
|
5197
5173
|
|
|
5198
|
-
export declare type HvTableDefinitionConfig<D extends object = Record<string, unknown
|
|
5174
|
+
export declare type HvTableDefinitionConfig<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvTableOptions<D, H>;
|
|
5199
5175
|
|
|
5200
5176
|
/**
|
|
5201
5177
|
* HvTableHead acts as a `thead` element.
|
|
5202
5178
|
* `HvTableCell` and `HvTableRow` elements in it inherit header-specific styles
|
|
5203
5179
|
*/
|
|
5204
|
-
export declare const HvTableHead: ForwardRefExoticComponent<
|
|
5205
|
-
children: any;
|
|
5206
|
-
}> & {
|
|
5207
|
-
/**
|
|
5208
|
-
* Content to be rendered
|
|
5209
|
-
*/
|
|
5210
|
-
children: React.ReactNode;
|
|
5211
|
-
/**
|
|
5212
|
-
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
5213
|
-
* Defaults to thead.
|
|
5214
|
-
*/
|
|
5215
|
-
component?: ElementType<any> | undefined;
|
|
5216
|
-
/**
|
|
5217
|
-
* The table has sticky headers.
|
|
5218
|
-
*/
|
|
5219
|
-
stickyHeader?: boolean | undefined;
|
|
5220
|
-
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5221
|
-
classes?: HvTableHeadClasses | undefined;
|
|
5222
|
-
} & RefAttributes<HTMLElement>>;
|
|
5180
|
+
export declare const HvTableHead: ForwardRefExoticComponent<HvTableHeadProps & RefAttributes<HTMLElement>>;
|
|
5223
5181
|
|
|
5224
5182
|
export declare type HvTableHeadClasses = {
|
|
5225
5183
|
/** Styles applied to the component root class. */
|
|
@@ -5231,46 +5189,7 @@ export declare type HvTableHeadClasses = {
|
|
|
5231
5189
|
/**
|
|
5232
5190
|
* `HvTableHeader` acts as a `th` element and inherits styles from its context
|
|
5233
5191
|
*/
|
|
5234
|
-
export declare const HvTableHeader: ForwardRefExoticComponent<
|
|
5235
|
-
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to th. */
|
|
5236
|
-
component?: ElementType<any> | undefined;
|
|
5237
|
-
/** Content to be rendered */
|
|
5238
|
-
children?: React.ReactNode;
|
|
5239
|
-
/** The scope of cells that the header element relates to. */
|
|
5240
|
-
scope?: "col" | "colgroup" | "row" | "rowgroup" | undefined;
|
|
5241
|
-
/** Set the text-align on the table cell content. */
|
|
5242
|
-
align?: HvTableCellAlign | undefined;
|
|
5243
|
-
/** Sets the cell's variant. */
|
|
5244
|
-
variant?: HvTableCellVariant | undefined;
|
|
5245
|
-
/** Specify the cell type. The prop defaults to the value inherited from the parent TableHead, TableBody, or TableFooter components. */
|
|
5246
|
-
type?: HvTableCellType | undefined;
|
|
5247
|
-
/** The cell is part of a sticky column. */
|
|
5248
|
-
stickyColumn?: boolean | undefined;
|
|
5249
|
-
/** The cell is part of the last sticky to the left column. */
|
|
5250
|
-
stickyColumnMostLeft?: boolean | undefined;
|
|
5251
|
-
/** The cell is part of the first sticky to the right column. */
|
|
5252
|
-
stickyColumnLeastRight?: boolean | undefined;
|
|
5253
|
-
/** The cell is part of the first column in the group. */
|
|
5254
|
-
groupColumnMostLeft?: boolean | undefined;
|
|
5255
|
-
/** The cell is part of the last column in the group. */
|
|
5256
|
-
groupColumnMostRight?: boolean | undefined;
|
|
5257
|
-
/** Whether or not the cell is sorted */
|
|
5258
|
-
sorted?: boolean | undefined;
|
|
5259
|
-
/** Whether or not the cell is sortable */
|
|
5260
|
-
sortable?: boolean | undefined;
|
|
5261
|
-
/** Set sort direction icon and aria-sort. */
|
|
5262
|
-
sortDirection?: false | "ascending" | "descending" | undefined;
|
|
5263
|
-
/** Extra props to be passed onto the text in the header. */
|
|
5264
|
-
headerTextProps?: HvTypographyProps | undefined;
|
|
5265
|
-
/** Whether or not the cell is resizable */
|
|
5266
|
-
resizable?: boolean | undefined;
|
|
5267
|
-
/** Whether or not the cell is being resized */
|
|
5268
|
-
resizing?: boolean | undefined;
|
|
5269
|
-
/** The resize props injected in the resize handler */
|
|
5270
|
-
resizerProps?: HTMLAttributes<HTMLDivElement> | undefined;
|
|
5271
|
-
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5272
|
-
classes?: HvTableHeaderClasses | undefined;
|
|
5273
|
-
} & RefAttributes<HTMLElement>>;
|
|
5192
|
+
export declare const HvTableHeader: ForwardRefExoticComponent<HvTableHeaderProps & RefAttributes<HTMLElement>>;
|
|
5274
5193
|
|
|
5275
5194
|
export declare type HvTableHeaderClasses = {
|
|
5276
5195
|
/** Styles applied to the component root class. */
|
|
@@ -5341,7 +5260,7 @@ export declare type HvTableHeaderClasses = {
|
|
|
5341
5260
|
resizer?: string;
|
|
5342
5261
|
};
|
|
5343
5262
|
|
|
5344
|
-
export declare
|
|
5263
|
+
export declare interface HvTableHeaderProps extends Omit<ThHTMLAttributes<HTMLTableCellElement>, "align"> {
|
|
5345
5264
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to th. */
|
|
5346
5265
|
component?: React.ElementType;
|
|
5347
5266
|
/** Content to be rendered */
|
|
@@ -5380,13 +5299,15 @@ export declare type HvTableHeaderProps = Omit<ThHTMLAttributes<HTMLTableCellElem
|
|
|
5380
5299
|
resizerProps?: HTMLAttributes<HTMLDivElement>;
|
|
5381
5300
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5382
5301
|
classes?: HvTableHeaderClasses;
|
|
5383
|
-
}
|
|
5302
|
+
}
|
|
5303
|
+
|
|
5304
|
+
export declare type HvTableHeaderRenderer<D extends object = Record<string, unknown>> = Renderer<HvHeaderProps_2<D>>;
|
|
5384
5305
|
|
|
5385
5306
|
export declare type HvTableHeadPropGetter<D extends object> = PropGetter<D, UseHvTableStickyTableHeadProps>;
|
|
5386
5307
|
|
|
5387
|
-
export declare
|
|
5308
|
+
export declare interface HvTableHeadProps extends HvBaseProps<HTMLTableSectionElement, {
|
|
5388
5309
|
children: any;
|
|
5389
|
-
}>
|
|
5310
|
+
}> {
|
|
5390
5311
|
/**
|
|
5391
5312
|
* Content to be rendered
|
|
5392
5313
|
*/
|
|
@@ -5402,33 +5323,40 @@ export declare type HvTableHeadProps = HvBaseProps<HTMLTableSectionElement, {
|
|
|
5402
5323
|
stickyHeader?: boolean;
|
|
5403
5324
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5404
5325
|
classes?: HvTableHeadClasses;
|
|
5405
|
-
}
|
|
5326
|
+
}
|
|
5406
5327
|
|
|
5407
|
-
export declare interface HvTableInstance<D extends object = Record<string, unknown
|
|
5328
|
+
export declare interface HvTableInstance<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> extends Omit<TableInstance<D>, "pageCount" | "data" | "columns" | "rows" | "allColumns" | "visibleColumns" | "headers" | "flatHeaders" | "rowsById" | "prepareRow" | "flatRows" | "headerGroups" | "footerGroups" | "defaultColumn" | "stateReducer" | "useControlledState" | "getRowId" | "getHooks" | "getTableProps">, Omit<HvTableOptions<D, H>, "pageCount" | "columns">, Partial<UseColumnOrderInstanceProps<D>>, Partial<Omit<UseExpandedInstanceProps<D>, "rows">>, Partial<Omit<UseFiltersInstanceProps<D>, "rows" | "rowsById" | "flatRows">>, Partial<Omit<UseGlobalFiltersInstanceProps<D>, "rows" | "rowsById" | "flatRows">>, Partial<Omit<UseGroupByInstanceProps<D>, "rows" | "rowsById" | "flatRows">>, Partial<Omit<UsePaginationInstanceProps<D>, "page">>, Partial<Omit<UseSortByInstanceProps<D>, "rows">>, Partial<UseRowStateInstanceProps<D>>, Partial<Omit<UseHvRowSelectionTableInstance<D>, "selectedFlatRows">>, Partial<UseHvTableStickyTableInstance<D>>, Partial<UseHvHeaderGroupsInstance>, Partial<UseHvPaginationTableInstance<D>>, Partial<UseHvBulkActionsTableInstanceProps<D>> {
|
|
5408
5329
|
initialState: Partial<HvTableState<D>>;
|
|
5409
5330
|
state: HvTableState<D>;
|
|
5410
|
-
columns: Array<HvColumnInstance<D>>;
|
|
5411
|
-
allColumns: Array<HvColumnInstance<D>>;
|
|
5412
|
-
visibleColumns: Array<HvColumnInstance<D>>;
|
|
5413
|
-
headers: Array<HvColumnInstance<D>>;
|
|
5414
|
-
flatHeaders: Array<HvColumnInstance<D>>;
|
|
5415
|
-
rows: Array<HvRowInstance<D>>;
|
|
5416
|
-
page: Array<HvRowInstance<D>>;
|
|
5417
|
-
rowsById: Record<string, HvRowInstance<D>>;
|
|
5418
|
-
flatRows: Array<HvRowInstance<D>>;
|
|
5331
|
+
columns: Array<HvColumnInstance<D, H>>;
|
|
5332
|
+
allColumns: Array<HvColumnInstance<D, H>>;
|
|
5333
|
+
visibleColumns: Array<HvColumnInstance<D, H>>;
|
|
5334
|
+
headers: Array<HvColumnInstance<D, H>>;
|
|
5335
|
+
flatHeaders: Array<HvColumnInstance<D, H>>;
|
|
5336
|
+
rows: Array<HvRowInstance<D, H>>;
|
|
5337
|
+
page: Array<HvRowInstance<D, H>>;
|
|
5338
|
+
rowsById: Record<string, HvRowInstance<D, H>>;
|
|
5339
|
+
flatRows: Array<HvRowInstance<D, H>>;
|
|
5419
5340
|
getHooks: () => HvHooks<D>;
|
|
5420
|
-
getTableProps: (propGetter?:
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5341
|
+
getTableProps: (propGetter?: HvTablePropGetter<D, H>) => HvUseTableProps;
|
|
5342
|
+
prepareRow: (row: HvRowInstance<D, H>) => void;
|
|
5343
|
+
selectedFlatRows: Array<HvRowInstance<D, H>>;
|
|
5344
|
+
initialRows: Array<HvRowInstance<D, H>>;
|
|
5345
|
+
initialRowsById: Record<string, HvRowInstance<D, H>>;
|
|
5424
5346
|
labels: Record<string, string>;
|
|
5347
|
+
headerGroups: Array<HvHeaderGroup<D, H>>;
|
|
5348
|
+
footerGroups: Array<HvHeaderGroup<D, H>>;
|
|
5425
5349
|
}
|
|
5426
5350
|
|
|
5427
|
-
export declare interface HvTableOptions<D extends object> extends Omit<TableOptions<D>, "columns" | "data">, UseExpandedOptions<D
|
|
5428
|
-
columns?: Array<HvTableColumnConfig<D>>;
|
|
5351
|
+
export declare interface HvTableOptions<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> extends Omit<TableOptions<D>, "columns" | "data" | "defaultColumn" | "stateReducer" | "useControlledState" | "getRowId">, Partial<UseExpandedOptions<D>>, Partial<UseFiltersOptions<D>>, Partial<UseGlobalFiltersOptions<D>>, Partial<UseGroupByOptions<D>>, Partial<UsePaginationOptions<D>>, Partial<UseResizeColumnsOptions<D>>, Partial<UseSortByOptions<D>>, Partial<UseRowStateOptions<D>>, Partial<UseHvTableStylesTableOptions>, Partial<UseHvRowSelectionTableOptions>, Partial<UseHvTableStickyTableOptions>, Partial<UseHvBulkActionsTableOptions>, Partial<UseHvRowExpandTableOptions> {
|
|
5352
|
+
columns?: Array<HvTableColumnConfig<D, H>>;
|
|
5429
5353
|
data?: D[];
|
|
5430
5354
|
initialState?: Partial<HvTableState<D>>;
|
|
5431
5355
|
labels?: Record<string, string>;
|
|
5356
|
+
defaultColumn?: Partial<HvTableColumnConfig<D, H>>;
|
|
5357
|
+
stateReducer?: (newState: HvTableState<D>, action: ActionType, previousState: HvTableState<D>, instance?: HvTableInstance<D, H>) => HvTableState<D>;
|
|
5358
|
+
useControlledState?: (state: HvTableState<D>, meta: HvMeta<D, H>) => HvTableState<D>;
|
|
5359
|
+
getRowId?: (originalRow: D, relativeIndex: number, parent?: HvRowInstance<D, H>) => string;
|
|
5432
5360
|
}
|
|
5433
5361
|
|
|
5434
5362
|
export declare interface HvTablePaginationProps extends TableCommonProps {
|
|
@@ -5444,7 +5372,9 @@ export declare interface HvTablePaginationProps extends TableCommonProps {
|
|
|
5444
5372
|
|
|
5445
5373
|
export { HvTablePluginHook }
|
|
5446
5374
|
|
|
5447
|
-
|
|
5375
|
+
declare type HvTablePropGetter<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvPropGetter<D, H, HvUseTableProps>;
|
|
5376
|
+
|
|
5377
|
+
export declare interface HvTableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
5448
5378
|
/**
|
|
5449
5379
|
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
5450
5380
|
* Defaults to `table`.
|
|
@@ -5462,29 +5392,12 @@ export declare type HvTableProps = TableHTMLAttributes<HTMLTableElement> & {
|
|
|
5462
5392
|
variant?: HvTableVariant;
|
|
5463
5393
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5464
5394
|
classes?: HvTableClasses;
|
|
5465
|
-
}
|
|
5395
|
+
}
|
|
5466
5396
|
|
|
5467
5397
|
/**
|
|
5468
5398
|
* `HvTableRow` acts as a `tr` element and inherits styles from its context
|
|
5469
5399
|
*/
|
|
5470
|
-
export declare const HvTableRow: ForwardRefExoticComponent<
|
|
5471
|
-
children: any;
|
|
5472
|
-
}> & {
|
|
5473
|
-
/** Content to be rendered */
|
|
5474
|
-
children: React.ReactNode;
|
|
5475
|
-
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to tbody. */
|
|
5476
|
-
component?: ElementType<any> | undefined;
|
|
5477
|
-
/** Whether the table row will shade on hover. */
|
|
5478
|
-
hover?: boolean | undefined;
|
|
5479
|
-
/** Whether the table row will have the selected shading. */
|
|
5480
|
-
selected?: boolean | undefined;
|
|
5481
|
-
/** Whether the table row is expanded. */
|
|
5482
|
-
expanded?: boolean | undefined;
|
|
5483
|
-
/** Whether the table row background is striped. */
|
|
5484
|
-
striped?: boolean | undefined;
|
|
5485
|
-
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5486
|
-
classes?: HvTableRowClasses | undefined;
|
|
5487
|
-
} & RefAttributes<HTMLElement>>;
|
|
5400
|
+
export declare const HvTableRow: ForwardRefExoticComponent<HvTableRowProps & RefAttributes<HTMLElement>>;
|
|
5488
5401
|
|
|
5489
5402
|
export declare type HvTableRowClasses = {
|
|
5490
5403
|
/** Styles applied to the component root class. */
|
|
@@ -5509,9 +5422,9 @@ export declare type HvTableRowClasses = {
|
|
|
5509
5422
|
variantListHead?: string;
|
|
5510
5423
|
};
|
|
5511
5424
|
|
|
5512
|
-
export declare
|
|
5425
|
+
export declare interface HvTableRowProps extends HvBaseProps<HTMLTableRowElement, {
|
|
5513
5426
|
children: any;
|
|
5514
|
-
}>
|
|
5427
|
+
}> {
|
|
5515
5428
|
/** Content to be rendered */
|
|
5516
5429
|
children: React.ReactNode;
|
|
5517
5430
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to tbody. */
|
|
@@ -5526,9 +5439,9 @@ export declare type HvTableRowProps = HvBaseProps<HTMLTableRowElement, {
|
|
|
5526
5439
|
striped?: boolean;
|
|
5527
5440
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5528
5441
|
classes?: HvTableRowClasses;
|
|
5529
|
-
}
|
|
5442
|
+
}
|
|
5530
5443
|
|
|
5531
|
-
export declare interface HvTableState<D extends object = Record<string, unknown>> extends TableState<D>, UseColumnOrderState<D
|
|
5444
|
+
export declare interface HvTableState<D extends object = Record<string, unknown>> extends TableState<D>, Partial<UseColumnOrderState<D>>, Partial<UseExpandedState<D>>, Partial<UseFiltersState<D>>, Partial<UseGlobalFiltersState<D>>, Partial<UseGroupByState<D>>, Partial<UsePaginationState<D>>, Partial<UseResizeColumnsState<D>>, Partial<UseSortByState<D>>, Partial<UseRowStateState<D>>, Partial<UseHvRowSelectionState<D>> {
|
|
5532
5445
|
rowCount: number;
|
|
5533
5446
|
}
|
|
5534
5447
|
|
|
@@ -5605,7 +5518,7 @@ export declare type HvTagClasses = {
|
|
|
5605
5518
|
disabledDeleteIcon?: string;
|
|
5606
5519
|
};
|
|
5607
5520
|
|
|
5608
|
-
export declare function hvTagColumn<D extends Record<string, unknown>,
|
|
5521
|
+
export declare function hvTagColumn<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer, A extends object = Record<string, unknown>>(col: HvTableColumnConfig<D, H>, valueDataKey: keyof A, colorDataKey: keyof A, textColorDataKey: keyof A, fromRowData?: boolean, tagProps?: HvTagProps): HvTableColumnConfig<D, H>;
|
|
5609
5522
|
|
|
5610
5523
|
export declare type HvTagProps = Omit<ChipProps, "color" | "classes"> & HvBaseProps<HTMLDivElement, {
|
|
5611
5524
|
children: any;
|
|
@@ -5885,7 +5798,7 @@ export declare type HvTextAreaProps = Omit<HvBaseInputProps, "onChange" | "onBlu
|
|
|
5885
5798
|
classes?: HvTextAreaClasses;
|
|
5886
5799
|
};
|
|
5887
5800
|
|
|
5888
|
-
export declare function hvTextColumn<D extends Record<string, unknown>,
|
|
5801
|
+
export declare function hvTextColumn<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(col: HvTableColumnConfig<D, H>): HvTableColumnConfig<D, H>;
|
|
5889
5802
|
|
|
5890
5803
|
export { HvTheme }
|
|
5891
5804
|
|
|
@@ -6105,19 +6018,19 @@ export declare type HvTypographyVariants = "display" | "title1" | "title2" | "ti
|
|
|
6105
6018
|
|
|
6106
6019
|
export declare type HvUndefinedStateColorKeys = "atmo4";
|
|
6107
6020
|
|
|
6108
|
-
export declare interface HvUseTableCellProps extends TableCellProps, UseHvTableStylesTableCellProps, UseHvTableStickyCellProps, UseHvHeaderGroupsCellProps, UseHvResizeTableCellProps, UseHvSortByTableCellProps {
|
|
6021
|
+
export declare interface HvUseTableCellProps extends Omit<TableCellProps, "role">, Omit<UseHvTableStylesTableCellProps, "variant" | "classes">, UseHvTableStickyCellProps, UseHvHeaderGroupsCellProps, UseHvResizeTableCellProps, UseHvSortByTableCellProps, HvTableCellProps {
|
|
6109
6022
|
}
|
|
6110
6023
|
|
|
6111
6024
|
export declare interface HvUseTableFooterProps extends TableFooterProps, UseHvTableStylesTableCellProps {
|
|
6112
6025
|
}
|
|
6113
6026
|
|
|
6114
|
-
export declare interface HvUseTableHeaderProps extends TableHeaderProps, UseHvTableStylesTableCellProps, UseHvTableStickyColumnProps, UseHvHeaderGroupsColumnProps, UseHvResizeColumnProps, UseHvSortByColumnProps {
|
|
6027
|
+
export declare interface HvUseTableHeaderProps extends Omit<TableHeaderProps, "role">, Omit<UseHvTableStylesTableCellProps, "classes">, UseHvTableStickyColumnProps, UseHvHeaderGroupsColumnProps, UseHvResizeColumnProps, Omit<UseHvSortByColumnProps, "sortDirection">, HvTableHeaderProps {
|
|
6115
6028
|
}
|
|
6116
6029
|
|
|
6117
|
-
export declare interface HvUseTableProps extends TableProps, UseHvTableStickyTableProps {
|
|
6030
|
+
export declare interface HvUseTableProps extends Omit<TableProps, "role">, UseHvTableStickyTableProps, HvTableProps {
|
|
6118
6031
|
}
|
|
6119
6032
|
|
|
6120
|
-
export declare interface HvUseTableRowProps extends TableRowProps, UseHvTableStylesTableRowProps, UseHvRowSelectionTableRowProps, UseHvRowExpandTableRowProps {
|
|
6033
|
+
export declare interface HvUseTableRowProps extends Omit<TableRowProps, "role">, UseHvTableStylesTableRowProps, UseHvRowSelectionTableRowProps, UseHvRowExpandTableRowProps, HvTableRowProps {
|
|
6121
6034
|
}
|
|
6122
6035
|
|
|
6123
6036
|
export declare type HvValidationMessages = {
|
|
@@ -7106,6 +7019,8 @@ export declare interface UseHvRowSelectionRowCheckboxProps {
|
|
|
7106
7019
|
export declare interface UseHvRowSelectionRowInstance {
|
|
7107
7020
|
isSelected: boolean;
|
|
7108
7021
|
isSomeSelected: boolean;
|
|
7022
|
+
isSelectionLocked: boolean;
|
|
7023
|
+
toggleRowLockedSelection: (set?: boolean) => void;
|
|
7109
7024
|
toggleRowSelected: (set?: boolean) => void;
|
|
7110
7025
|
getToggleRowSelectedProps: (props?: Partial<UseHvRowSelectionRowCheckboxProps>) => UseHvRowSelectionRowCheckboxProps;
|
|
7111
7026
|
}
|
|
@@ -7155,7 +7070,7 @@ export declare interface UseHvSortByColumnProps {
|
|
|
7155
7070
|
sortable?: boolean;
|
|
7156
7071
|
sorted?: boolean;
|
|
7157
7072
|
sortDirection?: "descending" | "ascending";
|
|
7158
|
-
onClick
|
|
7073
|
+
onClick?: (e: React.MouseEvent<HTMLTableCellElement>) => void;
|
|
7159
7074
|
}
|
|
7160
7075
|
|
|
7161
7076
|
export declare type UseHvSortByProps = (<D extends object = Record<string, unknown>>(hooks: Hooks<D>) => void) & {
|
|
@@ -7166,11 +7081,11 @@ export declare interface UseHvSortByTableCellProps {
|
|
|
7166
7081
|
sorted?: boolean;
|
|
7167
7082
|
}
|
|
7168
7083
|
|
|
7169
|
-
declare function useHvTable<D extends object = Record<string, unknown
|
|
7084
|
+
declare function useHvTable<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(options: HvTableOptions<D, H>, ...plugins: HvTablePluginHook<D>[]): HvTableInstance<D, H>;
|
|
7170
7085
|
export { useHvTable as useHvData }
|
|
7171
7086
|
export { useHvTable }
|
|
7172
7087
|
|
|
7173
|
-
export declare type UseHvTableProps = <D extends object = Record<string, unknown
|
|
7088
|
+
export declare type UseHvTableProps = <D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(options: HvTableOptions<D, H>, ...plugins: Array<HvTablePluginHook<D>>) => HvTableInstance<D, H>;
|
|
7174
7089
|
|
|
7175
7090
|
export declare type UseHvTableSticky = (<D extends object = Record<string, unknown>>(hooks: Hooks<D>) => void) & {
|
|
7176
7091
|
pluginName: string;
|