@seedtactics/insight-client 16.4.0
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/README.md +37 -0
- package/dist/cell-status/buffers.d.ts +36 -0
- package/dist/cell-status/buffers.js +127 -0
- package/dist/cell-status/current-status.d.ts +30 -0
- package/dist/cell-status/current-status.js +200 -0
- package/dist/cell-status/estimated-cycle-times.d.ts +41 -0
- package/dist/cell-status/estimated-cycle-times.js +257 -0
- package/dist/cell-status/inspections.d.ts +55 -0
- package/dist/cell-status/inspections.js +213 -0
- package/dist/cell-status/loading.d.ts +26 -0
- package/dist/cell-status/loading.js +112 -0
- package/dist/cell-status/material-details.d.ts +116 -0
- package/dist/cell-status/material-details.js +422 -0
- package/dist/cell-status/material-summary.d.ts +52 -0
- package/dist/cell-status/material-summary.js +312 -0
- package/dist/cell-status/names.d.ts +19 -0
- package/dist/cell-status/names.js +134 -0
- package/dist/cell-status/pallet-cycles.d.ts +24 -0
- package/dist/cell-status/pallet-cycles.js +78 -0
- package/dist/cell-status/rebookings.d.ts +30 -0
- package/dist/cell-status/rebookings.js +139 -0
- package/dist/cell-status/scheduled-jobs.d.ts +18 -0
- package/dist/cell-status/scheduled-jobs.js +94 -0
- package/dist/cell-status/sim-day-usage.d.ts +14 -0
- package/dist/cell-status/sim-day-usage.js +54 -0
- package/dist/cell-status/sim-production.d.ts +22 -0
- package/dist/cell-status/sim-production.js +91 -0
- package/dist/cell-status/sim-station-use.d.ts +25 -0
- package/dist/cell-status/sim-station-use.js +71 -0
- package/dist/cell-status/station-cycles.d.ts +34 -0
- package/dist/cell-status/station-cycles.js +145 -0
- package/dist/cell-status/tool-replacements.d.ts +44 -0
- package/dist/cell-status/tool-replacements.js +155 -0
- package/dist/cell-status/tool-usage.d.ts +25 -0
- package/dist/cell-status/tool-usage.js +95 -0
- package/dist/components/App.d.ts +15 -0
- package/dist/components/App.js +549 -0
- package/dist/components/AxisAndGrid.d.ts +51 -0
- package/dist/components/AxisAndGrid.js +47 -0
- package/dist/components/BarcodeScanning.d.ts +6 -0
- package/dist/components/BarcodeScanning.js +150 -0
- package/dist/components/ChartTooltip.d.ts +28 -0
- package/dist/components/ChartTooltip.js +95 -0
- package/dist/components/ChooseMode.d.ts +18 -0
- package/dist/components/ChooseMode.js +136 -0
- package/dist/components/ChooseOperator.d.ts +1 -0
- package/dist/components/ChooseOperator.js +93 -0
- package/dist/components/ErrorsAndLoading.d.ts +9 -0
- package/dist/components/ErrorsAndLoading.js +55 -0
- package/dist/components/LoadingIcon.d.ts +1 -0
- package/dist/components/LoadingIcon.js +48 -0
- package/dist/components/LogEntry.d.ts +16 -0
- package/dist/components/LogEntry.js +365 -0
- package/dist/components/ManualSerialEntry.d.ts +5 -0
- package/dist/components/ManualSerialEntry.js +91 -0
- package/dist/components/MonthSelect.d.ts +6 -0
- package/dist/components/MonthSelect.js +67 -0
- package/dist/components/Navigation.d.ts +23 -0
- package/dist/components/Navigation.js +120 -0
- package/dist/components/VerboseLogging.d.ts +1 -0
- package/dist/components/VerboseLogging.js +47 -0
- package/dist/components/analysis/AnalysisSelectToolbar.d.ts +1 -0
- package/dist/components/analysis/AnalysisSelectToolbar.js +55 -0
- package/dist/components/analysis/BufferChart.d.ts +1 -0
- package/dist/components/analysis/BufferChart.js +139 -0
- package/dist/components/analysis/CostPerPiece.d.ts +2 -0
- package/dist/components/analysis/CostPerPiece.js +175 -0
- package/dist/components/analysis/CycleChart.d.ts +42 -0
- package/dist/components/analysis/CycleChart.js +281 -0
- package/dist/components/analysis/DataTable.d.ts +83 -0
- package/dist/components/analysis/DataTable.js +215 -0
- package/dist/components/analysis/EfficiencyPage.d.ts +2 -0
- package/dist/components/analysis/EfficiencyPage.js +138 -0
- package/dist/components/analysis/HeatChart.d.ts +22 -0
- package/dist/components/analysis/HeatChart.js +161 -0
- package/dist/components/analysis/InspectionDataTable.d.ts +10 -0
- package/dist/components/analysis/InspectionDataTable.js +148 -0
- package/dist/components/analysis/InspectionSankey.d.ts +12 -0
- package/dist/components/analysis/InspectionSankey.js +140 -0
- package/dist/components/analysis/PalletCycleCards.d.ts +1 -0
- package/dist/components/analysis/PalletCycleCards.js +137 -0
- package/dist/components/analysis/PartCycleCards.d.ts +2 -0
- package/dist/components/analysis/PartCycleCards.js +331 -0
- package/dist/components/analysis/QualityPage.d.ts +1 -0
- package/dist/components/analysis/QualityPage.js +49 -0
- package/dist/components/analysis/ScheduleHistory.d.ts +3 -0
- package/dist/components/analysis/ScheduleHistory.js +108 -0
- package/dist/components/analysis/StationDataTable.d.ts +25 -0
- package/dist/components/analysis/StationDataTable.js +246 -0
- package/dist/components/analysis/ToolReplacements.d.ts +1 -0
- package/dist/components/analysis/ToolReplacements.js +370 -0
- package/dist/components/operations/AllMaterial.d.ts +5 -0
- package/dist/components/operations/AllMaterial.js +267 -0
- package/dist/components/operations/ChartRangeEdit.d.ts +4 -0
- package/dist/components/operations/ChartRangeEdit.js +148 -0
- package/dist/components/operations/CloseoutReport.d.ts +2 -0
- package/dist/components/operations/CloseoutReport.js +172 -0
- package/dist/components/operations/CompletedParts.d.ts +2 -0
- package/dist/components/operations/CompletedParts.js +286 -0
- package/dist/components/operations/CurrentWorkorders.d.ts +3 -0
- package/dist/components/operations/CurrentWorkorders.js +368 -0
- package/dist/components/operations/Dashboard.d.ts +2 -0
- package/dist/components/operations/Dashboard.js +90 -0
- package/dist/components/operations/OEEChart.d.ts +10 -0
- package/dist/components/operations/OEEChart.js +173 -0
- package/dist/components/operations/Outliers.d.ts +4 -0
- package/dist/components/operations/Outliers.js +69 -0
- package/dist/components/operations/ProgramHighlight.d.ts +1 -0
- package/dist/components/operations/ProgramHighlight.js +9 -0
- package/dist/components/operations/Programs.d.ts +5 -0
- package/dist/components/operations/Programs.js +363 -0
- package/dist/components/operations/Rebookings.d.ts +1 -0
- package/dist/components/operations/Rebookings.js +213 -0
- package/dist/components/operations/RecentCycleChart.d.ts +4 -0
- package/dist/components/operations/RecentCycleChart.js +240 -0
- package/dist/components/operations/RecentProduction.d.ts +2 -0
- package/dist/components/operations/RecentProduction.js +213 -0
- package/dist/components/operations/RecentSchedules.d.ts +12 -0
- package/dist/components/operations/RecentSchedules.js +180 -0
- package/dist/components/operations/RecentStationCycles.d.ts +4 -0
- package/dist/components/operations/RecentStationCycles.js +159 -0
- package/dist/components/operations/ShiftSettings.d.ts +6 -0
- package/dist/components/operations/ShiftSettings.js +134 -0
- package/dist/components/operations/SimDayUsage.d.ts +1 -0
- package/dist/components/operations/SimDayUsage.js +133 -0
- package/dist/components/operations/ToolReport.d.ts +3 -0
- package/dist/components/operations/ToolReport.js +233 -0
- package/dist/components/operations/WorkorderGantt.d.ts +1 -0
- package/dist/components/operations/WorkorderGantt.js +124 -0
- package/dist/components/quality/QualityMaterial.d.ts +2 -0
- package/dist/components/quality/QualityMaterial.js +169 -0
- package/dist/components/quality/QualityPaths.d.ts +1 -0
- package/dist/components/quality/QualityPaths.js +53 -0
- package/dist/components/quality/RecentFailedInspections.d.ts +1 -0
- package/dist/components/quality/RecentFailedInspections.js +123 -0
- package/dist/components/routes.d.ts +170 -0
- package/dist/components/routes.js +301 -0
- package/dist/components/station-monitor/BulkRawMaterial.d.ts +11 -0
- package/dist/components/station-monitor/BulkRawMaterial.js +251 -0
- package/dist/components/station-monitor/Closeout.d.ts +5 -0
- package/dist/components/station-monitor/Closeout.js +162 -0
- package/dist/components/station-monitor/CustomStationMonitorDialog.d.ts +1 -0
- package/dist/components/station-monitor/CustomStationMonitorDialog.js +55 -0
- package/dist/components/station-monitor/Inspection.d.ts +8 -0
- package/dist/components/station-monitor/Inspection.js +164 -0
- package/dist/components/station-monitor/InvalidateCycle.d.ts +33 -0
- package/dist/components/station-monitor/InvalidateCycle.js +262 -0
- package/dist/components/station-monitor/JobDetails.d.ts +7 -0
- package/dist/components/station-monitor/JobDetails.js +108 -0
- package/dist/components/station-monitor/LoadStation.d.ts +10 -0
- package/dist/components/station-monitor/LoadStation.js +450 -0
- package/dist/components/station-monitor/Material.d.ts +77 -0
- package/dist/components/station-monitor/Material.js +489 -0
- package/dist/components/station-monitor/MoveMaterialArrows.d.ts +11 -0
- package/dist/components/station-monitor/MoveMaterialArrows.js +118 -0
- package/dist/components/station-monitor/PrintedLabel.d.ts +29 -0
- package/dist/components/station-monitor/PrintedLabel.js +166 -0
- package/dist/components/station-monitor/QuarantineButton.d.ts +4 -0
- package/dist/components/station-monitor/QuarantineButton.js +184 -0
- package/dist/components/station-monitor/Queues.d.ts +23 -0
- package/dist/components/station-monitor/Queues.js +312 -0
- package/dist/components/station-monitor/QueuesAddMaterial.d.ts +30 -0
- package/dist/components/station-monitor/QueuesAddMaterial.js +248 -0
- package/dist/components/station-monitor/SelectInspType.d.ts +2 -0
- package/dist/components/station-monitor/SelectInspType.js +99 -0
- package/dist/components/station-monitor/SelectWorkorder.d.ts +4 -0
- package/dist/components/station-monitor/SelectWorkorder.js +100 -0
- package/dist/components/station-monitor/StationToolbar.d.ts +3 -0
- package/dist/components/station-monitor/StationToolbar.js +168 -0
- package/dist/components/station-monitor/SystemOverview.d.ts +46 -0
- package/dist/components/station-monitor/SystemOverview.js +439 -0
- package/dist/components/station-monitor/Whiteboard.d.ts +10 -0
- package/dist/components/station-monitor/Whiteboard.js +67 -0
- package/dist/data/all-material-bins.d.ts +45 -0
- package/dist/data/all-material-bins.js +224 -0
- package/dist/data/chart-times.d.ts +20 -0
- package/dist/data/chart-times.js +99 -0
- package/dist/data/cost-per-piece.d.ts +32 -0
- package/dist/data/cost-per-piece.js +183 -0
- package/dist/data/current-cycles.d.ts +13 -0
- package/dist/data/current-cycles.js +144 -0
- package/dist/data/inspection-sankey.d.ts +15 -0
- package/dist/data/inspection-sankey.js +147 -0
- package/dist/data/move-arrows.d.ts +48 -0
- package/dist/data/move-arrows.js +217 -0
- package/dist/data/operators.d.ts +2 -0
- package/dist/data/operators.js +44 -0
- package/dist/data/part-summary.d.ts +17 -0
- package/dist/data/part-summary.js +107 -0
- package/dist/data/path-lookup.d.ts +13 -0
- package/dist/data/path-lookup.js +107 -0
- package/dist/data/queue-material.d.ts +46 -0
- package/dist/data/queue-material.js +256 -0
- package/dist/data/results.bufferchart.d.ts +10 -0
- package/dist/data/results.bufferchart.js +90 -0
- package/dist/data/results.completed-parts.d.ts +26 -0
- package/dist/data/results.completed-parts.js +181 -0
- package/dist/data/results.cycles.d.ts +86 -0
- package/dist/data/results.cycles.js +454 -0
- package/dist/data/results.inspection.d.ts +36 -0
- package/dist/data/results.inspection.js +188 -0
- package/dist/data/results.oee.d.ts +40 -0
- package/dist/data/results.oee.js +330 -0
- package/dist/data/results.schedules.d.ts +23 -0
- package/dist/data/results.schedules.js +157 -0
- package/dist/data/tools-programs.d.ts +78 -0
- package/dist/data/tools-programs.js +376 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +60 -0
- package/dist/network/api.d.ts +1390 -0
- package/dist/network/api.js +4971 -0
- package/dist/network/backend-mock.d.ts +11 -0
- package/dist/network/backend-mock.js +512 -0
- package/dist/network/backend.d.ts +57 -0
- package/dist/network/backend.js +77 -0
- package/dist/network/load-specific-month.d.ts +13 -0
- package/dist/network/load-specific-month.js +77 -0
- package/dist/network/server-settings.d.ts +12 -0
- package/dist/network/server-settings.js +92 -0
- package/dist/network/websocket.d.ts +4 -0
- package/dist/network/websocket.js +165 -0
- package/dist/renderer.d.ts +8 -0
- package/dist/renderer.js +55 -0
- package/dist/seedtactics-logo.d.ts +2 -0
- package/dist/seedtactics-logo.js +4 -0
- package/dist/util/chart-colors.d.ts +1 -0
- package/dist/util/chart-colors.js +116 -0
- package/dist/util/chart-helpers.d.ts +3 -0
- package/dist/util/chart-helpers.js +51 -0
- package/dist/util/parseISODuration.d.ts +4 -0
- package/dist/util/parseISODuration.js +40 -0
- package/docs/client-efficiency.md +355 -0
- package/docs/client-engineering.md +54 -0
- package/docs/client-launch.md +55 -0
- package/docs/client-operations.md +88 -0
- package/docs/client-quality.md +74 -0
- package/docs/client-sales.md +61 -0
- package/docs/client-scanners.md +41 -0
- package/docs/client-station-monitor.md +149 -0
- package/docs/client-tools-programs.md +74 -0
- package/docs/improve-fms.md +141 -0
- package/docs/makino.md +40 -0
- package/docs/material-quarantine.md +82 -0
- package/docs/material-tracking.md +236 -0
- package/docs/mazak.md +115 -0
- package/docs/niigata.md +228 -0
- package/docs/operator-procedures.md +106 -0
- package/docs/part-instructions.md +63 -0
- package/docs/screenshots/insight-all-material.png +0 -0
- package/docs/screenshots/insight-analysis-pallets.png +0 -0
- package/docs/screenshots/insight-analysis-part-completed.png +0 -0
- package/docs/screenshots/insight-analysis-sankey.png +0 -0
- package/docs/screenshots/insight-analysis-station-oee.png +0 -0
- package/docs/screenshots/insight-buffer-occupancy.png +0 -0
- package/docs/screenshots/insight-choose-analysis-month.png +0 -0
- package/docs/screenshots/insight-closeout.png +0 -0
- package/docs/screenshots/insight-cost-percentages.png +0 -0
- package/docs/screenshots/insight-dashboard.png +0 -0
- package/docs/screenshots/insight-event-custom-view.jpg +0 -0
- package/docs/screenshots/insight-event-viewer.jpg +0 -0
- package/docs/screenshots/insight-inspection.png +0 -0
- package/docs/screenshots/insight-load-station-details.png +0 -0
- package/docs/screenshots/insight-load-station.png +0 -0
- package/docs/screenshots/insight-loadcycle-graph.png +0 -0
- package/docs/screenshots/insight-loadstation-small.jpg +0 -0
- package/docs/screenshots/insight-machinecycle-graph.png +0 -0
- package/docs/screenshots/insight-machinecycle-table.png +0 -0
- package/docs/screenshots/insight-machinecycles.png +0 -0
- package/docs/screenshots/insight-machinehours.png +0 -0
- package/docs/screenshots/insight-machineoutliers.png +0 -0
- package/docs/screenshots/insight-monthly-schedules.png +0 -0
- package/docs/screenshots/insight-operations-material.png +0 -0
- package/docs/screenshots/insight-operations-overview.png +0 -0
- package/docs/screenshots/insight-operations-reports.png +0 -0
- package/docs/screenshots/insight-part-cost.png +0 -0
- package/docs/screenshots/insight-program-report.png +0 -0
- package/docs/screenshots/insight-quality-material-details.png +0 -0
- package/docs/screenshots/insight-quality-material.png +0 -0
- package/docs/screenshots/insight-quality-quarantine.png +0 -0
- package/docs/screenshots/insight-quality-sankey.png +0 -0
- package/docs/screenshots/insight-quality-similar-paths.png +0 -0
- package/docs/screenshots/insight-queue-details.png +0 -0
- package/docs/screenshots/insight-queues-jobs-table.png +0 -0
- package/docs/screenshots/insight-queues.png +0 -0
- package/docs/screenshots/insight-sim-day-usage.png +0 -0
- package/docs/screenshots/insight-station-system-overview-buttons.png +0 -0
- package/docs/screenshots/insight-station-system-overview.png +0 -0
- package/docs/screenshots/insight-system-overview.png +0 -0
- package/docs/screenshots/insight-tool-replacements.png +0 -0
- package/docs/screenshots/insight-tool-report.png +0 -0
- package/docs/screenshots/insight-toolbar-btns.png +0 -0
- package/docs/screenshots/insight-workorder-gantt.png +0 -0
- package/docs/screenshots/insight-workorders.png +0 -0
- package/docs/security.md +131 -0
- package/docs/server-config.md +56 -0
- package/docs/server-errors.md +44 -0
- package/package.json +90 -0
- package/src/index.ts +65 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/* Copyright (c) 2022, John Lenz
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above
|
|
13
|
+
copyright notice, this list of conditions and the following
|
|
14
|
+
disclaimer in the documentation and/or other materials provided
|
|
15
|
+
with the distribution.
|
|
16
|
+
|
|
17
|
+
* Neither the name of John Lenz, Black Maple Software, SeedTactics,
|
|
18
|
+
nor the names of other contributors may be used to endorse or
|
|
19
|
+
promote products derived from this software without specific
|
|
20
|
+
prior written permission.
|
|
21
|
+
|
|
22
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
23
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
24
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
25
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
26
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
27
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
28
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
29
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
30
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
31
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
*/
|
|
34
|
+
import { useState } from "react";
|
|
35
|
+
import { CircularProgress, Stack, TextField, Button, Stepper, Step, StepLabel, Typography, } from "@mui/material";
|
|
36
|
+
import * as matDetails from "../../cell-status/material-details.js";
|
|
37
|
+
import { MaterialDetailTitle, MaterialDetailContent, MaterialLoading } from "../station-monitor/Material.js";
|
|
38
|
+
import { buildPathString, extractPath } from "../../data/results.inspection.js";
|
|
39
|
+
import { startOfToday, addDays, startOfDay, endOfDay } from "date-fns";
|
|
40
|
+
import { ApiException, LogType } from "../../network/api.js";
|
|
41
|
+
import { InspectionSankey } from "../analysis/InspectionSankey.js";
|
|
42
|
+
import { useIsDemo, useSetTitle } from "../routes.js";
|
|
43
|
+
import { extendRange, inspectionLogEntries, pathLookupRange } from "../../data/path-lookup.js";
|
|
44
|
+
import { DisplayLoadingAndError } from "../ErrorsAndLoading.js";
|
|
45
|
+
import { LogBackend } from "../../network/backend.js";
|
|
46
|
+
import { LazySeq } from "@seedtactics/immutable-collections";
|
|
47
|
+
import { RecentFailedInspectionsTable } from "./RecentFailedInspections.js";
|
|
48
|
+
import { useAtom, useAtomValue, useSetAtom } from "jotai";
|
|
49
|
+
import { loadable } from "jotai/utils";
|
|
50
|
+
function SerialLookup() {
|
|
51
|
+
const demo = useIsDemo();
|
|
52
|
+
const setMatToShow = useSetAtom(matDetails.materialDialogOpen);
|
|
53
|
+
const [serial, setSerial] = useState(demo ? "00000000i9" : "");
|
|
54
|
+
const [loading, setLoading] = useState(false);
|
|
55
|
+
const [error, setError] = useState(null);
|
|
56
|
+
function lookup() {
|
|
57
|
+
if (serial && serial !== "") {
|
|
58
|
+
setLoading(true);
|
|
59
|
+
setError(null);
|
|
60
|
+
LogBackend.materialForSerial(serial)
|
|
61
|
+
.then((mats) => {
|
|
62
|
+
const mat = LazySeq.of(mats).maxBy((m) => m.materialID);
|
|
63
|
+
if (mat) {
|
|
64
|
+
setMatToShow({ type: "MatDetails", details: mat });
|
|
65
|
+
setSerial("");
|
|
66
|
+
setError(null);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
setError("No material found with serial " + serial);
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
.catch((e) => {
|
|
73
|
+
if (ApiException.isApiException(e)) {
|
|
74
|
+
setError(e.response);
|
|
75
|
+
}
|
|
76
|
+
else if (e instanceof Error) {
|
|
77
|
+
setError(e.message);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
setError(e.toString());
|
|
81
|
+
}
|
|
82
|
+
})
|
|
83
|
+
.finally(() => setLoading(false));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Stack, { direction: "row", spacing: 2, alignItems: "center", marginLeft: "auto", marginRight: "auto", children: [_jsx("div", { children: _jsx(TextField, { label: serial === "" ? "Serial" : "Serial (press enter)", value: serial, onChange: (e) => setSerial(e.target.value), onKeyPress: (e) => {
|
|
87
|
+
if (e.key === "Enter" && serial !== "") {
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
lookup();
|
|
90
|
+
}
|
|
91
|
+
} }) }), _jsx("div", { children: _jsx(Button, { variant: "contained", color: "secondary", disabled: serial === "" || loading, onClick: lookup, children: loading ? (_jsxs(Stack, { direction: "row", spacing: 2, children: [_jsx(CircularProgress, {}), " Searching"] })) : (_jsx(_Fragment, { children: "Lookup" })) }) })] }), error && error !== "" ? _jsx("div", { children: error }) : undefined] }));
|
|
92
|
+
}
|
|
93
|
+
function lastMachineTime(evts) {
|
|
94
|
+
const first = evts[0];
|
|
95
|
+
if (first === undefined) {
|
|
96
|
+
return startOfToday();
|
|
97
|
+
}
|
|
98
|
+
let lastEnd = first.endUTC;
|
|
99
|
+
for (const e of evts) {
|
|
100
|
+
if (e.type === LogType.MachineCycle) {
|
|
101
|
+
lastEnd = e.endUTC;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return lastEnd;
|
|
105
|
+
}
|
|
106
|
+
function DetailsStepTitle() {
|
|
107
|
+
const matL = useAtomValue(loadable(matDetails.materialInDialogInfo));
|
|
108
|
+
const matEvents = useAtomValue(matDetails.materialInDialogEvents);
|
|
109
|
+
const mat = matL.state === "hasData" ? matL.data : null;
|
|
110
|
+
if (mat) {
|
|
111
|
+
return (_jsx(MaterialDetailTitle, { partName: mat.partName, serial: mat.serial, subtitle: "Path " +
|
|
112
|
+
buildPathString(extractPath(matEvents)) +
|
|
113
|
+
" at " +
|
|
114
|
+
lastMachineTime(matEvents).toLocaleString() }));
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return _jsx("div", { children: "Serial Details" });
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function DetailsStepButtons({ setStep }) {
|
|
121
|
+
const matL = useAtomValue(loadable(matDetails.materialInDialogInfo));
|
|
122
|
+
const mat = matL.state === "hasData" ? matL.data : null;
|
|
123
|
+
const matEvents = useAtomValue(matDetails.materialInDialogEvents);
|
|
124
|
+
const setSearchRange = useSetAtom(pathLookupRange);
|
|
125
|
+
const setMatToShow = useSetAtom(matDetails.materialDialogOpen);
|
|
126
|
+
return (_jsxs(Stack, { direction: "row", spacing: 2, mt: "2em", children: [mat ? (_jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
127
|
+
const d = lastMachineTime(matEvents);
|
|
128
|
+
setSearchRange({
|
|
129
|
+
part: mat?.partName ?? "",
|
|
130
|
+
curStart: startOfDay(addDays(d, -5)),
|
|
131
|
+
curEnd: endOfDay(addDays(d, 5)),
|
|
132
|
+
});
|
|
133
|
+
setStep(2);
|
|
134
|
+
}, children: "Lookup Similar Paths" })) : undefined, _jsx(Button, { variant: "contained", style: { marginLeft: "2em" }, onClick: () => {
|
|
135
|
+
setMatToShow(null);
|
|
136
|
+
setSearchRange(null);
|
|
137
|
+
setStep(0);
|
|
138
|
+
}, children: "Reset" })] }));
|
|
139
|
+
}
|
|
140
|
+
function PathLookupStep(props) {
|
|
141
|
+
const mat = useAtomValue(matDetails.materialInDialogInfo);
|
|
142
|
+
const matEvents = useAtomValue(matDetails.materialInDialogEvents);
|
|
143
|
+
const [searchRange, setSearchRange] = useAtom(pathLookupRange);
|
|
144
|
+
const logs = useAtomValue(inspectionLogEntries);
|
|
145
|
+
const setMatToShow = useSetAtom(matDetails.materialDialogOpen);
|
|
146
|
+
if (mat === null)
|
|
147
|
+
return null;
|
|
148
|
+
function extendDateRange(numDays) {
|
|
149
|
+
setSearchRange(extendRange(numDays));
|
|
150
|
+
}
|
|
151
|
+
return (_jsxs("div", { children: [_jsx(InspectionSankey, { inspectionlogs: logs, restrictToPart: mat.partName, subtitle: "Paths for " + mat.partName + " around " + lastMachineTime(matEvents).toLocaleString(), default_date_range: searchRange ? [searchRange.curStart, searchRange.curEnd] : [], zoomType: searchRange ? "ExtendDays" : undefined, extendDateRange: extendDateRange, hideOpenDetailColumn: true, onlyTable: true }), _jsx(Button, { variant: "contained", style: { marginTop: "2em" }, onClick: () => {
|
|
152
|
+
setMatToShow(null);
|
|
153
|
+
setSearchRange(null);
|
|
154
|
+
props.setStep(0);
|
|
155
|
+
}, children: "Reset" })] }));
|
|
156
|
+
}
|
|
157
|
+
export function PartLookupStepper() {
|
|
158
|
+
const [origStep, setStep] = useState(0);
|
|
159
|
+
const matToShow = useAtomValue(matDetails.materialDialogOpen);
|
|
160
|
+
let step = origStep;
|
|
161
|
+
if (step === 0 && matToShow) {
|
|
162
|
+
step = 1;
|
|
163
|
+
}
|
|
164
|
+
return (_jsxs(Stack, { direction: "column", spacing: 2, children: [_jsxs(Stepper, { activeStep: step, orientation: "horizontal", children: [_jsx(Step, { children: _jsx(StepLabel, { children: "Select Material" }) }), _jsx(Step, { children: _jsx(StepLabel, { children: _jsx(DetailsStepTitle, {}) }) }), _jsx(Step, { children: _jsx(StepLabel, { children: "Lookup similar paths" }) })] }), step === 0 ? (_jsxs(Stack, { direction: "column", spacing: 4, children: [_jsx(Typography, { children: "Enter a serial number, scan a barcode, or click on a material in the table below to see details." }), _jsx(SerialLookup, {}), _jsx(RecentFailedInspectionsTable, {})] })) : step === 1 ? (_jsxs(_Fragment, { children: [_jsx(DisplayLoadingAndError, { fallback: _jsx(MaterialLoading, {}), children: _jsx(MaterialDetailContent, {}) }), _jsx(DetailsStepButtons, { setStep: setStep })] })) : step === 2 ? (_jsx(DisplayLoadingAndError, { children: _jsx(PathLookupStep, { setStep: setStep }) })) : undefined] }));
|
|
165
|
+
}
|
|
166
|
+
export function QualityMaterialPage() {
|
|
167
|
+
useSetTitle("Quality Material");
|
|
168
|
+
return (_jsx("main", { style: { padding: "24px" }, children: _jsx(PartLookupStepper, {}) }));
|
|
169
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const QualityPaths: import("react").NamedExoticComponent<object>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/* Copyright (c) 2023, John Lenz
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above
|
|
13
|
+
copyright notice, this list of conditions and the following
|
|
14
|
+
disclaimer in the documentation and/or other materials provided
|
|
15
|
+
with the distribution.
|
|
16
|
+
|
|
17
|
+
* Neither the name of John Lenz, Black Maple Software, SeedTactics,
|
|
18
|
+
nor the names of other contributors may be used to endorse or
|
|
19
|
+
promote products derived from this software without specific
|
|
20
|
+
prior written permission.
|
|
21
|
+
|
|
22
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
23
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
24
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
25
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
26
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
27
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
28
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
29
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
30
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
31
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
*/
|
|
34
|
+
import { memo, useMemo } from "react";
|
|
35
|
+
import { addDays, startOfToday } from "date-fns";
|
|
36
|
+
import { InspectionSankey } from "../analysis/InspectionSankey.js";
|
|
37
|
+
import { last30Inspections } from "../../cell-status/inspections.js";
|
|
38
|
+
import { useSetTitle } from "../routes.js";
|
|
39
|
+
import { useAtomValue } from "jotai";
|
|
40
|
+
export const QualityPaths = memo(function SelectedInspections() {
|
|
41
|
+
useSetTitle("Paths");
|
|
42
|
+
const inspections = useAtomValue(last30Inspections);
|
|
43
|
+
const filtered = useMemo(() => {
|
|
44
|
+
const today = startOfToday();
|
|
45
|
+
const start = addDays(today, -6);
|
|
46
|
+
const end = addDays(today, 1);
|
|
47
|
+
return inspections.collectValues((log) => {
|
|
48
|
+
const newLog = log.filter((e) => e.time >= start && e.time <= end);
|
|
49
|
+
return newLog.size === 0 ? null : newLog;
|
|
50
|
+
});
|
|
51
|
+
}, [inspections]);
|
|
52
|
+
return (_jsx(InspectionSankey, { inspectionlogs: filtered, default_date_range: [addDays(startOfToday(), -6), addDays(startOfToday(), 1)], subtitle: "Paths from the last 7 days" }));
|
|
53
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RecentFailedInspectionsTable(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/* Copyright (c) 2023, John Lenz
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above
|
|
13
|
+
copyright notice, this list of conditions and the following
|
|
14
|
+
disclaimer in the documentation and/or other materials provided
|
|
15
|
+
with the distribution.
|
|
16
|
+
|
|
17
|
+
* Neither the name of John Lenz, Black Maple Software, SeedTactics,
|
|
18
|
+
nor the names of other contributors may be used to endorse or
|
|
19
|
+
promote products derived from this software without specific
|
|
20
|
+
prior written permission.
|
|
21
|
+
|
|
22
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
23
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
24
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
25
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
26
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
27
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
28
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
29
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
30
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
31
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
*/
|
|
34
|
+
import { useMemo } from "react";
|
|
35
|
+
import { Box, Typography } from "@mui/material";
|
|
36
|
+
import { Tooltip } from "@mui/material";
|
|
37
|
+
import { IconButton } from "@mui/material";
|
|
38
|
+
import { Table } from "@mui/material";
|
|
39
|
+
import { ImportExport } from "@mui/icons-material";
|
|
40
|
+
import { extractFailedInspections, copyFailedInspectionsToClipboard, } from "../../data/results.inspection.js";
|
|
41
|
+
import { LazySeq } from "@seedtactics/immutable-collections";
|
|
42
|
+
import { addDays, startOfToday } from "date-fns";
|
|
43
|
+
import { DataTableHead, DataTableBody, DataTableActions, useColSort, useTablePage, } from "../analysis/DataTable.js";
|
|
44
|
+
import { materialDialogOpen } from "../../cell-status/material-details.js";
|
|
45
|
+
import { useIsDemo } from "../routes.js";
|
|
46
|
+
import { last30Inspections } from "../../cell-status/inspections.js";
|
|
47
|
+
import { useAtomValue, useSetAtom } from "jotai";
|
|
48
|
+
var ColumnId;
|
|
49
|
+
(function (ColumnId) {
|
|
50
|
+
ColumnId[ColumnId["Date"] = 0] = "Date";
|
|
51
|
+
ColumnId[ColumnId["Part"] = 1] = "Part";
|
|
52
|
+
ColumnId[ColumnId["InspType"] = 2] = "InspType";
|
|
53
|
+
ColumnId[ColumnId["Serial"] = 3] = "Serial";
|
|
54
|
+
ColumnId[ColumnId["Workorder"] = 4] = "Workorder";
|
|
55
|
+
})(ColumnId || (ColumnId = {}));
|
|
56
|
+
const columns = [
|
|
57
|
+
{
|
|
58
|
+
id: ColumnId.Date,
|
|
59
|
+
numeric: false,
|
|
60
|
+
label: "Date",
|
|
61
|
+
getDisplay: (c) => c.time.toLocaleString(),
|
|
62
|
+
getForSort: (c) => c.time.getTime(),
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: ColumnId.Part,
|
|
66
|
+
numeric: false,
|
|
67
|
+
label: "Part",
|
|
68
|
+
getDisplay: (c) => c.part,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: ColumnId.InspType,
|
|
72
|
+
numeric: false,
|
|
73
|
+
label: "Inspection",
|
|
74
|
+
getDisplay: (c) => c.inspType,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: ColumnId.Serial,
|
|
78
|
+
numeric: false,
|
|
79
|
+
label: "Serial",
|
|
80
|
+
getDisplay: (c) => c.serial || "",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: ColumnId.Workorder,
|
|
84
|
+
numeric: false,
|
|
85
|
+
label: "Workorder",
|
|
86
|
+
getDisplay: (c) => c.workorder || "",
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
function RecentFailedTable(props) {
|
|
90
|
+
const demo = useIsDemo();
|
|
91
|
+
const sort = useColSort(ColumnId.Date, columns);
|
|
92
|
+
const tpage = useTablePage();
|
|
93
|
+
const setMatToShow = useSetAtom(materialDialogOpen);
|
|
94
|
+
const curPage = Math.min(tpage.page, Math.ceil(props.failed.length / tpage.rowsPerPage));
|
|
95
|
+
const points = LazySeq.of(props.failed).sortBy(sort.sortOn);
|
|
96
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Table, { children: [_jsx(DataTableHead, { columns: columns, sort: sort, showDetailsCol: !demo }), _jsx(DataTableBody, { columns: columns, pageData: points.drop(curPage * tpage.rowsPerPage).take(tpage.rowsPerPage), rowsPerPage: tpage.rowsPerPage, onClickDetails: demo
|
|
97
|
+
? undefined
|
|
98
|
+
: (_, row) => {
|
|
99
|
+
setMatToShow({
|
|
100
|
+
type: "MatSummary",
|
|
101
|
+
summary: {
|
|
102
|
+
materialID: row.materialID,
|
|
103
|
+
partName: row.part,
|
|
104
|
+
serial: row.serial,
|
|
105
|
+
workorderId: row.workorder,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
} })] }), _jsx(DataTableActions, { tpage: { ...tpage, page: curPage }, count: props.failed.length })] }));
|
|
109
|
+
}
|
|
110
|
+
export function RecentFailedInspectionsTable() {
|
|
111
|
+
const inspections = useAtomValue(last30Inspections);
|
|
112
|
+
const failed = useMemo(() => {
|
|
113
|
+
const today = startOfToday();
|
|
114
|
+
const allEvts = LazySeq.of(inspections).flatMap(([_, evts]) => evts.valuesToLazySeq());
|
|
115
|
+
return extractFailedInspections(allEvts, addDays(today, -4), addDays(today, 1));
|
|
116
|
+
}, [inspections]);
|
|
117
|
+
return (_jsxs("div", { children: [_jsxs(Box, { component: "nav", sx: {
|
|
118
|
+
display: "flex",
|
|
119
|
+
minHeight: "2.5em",
|
|
120
|
+
alignItems: "center",
|
|
121
|
+
maxWidth: "calc(100vw - 24px - 24px)",
|
|
122
|
+
}, children: [_jsx(Typography, { variant: "subtitle1", children: "Inspections marked as failed in the last 5 days" }), _jsx(Box, { flexGrow: 1 }), _jsx(Tooltip, { title: "Copy to Clipboard", children: _jsx(IconButton, { style: { height: "25px", paddingTop: 0, paddingBottom: 0 }, onClick: () => copyFailedInspectionsToClipboard(failed), size: "large", children: _jsx(ImportExport, {}) }) })] }), _jsx(RecentFailedTable, { failed: failed })] }));
|
|
123
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import "urlpattern-polyfill";
|
|
2
|
+
export declare enum RouteLocation {
|
|
3
|
+
ChooseMode = "/",
|
|
4
|
+
Station_LoadMonitor = "/station/loadunload/:num",
|
|
5
|
+
Station_InspectionMonitor = "/station/inspection",
|
|
6
|
+
Station_InspectionMonitorWithType = "/station/inspection/:type",
|
|
7
|
+
Station_Closeout = "/station/closeout",
|
|
8
|
+
Station_Queues = "/station/queues",
|
|
9
|
+
Station_Overview = "/station/overview",
|
|
10
|
+
Operations_Dashboard = "/operations",
|
|
11
|
+
Operations_LoadOutliers = "/operations/load-outliers",
|
|
12
|
+
Operations_LoadHours = "/operations/load-hours",
|
|
13
|
+
Operations_LoadCycles = "/operations/load-cycles",
|
|
14
|
+
Operations_MachineOutliers = "/operations/machine-outliers",
|
|
15
|
+
Operations_MachineHours = "/operations/machine-hours",
|
|
16
|
+
Operations_MachineCycles = "/operations/machine-cycles",
|
|
17
|
+
Operations_SystemOverview = "/operations/system-overview",
|
|
18
|
+
Operations_AllMaterial = "/operations/material",
|
|
19
|
+
Operations_RecentSchedules = "/operations/recent-schedules",
|
|
20
|
+
Operations_CurrentWorkorders = "/operations/current-workorders",
|
|
21
|
+
Operations_Production = "/operations/recent-production",
|
|
22
|
+
Operations_Tools = "/operations/tools",
|
|
23
|
+
Operations_Programs = "/operations/programs",
|
|
24
|
+
Operations_Quality = "/operations/quality",
|
|
25
|
+
Operations_Inspections = "/operations/inspections",
|
|
26
|
+
Operations_CloseoutReport = "/operations/closeout",
|
|
27
|
+
Operations_Rebookings = "/analysis/rebookings",
|
|
28
|
+
Operations_Parts = "/operations/parts",
|
|
29
|
+
Engineering_Cycles = "/engineering",
|
|
30
|
+
Engineering_Hours = "/engineering/hours",
|
|
31
|
+
Engineering_Outliers = "/engineering/outliers",
|
|
32
|
+
Quality_Dashboard = "/quality",
|
|
33
|
+
Quality_Paths = "/quality/paths",
|
|
34
|
+
Quality_Quarantine = "/quality/quarantine",
|
|
35
|
+
Tools_Dashboard = "/tools",
|
|
36
|
+
Tools_Programs = "/tools/programs",
|
|
37
|
+
Analysis_Buffers = "/analysis/buffers",
|
|
38
|
+
Analysis_StationOEE = "/analysis/station-oee",
|
|
39
|
+
Analysis_PartsCompleted = "/analysis/parts-completed",
|
|
40
|
+
Analysis_MachineCycles = "/analysis/machine-cycles",
|
|
41
|
+
Analysis_LoadCycles = "/analysis/load-cycles",
|
|
42
|
+
Analysis_PalletCycles = "/analysis/pallet-cycles",
|
|
43
|
+
Analysis_Schedules = "/analysis/schedules",
|
|
44
|
+
Analysis_Quality = "/analysis/quality",
|
|
45
|
+
Analysis_ToolReplacements = "/analysis/tool-replacements",
|
|
46
|
+
Analysis_CostPercents = "/analysis/cost-percents",
|
|
47
|
+
Analysis_CostPerPiece = "/analysis/cost",
|
|
48
|
+
Sales_Dashboard = "/sales",
|
|
49
|
+
Sales_ProjectedUsage = "/sales/projected-usage",
|
|
50
|
+
VerboseLogging = "/logging",
|
|
51
|
+
Client_Custom = "/client/:custom+"
|
|
52
|
+
}
|
|
53
|
+
export type RouteState = {
|
|
54
|
+
route: RouteLocation.ChooseMode;
|
|
55
|
+
} | {
|
|
56
|
+
route: RouteLocation.Station_LoadMonitor;
|
|
57
|
+
loadNum: number;
|
|
58
|
+
queues: ReadonlyArray<string>;
|
|
59
|
+
completed: boolean;
|
|
60
|
+
} | {
|
|
61
|
+
route: RouteLocation.Station_InspectionMonitor;
|
|
62
|
+
} | {
|
|
63
|
+
route: RouteLocation.Station_InspectionMonitorWithType;
|
|
64
|
+
readonly inspType: string;
|
|
65
|
+
} | {
|
|
66
|
+
route: RouteLocation.Station_Closeout;
|
|
67
|
+
} | {
|
|
68
|
+
route: RouteLocation.Station_Queues;
|
|
69
|
+
readonly queues: ReadonlyArray<string>;
|
|
70
|
+
} | {
|
|
71
|
+
route: RouteLocation.Station_Overview;
|
|
72
|
+
} | {
|
|
73
|
+
route: RouteLocation.Operations_Dashboard;
|
|
74
|
+
} | {
|
|
75
|
+
route: RouteLocation.Operations_LoadOutliers;
|
|
76
|
+
} | {
|
|
77
|
+
route: RouteLocation.Operations_LoadHours;
|
|
78
|
+
} | {
|
|
79
|
+
route: RouteLocation.Operations_LoadCycles;
|
|
80
|
+
} | {
|
|
81
|
+
route: RouteLocation.Operations_MachineOutliers;
|
|
82
|
+
} | {
|
|
83
|
+
route: RouteLocation.Operations_MachineHours;
|
|
84
|
+
} | {
|
|
85
|
+
route: RouteLocation.Operations_MachineCycles;
|
|
86
|
+
} | {
|
|
87
|
+
route: RouteLocation.Operations_SystemOverview;
|
|
88
|
+
} | {
|
|
89
|
+
route: RouteLocation.Operations_AllMaterial;
|
|
90
|
+
} | {
|
|
91
|
+
route: RouteLocation.Operations_RecentSchedules;
|
|
92
|
+
} | {
|
|
93
|
+
route: RouteLocation.Operations_CurrentWorkorders;
|
|
94
|
+
readonly workorder?: string;
|
|
95
|
+
} | {
|
|
96
|
+
route: RouteLocation.Operations_Production;
|
|
97
|
+
} | {
|
|
98
|
+
route: RouteLocation.Operations_Tools;
|
|
99
|
+
} | {
|
|
100
|
+
route: RouteLocation.Operations_Programs;
|
|
101
|
+
} | {
|
|
102
|
+
route: RouteLocation.Operations_Quality;
|
|
103
|
+
} | {
|
|
104
|
+
route: RouteLocation.Operations_Inspections;
|
|
105
|
+
} | {
|
|
106
|
+
route: RouteLocation.Operations_CloseoutReport;
|
|
107
|
+
} | {
|
|
108
|
+
route: RouteLocation.Operations_Rebookings;
|
|
109
|
+
} | {
|
|
110
|
+
route: RouteLocation.Operations_Parts;
|
|
111
|
+
} | {
|
|
112
|
+
route: RouteLocation.Engineering_Cycles;
|
|
113
|
+
} | {
|
|
114
|
+
route: RouteLocation.Engineering_Outliers;
|
|
115
|
+
} | {
|
|
116
|
+
route: RouteLocation.Engineering_Hours;
|
|
117
|
+
} | {
|
|
118
|
+
route: RouteLocation.Quality_Dashboard;
|
|
119
|
+
} | {
|
|
120
|
+
route: RouteLocation.Quality_Paths;
|
|
121
|
+
} | {
|
|
122
|
+
route: RouteLocation.Quality_Quarantine;
|
|
123
|
+
} | {
|
|
124
|
+
route: RouteLocation.Tools_Dashboard;
|
|
125
|
+
} | {
|
|
126
|
+
route: RouteLocation.Tools_Programs;
|
|
127
|
+
} | {
|
|
128
|
+
route: RouteLocation.Analysis_Buffers;
|
|
129
|
+
} | {
|
|
130
|
+
route: RouteLocation.Analysis_StationOEE;
|
|
131
|
+
} | {
|
|
132
|
+
route: RouteLocation.Analysis_PartsCompleted;
|
|
133
|
+
} | {
|
|
134
|
+
route: RouteLocation.Analysis_Quality;
|
|
135
|
+
} | {
|
|
136
|
+
route: RouteLocation.Analysis_ToolReplacements;
|
|
137
|
+
} | {
|
|
138
|
+
route: RouteLocation.Analysis_MachineCycles;
|
|
139
|
+
} | {
|
|
140
|
+
route: RouteLocation.Analysis_LoadCycles;
|
|
141
|
+
} | {
|
|
142
|
+
route: RouteLocation.Analysis_PalletCycles;
|
|
143
|
+
} | {
|
|
144
|
+
route: RouteLocation.Analysis_CostPerPiece;
|
|
145
|
+
} | {
|
|
146
|
+
route: RouteLocation.Analysis_Schedules;
|
|
147
|
+
} | {
|
|
148
|
+
route: RouteLocation.Analysis_CostPercents;
|
|
149
|
+
} | {
|
|
150
|
+
route: RouteLocation.Sales_Dashboard;
|
|
151
|
+
} | {
|
|
152
|
+
route: RouteLocation.Sales_ProjectedUsage;
|
|
153
|
+
} | {
|
|
154
|
+
route: RouteLocation.VerboseLogging;
|
|
155
|
+
} | {
|
|
156
|
+
route: RouteLocation.Client_Custom;
|
|
157
|
+
readonly custom: ReadonlyArray<string>;
|
|
158
|
+
};
|
|
159
|
+
export declare const isDemoAtom: import("jotai").PrimitiveAtom<boolean> & {
|
|
160
|
+
init: boolean;
|
|
161
|
+
};
|
|
162
|
+
export declare const currentRoute: import("jotai").WritableAtom<RouteState, [to: RouteState], void>;
|
|
163
|
+
export declare function AppLink({ to, children }: {
|
|
164
|
+
to: RouteState;
|
|
165
|
+
children: React.ReactNode;
|
|
166
|
+
}): React.ReactElement;
|
|
167
|
+
export declare function useWatchHistory(): void;
|
|
168
|
+
export declare function useIsDemo(): boolean;
|
|
169
|
+
export declare function useSetTitle(title: string): void;
|
|
170
|
+
export declare function helpUrl(r: RouteState): string;
|