@linzjs/step-ag-grid 28.2.4 → 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.
package/dist/step-ag-grid.cjs
CHANGED
|
@@ -3234,6 +3234,12 @@ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection
|
|
|
3234
3234
|
let rowCount = 0;
|
|
3235
3235
|
event.api.forEachNode(() => rowCount++);
|
|
3236
3236
|
return (jsxRuntime.jsx(GridNoRowsOverlay, { loading: !rowData || params.loading === true, rowCount: rowCount, headerRowHeight: headerRowCount * rowHeight, filteredRowCount: event.api.getDisplayedRowCount(), noRowsOverlayText: params.noRowsOverlayText, noRowsMatchingOverlayText: params.noRowsMatchingOverlayText }));
|
|
3237
|
+
}, quickFilterParser: (filterStr) => {
|
|
3238
|
+
filterStr = filterStr.trim();
|
|
3239
|
+
const quoted = filterStr.startsWith('"');
|
|
3240
|
+
filterStr = filterStr.replace(/^"/, '').replace(/"$/, '');
|
|
3241
|
+
// If the user encloses the search term in quotes, treat it as an exact match otherwise split by space
|
|
3242
|
+
return quoted ? [filterStr] : filterStr.split(' ');
|
|
3237
3243
|
}, 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: {
|
|
3238
3244
|
suppressNavigable: params.hideSelectColumn,
|
|
3239
3245
|
rowDrag: !!params.onRowDragEnd,
|