@linzjs/step-ag-grid 27.3.4 → 28.1.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/README.md +1 -0
- package/dist/src/utils/__tests__/testUtil.ts +5 -0
- package/dist/src/utils/__tests__/vitestUtil.ts +5 -0
- package/dist/step-ag-grid.cjs +1 -1
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +1 -1
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +5 -5
- package/src/components/GridCellMultiSelectClassRules.tsx +1 -1
- package/src/utils/__tests__/testUtil.ts +5 -0
- package/src/utils/__tests__/vitestUtil.ts +5 -0
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": "28.1.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"aggrid",
|
|
8
8
|
"ag-grid",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@linzjs/lui": ">=21",
|
|
31
|
-
"ag-grid-community": "^
|
|
32
|
-
"ag-grid-react": "^
|
|
31
|
+
"ag-grid-community": "^34.1.0",
|
|
32
|
+
"ag-grid-react": "^34.1.0",
|
|
33
33
|
"lodash-es": ">=4",
|
|
34
34
|
"react": ">=18",
|
|
35
35
|
"react-dom": ">=18"
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"@types/uuid": "^10.0.0",
|
|
103
103
|
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
104
104
|
"@vitest/ui": "^3.2.4",
|
|
105
|
-
"ag-grid-community": "^
|
|
106
|
-
"ag-grid-react": "^
|
|
105
|
+
"ag-grid-community": "^34.1.0",
|
|
106
|
+
"ag-grid-react": "^34.1.0",
|
|
107
107
|
"babel-preset-react-app": "^10.1.0",
|
|
108
108
|
"chromatic": "^13.1.3",
|
|
109
109
|
"css-loader": "^7.1.2",
|
|
@@ -14,7 +14,7 @@ export const GridCellMultiSelectClassRules: CellClassRules = {
|
|
|
14
14
|
.getSelectedNodes()
|
|
15
15
|
?.map((row) => row.id)
|
|
16
16
|
?.includes(node.id) &&
|
|
17
|
-
api.getEditingCells().some((cell) => cell.
|
|
17
|
+
api.getEditingCells().some((cell) => cell.colId === colDef.colId)
|
|
18
18
|
);
|
|
19
19
|
},
|
|
20
20
|
};
|
|
@@ -292,3 +292,8 @@ export const waitForGridRows = async (props?: { grid?: HTMLElement; timeout?: nu
|
|
|
292
292
|
waitFor(() => expect(getAllQuick({ classes: '.ag-row' }, props?.grid).length > 0).toBe(true), {
|
|
293
293
|
timeout: props?.timeout ?? 5000,
|
|
294
294
|
});
|
|
295
|
+
|
|
296
|
+
export const clickColumnHeaderToSort = async (colId: string, within?: HTMLElement): Promise<void> => {
|
|
297
|
+
const header = await findQuick({ tagName: `.ag-header-cell[col-id='${colId}']` }, within);
|
|
298
|
+
await user.click(header);
|
|
299
|
+
};
|
|
@@ -293,3 +293,8 @@ export const waitForGridRows = async (props?: { grid?: HTMLElement; timeout?: nu
|
|
|
293
293
|
waitFor(() => expect(getAllQuick({ classes: '.ag-row' }, props?.grid).length > 0).toBe(true), {
|
|
294
294
|
timeout: props?.timeout ?? 5000,
|
|
295
295
|
});
|
|
296
|
+
|
|
297
|
+
export const clickColumnHeaderToSort = async (colId: string, within?: HTMLElement): Promise<void> => {
|
|
298
|
+
const header = await findQuick({ tagName: `.ag-header-cell[col-id='${colId}']` }, within);
|
|
299
|
+
await user.click(header);
|
|
300
|
+
};
|