@dexteel/mesf-core 6.0.3 → 6.0.5

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "6.0.3"
2
+ ".": "6.0.5"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # Changelog
2
+
3
+ ## [6.0.5](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v6.0.4...@dexteel/mesf-core-v6.0.5) (2025-10-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **index:** Export searchAssets & AssetTreePicker ([ae6327a](https://github.com/dexteel/mesf-core-frontend/commit/ae6327a6a82bd7241e188cf64dc6eeb04b2402b5))
9
+ * **index:** Export searchAssets & AssetTreePicker ([c85c391](https://github.com/dexteel/mesf-core-frontend/commit/c85c39162354078d2512cf7f688f2643fc282cd6))
10
+
11
+ ## [6.0.4] - 2025-10-02
12
+
13
+
14
+
15
+ # Changelog
16
+
17
+ ## [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)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **logbook-entry:** Add else in onHide | Preset asset only for new entries ([fa7433c](https://github.com/dexteel/mesf-core-frontend/commit/fa7433c5daa1b4b3d8ab2a490a0610b0ede1a4f7))
23
+ * **logbook-entry:** Add else in onHide | Preset asset only for new entries ([9386c8f](https://github.com/dexteel/mesf-core-frontend/commit/9386c8fbce56d6e0e66becf04dc47bb58d7cf7ba))
24
+
25
+ ## [6.0.3] - 2025-10-02
26
+
27
+
28
+
1
29
  # Changelog
2
30
 
3
31
  ## [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.d.ts CHANGED
@@ -6,6 +6,8 @@ export * from "./components/modals/modal.mesf";
6
6
  export * from "./components/navigation/TimeAndUserMenu";
7
7
  export * from "./components/shared/buttons/button-with-loading";
8
8
  export * from "./configuration";
9
+ export { searchAssets } from "./configuration/pages/asset/components/TreeAsset";
10
+ export { AssetTreePicker } from "./controls/asset-tree-picker/AssetTreePicker";
9
11
  export * from "./configuration/pages/users/models/User";
10
12
  export * from "./configuration/pages/users/repositories/UsersRepository";
11
13
  export * from "./context/assetContext";
@@ -13,17 +15,17 @@ export * from "./context/axiosInstance";
13
15
  export * from "./context/LogbookSettingsContext";
14
16
  export * from "./context/userContext";
15
17
  export * from "./context/UTLSettingContext";
16
- export * from "./reducers/LogbookSettingsReducer";
17
18
  export * from "./controls";
18
19
  export * from "./css/themeMESF";
19
20
  export { HelmetDexteel } from "./helmet/HelmetDexteel";
20
21
  export * from "./hooks/useMesfRealtime";
21
22
  export * from "./MESFMain";
23
+ export { logbookNavbar, logbookRoutesMESF } from "./pages/logbook";
22
24
  export { MESFLogbookEntry } from "./pages/logbook/entry/index";
23
25
  export { routeLogbookEntry } from "./pages/logbook/entry/LogbookPage";
24
26
  export { MESFLogbookReport } from "./pages/logbook/report/index";
25
27
  export { routeLogbookReport } from "./pages/logbook/report/LogbookPage";
26
- export { logbookRoutesMESF, logbookNavbar } from "./pages/logbook";
27
28
  export * from "./pages/trendings/TrendingsPage";
29
+ export * from "./reducers/LogbookSettingsReducer";
28
30
  export * from "./services";
29
31
  export * from "./utils";
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
- setValue("AssetId", (_a = preselectedAssetId !== null && preselectedAssetId !== void 0 ? preselectedAssetId : defaultAssetId) !== null && _a !== void 0 ? _a : null);
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
- (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") })),
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 (_c) {
16795
- switch (_c.label) {
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
- _c.sent();
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
  });
@@ -17631,5 +17638,5 @@ var areaSelector = /*#__PURE__*/Object.freeze({
17631
17638
  AreaSelector: AreaSelector
17632
17639
  });
17633
17640
 
17634
- export { Account, AssetProvider, AuthContext, AuthProvider, BarChartControl, ButtonWithLoading, ChangePassword, CheckBoxControl, Configuration$1 as Configuration, ContextMenu$1 as ContextMenu, ContextMenuMESFProvider, CurrencyFormatter, DataGridControl, DateFormatter, DateTimeFormatter, ErrorModal, FetchError, FilterPanel, GenericPanel, GenericTable, GetCrewColor, GetShiftColor, HelmetDexteel, IntegerFormatter, LogbookSettingsInitialState, LogbookSettingsProvider, Login, Logout, LongFilterPanel, MESApiService, MESFLogbookEntry, MESFLogbookReport, MESFMain, MESSAGE_API, MESSAGE_ERRORS, MasterDetailPanel, MesfModal, ModalTreeFilterControl, MultipleSelectorControl, NumberFormatter, ShiftDayNavigatorControl, ShiftNavigatorProvider, ShiftPeriodNavigatorControl, SimplePasswordControl, SimpleSelectorControl, TimeAndUserMenu, TimeFormatter, TimeService, TreePickerControl, TreePickerControlV2, TrendingsPage, USER_LABELS, UTLSettingsProvider, UserProvider, axiosInstance, deleteUser, dxtServerTimeZone, dxtToLocalServerTime, dxtToUTC, formatNumber, getAuthTypes, getCrewStyle, getDataUser, getError, getMomentTz, getShiftByParameters, getShiftStyle, getShiftsRangeByParameters, getTokenFromLS, getUserPermissionsFromAPI, getUsers, logbookNavbar, logbookRoutesMESF, renewToken, routeLogbookEntry, routeLogbookReport, searchSeries, searchTagsTree, searchViewTags, searchViews, setPassword, setProfilesToUser, themeDXT, themeMESF, upsertUser, useAssetContext, useContextMenuMESF, useHasPermission, useHasProfile, useLogbookSettings, useMesfRealtime, useShiftNavigator, useShiftNavigatorManager, useStyles$i as useStyles, useToken, useUTLSettingsContext, useUserContext };
17641
+ export { Account, AssetProvider, AssetTreePicker, AuthContext, AuthProvider, BarChartControl, ButtonWithLoading, ChangePassword, CheckBoxControl, Configuration$1 as Configuration, ContextMenu$1 as ContextMenu, ContextMenuMESFProvider, CurrencyFormatter, DataGridControl, DateFormatter, DateTimeFormatter, ErrorModal, FetchError, FilterPanel, GenericPanel, GenericTable, GetCrewColor, GetShiftColor, HelmetDexteel, IntegerFormatter, LogbookSettingsInitialState, LogbookSettingsProvider, Login, Logout, LongFilterPanel, MESApiService, MESFLogbookEntry, MESFLogbookReport, MESFMain, MESSAGE_API, MESSAGE_ERRORS, MasterDetailPanel, MesfModal, ModalTreeFilterControl, MultipleSelectorControl, NumberFormatter, ShiftDayNavigatorControl, ShiftNavigatorProvider, ShiftPeriodNavigatorControl, SimplePasswordControl, SimpleSelectorControl, TimeAndUserMenu, TimeFormatter, TimeService, TreePickerControl, TreePickerControlV2, TrendingsPage, USER_LABELS, UTLSettingsProvider, UserProvider, axiosInstance, deleteUser, dxtServerTimeZone, dxtToLocalServerTime, dxtToUTC, formatNumber, getAuthTypes, getCrewStyle, getDataUser, getError, getMomentTz, getShiftByParameters, getShiftStyle, getShiftsRangeByParameters, getTokenFromLS, getUserPermissionsFromAPI, getUsers, logbookNavbar, logbookRoutesMESF, renewToken, routeLogbookEntry, routeLogbookReport, searchAssets, searchSeries, searchTagsTree, searchViewTags, searchViews, setPassword, setProfilesToUser, themeDXT, themeMESF, upsertUser, useAssetContext, useContextMenuMESF, useHasPermission, useHasProfile, useLogbookSettings, useMesfRealtime, useShiftNavigator, useShiftNavigatorManager, useStyles$i as useStyles, useToken, useUTLSettingsContext, useUserContext };
17635
17642
  //# sourceMappingURL=index.esm.js.map