@linzjs/step-ag-grid 35.0.1 → 35.0.3

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": "35.0.1",
5
+ "version": "35.0.3",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -209,14 +209,17 @@ export const ControlledMenuFr = (
209
209
  const thisDocument = anchorRef?.current ? anchorRef?.current.ownerDocument : document;
210
210
  thisDocument.addEventListener('keydown', handleKeydownTabAndEnter, true);
211
211
  thisDocument.addEventListener('keyup', handleKeyupTabAndEnter, true);
212
- thisDocument.addEventListener('mousedown', handleScreenEventForSave, true);
212
+ // ag-grid 35 moves cell focus on pointerdown, which closes the editor before mousedown fires
213
+ thisDocument.addEventListener('pointerdown', handleScreenEventForSave, true);
214
+ thisDocument.addEventListener('mousedown', handleScreenEventForCancel, true);
213
215
  thisDocument.addEventListener('mouseup', handleScreenEventForCancel, true);
214
216
  thisDocument.addEventListener('click', handleScreenEventForCancel, true);
215
217
  thisDocument.addEventListener('dblclick', handleScreenEventForCancel, true);
216
218
  return () => {
217
219
  thisDocument.removeEventListener('keydown', handleKeydownTabAndEnter, true);
218
220
  thisDocument.removeEventListener('keyup', handleKeyupTabAndEnter, true);
219
- thisDocument.removeEventListener('mousedown', handleScreenEventForSave, true);
221
+ thisDocument.removeEventListener('pointerdown', handleScreenEventForSave, true);
222
+ thisDocument.removeEventListener('mousedown', handleScreenEventForCancel, true);
220
223
  thisDocument.removeEventListener('mouseup', handleScreenEventForCancel, true);
221
224
  thisDocument.removeEventListener('click', handleScreenEventForCancel, true);
222
225
  thisDocument.removeEventListener('dblclick', handleScreenEventForCancel, true);
@@ -178,6 +178,10 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
178
178
  &.ag-header-group-cell-with-group {
179
179
  background-color: lui.$iceberg;
180
180
  }
181
+
182
+ .ag-header-group-cell-label {
183
+ justify-content: center;
184
+ }
181
185
  }
182
186
 
183
187
  div.ag-cell-wrapper .ag-selection-checkbox {