@syook/react-tabulous 4.2.0 → 4.4.0
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/lib/index.d.ts +10 -1
- package/lib/index.esm.js +3 -3
- package/lib/index.js +3 -3
- package/lib/types/reactTabulous/components/columnHeaders/columnHeaderItem.d.ts +1 -0
- package/lib/types/reactTabulous/components/widgets/icon.d.ts +1 -0
- package/lib/types/reactTabulous/helpers/getFormattedFilters.d.ts +10 -0
- package/lib/types/reactTabulous/hooks/useGridRootProps.d.ts +1 -0
- package/lib/types/reactTabulous/models/columnDef/columnDef.d.ts +4 -0
- package/lib/types/reactTabulous/models/gridFiltersModel.d.ts +1 -1
- package/lib/types/reactTabulous/models/props/dataGridProps.d.ts +5 -0
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ type ColumnHeaderItemProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
20
20
|
disableMultipleColumnsSorting: boolean;
|
|
21
21
|
fetchOnPageChange: boolean;
|
|
22
22
|
headerName: string;
|
|
23
|
+
headerPopupContent: string | HTMLElement | JSX.Element | Element | (() => JSX.Element);
|
|
23
24
|
sortBy: GridSortDirection;
|
|
24
25
|
iconButtonSize?: number;
|
|
25
26
|
pinned?: GridPinnedPosition;
|
|
@@ -27,6 +27,7 @@ declare const icons: {
|
|
|
27
27
|
'keyboard-back': import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
'keyboard-forward': import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
search: import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
info: import("react/jsx-runtime").JSX.Element;
|
|
30
31
|
};
|
|
31
32
|
export type Icons = keyof typeof icons;
|
|
32
33
|
interface IconProps extends React.HTMLAttributes<HTMLOrSVGElement> {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FilterFieldProps, type GridBaseColDef } from '../models';
|
|
2
|
+
export declare const getFormattedFilters: (filters: FilterFieldProps[], columns: GridBaseColDef[]) => {
|
|
3
|
+
options: import("./select").OptionInterface[] | undefined;
|
|
4
|
+
field?: string | undefined;
|
|
5
|
+
type: string;
|
|
6
|
+
condition: string;
|
|
7
|
+
column: string;
|
|
8
|
+
operator: string;
|
|
9
|
+
value: any;
|
|
10
|
+
}[];
|
|
@@ -14,6 +14,10 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
14
14
|
* The title of the column rendered in the column header cell.
|
|
15
15
|
*/
|
|
16
16
|
headerName: string;
|
|
17
|
+
/**
|
|
18
|
+
* The hover text or component of the column rendered in the column header cell.
|
|
19
|
+
*/
|
|
20
|
+
headerPopupContent?: string | (() => JSX.Element);
|
|
17
21
|
/**
|
|
18
22
|
* Get the values to be displayed in the table cell.
|
|
19
23
|
*/
|
|
@@ -158,6 +158,11 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
158
158
|
*
|
|
159
159
|
*/
|
|
160
160
|
customExport: null | ((filteredAndSortedData: any, searchText: string, columns: any) => void);
|
|
161
|
+
/**
|
|
162
|
+
* Callback fired when filter is changed with filters as arguments.
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
onFilterChange: null | ((filters: FilterFieldProps[]) => void);
|
|
161
166
|
/**
|
|
162
167
|
* custom placeholder for the search field.
|
|
163
168
|
*/
|