@linzjs/step-ag-grid 17.1.0 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/react-menu3/components/ControlledMenu.d.ts +1 -1
- package/dist/src/react-menu3/types.d.ts +0 -4
- package/dist/step-ag-grid.cjs.js +3 -4
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +3 -4
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/GridPopoverHook.tsx +0 -1
- package/src/react-menu3/components/ControlledMenu.tsx +2 -5
- package/src/react-menu3/types.ts +0 -5
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -1688,7 +1688,7 @@ const MenuList = ({ ariaLabel, menuClassName, menuStyle, arrowClassName, arrowSt
|
|
|
1688
1688
|
}, ref: arrowRef })), jsx(MenuListContext.Provider, { value: listContext, children: jsx(MenuListItemContext.Provider, { value: itemContext, children: jsx(HoverItemContext.Provider, { value: hoverItem, children: children }) }) })] }));
|
|
1689
1689
|
};
|
|
1690
1690
|
|
|
1691
|
-
const ControlledMenuFr = ({ "aria-label": ariaLabel, className, containerProps, initialMounted, unmountOnClose, transition, transitionTimeout, boundingBoxRef, boundingBoxPadding, reposition = "auto", submenuOpenDelay = 300, submenuCloseDelay = 150, skipOpen, viewScroll = "initial", portal, theming, onItemClick, onClose, saveButtonRef,
|
|
1691
|
+
const ControlledMenuFr = ({ "aria-label": ariaLabel, className, containerProps, initialMounted, unmountOnClose, transition, transitionTimeout, boundingBoxRef, boundingBoxPadding, reposition = "auto", submenuOpenDelay = 300, submenuCloseDelay = 150, skipOpen, viewScroll = "initial", portal, theming, onItemClick, onClose, saveButtonRef, ...restProps }, externalRef) => {
|
|
1692
1692
|
const containerRef = useRef();
|
|
1693
1693
|
const scrollNodesRef = useRef({});
|
|
1694
1694
|
const { anchorRef, state } = restProps;
|
|
@@ -1715,8 +1715,7 @@ const ControlledMenuFr = ({ "aria-label": ariaLabel, className, containerProps,
|
|
|
1715
1715
|
reposition,
|
|
1716
1716
|
viewScroll,
|
|
1717
1717
|
]);
|
|
1718
|
-
const isWithinMenu = useCallback((target) => hasParentClass("szh-menu--state-open", target)
|
|
1719
|
-
(closeMenuExclusionClassName && hasParentClass(closeMenuExclusionClassName, target)), [closeMenuExclusionClassName]);
|
|
1718
|
+
const isWithinMenu = useCallback((target) => hasParentClass("szh-menu--state-open", target), []);
|
|
1720
1719
|
const handleScreenEventForSave = useCallback((ev) => {
|
|
1721
1720
|
if (!isWithinMenu(ev.target)) {
|
|
1722
1721
|
ev.preventDefault();
|
|
@@ -3408,7 +3407,7 @@ const useGridPopoverHook = (props) => {
|
|
|
3408
3407
|
if (event.reason === CloseReason.BLUR)
|
|
3409
3408
|
return;
|
|
3410
3409
|
triggerSave(event.reason).then();
|
|
3411
|
-
}, viewScroll: "auto", dontShrinkIfDirectionIsTop: true, className: props.className,
|
|
3410
|
+
}, viewScroll: "auto", dontShrinkIfDirectionIsTop: true, className: props.className, children: [saving && ( // This is the overlay that prevents editing when the editor is saving
|
|
3412
3411
|
jsx("div", { className: "ComponentLoadingWrapper-saveOverlay" })), children, jsx("button", { ref: saveButtonRef, "data-reason": "", onClick: (e) => {
|
|
3413
3412
|
let reason = e.currentTarget.getAttribute("data-reason") ?? undefined;
|
|
3414
3413
|
if (props.dontSaveOnExternalClick && reason === CloseReason.BLUR) {
|