@linzjs/step-ag-grid 20.0.0 → 21.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/dist/index.css +3 -4
- 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 +4651 -4651
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +4651 -4651
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/dist/vite.config.d.ts +2 -0
- package/package.json +23 -22
- package/src/components/Grid.tsx +10 -9
- 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 +7 -7
- 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/gridHeader/GridHeaderSelect.tsx +10 -8
- 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 +9 -9
- package/src/contexts/GridContextProvider.test.tsx +1 -1
- package/src/contexts/GridContextProvider.tsx +32 -36
- package/src/contexts/GridPopoverContext.tsx +6 -6
- package/src/stories/grid/GridDragRow.stories.tsx +13 -7
- 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 +12 -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/styles/Grid.scss +3 -6
- package/src/utils/testUtil.ts +49 -7
- package/src/utils/textValidator.ts +5 -5
- package/src/utils/util.ts +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { GridBaseRow } from "../Grid";
|
|
3
|
-
import { CellEditorCommon } from "../GridCell";
|
|
4
|
-
export interface GridPopoutEditDropDownSelectedItem<
|
|
5
|
-
selectedRows:
|
|
6
|
-
value: any;
|
|
7
|
-
subComponentValue?: any;
|
|
8
|
-
}
|
|
9
|
-
interface FinalSelectOption {
|
|
10
|
-
value: any;
|
|
11
|
-
label?: ReactElement | string;
|
|
12
|
-
disabled?: boolean | string;
|
|
13
|
-
subComponent?: (props: any, ref: any) => any;
|
|
14
|
-
}
|
|
15
|
-
export declare const MenuSeparatorString = "_____MENU_SEPARATOR_____";
|
|
16
|
-
export declare const MenuSeparator: Readonly<{
|
|
17
|
-
value: "_____MENU_SEPARATOR_____";
|
|
18
|
-
}>;
|
|
19
|
-
export declare const MenuHeaderString = "_____MENU_HEADER_____";
|
|
20
|
-
export declare const MenuHeaderItem: (title: string) => {
|
|
21
|
-
label: string;
|
|
22
|
-
value: string;
|
|
23
|
-
};
|
|
24
|
-
export type SelectOption = null | string | FinalSelectOption;
|
|
25
|
-
export interface GridFormDropDownProps<
|
|
26
|
-
className?: "GridPopoverEditDropDown-containerSmall" | "GridPopoverEditDropDown-containerMedium" | "GridPopoverEditDropDown-containerLarge" | "GridPopoverEditDropDown-containerUnlimited" | string | undefined;
|
|
27
|
-
filtered?: "local" | "reload";
|
|
28
|
-
filterDefaultValue?: string;
|
|
29
|
-
filterPlaceholder?: string;
|
|
30
|
-
filterHelpText?: string;
|
|
31
|
-
noOptionsMessage?: string;
|
|
32
|
-
onSelectedItem?: (props: GridPopoutEditDropDownSelectedItem<
|
|
33
|
-
onSelectFilter?: (props: GridPopoutEditDropDownSelectedItem<
|
|
34
|
-
options: SelectOption[] | ((selectedRows:
|
|
35
|
-
}
|
|
36
|
-
export declare const GridFormDropDown: <
|
|
37
|
-
export {};
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { GridBaseRow } from "../Grid";
|
|
3
|
+
import { CellEditorCommon } from "../GridCell";
|
|
4
|
+
export interface GridPopoutEditDropDownSelectedItem<TData> {
|
|
5
|
+
selectedRows: TData[];
|
|
6
|
+
value: any;
|
|
7
|
+
subComponentValue?: any;
|
|
8
|
+
}
|
|
9
|
+
interface FinalSelectOption {
|
|
10
|
+
value: any;
|
|
11
|
+
label?: ReactElement | string;
|
|
12
|
+
disabled?: boolean | string;
|
|
13
|
+
subComponent?: (props: any, ref: any) => any;
|
|
14
|
+
}
|
|
15
|
+
export declare const MenuSeparatorString = "_____MENU_SEPARATOR_____";
|
|
16
|
+
export declare const MenuSeparator: Readonly<{
|
|
17
|
+
value: "_____MENU_SEPARATOR_____";
|
|
18
|
+
}>;
|
|
19
|
+
export declare const MenuHeaderString = "_____MENU_HEADER_____";
|
|
20
|
+
export declare const MenuHeaderItem: (title: string) => {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
export type SelectOption = null | string | FinalSelectOption;
|
|
25
|
+
export interface GridFormDropDownProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
26
|
+
className?: "GridPopoverEditDropDown-containerSmall" | "GridPopoverEditDropDown-containerMedium" | "GridPopoverEditDropDown-containerLarge" | "GridPopoverEditDropDown-containerUnlimited" | string | undefined;
|
|
27
|
+
filtered?: "local" | "reload";
|
|
28
|
+
filterDefaultValue?: string;
|
|
29
|
+
filterPlaceholder?: string;
|
|
30
|
+
filterHelpText?: string;
|
|
31
|
+
noOptionsMessage?: string;
|
|
32
|
+
onSelectedItem?: (props: GridPopoutEditDropDownSelectedItem<TData>) => Promise<void>;
|
|
33
|
+
onSelectFilter?: (props: GridPopoutEditDropDownSelectedItem<TData>) => Promise<void>;
|
|
34
|
+
options: SelectOption[] | ((selectedRows: TData[], filter?: string) => Promise<SelectOption[] | undefined> | SelectOption[] | undefined) | undefined;
|
|
35
|
+
}
|
|
36
|
+
export declare const GridFormDropDown: <TData extends GridBaseRow>(props: GridFormDropDownProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { GridBaseRow } from "../Grid";
|
|
2
|
-
import { CellEditorCommon } from "../GridCell";
|
|
3
|
-
export interface GridFormEditBearingProps<
|
|
4
|
-
formatValue?: (value: any) => string;
|
|
5
|
-
placeHolder?: string;
|
|
6
|
-
range?: (value: number | null) => string | null;
|
|
7
|
-
onSave?: (props: {
|
|
8
|
-
selectedRows:
|
|
9
|
-
value: number | null;
|
|
10
|
-
}) => Promise<boolean>;
|
|
11
|
-
}
|
|
12
|
-
export declare const GridFormEditBearing: <
|
|
1
|
+
import { GridBaseRow } from "../Grid";
|
|
2
|
+
import { CellEditorCommon } from "../GridCell";
|
|
3
|
+
export interface GridFormEditBearingProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
4
|
+
formatValue?: (value: any) => string;
|
|
5
|
+
placeHolder?: string;
|
|
6
|
+
range?: (value: number | null) => string | null;
|
|
7
|
+
onSave?: (props: {
|
|
8
|
+
selectedRows: TData[];
|
|
9
|
+
value: number | null;
|
|
10
|
+
}) => Promise<boolean>;
|
|
11
|
+
}
|
|
12
|
+
export declare const GridFormEditBearing: <TData extends GridBaseRow>(props: GridFormEditBearingProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { GridBaseRow } from "../Grid";
|
|
3
|
-
import { CellEditorCommon } from "../GridCell";
|
|
4
|
-
export interface GridFormMessageProps<
|
|
5
|
-
message: (selectedRows:
|
|
6
|
-
}
|
|
7
|
-
export declare const GridFormMessage: <
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { GridBaseRow } from "../Grid";
|
|
3
|
+
import { CellEditorCommon } from "../GridCell";
|
|
4
|
+
export interface GridFormMessageProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
5
|
+
message: (selectedRows: TData[]) => Promise<string | ReactElement> | string | ReactElement;
|
|
6
|
+
}
|
|
7
|
+
export declare const GridFormMessage: <TData extends GridBaseRow>(props: GridFormMessageProps<TData>) => ReactElement;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { GridBaseRow } from "../Grid";
|
|
3
|
-
import { CellEditorCommon } from "../GridCell";
|
|
4
|
-
export interface MultiSelectOption {
|
|
5
|
-
value: any;
|
|
6
|
-
label?: string;
|
|
7
|
-
subComponent?: (props: any) => ReactElement;
|
|
8
|
-
subValue?: any;
|
|
9
|
-
filter?: string;
|
|
10
|
-
checked?: boolean;
|
|
11
|
-
warning?: string | undefined;
|
|
12
|
-
}
|
|
13
|
-
export interface GridFormMultiSelectGroup {
|
|
14
|
-
header: string;
|
|
15
|
-
filter?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface GridFormMultiSelectSaveProps<
|
|
18
|
-
selectedRows:
|
|
19
|
-
selectedOptions: MultiSelectOption[];
|
|
20
|
-
}
|
|
21
|
-
export interface GridFormMultiSelectProps<
|
|
22
|
-
className?: "GridMultiSelect-containerSmall" | "GridMultiSelect-containerMedium" | "GridMultiSelect-containerLarge" | "GridMultiSelect-containerUnlimited" | string | undefined;
|
|
23
|
-
filtered?: boolean;
|
|
24
|
-
filterPlaceholder?: string;
|
|
25
|
-
filterHelpText?: string | ((filter: string, options: MultiSelectOption[]) => string | undefined);
|
|
26
|
-
noOptionsMessage?: string;
|
|
27
|
-
onSelectFilter?: (props: {
|
|
28
|
-
filter: string;
|
|
29
|
-
options: MultiSelectOption[];
|
|
30
|
-
}) => void;
|
|
31
|
-
onSave?: (props: GridFormMultiSelectSaveProps<
|
|
32
|
-
headers?: GridFormMultiSelectGroup[];
|
|
33
|
-
options: MultiSelectOption[] | ((selectedRows:
|
|
34
|
-
invalid?: (selectedRows:
|
|
35
|
-
}
|
|
36
|
-
export declare const GridFormMultiSelect: <
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { GridBaseRow } from "../Grid";
|
|
3
|
+
import { CellEditorCommon } from "../GridCell";
|
|
4
|
+
export interface MultiSelectOption {
|
|
5
|
+
value: any;
|
|
6
|
+
label?: string;
|
|
7
|
+
subComponent?: (props: any) => ReactElement;
|
|
8
|
+
subValue?: any;
|
|
9
|
+
filter?: string;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
warning?: string | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface GridFormMultiSelectGroup {
|
|
14
|
+
header: string;
|
|
15
|
+
filter?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GridFormMultiSelectSaveProps<TData extends GridBaseRow> {
|
|
18
|
+
selectedRows: TData[];
|
|
19
|
+
selectedOptions: MultiSelectOption[];
|
|
20
|
+
}
|
|
21
|
+
export interface GridFormMultiSelectProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
22
|
+
className?: "GridMultiSelect-containerSmall" | "GridMultiSelect-containerMedium" | "GridMultiSelect-containerLarge" | "GridMultiSelect-containerUnlimited" | string | undefined;
|
|
23
|
+
filtered?: boolean;
|
|
24
|
+
filterPlaceholder?: string;
|
|
25
|
+
filterHelpText?: string | ((filter: string, options: MultiSelectOption[]) => string | undefined);
|
|
26
|
+
noOptionsMessage?: string;
|
|
27
|
+
onSelectFilter?: (props: {
|
|
28
|
+
filter: string;
|
|
29
|
+
options: MultiSelectOption[];
|
|
30
|
+
}) => void;
|
|
31
|
+
onSave?: (props: GridFormMultiSelectSaveProps<TData>) => Promise<boolean>;
|
|
32
|
+
headers?: GridFormMultiSelectGroup[];
|
|
33
|
+
options: MultiSelectOption[] | ((selectedRows: TData[]) => Promise<MultiSelectOption[]> | MultiSelectOption[]);
|
|
34
|
+
invalid?: (selectedRows: TData[], selectedOptions: MultiSelectOption[]) => boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare const GridFormMultiSelect: <TData extends GridBaseRow>(props: GridFormMultiSelectProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { GridBaseRow } from "../Grid";
|
|
3
|
-
import { CellEditorCommon } from "../GridCell";
|
|
4
|
-
export interface MultiSelectGridOption {
|
|
5
|
-
value: any;
|
|
6
|
-
label?: string | ReactElement;
|
|
7
|
-
checked?: boolean | "partial";
|
|
8
|
-
canSelectPartial?: boolean;
|
|
9
|
-
warning?: string | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface GridFormMultiSelectGridSaveProps<
|
|
12
|
-
selectedRows:
|
|
13
|
-
addValues: any[];
|
|
14
|
-
removeValues: any[];
|
|
15
|
-
}
|
|
16
|
-
export interface GridFormMultiSelectGridProps<
|
|
17
|
-
className?: string | undefined;
|
|
18
|
-
noOptionsMessage?: string;
|
|
19
|
-
onSave?: (props: GridFormMultiSelectGridSaveProps<
|
|
20
|
-
options: MultiSelectGridOption[] | ((selectedRows:
|
|
21
|
-
invalid?: (props: GridFormMultiSelectGridSaveProps<
|
|
22
|
-
maxRowCount?: number;
|
|
23
|
-
}
|
|
24
|
-
export declare const GridFormMultiSelectGrid: <
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { GridBaseRow } from "../Grid";
|
|
3
|
+
import { CellEditorCommon } from "../GridCell";
|
|
4
|
+
export interface MultiSelectGridOption {
|
|
5
|
+
value: any;
|
|
6
|
+
label?: string | ReactElement;
|
|
7
|
+
checked?: boolean | "partial";
|
|
8
|
+
canSelectPartial?: boolean;
|
|
9
|
+
warning?: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface GridFormMultiSelectGridSaveProps<TData extends GridBaseRow> {
|
|
12
|
+
selectedRows: TData[];
|
|
13
|
+
addValues: any[];
|
|
14
|
+
removeValues: any[];
|
|
15
|
+
}
|
|
16
|
+
export interface GridFormMultiSelectGridProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
17
|
+
className?: string | undefined;
|
|
18
|
+
noOptionsMessage?: string;
|
|
19
|
+
onSave?: (props: GridFormMultiSelectGridSaveProps<TData>) => Promise<boolean>;
|
|
20
|
+
options: MultiSelectGridOption[] | ((selectedRows: TData[]) => Promise<MultiSelectGridOption[]> | MultiSelectGridOption[]);
|
|
21
|
+
invalid?: (props: GridFormMultiSelectGridSaveProps<TData>) => boolean;
|
|
22
|
+
maxRowCount?: number;
|
|
23
|
+
}
|
|
24
|
+
export declare const GridFormMultiSelectGrid: <TData extends GridBaseRow>(props: GridFormMultiSelectGridProps<TData>) => ReactElement;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { GridBaseRow } from "../Grid";
|
|
3
|
-
import { CellEditorCommon } from "../GridCell";
|
|
4
|
-
export interface GridFormPopoverMenuProps<
|
|
5
|
-
options: (selectedRows:
|
|
6
|
-
defaultAction?: (props: {
|
|
7
|
-
selectedRows:
|
|
8
|
-
menuOption: SelectedMenuOptionResult<
|
|
9
|
-
}) => Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export declare const PopoutMenuSeparator: Readonly<{
|
|
12
|
-
label: "__isMenuSeparator__";
|
|
13
|
-
}>;
|
|
14
|
-
interface MenuSeparatorType {
|
|
15
|
-
__isMenuSeparator__: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface SelectedMenuOptionResult<
|
|
18
|
-
subValue: any;
|
|
19
|
-
}
|
|
20
|
-
export interface MenuOption<
|
|
21
|
-
label: ReactElement | string | MenuSeparatorType;
|
|
22
|
-
subMenu?: () => ReactElement;
|
|
23
|
-
action?: (props: {
|
|
24
|
-
selectedRows:
|
|
25
|
-
menuOption: SelectedMenuOptionResult<
|
|
26
|
-
}) => Promise<void>;
|
|
27
|
-
disabled?: string | boolean;
|
|
28
|
-
hidden?: boolean;
|
|
29
|
-
subComponent?: (props: any) => ReactElement;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* NOTE: If the popout menu doesn't appear on single click when also selecting row it's because
|
|
33
|
-
* you need a useMemo around your columnDefs
|
|
34
|
-
*/
|
|
35
|
-
export declare const GridFormPopoverMenu: <
|
|
36
|
-
export {};
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { GridBaseRow } from "../Grid";
|
|
3
|
+
import { CellEditorCommon } from "../GridCell";
|
|
4
|
+
export interface GridFormPopoverMenuProps<TData extends GridBaseRow> extends CellEditorCommon {
|
|
5
|
+
options: (selectedRows: TData[]) => Promise<MenuOption<TData>[]>;
|
|
6
|
+
defaultAction?: (props: {
|
|
7
|
+
selectedRows: TData[];
|
|
8
|
+
menuOption: SelectedMenuOptionResult<TData>;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
export declare const PopoutMenuSeparator: Readonly<{
|
|
12
|
+
label: "__isMenuSeparator__";
|
|
13
|
+
}>;
|
|
14
|
+
interface MenuSeparatorType {
|
|
15
|
+
__isMenuSeparator__: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface SelectedMenuOptionResult<TData extends GridBaseRow> extends MenuOption<TData> {
|
|
18
|
+
subValue: any;
|
|
19
|
+
}
|
|
20
|
+
export interface MenuOption<TData extends GridBaseRow> {
|
|
21
|
+
label: ReactElement | string | MenuSeparatorType;
|
|
22
|
+
subMenu?: () => ReactElement;
|
|
23
|
+
action?: (props: {
|
|
24
|
+
selectedRows: TData[];
|
|
25
|
+
menuOption: SelectedMenuOptionResult<TData>;
|
|
26
|
+
}) => Promise<void>;
|
|
27
|
+
disabled?: string | boolean;
|
|
28
|
+
hidden?: boolean;
|
|
29
|
+
subComponent?: (props: any) => ReactElement;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* NOTE: If the popout menu doesn't appear on single click when also selecting row it's because
|
|
33
|
+
* you need a useMemo around your columnDefs
|
|
34
|
+
*/
|
|
35
|
+
export declare const GridFormPopoverMenu: <TData extends GridBaseRow>(props: GridFormPopoverMenuProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { TextInputValidatorProps } from "../../utils/textValidator";
|
|
3
|
-
import { GridBaseRow } from "../Grid";
|
|
4
|
-
import { CellEditorCommon } from "../GridCell";
|
|
5
|
-
export interface GridSubComponentTextAreaProps<
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
width?: string | number;
|
|
8
|
-
defaultValue: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
helpText?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const GridFormSubComponentTextArea: <
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { TextInputValidatorProps } from "../../utils/textValidator";
|
|
3
|
+
import { GridBaseRow } from "../Grid";
|
|
4
|
+
import { CellEditorCommon } from "../GridCell";
|
|
5
|
+
export interface GridSubComponentTextAreaProps<TData extends GridBaseRow> extends TextInputValidatorProps<TData>, CellEditorCommon {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
helpText?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const GridFormSubComponentTextArea: <TData extends GridBaseRow>(props: GridSubComponentTextAreaProps<TData>) => ReactElement;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { TextInputValidatorProps } from "../../utils/textValidator";
|
|
3
|
-
import { GridBaseRow } from "../Grid";
|
|
4
|
-
import { CellEditorCommon } from "../GridCell";
|
|
5
|
-
export interface GridFormSubComponentTextInputProps<
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
width?: string | number;
|
|
8
|
-
defaultValue: string;
|
|
9
|
-
helpText?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const GridFormSubComponentTextInput: <
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { TextInputValidatorProps } from "../../utils/textValidator";
|
|
3
|
+
import { GridBaseRow } from "../Grid";
|
|
4
|
+
import { CellEditorCommon } from "../GridCell";
|
|
5
|
+
export interface GridFormSubComponentTextInputProps<TData extends GridBaseRow> extends TextInputValidatorProps<TData>, CellEditorCommon {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
helpText?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const GridFormSubComponentTextInput: <TData extends GridBaseRow>(props: GridFormSubComponentTextInputProps<TData>) => ReactElement;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { TextInputValidatorProps } from "../../utils/textValidator";
|
|
3
|
-
import { GridBaseRow } from "../Grid";
|
|
4
|
-
import { CellEditorCommon } from "../GridCell";
|
|
5
|
-
export interface GridFormTextAreaProps<
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
width?: string | number;
|
|
8
|
-
onSave?: (props: {
|
|
9
|
-
selectedRows:
|
|
10
|
-
value: string;
|
|
11
|
-
}) => Promise<boolean>;
|
|
12
|
-
helpText?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const GridFormTextArea: <
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { TextInputValidatorProps } from "../../utils/textValidator";
|
|
3
|
+
import { GridBaseRow } from "../Grid";
|
|
4
|
+
import { CellEditorCommon } from "../GridCell";
|
|
5
|
+
export interface GridFormTextAreaProps<TData extends GridBaseRow> extends TextInputValidatorProps<TData>, CellEditorCommon {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
onSave?: (props: {
|
|
9
|
+
selectedRows: TData[];
|
|
10
|
+
value: string;
|
|
11
|
+
}) => Promise<boolean>;
|
|
12
|
+
helpText?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const GridFormTextArea: <TData extends GridBaseRow>(props: GridFormTextAreaProps<TData>) => ReactElement;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TextInputValidatorProps } from "../../utils/textValidator";
|
|
2
|
-
import { GridBaseRow } from "../Grid";
|
|
3
|
-
import { CellEditorCommon } from "../GridCell";
|
|
4
|
-
export interface GridFormTextInputProps<
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
units?: string;
|
|
7
|
-
width?: string | number;
|
|
8
|
-
onSave?: (props: {
|
|
9
|
-
selectedRows:
|
|
10
|
-
value: string;
|
|
11
|
-
}) => Promise<boolean>;
|
|
12
|
-
helpText?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const GridFormTextInput: <
|
|
1
|
+
import { TextInputValidatorProps } from "../../utils/textValidator";
|
|
2
|
+
import { GridBaseRow } from "../Grid";
|
|
3
|
+
import { CellEditorCommon } from "../GridCell";
|
|
4
|
+
export interface GridFormTextInputProps<TData extends GridBaseRow> extends TextInputValidatorProps<TData>, CellEditorCommon {
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
units?: string;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
onSave?: (props: {
|
|
9
|
+
selectedRows: TData[];
|
|
10
|
+
value: string;
|
|
11
|
+
}) => Promise<boolean>;
|
|
12
|
+
helpText?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const GridFormTextInput: <TData extends GridBaseRow>(props: GridFormTextInputProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
+
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,7 +1,7 @@
|
|
|
1
|
-
import { IHeaderParams } from "ag-grid-community";
|
|
2
|
-
/**
|
|
3
|
-
* AgGrid's existing select header doesn't work the way we want.
|
|
4
|
-
* If you have partial select then clicking the header checkbox will select all,
|
|
5
|
-
* but we want to deselect all on partial select.
|
|
6
|
-
*/
|
|
7
|
-
export declare const GridHeaderSelect: ({ api }: IHeaderParams) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { IHeaderParams } from "ag-grid-community";
|
|
2
|
+
/**
|
|
3
|
+
* AgGrid's existing select header doesn't work the way we want.
|
|
4
|
+
* If you have partial select then clicking the header checkbox will select all,
|
|
5
|
+
* but we want to deselect all on partial select.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GridHeaderSelect: ({ api }: IHeaderParams) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./GridHeaderSelect";
|
|
1
|
+
export * from "./GridHeaderSelect";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./useGridContextMenu";
|
|
1
|
+
export * from "./useGridContextMenu";
|
|
@@ -1,19 +1,19 @@
|
|
|
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
|
-
export interface GridContextMenuComponentProps<
|
|
6
|
-
selectedRows:
|
|
7
|
-
clickedRow:
|
|
8
|
-
colDef: ColDef;
|
|
9
|
-
close: () => void;
|
|
10
|
-
}
|
|
11
|
-
export type GridContextMenuComponent<
|
|
12
|
-
export declare const useGridContextMenu: <
|
|
13
|
-
contextMenuSelectRow: boolean;
|
|
14
|
-
contextMenu?: GridContextMenuComponent<
|
|
15
|
-
}) => {
|
|
16
|
-
openMenu: (e: PointerEvent | null | undefined) => void;
|
|
17
|
-
cellContextMenu: (event: CellContextMenuEvent) => void;
|
|
18
|
-
component: import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
-
};
|
|
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
|
+
export interface GridContextMenuComponentProps<TData extends GridBaseRow> {
|
|
6
|
+
selectedRows: TData[];
|
|
7
|
+
clickedRow: TData;
|
|
8
|
+
colDef: ColDef;
|
|
9
|
+
close: () => void;
|
|
10
|
+
}
|
|
11
|
+
export type GridContextMenuComponent<TData extends GridBaseRow> = (props: GridContextMenuComponentProps<TData>) => ReactElement | null;
|
|
12
|
+
export declare const useGridContextMenu: <TData extends GridBaseRow>({ contextMenuSelectRow, contextMenu: ContextMenu, }: {
|
|
13
|
+
contextMenuSelectRow: boolean;
|
|
14
|
+
contextMenu?: GridContextMenuComponent<TData>;
|
|
15
|
+
}) => {
|
|
16
|
+
openMenu: (e: PointerEvent | null | undefined) => void;
|
|
17
|
+
cellContextMenu: (event: CellContextMenuEvent) => void;
|
|
18
|
+
component: import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from "../Grid";
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
-
import { GridFormMultiSelectProps } from "../gridForm/GridFormMultiSelect";
|
|
4
|
-
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
-
export declare const GridPopoutEditMultiSelect: <
|
|
1
|
+
import { GridBaseRow } from "../Grid";
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
+
import { GridFormMultiSelectProps } from "../gridForm/GridFormMultiSelect";
|
|
4
|
+
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
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 "../Grid";
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
-
import { GridFormMultiSelectGridProps } from "../gridForm/GridFormMultiSelectGrid";
|
|
4
|
-
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
-
export declare const GridPopoutEditMultiSelectGrid: <
|
|
1
|
+
import { GridBaseRow } from "../Grid";
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
+
import { GridFormMultiSelectGridProps } from "../gridForm/GridFormMultiSelectGrid";
|
|
4
|
+
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoutEditMultiSelectGrid: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormMultiSelectGridProps<TData>>) => ColDefT<TData, TValue>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { GridBaseRow } from "../Grid";
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
-
import { GridFormEditBearingProps } from "../gridForm/GridFormEditBearing";
|
|
4
|
-
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
-
export declare const GridPopoverEditBearingEditorParams: {
|
|
6
|
-
placeHolder: string;
|
|
7
|
-
formatValue: (value: any) => string;
|
|
8
|
-
range: (value: number | null) => "Bearing is required" | "Bearing must be less than 360 degrees" | "Bearing must not be negative" | null;
|
|
9
|
-
};
|
|
10
|
-
export declare const GridPopoverEditBearing: <
|
|
11
|
-
export declare const GridPopoverEditBearingCorrectionEditorParams: {
|
|
12
|
-
placeHolder: string;
|
|
13
|
-
formatValue: (value: any) => string;
|
|
14
|
-
range: (value: number | null) => "Bearing correction is required" | "Bearing correction must be less than 360 degrees" | "Bearing correction must be greater then -180 degrees" | null;
|
|
15
|
-
};
|
|
16
|
-
export declare const GridPopoverEditBearingCorrection: <
|
|
1
|
+
import { GridBaseRow } from "../Grid";
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
+
import { GridFormEditBearingProps } from "../gridForm/GridFormEditBearing";
|
|
4
|
+
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoverEditBearingEditorParams: {
|
|
6
|
+
placeHolder: string;
|
|
7
|
+
formatValue: (value: any) => string;
|
|
8
|
+
range: (value: number | null) => "Bearing is required" | "Bearing must be less than 360 degrees" | "Bearing must not be negative" | null;
|
|
9
|
+
};
|
|
10
|
+
export declare const GridPopoverEditBearing: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormEditBearingProps<TData>>) => ColDefT<TData, TValue>;
|
|
11
|
+
export declare const GridPopoverEditBearingCorrectionEditorParams: {
|
|
12
|
+
placeHolder: string;
|
|
13
|
+
formatValue: (value: any) => string;
|
|
14
|
+
range: (value: number | null) => "Bearing correction is required" | "Bearing correction must be less than 360 degrees" | "Bearing correction must be greater then -180 degrees" | null;
|
|
15
|
+
};
|
|
16
|
+
export declare const GridPopoverEditBearingCorrection: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormEditBearingProps<TData>>) => ColDefT<TData, TValue>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from "../Grid";
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
-
import { GridFormDropDownProps } from "../gridForm/GridFormDropDown";
|
|
4
|
-
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
-
export declare const GridPopoverEditDropDown: <
|
|
1
|
+
import { GridBaseRow } from "../Grid";
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
+
import { GridFormDropDownProps } from "../gridForm/GridFormDropDown";
|
|
4
|
+
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoverEditDropDown: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormDropDownProps<TData>>) => ColDefT<TData, TValue>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { GridBaseRow } from "../Grid";
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
-
import { GridFormPopoverMenuProps } from "../gridForm/GridFormPopoverMenu";
|
|
4
|
-
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
-
/**
|
|
6
|
-
* Popout burger menu
|
|
7
|
-
*/
|
|
8
|
-
export declare const GridPopoverMenu: <
|
|
1
|
+
import { GridBaseRow } from "../Grid";
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
+
import { GridFormPopoverMenuProps } from "../gridForm/GridFormPopoverMenu";
|
|
4
|
+
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
+
/**
|
|
6
|
+
* Popout burger menu
|
|
7
|
+
*/
|
|
8
|
+
export declare const GridPopoverMenu: <TData extends GridBaseRow>(colDef: GenericCellColDef<TData>, custom: GenericCellEditorProps<GridFormPopoverMenuProps<TData>>) => ColDefT<TData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridBaseRow } from "../Grid";
|
|
2
|
-
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
-
import { GridFormMessageProps } from "../gridForm/GridFormMessage";
|
|
4
|
-
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
-
export declare const GridPopoverMessage: <
|
|
1
|
+
import { GridBaseRow } from "../Grid";
|
|
2
|
+
import { ColDefT, GenericCellEditorProps } from "../GridCell";
|
|
3
|
+
import { GridFormMessageProps } from "../gridForm/GridFormMessage";
|
|
4
|
+
import { GenericCellColDef } from "../gridRender/GridRenderGenericCell";
|
|
5
|
+
export declare const GridPopoverMessage: <TData extends GridBaseRow, TValue = any>(colDef: GenericCellColDef<TData, TValue>, props: GenericCellEditorProps<GridFormMessageProps<TData>>) => ColDefT<TData, TValue>;
|