@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/dist/GridTheme.scss +5 -1
- package/dist/src/components/Grid.d.ts +1 -0
- package/dist/src/components/GridNoRowsOverlay.d.ts +1 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/step-ag-grid.cjs.js +55955 -25651
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +55996 -25641
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +20 -20
- package/src/components/Grid.tsx +2 -0
- package/src/components/GridNoRowsOverlay.tsx +3 -1
- package/src/index.ts +0 -1
- package/src/styles/GridTheme.scss +5 -1
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": "
|
|
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": ">=
|
|
31
|
-
"ag-grid-
|
|
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": ">=
|
|
39
|
-
"ag-grid-community": "
|
|
40
|
-
"ag-grid-react": "
|
|
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
|
|
93
|
-
"@storybook/addon-interactions": "^7.4
|
|
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
|
|
97
|
-
"@storybook/react": "^7.4
|
|
98
|
-
"@storybook/react-webpack5": "^7.4
|
|
99
|
-
"@storybook/test-runner": "^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": "^
|
|
103
|
-
"@testing-library/react": "^14.
|
|
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.
|
|
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": "^
|
|
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.
|
|
151
|
-
"storybook": "^7.4
|
|
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.
|
|
158
|
+
"stylelint-scss": "^5.3.2",
|
|
159
159
|
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
|
160
160
|
"typescript": "^4.9.5"
|
|
161
161
|
},
|
package/src/components/Grid.tsx
CHANGED
|
@@ -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)
|
|
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
|
@@ -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
|
|
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
|
}
|