@linzjs/step-ag-grid 17.1.0 → 17.3.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "17.1.0",
5
+ "version": "17.3.0",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -36,8 +36,8 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@linzjs/lui": "^18",
39
- "ag-grid-community": ">=28",
40
- "ag-grid-react": ">=28",
39
+ "ag-grid-community": "^29",
40
+ "ag-grid-react": "^29",
41
41
  "debounce-promise": "^3.1.2",
42
42
  "lodash-es": ">=4",
43
43
  "matcher": "^5.0.0",
@@ -78,7 +78,6 @@ export const useGridPopoverHook = <RowType extends GridBaseRow>(props: GridPopov
78
78
  viewScroll={"auto"}
79
79
  dontShrinkIfDirectionIsTop={true}
80
80
  className={props.className}
81
- closeMenuExclusionClassName={"ReactModal__Content"}
82
81
  >
83
82
  {saving && ( // This is the overlay that prevents editing when the editor is saving
84
83
  <div className={"ComponentLoadingWrapper-saveOverlay"} />
@@ -31,7 +31,6 @@ export const ControlledMenuFr = (
31
31
  onItemClick,
32
32
  onClose,
33
33
  saveButtonRef,
34
- closeMenuExclusionClassName,
35
34
  ...restProps
36
35
  }: ControlledMenuProps & { saveButtonRef?: MutableRefObject<HTMLButtonElement | null> },
37
36
  externalRef: ForwardedRef<HTMLUListElement>,
@@ -68,10 +67,8 @@ export const ControlledMenuFr = (
68
67
  );
69
68
 
70
69
  const isWithinMenu = useCallback(
71
- (target: EventTarget | null) =>
72
- hasParentClass("szh-menu--state-open", target as Node) ||
73
- (closeMenuExclusionClassName && hasParentClass(closeMenuExclusionClassName, target as Node)),
74
- [closeMenuExclusionClassName],
70
+ (target: EventTarget | null) => hasParentClass("szh-menu--state-open", target as Node),
71
+ [],
75
72
  );
76
73
 
77
74
  const handleScreenEventForSave = useCallback(
@@ -441,9 +441,4 @@ export interface ControlledMenuProps extends RootMenuProps, ExtraMenuProps {
441
441
  * Event fired when menu is about to close.
442
442
  */
443
443
  onClose?: EventHandler<MenuCloseEvent>;
444
-
445
- /**
446
- * When clicking outside the menu to close, anything with this class will not cause a close.
447
- */
448
- closeMenuExclusionClassName?: string;
449
444
  }