@linzjs/step-ag-grid 1.4.10 → 1.5.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.d.ts +4 -4
- package/dist/index.js +86 -35
- package/dist/index.js.map +1 -1
- package/dist/src/components/GridCell.d.ts +1 -0
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +1 -0
- package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +2 -4
- package/dist/src/react-menu3/components/ControlledMenu.d.ts +1 -1
- package/dist/src/react-menu3/components/Menu.d.ts +1 -1
- package/dist/src/react-menu3/components/MenuList.d.ts +1 -1
- package/dist/src/react-menu3/types.d.ts +4 -0
- package/dist/step-ag-grid.esm.js +86 -35
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/GridCell.tsx +1 -0
- package/src/components/GridPopoverHook.tsx +3 -0
- package/src/components/gridForm/GridFormDropDown.tsx +18 -1
- package/src/components/gridForm/GridFormEditBearing.tsx +1 -1
- package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +32 -20
- package/src/react-menu3/components/MenuList.tsx +19 -0
- package/src/react-menu3/types.ts +4 -0
- package/src/stories/components/GridPopoutBearing.stories.tsx +1 -1
- package/src/stories/components/GridPopoutEditDropDown.stories.tsx +24 -0
- package/src/utils/bearing.ts +0 -1
|
@@ -6,6 +6,7 @@ export interface GridFormProps<RowType extends GridBaseRow> {
|
|
|
6
6
|
cellEditorParams: ICellEditorParams;
|
|
7
7
|
updateValue: (saveFn: (selectedRows: RowType[]) => Promise<boolean>) => Promise<boolean>;
|
|
8
8
|
saving: boolean;
|
|
9
|
+
data: RowType;
|
|
9
10
|
value: any;
|
|
10
11
|
field: string | undefined;
|
|
11
12
|
selectedRows: RowType[];
|
|
@@ -20,6 +20,7 @@ export interface GridFormPopoutDropDownProps<RowType extends GridBaseRow, ValueT
|
|
|
20
20
|
filtered?: "local" | "reload";
|
|
21
21
|
filterPlaceholder?: string;
|
|
22
22
|
onSelectedItem?: (props: GridPopoutEditDropDownSelectedItem<RowType, ValueType>) => Promise<void>;
|
|
23
|
+
onSelectFilter?: (props: GridPopoutEditDropDownSelectedItem<RowType, string>) => Promise<void>;
|
|
23
24
|
options: SelectOption<ValueType>[] | ((selectedRows: RowType[], filter?: string) => Promise<SelectOption<ValueType>[]> | SelectOption<ValueType>[]);
|
|
24
25
|
optionsRequestCancel?: () => void;
|
|
25
26
|
}
|
|
@@ -4,7 +4,7 @@ import { GridBaseRow } from "../Grid";
|
|
|
4
4
|
export declare const GridPopoverEditBearingLike: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType, GridFormEditBearingProps<RowType>>) => import("ag-grid-community").ColDef;
|
|
5
5
|
export declare const GridPopoverEditBearing: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType, GridFormEditBearingProps<RowType>>) => {
|
|
6
6
|
valueFormatter: (params: import("ag-grid-community").ValueFormatterParams) => string;
|
|
7
|
-
|
|
7
|
+
cellEditorParams: any;
|
|
8
8
|
colId?: string | undefined;
|
|
9
9
|
field?: string | undefined;
|
|
10
10
|
type?: string | string[] | undefined;
|
|
@@ -34,7 +34,6 @@ export declare const GridPopoverEditBearing: <RowType extends GridBaseRow>(colDe
|
|
|
34
34
|
valueParser?: string | import("ag-grid-community").ValueParserFunc | undefined;
|
|
35
35
|
cellEditor?: any;
|
|
36
36
|
cellEditorFramework?: any;
|
|
37
|
-
cellEditorParams?: any;
|
|
38
37
|
cellEditorSelector?: import("ag-grid-community").CellEditorSelectorFunc | undefined;
|
|
39
38
|
singleClickEdit?: boolean | undefined;
|
|
40
39
|
newValueHandler?: ((params: import("ag-grid-community").NewValueParams) => boolean) | undefined;
|
|
@@ -139,7 +138,7 @@ export declare const GridPopoverEditBearing: <RowType extends GridBaseRow>(colDe
|
|
|
139
138
|
};
|
|
140
139
|
export declare const GridPopoverEditBearingCorrection: <RowType extends GridBaseRow>(colDef: GenericCellColDef<RowType, GridFormEditBearingProps<RowType>>) => {
|
|
141
140
|
valueFormatter: (params: import("ag-grid-community").ValueFormatterParams) => string;
|
|
142
|
-
|
|
141
|
+
cellEditorParams: any;
|
|
143
142
|
colId?: string | undefined;
|
|
144
143
|
field?: string | undefined;
|
|
145
144
|
type?: string | string[] | undefined;
|
|
@@ -169,7 +168,6 @@ export declare const GridPopoverEditBearingCorrection: <RowType extends GridBase
|
|
|
169
168
|
valueParser?: string | import("ag-grid-community").ValueParserFunc | undefined;
|
|
170
169
|
cellEditor?: any;
|
|
171
170
|
cellEditorFramework?: any;
|
|
172
|
-
cellEditorParams?: any;
|
|
173
171
|
cellEditorSelector?: import("ag-grid-community").CellEditorSelectorFunc | undefined;
|
|
174
172
|
singleClickEdit?: boolean | undefined;
|
|
175
173
|
newValueHandler?: ((params: import("ag-grid-community").NewValueParams) => boolean) | undefined;
|
|
@@ -5,4 +5,4 @@ export declare const ControlledMenuFr: ({ "aria-label": ariaLabel, className, co
|
|
|
5
5
|
}, externalRef: ForwardedRef<HTMLUListElement>) => JSX.Element | null;
|
|
6
6
|
export declare const ControlledMenu: import("react").ForwardRefExoticComponent<Pick<ControlledMenuProps & {
|
|
7
7
|
saveButtonRef?: MutableRefObject<HTMLButtonElement | null> | undefined;
|
|
8
|
-
}, "aria-label" | "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "containerProps" | "initialMounted" | "unmountOnClose" | "transition" | "transitionTimeout" | "boundingBoxRef" | "boundingBoxPadding" | "reposition" | "submenuOpenDelay" | "submenuCloseDelay" | "skipOpen" | "viewScroll" | "portal" | "theming" | "onItemClick" | "onClose" | "saveButtonRef" | "anchorPoint" | "anchorRef" | "captureFocus" | "state" | "menuItemFocus" | "endTransition" | "repositionFlag" | "menuClassName" | "menuStyle" | "arrowClassName" | "arrowStyle" | "arrow" | "offsetX" | "offsetY" | "align" | "direction" | "position" | "overflow" | "setDownOverflow" | "isDisabled" | "ariaLabel" | "containerRef" | "externalRef" | "parentScrollingRef"> & import("react").RefAttributes<HTMLUListElement>>;
|
|
8
|
+
}, "aria-label" | "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "containerProps" | "initialMounted" | "unmountOnClose" | "transition" | "transitionTimeout" | "boundingBoxRef" | "boundingBoxPadding" | "reposition" | "submenuOpenDelay" | "submenuCloseDelay" | "skipOpen" | "viewScroll" | "portal" | "theming" | "onItemClick" | "onClose" | "saveButtonRef" | "anchorPoint" | "anchorRef" | "captureFocus" | "state" | "menuItemFocus" | "endTransition" | "repositionFlag" | "dontShrinkIfDirectionIsTop" | "menuClassName" | "menuStyle" | "arrowClassName" | "arrowStyle" | "arrow" | "offsetX" | "offsetY" | "align" | "direction" | "position" | "overflow" | "setDownOverflow" | "isDisabled" | "ariaLabel" | "containerRef" | "externalRef" | "parentScrollingRef"> & import("react").RefAttributes<HTMLUListElement>>;
|
|
@@ -13,4 +13,4 @@ export interface MenuProps extends RootMenuProps, UncontrolledMenuProps {
|
|
|
13
13
|
menuButton: RenderProp<MenuButtonModifiers, ReactElement>;
|
|
14
14
|
}
|
|
15
15
|
export declare function MenuFr({ "aria-label": ariaLabel, menuButton, instanceRef, onMenuChange, ...restProps }: MenuProps, externalRef: ForwardedRef<any>): JSX.Element;
|
|
16
|
-
export declare const Menu: import("react").ForwardRefExoticComponent<Pick<MenuProps, "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "menuButton" | "containerProps" | "boundingBoxRef" | "boundingBoxPadding" | "viewScroll" | "portal" | "reposition" | "repositionFlag" | "submenuOpenDelay" | "submenuCloseDelay" | "theming" | "onItemClick" | "menuClassName" | "menuStyle" | "arrowClassName" | "arrowStyle" | "arrow" | "offsetX" | "offsetY" | "align" | "direction" | "position" | "overflow" | "setDownOverflow" | "initialMounted" | "unmountOnClose" | "transition" | "transitionTimeout" | "instanceRef" | "onMenuChange"> & import("react").RefAttributes<any>>;
|
|
16
|
+
export declare const Menu: import("react").ForwardRefExoticComponent<Pick<MenuProps, "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "menuButton" | "containerProps" | "boundingBoxRef" | "boundingBoxPadding" | "viewScroll" | "portal" | "reposition" | "repositionFlag" | "submenuOpenDelay" | "submenuCloseDelay" | "theming" | "onItemClick" | "dontShrinkIfDirectionIsTop" | "menuClassName" | "menuStyle" | "arrowClassName" | "arrowStyle" | "arrow" | "offsetX" | "offsetY" | "align" | "direction" | "position" | "overflow" | "setDownOverflow" | "initialMounted" | "unmountOnClose" | "transition" | "transitionTimeout" | "instanceRef" | "onMenuChange"> & import("react").RefAttributes<any>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ControlledMenuProps } from "../types";
|
|
3
|
-
export declare const MenuList: ({ ariaLabel, menuClassName, menuStyle, arrowClassName, arrowStyle, anchorPoint, anchorRef, containerRef, externalRef, parentScrollingRef, arrow, align, direction, position, overflow, setDownOverflow, repositionFlag, captureFocus, state, endTransition, isDisabled, menuItemFocus, offsetX, offsetY, children, onClose, ...restProps }: ControlledMenuProps) => JSX.Element;
|
|
3
|
+
export declare const MenuList: ({ ariaLabel, menuClassName, menuStyle, arrowClassName, arrowStyle, anchorPoint, anchorRef, containerRef, externalRef, parentScrollingRef, arrow, align, direction, position, overflow, setDownOverflow, repositionFlag, captureFocus, state, endTransition, isDisabled, menuItemFocus, dontShrinkIfDirectionIsTop, offsetX, offsetY, children, onClose, ...restProps }: ControlledMenuProps) => JSX.Element;
|
|
@@ -339,6 +339,10 @@ export interface RootMenuProps extends BaseMenuProps, MenuStateOptions {
|
|
|
339
339
|
* Event fired when descendent menu items are clicked.
|
|
340
340
|
*/
|
|
341
341
|
onItemClick?: EventHandler<ClickEvent>;
|
|
342
|
+
/**
|
|
343
|
+
* NEW Don't shrink container if menu direction is "top"
|
|
344
|
+
*/
|
|
345
|
+
dontShrinkIfDirectionIsTop?: boolean;
|
|
342
346
|
}
|
|
343
347
|
export interface ExtraMenuProps {
|
|
344
348
|
isDisabled?: boolean;
|
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -794,14 +794,15 @@ var positionMenu = function (props) {
|
|
|
794
794
|
};
|
|
795
795
|
|
|
796
796
|
var MenuList = function (_a) {
|
|
797
|
-
var
|
|
798
|
-
var
|
|
799
|
-
var
|
|
800
|
-
var
|
|
801
|
-
var
|
|
802
|
-
var
|
|
803
|
-
var
|
|
804
|
-
var
|
|
797
|
+
var _b, _c;
|
|
798
|
+
var ariaLabel = _a.ariaLabel, menuClassName = _a.menuClassName, menuStyle = _a.menuStyle, arrowClassName = _a.arrowClassName, arrowStyle = _a.arrowStyle, anchorPoint = _a.anchorPoint, anchorRef = _a.anchorRef, containerRef = _a.containerRef, externalRef = _a.externalRef, parentScrollingRef = _a.parentScrollingRef, arrow = _a.arrow, _d = _a.align, align = _d === void 0 ? "start" : _d, _e = _a.direction, direction = _e === void 0 ? "bottom" : _e, _f = _a.position, position = _f === void 0 ? "auto" : _f, _g = _a.overflow, overflow = _g === void 0 ? "visible" : _g, setDownOverflow = _a.setDownOverflow, repositionFlag = _a.repositionFlag, _h = _a.captureFocus, captureFocus = _h === void 0 ? true : _h, state = _a.state, endTransition = _a.endTransition, isDisabled = _a.isDisabled, menuItemFocus = _a.menuItemFocus, dontShrinkIfDirectionIsTop = _a.dontShrinkIfDirectionIsTop, _j = _a.offsetX, offsetX = _j === void 0 ? 0 : _j, _k = _a.offsetY, offsetY = _k === void 0 ? 0 : _k, children = _a.children, onClose = _a.onClose, restProps = __rest(_a, ["ariaLabel", "menuClassName", "menuStyle", "arrowClassName", "arrowStyle", "anchorPoint", "anchorRef", "containerRef", "externalRef", "parentScrollingRef", "arrow", "align", "direction", "position", "overflow", "setDownOverflow", "repositionFlag", "captureFocus", "state", "endTransition", "isDisabled", "menuItemFocus", "dontShrinkIfDirectionIsTop", "offsetX", "offsetY", "children", "onClose"]);
|
|
799
|
+
var _l = useState({ x: 0, y: 0 }), menuPosition = _l[0], setMenuPosition = _l[1];
|
|
800
|
+
var _m = useState({ x: 0, y: 0 }), arrowPosition = _m[0], setArrowPosition = _m[1];
|
|
801
|
+
var _o = useState(), overflowData = _o[0], setOverflowData = _o[1];
|
|
802
|
+
var _p = useState(direction), expandedDirection = _p[0], setExpandedDirection = _p[1];
|
|
803
|
+
var _q = useState(0), openSubmenuCount = _q[0], setOpenSubmenuCount = _q[1];
|
|
804
|
+
var _r = useReducer(function (c) { return c + 1; }, 1), reposSubmenu = _r[0], forceReposSubmenu = _r[1];
|
|
805
|
+
var _s = useContext(SettingsContext), transition = _s.transition, boundingBoxRef = _s.boundingBoxRef, boundingBoxPadding = _s.boundingBoxPadding, rootMenuRef = _s.rootMenuRef, rootAnchorRef = _s.rootAnchorRef, scrollNodesRef = _s.scrollNodesRef, reposition = _s.reposition, viewScroll = _s.viewScroll;
|
|
805
806
|
var reposFlag = useContext(MenuListContext).reposSubmenu || repositionFlag;
|
|
806
807
|
var menuRef = useRef({});
|
|
807
808
|
var focusRef = useRef(null);
|
|
@@ -809,7 +810,7 @@ var MenuList = function (_a) {
|
|
|
809
810
|
var prevOpen = useRef(false);
|
|
810
811
|
var latestMenuSize = useRef({ width: 0, height: 0 });
|
|
811
812
|
var latestHandlePosition = useRef(function () { });
|
|
812
|
-
var
|
|
813
|
+
var _t = useItems(menuRef, focusRef), hoverItem = _t.hoverItem, dispatch = _t.dispatch, updateItems = _t.updateItems;
|
|
813
814
|
var isOpen = isMenuOpen(state);
|
|
814
815
|
var openTransition = getTransition(transition, "open");
|
|
815
816
|
var closeTransition = getTransition(transition, "close");
|
|
@@ -1117,7 +1118,21 @@ var MenuList = function (_a) {
|
|
|
1117
1118
|
modifiers: arrowModifiers,
|
|
1118
1119
|
className: arrowClassName
|
|
1119
1120
|
});
|
|
1120
|
-
|
|
1121
|
+
var minHeight = useRef(0);
|
|
1122
|
+
if (dontShrinkIfDirectionIsTop && ((_b = menuRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect)) {
|
|
1123
|
+
var h = (_c = menuRef.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect().height;
|
|
1124
|
+
if (minHeight.current < h)
|
|
1125
|
+
minHeight.current = h;
|
|
1126
|
+
}
|
|
1127
|
+
var dontShrinkOps = useMemo(function () {
|
|
1128
|
+
return expandedDirection === "top" && dontShrinkIfDirectionIsTop
|
|
1129
|
+
? {
|
|
1130
|
+
overflowY: isSubmenuOpen ? "" : "auto",
|
|
1131
|
+
minHeight: (isSubmenuOpen ? 0 : minHeight.current) + "px"
|
|
1132
|
+
}
|
|
1133
|
+
: undefined;
|
|
1134
|
+
}, [dontShrinkIfDirectionIsTop, expandedDirection, isSubmenuOpen]);
|
|
1135
|
+
return (jsxs("ul", __assign({ role: "menu", "aria-label": ariaLabel }, mergeProps({ onKeyDown: onKeyDown, onAnimationEnd: onAnimationEnd }, restProps), commonProps(isDisabled), { ref: useCombinedRef(externalRef, menuRef), className: useBEM({ block: menuClass, modifiers: modifiers, className: menuClassName }), style: __assign(__assign(__assign(__assign({}, menuStyle), overflowStyle), dontShrinkOps), { margin: 0, display: state === "closed" ? "none" : undefined, position: "absolute", left: menuPosition.x, top: menuPosition.y }) }, { children: [jsx("div", { ref: focusRef, tabIndex: -1, style: { position: "absolute", left: 0, top: 0 } }), arrow && (jsx("div", { className: _arrowClass, style: __assign(__assign({}, arrowStyle), { position: "absolute", left: arrowPosition.x, top: arrowPosition.y }), ref: arrowRef })), jsx(MenuListContext.Provider, __assign({ value: listContext }, { children: jsx(MenuListItemContext.Provider, __assign({ value: itemContext }, { children: jsx(HoverItemContext.Provider, __assign({ value: hoverItem }, { children: children })) })) }))] })));
|
|
1121
1136
|
};
|
|
1122
1137
|
|
|
1123
1138
|
// Typed version of lodash !isEmpty
|
|
@@ -2494,7 +2509,7 @@ var useGridPopoverHook = function (props, save) {
|
|
|
2494
2509
|
});
|
|
2495
2510
|
}); }, [save, stopEditing, updateValue]);
|
|
2496
2511
|
var popoverWrapper = useCallback(function (children) {
|
|
2497
|
-
return (jsx(Fragment$1, { children: anchorRef.current && (jsxs(ControlledMenu, __assign({ state: isOpen ? "open" : "closed", portal: true, unmountOnClose: true, anchorRef: anchorRef, saveButtonRef: saveButtonRef, menuClassName: "lui-menu", onClose: function (event) { return triggerSave(event.reason).then(); } }, { children: [saving && (jsx("div", { style: {
|
|
2512
|
+
return (jsx(Fragment$1, { children: anchorRef.current && (jsxs(ControlledMenu, __assign({ state: isOpen ? "open" : "closed", portal: true, unmountOnClose: true, anchorRef: anchorRef, saveButtonRef: saveButtonRef, menuClassName: "lui-menu", onClose: function (event) { return triggerSave(event.reason).then(); }, reposition: "initial", viewScroll: "auto", dontShrinkIfDirectionIsTop: true }, { children: [saving && (jsx("div", { style: {
|
|
2498
2513
|
position: "absolute",
|
|
2499
2514
|
left: 0,
|
|
2500
2515
|
top: 0,
|
|
@@ -2887,7 +2902,7 @@ var GridFormEditBearing = function (props) {
|
|
|
2887
2902
|
onKeyDown: function (e) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
2888
2903
|
return [2 /*return*/, e.key === "Enter" && triggerSave().then()];
|
|
2889
2904
|
}); }); }
|
|
2890
|
-
}, formatted: bearingStringValidator(value) ? "?" : convertDDToDMS(bearingNumberParser(value)), error: bearingStringValidator(value, formProps.range) }) })));
|
|
2905
|
+
}, formatted: bearingStringValidator(value, formProps.range) ? "?" : convertDDToDMS(bearingNumberParser(value)), error: bearingStringValidator(value, formProps.range) }) })));
|
|
2891
2906
|
};
|
|
2892
2907
|
|
|
2893
2908
|
var GridPopoverEditBearingLike = function (colDef) {
|
|
@@ -2896,24 +2911,30 @@ var GridPopoverEditBearingLike = function (colDef) {
|
|
|
2896
2911
|
cellEditorParams: __assign(__assign({}, colDef.cellEditorParams), { form: GridFormEditBearing })
|
|
2897
2912
|
})));
|
|
2898
2913
|
};
|
|
2899
|
-
var GridPopoverEditBearing = function (colDef) {
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2914
|
+
var GridPopoverEditBearing = function (colDef) {
|
|
2915
|
+
var init = GridPopoverEditBearingLike(colDef);
|
|
2916
|
+
return __assign(__assign({}, init), { valueFormatter: bearingValueFormatter, cellEditorParams: __assign({ range: function (value) {
|
|
2917
|
+
if (value === null)
|
|
2918
|
+
return "Bearing is required";
|
|
2919
|
+
if (value >= 360)
|
|
2920
|
+
return "Bearing must be less than 360 degrees";
|
|
2921
|
+
if (value < 0)
|
|
2922
|
+
return "Bearing must not be negative";
|
|
2923
|
+
return null;
|
|
2924
|
+
} }, init.cellEditorParams) });
|
|
2925
|
+
};
|
|
2926
|
+
var GridPopoverEditBearingCorrection = function (colDef) {
|
|
2927
|
+
var init = GridPopoverEditBearingLike(colDef);
|
|
2928
|
+
return __assign(__assign({}, init), { valueFormatter: bearingCorrectionValueFormatter, cellEditorParams: __assign({ range: function (value) {
|
|
2929
|
+
if (value === null)
|
|
2930
|
+
return "Bearing is required";
|
|
2931
|
+
if (value >= 360)
|
|
2932
|
+
return "Bearing must be less than 360 degrees";
|
|
2933
|
+
if (value <= -180)
|
|
2934
|
+
return "Bearing must be greater then -180 degrees";
|
|
2935
|
+
return null;
|
|
2936
|
+
} }, init.cellEditorParams) });
|
|
2937
|
+
};
|
|
2917
2938
|
|
|
2918
2939
|
var MenuSeparatorString = "_____MENU_SEPARATOR_____";
|
|
2919
2940
|
Object.freeze({ value: MenuSeparatorString });
|
|
@@ -2954,6 +2975,29 @@ var GridFormDropDown = function (props) {
|
|
|
2954
2975
|
}
|
|
2955
2976
|
});
|
|
2956
2977
|
}); }, [formProps, props.field, props.selectedRows, updatingCells]);
|
|
2978
|
+
var selectFilterHandler = useCallback(function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2979
|
+
var field;
|
|
2980
|
+
return __generator(this, function (_a) {
|
|
2981
|
+
switch (_a.label) {
|
|
2982
|
+
case 0:
|
|
2983
|
+
field = props.field;
|
|
2984
|
+
return [4 /*yield*/, updatingCells({ selectedRows: props.selectedRows, field: field }, function (selectedRows) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2985
|
+
return __generator(this, function (_a) {
|
|
2986
|
+
switch (_a.label) {
|
|
2987
|
+
case 0:
|
|
2988
|
+
if (!formProps.onSelectFilter) return [3 /*break*/, 2];
|
|
2989
|
+
return [4 /*yield*/, formProps.onSelectFilter({ selectedRows: selectedRows, value: value })];
|
|
2990
|
+
case 1:
|
|
2991
|
+
_a.sent();
|
|
2992
|
+
_a.label = 2;
|
|
2993
|
+
case 2: return [2 /*return*/, true];
|
|
2994
|
+
}
|
|
2995
|
+
});
|
|
2996
|
+
}); })];
|
|
2997
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2998
|
+
}
|
|
2999
|
+
});
|
|
3000
|
+
}); }, [formProps, props.field, props.selectedRows, updatingCells]);
|
|
2957
3001
|
// Load up options list if it's async function
|
|
2958
3002
|
useEffect(function () {
|
|
2959
3003
|
var _a;
|
|
@@ -3028,22 +3072,29 @@ var GridFormDropDown = function (props) {
|
|
|
3028
3072
|
case 0:
|
|
3029
3073
|
if (!options)
|
|
3030
3074
|
return [2 /*return*/];
|
|
3031
|
-
if (!(e.key == "Enter" || e.key == "Tab")) return [3 /*break*/,
|
|
3075
|
+
if (!(e.key == "Enter" || e.key == "Tab")) return [3 /*break*/, 5];
|
|
3032
3076
|
activeOptions = options.filter(function (option) { return !filteredValues.includes(option.value); });
|
|
3033
3077
|
if (!(activeOptions.length == 1)) return [3 /*break*/, 2];
|
|
3034
3078
|
return [4 /*yield*/, selectItemHandler(activeOptions[0].value)];
|
|
3035
3079
|
case 1:
|
|
3036
3080
|
_a.sent();
|
|
3037
3081
|
stopEditing();
|
|
3038
|
-
return [3 /*break*/,
|
|
3082
|
+
return [3 /*break*/, 5];
|
|
3039
3083
|
case 2:
|
|
3084
|
+
if (!formProps.onSelectFilter) return [3 /*break*/, 4];
|
|
3085
|
+
return [4 /*yield*/, selectFilterHandler(filter)];
|
|
3086
|
+
case 3:
|
|
3087
|
+
_a.sent();
|
|
3088
|
+
stopEditing();
|
|
3089
|
+
return [3 /*break*/, 5];
|
|
3090
|
+
case 4:
|
|
3040
3091
|
e.preventDefault();
|
|
3041
3092
|
e.stopPropagation();
|
|
3042
|
-
_a.label =
|
|
3043
|
-
case
|
|
3093
|
+
_a.label = 5;
|
|
3094
|
+
case 5: return [2 /*return*/];
|
|
3044
3095
|
}
|
|
3045
3096
|
});
|
|
3046
|
-
}); }, [filteredValues, options, selectItemHandler, stopEditing]);
|
|
3097
|
+
}); }, [filteredValues, options, selectItemHandler, selectFilterHandler, stopEditing, filter, formProps]);
|
|
3047
3098
|
return popoverWrapper(jsxs(Fragment$1, { children: [formProps.filtered && (jsxs(Fragment$1, { children: [jsx(FocusableItem, __assign({ className: "filter-item" }, { children: function (_a) {
|
|
3048
3099
|
var _b;
|
|
3049
3100
|
var ref = _a.ref;
|