@optifye/dashboard-core 6.11.41 → 6.11.43
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 +2 -8
- package/dist/index.mjs +2 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -80876,12 +80876,6 @@ var PlantHeadView = () => {
|
|
|
80876
80876
|
}];
|
|
80877
80877
|
});
|
|
80878
80878
|
}, [appTimezone, scopedLineIds, shiftConfigMap, shiftResolutionNow, staticShiftConfig]);
|
|
80879
|
-
const uniformActiveTrendMode = React143__namespace.default.useMemo(() => {
|
|
80880
|
-
const activeModes = Array.from(new Set(
|
|
80881
|
-
activeLineShiftStates.filter((shift) => shift.date === resolvedOperationalToday).map((shift) => shift.exactTrendMode).filter((mode) => !!mode)
|
|
80882
|
-
));
|
|
80883
|
-
return activeModes.length === 1 ? activeModes[0] : null;
|
|
80884
|
-
}, [activeLineShiftStates, resolvedOperationalToday]);
|
|
80885
80879
|
const resolvedTrendMode = isInitialScopeReady ? trendMode : "all";
|
|
80886
80880
|
const hourlyWindowStartTime = React143__namespace.default.useMemo(() => {
|
|
80887
80881
|
if (scopedLineIds.length === 0) {
|
|
@@ -80978,11 +80972,11 @@ var PlantHeadView = () => {
|
|
|
80978
80972
|
endKey: nextStartKey
|
|
80979
80973
|
};
|
|
80980
80974
|
});
|
|
80981
|
-
setTrendMode(
|
|
80975
|
+
setTrendMode("all");
|
|
80982
80976
|
setUsesThisWeekComparison(false);
|
|
80983
80977
|
hasAutoInitializedScopeRef.current = true;
|
|
80984
80978
|
setIsInitialScopeReady(true);
|
|
80985
|
-
}, [fallbackOperationalDate, isShiftScopeResolved, resolvedOperationalToday, scopedLineIds.length
|
|
80979
|
+
}, [fallbackOperationalDate, isShiftScopeResolved, resolvedOperationalToday, scopedLineIds.length]);
|
|
80986
80980
|
const handleDateRangeChange = React143__namespace.default.useCallback((range, meta) => {
|
|
80987
80981
|
hasUserAdjustedScopeRef.current = true;
|
|
80988
80982
|
setIsInitialScopeReady(true);
|
package/dist/index.mjs
CHANGED
|
@@ -80847,12 +80847,6 @@ var PlantHeadView = () => {
|
|
|
80847
80847
|
}];
|
|
80848
80848
|
});
|
|
80849
80849
|
}, [appTimezone, scopedLineIds, shiftConfigMap, shiftResolutionNow, staticShiftConfig]);
|
|
80850
|
-
const uniformActiveTrendMode = React143__default.useMemo(() => {
|
|
80851
|
-
const activeModes = Array.from(new Set(
|
|
80852
|
-
activeLineShiftStates.filter((shift) => shift.date === resolvedOperationalToday).map((shift) => shift.exactTrendMode).filter((mode) => !!mode)
|
|
80853
|
-
));
|
|
80854
|
-
return activeModes.length === 1 ? activeModes[0] : null;
|
|
80855
|
-
}, [activeLineShiftStates, resolvedOperationalToday]);
|
|
80856
80850
|
const resolvedTrendMode = isInitialScopeReady ? trendMode : "all";
|
|
80857
80851
|
const hourlyWindowStartTime = React143__default.useMemo(() => {
|
|
80858
80852
|
if (scopedLineIds.length === 0) {
|
|
@@ -80949,11 +80943,11 @@ var PlantHeadView = () => {
|
|
|
80949
80943
|
endKey: nextStartKey
|
|
80950
80944
|
};
|
|
80951
80945
|
});
|
|
80952
|
-
setTrendMode(
|
|
80946
|
+
setTrendMode("all");
|
|
80953
80947
|
setUsesThisWeekComparison(false);
|
|
80954
80948
|
hasAutoInitializedScopeRef.current = true;
|
|
80955
80949
|
setIsInitialScopeReady(true);
|
|
80956
|
-
}, [fallbackOperationalDate, isShiftScopeResolved, resolvedOperationalToday, scopedLineIds.length
|
|
80950
|
+
}, [fallbackOperationalDate, isShiftScopeResolved, resolvedOperationalToday, scopedLineIds.length]);
|
|
80957
80951
|
const handleDateRangeChange = React143__default.useCallback((range, meta) => {
|
|
80958
80952
|
hasUserAdjustedScopeRef.current = true;
|
|
80959
80953
|
setIsInitialScopeReady(true);
|