@linzjs/step-ag-grid 7.6.0 → 7.6.1

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": "7.6.0",
5
+ "version": "7.6.1",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -102,9 +102,18 @@ export interface CellEditorCommon {
102
102
 
103
103
  export const GenericCellEditorComponentWrapper = (custom?: { editor?: (props: any) => JSX.Element }) => {
104
104
  return forwardRef(function GenericCellEditorComponentFr(cellEditorParams: ICellEditorParams, _) {
105
+ const valueFormatted = cellEditorParams.formatValue
106
+ ? cellEditorParams.formatValue(cellEditorParams.value)
107
+ : "Missing formatter";
105
108
  return (
106
109
  <GridPopoverContextProvider props={cellEditorParams}>
107
- {<cellEditorParams.colDef.cellRenderer {...cellEditorParams} {...cellEditorParams.colDef.cellRendererParams} />}
110
+ {
111
+ <cellEditorParams.colDef.cellRenderer
112
+ {...cellEditorParams}
113
+ valueFormatted={valueFormatted}
114
+ {...cellEditorParams.colDef.cellRendererParams}
115
+ />
116
+ }
108
117
  {custom?.editor && <custom.editor {...cellEditorParams} />}
109
118
  </GridPopoverContextProvider>
110
119
  );
@@ -62,9 +62,4 @@
62
62
 
63
63
  .Grid-container.ag-theme-alpine .ag-cell-wrapper {
64
64
  width: 100%;
65
- }
66
-
67
- .Grid-container.ag-theme-alpine .ag-cell-inline-editing {
68
- padding-left: 5px;
69
- padding-right: 2px;
70
65
  }
@@ -24,6 +24,7 @@
24
24
  border-color: lui.$lily,
25
25
  secondary-border-color: lui.$lily,
26
26
  cell-horizontal-border: solid ag-derived(secondary-border-color),
27
+ cell-horizontal-padding: 12,
27
28
  row-hover-color: lui.$lily,
28
29
  font-family: (
29
30
  "Open Sans",
@@ -59,7 +60,7 @@
59
60
 
60
61
  .ag-header-cell {
61
62
  font-weight: 600;
62
- padding: 7px 0 7px 8px;
63
+ padding: 7px 11px;
63
64
 
64
65
  .LuiIcon {
65
66
  fill: lui.$surfie;
@@ -67,16 +68,16 @@
67
68
  }
68
69
 
69
70
  .ag-cell {
70
- padding-left: 7px;
71
- padding-right: 4px;
71
+ padding-left: 11px;
72
+ padding-right: 11px;
72
73
  display: flex;
73
74
  align-items: center;
74
75
  }
75
76
 
76
- .ag-cell-more {
77
- padding: 0;
78
- display: flex;
79
- justify-content: center;
77
+ .ag-cell.ag-cell-inline-editing {
78
+ padding-left: 9px;
79
+ padding-right: 9px;
80
+ bottom: 0;
80
81
  }
81
82
 
82
83
  .ag-cell-wrap-text {