@linzjs/step-ag-grid 17.12.0 → 18.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "17.12.0",
5
+ "version": "18.0.0",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -27,17 +27,16 @@
27
27
  "node": ">=18"
28
28
  },
29
29
  "peerDependencies": {
30
- "@linzjs/lui": ">=18",
31
- "ag-grid-community": ">=29",
32
- "ag-grid-react": ">=29",
30
+ "@linzjs/lui": ">=21",
31
+ "ag-grid-react": "~29",
33
32
  "lodash-es": ">=4",
34
33
  "react": ">=18",
35
34
  "react-dom": ">=18"
36
35
  },
37
36
  "dependencies": {
38
- "@linzjs/lui": ">=18",
39
- "ag-grid-community": ">=29",
40
- "ag-grid-react": ">=29",
37
+ "@linzjs/lui": ">=21",
38
+ "ag-grid-community": "~29",
39
+ "ag-grid-react": "~29",
41
40
  "clsx": "^2.0.0",
42
41
  "debounce-promise": "^3.1.2",
43
42
  "lodash-es": ">=4",
@@ -89,20 +88,20 @@
89
88
  "@rollup/plugin-node-resolve": "^15.2.3",
90
89
  "@semantic-release/changelog": "^6.0.3",
91
90
  "@semantic-release/git": "^10.0.1",
92
- "@storybook/addon-essentials": "^7.4.6",
93
- "@storybook/addon-interactions": "^7.4.6",
91
+ "@storybook/addon-essentials": "^7.6.4",
92
+ "@storybook/addon-interactions": "^7.6.4",
94
93
  "@storybook/addon-postcss": "^2.0.0",
95
94
  "@storybook/jest": "^0.2.3",
96
- "@storybook/preset-create-react-app": "^7.4.6",
97
- "@storybook/react": "^7.4.6",
98
- "@storybook/react-webpack5": "^7.4.6",
99
- "@storybook/test-runner": "^0.13.0",
95
+ "@storybook/preset-create-react-app": "^7.6.4",
96
+ "@storybook/react": "^7.6.4",
97
+ "@storybook/react-webpack5": "^7.6.4",
98
+ "@storybook/test-runner": "^0.16.0",
100
99
  "@storybook/testing-library": "^0.2.2",
101
100
  "@testing-library/dom": "^9.3.3",
102
- "@testing-library/jest-dom": "^5.17.0",
103
- "@testing-library/react": "^14.0.0",
101
+ "@testing-library/jest-dom": "^6.1.5",
102
+ "@testing-library/react": "^14.1.2",
104
103
  "@testing-library/user-event": "^14.5.1",
105
- "@trivago/prettier-plugin-sort-imports": "^4.2.0",
104
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
106
105
  "@types/debounce-promise": "^3.1.7",
107
106
  "@types/jest": "^29.5.5",
108
107
  "@types/lodash-es": "^4.17.9",
@@ -113,9 +112,10 @@
113
112
  "@typescript-eslint/parser": "^5.62.0",
114
113
  "babel-jest": "^29.7.0",
115
114
  "babel-preset-react-app": "^10.0.1",
116
- "chromatic": "^7.2.3",
115
+ "chromatic": "^10.1.0",
117
116
  "conventional-changelog-conventionalcommits": "^6.1.0",
118
117
  "css-loader": "^6.8.1",
118
+ "esbuild": "^0.19.9",
119
119
  "eslint": "^8.51.0",
120
120
  "eslint-config-prettier": "^9.0.0",
121
121
  "eslint-config-react-app": "^7.0.1",
@@ -147,15 +147,15 @@
147
147
  "rollup-plugin-typescript2": "^0.36.0",
148
148
  "sass": "1.66.1",
149
149
  "sass-loader": "^13.3.2",
150
- "semantic-release": "^22.0.5",
151
- "storybook": "^7.4.6",
150
+ "semantic-release": "^22.0.10",
151
+ "storybook": "^7.6.4",
152
152
  "storybook-css-modules-preset": "^1.1.1",
153
153
  "style-loader": "^3.3.3",
154
154
  "stylelint": "^15.10.3",
155
155
  "stylelint-config-recommended-scss": "^12.0.0",
156
156
  "stylelint-config-standard": "^34.0.0",
157
157
  "stylelint-prettier": "^3.0.0",
158
- "stylelint-scss": "^5.1.0",
158
+ "stylelint-scss": "^5.3.2",
159
159
  "tsconfig-paths-webpack-plugin": "^4.1.0",
160
160
  "typescript": "^4.9.5"
161
161
  },
@@ -53,6 +53,7 @@ export interface GridProps {
53
53
  */
54
54
  selectColumnPinned?: ColDef["pinned"];
55
55
  noRowsOverlayText?: string;
56
+ noRowsMatchingOverlayText?: string;
56
57
  animateRows?: boolean;
57
58
  rowHeight?: number;
58
59
  rowClassRules?: GridOptions["rowClassRules"];
@@ -716,6 +717,7 @@ export const Grid = ({
716
717
  headerRowHeight={headerRowCount * rowHeight}
717
718
  filteredRowCount={event.api.getDisplayedRowCount()}
718
719
  noRowsOverlayText={params.noRowsOverlayText}
720
+ noRowsMatchingOverlayText={params.noRowsMatchingOverlayText}
719
721
  />
720
722
  );
721
723
  }}
@@ -24,12 +24,14 @@ export interface GridNoRowsOverlayProps {
24
24
  rowCount: number | undefined | null;
25
25
  filteredRowCount: number;
26
26
  noRowsOverlayText: string | undefined;
27
+ noRowsMatchingOverlayText: string | undefined;
27
28
  headerRowHeight: number;
28
29
  }
29
30
 
30
31
  export const GridNoRowsOverlay = (props: GridNoRowsOverlayProps) => {
31
32
  if (props.loading) return <GridLoadingOverlayComponent headerRowHeight={props.headerRowHeight} />;
32
33
  if (props.rowCount === 0) return <div>{props.noRowsOverlayText ?? "There are currently no rows"}</div>;
33
- if (props.filteredRowCount === 0) return <div>All rows have been filtered</div>;
34
+ if (props.filteredRowCount === 0)
35
+ return <div>{props.noRowsMatchingOverlayText ?? "All rows have been filtered"}</div>;
34
36
  return <span />;
35
37
  };
package/src/index.ts CHANGED
@@ -19,4 +19,3 @@ export * from "./react-menu3/types";
19
19
  export * from "./utils/bearing";
20
20
  export * from "./utils/util";
21
21
  export * from "./utils/deferredPromise";
22
- export * from "./utils/testUtil";
@@ -288,7 +288,11 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
288
288
  font-size: 14px;
289
289
  }
290
290
 
291
- .ag-row .ag-cell[aria-colindex="1"] {
291
+ .ag-row .ag-cell:first-of-type {
292
292
  padding-left: 32px;
293
293
  }
294
+
295
+ .ag-row .ag-cell:last-of-type {
296
+ padding-right: 32px;
297
+ }
294
298
  }