@linzjs/step-ag-grid 20.0.0 → 21.0.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/dist/src/components/ComponentLoadingWrapper.d.ts +9 -9
- package/dist/src/components/Grid.d.ts +80 -80
- package/dist/src/components/GridCell.d.ts +63 -27
- package/dist/src/components/GridCell.test.d.ts +1 -1
- package/dist/src/components/GridCellFiller.d.ts +5 -4
- package/dist/src/components/GridCellMultiEditor.d.ts +18 -18
- package/dist/src/components/GridCellMultiSelectClassRules.d.ts +2 -2
- package/dist/src/components/GridIcon.d.ts +9 -9
- package/dist/src/components/GridLoadableCell.d.ts +1 -1
- package/dist/src/components/GridNoRowsOverlay.d.ts +9 -9
- package/dist/src/components/GridPopoverHook.d.ts +12 -12
- package/dist/src/components/GridWrapper.d.ts +5 -5
- package/dist/src/components/PostSortRowsHook.d.ts +11 -11
- package/dist/src/components/gridFilter/GridFilterButtons.d.ts +16 -16
- package/dist/src/components/gridFilter/GridFilterColumnsToggle.d.ts +5 -5
- package/dist/src/components/gridFilter/GridFilterDownloadCsvButton.d.ts +2 -2
- package/dist/src/components/gridFilter/GridFilterHeaderIconButton.d.ts +11 -11
- package/dist/src/components/gridFilter/GridFilterQuick.d.ts +5 -5
- package/dist/src/components/gridFilter/GridFilters.d.ts +2 -2
- package/dist/src/components/gridFilter/index.d.ts +7 -7
- package/dist/src/components/gridFilter/useGridFilter.d.ts +3 -3
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +37 -37
- package/dist/src/components/gridForm/GridFormEditBearing.d.ts +12 -12
- package/dist/src/components/gridForm/GridFormMessage.d.ts +7 -7
- package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +36 -36
- package/dist/src/components/gridForm/GridFormMultiSelectGrid.d.ts +24 -24
- package/dist/src/components/gridForm/GridFormPopoverMenu.d.ts +36 -36
- package/dist/src/components/gridForm/GridFormSubComponentTextArea.d.ts +12 -12
- package/dist/src/components/gridForm/GridFormSubComponentTextInput.d.ts +11 -11
- package/dist/src/components/gridForm/GridFormTextArea.d.ts +14 -14
- package/dist/src/components/gridForm/GridFormTextInput.d.ts +14 -14
- package/dist/src/components/gridForm/index.d.ts +10 -10
- package/dist/src/components/gridHeader/GridHeaderSelect.d.ts +7 -7
- package/dist/src/components/gridHeader/index.d.ts +1 -1
- package/dist/src/components/gridHook/index.d.ts +1 -1
- package/dist/src/components/gridHook/useGridContextMenu.d.ts +19 -19
- package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.d.ts +5 -5
- package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelectGrid.d.ts +5 -5
- package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +16 -16
- package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +5 -5
- package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +8 -8
- package/dist/src/components/gridPopoverEdit/GridPopoverMessage.d.ts +5 -5
- package/dist/src/components/gridPopoverEdit/GridPopoverTextArea.d.ts +5 -5
- package/dist/src/components/gridPopoverEdit/GridPopoverTextInput.d.ts +5 -5
- package/dist/src/components/gridPopoverEdit/index.d.ts +9 -9
- package/dist/src/components/gridRender/GridRenderGenericCell.d.ts +16 -37
- package/dist/src/components/gridRender/GridRenderPopoutMenuCell.d.ts +2 -2
- package/dist/src/components/gridRender/index.d.ts +2 -2
- package/dist/src/components/gridUtil.d.ts +3 -3
- package/dist/src/components/index.d.ts +18 -18
- package/dist/src/contexts/GridContext.d.ts +67 -67
- package/dist/src/contexts/GridContextProvider.d.ts +15 -15
- package/dist/src/contexts/GridContextProvider.test.d.ts +1 -1
- package/dist/src/contexts/GridPopoverContext.d.ts +15 -15
- package/dist/src/contexts/GridPopoverContextProvider.d.ts +7 -7
- package/dist/src/contexts/GridSubComponentContext.d.ts +10 -10
- package/dist/src/contexts/GridUpdatingContext.d.ts +8 -8
- package/dist/src/contexts/GridUpdatingContextProvider.d.ts +3 -3
- package/dist/src/index.d.ts +17 -17
- package/dist/src/lui/ActionButton.d.ts +20 -20
- package/dist/src/lui/FormError.d.ts +7 -7
- package/dist/src/lui/TextAreaInput.d.ts +11 -11
- package/dist/src/lui/TextInputFormatted.d.ts +10 -10
- package/dist/src/lui/reactUtils.d.ts +6 -6
- package/dist/src/lui/reactUtils.test.d.ts +1 -1
- package/dist/src/lui/stateDeferredHook.d.ts +4 -4
- package/dist/src/lui/timeoutHook.d.ts +14 -14
- package/dist/src/lui/timeoutHook.test.d.ts +1 -1
- package/dist/src/react-menu3/components/ControlledMenu.d.ts +8 -8
- package/dist/src/react-menu3/components/FocusableItem.d.ts +9 -9
- package/dist/src/react-menu3/components/Menu.d.ts +16 -16
- package/dist/src/react-menu3/components/MenuButton.d.ts +8 -8
- package/dist/src/react-menu3/components/MenuDivider.d.ts +3 -3
- package/dist/src/react-menu3/components/MenuGroup.d.ts +12 -12
- package/dist/src/react-menu3/components/MenuHeader.d.ts +4 -4
- package/dist/src/react-menu3/components/MenuItem.d.ts +59 -59
- package/dist/src/react-menu3/components/MenuList.d.ts +2 -2
- package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +25 -25
- package/dist/src/react-menu3/components/SubMenu.d.ts +110 -110
- package/dist/src/react-menu3/contexts/EventHandlersContext.d.ts +7 -7
- package/dist/src/react-menu3/contexts/HoverItemContext.d.ts +2 -2
- package/dist/src/react-menu3/contexts/ItemSettingsContext.d.ts +5 -5
- package/dist/src/react-menu3/contexts/MenuListContext.d.ts +9 -9
- package/dist/src/react-menu3/contexts/MenuListItemContext.d.ts +11 -11
- package/dist/src/react-menu3/contexts/RadioGroupContext.d.ts +7 -7
- package/dist/src/react-menu3/contexts/SettingsContext.d.ts +20 -20
- package/dist/src/react-menu3/hooks/index.d.ts +9 -9
- package/dist/src/react-menu3/hooks/useBEM.d.ts +10 -10
- package/dist/src/react-menu3/hooks/useCombinedRef.d.ts +2 -2
- package/dist/src/react-menu3/hooks/useIsomorphicLayoutEffect.d.ts +3 -3
- package/dist/src/react-menu3/hooks/useItemEffect.d.ts +2 -2
- package/dist/src/react-menu3/hooks/useItemState.d.ts +7 -7
- package/dist/src/react-menu3/hooks/useItems.d.ts +7 -7
- package/dist/src/react-menu3/hooks/useMenuChange.d.ts +2 -2
- package/dist/src/react-menu3/hooks/useMenuState.d.ts +23 -14
- package/dist/src/react-menu3/hooks/useMenuStateAndFocus.d.ts +2 -2
- package/dist/src/react-menu3/index.d.ts +11 -11
- package/dist/src/react-menu3/positionUtils/getPositionHelpers.d.ts +11 -11
- package/dist/src/react-menu3/positionUtils/index.d.ts +3 -3
- package/dist/src/react-menu3/positionUtils/placeArrowHorizontal.d.ts +8 -8
- package/dist/src/react-menu3/positionUtils/placeArrowVertical.d.ts +8 -8
- package/dist/src/react-menu3/positionUtils/placeLeftorRight.d.ts +19 -19
- package/dist/src/react-menu3/positionUtils/placeToporBottom.d.ts +19 -19
- package/dist/src/react-menu3/positionUtils/positionContextMenu.d.ts +13 -13
- package/dist/src/react-menu3/positionUtils/positionMenu.d.ts +26 -26
- package/dist/src/react-menu3/style-utils/index.d.ts +11 -11
- package/dist/src/react-menu3/types.d.ts +401 -401
- package/dist/src/react-menu3/utils/constants.d.ts +54 -54
- package/dist/src/react-menu3/utils/index.d.ts +3 -3
- package/dist/src/react-menu3/utils/propTypes2.d.ts +56 -56
- package/dist/src/react-menu3/utils/utils.d.ts +37 -37
- package/dist/src/react-menu3/utils/withHovering.d.ts +7 -7
- package/dist/src/utils/bearing.d.ts +19 -19
- package/dist/src/utils/bearing.test.d.ts +1 -1
- package/dist/src/utils/deferredPromise.d.ts +5 -5
- package/dist/src/utils/storybookTestUtil.d.ts +3 -3
- package/dist/src/utils/testQuick.d.ts +62 -62
- package/dist/src/utils/testUtil.d.ts +46 -45
- package/dist/src/utils/textMatcher.d.ts +13 -13
- package/dist/src/utils/textMatcher.test.d.ts +1 -1
- package/dist/src/utils/textValidator.d.ts +18 -18
- package/dist/src/utils/textValidator.test.d.ts +1 -1
- package/dist/src/utils/util.d.ts +8 -8
- package/dist/src/utils/util.test.d.ts +1 -1
- package/dist/step-ag-grid.cjs.js +4652 -4651
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +4652 -4651
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/dist/vite.config.d.ts +2 -0
- package/package.json +21 -20
- package/src/components/Grid.tsx +4 -4
- package/src/components/GridCell.test.tsx +2 -3
- package/src/components/GridCell.tsx +75 -23
- package/src/components/GridCellFiller.tsx +2 -1
- package/src/components/GridCellMultiEditor.tsx +9 -9
- package/src/components/GridCellMultiSelectClassRules.tsx +4 -4
- package/src/components/GridPopoverHook.tsx +4 -4
- package/src/components/PostSortRowsHook.ts +2 -2
- package/src/components/gridFilter/GridFilterButtons.tsx +6 -6
- package/src/components/gridFilter/GridFilterColumnsToggle.tsx +2 -5
- package/src/components/gridFilter/GridFilterDownloadCsvButton.tsx +1 -1
- package/src/components/gridFilter/useGridFilter.ts +1 -1
- package/src/components/gridForm/GridFormDropDown.tsx +9 -9
- package/src/components/gridForm/GridFormEditBearing.tsx +5 -5
- package/src/components/gridForm/GridFormMessage.tsx +4 -4
- package/src/components/gridForm/GridFormMultiSelect.tsx +9 -9
- package/src/components/gridForm/GridFormMultiSelectGrid.tsx +11 -11
- package/src/components/gridForm/GridFormPopoverMenu.tsx +13 -13
- package/src/components/gridForm/GridFormSubComponentTextArea.tsx +4 -4
- package/src/components/gridForm/GridFormSubComponentTextInput.tsx +4 -4
- package/src/components/gridForm/GridFormTextArea.tsx +6 -6
- package/src/components/gridForm/GridFormTextInput.tsx +7 -7
- package/src/components/gridHook/useGridContextMenu.tsx +8 -8
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts +6 -6
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelectGrid.ts +6 -6
- package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +16 -16
- package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +6 -6
- package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +5 -5
- package/src/components/gridPopoverEdit/GridPopoverMessage.ts +5 -5
- package/src/components/gridPopoverEdit/GridPopoverTextArea.ts +5 -4
- package/src/components/gridPopoverEdit/GridPopoverTextInput.ts +5 -5
- package/src/components/gridRender/GridRenderGenericCell.tsx +6 -36
- package/src/contexts/GridContext.tsx +7 -7
- package/src/contexts/GridContextProvider.test.tsx +1 -1
- package/src/contexts/GridContextProvider.tsx +10 -10
- package/src/contexts/GridPopoverContext.tsx +6 -6
- package/src/stories/grid/GridDragRow.stories.tsx +4 -4
- package/src/stories/grid/GridNonEditableRow.stories.tsx +2 -3
- package/src/stories/grid/GridPopoutContextMenu.stories.tsx +2 -2
- package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +1 -1
- package/src/stories/grid/GridPopoverEditBearing.stories.tsx +2 -2
- package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +3 -3
- package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +2 -2
- package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +2 -2
- package/src/stories/grid/GridReadOnly.stories.tsx +6 -6
- package/src/stories/grid/GridViewList.stories.tsx +5 -7
- package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +3 -3
- package/src/utils/testUtil.ts +49 -7
- package/src/utils/textValidator.ts +5 -5
- package/src/utils/util.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* If loading is true this returns a loading spinner, otherwise it returns its children.
|
|
4
|
-
*/
|
|
5
|
-
export declare const ComponentLoadingWrapper: (props: PropsWithChildren<{
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
saving?: boolean;
|
|
8
|
-
className: string | undefined;
|
|
9
|
-
}>) => ReactElement;
|
|
1
|
+
import { PropsWithChildren, ReactElement } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* If loading is true this returns a loading spinner, otherwise it returns its children.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ComponentLoadingWrapper: (props: PropsWithChildren<{
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
saving?: boolean;
|
|
8
|
+
className: string | undefined;
|
|
9
|
+
}>) => ReactElement;
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { ColDef } from "ag-grid-community";
|
|
2
|
-
import { GridOptions } from "ag-grid-community
|
|
3
|
-
import { ReactElement } from "react";
|
|
4
|
-
import { GridContextMenuComponent } from "./gridHook";
|
|
5
|
-
export interface GridBaseRow {
|
|
6
|
-
id: string | number;
|
|
7
|
-
}
|
|
8
|
-
export interface GridProps {
|
|
9
|
-
readOnly?: boolean;
|
|
10
|
-
selectable?: boolean;
|
|
11
|
-
theme?: string;
|
|
12
|
-
["data-testid"]?: string;
|
|
13
|
-
domLayout?: GridOptions["domLayout"];
|
|
14
|
-
externalSelectedItems?: any[];
|
|
15
|
-
setExternalSelectedItems?: (items: any[]) => void;
|
|
16
|
-
defaultColDef?: GridOptions["defaultColDef"];
|
|
17
|
-
columnDefs: ColDef[];
|
|
18
|
-
rowData: GridOptions["rowData"];
|
|
19
|
-
/**
|
|
20
|
-
* Whether select column is pinned. Defaults to "left".
|
|
21
|
-
*/
|
|
22
|
-
selectColumnPinned?: ColDef["pinned"];
|
|
23
|
-
noRowsOverlayText?: string;
|
|
24
|
-
noRowsMatchingOverlayText?: string;
|
|
25
|
-
animateRows?: boolean;
|
|
26
|
-
rowHeight?: number;
|
|
27
|
-
rowClassRules?: GridOptions["rowClassRules"];
|
|
28
|
-
rowSelection?: "single" | "multiple";
|
|
29
|
-
autoSelectFirstRow?: boolean;
|
|
30
|
-
onColumnMoved?: GridOptions["onColumnMoved"];
|
|
31
|
-
rowDragText?: GridOptions["rowDragText"];
|
|
32
|
-
onRowDragEnd?: (movedRow: any, targetRow: any, targetIndex: number) => Promise<void>;
|
|
33
|
-
alwaysShowVerticalScroll?: boolean;
|
|
34
|
-
suppressColumnVirtualization?: GridOptions["suppressColumnVirtualisation"];
|
|
35
|
-
/**
|
|
36
|
-
* When the grid is rendered using sizeColumns=="auto" this is called initially with the required container size to fit all content.
|
|
37
|
-
* This allows you set the size of the panel to fit perfectly.
|
|
38
|
-
*/
|
|
39
|
-
onContentSize?: (props: {
|
|
40
|
-
width: number;
|
|
41
|
-
}) => void;
|
|
42
|
-
/**
|
|
43
|
-
* <ul>
|
|
44
|
-
* <li>"none" to use aggrid defaults.</li>
|
|
45
|
-
* <li>"fit" will adjust columns to fit within panel via min/max/initial sizing.
|
|
46
|
-
* <b>Note:</b> This is only really needed if you have auto-height columns which prevents "auto" from working.
|
|
47
|
-
* </li>
|
|
48
|
-
* <li>"auto" will size columns based on their content but still obeying min/max sizing.</li>
|
|
49
|
-
* <li>"auto-skip-headers" (default) same as auto but does not take headers into account.</li>
|
|
50
|
-
* </ul>
|
|
51
|
-
*
|
|
52
|
-
* If you want to stretch to container width if width is greater than the container add a flex column.
|
|
53
|
-
*/
|
|
54
|
-
sizeColumns?: "fit" | "auto" | "auto-skip-headers" | "none";
|
|
55
|
-
/**
|
|
56
|
-
* When pressing tab whilst editing the grid will select and edit the next cell if available.
|
|
57
|
-
* Once the last cell to edit closes this callback is called.
|
|
58
|
-
*/
|
|
59
|
-
onCellEditingComplete?: () => void;
|
|
60
|
-
/**
|
|
61
|
-
* Context menu definition if required.
|
|
62
|
-
*/
|
|
63
|
-
contextMenu?: GridContextMenuComponent<any>;
|
|
64
|
-
/**
|
|
65
|
-
* Whether to select row on context menu.
|
|
66
|
-
*/
|
|
67
|
-
contextMenuSelectRow?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Defaults to false.
|
|
70
|
-
*/
|
|
71
|
-
singleClickEdit?: boolean;
|
|
72
|
-
loading?: boolean;
|
|
73
|
-
suppressCellFocus?: boolean;
|
|
74
|
-
pinnedTopRowData?: GridOptions["pinnedTopRowData"];
|
|
75
|
-
pinnedBottomRowData?: GridOptions["pinnedBottomRowData"];
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Wrapper for AgGrid to add commonly used functionality.
|
|
79
|
-
*/
|
|
80
|
-
export declare const Grid: ({ "data-testid": dataTestId, rowSelection, suppressColumnVirtualization, theme, sizeColumns, selectColumnPinned, contextMenuSelectRow, singleClickEdit, rowData, rowHeight, ...params }: GridProps) => ReactElement;
|
|
1
|
+
import { ColDef } from "ag-grid-community";
|
|
2
|
+
import { GridOptions } from "ag-grid-community";
|
|
3
|
+
import { ReactElement } from "react";
|
|
4
|
+
import { GridContextMenuComponent } from "./gridHook";
|
|
5
|
+
export interface GridBaseRow {
|
|
6
|
+
id: string | number;
|
|
7
|
+
}
|
|
8
|
+
export interface GridProps {
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
selectable?: boolean;
|
|
11
|
+
theme?: string;
|
|
12
|
+
["data-testid"]?: string;
|
|
13
|
+
domLayout?: GridOptions["domLayout"];
|
|
14
|
+
externalSelectedItems?: any[];
|
|
15
|
+
setExternalSelectedItems?: (items: any[]) => void;
|
|
16
|
+
defaultColDef?: GridOptions["defaultColDef"];
|
|
17
|
+
columnDefs: ColDef[];
|
|
18
|
+
rowData: GridOptions["rowData"];
|
|
19
|
+
/**
|
|
20
|
+
* Whether select column is pinned. Defaults to "left".
|
|
21
|
+
*/
|
|
22
|
+
selectColumnPinned?: ColDef["pinned"];
|
|
23
|
+
noRowsOverlayText?: string;
|
|
24
|
+
noRowsMatchingOverlayText?: string;
|
|
25
|
+
animateRows?: boolean;
|
|
26
|
+
rowHeight?: number;
|
|
27
|
+
rowClassRules?: GridOptions["rowClassRules"];
|
|
28
|
+
rowSelection?: "single" | "multiple";
|
|
29
|
+
autoSelectFirstRow?: boolean;
|
|
30
|
+
onColumnMoved?: GridOptions["onColumnMoved"];
|
|
31
|
+
rowDragText?: GridOptions["rowDragText"];
|
|
32
|
+
onRowDragEnd?: (movedRow: any, targetRow: any, targetIndex: number) => Promise<void>;
|
|
33
|
+
alwaysShowVerticalScroll?: boolean;
|
|
34
|
+
suppressColumnVirtualization?: GridOptions["suppressColumnVirtualisation"];
|
|
35
|
+
/**
|
|
36
|
+
* When the grid is rendered using sizeColumns=="auto" this is called initially with the required container size to fit all content.
|
|
37
|
+
* This allows you set the size of the panel to fit perfectly.
|
|
38
|
+
*/
|
|
39
|
+
onContentSize?: (props: {
|
|
40
|
+
width: number;
|
|
41
|
+
}) => void;
|
|
42
|
+
/**
|
|
43
|
+
* <ul>
|
|
44
|
+
* <li>"none" to use aggrid defaults.</li>
|
|
45
|
+
* <li>"fit" will adjust columns to fit within panel via min/max/initial sizing.
|
|
46
|
+
* <b>Note:</b> This is only really needed if you have auto-height columns which prevents "auto" from working.
|
|
47
|
+
* </li>
|
|
48
|
+
* <li>"auto" will size columns based on their content but still obeying min/max sizing.</li>
|
|
49
|
+
* <li>"auto-skip-headers" (default) same as auto but does not take headers into account.</li>
|
|
50
|
+
* </ul>
|
|
51
|
+
*
|
|
52
|
+
* If you want to stretch to container width if width is greater than the container add a flex column.
|
|
53
|
+
*/
|
|
54
|
+
sizeColumns?: "fit" | "auto" | "auto-skip-headers" | "none";
|
|
55
|
+
/**
|
|
56
|
+
* When pressing tab whilst editing the grid will select and edit the next cell if available.
|
|
57
|
+
* Once the last cell to edit closes this callback is called.
|
|
58
|
+
*/
|
|
59
|
+
onCellEditingComplete?: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Context menu definition if required.
|
|
62
|
+
*/
|
|
63
|
+
contextMenu?: GridContextMenuComponent<any>;
|
|
64
|
+
/**
|
|
65
|
+
* Whether to select row on context menu.
|
|
66
|
+
*/
|
|
67
|
+
contextMenuSelectRow?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Defaults to false.
|
|
70
|
+
*/
|
|
71
|
+
singleClickEdit?: boolean;
|
|
72
|
+
loading?: boolean;
|
|
73
|
+
suppressCellFocus?: boolean;
|
|
74
|
+
pinnedTopRowData?: GridOptions["pinnedTopRowData"];
|
|
75
|
+
pinnedBottomRowData?: GridOptions["pinnedBottomRowData"];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Wrapper for AgGrid to add commonly used functionality.
|
|
79
|
+
*/
|
|
80
|
+
export declare const Grid: ({ "data-testid": dataTestId, rowSelection, suppressColumnVirtualization, theme, sizeColumns, selectColumnPinned, contextMenuSelectRow, singleClickEdit, rowData, rowHeight, ...params }: GridProps) => ReactElement;
|
|
@@ -1,27 +1,63 @@
|
|
|
1
|
-
import { ColDef, ICellEditorParams, ICellRendererParams } from "ag-grid-community";
|
|
2
|
-
import { SuppressKeyboardEventParams } from "ag-grid-community
|
|
3
|
-
import { ReactElement } from "react";
|
|
4
|
-
import { GridBaseRow } from "./Grid";
|
|
5
|
-
import { GenericCellColDef
|
|
6
|
-
export interface GenericCellEditorProps<E> {
|
|
7
|
-
multiEdit?: boolean;
|
|
8
|
-
editor?: (editorProps: E) => ReactElement;
|
|
9
|
-
editorParams?: E;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { ColDef, ICellEditorParams, ICellRendererParams } from "ag-grid-community";
|
|
2
|
+
import { SuppressKeyboardEventParams, ValueFormatterFunc, ValueFormatterParams, ValueGetterFunc, ValueGetterParams, EditableCallbackParams } from "ag-grid-community";
|
|
3
|
+
import { ReactElement } from "react";
|
|
4
|
+
import { GridBaseRow } from "./Grid";
|
|
5
|
+
import { GenericCellColDef } from "./gridRender";
|
|
6
|
+
export interface GenericCellEditorProps<E> {
|
|
7
|
+
multiEdit?: boolean;
|
|
8
|
+
editor?: (editorProps: E) => ReactElement;
|
|
9
|
+
editorParams?: E;
|
|
10
|
+
}
|
|
11
|
+
export interface SAICellRendererParams<TData = any, TValue = any, TContext = any> extends Omit<ICellRendererParams<TData, TValue, TContext>, "data"> {
|
|
12
|
+
data: TData;
|
|
13
|
+
}
|
|
14
|
+
export declare const GridCellRenderer: (props: ICellRendererParams) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface SAValueGetterParams<TData = any, TValue = any> extends Omit<ValueGetterParams<TData, TValue>, "data"> {
|
|
16
|
+
data: TData;
|
|
17
|
+
getValue: (field: string) => any;
|
|
18
|
+
}
|
|
19
|
+
export interface SAValueGetterFunc<TData = any, TValue = any> {
|
|
20
|
+
(params: SAValueGetterParams<TData, TValue>): TValue | null | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface SAEditableCallbackParams<TData = any, TValue = any> extends Omit<EditableCallbackParams<TData, TValue>, "data"> {
|
|
23
|
+
data: TData;
|
|
24
|
+
}
|
|
25
|
+
export interface SAEditableCallback<TData = any, TValue = any> {
|
|
26
|
+
(params: SAEditableCallbackParams<TData, TValue>): boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface SAValueFormatterParams<TData = any, TValue = any> extends Omit<ValueFormatterParams<TData, TValue>, "data" | "value"> {
|
|
29
|
+
data: TData;
|
|
30
|
+
value: TValue;
|
|
31
|
+
}
|
|
32
|
+
export interface SAValueFormatterFunc<TData = any, TValue = any> {
|
|
33
|
+
(params: SAValueFormatterParams<TData, TValue>): string;
|
|
34
|
+
}
|
|
35
|
+
export interface ColDefT<TData extends GridBaseRow, ValueType = any> extends ColDef<TData, ValueType> {
|
|
36
|
+
_?: TData;
|
|
37
|
+
editable?: boolean | SAEditableCallback<TData, ValueType>;
|
|
38
|
+
valueGetter?: string | SAValueGetterFunc<TData, ValueType>;
|
|
39
|
+
valueFormatter?: string | SAValueFormatterFunc<TData, ValueType>;
|
|
40
|
+
cellRenderer?: (props: SAICellRendererParams<TData, ValueType>) => ReactElement | string | false | null | undefined;
|
|
41
|
+
cellRendererParams?: {
|
|
42
|
+
singleClickEdit?: boolean;
|
|
43
|
+
rightHoverElement?: ReactElement;
|
|
44
|
+
originalCellRenderer?: any;
|
|
45
|
+
editAction?: (selectedRows: TData[]) => void;
|
|
46
|
+
shortcutKeys?: Record<string, () => void>;
|
|
47
|
+
warning?: (props: SAICellRendererParams<TData, ValueType>) => ReactElement | string | false | null | undefined;
|
|
48
|
+
info?: (props: SAICellRendererParams<TData, ValueType>) => ReactElement | string | false | null | undefined;
|
|
49
|
+
};
|
|
50
|
+
editor?: (editorProps: any) => ReactElement;
|
|
51
|
+
}
|
|
52
|
+
export declare const suppressCellKeyboardEvents: (e: SuppressKeyboardEventParams) => any;
|
|
53
|
+
export declare const generateFilterGetter: <TData extends GridBaseRow, ValueType>(field: string | undefined, filterValueGetter: string | ValueGetterFunc<TData, ValueType> | undefined, valueFormatter: string | ValueFormatterFunc<TData, ValueType> | undefined) => string | SAValueGetterFunc<TData, ValueType> | undefined;
|
|
54
|
+
export declare const GridCell: <TData extends GridBaseRow, TValue = any, Props extends CellEditorCommon = any>(props: GenericCellColDef<TData, TValue>, custom?: {
|
|
55
|
+
multiEdit?: boolean;
|
|
56
|
+
preventAutoEdit?: boolean;
|
|
57
|
+
editor?: (editorProps: Props) => ReactElement;
|
|
58
|
+
editorParams?: Props;
|
|
59
|
+
}) => ColDefT<TData, TValue>;
|
|
60
|
+
export interface CellEditorCommon {
|
|
61
|
+
className?: string | undefined;
|
|
62
|
+
}
|
|
63
|
+
export declare const GenericCellEditorComponentWrapper: (editor?: (props: any) => ReactElement) => import("react").ForwardRefExoticComponent<ICellEditorParams<any, any, any> & import("react").RefAttributes<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ColDef } from "ag-grid-community";
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
1
|
+
import { ColDef } from "ag-grid-community";
|
|
2
|
+
import { GridBaseRow } from "./Grid";
|
|
3
|
+
export declare const GridCellFillerColId = "gridCellFiller";
|
|
4
|
+
export declare const isGridCellFiller: (col: ColDef) => boolean;
|
|
5
|
+
export declare const GridCellFiller: <TData extends GridBaseRow>() => ColDef<TData, any>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { CellEditorSelectorResult } from "ag-grid-community
|
|
2
|
-
import { ICellEditorParams } from "ag-grid-community
|
|
3
|
-
import { ComponentProps, ReactElement } from "react";
|
|
4
|
-
import { GridBaseRow } from "./Grid";
|
|
5
|
-
import { ColDefT } from "./GridCell";
|
|
6
|
-
import { GenericCellColDef } from "./gridRender";
|
|
7
|
-
export declare const Editor: <FN extends (param: any) => ReactElement>(props: {
|
|
8
|
-
multiEdit: boolean;
|
|
9
|
-
editor: FN;
|
|
10
|
-
editorParams: ComponentProps<FN>;
|
|
11
|
-
}) => CellEditorSelectorResult;
|
|
12
|
-
export interface RowCellEditorParams<
|
|
13
|
-
data:
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Used to choose between cell editors based in data.
|
|
17
|
-
*/
|
|
18
|
-
export declare const GridCellMultiEditor: <
|
|
1
|
+
import { CellEditorSelectorResult } from "ag-grid-community";
|
|
2
|
+
import { ICellEditorParams } from "ag-grid-community";
|
|
3
|
+
import { ComponentProps, ReactElement } from "react";
|
|
4
|
+
import { GridBaseRow } from "./Grid";
|
|
5
|
+
import { ColDefT } from "./GridCell";
|
|
6
|
+
import { GenericCellColDef } from "./gridRender";
|
|
7
|
+
export declare const Editor: <FN extends (param: any) => ReactElement>(props: {
|
|
8
|
+
multiEdit: boolean;
|
|
9
|
+
editor: FN;
|
|
10
|
+
editorParams: ComponentProps<FN>;
|
|
11
|
+
}) => CellEditorSelectorResult;
|
|
12
|
+
export interface RowCellEditorParams<TData extends GridBaseRow> extends ICellEditorParams {
|
|
13
|
+
data: TData;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Used to choose between cell editors based in data.
|
|
17
|
+
*/
|
|
18
|
+
export declare const GridCellMultiEditor: <TData extends GridBaseRow, TValue = any>(props: GenericCellColDef<TData, TValue>, cellEditorSelector: (params: RowCellEditorParams<TData>) => CellEditorSelectorResult) => ColDefT<TData, TValue>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CellClassRules } from "ag-grid-community
|
|
2
|
-
export declare const GridCellMultiSelectClassRules: CellClassRules;
|
|
1
|
+
import { CellClassRules } from "ag-grid-community";
|
|
2
|
+
export declare const GridCellMultiSelectClassRules: CellClassRules;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { IconName, IconSize } from "@linzjs/lui/dist/components/LuiIcon/LuiIcon";
|
|
3
|
-
export declare const GridIcon: (props: {
|
|
4
|
-
icon: IconName;
|
|
5
|
-
title: string;
|
|
6
|
-
size?: IconSize;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
}) => ReactElement;
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { IconName, IconSize } from "@linzjs/lui/dist/components/LuiIcon/LuiIcon";
|
|
3
|
+
export declare const GridIcon: (props: {
|
|
4
|
+
icon: IconName;
|
|
5
|
+
title: string;
|
|
6
|
+
size?: IconSize;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}) => ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const GridLoadableCell: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const GridLoadableCell: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface GridNoRowsOverlayProps {
|
|
2
|
-
loading: boolean;
|
|
3
|
-
rowCount: number | undefined | null;
|
|
4
|
-
filteredRowCount: number;
|
|
5
|
-
noRowsOverlayText: string | undefined;
|
|
6
|
-
noRowsMatchingOverlayText: string | undefined;
|
|
7
|
-
headerRowHeight: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const GridNoRowsOverlay: (props: GridNoRowsOverlayProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface GridNoRowsOverlayProps {
|
|
2
|
+
loading: boolean;
|
|
3
|
+
rowCount: number | undefined | null;
|
|
4
|
+
filteredRowCount: number;
|
|
5
|
+
noRowsOverlayText: string | undefined;
|
|
6
|
+
noRowsMatchingOverlayText: string | undefined;
|
|
7
|
+
headerRowHeight: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const GridNoRowsOverlay: (props: GridNoRowsOverlayProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { GridBaseRow } from "./Grid";
|
|
3
|
-
export interface GridPopoverHookProps<
|
|
4
|
-
className: string | undefined;
|
|
5
|
-
invalid?: () => Promise<ReactElement | boolean | string | null | undefined> | ReactElement | boolean | string | null | undefined;
|
|
6
|
-
save?: (selectedRows:
|
|
7
|
-
dontSaveOnExternalClick?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const useGridPopoverHook: <
|
|
10
|
-
popoverWrapper: (children: ReactElement) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
triggerSave: (reason?: string) => Promise<void>;
|
|
12
|
-
};
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { GridBaseRow } from "./Grid";
|
|
3
|
+
export interface GridPopoverHookProps<TData> {
|
|
4
|
+
className: string | undefined;
|
|
5
|
+
invalid?: () => Promise<ReactElement | boolean | string | null | undefined> | ReactElement | boolean | string | null | undefined;
|
|
6
|
+
save?: (selectedRows: TData[]) => Promise<boolean>;
|
|
7
|
+
dontSaveOnExternalClick?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const useGridPopoverHook: <TData extends GridBaseRow>(props: GridPopoverHookProps<TData>) => {
|
|
10
|
+
popoverWrapper: (children: ReactElement) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
triggerSave: (reason?: string) => Promise<void>;
|
|
12
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
export interface GridWrapperProps {
|
|
3
|
-
maxHeight?: number | string;
|
|
4
|
-
}
|
|
5
|
-
export declare const GridWrapper: ({ children, maxHeight }: PropsWithChildren<GridWrapperProps>) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
export interface GridWrapperProps {
|
|
3
|
+
maxHeight?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare const GridWrapper: ({ children, maxHeight }: PropsWithChildren<GridWrapperProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PostSortRowsParams } from "ag-grid-community
|
|
2
|
-
interface PostSortRowsHookProps {
|
|
3
|
-
setStaleGrid: (stale: boolean) => void;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Retains last sort order from via <AgGrid postRowSort>.
|
|
7
|
-
* Then applies this sort until next sort column change.
|
|
8
|
-
* Handles stale sort, when you edit a row but don't want to re-sort.
|
|
9
|
-
*/
|
|
10
|
-
export declare const usePostSortRowsHook: ({ setStaleGrid }: PostSortRowsHookProps) => ({ api, columnApi, nodes }: PostSortRowsParams) => void;
|
|
11
|
-
export {};
|
|
1
|
+
import { PostSortRowsParams } from "ag-grid-community";
|
|
2
|
+
interface PostSortRowsHookProps {
|
|
3
|
+
setStaleGrid: (stale: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Retains last sort order from via <AgGrid postRowSort>.
|
|
7
|
+
* Then applies this sort until next sort column change.
|
|
8
|
+
* Handles stale sort, when you edit a row but don't want to re-sort.
|
|
9
|
+
*/
|
|
10
|
+
export declare const usePostSortRowsHook: ({ setStaleGrid }: PostSortRowsHookProps) => ({ api, columnApi, nodes }: PostSortRowsParams) => void;
|
|
11
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ClassValue } from "clsx";
|
|
2
|
-
import { ReactElement } from "react";
|
|
3
|
-
import { LuiButtonProps } from "@linzjs/lui/dist/components/LuiButton/LuiButton";
|
|
4
|
-
import { GridFilterExternal } from "../../contexts/GridContext";
|
|
5
|
-
import { GridBaseRow } from "../Grid";
|
|
6
|
-
export interface GridFilterButtonsOption<
|
|
7
|
-
defaultSelected?: boolean;
|
|
8
|
-
filter?: GridFilterExternal<
|
|
9
|
-
label: string;
|
|
10
|
-
}
|
|
11
|
-
export type GridFilterButtonsProps<
|
|
12
|
-
className?: ClassValue;
|
|
13
|
-
luiButtonProps?: Partial<LuiButtonProps>;
|
|
14
|
-
options: GridFilterButtonsOption<
|
|
15
|
-
};
|
|
16
|
-
export declare const GridFilterButtons: <
|
|
1
|
+
import { ClassValue } from "clsx";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
import { LuiButtonProps } from "@linzjs/lui/dist/components/LuiButton/LuiButton";
|
|
4
|
+
import { GridFilterExternal } from "../../contexts/GridContext";
|
|
5
|
+
import { GridBaseRow } from "../Grid";
|
|
6
|
+
export interface GridFilterButtonsOption<TData extends GridBaseRow> {
|
|
7
|
+
defaultSelected?: boolean;
|
|
8
|
+
filter?: GridFilterExternal<TData>;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
export type GridFilterButtonsProps<TData extends GridBaseRow> = {
|
|
12
|
+
className?: ClassValue;
|
|
13
|
+
luiButtonProps?: Partial<LuiButtonProps>;
|
|
14
|
+
options: GridFilterButtonsOption<TData>[];
|
|
15
|
+
};
|
|
16
|
+
export declare const GridFilterButtons: <TData extends GridBaseRow>({ className, luiButtonProps, options, }: GridFilterButtonsProps<TData>) => ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
export interface GridFilterColumnsToggleProps {
|
|
3
|
-
saveState?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const GridFilterColumnsToggle: ({ saveState }: GridFilterColumnsToggleProps) => ReactElement;
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
export interface GridFilterColumnsToggleProps {
|
|
3
|
+
saveState?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const GridFilterColumnsToggle: ({ saveState }: GridFilterColumnsToggleProps) => ReactElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CsvExportParams } from "ag-grid-community
|
|
2
|
-
export declare const GridFilterDownloadCsvButton: (csvExportParams: CsvExportParams) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { CsvExportParams } from "ag-grid-community";
|
|
2
|
+
export declare const GridFilterDownloadCsvButton: (csvExportParams: CsvExportParams) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, MouseEvent } from "react";
|
|
2
|
-
import { IconName, IconSize } from "@linzjs/lui/dist/components/LuiIcon/LuiIcon";
|
|
3
|
-
export interface GridFilterHeaderIconButtonProps {
|
|
4
|
-
icon: IconName;
|
|
5
|
-
onClick?: (e: MouseEvent) => void;
|
|
6
|
-
buttonProps?: Partial<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
size?: IconSize;
|
|
9
|
-
title: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const GridFilterHeaderIconButton: import("react").ForwardRefExoticComponent<GridFilterHeaderIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1
|
+
import { ButtonHTMLAttributes, MouseEvent } from "react";
|
|
2
|
+
import { IconName, IconSize } from "@linzjs/lui/dist/components/LuiIcon/LuiIcon";
|
|
3
|
+
export interface GridFilterHeaderIconButtonProps {
|
|
4
|
+
icon: IconName;
|
|
5
|
+
onClick?: (e: MouseEvent) => void;
|
|
6
|
+
buttonProps?: Partial<ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
size?: IconSize;
|
|
9
|
+
title: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const GridFilterHeaderIconButton: import("react").ForwardRefExoticComponent<GridFilterHeaderIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface GridFilterQuickProps {
|
|
2
|
-
quickFilterPlaceholder?: string;
|
|
3
|
-
defaultValue?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const GridFilterQuick: ({ quickFilterPlaceholder, defaultValue }: GridFilterQuickProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export interface GridFilterQuickProps {
|
|
2
|
+
quickFilterPlaceholder?: string;
|
|
3
|
+
defaultValue?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const GridFilterQuick: ({ quickFilterPlaceholder, defaultValue }: GridFilterQuickProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
export declare const GridFilters: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
export declare const GridFilters: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./GridFilterHeaderIconButton";
|
|
2
|
-
export * from "./GridFilterColumnsToggle";
|
|
3
|
-
export * from "./GridFilterButtons";
|
|
4
|
-
export * from "./GridFilterQuick";
|
|
5
|
-
export * from "./GridFilters";
|
|
6
|
-
export * from "./GridFilterDownloadCsvButton";
|
|
7
|
-
export * from "./useGridFilter";
|
|
1
|
+
export * from "./GridFilterHeaderIconButton";
|
|
2
|
+
export * from "./GridFilterColumnsToggle";
|
|
3
|
+
export * from "./GridFilterButtons";
|
|
4
|
+
export * from "./GridFilterQuick";
|
|
5
|
+
export * from "./GridFilters";
|
|
6
|
+
export * from "./GridFilterDownloadCsvButton";
|
|
7
|
+
export * from "./useGridFilter";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GridFilterExternal } from "../../contexts/GridContext";
|
|
2
|
-
import { GridBaseRow } from "../Grid";
|
|
3
|
-
export declare const useGridFilter: <
|
|
1
|
+
import { GridFilterExternal } from "../../contexts/GridContext";
|
|
2
|
+
import { GridBaseRow } from "../Grid";
|
|
3
|
+
export declare const useGridFilter: <TData extends GridBaseRow>(filter: GridFilterExternal<TData> | undefined) => void;
|