@linzjs/step-ag-grid 1.5.4 → 2.0.1
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/README.md +117 -2
- package/{src/components → dist}/GridTheme.scss +37 -23
- package/dist/index.css +351 -0
- package/dist/index.js +625 -332
- package/dist/index.js.map +1 -1
- package/dist/src/components/ComponentLoadingWrapper.d.ts +1 -0
- package/dist/src/components/Grid.d.ts +0 -2
- package/dist/src/components/GridCell.d.ts +21 -27
- package/dist/src/components/GridPopoverHook.d.ts +5 -2
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +10 -4
- package/dist/src/components/gridForm/GridFormEditBearing.d.ts +5 -5
- package/dist/src/components/gridForm/GridFormMessage.d.ts +4 -5
- package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +5 -4
- package/dist/src/components/gridForm/GridFormPopoutMenu.d.ts +3 -3
- package/dist/src/components/gridForm/GridFormTextArea.d.ts +3 -3
- package/dist/src/components/gridForm/GridFormTextInput.d.ts +3 -3
- package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.d.ts +3 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +5 -270
- package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +3 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +3 -4
- package/dist/src/components/gridPopoverEdit/GridPopoverMessage.d.ts +3 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverTextArea.d.ts +3 -2
- package/dist/src/components/gridPopoverEdit/GridPopoverTextInput.d.ts +3 -2
- package/dist/src/components/gridRender/GridRenderGenericCell.d.ts +4 -5
- package/dist/src/contexts/GridContext.d.ts +1 -1
- package/dist/src/contexts/GridPopoverContext.d.ts +17 -0
- package/dist/src/contexts/GridPopoverContextProvider.d.ts +6 -0
- package/dist/src/contexts/{UpdatingContext.d.ts → GridUpdatingContext.d.ts} +2 -2
- package/dist/src/contexts/GridUpdatingContextProvider.d.ts +7 -0
- package/dist/src/index.d.ts +31 -0
- package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +2 -21
- package/dist/src/react-menu3/contexts/EventHandlersContext.d.ts +7 -0
- package/dist/src/react-menu3/contexts/HoverItemContext.d.ts +2 -0
- package/dist/src/react-menu3/contexts/ItemSettingsContext.d.ts +5 -0
- package/dist/src/react-menu3/contexts/MenuListContext.d.ts +9 -0
- package/dist/src/react-menu3/contexts/MenuListItemContext.d.ts +11 -0
- package/dist/src/react-menu3/contexts/RadioGroupContext.d.ts +7 -0
- package/dist/src/react-menu3/contexts/SettingsContext.d.ts +20 -0
- package/dist/src/react-menu3/index.d.ts +0 -1
- package/dist/src/react-menu3/utils/constants.d.ts +1 -50
- package/dist/step-ag-grid.esm.js +622 -312
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +39 -26
- package/src/components/ComponentLoadingWrapper.tsx +2 -1
- package/src/components/Grid.tsx +3 -8
- package/src/components/GridCell.tsx +62 -79
- package/src/components/GridLoadableCell.tsx +0 -1
- package/src/components/GridPopoverHook.tsx +18 -16
- package/src/components/gridForm/GridFormDropDown.tsx +47 -32
- package/src/components/gridForm/GridFormEditBearing.tsx +14 -14
- package/src/components/gridForm/GridFormMessage.tsx +11 -17
- package/src/components/gridForm/GridFormMultiSelect.tsx +89 -79
- package/src/components/gridForm/GridFormPopoutMenu.tsx +10 -11
- package/src/components/gridForm/GridFormTextArea.tsx +16 -17
- package/src/components/gridForm/GridFormTextInput.tsx +17 -17
- package/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts +20 -15
- package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +53 -45
- package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +21 -15
- package/src/components/gridPopoverEdit/GridPopoverMenu.scss +4 -4
- package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +21 -23
- package/src/components/gridPopoverEdit/GridPopoverMessage.ts +18 -16
- package/src/components/gridPopoverEdit/GridPopoverTextArea.ts +12 -16
- package/src/components/gridPopoverEdit/GridPopoverTextInput.ts +15 -15
- package/src/components/gridRender/GridRenderGenericCell.tsx +5 -6
- package/src/components/gridRender/GridRenderPopoutMenuCell.tsx +2 -2
- package/src/contexts/GridContext.tsx +1 -1
- package/src/contexts/GridContextProvider.tsx +3 -5
- package/src/contexts/GridPopoverContext.tsx +26 -0
- package/src/contexts/GridPopoverContextProvider.tsx +54 -0
- package/src/contexts/{UpdatingContext.tsx → GridUpdatingContext.tsx} +2 -2
- package/src/contexts/{UpdatingContextProvider.tsx → GridUpdatingContextProvider.tsx} +8 -6
- package/src/index.ts +38 -0
- package/src/lui/TextInputFormatted.scss +1 -1
- package/src/react-menu3/README.md +66 -0
- package/src/react-menu3/components/ControlledMenu.tsx +9 -17
- package/src/react-menu3/components/FocusableItem.tsx +2 -9
- package/src/react-menu3/components/MenuGroup.tsx +2 -1
- package/src/react-menu3/components/MenuItem.tsx +3 -12
- package/src/react-menu3/components/MenuList.tsx +4 -4
- package/src/react-menu3/components/MenuRadioGroup.tsx +3 -22
- package/src/react-menu3/components/SubMenu.tsx +4 -4
- package/src/react-menu3/contexts/EventHandlersContext.ts +11 -0
- package/src/react-menu3/contexts/HoverItemContext.ts +3 -0
- package/src/react-menu3/contexts/ItemSettingsContext.ts +6 -0
- package/src/react-menu3/contexts/MenuListContext.ts +10 -0
- package/src/react-menu3/contexts/MenuListItemContext.ts +16 -0
- package/src/react-menu3/contexts/RadioGroupContext.ts +8 -0
- package/src/react-menu3/contexts/SettingsContext.ts +20 -0
- package/src/react-menu3/hooks/useItemState.ts +3 -1
- package/src/react-menu3/index.ts +0 -1
- package/src/react-menu3/styles/_var.scss +4 -4
- package/src/react-menu3/styles/core.scss +6 -6
- package/src/react-menu3/styles/index.scss +10 -7
- package/src/react-menu3/styles/theme-dark.scss +4 -2
- package/src/react-menu3/styles/transitions/slide.scss +8 -8
- package/src/react-menu3/utils/constants.ts +1 -74
- package/src/react-menu3/utils/withHovering.tsx +1 -1
- package/src/stories/components/FormTest.scss +1 -2
- package/src/stories/components/FormTest.tsx +4 -3
- package/src/stories/components/GridPopoutBearing.stories.tsx +30 -26
- package/src/stories/components/GridPopoutEditDropDown.stories.tsx +94 -51
- package/src/stories/components/GridPopoutEditGeneric.stories.tsx +18 -14
- package/src/stories/components/GridPopoutEditGenericTextArea.stories.tsx +78 -62
- package/src/stories/components/GridPopoutEditMultiSelect.stories.tsx +60 -52
- package/src/stories/components/GridReadOnly.stories.tsx +77 -64
- package/src/stories/components/ReactMenu.stories.tsx +0 -4
- package/src/{components → styles}/Grid.scss +9 -6
- package/src/styles/GridFormDropDown.scss +18 -0
- package/src/{components/gridForm → styles}/GridFormEditBearing.scss +0 -0
- package/src/styles/GridFormMultiSelect.scss +18 -0
- package/src/styles/GridRenderGenericCell.scss +15 -0
- package/src/styles/GridTheme.scss +108 -0
- package/src/styles/index.scss +2 -0
- package/src/styles/lui-overrides.scss +49 -0
- package/src/styles/react-menu-customisations.scss +135 -0
- package/dist/index.d.ts +0 -38
- package/dist/src/contexts/UpdatingContextProvider.d.ts +0 -7
- package/dist/src/stories/components/FormTest.d.ts +0 -13
- package/dist/src/stories/components/GridPopoutBearing.stories.d.ts +0 -9
- package/dist/src/stories/components/GridPopoutEditDropDown.stories.d.ts +0 -9
- package/dist/src/stories/components/GridPopoutEditGeneric.stories.d.ts +0 -9
- package/dist/src/stories/components/GridPopoutEditGenericTextArea.stories.d.ts +0 -9
- package/dist/src/stories/components/GridPopoutEditMultiSelect.stories.d.ts +0 -9
- package/dist/src/stories/components/GridReadOnly.stories.d.ts +0 -9
- package/dist/src/stories/components/ReactMenu.stories.d.ts +0 -8
- package/src/components/gridRender/GridRenderGenericCell.scss +0 -15
- package/src/lui-overrides.scss +0 -163
- package/src/react-menu3/style-utils.d.ts +0 -110
|
@@ -1,34 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { GridBaseRow } from "./Grid";
|
|
3
|
-
import {
|
|
3
|
+
import { GenericCellColDef } from "./gridRender/GridRenderGenericCell";
|
|
4
4
|
import { ColDef, ICellEditorParams, ICellRendererParams } from "ag-grid-community";
|
|
5
|
-
export interface
|
|
6
|
-
cellEditorParams: ICellEditorParams;
|
|
7
|
-
updateValue: (saveFn: (selectedRows: RowType[]) => Promise<boolean>) => Promise<boolean>;
|
|
8
|
-
saving: boolean;
|
|
9
|
-
data: RowType;
|
|
10
|
-
value: any;
|
|
11
|
-
field: string | undefined;
|
|
12
|
-
selectedRows: RowType[];
|
|
13
|
-
formProps: Record<string, any>;
|
|
14
|
-
}
|
|
15
|
-
export interface GenericCellEditorParams<RowType extends GridBaseRow> {
|
|
5
|
+
export interface GenericCellEditorProps<E> {
|
|
16
6
|
multiEdit?: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export interface GenericCellEditorColDef<RowType extends GridBaseRow, FormProps extends GenericCellEditorParams<RowType>> extends ColDef {
|
|
20
|
-
cellEditorParams?: FormProps;
|
|
21
|
-
cellRendererParams?: GenericCellRendererParams<RowType>;
|
|
7
|
+
editor?: (editorProps: E) => JSX.Element;
|
|
8
|
+
editorParams?: E;
|
|
22
9
|
}
|
|
23
10
|
export declare const GridCellRenderer: (props: ICellRendererParams) => JSX.Element;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export declare const GridCell: <RowType extends GridBaseRow,
|
|
28
|
-
|
|
11
|
+
export interface ColDefT<RowType extends GridBaseRow> extends ColDef {
|
|
12
|
+
_?: RowType;
|
|
13
|
+
}
|
|
14
|
+
export declare const GridCell: <RowType extends GridBaseRow, Props>(props: GenericCellColDef<RowType>, custom?: {
|
|
15
|
+
multiEdit?: boolean | undefined;
|
|
16
|
+
editor?: ((editorProps: Props) => JSX.Element) | undefined;
|
|
17
|
+
editorParams?: Props | undefined;
|
|
18
|
+
} | undefined) => ColDefT<RowType>;
|
|
19
|
+
export interface CellEditorCommon {
|
|
20
|
+
className?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface CellParams<RowType extends GridBaseRow> {
|
|
23
|
+
value: any;
|
|
29
24
|
data: RowType;
|
|
30
|
-
|
|
25
|
+
field: string | undefined;
|
|
26
|
+
selectedRows: RowType[];
|
|
31
27
|
}
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const GenericCellEditorComponent: import("react").ForwardRefExoticComponent<GenericCellEditorICellEditorParams<GridBaseRow, Record<string, any>> & import("react").RefAttributes<any>>;
|
|
34
|
-
export {};
|
|
28
|
+
export declare const GenericCellEditorComponent: (editor: (props: any) => JSX.Element) => import("react").ForwardRefExoticComponent<ICellEditorParams & import("react").RefAttributes<unknown>>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { GridFormProps } from "./GridCell";
|
|
3
2
|
import { GridBaseRow } from "./Grid";
|
|
4
|
-
export
|
|
3
|
+
export interface GridPopoverHookProps<RowType> {
|
|
4
|
+
className: string | undefined;
|
|
5
|
+
save?: (selectedRows: RowType[]) => Promise<boolean>;
|
|
6
|
+
}
|
|
7
|
+
export declare const useGridPopoverHook: <RowType extends GridBaseRow>(props: GridPopoverHookProps<RowType>) => {
|
|
5
8
|
popoverWrapper: (children: JSX.Element) => JSX.Element;
|
|
6
9
|
triggerSave: (reason?: string) => Promise<void>;
|
|
7
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "../../
|
|
2
|
+
import "../../styles/GridFormDropDown.scss";
|
|
3
3
|
import { GridBaseRow } from "../Grid";
|
|
4
|
-
import {
|
|
4
|
+
import { CellEditorCommon } from "../GridCell";
|
|
5
5
|
export interface GridPopoutEditDropDownSelectedItem<RowType, ValueType> {
|
|
6
6
|
selectedRows: RowType[];
|
|
7
7
|
value: ValueType;
|
|
@@ -15,8 +15,14 @@ export declare const MenuSeparatorString = "_____MENU_SEPARATOR_____";
|
|
|
15
15
|
export declare const MenuSeparator: Readonly<{
|
|
16
16
|
value: "_____MENU_SEPARATOR_____";
|
|
17
17
|
}>;
|
|
18
|
+
export declare const MenuHeaderString = "_____MENU_HEADER_____";
|
|
19
|
+
export declare const MenuHeaderItem: (title: string) => {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
18
23
|
export declare type SelectOption<ValueType> = ValueType | FinalSelectOption<ValueType>;
|
|
19
|
-
export interface GridFormPopoutDropDownProps<RowType extends GridBaseRow, ValueType> extends
|
|
24
|
+
export interface GridFormPopoutDropDownProps<RowType extends GridBaseRow, ValueType> extends CellEditorCommon {
|
|
25
|
+
className?: "GridPopoverEditDropDown-containerSmall" | "GridPopoverEditDropDown-containerMedium" | "GridPopoverEditDropDown-containerLarge" | string | undefined;
|
|
20
26
|
filtered?: "local" | "reload";
|
|
21
27
|
filterPlaceholder?: string;
|
|
22
28
|
onSelectedItem?: (props: GridPopoutEditDropDownSelectedItem<RowType, ValueType>) => Promise<void>;
|
|
@@ -24,5 +30,5 @@ export interface GridFormPopoutDropDownProps<RowType extends GridBaseRow, ValueT
|
|
|
24
30
|
options: SelectOption<ValueType>[] | ((selectedRows: RowType[], filter?: string) => Promise<SelectOption<ValueType>[]> | SelectOption<ValueType>[]);
|
|
25
31
|
optionsRequestCancel?: () => void;
|
|
26
32
|
}
|
|
27
|
-
export declare const GridFormDropDown: <RowType extends GridBaseRow, ValueType>(
|
|
33
|
+
export declare const GridFormDropDown: <RowType extends GridBaseRow, ValueType>(_props: GridFormPopoutDropDownProps<RowType, ValueType>) => JSX.Element;
|
|
28
34
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "
|
|
2
|
+
import "../../styles/GridFormEditBearing.scss";
|
|
3
3
|
import { GridBaseRow } from "../Grid";
|
|
4
|
-
import {
|
|
5
|
-
export interface GridFormEditBearingProps<RowType extends GridBaseRow> extends
|
|
6
|
-
placeHolder
|
|
4
|
+
import { CellEditorCommon } from "@components/GridCell";
|
|
5
|
+
export interface GridFormEditBearingProps<RowType extends GridBaseRow> extends CellEditorCommon {
|
|
6
|
+
placeHolder?: string;
|
|
7
7
|
range?: (value: number | null) => string | null;
|
|
8
8
|
onSave?: (selectedRows: RowType[], value: number | null) => Promise<boolean>;
|
|
9
9
|
}
|
|
10
|
-
export declare const GridFormEditBearing: <RowType extends GridBaseRow>(
|
|
10
|
+
export declare const GridFormEditBearing: <RowType extends GridBaseRow>(_props: GridFormEditBearingProps<RowType>) => JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { GenericCellEditorParams, GridFormProps } from "../GridCell";
|
|
3
|
-
import { ICellEditorParams } from "ag-grid-community";
|
|
4
2
|
import { GridBaseRow } from "../Grid";
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { CellEditorCommon, CellParams } from "@components/GridCell";
|
|
4
|
+
export interface GridFormMessageProps<RowType extends GridBaseRow> extends CellEditorCommon {
|
|
5
|
+
message: (cellParams: CellParams<RowType>) => Promise<string | JSX.Element> | string | JSX.Element;
|
|
7
6
|
}
|
|
8
|
-
export declare const GridFormMessage: <RowType extends GridBaseRow>(
|
|
7
|
+
export declare const GridFormMessage: <RowType extends GridBaseRow>(_props: GridFormMessageProps<RowType>) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "../../
|
|
2
|
+
import "../../styles/GridFormMultiSelect.scss";
|
|
3
3
|
import { GridBaseRow } from "../Grid";
|
|
4
|
-
import {
|
|
4
|
+
import { CellEditorCommon } from "@components/GridCell";
|
|
5
5
|
interface MultiFinalSelectOption<ValueType> {
|
|
6
6
|
value: ValueType;
|
|
7
7
|
label?: JSX.Element | string;
|
|
@@ -12,12 +12,13 @@ export interface MultiSelectResult<RowType> {
|
|
|
12
12
|
selectedRows: RowType[];
|
|
13
13
|
values: Record<string, any>;
|
|
14
14
|
}
|
|
15
|
-
export interface GridFormMultiSelectProps<RowType extends GridBaseRow, ValueType> extends
|
|
15
|
+
export interface GridFormMultiSelectProps<RowType extends GridBaseRow, ValueType> extends CellEditorCommon {
|
|
16
|
+
className?: "GridMultiSelect-containerSmall" | "GridMultiSelect-containerMedium" | "GridMultiSelect-containerLarge" | string | undefined;
|
|
16
17
|
filtered?: boolean;
|
|
17
18
|
filterPlaceholder?: string;
|
|
18
19
|
onSave?: (props: MultiSelectResult<RowType>) => Promise<boolean>;
|
|
19
20
|
options: MultiSelectOption<ValueType>[] | ((selectedRows: RowType[]) => Promise<MultiSelectOption<ValueType>[]> | MultiSelectOption<ValueType>[]);
|
|
20
21
|
initialSelectedValues?: (selectedRows: RowType[]) => any[];
|
|
21
22
|
}
|
|
22
|
-
export declare const GridFormMultiSelect: <RowType extends GridBaseRow, ValueType>(props:
|
|
23
|
+
export declare const GridFormMultiSelect: <RowType extends GridBaseRow, ValueType>(props: GridFormMultiSelectProps<RowType, ValueType>) => JSX.Element;
|
|
23
24
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GridBaseRow } from "../Grid";
|
|
3
|
-
import {
|
|
4
|
-
export interface GridFormPopoutMenuProps<RowType extends GridBaseRow> extends
|
|
3
|
+
import { CellEditorCommon } from "@components/GridCell";
|
|
4
|
+
export interface GridFormPopoutMenuProps<RowType extends GridBaseRow> extends CellEditorCommon {
|
|
5
5
|
options: (selectedRows: RowType[]) => Promise<MenuOption<RowType>[]>;
|
|
6
6
|
}
|
|
7
7
|
/** Menu configuration types **/
|
|
@@ -22,5 +22,5 @@ export interface MenuOption<RowType> {
|
|
|
22
22
|
* NOTE: If the popout menu doesn't appear on single click when also selecting row it's because
|
|
23
23
|
* you need a useMemo around your columnDefs
|
|
24
24
|
*/
|
|
25
|
-
export declare const GridFormPopoutMenu: <RowType extends GridBaseRow>(
|
|
25
|
+
export declare const GridFormPopoutMenu: <RowType extends GridBaseRow>(_props: GridFormPopoutMenuProps<RowType>) => JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { GenericCellEditorParams, GridFormProps } from "../GridCell";
|
|
3
2
|
import { GridBaseRow } from "../Grid";
|
|
4
|
-
|
|
3
|
+
import { CellEditorCommon } from "@components/GridCell";
|
|
4
|
+
export interface GridFormTextAreaProps<RowType extends GridBaseRow> extends CellEditorCommon {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
required?: boolean;
|
|
7
7
|
maxlength?: number;
|
|
@@ -9,4 +9,4 @@ export interface GridFormTextAreaProps<RowType extends GridBaseRow> extends Gene
|
|
|
9
9
|
validate?: (value: string) => string | null;
|
|
10
10
|
onSave?: (selectedRows: RowType[], value: string) => Promise<boolean>;
|
|
11
11
|
}
|
|
12
|
-
export declare const GridFormTextArea: <RowType extends GridBaseRow>(
|
|
12
|
+
export declare const GridFormTextArea: <RowType extends GridBaseRow>(_props: GridFormTextAreaProps<RowType>) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { GenericCellEditorParams, GridFormProps } from "../GridCell";
|
|
3
2
|
import { GridBaseRow } from "../Grid";
|
|
4
|
-
|
|
3
|
+
import { CellEditorCommon } from "@components/GridCell";
|
|
4
|
+
export interface GridFormTextInputProps<RowType extends GridBaseRow> extends CellEditorCommon {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
units?: string;
|
|
7
7
|
required?: boolean;
|
|
@@ -10,4 +10,4 @@ export interface GridFormTextInputProps<RowType extends GridBaseRow> extends Gen
|
|
|
10
10
|
validate?: (value: string, data: RowType) => string | null;
|
|
11
11
|
onSave?: (selectedRows: RowType[], value: string) => Promise<boolean>;
|
|
12
12
|
}
|
|
13
|
-
export declare const GridFormTextInput: <RowType extends GridBaseRow>(
|
|
13
|
+
export declare const GridFormTextInput: <RowType extends GridBaseRow>(_props: GridFormTextInputProps<RowType>) => JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
2
2
|
import { GridBaseRow } from "../Grid";
|
|
3
3
|
import { GridFormMultiSelectProps } from "../gridForm/GridFormMultiSelect";
|
|
4
|
-
|
|
4
|
+
import { GenericCellColDef } from "@components/gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoutEditMultiSelect: <RowType extends GridBaseRow, ValueType>(colDef: GenericCellColDef<RowType>, props: GenericCellEditorProps<GridFormMultiSelectProps<RowType, ValueType>>) => ColDefT<RowType>;
|
|
@@ -1,272 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
2
2
|
import { GridFormEditBearingProps } from "../gridForm/GridFormEditBearing";
|
|
3
3
|
import { GridBaseRow } from "../Grid";
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
colId?: string | undefined;
|
|
9
|
-
field?: string | undefined;
|
|
10
|
-
type?: string | string[] | undefined;
|
|
11
|
-
valueGetter?: string | import("ag-grid-community").ValueGetterFunc | undefined;
|
|
12
|
-
refData?: {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
} | undefined;
|
|
15
|
-
keyCreator?: ((params: import("ag-grid-community").KeyCreatorParams) => string) | undefined;
|
|
16
|
-
equals?: ((valueA: any, valueB: any) => boolean) | undefined;
|
|
17
|
-
tooltipField?: string | undefined;
|
|
18
|
-
tooltipValueGetter?: ((params: import("ag-grid-community").ITooltipParams) => any) | undefined;
|
|
19
|
-
checkboxSelection?: boolean | import("ag-grid-community").CheckboxSelectionCallback | undefined;
|
|
20
|
-
icons?: {
|
|
21
|
-
[key: string]: string | Function;
|
|
22
|
-
} | undefined;
|
|
23
|
-
suppressNavigable?: boolean | import("ag-grid-community").SuppressNavigableCallback | undefined;
|
|
24
|
-
suppressKeyboardEvent?: ((params: import("ag-grid-community").SuppressKeyboardEventParams) => boolean) | undefined;
|
|
25
|
-
suppressPaste?: boolean | import("ag-grid-community").SuppressPasteCallback | undefined;
|
|
26
|
-
suppressFillHandle?: boolean | undefined;
|
|
27
|
-
hide?: boolean | undefined;
|
|
28
|
-
initialHide?: boolean | undefined;
|
|
29
|
-
lockVisible?: boolean | undefined;
|
|
30
|
-
lockPosition?: boolean | "left" | "right" | undefined;
|
|
31
|
-
suppressMovable?: boolean | undefined;
|
|
32
|
-
editable?: boolean | import("ag-grid-community").EditableCallback | undefined;
|
|
33
|
-
valueSetter?: string | import("ag-grid-community").ValueSetterFunc | undefined;
|
|
34
|
-
valueParser?: string | import("ag-grid-community").ValueParserFunc | undefined;
|
|
35
|
-
cellEditor?: any;
|
|
36
|
-
cellEditorFramework?: any;
|
|
37
|
-
cellEditorSelector?: import("ag-grid-community").CellEditorSelectorFunc | undefined;
|
|
38
|
-
singleClickEdit?: boolean | undefined;
|
|
39
|
-
newValueHandler?: ((params: import("ag-grid-community").NewValueParams) => boolean) | undefined;
|
|
40
|
-
cellEditorPopup?: boolean | undefined;
|
|
41
|
-
cellEditorPopupPosition?: string | undefined;
|
|
42
|
-
onCellValueChanged?: ((event: import("ag-grid-community").NewValueParams) => void) | undefined;
|
|
43
|
-
onCellClicked?: ((event: import("ag-grid-community").CellClickedEvent) => void) | undefined;
|
|
44
|
-
onCellDoubleClicked?: ((event: import("ag-grid-community").CellDoubleClickedEvent) => void) | undefined;
|
|
45
|
-
onCellContextMenu?: ((event: import("ag-grid-community").CellContextMenuEvent) => void) | undefined;
|
|
46
|
-
getQuickFilterText?: ((params: import("ag-grid-community").GetQuickFilterTextParams) => string) | undefined;
|
|
47
|
-
filterValueGetter?: string | import("ag-grid-community").ValueGetterFunc | undefined;
|
|
48
|
-
floatingFilter?: boolean | undefined;
|
|
49
|
-
headerComponent?: any;
|
|
50
|
-
headerComponentFramework?: any;
|
|
51
|
-
headerComponentParams?: any;
|
|
52
|
-
menuTabs?: string[] | undefined;
|
|
53
|
-
columnsMenuParams?: import("ag-grid-community").ColumnsMenuParams | undefined;
|
|
54
|
-
suppressMenu?: boolean | undefined;
|
|
55
|
-
headerCheckboxSelection?: boolean | import("ag-grid-community").HeaderCheckboxSelectionCallback | undefined;
|
|
56
|
-
headerCheckboxSelectionFilteredOnly?: boolean | undefined;
|
|
57
|
-
chartDataType?: "category" | "series" | "time" | "excluded" | undefined;
|
|
58
|
-
pinned?: string | boolean | null | undefined;
|
|
59
|
-
initialPinned?: string | boolean | undefined;
|
|
60
|
-
lockPinned?: boolean | undefined;
|
|
61
|
-
pinnedRowCellRenderer?: string | (new () => import("ag-grid-community").ICellRendererComp) | import("ag-grid-community").ICellRendererFunc | undefined;
|
|
62
|
-
pinnedRowCellRendererFramework?: any;
|
|
63
|
-
pinnedRowCellRendererParams?: any;
|
|
64
|
-
pinnedRowValueFormatter?: string | import("ag-grid-community").ValueFormatterFunc | undefined;
|
|
65
|
-
pivot?: boolean | undefined;
|
|
66
|
-
initialPivot?: boolean | undefined;
|
|
67
|
-
pivotIndex?: number | null | undefined;
|
|
68
|
-
initialPivotIndex?: number | undefined;
|
|
69
|
-
pivotComparator?: ((valueA: string, valueB: string) => number) | undefined;
|
|
70
|
-
enablePivot?: boolean | undefined;
|
|
71
|
-
cellStyle?: import("ag-grid-community").CellStyle | import("ag-grid-community").CellStyleFunc | undefined;
|
|
72
|
-
cellClass?: string | import("ag-grid-community").CellClassFunc | string[] | undefined;
|
|
73
|
-
cellClassRules?: import("ag-grid-community").CellClassRules | undefined;
|
|
74
|
-
cellRenderer?: any;
|
|
75
|
-
cellRendererFramework?: any;
|
|
76
|
-
cellRendererParams?: any;
|
|
77
|
-
cellRendererSelector?: import("ag-grid-community").CellRendererSelectorFunc | undefined;
|
|
78
|
-
autoHeight?: boolean | undefined;
|
|
79
|
-
wrapText?: boolean | undefined;
|
|
80
|
-
enableCellChangeFlash?: boolean | undefined;
|
|
81
|
-
suppressCellFlash?: boolean | undefined;
|
|
82
|
-
rowDrag?: boolean | import("ag-grid-community").RowDragCallback | undefined;
|
|
83
|
-
rowDragText?: ((params: import("ag-grid-community").IRowDragItem, dragItemCount: number) => string) | undefined;
|
|
84
|
-
dndSource?: boolean | import("ag-grid-community").DndSourceCallback | undefined;
|
|
85
|
-
dndSourceOnRowDrag?: ((params: import("ag-grid-community").DndSourceOnRowDragParams) => void) | undefined;
|
|
86
|
-
rowGroup?: boolean | undefined;
|
|
87
|
-
initialRowGroup?: boolean | undefined;
|
|
88
|
-
rowGroupIndex?: number | null | undefined;
|
|
89
|
-
initialRowGroupIndex?: number | undefined;
|
|
90
|
-
enableRowGroup?: boolean | undefined;
|
|
91
|
-
enableValue?: boolean | undefined;
|
|
92
|
-
aggFunc?: string | import("ag-grid-community").IAggFunc | null | undefined;
|
|
93
|
-
initialAggFunc?: string | import("ag-grid-community").IAggFunc | undefined;
|
|
94
|
-
defaultAggFunc?: string | undefined;
|
|
95
|
-
allowedAggFuncs?: string[] | undefined;
|
|
96
|
-
showRowGroup?: string | boolean | undefined;
|
|
97
|
-
sortable?: boolean | undefined;
|
|
98
|
-
sort?: "asc" | "desc" | null | undefined;
|
|
99
|
-
initialSort?: "asc" | "desc" | null | undefined;
|
|
100
|
-
sortIndex?: number | null | undefined;
|
|
101
|
-
initialSortIndex?: number | undefined;
|
|
102
|
-
sortingOrder?: ("asc" | "desc" | null)[] | undefined;
|
|
103
|
-
comparator?: ((valueA: any, valueB: any, nodeA: import("ag-grid-community").RowNode, nodeB: import("ag-grid-community").RowNode, isInverted: boolean) => number) | undefined;
|
|
104
|
-
unSortIcon?: boolean | undefined;
|
|
105
|
-
sortedAt?: number | undefined;
|
|
106
|
-
colSpan?: ((params: import("ag-grid-community").ColSpanParams) => number) | undefined;
|
|
107
|
-
rowSpan?: ((params: import("ag-grid-community").RowSpanParams) => number) | undefined;
|
|
108
|
-
width?: number | undefined;
|
|
109
|
-
initialWidth?: number | undefined;
|
|
110
|
-
minWidth?: number | undefined;
|
|
111
|
-
maxWidth?: number | undefined;
|
|
112
|
-
flex?: number | undefined;
|
|
113
|
-
initialFlex?: number | undefined;
|
|
114
|
-
resizable?: boolean | undefined;
|
|
115
|
-
suppressSizeToFit?: boolean | undefined;
|
|
116
|
-
suppressAutoSize?: boolean | undefined;
|
|
117
|
-
pivotValueColumn?: import("ag-grid-community").Column | null | undefined;
|
|
118
|
-
pivotTotalColumnIds?: string[] | undefined;
|
|
119
|
-
headerName?: string | undefined;
|
|
120
|
-
headerValueGetter?: string | import("ag-grid-community").HeaderValueGetterFunc | undefined;
|
|
121
|
-
headerTooltip?: string | undefined;
|
|
122
|
-
headerClass?: import("ag-grid-community").HeaderClass | undefined;
|
|
123
|
-
suppressHeaderKeyboardEvent?: ((params: import("ag-grid-community").SuppressHeaderKeyboardEventParams) => boolean) | undefined;
|
|
124
|
-
columnGroupShow?: string | undefined;
|
|
125
|
-
toolPanelClass?: import("ag-grid-community").ToolPanelClass | undefined;
|
|
126
|
-
suppressColumnsToolPanel?: boolean | undefined;
|
|
127
|
-
suppressFiltersToolPanel?: boolean | undefined;
|
|
128
|
-
tooltipComponent?: any;
|
|
129
|
-
tooltipComponentFramework?: any;
|
|
130
|
-
tooltipComponentParams?: any;
|
|
131
|
-
pivotKeys?: string[] | undefined;
|
|
132
|
-
filter?: any;
|
|
133
|
-
filterFramework?: any;
|
|
134
|
-
filterParams?: any;
|
|
135
|
-
floatingFilterComponent?: any;
|
|
136
|
-
floatingFilterComponentFramework?: any;
|
|
137
|
-
floatingFilterComponentParams?: any;
|
|
138
|
-
};
|
|
139
|
-
export declare const GridPopoverEditBearingCorrection: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType, GridFormEditBearingProps<RowType>>) => {
|
|
140
|
-
valueFormatter: (params: import("ag-grid-community").ValueFormatterParams) => string;
|
|
141
|
-
cellEditorParams: any;
|
|
142
|
-
colId?: string | undefined;
|
|
143
|
-
field?: string | undefined;
|
|
144
|
-
type?: string | string[] | undefined;
|
|
145
|
-
valueGetter?: string | import("ag-grid-community").ValueGetterFunc | undefined;
|
|
146
|
-
refData?: {
|
|
147
|
-
[key: string]: string;
|
|
148
|
-
} | undefined;
|
|
149
|
-
keyCreator?: ((params: import("ag-grid-community").KeyCreatorParams) => string) | undefined;
|
|
150
|
-
equals?: ((valueA: any, valueB: any) => boolean) | undefined;
|
|
151
|
-
tooltipField?: string | undefined;
|
|
152
|
-
tooltipValueGetter?: ((params: import("ag-grid-community").ITooltipParams) => any) | undefined;
|
|
153
|
-
checkboxSelection?: boolean | import("ag-grid-community").CheckboxSelectionCallback | undefined;
|
|
154
|
-
icons?: {
|
|
155
|
-
[key: string]: string | Function;
|
|
156
|
-
} | undefined;
|
|
157
|
-
suppressNavigable?: boolean | import("ag-grid-community").SuppressNavigableCallback | undefined;
|
|
158
|
-
suppressKeyboardEvent?: ((params: import("ag-grid-community").SuppressKeyboardEventParams) => boolean) | undefined;
|
|
159
|
-
suppressPaste?: boolean | import("ag-grid-community").SuppressPasteCallback | undefined;
|
|
160
|
-
suppressFillHandle?: boolean | undefined;
|
|
161
|
-
hide?: boolean | undefined;
|
|
162
|
-
initialHide?: boolean | undefined;
|
|
163
|
-
lockVisible?: boolean | undefined;
|
|
164
|
-
lockPosition?: boolean | "left" | "right" | undefined;
|
|
165
|
-
suppressMovable?: boolean | undefined;
|
|
166
|
-
editable?: boolean | import("ag-grid-community").EditableCallback | undefined;
|
|
167
|
-
valueSetter?: string | import("ag-grid-community").ValueSetterFunc | undefined;
|
|
168
|
-
valueParser?: string | import("ag-grid-community").ValueParserFunc | undefined;
|
|
169
|
-
cellEditor?: any;
|
|
170
|
-
cellEditorFramework?: any;
|
|
171
|
-
cellEditorSelector?: import("ag-grid-community").CellEditorSelectorFunc | undefined;
|
|
172
|
-
singleClickEdit?: boolean | undefined;
|
|
173
|
-
newValueHandler?: ((params: import("ag-grid-community").NewValueParams) => boolean) | undefined;
|
|
174
|
-
cellEditorPopup?: boolean | undefined;
|
|
175
|
-
cellEditorPopupPosition?: string | undefined;
|
|
176
|
-
onCellValueChanged?: ((event: import("ag-grid-community").NewValueParams) => void) | undefined;
|
|
177
|
-
onCellClicked?: ((event: import("ag-grid-community").CellClickedEvent) => void) | undefined;
|
|
178
|
-
onCellDoubleClicked?: ((event: import("ag-grid-community").CellDoubleClickedEvent) => void) | undefined;
|
|
179
|
-
onCellContextMenu?: ((event: import("ag-grid-community").CellContextMenuEvent) => void) | undefined;
|
|
180
|
-
getQuickFilterText?: ((params: import("ag-grid-community").GetQuickFilterTextParams) => string) | undefined;
|
|
181
|
-
filterValueGetter?: string | import("ag-grid-community").ValueGetterFunc | undefined;
|
|
182
|
-
floatingFilter?: boolean | undefined;
|
|
183
|
-
headerComponent?: any;
|
|
184
|
-
headerComponentFramework?: any;
|
|
185
|
-
headerComponentParams?: any;
|
|
186
|
-
menuTabs?: string[] | undefined;
|
|
187
|
-
columnsMenuParams?: import("ag-grid-community").ColumnsMenuParams | undefined;
|
|
188
|
-
suppressMenu?: boolean | undefined;
|
|
189
|
-
headerCheckboxSelection?: boolean | import("ag-grid-community").HeaderCheckboxSelectionCallback | undefined;
|
|
190
|
-
headerCheckboxSelectionFilteredOnly?: boolean | undefined;
|
|
191
|
-
chartDataType?: "category" | "series" | "time" | "excluded" | undefined;
|
|
192
|
-
pinned?: string | boolean | null | undefined;
|
|
193
|
-
initialPinned?: string | boolean | undefined;
|
|
194
|
-
lockPinned?: boolean | undefined;
|
|
195
|
-
pinnedRowCellRenderer?: string | (new () => import("ag-grid-community").ICellRendererComp) | import("ag-grid-community").ICellRendererFunc | undefined;
|
|
196
|
-
pinnedRowCellRendererFramework?: any;
|
|
197
|
-
pinnedRowCellRendererParams?: any;
|
|
198
|
-
pinnedRowValueFormatter?: string | import("ag-grid-community").ValueFormatterFunc | undefined;
|
|
199
|
-
pivot?: boolean | undefined;
|
|
200
|
-
initialPivot?: boolean | undefined;
|
|
201
|
-
pivotIndex?: number | null | undefined;
|
|
202
|
-
initialPivotIndex?: number | undefined;
|
|
203
|
-
pivotComparator?: ((valueA: string, valueB: string) => number) | undefined;
|
|
204
|
-
enablePivot?: boolean | undefined;
|
|
205
|
-
cellStyle?: import("ag-grid-community").CellStyle | import("ag-grid-community").CellStyleFunc | undefined;
|
|
206
|
-
cellClass?: string | import("ag-grid-community").CellClassFunc | string[] | undefined;
|
|
207
|
-
cellClassRules?: import("ag-grid-community").CellClassRules | undefined;
|
|
208
|
-
cellRenderer?: any;
|
|
209
|
-
cellRendererFramework?: any;
|
|
210
|
-
cellRendererParams?: any;
|
|
211
|
-
cellRendererSelector?: import("ag-grid-community").CellRendererSelectorFunc | undefined;
|
|
212
|
-
autoHeight?: boolean | undefined;
|
|
213
|
-
wrapText?: boolean | undefined;
|
|
214
|
-
enableCellChangeFlash?: boolean | undefined;
|
|
215
|
-
suppressCellFlash?: boolean | undefined;
|
|
216
|
-
rowDrag?: boolean | import("ag-grid-community").RowDragCallback | undefined;
|
|
217
|
-
rowDragText?: ((params: import("ag-grid-community").IRowDragItem, dragItemCount: number) => string) | undefined;
|
|
218
|
-
dndSource?: boolean | import("ag-grid-community").DndSourceCallback | undefined;
|
|
219
|
-
dndSourceOnRowDrag?: ((params: import("ag-grid-community").DndSourceOnRowDragParams) => void) | undefined;
|
|
220
|
-
rowGroup?: boolean | undefined;
|
|
221
|
-
initialRowGroup?: boolean | undefined;
|
|
222
|
-
rowGroupIndex?: number | null | undefined;
|
|
223
|
-
initialRowGroupIndex?: number | undefined;
|
|
224
|
-
enableRowGroup?: boolean | undefined;
|
|
225
|
-
enableValue?: boolean | undefined;
|
|
226
|
-
aggFunc?: string | import("ag-grid-community").IAggFunc | null | undefined;
|
|
227
|
-
initialAggFunc?: string | import("ag-grid-community").IAggFunc | undefined;
|
|
228
|
-
defaultAggFunc?: string | undefined;
|
|
229
|
-
allowedAggFuncs?: string[] | undefined;
|
|
230
|
-
showRowGroup?: string | boolean | undefined;
|
|
231
|
-
sortable?: boolean | undefined;
|
|
232
|
-
sort?: "asc" | "desc" | null | undefined;
|
|
233
|
-
initialSort?: "asc" | "desc" | null | undefined;
|
|
234
|
-
sortIndex?: number | null | undefined;
|
|
235
|
-
initialSortIndex?: number | undefined;
|
|
236
|
-
sortingOrder?: ("asc" | "desc" | null)[] | undefined;
|
|
237
|
-
comparator?: ((valueA: any, valueB: any, nodeA: import("ag-grid-community").RowNode, nodeB: import("ag-grid-community").RowNode, isInverted: boolean) => number) | undefined;
|
|
238
|
-
unSortIcon?: boolean | undefined;
|
|
239
|
-
sortedAt?: number | undefined;
|
|
240
|
-
colSpan?: ((params: import("ag-grid-community").ColSpanParams) => number) | undefined;
|
|
241
|
-
rowSpan?: ((params: import("ag-grid-community").RowSpanParams) => number) | undefined;
|
|
242
|
-
width?: number | undefined;
|
|
243
|
-
initialWidth?: number | undefined;
|
|
244
|
-
minWidth?: number | undefined;
|
|
245
|
-
maxWidth?: number | undefined;
|
|
246
|
-
flex?: number | undefined;
|
|
247
|
-
initialFlex?: number | undefined;
|
|
248
|
-
resizable?: boolean | undefined;
|
|
249
|
-
suppressSizeToFit?: boolean | undefined;
|
|
250
|
-
suppressAutoSize?: boolean | undefined;
|
|
251
|
-
pivotValueColumn?: import("ag-grid-community").Column | null | undefined;
|
|
252
|
-
pivotTotalColumnIds?: string[] | undefined;
|
|
253
|
-
headerName?: string | undefined;
|
|
254
|
-
headerValueGetter?: string | import("ag-grid-community").HeaderValueGetterFunc | undefined;
|
|
255
|
-
headerTooltip?: string | undefined;
|
|
256
|
-
headerClass?: import("ag-grid-community").HeaderClass | undefined;
|
|
257
|
-
suppressHeaderKeyboardEvent?: ((params: import("ag-grid-community").SuppressHeaderKeyboardEventParams) => boolean) | undefined;
|
|
258
|
-
columnGroupShow?: string | undefined;
|
|
259
|
-
toolPanelClass?: import("ag-grid-community").ToolPanelClass | undefined;
|
|
260
|
-
suppressColumnsToolPanel?: boolean | undefined;
|
|
261
|
-
suppressFiltersToolPanel?: boolean | undefined;
|
|
262
|
-
tooltipComponent?: any;
|
|
263
|
-
tooltipComponentFramework?: any;
|
|
264
|
-
tooltipComponentParams?: any;
|
|
265
|
-
pivotKeys?: string[] | undefined;
|
|
266
|
-
filter?: any;
|
|
267
|
-
filterFramework?: any;
|
|
268
|
-
filterParams?: any;
|
|
269
|
-
floatingFilterComponent?: any;
|
|
270
|
-
floatingFilterComponentFramework?: any;
|
|
271
|
-
floatingFilterComponentParams?: any;
|
|
272
|
-
};
|
|
4
|
+
import { GenericCellColDef } from "@components/gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoverEditBearingLike: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType>, props: GenericCellEditorProps<GridFormEditBearingProps<RowType>>) => ColDefT<RowType>;
|
|
6
|
+
export declare const GridPopoverEditBearing: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType>, props: GenericCellEditorProps<GridFormEditBearingProps<RowType>>) => ColDefT<RowType>;
|
|
7
|
+
export declare const GridPopoverEditBearingCorrection: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType>, props: GenericCellEditorProps<GridFormEditBearingProps<RowType>>) => ColDefT<RowType>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
2
2
|
import { GridBaseRow } from "../Grid";
|
|
3
3
|
import { GridFormPopoutDropDownProps } from "../gridForm/GridFormDropDown";
|
|
4
|
-
|
|
4
|
+
import { GenericCellColDef } from "@components/gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoverEditDropDown: <RowType extends GridBaseRow, ValueType>(colDef: GenericCellColDef<RowType>, props: GenericCellEditorProps<GridFormPopoutDropDownProps<RowType, ValueType>>) => ColDefT<RowType>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import "./GridPopoverMenu.scss";
|
|
2
|
-
import "../../react-menu3/styles/index.scss";
|
|
3
|
-
import { ColDef } from "ag-grid-community";
|
|
4
2
|
import { GridBaseRow } from "../Grid";
|
|
3
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
5
4
|
import { GridFormPopoutMenuProps } from "../gridForm/GridFormPopoutMenu";
|
|
6
|
-
import { GenericCellColDef } from "
|
|
5
|
+
import { GenericCellColDef } from "@components/gridRender/GridRenderGenericCell";
|
|
7
6
|
/**
|
|
8
7
|
* Popout burger menu
|
|
9
8
|
*/
|
|
10
|
-
export declare const GridPopoverMenu: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType
|
|
9
|
+
export declare const GridPopoverMenu: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType>, props: GenericCellEditorProps<GridFormPopoutMenuProps<RowType>>) => ColDefT<RowType>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
1
2
|
import { GridFormMessageProps } from "../gridForm/GridFormMessage";
|
|
2
3
|
import { GridBaseRow } from "../Grid";
|
|
3
|
-
import { GenericCellColDef } from "
|
|
4
|
-
export declare const GridPopoverMessage: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType
|
|
4
|
+
import { GenericCellColDef } from "@components/gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoverMessage: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType>, props: GenericCellEditorProps<GridFormMessageProps<RowType>>) => ColDefT<RowType>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
1
2
|
import { GridBaseRow } from "../Grid";
|
|
2
|
-
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
3
3
|
import { GridFormTextAreaProps } from "../gridForm/GridFormTextArea";
|
|
4
|
-
|
|
4
|
+
import { GenericCellColDef } from "@components/gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoverTextArea: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType>, params: GenericCellEditorProps<GridFormTextAreaProps<RowType>>) => ColDefT<RowType>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
1
2
|
import { GridBaseRow } from "../Grid";
|
|
2
|
-
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
3
3
|
import { GridFormTextInputProps } from "../gridForm/GridFormTextInput";
|
|
4
|
-
|
|
4
|
+
import { GenericCellColDef } from "@components/gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoverTextInput: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType>, params: GenericCellEditorProps<GridFormTextInputProps<RowType>>) => ColDefT<RowType>;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import { GenericCellEditorParams } from "../GridCell";
|
|
2
|
+
import "../../styles/GridRenderGenericCell.scss";
|
|
3
|
+
import { ICellRendererParams } from "ag-grid-community";
|
|
5
4
|
import { GridBaseRow } from "../Grid";
|
|
5
|
+
import { ColDefT } from "@components/GridCell";
|
|
6
6
|
export interface RowICellRendererParams<RowType extends GridBaseRow> extends ICellRendererParams {
|
|
7
7
|
data: RowType;
|
|
8
8
|
}
|
|
9
|
-
export interface GenericCellColDef<RowType extends GridBaseRow
|
|
9
|
+
export interface GenericCellColDef<RowType extends GridBaseRow> extends ColDefT<RowType> {
|
|
10
10
|
cellRendererParams?: GenericCellRendererParams<RowType>;
|
|
11
|
-
cellEditorParams?: GenericCellEditorParams<RowType> & FormProps;
|
|
12
11
|
}
|
|
13
12
|
export interface GenericCellRendererParams<RowType extends GridBaseRow> {
|
|
14
13
|
singleClickEdit?: boolean;
|
|
@@ -6,7 +6,7 @@ export interface GridContextType {
|
|
|
6
6
|
setGridApi: (gridApi: GridApi | undefined) => void;
|
|
7
7
|
setQuickFilter: (quickFilter: string) => void;
|
|
8
8
|
editingCells: () => boolean;
|
|
9
|
-
getSelectedRows: <T extends
|
|
9
|
+
getSelectedRows: <T extends GridBaseRow>() => T[];
|
|
10
10
|
getSelectedRowIds: () => number[];
|
|
11
11
|
selectRowsDiff: (updateFn: () => Promise<any>) => Promise<void>;
|
|
12
12
|
selectRowsWithFlashDiff: (updateFn: () => Promise<any>) => Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
import { ICellEditorParams } from "ag-grid-community";
|
|
3
|
+
export interface PropsType {
|
|
4
|
+
value: any;
|
|
5
|
+
data: any;
|
|
6
|
+
field: string;
|
|
7
|
+
selectedRows: any[];
|
|
8
|
+
updateValue: (saveFn: (selectedRows: any[]) => Promise<boolean>) => Promise<boolean>;
|
|
9
|
+
}
|
|
10
|
+
export declare type GridPopoverContextType = {
|
|
11
|
+
anchorRef: RefObject<Element>;
|
|
12
|
+
saving: boolean;
|
|
13
|
+
setSaving: (saving: boolean) => void;
|
|
14
|
+
setProps: (props: ICellEditorParams, multiEdit: boolean) => void;
|
|
15
|
+
propsRef: RefObject<PropsType>;
|
|
16
|
+
};
|
|
17
|
+
export declare const GridPopoverContext: import("react").Context<GridPopoverContextType>;
|