@linzjs/step-ag-grid 7.10.0 → 7.10.2
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/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/step-ag-grid.esm.js +8 -3
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Grid.tsx +6 -1
- package/src/stories/grid/GridPopoutBearing.stories.tsx +1 -0
- package/src/stories/grid/GridReadOnly.stories.tsx +4 -4
- package/src/utils/bearing.ts +2 -2
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -2809,7 +2809,12 @@ var Grid = function (params) {
|
|
|
2809
2809
|
if (!editAction)
|
|
2810
2810
|
return false;
|
|
2811
2811
|
var editable = fnOrVar((_c = e.colDef) === null || _c === void 0 ? void 0 : _c.editable, e);
|
|
2812
|
-
|
|
2812
|
+
if (editable) {
|
|
2813
|
+
if (!e.node.isSelected()) {
|
|
2814
|
+
e.node.setSelected(true, true);
|
|
2815
|
+
}
|
|
2816
|
+
editAction(__spreadArray([e.data], e.api.getSelectedRows().filter(function (row) { return row.id !== e.data.id; }), true));
|
|
2817
|
+
}
|
|
2813
2818
|
return true;
|
|
2814
2819
|
};
|
|
2815
2820
|
var onCellKeyPress = useCallback(function (e) {
|
|
@@ -3916,9 +3921,9 @@ var bearingCorrectionValueFormatter = function (params) {
|
|
|
3916
3921
|
return "–";
|
|
3917
3922
|
}
|
|
3918
3923
|
if (typeof value === "string") {
|
|
3919
|
-
return convertDDToDMS(bearingNumberParser(value), true,
|
|
3924
|
+
return convertDDToDMS(bearingNumberParser(value), true, true);
|
|
3920
3925
|
}
|
|
3921
|
-
return convertDDToDMS(value, true,
|
|
3926
|
+
return convertDDToDMS(value, true, true);
|
|
3922
3927
|
};
|
|
3923
3928
|
var bearingNumberParser = function (value) {
|
|
3924
3929
|
if (value === "")
|