@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/dist/GridTheme.scss +8 -7
- package/dist/index.css +0 -5
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/step-ag-grid.esm.js +4 -1
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/GridCell.tsx +10 -1
- package/src/styles/Grid.scss +0 -5
- package/src/styles/GridTheme.scss +8 -7
package/package.json
CHANGED
|
@@ -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
|
-
{
|
|
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
|
);
|
package/src/styles/Grid.scss
CHANGED
|
@@ -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
|
|
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:
|
|
71
|
-
padding-right:
|
|
71
|
+
padding-left: 11px;
|
|
72
|
+
padding-right: 11px;
|
|
72
73
|
display: flex;
|
|
73
74
|
align-items: center;
|
|
74
75
|
}
|
|
75
76
|
|
|
76
|
-
.ag-cell-
|
|
77
|
-
padding:
|
|
78
|
-
|
|
79
|
-
|
|
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 {
|