@linzjs/step-ag-grid 10.0.2 → 12.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
@@ -324,6 +324,12 @@
324
324
  flex-direction: column;
325
325
  }
326
326
 
327
+ .Grid-wrapper {
328
+ display: flex;
329
+ flex-direction: column;
330
+ flex: 1;
331
+ }
332
+
327
333
  .Grid-sortIsStale span.ag-icon.ag-icon-desc::after {
328
334
  content: "*";
329
335
  }
@@ -331,10 +337,13 @@
331
337
  content: "*";
332
338
  }
333
339
 
334
- .Grid-quickFilter {
340
+ .Grid-container-filters {
335
341
  width: 100%;
336
342
  margin-bottom: 16px;
337
343
  flex: 0;
344
+ display: flex;
345
+ flex-direction: row;
346
+ grid-column-gap: 1em;
338
347
  }
339
348
 
340
349
  .Grid-quickFilterBox {
@@ -384,10 +393,6 @@
384
393
  width: 100%;
385
394
  }
386
395
 
387
- .Grid-container.ag-theme-alpine ag-cell-label-container {
388
- padding: 0;
389
- }
390
-
391
396
  .GridPopoverEditDropDown-containerSmall .GridFormDropDown-options {
392
397
  max-height: 120px;
393
398
  overflow-y: auto;
@@ -8,16 +8,12 @@ export interface GridProps {
8
8
  readOnly?: boolean;
9
9
  selectable?: boolean;
10
10
  ["data-testid"]?: string;
11
- quickFilter?: boolean;
12
- quickFilterPlaceholder?: string;
13
- quickFilterValue?: string;
14
11
  domLayout?: GridOptions["domLayout"];
15
12
  externalSelectedItems?: any[];
16
13
  setExternalSelectedItems?: (items: any[]) => void;
17
14
  defaultColDef?: GridOptions["defaultColDef"];
18
15
  columnDefs: ColDef[];
19
16
  rowData: GridOptions["rowData"];
20
- noRowsOverlayText?: string;
21
17
  postSortRows?: GridOptions["postSortRows"];
22
18
  animateRows?: boolean;
23
19
  rowClassRules?: GridOptions["rowClassRules"];
@@ -23,4 +23,4 @@ export declare const GridCell: <RowType extends GridBaseRow, Props extends CellE
23
23
  export interface CellEditorCommon {
24
24
  className?: string | undefined;
25
25
  }
26
- export declare const GenericCellEditorComponentWrapper: (editor?: ((props: any) => JSX.Element) | undefined) => import("react").ForwardRefExoticComponent<ICellEditorParams<any, any> & import("react").RefAttributes<unknown>>;
26
+ export declare const GenericCellEditorComponentWrapper: (editor?: ((props: any) => JSX.Element) | undefined) => import("react").ForwardRefExoticComponent<ICellEditorParams & import("react").RefAttributes<unknown>>;
@@ -0,0 +1,2 @@
1
+ import { GridFilterExternal } from "../contexts/GridContext";
2
+ export declare const useGridFilter: (filter: GridFilterExternal) => void;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ export interface GridWrapperProps {
3
+ children: ReactNode;
4
+ maxHeight?: number | string;
5
+ }
6
+ export declare const GridWrapper: ({ children, maxHeight }: GridWrapperProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface GridFilterQuickProps {
2
+ quickFilterPlaceholder?: string;
3
+ defaultValue?: string;
4
+ }
5
+ export declare const GridFilterQuick: ({ quickFilterPlaceholder, defaultValue }: GridFilterQuickProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from "react";
2
+ export interface GridFiltersProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare const GridFilters: ({ children }: GridFiltersProps) => JSX.Element;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { GridApi, RowNode } from "ag-grid-community";
3
3
  import { GridBaseRow } from "../components/Grid";
4
+ export type GridFilterExternal = (data: any, rowNode: RowNode) => boolean;
4
5
  export interface GridContextType {
5
6
  gridReady: boolean;
6
7
  setGridApi: (gridApi: GridApi | undefined) => void;
@@ -28,5 +29,9 @@ export interface GridContextType {
28
29
  externallySelectedItemsAreInSync: boolean;
29
30
  setExternallySelectedItemsAreInSync: (inSync: boolean) => void;
30
31
  waitForExternallySelectedItemsToBeInSync: () => Promise<void>;
32
+ addExternalFilter: (filter: GridFilterExternal) => void;
33
+ removeExternalFilter: (filter: GridFilterExternal) => void;
34
+ isExternalFilterPresent: () => boolean;
35
+ doesExternalFilterPass: (node: RowNode) => boolean;
31
36
  }
32
37
  export declare const GridContext: import("react").Context<GridContextType>;