@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/index.js
CHANGED
|
@@ -2830,7 +2830,12 @@ var Grid = function (params) {
|
|
|
2830
2830
|
if (!editAction)
|
|
2831
2831
|
return false;
|
|
2832
2832
|
var editable = fnOrVar((_c = e.colDef) === null || _c === void 0 ? void 0 : _c.editable, e);
|
|
2833
|
-
|
|
2833
|
+
if (editable) {
|
|
2834
|
+
if (!e.node.isSelected()) {
|
|
2835
|
+
e.node.setSelected(true, true);
|
|
2836
|
+
}
|
|
2837
|
+
editAction(__spreadArray([e.data], e.api.getSelectedRows().filter(function (row) { return row.id !== e.data.id; }), true));
|
|
2838
|
+
}
|
|
2834
2839
|
return true;
|
|
2835
2840
|
};
|
|
2836
2841
|
var onCellKeyPress = React.useCallback(function (e) {
|
|
@@ -3937,9 +3942,9 @@ var bearingCorrectionValueFormatter = function (params) {
|
|
|
3937
3942
|
return "–";
|
|
3938
3943
|
}
|
|
3939
3944
|
if (typeof value === "string") {
|
|
3940
|
-
return convertDDToDMS(bearingNumberParser(value), true,
|
|
3945
|
+
return convertDDToDMS(bearingNumberParser(value), true, true);
|
|
3941
3946
|
}
|
|
3942
|
-
return convertDDToDMS(value, true,
|
|
3947
|
+
return convertDDToDMS(value, true, true);
|
|
3943
3948
|
};
|
|
3944
3949
|
var bearingNumberParser = function (value) {
|
|
3945
3950
|
if (value === "")
|