@syook/react-tabulous 4.2.0 → 4.3.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
package/lib/index.d.ts
CHANGED
|
@@ -81,6 +81,10 @@ interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel, V = an
|
|
|
81
81
|
* The title of the column rendered in the column header cell.
|
|
82
82
|
*/
|
|
83
83
|
headerName: string;
|
|
84
|
+
/**
|
|
85
|
+
* The hover text or component of the column rendered in the column header cell.
|
|
86
|
+
*/
|
|
87
|
+
headerPopupContent?: string | (() => JSX.Element);
|
|
84
88
|
/**
|
|
85
89
|
* Get the values to be displayed in the table cell.
|
|
86
90
|
*/
|
|
@@ -168,7 +172,7 @@ interface FilterFieldProps {
|
|
|
168
172
|
type: 'string' | 'number' | 'date' | 'dateTime' | 'boolean' | 'singleSelect';
|
|
169
173
|
operator: string;
|
|
170
174
|
value: any;
|
|
171
|
-
field
|
|
175
|
+
field?: string;
|
|
172
176
|
options?: string[] | OptionInterface[];
|
|
173
177
|
}
|
|
174
178
|
|
|
@@ -325,6 +329,11 @@ interface DataGridPropsWithDefaultValues {
|
|
|
325
329
|
*
|
|
326
330
|
*/
|
|
327
331
|
customExport: null | ((filteredAndSortedData: any, searchText: string, columns: any) => void);
|
|
332
|
+
/**
|
|
333
|
+
* Callback fired when filter is changed with filters as arguments.
|
|
334
|
+
*
|
|
335
|
+
*/
|
|
336
|
+
onFilterChange: null | ((filters: FilterFieldProps[]) => void);
|
|
328
337
|
/**
|
|
329
338
|
* custom placeholder for the search field.
|
|
330
339
|
*/
|