@linzjs/step-ag-grid 1.4.4 → 1.4.6
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.js +1631 -3040
- package/dist/index.js.map +1 -1
- package/dist/src/components/GridLoadableCell.d.ts +2 -0
- package/dist/src/components/gridForm/GridFormDropDown.d.ts +1 -1
- package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +1 -1
- package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +1 -1
- package/dist/src/react-menu3/components/ControlledMenu.d.ts +2 -0
- package/dist/src/react-menu3/components/FocusableItem.d.ts +9 -0
- package/dist/src/react-menu3/components/Menu.d.ts +16 -0
- package/dist/src/react-menu3/components/MenuButton.d.ts +8 -0
- package/dist/src/react-menu3/components/MenuDivider.d.ts +3 -0
- package/dist/src/react-menu3/components/MenuGroup.d.ts +12 -0
- package/dist/src/react-menu3/components/MenuHeader.d.ts +4 -0
- package/dist/src/react-menu3/components/MenuItem.d.ts +59 -0
- package/dist/src/react-menu3/components/MenuList.d.ts +57 -0
- package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +44 -0
- package/dist/src/react-menu3/components/SubMenu.d.ts +110 -0
- package/dist/src/react-menu3/hooks/index.d.ts +9 -0
- package/dist/src/react-menu3/hooks/useBEM.d.ts +10 -0
- package/dist/src/react-menu3/hooks/useCombinedRef.d.ts +2 -0
- package/dist/src/react-menu3/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/src/react-menu3/hooks/useItemEffect.d.ts +2 -0
- package/dist/src/react-menu3/hooks/useItemState.d.ts +7 -0
- package/dist/src/react-menu3/hooks/useItems.d.ts +7 -0
- package/dist/src/react-menu3/hooks/useMenuChange.d.ts +2 -0
- package/dist/src/react-menu3/hooks/useMenuState.d.ts +14 -0
- package/dist/src/react-menu3/hooks/useMenuStateAndFocus.d.ts +2 -0
- package/dist/src/react-menu3/index.d.ts +402 -0
- package/dist/src/react-menu3/positionUtils/getPositionHelpers.d.ts +11 -0
- package/dist/src/react-menu3/positionUtils/index.d.ts +3 -0
- package/dist/src/react-menu3/positionUtils/placeArrowHorizontal.d.ts +8 -0
- package/dist/src/react-menu3/positionUtils/placeArrowVertical.d.ts +8 -0
- package/dist/src/react-menu3/positionUtils/placeLeftorRight.d.ts +19 -0
- package/dist/src/react-menu3/positionUtils/placeToporBottom.d.ts +19 -0
- package/dist/src/react-menu3/positionUtils/positionContextMenu.d.ts +13 -0
- package/dist/src/react-menu3/positionUtils/positionMenu.d.ts +26 -0
- package/dist/src/react-menu3/style-utils/index.d.ts +11 -0
- package/dist/src/react-menu3/utils/constants.d.ts +92 -0
- package/dist/src/react-menu3/utils/index.d.ts +4 -0
- package/dist/src/react-menu3/utils/propTypes.d.ts +56 -0
- package/dist/src/react-menu3/utils/utils.d.ts +36 -0
- package/dist/src/react-menu3/utils/withHovering.d.ts +7 -0
- package/dist/src/stories/components/ReactMenu.stories.d.ts +8 -0
- package/dist/step-ag-grid.esm.js +1543 -2951
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +22 -13
- package/src/components/GridLoadableCell.scss +4 -0
- package/src/components/GridLoadableCell.tsx +5 -1
- package/src/components/GridPopoverHook.tsx +4 -50
- package/src/components/gridForm/GridFormDropDown.tsx +3 -3
- package/src/components/gridForm/GridFormMultiSelect.tsx +12 -6
- package/src/components/gridForm/GridFormPopoutMenu.tsx +1 -1
- package/src/components/gridPopoverEdit/GridPopoverMenu.scss +6 -2
- package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +1 -1
- package/src/components/gridRender/GridRenderPopoutMenuCell.tsx +7 -9
- package/src/react-menu3/components/ControlledMenu.tsx +261 -0
- package/src/react-menu3/components/FocusableItem.tsx +75 -0
- package/src/react-menu3/components/Menu.tsx +108 -0
- package/src/react-menu3/components/MenuButton.tsx +34 -0
- package/src/react-menu3/components/MenuDivider.tsx +17 -0
- package/src/react-menu3/components/MenuGroup.tsx +47 -0
- package/src/react-menu3/components/MenuHeader.tsx +17 -0
- package/src/react-menu3/components/MenuItem.tsx +183 -0
- package/src/react-menu3/components/MenuList.tsx +502 -0
- package/src/react-menu3/components/MenuRadioGroup.tsx +72 -0
- package/src/react-menu3/components/SubMenu.tsx +349 -0
- package/src/react-menu3/hooks/index.ts +9 -0
- package/src/react-menu3/hooks/useBEM.ts +33 -0
- package/src/react-menu3/hooks/useCombinedRef.ts +24 -0
- package/src/react-menu3/hooks/useIsomorphicLayoutEffect.ts +15 -0
- package/src/react-menu3/hooks/useItemEffect.ts +23 -0
- package/src/react-menu3/hooks/useItemState.ts +67 -0
- package/src/react-menu3/hooks/useItems.ts +111 -0
- package/src/react-menu3/hooks/useMenuChange.ts +12 -0
- package/src/react-menu3/hooks/useMenuState.ts +42 -0
- package/src/react-menu3/hooks/useMenuStateAndFocus.ts +17 -0
- package/src/react-menu3/index.d.ts +683 -0
- package/src/react-menu3/index.ts +442 -0
- package/src/react-menu3/positionUtils/getPositionHelpers.ts +83 -0
- package/src/react-menu3/positionUtils/index.ts +3 -0
- package/src/react-menu3/positionUtils/placeArrowHorizontal.ts +15 -0
- package/src/react-menu3/positionUtils/placeArrowVertical.ts +15 -0
- package/src/react-menu3/positionUtils/placeLeftorRight.ts +92 -0
- package/src/react-menu3/positionUtils/placeToporBottom.ts +93 -0
- package/src/react-menu3/positionUtils/positionContextMenu.ts +61 -0
- package/src/react-menu3/positionUtils/positionMenu.ts +80 -0
- package/src/react-menu3/style-utils/index.ts +83 -0
- package/src/react-menu3/style-utils.d.ts +110 -0
- package/src/react-menu3/styles/_mixins.scss +11 -0
- package/src/react-menu3/styles/_var.scss +20 -0
- package/src/react-menu3/styles/core.scss +80 -0
- package/src/react-menu3/styles/index.scss +70 -0
- package/src/react-menu3/styles/theme-dark.scss +30 -0
- package/src/react-menu3/styles/transitions/slide.scss +47 -0
- package/src/react-menu3/utils/constants.ts +116 -0
- package/src/react-menu3/utils/index.ts +4 -0
- package/src/react-menu3/utils/propTypes.ts +63 -0
- package/src/react-menu3/utils/utils.ts +88 -0
- package/src/react-menu3/utils/withHovering.tsx +27 -0
- package/src/stories/components/GridPopoutEditDropDown.stories.tsx +1 -3
- package/src/stories/components/ReactMenu.stories.tsx +37 -0
- package/src/utils/util.ts +2 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const stylePropTypes: (name?: string) => {
|
|
2
|
+
[x: string]: import("prop-types").Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
|
|
3
|
+
};
|
|
4
|
+
export declare const Direction: import("prop-types").Requireable<string>;
|
|
5
|
+
export declare const menuPropTypes: {
|
|
6
|
+
menuStyle: import("prop-types").Requireable<object>;
|
|
7
|
+
arrowStyle: import("prop-types").Requireable<object>;
|
|
8
|
+
arrow: import("prop-types").Requireable<boolean>;
|
|
9
|
+
setDownOverflow: import("prop-types").Requireable<boolean>;
|
|
10
|
+
offsetX: import("prop-types").Requireable<number>;
|
|
11
|
+
offsetY: import("prop-types").Requireable<number>;
|
|
12
|
+
align: import("prop-types").Requireable<string>;
|
|
13
|
+
direction: import("prop-types").Requireable<string>;
|
|
14
|
+
position: import("prop-types").Requireable<string>;
|
|
15
|
+
overflow: import("prop-types").Requireable<string>;
|
|
16
|
+
className: import("prop-types").Requireable<string>;
|
|
17
|
+
};
|
|
18
|
+
export declare const rootMenuPropTypes: {
|
|
19
|
+
containerProps: import("prop-types").Requireable<object>;
|
|
20
|
+
initialMounted: import("prop-types").Requireable<boolean>;
|
|
21
|
+
unmountOnClose: import("prop-types").Requireable<boolean>;
|
|
22
|
+
transition: import("prop-types").Requireable<NonNullable<boolean | Required<import("prop-types").InferProps<{
|
|
23
|
+
open: import("prop-types").Requireable<boolean>;
|
|
24
|
+
close: import("prop-types").Requireable<boolean>;
|
|
25
|
+
item: import("prop-types").Requireable<boolean>;
|
|
26
|
+
}>> | null | undefined>>;
|
|
27
|
+
transitionTimeout: import("prop-types").Requireable<number>;
|
|
28
|
+
boundingBoxRef: import("prop-types").Requireable<object>;
|
|
29
|
+
boundingBoxPadding: import("prop-types").Requireable<string>;
|
|
30
|
+
reposition: import("prop-types").Requireable<string>;
|
|
31
|
+
repositionFlag: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
|
|
32
|
+
viewScroll: import("prop-types").Requireable<string>;
|
|
33
|
+
submenuOpenDelay: import("prop-types").Requireable<number>;
|
|
34
|
+
submenuCloseDelay: import("prop-types").Requireable<number>;
|
|
35
|
+
portal: import("prop-types").Requireable<NonNullable<boolean | Required<import("prop-types").InferProps<{
|
|
36
|
+
target: import("prop-types").Requireable<object>;
|
|
37
|
+
stablePosition: import("prop-types").Requireable<boolean>;
|
|
38
|
+
}>> | null | undefined>>;
|
|
39
|
+
theming: import("prop-types").Requireable<string>;
|
|
40
|
+
onItemClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
41
|
+
menuStyle: import("prop-types").Requireable<object>;
|
|
42
|
+
arrowStyle: import("prop-types").Requireable<object>;
|
|
43
|
+
arrow: import("prop-types").Requireable<boolean>;
|
|
44
|
+
setDownOverflow: import("prop-types").Requireable<boolean>;
|
|
45
|
+
offsetX: import("prop-types").Requireable<number>;
|
|
46
|
+
offsetY: import("prop-types").Requireable<number>;
|
|
47
|
+
align: import("prop-types").Requireable<string>;
|
|
48
|
+
direction: import("prop-types").Requireable<string>;
|
|
49
|
+
position: import("prop-types").Requireable<string>;
|
|
50
|
+
overflow: import("prop-types").Requireable<string>;
|
|
51
|
+
className: import("prop-types").Requireable<string>;
|
|
52
|
+
};
|
|
53
|
+
export declare const uncontrolledMenuPropTypes: {
|
|
54
|
+
instanceRef: import("prop-types").Requireable<object>;
|
|
55
|
+
onMenuChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
56
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { unstable_batchedUpdates } from "react-dom";
|
|
3
|
+
import { MenuState, MenuStateOptions } from "../index";
|
|
4
|
+
import { MenuButtonProps } from "../components/MenuButton";
|
|
5
|
+
export declare const isMenuOpen: (state?: MenuState) => boolean;
|
|
6
|
+
export declare const batchedUpdates: typeof unstable_batchedUpdates;
|
|
7
|
+
export declare const values: {
|
|
8
|
+
<T>(o: {
|
|
9
|
+
[s: string]: T;
|
|
10
|
+
} | ArrayLike<T>): T[];
|
|
11
|
+
(o: {}): any[];
|
|
12
|
+
};
|
|
13
|
+
export declare const floatEqual: (a: number, b: number, diff?: number) => boolean;
|
|
14
|
+
export declare type TransitionMap = {
|
|
15
|
+
open?: boolean;
|
|
16
|
+
close?: boolean;
|
|
17
|
+
item?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const getTransition: (transition: MenuStateOptions["transition"], name: keyof TransitionMap) => boolean;
|
|
20
|
+
export declare function safeCall<T, R>(fn: (arg?: T) => R, arg?: T): R;
|
|
21
|
+
export declare function safeCall<T, R>(fn: T, arg: R): T;
|
|
22
|
+
export declare const getName: (component: Record<string, any | undefined>) => any;
|
|
23
|
+
export declare const defineName: (name: string, component: React.ForwardRefExoticComponent<React.PropsWithoutRef<MenuButtonProps> & React.RefAttributes<unknown>>) => import("react").ForwardRefExoticComponent<Pick<MenuButtonProps, "className" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "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" | "disabled" | "isOpen"> & import("react").RefAttributes<unknown>>;
|
|
24
|
+
export declare const mergeProps: (target: Record<string, any>, source: Record<string, any>) => Record<string, any>;
|
|
25
|
+
export declare const parsePadding: (paddingStr: string | undefined) => {
|
|
26
|
+
top: number;
|
|
27
|
+
right: number;
|
|
28
|
+
bottom: number;
|
|
29
|
+
left: number;
|
|
30
|
+
};
|
|
31
|
+
export declare const getScrollAncestor: (node: Node | null) => Element | null;
|
|
32
|
+
export declare function commonProps(isDisabled?: boolean, isHovering?: boolean): {
|
|
33
|
+
"aria-disabled": true | undefined;
|
|
34
|
+
tabIndex: number;
|
|
35
|
+
};
|
|
36
|
+
export declare const indexOfNode: (nodeList: NodeListOf<Node>, node: Node) => number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MutableRefObject } from "react";
|
|
2
|
+
export interface withHoveringResultProps {
|
|
3
|
+
isHovering?: boolean;
|
|
4
|
+
externalRef?: MutableRefObject<any>;
|
|
5
|
+
menuItemRef?: MutableRefObject<any>;
|
|
6
|
+
}
|
|
7
|
+
export declare const withHovering: (name: string, WrappedComponent: (...args: any) => JSX.Element) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "@linzjs/lui/dist/scss/base.scss";
|
|
3
|
+
import "@linzjs/lui/dist/fonts";
|
|
4
|
+
import "../../lui-overrides.scss";
|
|
5
|
+
import { ComponentMeta, ComponentStory } from "@storybook/react/dist/ts3.9/client/preview/types-6-3";
|
|
6
|
+
declare const _default: ComponentMeta<(params: import("@components/Grid").GridProps) => JSX.Element>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const ReactMenuControlled: ComponentStory<(params: import("@components/Grid").GridProps) => JSX.Element>;
|