@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/package.json
CHANGED
package/src/components/Grid.tsx
CHANGED
|
@@ -755,6 +755,13 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
|
|
|
755
755
|
/>
|
|
756
756
|
);
|
|
757
757
|
}}
|
|
758
|
+
quickFilterParser={(filterStr) => {
|
|
759
|
+
filterStr = filterStr.trim();
|
|
760
|
+
const quoted = filterStr.startsWith('"');
|
|
761
|
+
filterStr = filterStr.replace(/^"/, '').replace(/"$/, '');
|
|
762
|
+
// If the user encloses the search term in quotes, treat it as an exact match otherwise split by space
|
|
763
|
+
return quoted ? [filterStr] : filterStr.split(' ');
|
|
764
|
+
}}
|
|
758
765
|
onModelUpdated={onModelUpdated}
|
|
759
766
|
onGridReady={onGridReady}
|
|
760
767
|
onSortChanged={ensureSelectedRowIsVisible}
|