@linzjs/step-ag-grid 17.7.0 → 17.9.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.
Files changed (44) hide show
  1. package/dist/src/components/Grid.d.ts +1 -0
  2. package/dist/src/components/GridNoRowsOverlay.d.ts +3 -1
  3. package/dist/src/contexts/GridContext.d.ts +1 -0
  4. package/dist/step-ag-grid.cjs.js +1115 -706
  5. package/dist/step-ag-grid.cjs.js.map +1 -1
  6. package/dist/step-ag-grid.esm.js +1117 -708
  7. package/dist/step-ag-grid.esm.js.map +1 -1
  8. package/package.json +47 -46
  9. package/src/components/Grid.tsx +42 -22
  10. package/src/components/GridNoRowsOverlay.tsx +27 -3
  11. package/src/contexts/GridContext.tsx +4 -0
  12. package/src/contexts/GridContextProvider.tsx +5 -0
  13. package/src/stories/components/ActionButton.stories.tsx +3 -3
  14. package/src/stories/grid/GridDragRow.stories.tsx +3 -3
  15. package/src/stories/grid/GridFilterButtons.stories.tsx +3 -3
  16. package/src/stories/grid/GridNoRowsOverlay.stories.tsx +3 -3
  17. package/src/stories/grid/GridNonEditableRow.stories.tsx +3 -3
  18. package/src/stories/grid/GridPopoutContextMenu.stories.tsx +3 -3
  19. package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +3 -3
  20. package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +3 -3
  21. package/src/stories/grid/GridPopoverEditBearing.stories.tsx +3 -3
  22. package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +3 -3
  23. package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +3 -3
  24. package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +3 -3
  25. package/src/stories/grid/GridReadOnly.stories.tsx +26 -8
  26. package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +3 -3
  27. package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +3 -3
  28. package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +3 -3
  29. package/src/stories/grid/gridFormInteraction/GridFormMultiSelectGridInteraction.stories.tsx +3 -3
  30. package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +3 -3
  31. package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +3 -3
  32. package/src/stories/grid/gridFormInteraction/GridFormTextAreaInteraction.stories.tsx +3 -3
  33. package/src/stories/grid/gridFormInteraction/GridFormTextInputInteraction.stories.tsx +3 -3
  34. package/src/stories/grid/gridFormStatic/GridFormDropDown.stories.tsx +3 -3
  35. package/src/stories/grid/gridFormStatic/GridFormEditBearing.stories.tsx +3 -3
  36. package/src/stories/grid/gridFormStatic/GridFormEditBearingCorrection.stories.tsx +3 -3
  37. package/src/stories/grid/gridFormStatic/GridFormMessage.stories.tsx +3 -3
  38. package/src/stories/grid/gridFormStatic/GridFormMultiSelect.stories.tsx +3 -3
  39. package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +3 -3
  40. package/src/stories/grid/gridFormStatic/GridFormTextArea.stories.tsx +3 -3
  41. package/src/stories/grid/gridFormStatic/GridFormTextInput.stories.tsx +3 -3
  42. package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +3 -3
  43. package/src/stories/react-menu/ReactMenu.stories.tsx +3 -3
  44. package/dist/node_modules/@linzjs/lui/dist/assets/svg-content.d.ts +0 -7
@@ -68,6 +68,7 @@ export interface GridProps {
68
68
  * Defaults to false.
69
69
  */
70
70
  singleClickEdit?: boolean;
71
+ loading?: boolean;
71
72
  }
72
73
  /**
73
74
  * Wrapper for AgGrid to add commonly used functionality.
@@ -1,6 +1,8 @@
1
1
  export interface GridNoRowsOverlayProps {
2
+ loading: boolean;
2
3
  rowCount: number | undefined | null;
3
4
  filteredRowCount: number;
4
5
  noRowsOverlayText: string | undefined;
6
+ headerRowHeight: number;
5
7
  }
6
- export declare const GridNoRowsOverlay: (params: GridNoRowsOverlayProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const GridNoRowsOverlay: (props: GridNoRowsOverlayProps) => import("react/jsx-runtime").JSX.Element;
@@ -61,6 +61,7 @@ export interface GridContextType<RowType extends GridBaseRow> {
61
61
  setInvisibleColumnIds: (colIds: string[]) => void;
62
62
  downloadCsv: (csvExportParams?: CsvExportParams) => void;
63
63
  setOnCellEditingComplete: (callback: (() => void) | undefined) => void;
64
+ showNoRowsOverlay: () => void;
64
65
  }
65
66
  export declare const GridContext: import("react").Context<GridContextType<any>>;
66
67
  export declare const useGridContext: <RowType extends GridBaseRow>() => GridContextType<RowType>;