@dexteel/mesf-core 4.25.0 → 4.25.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/index.esm.js +36 -34
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [4.25.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.25.0...@dexteel/mesf-core-v4.25.1) (2025-02-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **ShiftNavigator:** Check every minute if need to reload ([b404f9b](https://github.com/dexteel/mesf-core-frontend/commit/b404f9bc7231d76bcdc3c9edbf79351f3f07a9b9))
|
|
9
|
+
|
|
10
|
+
## [4.25.0] - 2025-02-04
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
# Changelog
|
|
2
15
|
|
|
3
16
|
## [4.25.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.24.1...@dexteel/mesf-core-v4.25.0) (2025-02-04)
|
package/dist/index.esm.js
CHANGED
|
@@ -8164,40 +8164,42 @@ var ShiftDayNavigatorControl = function (props) {
|
|
|
8164
8164
|
}
|
|
8165
8165
|
}
|
|
8166
8166
|
useEffect(function () {
|
|
8167
|
-
|
|
8168
|
-
var
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
}
|
|
8167
|
+
var fn = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
8168
|
+
var resp, shift, e_1;
|
|
8169
|
+
return __generator(this, function (_a) {
|
|
8170
|
+
switch (_a.label) {
|
|
8171
|
+
case 0:
|
|
8172
|
+
if (!((shiftInfo === null || shiftInfo === void 0 ? void 0 : shiftInfo.CurrentEnd) && shiftInfo.CurrentEnd < new Date())) return [3 /*break*/, 4];
|
|
8173
|
+
_a.label = 1;
|
|
8174
|
+
case 1:
|
|
8175
|
+
_a.trys.push([1, 3, , 4]);
|
|
8176
|
+
return [4 /*yield*/, getShiftByParameters({
|
|
8177
|
+
productionDate: null,
|
|
8178
|
+
shiftId: shiftInfo.CurrentShiftId
|
|
8179
|
+
})];
|
|
8180
|
+
case 2:
|
|
8181
|
+
resp = _a.sent();
|
|
8182
|
+
if (resp.ok) {
|
|
8183
|
+
shift = __assign(__assign({}, resp.data), { CurrentProductionDate: moment$2
|
|
8184
|
+
.utc(resp.data.CurrentProductionDate)
|
|
8185
|
+
.toDate(), CurrentStart: moment$2.utc(resp.data.CurrentStart).toDate(), CurrentEnd: moment$2.utc(resp.data.CurrentEnd).toDate(), PreviousProductionDate: moment$2
|
|
8186
|
+
.utc(resp.data.PreviousProductionDate)
|
|
8187
|
+
.toDate(), PreviousStart: moment$2.utc(resp.data.PreviousStart).toDate(), PreviousEnd: moment$2.utc(resp.data.PreviousEnd).toDate(), LastProductionDate: moment$2
|
|
8188
|
+
.utc(resp.data.LastProductionDate)
|
|
8189
|
+
.toDate(), LastStart: moment$2.utc(resp.data.LastStart).toDate(), LastEnd: moment$2.utc(resp.data.LastEnd).toDate() });
|
|
8190
|
+
setShiftInfoCopy(shift);
|
|
8191
|
+
}
|
|
8192
|
+
return [3 /*break*/, 4];
|
|
8193
|
+
case 3:
|
|
8194
|
+
e_1 = _a.sent();
|
|
8195
|
+
setError(getError(e_1));
|
|
8196
|
+
return [3 /*break*/, 4];
|
|
8197
|
+
case 4: return [2 /*return*/];
|
|
8198
|
+
}
|
|
8199
|
+
});
|
|
8200
|
+
}); };
|
|
8201
|
+
var interval = setInterval(fn, 1000 * 60);
|
|
8202
|
+
return function () { return clearInterval(interval); };
|
|
8201
8203
|
}, [shiftInfo]);
|
|
8202
8204
|
useEffect(function () {
|
|
8203
8205
|
setShiftInfoCopy(shiftInfo);
|