@linzjs/step-ag-grid 28.2.3 → 28.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.
@@ -3232,6 +3232,12 @@ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection
3232
3232
  let rowCount = 0;
3233
3233
  event.api.forEachNode(() => rowCount++);
3234
3234
  return (jsx(GridNoRowsOverlay, { loading: !rowData || params.loading === true, rowCount: rowCount, headerRowHeight: headerRowCount * rowHeight, filteredRowCount: event.api.getDisplayedRowCount(), noRowsOverlayText: params.noRowsOverlayText, noRowsMatchingOverlayText: params.noRowsMatchingOverlayText }));
3235
+ }, quickFilterParser: (filterStr) => {
3236
+ filterStr = filterStr.trim();
3237
+ const quoted = filterStr.startsWith('"');
3238
+ filterStr = filterStr.replace(/^"/, '').replace(/"$/, '');
3239
+ // If the user encloses the search term in quotes, treat it as an exact match otherwise split by space
3240
+ return quoted ? [filterStr] : filterStr.split(' ');
3235
3241
  }, onModelUpdated: onModelUpdated, onGridReady: onGridReady, onSortChanged: ensureSelectedRowIsVisible, postSortRows: params.onRowDragEnd || !defaultPostSort ? undefined : postSortRows, onSelectionChanged: synchroniseExternalStateToGridSelection, onColumnMoved: params.onColumnMoved, alwaysShowVerticalScroll: params.alwaysShowVerticalScroll, isExternalFilterPresent: isExternalFilterPresent, doesExternalFilterPass: doesExternalFilterPass, maintainColumnOrder: true, preventDefaultOnContextMenu: true, onCellContextMenu: gridContextMenu.cellContextMenu, rowDragText: params.rowDragText, onRowDragCancel: clearHighlightRowClasses, onRowDragMove: onRowDragMove, onRowDragEnd: onRowDragEnd, suppressCellFocus: params.suppressCellFocus, pinnedTopRowData: params.pinnedTopRowData, pinnedBottomRowData: params.pinnedBottomRowData, selectionColumnDef: {
3236
3242
  suppressNavigable: params.hideSelectColumn,
3237
3243
  rowDrag: !!params.onRowDragEnd,