@linzjs/step-ag-grid 23.0.0 → 24.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 +1 -1
- package/dist/src/components/Grid.d.ts +17 -17
- package/dist/src/components/GridCell.d.ts +9 -9
- package/dist/src/components/GridCellFiller.d.ts +2 -2
- package/dist/src/components/GridCellMultiEditor.d.ts +6 -6
- package/dist/src/components/GridCellMultiSelectClassRules.d.ts +1 -1
- package/dist/src/components/GridIcon.d.ts +2 -2
- package/dist/src/components/GridNoRowsOverlay.d.ts +1 -1
- package/dist/src/components/GridPopoverHook.d.ts +2 -2
- package/dist/src/components/GridWrapper.d.ts +1 -1
- package/dist/src/components/PostSortRowsHook.d.ts +1 -1
- package/dist/src/components/clickInputWhenContainingCellClicked.d.ts +1 -1
- package/dist/src/components/gridFilter/GridFilterButtons.d.ts +5 -5
- package/dist/src/components/gridFilter/GridFilterColumnsToggle.d.ts +1 -1
- package/dist/src/components/gridFilter/GridFilterDownloadCsvButton.d.ts +1 -1
- package/dist/src/components/gridFilter/GridFilterHeaderIconButton.d.ts +2 -2
- package/dist/src/components/gridFilter/GridFilters.d.ts +1 -1
- package/dist/src/components/gridFilter/index.d.ts +7 -7
- package/dist/src/components/gridFilter/useGridFilter.d.ts +2 -2
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +8 -8
- package/dist/src/components/gridForm/GridFormEditBearing.d.ts +2 -2
- package/dist/src/components/gridForm/GridFormMessage.d.ts +3 -3
- package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormMultiSelectGrid.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormPopoverMenu.d.ts +5 -5
- package/dist/src/components/gridForm/GridFormSubComponentTextArea.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormSubComponentTextInput.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormTextArea.d.ts +4 -4
- package/dist/src/components/gridForm/GridFormTextInput.d.ts +3 -3
- package/dist/src/components/gridForm/index.d.ts +10 -10
- package/dist/src/components/gridHeader/GridHeaderSelect.d.ts +1 -1
- 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 +4 -4
- package/dist/src/components/gridPopoverEdit/GridButton.d.ts +5 -5
- package/dist/src/components/gridPopoverEdit/GridEditBoolean.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelectGrid.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverMessage.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverTextArea.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverTextInput.d.ts +4 -4
- package/dist/src/components/gridPopoverEdit/index.d.ts +11 -11
- package/dist/src/components/gridRender/GridRenderGenericCell.d.ts +5 -5
- package/dist/src/components/gridRender/GridRenderPopoutMenuCell.d.ts +1 -1
- package/dist/src/components/gridRender/index.d.ts +2 -2
- package/dist/src/components/gridUtil.d.ts +1 -1
- package/dist/src/components/index.d.ts +19 -19
- package/dist/src/contexts/GridContext.d.ts +4 -4
- package/dist/src/contexts/GridContextProvider.d.ts +3 -3
- package/dist/src/contexts/GridPopoverContext.d.ts +3 -3
- package/dist/src/contexts/GridPopoverContextProvider.d.ts +4 -4
- package/dist/src/contexts/GridUpdatingContextProvider.d.ts +1 -1
- package/dist/src/index.d.ts +17 -17
- package/dist/src/lui/ActionButton.d.ts +9 -9
- package/dist/src/lui/FormError.d.ts +2 -2
- package/dist/src/lui/TextAreaInput.d.ts +1 -1
- package/dist/src/lui/TextInputFormatted.d.ts +2 -2
- package/dist/src/lui/reactUtils.d.ts +1 -1
- package/dist/src/lui/stateDeferredHook.d.ts +1 -1
- package/dist/src/react-menu3/components/ControlledMenu.d.ts +2 -2
- package/dist/src/react-menu3/components/FocusableItem.d.ts +3 -3
- package/dist/src/react-menu3/components/Menu.d.ts +3 -3
- package/dist/src/react-menu3/components/MenuButton.d.ts +2 -2
- package/dist/src/react-menu3/components/MenuDivider.d.ts +1 -1
- package/dist/src/react-menu3/components/MenuGroup.d.ts +2 -2
- package/dist/src/react-menu3/components/MenuHeader.d.ts +2 -2
- package/dist/src/react-menu3/components/MenuItem.d.ts +3 -3
- package/dist/src/react-menu3/components/MenuList.d.ts +1 -1
- package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +2 -2
- package/dist/src/react-menu3/components/SubMenu.d.ts +5 -5
- package/dist/src/react-menu3/contexts/EventHandlersContext.d.ts +1 -1
- package/dist/src/react-menu3/contexts/MenuListContext.d.ts +2 -2
- package/dist/src/react-menu3/contexts/MenuListItemContext.d.ts +1 -1
- package/dist/src/react-menu3/contexts/RadioGroupContext.d.ts +1 -1
- package/dist/src/react-menu3/contexts/SettingsContext.d.ts +2 -2
- package/dist/src/react-menu3/hooks/index.d.ts +9 -9
- package/dist/src/react-menu3/hooks/useBEM.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useCombinedRef.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useItemEffect.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useItemState.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useItems.d.ts +2 -2
- package/dist/src/react-menu3/hooks/useMenuChange.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useMenuState.d.ts +1 -1
- package/dist/src/react-menu3/hooks/useMenuStateAndFocus.d.ts +1 -1
- package/dist/src/react-menu3/index.d.ts +11 -11
- package/dist/src/react-menu3/positionUtils/getPositionHelpers.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/index.d.ts +3 -3
- package/dist/src/react-menu3/positionUtils/placeArrowHorizontal.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/placeArrowVertical.d.ts +1 -1
- package/dist/src/react-menu3/positionUtils/placeLeftorRight.d.ts +4 -4
- package/dist/src/react-menu3/positionUtils/placeToporBottom.d.ts +5 -5
- package/dist/src/react-menu3/positionUtils/positionContextMenu.d.ts +2 -2
- package/dist/src/react-menu3/positionUtils/positionMenu.d.ts +5 -5
- package/dist/src/react-menu3/style-utils/index.d.ts +1 -1
- package/dist/src/react-menu3/types.d.ts +15 -15
- package/dist/src/react-menu3/utils/constants.d.ts +1 -1
- package/dist/src/react-menu3/utils/index.d.ts +3 -3
- package/dist/src/react-menu3/utils/utils.d.ts +5 -5
- package/dist/src/react-menu3/utils/withHovering.d.ts +1 -1
- package/dist/src/utils/testQuick.d.ts +2 -2
- package/dist/src/utils/testUtil.d.ts +2 -2
- package/dist/src/utils/textValidator.d.ts +2 -2
- package/dist/step-ag-grid.cjs.js +966 -952
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +968 -954
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +26 -41
- package/src/components/ComponentLoadingWrapper.tsx +5 -6
- package/src/components/Grid.tsx +85 -83
- package/src/components/GridCell.test.tsx +15 -15
- package/src/components/GridCell.tsx +46 -44
- package/src/components/GridCellFiller.tsx +5 -4
- package/src/components/GridCellMultiEditor.tsx +7 -7
- package/src/components/GridCellMultiSelectClassRules.tsx +3 -3
- package/src/components/GridIcon.tsx +6 -7
- package/src/components/GridLoadableCell.tsx +2 -2
- package/src/components/GridNoRowsOverlay.tsx +8 -8
- package/src/components/GridPopoverHook.tsx +16 -16
- package/src/components/GridWrapper.tsx +2 -2
- package/src/components/PostSortRowsHook.ts +11 -11
- package/src/components/clickInputWhenContainingCellClicked.tsx +5 -5
- package/src/components/gridFilter/GridFilterButtons.tsx +8 -9
- package/src/components/gridFilter/GridFilterColumnsToggle.tsx +25 -26
- package/src/components/gridFilter/GridFilterDownloadCsvButton.tsx +12 -13
- package/src/components/gridFilter/GridFilterHeaderIconButton.tsx +9 -10
- package/src/components/gridFilter/GridFilterQuick.tsx +6 -6
- package/src/components/gridFilter/GridFilters.tsx +1 -1
- package/src/components/gridFilter/index.ts +7 -7
- package/src/components/gridFilter/useGridFilter.ts +3 -3
- package/src/components/gridForm/GridFormDropDown.tsx +56 -52
- package/src/components/gridForm/GridFormEditBearing.tsx +12 -12
- package/src/components/gridForm/GridFormMessage.tsx +10 -10
- package/src/components/gridForm/GridFormMultiSelect.tsx +53 -51
- package/src/components/gridForm/GridFormMultiSelectGrid.tsx +25 -26
- package/src/components/gridForm/GridFormPopoverMenu.tsx +32 -29
- package/src/components/gridForm/GridFormSubComponentTextArea.tsx +10 -10
- package/src/components/gridForm/GridFormSubComponentTextInput.tsx +8 -8
- package/src/components/gridForm/GridFormTextArea.tsx +11 -11
- package/src/components/gridForm/GridFormTextInput.tsx +11 -11
- package/src/components/gridForm/index.ts +10 -10
- package/src/components/gridHeader/GridHeaderSelect.tsx +9 -9
- package/src/components/gridHeader/index.ts +1 -1
- package/src/components/gridHook/index.ts +1 -1
- package/src/components/gridHook/useGridContextMenu.tsx +7 -7
- package/src/components/gridPopoverEdit/GridButton.tsx +13 -12
- package/src/components/gridPopoverEdit/GridEditBoolean.tsx +19 -18
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts +7 -6
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelectGrid.ts +7 -6
- package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +9 -9
- package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +8 -7
- package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +6 -6
- package/src/components/gridPopoverEdit/GridPopoverMessage.ts +4 -4
- package/src/components/gridPopoverEdit/GridPopoverTextArea.ts +4 -4
- package/src/components/gridPopoverEdit/GridPopoverTextInput.ts +4 -4
- package/src/components/gridPopoverEdit/index.ts +11 -11
- package/src/components/gridRender/GridRenderGenericCell.tsx +5 -5
- package/src/components/gridRender/GridRenderPopoutMenuCell.tsx +8 -9
- package/src/components/gridRender/index.ts +2 -2
- package/src/components/gridUtil.ts +3 -3
- package/src/components/index.ts +19 -19
- package/src/contexts/GridContext.tsx +52 -46
- package/src/contexts/GridContextProvider.test.tsx +14 -14
- package/src/contexts/GridContextProvider.tsx +42 -41
- package/src/contexts/GridPopoverContext.tsx +10 -7
- package/src/contexts/GridPopoverContextProvider.tsx +12 -10
- package/src/contexts/GridSubComponentContext.ts +6 -5
- package/src/contexts/GridUpdatingContext.tsx +5 -4
- package/src/contexts/GridUpdatingContextProvider.tsx +3 -3
- package/src/index.ts +17 -21
- package/src/lui/ActionButton.tsx +42 -41
- package/src/lui/FormError.tsx +4 -4
- package/src/lui/TextAreaInput.tsx +9 -9
- package/src/lui/TextInputFormatted.tsx +11 -11
- package/src/lui/reactUtils.test.tsx +8 -8
- package/src/lui/reactUtils.tsx +2 -2
- package/src/lui/stateDeferredHook.tsx +3 -5
- package/src/lui/timeoutHook.test.tsx +5 -5
- package/src/lui/timeoutHook.tsx +1 -1
- package/src/react-app-env.d.ts +1 -1
- package/src/react-menu3/components/ControlledMenu.tsx +48 -48
- package/src/react-menu3/components/FocusableItem.tsx +7 -7
- package/src/react-menu3/components/Menu.tsx +11 -11
- package/src/react-menu3/components/MenuButton.tsx +4 -4
- package/src/react-menu3/components/MenuDivider.tsx +4 -4
- package/src/react-menu3/components/MenuGroup.tsx +5 -5
- package/src/react-menu3/components/MenuHeader.tsx +4 -4
- package/src/react-menu3/components/MenuItem.tsx +14 -14
- package/src/react-menu3/components/MenuList.tsx +55 -55
- package/src/react-menu3/components/MenuRadioGroup.tsx +7 -7
- package/src/react-menu3/components/SubMenu.tsx +24 -24
- package/src/react-menu3/contexts/EventHandlersContext.ts +2 -2
- package/src/react-menu3/contexts/HoverItemContext.ts +1 -1
- package/src/react-menu3/contexts/ItemSettingsContext.ts +1 -1
- package/src/react-menu3/contexts/MenuListContext.ts +2 -2
- package/src/react-menu3/contexts/MenuListItemContext.ts +2 -2
- package/src/react-menu3/contexts/RadioGroupContext.ts +2 -2
- package/src/react-menu3/contexts/SettingsContext.ts +2 -2
- package/src/react-menu3/hooks/index.ts +9 -9
- package/src/react-menu3/hooks/useBEM.ts +4 -4
- package/src/react-menu3/hooks/useCombinedRef.ts +2 -2
- package/src/react-menu3/hooks/useIsomorphicLayoutEffect.ts +4 -4
- package/src/react-menu3/hooks/useItemEffect.ts +3 -3
- package/src/react-menu3/hooks/useItemState.ts +5 -5
- package/src/react-menu3/hooks/useItems.ts +8 -8
- package/src/react-menu3/hooks/useMenuChange.ts +3 -3
- package/src/react-menu3/hooks/useMenuState.ts +5 -5
- package/src/react-menu3/hooks/useMenuStateAndFocus.ts +4 -4
- package/src/react-menu3/index.ts +11 -11
- package/src/react-menu3/positionUtils/getPositionHelpers.ts +2 -2
- package/src/react-menu3/positionUtils/index.ts +3 -3
- package/src/react-menu3/positionUtils/placeArrowHorizontal.ts +1 -1
- package/src/react-menu3/positionUtils/placeArrowVertical.ts +1 -1
- package/src/react-menu3/positionUtils/placeLeftorRight.ts +13 -13
- package/src/react-menu3/positionUtils/placeToporBottom.ts +15 -15
- package/src/react-menu3/positionUtils/positionContextMenu.ts +4 -4
- package/src/react-menu3/positionUtils/positionMenu.ts +14 -14
- package/src/react-menu3/style-utils/index.ts +24 -24
- package/src/react-menu3/types.ts +15 -15
- package/src/react-menu3/utils/constants.ts +33 -33
- package/src/react-menu3/utils/index.ts +3 -4
- package/src/react-menu3/utils/propTypes2.ts +10 -10
- package/src/react-menu3/utils/utils.ts +14 -14
- package/src/react-menu3/utils/withHovering.tsx +3 -3
- package/src/stories/components/ActionButton.stories.tsx +23 -24
- package/src/stories/grid/FormTest.tsx +15 -16
- package/src/stories/grid/GridDragRow.stories.tsx +33 -34
- package/src/stories/grid/GridFilterButtons.stories.tsx +32 -33
- package/src/stories/grid/GridNoRowsOverlay.stories.tsx +9 -10
- package/src/stories/grid/GridNonEditableRow.stories.tsx +40 -41
- package/src/stories/grid/GridPinnedRow.stories.tsx +25 -26
- package/src/stories/grid/GridPopoutContextMenu.stories.tsx +33 -32
- package/src/stories/grid/GridPopoutEditBoolean.stories.tsx +21 -22
- package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +18 -19
- package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +50 -49
- package/src/stories/grid/GridPopoverEditBearing.stories.tsx +25 -26
- package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +93 -94
- package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +62 -63
- package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +28 -28
- package/src/stories/grid/GridReadOnly.stories.tsx +66 -67
- package/src/stories/grid/GridViewList.stories.tsx +37 -38
- package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +37 -38
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +25 -26
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +25 -26
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectGridInteraction.stories.tsx +31 -31
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +47 -48
- package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +44 -45
- package/src/stories/grid/gridFormInteraction/GridFormTextAreaInteraction.stories.tsx +19 -20
- package/src/stories/grid/gridFormInteraction/GridFormTextInputInteraction.stories.tsx +21 -22
- package/src/stories/grid/gridFormStatic/GridFormDropDown.stories.tsx +40 -41
- package/src/stories/grid/gridFormStatic/GridFormEditBearing.stories.tsx +14 -15
- package/src/stories/grid/gridFormStatic/GridFormEditBearingCorrection.stories.tsx +14 -15
- package/src/stories/grid/gridFormStatic/GridFormMessage.stories.tsx +10 -11
- package/src/stories/grid/gridFormStatic/GridFormMultiSelect.stories.tsx +20 -21
- package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +16 -17
- package/src/stories/grid/gridFormStatic/GridFormTextArea.stories.tsx +13 -14
- package/src/stories/grid/gridFormStatic/GridFormTextInput.stories.tsx +13 -14
- package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +68 -71
- package/src/stories/react-menu/ReactMenu.stories.tsx +26 -26
- package/src/utils/bearing.test.ts +44 -44
- package/src/utils/bearing.ts +20 -20
- package/src/utils/deferredPromise.ts +1 -1
- package/src/utils/storybookTestUtil.ts +2 -2
- package/src/utils/testQuick.ts +15 -14
- package/src/utils/testUtil.ts +31 -36
- package/src/utils/textMatcher.test.ts +9 -9
- package/src/utils/textMatcher.ts +8 -8
- package/src/utils/textValidator.test.ts +56 -56
- package/src/utils/textValidator.ts +11 -11
- package/src/utils/util.test.ts +20 -20
- package/src/utils/util.ts +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ColDef, GridOptions } from
|
|
2
|
-
import { ReactElement } from
|
|
3
|
-
import { GridContextMenuComponent } from
|
|
1
|
+
import { ColDef, GridOptions } from 'ag-grid-community';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import { GridContextMenuComponent } from './gridHook';
|
|
4
4
|
export interface GridBaseRow {
|
|
5
5
|
id: string | number;
|
|
6
6
|
}
|
|
@@ -9,29 +9,29 @@ export interface GridProps {
|
|
|
9
9
|
defaultPostSort?: boolean;
|
|
10
10
|
selectable?: boolean;
|
|
11
11
|
theme?: string;
|
|
12
|
-
[
|
|
13
|
-
domLayout?: GridOptions[
|
|
12
|
+
['data-testid']?: string;
|
|
13
|
+
domLayout?: GridOptions['domLayout'];
|
|
14
14
|
externalSelectedItems?: any[];
|
|
15
15
|
setExternalSelectedItems?: (items: any[]) => void;
|
|
16
|
-
defaultColDef?: GridOptions[
|
|
16
|
+
defaultColDef?: GridOptions['defaultColDef'];
|
|
17
17
|
columnDefs: ColDef[];
|
|
18
|
-
rowData: GridOptions[
|
|
18
|
+
rowData: GridOptions['rowData'];
|
|
19
19
|
/**
|
|
20
20
|
* Whether select column is pinned. Defaults to "left".
|
|
21
21
|
*/
|
|
22
|
-
selectColumnPinned?: ColDef[
|
|
22
|
+
selectColumnPinned?: ColDef['pinned'];
|
|
23
23
|
noRowsOverlayText?: string;
|
|
24
24
|
noRowsMatchingOverlayText?: string;
|
|
25
25
|
animateRows?: boolean;
|
|
26
26
|
rowHeight?: number;
|
|
27
|
-
rowClassRules?: GridOptions[
|
|
28
|
-
rowSelection?:
|
|
27
|
+
rowClassRules?: GridOptions['rowClassRules'];
|
|
28
|
+
rowSelection?: 'single' | 'multiple';
|
|
29
29
|
autoSelectFirstRow?: boolean;
|
|
30
|
-
onColumnMoved?: GridOptions[
|
|
31
|
-
rowDragText?: GridOptions[
|
|
32
|
-
onRowDragEnd?: (movedRow: any, targetRow: any, targetIndex: number) => Promise<void
|
|
30
|
+
onColumnMoved?: GridOptions['onColumnMoved'];
|
|
31
|
+
rowDragText?: GridOptions['rowDragText'];
|
|
32
|
+
onRowDragEnd?: (movedRow: any, targetRow: any, targetIndex: number) => Promise<void> | void;
|
|
33
33
|
alwaysShowVerticalScroll?: boolean;
|
|
34
|
-
suppressColumnVirtualization?: GridOptions[
|
|
34
|
+
suppressColumnVirtualization?: GridOptions['suppressColumnVirtualisation'];
|
|
35
35
|
/**
|
|
36
36
|
* When the grid is rendered using sizeColumns=="auto" this is called initially with the required container size to fit all content.
|
|
37
37
|
* This allows you set the size of the panel to fit perfectly.
|
|
@@ -51,7 +51,7 @@ export interface GridProps {
|
|
|
51
51
|
*
|
|
52
52
|
* If you want to stretch to container width if width is greater than the container add a flex column.
|
|
53
53
|
*/
|
|
54
|
-
sizeColumns?:
|
|
54
|
+
sizeColumns?: 'fit' | 'auto' | 'auto-skip-headers' | 'none';
|
|
55
55
|
/**
|
|
56
56
|
* When pressing tab whilst editing the grid will select and edit the next cell if available.
|
|
57
57
|
* Once the last cell to edit closes this callback is called.
|
|
@@ -71,8 +71,8 @@ export interface GridProps {
|
|
|
71
71
|
singleClickEdit?: boolean;
|
|
72
72
|
loading?: boolean;
|
|
73
73
|
suppressCellFocus?: boolean;
|
|
74
|
-
pinnedTopRowData?: GridOptions[
|
|
75
|
-
pinnedBottomRowData?: GridOptions[
|
|
74
|
+
pinnedTopRowData?: GridOptions['pinnedTopRowData'];
|
|
75
|
+
pinnedBottomRowData?: GridOptions['pinnedBottomRowData'];
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* Wrapper for AgGrid to add commonly used functionality.
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ColDef, ICellEditorParams, ICellRendererParams } from
|
|
2
|
-
import { SuppressKeyboardEventParams, ValueFormatterFunc, ValueFormatterParams, ValueGetterFunc, ValueGetterParams
|
|
3
|
-
import { ReactElement } from
|
|
4
|
-
import { GridBaseRow } from
|
|
5
|
-
import { GenericCellColDef } from
|
|
1
|
+
import { ColDef, ICellEditorParams, ICellRendererParams } from 'ag-grid-community';
|
|
2
|
+
import { EditableCallbackParams, SuppressKeyboardEventParams, ValueFormatterFunc, ValueFormatterParams, ValueGetterFunc, ValueGetterParams } from 'ag-grid-community';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
import { GridBaseRow } from './Grid';
|
|
5
|
+
import { GenericCellColDef } from './gridRender';
|
|
6
6
|
export interface GenericCellEditorProps<E> {
|
|
7
7
|
multiEdit?: boolean;
|
|
8
8
|
editor?: (editorProps: E) => ReactElement;
|
|
9
9
|
editorParams?: E;
|
|
10
10
|
}
|
|
11
|
-
export interface SAICellRendererParams<TData = any, TValue = any, TContext = any> extends Omit<ICellRendererParams<TData, TValue, TContext>,
|
|
11
|
+
export interface SAICellRendererParams<TData = any, TValue = any, TContext = any> extends Omit<ICellRendererParams<TData, TValue, TContext>, 'data'> {
|
|
12
12
|
data: TData;
|
|
13
13
|
}
|
|
14
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>,
|
|
15
|
+
export interface SAValueGetterParams<TData = any, TValue = any> extends Omit<ValueGetterParams<TData, TValue>, 'data'> {
|
|
16
16
|
data: TData;
|
|
17
17
|
getValue: (field: string) => any;
|
|
18
18
|
}
|
|
19
19
|
export interface SAValueGetterFunc<TData = any, TValue = any> {
|
|
20
20
|
(params: SAValueGetterParams<TData, TValue>): TValue | null | undefined;
|
|
21
21
|
}
|
|
22
|
-
export interface SAEditableCallbackParams<TData = any, TValue = any> extends Omit<EditableCallbackParams<TData, TValue>,
|
|
22
|
+
export interface SAEditableCallbackParams<TData = any, TValue = any> extends Omit<EditableCallbackParams<TData, TValue>, 'data'> {
|
|
23
23
|
data: TData;
|
|
24
24
|
}
|
|
25
25
|
export interface SAEditableCallback<TData = any, TValue = any> {
|
|
26
26
|
(params: SAEditableCallbackParams<TData, TValue>): boolean;
|
|
27
27
|
}
|
|
28
|
-
export interface SAValueFormatterParams<TData = any, TValue = any> extends Omit<ValueFormatterParams<TData, TValue>,
|
|
28
|
+
export interface SAValueFormatterParams<TData = any, TValue = any> extends Omit<ValueFormatterParams<TData, TValue>, 'data' | 'value'> {
|
|
29
29
|
data: TData;
|
|
30
30
|
value: TValue;
|
|
31
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColDef } from
|
|
2
|
-
import { GridBaseRow } from
|
|
1
|
+
import { ColDef } from 'ag-grid-community';
|
|
2
|
+
import { GridBaseRow } from './Grid';
|
|
3
3
|
export declare const GridCellFillerColId = "gridCellFiller";
|
|
4
4
|
export declare const isGridCellFiller: (col: ColDef) => boolean;
|
|
5
5
|
export declare const GridCellFiller: <TData extends GridBaseRow>() => ColDef<TData, any>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CellEditorSelectorResult } from
|
|
2
|
-
import { ICellEditorParams } from
|
|
3
|
-
import { ComponentProps, ReactElement } from
|
|
4
|
-
import { GridBaseRow } from
|
|
5
|
-
import { ColDefT } from
|
|
6
|
-
import { GenericCellColDef } from
|
|
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
7
|
export declare const Editor: <FN extends (param: any) => ReactElement>(props: {
|
|
8
8
|
multiEdit: boolean;
|
|
9
9
|
editor: FN;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CellClassRules } from
|
|
1
|
+
import { CellClassRules } from 'ag-grid-community';
|
|
2
2
|
export declare const GridCellMultiSelectClassRules: CellClassRules;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IconName, IconSize } from '@linzjs/lui/dist/components/LuiIcon/LuiIcon';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
3
|
export declare const GridIcon: (props: {
|
|
4
4
|
icon: IconName;
|
|
5
5
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { GridBaseRow } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { GridBaseRow } from './Grid';
|
|
3
3
|
export interface GridPopoverHookProps<TData> {
|
|
4
4
|
className: string | undefined;
|
|
5
5
|
invalid?: () => Promise<ReactElement | boolean | string | null | undefined> | ReactElement | boolean | string | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CellClickedEvent } from
|
|
1
|
+
import { CellClickedEvent } from 'ag-grid-community';
|
|
2
2
|
/**
|
|
3
3
|
* AgGrid checkbox select does not pass clicks within cell but not on the checkbox to checkbox.
|
|
4
4
|
* This passes the event to the checkbox when you click anywhere in the cell.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { GridFilterExternal } from
|
|
5
|
-
import { GridBaseRow } from
|
|
1
|
+
import { LuiButtonProps } from '@linzjs/lui/dist/components/LuiButton/LuiButton';
|
|
2
|
+
import { ClassValue } from 'clsx';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
import { GridFilterExternal } from '../../contexts/GridContext';
|
|
5
|
+
import { GridBaseRow } from '../Grid';
|
|
6
6
|
export interface GridFilterButtonsOption<TData extends GridBaseRow> {
|
|
7
7
|
defaultSelected?: boolean;
|
|
8
8
|
filter?: GridFilterExternal<TData>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CsvExportParams } from
|
|
1
|
+
import { CsvExportParams } from 'ag-grid-community';
|
|
2
2
|
export declare const GridFilterDownloadCsvButton: (csvExportParams: CsvExportParams) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IconName, IconSize } from '@linzjs/lui/dist/components/LuiIcon/LuiIcon';
|
|
2
|
+
import { ButtonHTMLAttributes, MouseEvent } from 'react';
|
|
3
3
|
export interface GridFilterHeaderIconButtonProps {
|
|
4
4
|
icon: IconName;
|
|
5
5
|
onClick?: (e: MouseEvent) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropsWithChildren } from
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
export declare const GridFilters: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
export * from './GridFilterButtons';
|
|
2
|
+
export * from './GridFilterColumnsToggle';
|
|
3
|
+
export * from './GridFilterDownloadCsvButton';
|
|
4
|
+
export * from './GridFilterHeaderIconButton';
|
|
5
|
+
export * from './GridFilterQuick';
|
|
6
|
+
export * from './GridFilters';
|
|
7
|
+
export * from './useGridFilter';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GridFilterExternal } from
|
|
2
|
-
import { GridBaseRow } from
|
|
1
|
+
import { GridFilterExternal } from '../../contexts/GridContext';
|
|
2
|
+
import { GridBaseRow } from '../Grid';
|
|
3
3
|
export declare const useGridFilter: <TData extends GridBaseRow>(filter: GridFilterExternal<TData> | undefined) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { GridBaseRow } from
|
|
3
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { GridBaseRow } from '../Grid';
|
|
3
|
+
import { CellEditorCommon } from '../GridCell';
|
|
4
4
|
export interface GridPopoutEditDropDownSelectedItem<TData extends GridBaseRow, TValue> {
|
|
5
5
|
selectedRows: TData[];
|
|
6
|
-
selectedRowIds: TData[
|
|
6
|
+
selectedRowIds: TData['id'][];
|
|
7
7
|
value: TValue;
|
|
8
8
|
subComponentValue?: any;
|
|
9
9
|
}
|
|
@@ -24,14 +24,14 @@ export declare const MenuHeaderItem: (title: string) => {
|
|
|
24
24
|
};
|
|
25
25
|
export type SelectOption = null | string | FinalSelectOption;
|
|
26
26
|
export interface GridFormDropDownProps<TData extends GridBaseRow, TValue> extends CellEditorCommon {
|
|
27
|
-
className?:
|
|
28
|
-
filtered?:
|
|
27
|
+
className?: 'GridPopoverEditDropDown-containerSmall' | 'GridPopoverEditDropDown-containerMedium' | 'GridPopoverEditDropDown-containerLarge' | 'GridPopoverEditDropDown-containerUnlimited' | 'GridPopoverEditDropDown-containerAutoWidth' | string | undefined;
|
|
28
|
+
filtered?: 'local' | 'reload';
|
|
29
29
|
filterDefaultValue?: string;
|
|
30
30
|
filterPlaceholder?: string;
|
|
31
31
|
filterHelpText?: string;
|
|
32
32
|
noOptionsMessage?: string;
|
|
33
|
-
onSelectedItem?: (props: GridPopoutEditDropDownSelectedItem<TData, TValue>) => Promise<void
|
|
34
|
-
onSelectFilter?: (props: GridPopoutEditDropDownSelectedItem<TData, TValue>) => Promise<void
|
|
33
|
+
onSelectedItem?: (props: GridPopoutEditDropDownSelectedItem<TData, TValue>) => Promise<void> | void;
|
|
34
|
+
onSelectFilter?: (props: GridPopoutEditDropDownSelectedItem<TData, TValue>) => Promise<void> | void;
|
|
35
35
|
options: SelectOption[] | ((selectedRows: TData[], filter?: string) => Promise<SelectOption[] | undefined> | SelectOption[] | undefined) | undefined;
|
|
36
36
|
}
|
|
37
37
|
export declare const GridFormDropDown: <TData extends GridBaseRow, TValue>(props: GridFormDropDownProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from
|
|
2
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { CellEditorCommon } from '../GridCell';
|
|
3
3
|
export interface GridFormEditBearingProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
4
4
|
formatValue?: (value: any) => string;
|
|
5
5
|
placeHolder?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { GridBaseRow } from
|
|
3
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { GridBaseRow } from '../Grid';
|
|
3
|
+
import { CellEditorCommon } from '../GridCell';
|
|
4
4
|
export interface GridFormMessageProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
5
5
|
message: (selectedRows: TData[]) => Promise<string | ReactElement> | string | ReactElement;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { GridBaseRow } from
|
|
3
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { GridBaseRow } from '../Grid';
|
|
3
|
+
import { CellEditorCommon } from '../GridCell';
|
|
4
4
|
export interface MultiSelectOption {
|
|
5
5
|
value: any;
|
|
6
6
|
label?: string;
|
|
@@ -19,7 +19,7 @@ export interface GridFormMultiSelectSaveProps<TData extends GridBaseRow> {
|
|
|
19
19
|
selectedOptions: MultiSelectOption[];
|
|
20
20
|
}
|
|
21
21
|
export interface GridFormMultiSelectProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
22
|
-
className?:
|
|
22
|
+
className?: 'GridMultiSelect-containerSmall' | 'GridMultiSelect-containerMedium' | 'GridMultiSelect-containerLarge' | 'GridMultiSelect-containerUnlimited' | string | undefined;
|
|
23
23
|
filtered?: boolean;
|
|
24
24
|
filterPlaceholder?: string;
|
|
25
25
|
filterHelpText?: string | ((filter: string, options: MultiSelectOption[]) => string | undefined);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { GridBaseRow } from
|
|
3
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { GridBaseRow } from '../Grid';
|
|
3
|
+
import { CellEditorCommon } from '../GridCell';
|
|
4
4
|
export interface MultiSelectGridOption {
|
|
5
5
|
value: any;
|
|
6
6
|
label?: string | ReactElement;
|
|
7
|
-
checked?: boolean |
|
|
7
|
+
checked?: boolean | 'partial';
|
|
8
8
|
canSelectPartial?: boolean;
|
|
9
9
|
warning?: string | undefined;
|
|
10
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { GridBaseRow } from
|
|
3
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { GridBaseRow } from '../Grid';
|
|
3
|
+
import { CellEditorCommon } from '../GridCell';
|
|
4
4
|
export interface GridFormPopoverMenuProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
5
|
-
options: (selectedRows: TData[]) => Promise<MenuOption<TData>[]
|
|
5
|
+
options: (selectedRows: TData[]) => Promise<MenuOption<TData>[]> | MenuOption<TData>[];
|
|
6
6
|
defaultAction?: (props: {
|
|
7
7
|
selectedRows: TData[];
|
|
8
8
|
menuOption: SelectedMenuOptionResult<TData>;
|
|
9
|
-
}) => Promise<void
|
|
9
|
+
}) => Promise<void> | void;
|
|
10
10
|
}
|
|
11
11
|
export declare const PopoutMenuSeparator: Readonly<{
|
|
12
12
|
label: "__isMenuSeparator__";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { TextInputValidatorProps } from
|
|
3
|
-
import { GridBaseRow } from
|
|
4
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { TextInputValidatorProps } from '../../utils/textValidator';
|
|
3
|
+
import { GridBaseRow } from '../Grid';
|
|
4
|
+
import { CellEditorCommon } from '../GridCell';
|
|
5
5
|
export interface GridSubComponentTextAreaProps<TData extends GridBaseRow> extends TextInputValidatorProps<TData>, CellEditorCommon {
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
width?: string | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { TextInputValidatorProps } from
|
|
3
|
-
import { GridBaseRow } from
|
|
4
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { TextInputValidatorProps } from '../../utils/textValidator';
|
|
3
|
+
import { GridBaseRow } from '../Grid';
|
|
4
|
+
import { CellEditorCommon } from '../GridCell';
|
|
5
5
|
export interface GridFormSubComponentTextInputProps<TData extends GridBaseRow> extends TextInputValidatorProps<TData>, CellEditorCommon {
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
width?: string | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
2
|
-
import { TextInputValidatorProps } from
|
|
3
|
-
import { GridBaseRow } from
|
|
4
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { TextInputValidatorProps } from '../../utils/textValidator';
|
|
3
|
+
import { GridBaseRow } from '../Grid';
|
|
4
|
+
import { CellEditorCommon } from '../GridCell';
|
|
5
5
|
export interface GridFormTextAreaProps<TData extends GridBaseRow> extends TextInputValidatorProps<TData>, CellEditorCommon {
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
width?: string | number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextInputValidatorProps } from
|
|
2
|
-
import { GridBaseRow } from
|
|
3
|
-
import { CellEditorCommon } from
|
|
1
|
+
import { TextInputValidatorProps } from '../../utils/textValidator';
|
|
2
|
+
import { GridBaseRow } from '../Grid';
|
|
3
|
+
import { CellEditorCommon } from '../GridCell';
|
|
4
4
|
export interface GridFormTextInputProps<TData extends GridBaseRow> extends TextInputValidatorProps<TData>, CellEditorCommon {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
units?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
1
|
+
export * from './GridFormDropDown';
|
|
2
|
+
export * from './GridFormEditBearing';
|
|
3
|
+
export * from './GridFormMessage';
|
|
4
|
+
export * from './GridFormMultiSelect';
|
|
5
|
+
export * from './GridFormMultiSelectGrid';
|
|
6
|
+
export * from './GridFormPopoverMenu';
|
|
7
|
+
export * from './GridFormSubComponentTextArea';
|
|
8
|
+
export * from './GridFormSubComponentTextInput';
|
|
9
|
+
export * from './GridFormTextArea';
|
|
10
|
+
export * from './GridFormTextInput';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './GridHeaderSelect';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './useGridContextMenu';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ColDef } from
|
|
2
|
-
import { CellContextMenuEvent } from
|
|
3
|
-
import { ReactElement } from
|
|
4
|
-
import { GridBaseRow } from
|
|
1
|
+
import { ColDef } from 'ag-grid-community';
|
|
2
|
+
import { CellContextMenuEvent } from 'ag-grid-community';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
import { GridBaseRow } from '../Grid';
|
|
5
5
|
export interface GridContextMenuComponentProps<TData extends GridBaseRow> {
|
|
6
6
|
selectedRows: TData[];
|
|
7
7
|
clickedRow: TData;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ICellEditorParams } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ICellEditorParams } from 'ag-grid-community';
|
|
2
|
+
import { GridBaseRow } from '../Grid';
|
|
3
|
+
import { ColDefT } from '../GridCell';
|
|
4
|
+
import { GenericCellColDef } from '../gridRender';
|
|
5
5
|
export interface GridButtonProps<TData extends GridBaseRow> {
|
|
6
6
|
visible?: (cellEditorParams: ICellEditorParams) => boolean;
|
|
7
7
|
onClick?: (props: {
|
|
8
8
|
selectedRows: TData[];
|
|
9
|
-
selectedRowIds: TData[
|
|
9
|
+
selectedRowIds: TData['id'][];
|
|
10
10
|
}) => void;
|
|
11
11
|
}
|
|
12
12
|
export declare const GridButton: <TData extends GridBaseRow>(colDef: GenericCellColDef<TData, boolean>, editor: GridButtonProps<TData>) => ColDefT<TData>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { CellEditorCommon, ColDefT } from '../GridCell';
|
|
3
|
+
import { GenericCellColDef } from '../gridRender';
|
|
4
4
|
export interface GridEditBooleanEditorProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
5
5
|
onClick: (props: {
|
|
6
6
|
selectedRows: TData[];
|
|
7
|
-
selectedRowIds: TData[
|
|
7
|
+
selectedRowIds: TData['id'][];
|
|
8
8
|
checked: boolean;
|
|
9
9
|
}) => Promise<boolean>;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from
|
|
3
|
-
import { GridFormMultiSelectProps } from
|
|
4
|
-
import { GenericCellColDef } from
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from '../GridCell';
|
|
3
|
+
import { GridFormMultiSelectProps } from '../gridForm/GridFormMultiSelect';
|
|
4
|
+
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
|
|
5
5
|
export declare const GridPopoutEditMultiSelect: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormMultiSelectProps<TData>>) => ColDefT<TData, TValue>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from
|
|
3
|
-
import { GridFormMultiSelectGridProps } from
|
|
4
|
-
import { GenericCellColDef } from
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from '../GridCell';
|
|
3
|
+
import { GridFormMultiSelectGridProps } from '../gridForm/GridFormMultiSelectGrid';
|
|
4
|
+
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
|
|
5
5
|
export declare const GridPopoutEditMultiSelectGrid: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormMultiSelectGridProps<TData>>) => ColDefT<TData, TValue>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GridBaseRow } from
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from
|
|
3
|
-
import { GridFormEditBearingProps } from
|
|
4
|
-
import { GenericCellColDef } from
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from '../GridCell';
|
|
3
|
+
import { GridFormEditBearingProps } from '../gridForm/GridFormEditBearing';
|
|
4
|
+
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
|
|
5
5
|
export declare const GridPopoverEditBearingEditorParams: {
|
|
6
6
|
placeHolder: string;
|
|
7
7
|
formatValue: (value: any) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from
|
|
3
|
-
import { GridFormDropDownProps } from
|
|
4
|
-
import { GenericCellColDef } from
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from '../GridCell';
|
|
3
|
+
import { GridFormDropDownProps } from '../gridForm/GridFormDropDown';
|
|
4
|
+
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
|
|
5
5
|
export declare const GridPopoverEditDropDown: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormDropDownProps<TData, TValue>>) => ColDefT<TData, TValue>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GridBaseRow } from
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from
|
|
3
|
-
import { GridFormPopoverMenuProps } from
|
|
4
|
-
import { GenericCellColDef } from
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from '../GridCell';
|
|
3
|
+
import { GridFormPopoverMenuProps } from '../gridForm/GridFormPopoverMenu';
|
|
4
|
+
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
|
|
5
5
|
/**
|
|
6
6
|
* Popout burger menu
|
|
7
7
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from
|
|
3
|
-
import { GridFormMessageProps } from
|
|
4
|
-
import { GenericCellColDef } from
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from '../GridCell';
|
|
3
|
+
import { GridFormMessageProps } from '../gridForm/GridFormMessage';
|
|
4
|
+
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
|
|
5
5
|
export declare const GridPopoverMessage: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormMessageProps<TData>>) => ColDefT<TData, TValue>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from
|
|
3
|
-
import { GridFormTextAreaProps } from
|
|
4
|
-
import { GenericCellColDef } from
|
|
1
|
+
import { GridBaseRow } from '../Grid';
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from '../GridCell';
|
|
3
|
+
import { GridFormTextAreaProps } from '../gridForm/GridFormTextArea';
|
|
4
|
+
import { GenericCellColDef } from '../gridRender/GridRenderGenericCell';
|
|
5
5
|
export declare const GridPopoverTextArea: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, params: GenericCellEditorProps<GridFormTextAreaProps<TData>>) => ColDefT<TData, TValue>;
|