@linzjs/step-ag-grid 29.14.1 → 29.15.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/src/components/Grid.d.ts +2 -1
- package/dist/step-ag-grid.cjs +2 -2
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +2 -2
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +22 -25
- package/src/components/Grid.tsx +3 -0
- package/src/stories/grid/GridCopy.stories.tsx +1 -12
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": "29.
|
|
5
|
+
"version": "29.15.0",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"aggrid",
|
|
8
8
|
"ag-grid",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"uuid": "^13.0.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
|
-
"build": "run-s clean
|
|
47
|
+
"build": "run-s clean linters css bundle",
|
|
48
48
|
"yalc": "run-s clean css bundle && yalc push",
|
|
49
49
|
"clean": "rimraf dist && mkdirp ./dist",
|
|
50
50
|
"bundle": "rollup -c",
|
|
51
51
|
"css": "sass ./src/styles/index.scss:dist/index.css --no-source-map",
|
|
52
52
|
"test": "cross-env NODE_OPTIONS='--no-experimental-global-navigator' vitest run",
|
|
53
53
|
"test:watch": "vitest --watch",
|
|
54
|
-
"
|
|
54
|
+
"linters": "run-s lint:eslint lint:circulardeps",
|
|
55
55
|
"lint:eslint": "eslint ./src --ext .js,.ts,.tsx --cache --ignore-path .gitignore",
|
|
56
56
|
"lint:circulardeps": "npx madge --circular --extensions ts,tsx ./src",
|
|
57
57
|
"lint:fix": "eslint ./src --ext .js,.ts,.tsx --fix --cache --ignore-path .gitignore",
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"build-storybook": "storybook build",
|
|
60
60
|
"deploy-storybook": "npx --yes -p @storybook/storybook-deployer storybook-to-ghpages",
|
|
61
61
|
"chromatic": "chromatic --exit-zero-on-changes",
|
|
62
|
-
"semantic-release": "semantic-release",
|
|
63
62
|
"upgrade": "npx ncu -i --format group"
|
|
64
63
|
},
|
|
65
64
|
"eslintConfig": {
|
|
@@ -80,30 +79,29 @@
|
|
|
80
79
|
]
|
|
81
80
|
},
|
|
82
81
|
"optionalDependencies": {
|
|
83
|
-
"@rollup/rollup-linux-x64-gnu": "^4.53.
|
|
84
|
-
"@swc/core-linux-x64-gnu": "^1.15.
|
|
82
|
+
"@rollup/rollup-linux-x64-gnu": "^4.53.3",
|
|
83
|
+
"@swc/core-linux-x64-gnu": "^1.15.3"
|
|
85
84
|
},
|
|
86
85
|
"devDependencies": {
|
|
87
|
-
"@chromatic-com/storybook": "^4.1.
|
|
88
|
-
"@linzjs/lui": "^
|
|
86
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
87
|
+
"@linzjs/lui": "^24.3.1",
|
|
89
88
|
"@linzjs/style": "^5.4.0",
|
|
90
|
-
"@linzjs/windows": "^8.
|
|
91
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
89
|
+
"@linzjs/windows": "^8.3.0",
|
|
90
|
+
"@rollup/plugin-commonjs": "^28.0.9",
|
|
92
91
|
"@rollup/plugin-json": "^6.1.0",
|
|
93
92
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
94
|
-
"@
|
|
95
|
-
"@storybook/addon-
|
|
96
|
-
"@storybook/
|
|
97
|
-
"@storybook/react": "^9.1.
|
|
98
|
-
"@storybook/react-vite": "^9.1.12",
|
|
93
|
+
"@storybook/addon-docs": "^9.1.16",
|
|
94
|
+
"@storybook/addon-links": "^9.1.16",
|
|
95
|
+
"@storybook/react": "^9.1.16",
|
|
96
|
+
"@storybook/react-vite": "^9.1.16",
|
|
99
97
|
"@testing-library/dom": "^10.4.1",
|
|
100
98
|
"@testing-library/react": "^16.3.0",
|
|
101
99
|
"@testing-library/user-event": "^14.6.1",
|
|
102
100
|
"@types/debounce-promise": "^3.1.9",
|
|
103
101
|
"@types/jsdom": "^21.1.7",
|
|
104
102
|
"@types/lodash-es": "^4.17.12",
|
|
105
|
-
"@types/node": "^22.
|
|
106
|
-
"@types/react": "^18.3.
|
|
103
|
+
"@types/node": "^22.19.2",
|
|
104
|
+
"@types/react": "^18.3.27",
|
|
107
105
|
"@types/react-dom": "^18.3.7",
|
|
108
106
|
"@types/uuid": "^11.0.0",
|
|
109
107
|
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
@@ -112,11 +110,11 @@
|
|
|
112
110
|
"ag-grid-react": "34.2.0",
|
|
113
111
|
"babel-preset-react-app": "^10.1.0",
|
|
114
112
|
"canvas": "^3.2.0",
|
|
115
|
-
"chromatic": "^13.3.
|
|
113
|
+
"chromatic": "^13.3.4",
|
|
116
114
|
"cross-env": "^10.1.0",
|
|
117
115
|
"css-loader": "^7.1.2",
|
|
118
116
|
"eslint-plugin-react": "^7.37.5",
|
|
119
|
-
"eslint-plugin-storybook": "^9.1.
|
|
117
|
+
"eslint-plugin-storybook": "^9.1.16",
|
|
120
118
|
"jsdom": "^26.1.0",
|
|
121
119
|
"lodash-es": "^4.17.21",
|
|
122
120
|
"mkdirp": "^3.0.1",
|
|
@@ -127,20 +125,19 @@
|
|
|
127
125
|
"react": ">=18",
|
|
128
126
|
"react-app-polyfill": "^3.0.0",
|
|
129
127
|
"react-dom": "^18.3.1",
|
|
130
|
-
"rimraf": "^6.1.
|
|
131
|
-
"rollup": "^4.53.
|
|
128
|
+
"rimraf": "^6.1.2",
|
|
129
|
+
"rollup": "^4.53.3",
|
|
132
130
|
"rollup-plugin-copy": "^3.5.0",
|
|
133
131
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
134
132
|
"rollup-plugin-postcss": "^4.0.2",
|
|
135
133
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
136
|
-
"sass": "^1.
|
|
134
|
+
"sass": "^1.96.0",
|
|
137
135
|
"sass-loader": "^16.0.6",
|
|
138
|
-
"
|
|
139
|
-
"storybook": "^9.1.12",
|
|
136
|
+
"storybook": "^9.1.16",
|
|
140
137
|
"storybook-css-modules-preset": "^1.1.1",
|
|
141
138
|
"style-loader": "^4.0.0",
|
|
142
139
|
"typescript": "^5.9.3",
|
|
143
|
-
"vite": "^7.2.
|
|
140
|
+
"vite": "^7.2.7",
|
|
144
141
|
"vite-plugin-html": "^3.2.2",
|
|
145
142
|
"vite-tsconfig-paths": "^5.1.4",
|
|
146
143
|
"vitest": "^3.2.4"
|
package/src/components/Grid.tsx
CHANGED
|
@@ -85,6 +85,7 @@ export interface GridProps<TData extends GridBaseRow = GridBaseRow> {
|
|
|
85
85
|
// ─── Editing ──────────────────────────────────────────────────
|
|
86
86
|
onBulkEditingComplete?: () => Promise<void> | void;
|
|
87
87
|
singleClickEdit?: boolean;
|
|
88
|
+
stopEditingWhenCellsLoseFocus?: boolean;
|
|
88
89
|
|
|
89
90
|
// ─── Context Menu ─────────────────────────────────────────────
|
|
90
91
|
contextMenu?: GridContextMenuComponent<TData>;
|
|
@@ -149,6 +150,7 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
|
|
|
149
150
|
|
|
150
151
|
// ─── Editing ──────────────────────────────────
|
|
151
152
|
singleClickEdit = false,
|
|
153
|
+
stopEditingWhenCellsLoseFocus = false,
|
|
152
154
|
|
|
153
155
|
// ─── Context Menu ─────────────────────────────
|
|
154
156
|
contextMenuSelectRow = false,
|
|
@@ -1079,6 +1081,7 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
|
|
|
1079
1081
|
}
|
|
1080
1082
|
: undefined
|
|
1081
1083
|
}
|
|
1084
|
+
stopEditingWhenCellsLoseFocus={stopEditingWhenCellsLoseFocus}
|
|
1082
1085
|
selectionColumnDef={selectionColumnDef}
|
|
1083
1086
|
suppressCellFocus={params.suppressCellFocus}
|
|
1084
1087
|
suppressClickEdit={true}
|
|
@@ -123,17 +123,7 @@ const GridCopyTemplate: StoryFn<typeof Grid<ITestRow>> = (props: GridProps<ITest
|
|
|
123
123
|
const [rowData] = useState<ITestRow[]>(() => {
|
|
124
124
|
const random = new SeededRandomForTests(1000);
|
|
125
125
|
let id = 1000;
|
|
126
|
-
const positions = [
|
|
127
|
-
undefined,
|
|
128
|
-
'Tester',
|
|
129
|
-
'Developer',
|
|
130
|
-
'Lawyer',
|
|
131
|
-
'Barrista """',
|
|
132
|
-
'Manager',
|
|
133
|
-
'CEO',
|
|
134
|
-
'CTO',
|
|
135
|
-
'Architect',
|
|
136
|
-
];
|
|
126
|
+
const positions = [undefined, 'Tester', 'Developer', 'Lawyer', 'Barista """', 'Manager', 'CEO', 'CTO', 'Architect'];
|
|
137
127
|
const result: ITestRow[] = [];
|
|
138
128
|
for (let i = 0; i < 1000; i++) {
|
|
139
129
|
result.push({
|
|
@@ -159,7 +149,6 @@ const GridCopyTemplate: StoryFn<typeof Grid<ITestRow>> = (props: GridProps<ITest
|
|
|
159
149
|
{...props}
|
|
160
150
|
enableRangeSelection={true}
|
|
161
151
|
selectable={true}
|
|
162
|
-
enableClickSelection={true}
|
|
163
152
|
enableSelectionWithoutKeys={true}
|
|
164
153
|
autoSelectFirstRow={true}
|
|
165
154
|
externalSelectedIds={externalSelectedIds}
|