@dexteel/mesf-core 6.0.3 → 6.0.4
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/index.esm.js +13 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [6.0.4](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v6.0.3...@dexteel/mesf-core-v6.0.4) (2025-10-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **logbook-entry:** Add else in onHide | Preset asset only for new entries ([fa7433c](https://github.com/dexteel/mesf-core-frontend/commit/fa7433c5daa1b4b3d8ab2a490a0610b0ede1a4f7))
|
|
9
|
+
* **logbook-entry:** Add else in onHide | Preset asset only for new entries ([9386c8f](https://github.com/dexteel/mesf-core-frontend/commit/9386c8fbce56d6e0e66becf04dc47bb58d7cf7ba))
|
|
10
|
+
|
|
11
|
+
## [6.0.3] - 2025-10-02
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
1
15
|
# Changelog
|
|
2
16
|
|
|
3
17
|
## [6.0.3](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v6.0.2...@dexteel/mesf-core-v6.0.3) (2025-10-02)
|
package/dist/index.esm.js
CHANGED
|
@@ -16303,10 +16303,12 @@ var EntryViewer$1 = function (_a) {
|
|
|
16303
16303
|
}, [entry, shiftInfo, entryId, reset, defaultAssetId]);
|
|
16304
16304
|
useEffect(function () {
|
|
16305
16305
|
var _a;
|
|
16306
|
-
|
|
16306
|
+
if (isNewEntry) {
|
|
16307
|
+
setValue("AssetId", (_a = preselectedAssetId !== null && preselectedAssetId !== void 0 ? preselectedAssetId : defaultAssetId) !== null && _a !== void 0 ? _a : null);
|
|
16308
|
+
}
|
|
16307
16309
|
}, [preselectedAssetId, defaultAssetId]);
|
|
16308
16310
|
return (React__default.createElement(React__default.Fragment, null,
|
|
16309
|
-
|
|
16311
|
+
isNewEntry || (entry === null || entry === void 0 ? void 0 : entry.EntryId) ? (React__default.createElement(HelmetDexteel, { title: "".concat(isNewEntry ? "New Entry" : "'".concat(entry === null || entry === void 0 ? void 0 : entry.Title, "' by ").concat(entry === null || entry === void 0 ? void 0 : entry.Author), " - Logbook Entry") })) : null,
|
|
16310
16312
|
isNewEntry || (entry === null || entry === void 0 ? void 0 : entry.EntryId) ? (React__default.createElement(Paper, { elevation: 1, className: classes.paper },
|
|
16311
16313
|
React__default.createElement("form", { onSubmit: handleSubmit(onSubmit), style: {
|
|
16312
16314
|
height: "100%",
|
|
@@ -16790,18 +16792,23 @@ var Logbook$1 = function () {
|
|
|
16790
16792
|
// If still not found, try one more refetch
|
|
16791
16793
|
setTimeout(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
16792
16794
|
var retryRowNode;
|
|
16793
|
-
var _a, _b;
|
|
16794
|
-
return __generator(this, function (
|
|
16795
|
-
switch (
|
|
16795
|
+
var _a, _b, _c;
|
|
16796
|
+
return __generator(this, function (_d) {
|
|
16797
|
+
switch (_d.label) {
|
|
16796
16798
|
case 0: return [4 /*yield*/, refetch()];
|
|
16797
16799
|
case 1:
|
|
16798
|
-
|
|
16800
|
+
_d.sent();
|
|
16799
16801
|
retryRowNode = (_a = gridApiRef.current) === null || _a === void 0 ? void 0 : _a.getRowNode(entryId.toString());
|
|
16800
16802
|
if (retryRowNode) {
|
|
16801
16803
|
(_b = gridApiRef.current) === null || _b === void 0 ? void 0 : _b.ensureNodeVisible(retryRowNode);
|
|
16802
16804
|
retryRowNode.setSelected(true);
|
|
16803
16805
|
setSelectedRowData(retryRowNode.data);
|
|
16804
16806
|
}
|
|
16807
|
+
else {
|
|
16808
|
+
setShow("");
|
|
16809
|
+
setSelectedRowData(null);
|
|
16810
|
+
(_c = gridApiRef.current) === null || _c === void 0 ? void 0 : _c.deselectAll();
|
|
16811
|
+
}
|
|
16805
16812
|
return [2 /*return*/];
|
|
16806
16813
|
}
|
|
16807
16814
|
});
|