@linzjs/step-ag-grid 18.0.0 → 19.0.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/index.css CHANGED
@@ -400,6 +400,14 @@
400
400
  max-width: 400px;
401
401
  }
402
402
 
403
+ .ag-floating-top-container .ag-row {
404
+ background-color: #f9f9f9;
405
+ }
406
+
407
+ .ag-floating-bottom-container .ag-row {
408
+ background-color: #f9f9f9;
409
+ }
410
+
403
411
  .GridCell-container {
404
412
  overflow: hidden;
405
413
  text-overflow: ellipsis;
@@ -71,6 +71,8 @@ export interface GridProps {
71
71
  singleClickEdit?: boolean;
72
72
  loading?: boolean;
73
73
  suppressCellFocus?: boolean;
74
+ pinnedTopRowData?: GridOptions["pinnedTopRowData"];
75
+ pinnedBottomRowData?: GridOptions["pinnedBottomRowData"];
74
76
  }
75
77
  /**
76
78
  * Wrapper for AgGrid to add commonly used functionality.
@@ -53112,10 +53112,12 @@ const ControlledMenuFr = ({ "aria-label": ariaLabel, className, containerProps,
53112
53112
  safeCall(onClose, { key, reason: CloseReason.CLICK });
53113
53113
  },
53114
53114
  }), [onItemClick, onClose]);
53115
- const onKeyDown = ({ key }) => {
53116
- switch (key) {
53115
+ const onKeyUp = (e) => {
53116
+ switch (e.key) {
53117
53117
  case Keys.ESC:
53118
- safeCall(onClose, { key, reason: CloseReason.CANCEL });
53118
+ e.preventDefault();
53119
+ e.stopPropagation();
53120
+ safeCall(onClose, { key: e.key, reason: CloseReason.CANCEL });
53119
53121
  break;
53120
53122
  }
53121
53123
  };
@@ -53138,7 +53140,7 @@ const ControlledMenuFr = ({ "aria-label": ariaLabel, className, containerProps,
53138
53140
  };
53139
53141
  const itemTransition = getTransition(transition, "item");
53140
53142
  const modifiers = React.useMemo(() => ({ theme: theming, itemTransition }), [theming, itemTransition]);
53141
- const menuList = (jsxRuntime.jsx("div", { ...mergeProps({ onKeyDown, onBlur }, containerProps), className: useBEM({
53143
+ const menuList = (jsxRuntime.jsx("div", { ...mergeProps({ onKeyUp, onBlur }, containerProps), className: useBEM({
53142
53144
  block: menuContainerClass,
53143
53145
  modifiers,
53144
53146
  className,
@@ -54019,7 +54021,7 @@ const Grid = ({ "data-testid": dataTestId, rowSelection = "multiple", suppressCo
54019
54021
  let rowCount = 0;
54020
54022
  event.api.forEachNode(() => rowCount++);
54021
54023
  return (jsxRuntime.jsx(GridNoRowsOverlay, { loading: !rowData || params.loading === true, rowCount: rowCount, headerRowHeight: headerRowCount * rowHeight, filteredRowCount: event.api.getDisplayedRowCount(), noRowsOverlayText: params.noRowsOverlayText, noRowsMatchingOverlayText: params.noRowsMatchingOverlayText }));
54022
- }, onModelUpdated: onModelUpdated, onGridReady: onGridReady, onSortChanged: ensureSelectedRowIsVisible, postSortRows: params.onRowDragEnd ? undefined : postSortRows, onSelectionChanged: synchroniseExternalStateToGridSelection, onColumnMoved: params.onColumnMoved, alwaysShowVerticalScroll: params.alwaysShowVerticalScroll, isExternalFilterPresent: isExternalFilterPresent, doesExternalFilterPass: doesExternalFilterPass, maintainColumnOrder: true, preventDefaultOnContextMenu: true, onCellContextMenu: gridContextMenu.cellContextMenu, rowDragText: params.rowDragText, onRowDragMove: onRowDragMove, onRowDragEnd: onRowDragEnd, onRowDragLeave: onRowDragLeave, suppressCellFocus: params.suppressCellFocus }) })] }));
54024
+ }, onModelUpdated: onModelUpdated, onGridReady: onGridReady, onSortChanged: ensureSelectedRowIsVisible, postSortRows: params.onRowDragEnd ? undefined : postSortRows, onSelectionChanged: synchroniseExternalStateToGridSelection, onColumnMoved: params.onColumnMoved, alwaysShowVerticalScroll: params.alwaysShowVerticalScroll, isExternalFilterPresent: isExternalFilterPresent, doesExternalFilterPass: doesExternalFilterPass, maintainColumnOrder: true, preventDefaultOnContextMenu: true, onCellContextMenu: gridContextMenu.cellContextMenu, rowDragText: params.rowDragText, onRowDragMove: onRowDragMove, onRowDragEnd: onRowDragEnd, onRowDragLeave: onRowDragLeave, suppressCellFocus: params.suppressCellFocus, pinnedTopRowData: params.pinnedTopRowData, pinnedBottomRowData: params.pinnedBottomRowData }) })] }));
54023
54025
  };
54024
54026
 
54025
54027
  const GridPopoverContext = React.createContext({