@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.
Files changed (298) hide show
  1. package/README.md +37 -0
  2. package/dist/cell-status/buffers.d.ts +36 -0
  3. package/dist/cell-status/buffers.js +127 -0
  4. package/dist/cell-status/current-status.d.ts +30 -0
  5. package/dist/cell-status/current-status.js +200 -0
  6. package/dist/cell-status/estimated-cycle-times.d.ts +41 -0
  7. package/dist/cell-status/estimated-cycle-times.js +257 -0
  8. package/dist/cell-status/inspections.d.ts +55 -0
  9. package/dist/cell-status/inspections.js +213 -0
  10. package/dist/cell-status/loading.d.ts +26 -0
  11. package/dist/cell-status/loading.js +112 -0
  12. package/dist/cell-status/material-details.d.ts +116 -0
  13. package/dist/cell-status/material-details.js +422 -0
  14. package/dist/cell-status/material-summary.d.ts +52 -0
  15. package/dist/cell-status/material-summary.js +312 -0
  16. package/dist/cell-status/names.d.ts +19 -0
  17. package/dist/cell-status/names.js +134 -0
  18. package/dist/cell-status/pallet-cycles.d.ts +24 -0
  19. package/dist/cell-status/pallet-cycles.js +78 -0
  20. package/dist/cell-status/rebookings.d.ts +30 -0
  21. package/dist/cell-status/rebookings.js +139 -0
  22. package/dist/cell-status/scheduled-jobs.d.ts +18 -0
  23. package/dist/cell-status/scheduled-jobs.js +94 -0
  24. package/dist/cell-status/sim-day-usage.d.ts +14 -0
  25. package/dist/cell-status/sim-day-usage.js +54 -0
  26. package/dist/cell-status/sim-production.d.ts +22 -0
  27. package/dist/cell-status/sim-production.js +91 -0
  28. package/dist/cell-status/sim-station-use.d.ts +25 -0
  29. package/dist/cell-status/sim-station-use.js +71 -0
  30. package/dist/cell-status/station-cycles.d.ts +34 -0
  31. package/dist/cell-status/station-cycles.js +145 -0
  32. package/dist/cell-status/tool-replacements.d.ts +44 -0
  33. package/dist/cell-status/tool-replacements.js +155 -0
  34. package/dist/cell-status/tool-usage.d.ts +25 -0
  35. package/dist/cell-status/tool-usage.js +95 -0
  36. package/dist/components/App.d.ts +15 -0
  37. package/dist/components/App.js +549 -0
  38. package/dist/components/AxisAndGrid.d.ts +51 -0
  39. package/dist/components/AxisAndGrid.js +47 -0
  40. package/dist/components/BarcodeScanning.d.ts +6 -0
  41. package/dist/components/BarcodeScanning.js +150 -0
  42. package/dist/components/ChartTooltip.d.ts +28 -0
  43. package/dist/components/ChartTooltip.js +95 -0
  44. package/dist/components/ChooseMode.d.ts +18 -0
  45. package/dist/components/ChooseMode.js +136 -0
  46. package/dist/components/ChooseOperator.d.ts +1 -0
  47. package/dist/components/ChooseOperator.js +93 -0
  48. package/dist/components/ErrorsAndLoading.d.ts +9 -0
  49. package/dist/components/ErrorsAndLoading.js +55 -0
  50. package/dist/components/LoadingIcon.d.ts +1 -0
  51. package/dist/components/LoadingIcon.js +48 -0
  52. package/dist/components/LogEntry.d.ts +16 -0
  53. package/dist/components/LogEntry.js +365 -0
  54. package/dist/components/ManualSerialEntry.d.ts +5 -0
  55. package/dist/components/ManualSerialEntry.js +91 -0
  56. package/dist/components/MonthSelect.d.ts +6 -0
  57. package/dist/components/MonthSelect.js +67 -0
  58. package/dist/components/Navigation.d.ts +23 -0
  59. package/dist/components/Navigation.js +120 -0
  60. package/dist/components/VerboseLogging.d.ts +1 -0
  61. package/dist/components/VerboseLogging.js +47 -0
  62. package/dist/components/analysis/AnalysisSelectToolbar.d.ts +1 -0
  63. package/dist/components/analysis/AnalysisSelectToolbar.js +55 -0
  64. package/dist/components/analysis/BufferChart.d.ts +1 -0
  65. package/dist/components/analysis/BufferChart.js +139 -0
  66. package/dist/components/analysis/CostPerPiece.d.ts +2 -0
  67. package/dist/components/analysis/CostPerPiece.js +175 -0
  68. package/dist/components/analysis/CycleChart.d.ts +42 -0
  69. package/dist/components/analysis/CycleChart.js +281 -0
  70. package/dist/components/analysis/DataTable.d.ts +83 -0
  71. package/dist/components/analysis/DataTable.js +215 -0
  72. package/dist/components/analysis/EfficiencyPage.d.ts +2 -0
  73. package/dist/components/analysis/EfficiencyPage.js +138 -0
  74. package/dist/components/analysis/HeatChart.d.ts +22 -0
  75. package/dist/components/analysis/HeatChart.js +161 -0
  76. package/dist/components/analysis/InspectionDataTable.d.ts +10 -0
  77. package/dist/components/analysis/InspectionDataTable.js +148 -0
  78. package/dist/components/analysis/InspectionSankey.d.ts +12 -0
  79. package/dist/components/analysis/InspectionSankey.js +140 -0
  80. package/dist/components/analysis/PalletCycleCards.d.ts +1 -0
  81. package/dist/components/analysis/PalletCycleCards.js +137 -0
  82. package/dist/components/analysis/PartCycleCards.d.ts +2 -0
  83. package/dist/components/analysis/PartCycleCards.js +331 -0
  84. package/dist/components/analysis/QualityPage.d.ts +1 -0
  85. package/dist/components/analysis/QualityPage.js +49 -0
  86. package/dist/components/analysis/ScheduleHistory.d.ts +3 -0
  87. package/dist/components/analysis/ScheduleHistory.js +108 -0
  88. package/dist/components/analysis/StationDataTable.d.ts +25 -0
  89. package/dist/components/analysis/StationDataTable.js +246 -0
  90. package/dist/components/analysis/ToolReplacements.d.ts +1 -0
  91. package/dist/components/analysis/ToolReplacements.js +370 -0
  92. package/dist/components/operations/AllMaterial.d.ts +5 -0
  93. package/dist/components/operations/AllMaterial.js +267 -0
  94. package/dist/components/operations/ChartRangeEdit.d.ts +4 -0
  95. package/dist/components/operations/ChartRangeEdit.js +148 -0
  96. package/dist/components/operations/CloseoutReport.d.ts +2 -0
  97. package/dist/components/operations/CloseoutReport.js +172 -0
  98. package/dist/components/operations/CompletedParts.d.ts +2 -0
  99. package/dist/components/operations/CompletedParts.js +286 -0
  100. package/dist/components/operations/CurrentWorkorders.d.ts +3 -0
  101. package/dist/components/operations/CurrentWorkorders.js +368 -0
  102. package/dist/components/operations/Dashboard.d.ts +2 -0
  103. package/dist/components/operations/Dashboard.js +90 -0
  104. package/dist/components/operations/OEEChart.d.ts +10 -0
  105. package/dist/components/operations/OEEChart.js +173 -0
  106. package/dist/components/operations/Outliers.d.ts +4 -0
  107. package/dist/components/operations/Outliers.js +69 -0
  108. package/dist/components/operations/ProgramHighlight.d.ts +1 -0
  109. package/dist/components/operations/ProgramHighlight.js +9 -0
  110. package/dist/components/operations/Programs.d.ts +5 -0
  111. package/dist/components/operations/Programs.js +363 -0
  112. package/dist/components/operations/Rebookings.d.ts +1 -0
  113. package/dist/components/operations/Rebookings.js +213 -0
  114. package/dist/components/operations/RecentCycleChart.d.ts +4 -0
  115. package/dist/components/operations/RecentCycleChart.js +240 -0
  116. package/dist/components/operations/RecentProduction.d.ts +2 -0
  117. package/dist/components/operations/RecentProduction.js +213 -0
  118. package/dist/components/operations/RecentSchedules.d.ts +12 -0
  119. package/dist/components/operations/RecentSchedules.js +180 -0
  120. package/dist/components/operations/RecentStationCycles.d.ts +4 -0
  121. package/dist/components/operations/RecentStationCycles.js +159 -0
  122. package/dist/components/operations/ShiftSettings.d.ts +6 -0
  123. package/dist/components/operations/ShiftSettings.js +134 -0
  124. package/dist/components/operations/SimDayUsage.d.ts +1 -0
  125. package/dist/components/operations/SimDayUsage.js +133 -0
  126. package/dist/components/operations/ToolReport.d.ts +3 -0
  127. package/dist/components/operations/ToolReport.js +233 -0
  128. package/dist/components/operations/WorkorderGantt.d.ts +1 -0
  129. package/dist/components/operations/WorkorderGantt.js +124 -0
  130. package/dist/components/quality/QualityMaterial.d.ts +2 -0
  131. package/dist/components/quality/QualityMaterial.js +169 -0
  132. package/dist/components/quality/QualityPaths.d.ts +1 -0
  133. package/dist/components/quality/QualityPaths.js +53 -0
  134. package/dist/components/quality/RecentFailedInspections.d.ts +1 -0
  135. package/dist/components/quality/RecentFailedInspections.js +123 -0
  136. package/dist/components/routes.d.ts +170 -0
  137. package/dist/components/routes.js +301 -0
  138. package/dist/components/station-monitor/BulkRawMaterial.d.ts +11 -0
  139. package/dist/components/station-monitor/BulkRawMaterial.js +251 -0
  140. package/dist/components/station-monitor/Closeout.d.ts +5 -0
  141. package/dist/components/station-monitor/Closeout.js +162 -0
  142. package/dist/components/station-monitor/CustomStationMonitorDialog.d.ts +1 -0
  143. package/dist/components/station-monitor/CustomStationMonitorDialog.js +55 -0
  144. package/dist/components/station-monitor/Inspection.d.ts +8 -0
  145. package/dist/components/station-monitor/Inspection.js +164 -0
  146. package/dist/components/station-monitor/InvalidateCycle.d.ts +33 -0
  147. package/dist/components/station-monitor/InvalidateCycle.js +262 -0
  148. package/dist/components/station-monitor/JobDetails.d.ts +7 -0
  149. package/dist/components/station-monitor/JobDetails.js +108 -0
  150. package/dist/components/station-monitor/LoadStation.d.ts +10 -0
  151. package/dist/components/station-monitor/LoadStation.js +450 -0
  152. package/dist/components/station-monitor/Material.d.ts +77 -0
  153. package/dist/components/station-monitor/Material.js +489 -0
  154. package/dist/components/station-monitor/MoveMaterialArrows.d.ts +11 -0
  155. package/dist/components/station-monitor/MoveMaterialArrows.js +118 -0
  156. package/dist/components/station-monitor/PrintedLabel.d.ts +29 -0
  157. package/dist/components/station-monitor/PrintedLabel.js +166 -0
  158. package/dist/components/station-monitor/QuarantineButton.d.ts +4 -0
  159. package/dist/components/station-monitor/QuarantineButton.js +184 -0
  160. package/dist/components/station-monitor/Queues.d.ts +23 -0
  161. package/dist/components/station-monitor/Queues.js +312 -0
  162. package/dist/components/station-monitor/QueuesAddMaterial.d.ts +30 -0
  163. package/dist/components/station-monitor/QueuesAddMaterial.js +248 -0
  164. package/dist/components/station-monitor/SelectInspType.d.ts +2 -0
  165. package/dist/components/station-monitor/SelectInspType.js +99 -0
  166. package/dist/components/station-monitor/SelectWorkorder.d.ts +4 -0
  167. package/dist/components/station-monitor/SelectWorkorder.js +100 -0
  168. package/dist/components/station-monitor/StationToolbar.d.ts +3 -0
  169. package/dist/components/station-monitor/StationToolbar.js +168 -0
  170. package/dist/components/station-monitor/SystemOverview.d.ts +46 -0
  171. package/dist/components/station-monitor/SystemOverview.js +439 -0
  172. package/dist/components/station-monitor/Whiteboard.d.ts +10 -0
  173. package/dist/components/station-monitor/Whiteboard.js +67 -0
  174. package/dist/data/all-material-bins.d.ts +45 -0
  175. package/dist/data/all-material-bins.js +224 -0
  176. package/dist/data/chart-times.d.ts +20 -0
  177. package/dist/data/chart-times.js +99 -0
  178. package/dist/data/cost-per-piece.d.ts +32 -0
  179. package/dist/data/cost-per-piece.js +183 -0
  180. package/dist/data/current-cycles.d.ts +13 -0
  181. package/dist/data/current-cycles.js +144 -0
  182. package/dist/data/inspection-sankey.d.ts +15 -0
  183. package/dist/data/inspection-sankey.js +147 -0
  184. package/dist/data/move-arrows.d.ts +48 -0
  185. package/dist/data/move-arrows.js +217 -0
  186. package/dist/data/operators.d.ts +2 -0
  187. package/dist/data/operators.js +44 -0
  188. package/dist/data/part-summary.d.ts +17 -0
  189. package/dist/data/part-summary.js +107 -0
  190. package/dist/data/path-lookup.d.ts +13 -0
  191. package/dist/data/path-lookup.js +107 -0
  192. package/dist/data/queue-material.d.ts +46 -0
  193. package/dist/data/queue-material.js +256 -0
  194. package/dist/data/results.bufferchart.d.ts +10 -0
  195. package/dist/data/results.bufferchart.js +90 -0
  196. package/dist/data/results.completed-parts.d.ts +26 -0
  197. package/dist/data/results.completed-parts.js +181 -0
  198. package/dist/data/results.cycles.d.ts +86 -0
  199. package/dist/data/results.cycles.js +454 -0
  200. package/dist/data/results.inspection.d.ts +36 -0
  201. package/dist/data/results.inspection.js +188 -0
  202. package/dist/data/results.oee.d.ts +40 -0
  203. package/dist/data/results.oee.js +330 -0
  204. package/dist/data/results.schedules.d.ts +23 -0
  205. package/dist/data/results.schedules.js +157 -0
  206. package/dist/data/tools-programs.d.ts +78 -0
  207. package/dist/data/tools-programs.js +376 -0
  208. package/dist/index.d.ts +1 -0
  209. package/dist/index.js +60 -0
  210. package/dist/network/api.d.ts +1390 -0
  211. package/dist/network/api.js +4971 -0
  212. package/dist/network/backend-mock.d.ts +11 -0
  213. package/dist/network/backend-mock.js +512 -0
  214. package/dist/network/backend.d.ts +57 -0
  215. package/dist/network/backend.js +77 -0
  216. package/dist/network/load-specific-month.d.ts +13 -0
  217. package/dist/network/load-specific-month.js +77 -0
  218. package/dist/network/server-settings.d.ts +12 -0
  219. package/dist/network/server-settings.js +92 -0
  220. package/dist/network/websocket.d.ts +4 -0
  221. package/dist/network/websocket.js +165 -0
  222. package/dist/renderer.d.ts +8 -0
  223. package/dist/renderer.js +55 -0
  224. package/dist/seedtactics-logo.d.ts +2 -0
  225. package/dist/seedtactics-logo.js +4 -0
  226. package/dist/util/chart-colors.d.ts +1 -0
  227. package/dist/util/chart-colors.js +116 -0
  228. package/dist/util/chart-helpers.d.ts +3 -0
  229. package/dist/util/chart-helpers.js +51 -0
  230. package/dist/util/parseISODuration.d.ts +4 -0
  231. package/dist/util/parseISODuration.js +40 -0
  232. package/docs/client-efficiency.md +355 -0
  233. package/docs/client-engineering.md +54 -0
  234. package/docs/client-launch.md +55 -0
  235. package/docs/client-operations.md +88 -0
  236. package/docs/client-quality.md +74 -0
  237. package/docs/client-sales.md +61 -0
  238. package/docs/client-scanners.md +41 -0
  239. package/docs/client-station-monitor.md +149 -0
  240. package/docs/client-tools-programs.md +74 -0
  241. package/docs/improve-fms.md +141 -0
  242. package/docs/makino.md +40 -0
  243. package/docs/material-quarantine.md +82 -0
  244. package/docs/material-tracking.md +236 -0
  245. package/docs/mazak.md +115 -0
  246. package/docs/niigata.md +228 -0
  247. package/docs/operator-procedures.md +106 -0
  248. package/docs/part-instructions.md +63 -0
  249. package/docs/screenshots/insight-all-material.png +0 -0
  250. package/docs/screenshots/insight-analysis-pallets.png +0 -0
  251. package/docs/screenshots/insight-analysis-part-completed.png +0 -0
  252. package/docs/screenshots/insight-analysis-sankey.png +0 -0
  253. package/docs/screenshots/insight-analysis-station-oee.png +0 -0
  254. package/docs/screenshots/insight-buffer-occupancy.png +0 -0
  255. package/docs/screenshots/insight-choose-analysis-month.png +0 -0
  256. package/docs/screenshots/insight-closeout.png +0 -0
  257. package/docs/screenshots/insight-cost-percentages.png +0 -0
  258. package/docs/screenshots/insight-dashboard.png +0 -0
  259. package/docs/screenshots/insight-event-custom-view.jpg +0 -0
  260. package/docs/screenshots/insight-event-viewer.jpg +0 -0
  261. package/docs/screenshots/insight-inspection.png +0 -0
  262. package/docs/screenshots/insight-load-station-details.png +0 -0
  263. package/docs/screenshots/insight-load-station.png +0 -0
  264. package/docs/screenshots/insight-loadcycle-graph.png +0 -0
  265. package/docs/screenshots/insight-loadstation-small.jpg +0 -0
  266. package/docs/screenshots/insight-machinecycle-graph.png +0 -0
  267. package/docs/screenshots/insight-machinecycle-table.png +0 -0
  268. package/docs/screenshots/insight-machinecycles.png +0 -0
  269. package/docs/screenshots/insight-machinehours.png +0 -0
  270. package/docs/screenshots/insight-machineoutliers.png +0 -0
  271. package/docs/screenshots/insight-monthly-schedules.png +0 -0
  272. package/docs/screenshots/insight-operations-material.png +0 -0
  273. package/docs/screenshots/insight-operations-overview.png +0 -0
  274. package/docs/screenshots/insight-operations-reports.png +0 -0
  275. package/docs/screenshots/insight-part-cost.png +0 -0
  276. package/docs/screenshots/insight-program-report.png +0 -0
  277. package/docs/screenshots/insight-quality-material-details.png +0 -0
  278. package/docs/screenshots/insight-quality-material.png +0 -0
  279. package/docs/screenshots/insight-quality-quarantine.png +0 -0
  280. package/docs/screenshots/insight-quality-sankey.png +0 -0
  281. package/docs/screenshots/insight-quality-similar-paths.png +0 -0
  282. package/docs/screenshots/insight-queue-details.png +0 -0
  283. package/docs/screenshots/insight-queues-jobs-table.png +0 -0
  284. package/docs/screenshots/insight-queues.png +0 -0
  285. package/docs/screenshots/insight-sim-day-usage.png +0 -0
  286. package/docs/screenshots/insight-station-system-overview-buttons.png +0 -0
  287. package/docs/screenshots/insight-station-system-overview.png +0 -0
  288. package/docs/screenshots/insight-system-overview.png +0 -0
  289. package/docs/screenshots/insight-tool-replacements.png +0 -0
  290. package/docs/screenshots/insight-tool-report.png +0 -0
  291. package/docs/screenshots/insight-toolbar-btns.png +0 -0
  292. package/docs/screenshots/insight-workorder-gantt.png +0 -0
  293. package/docs/screenshots/insight-workorders.png +0 -0
  294. package/docs/security.md +131 -0
  295. package/docs/server-config.md +56 -0
  296. package/docs/server-errors.md +44 -0
  297. package/package.json +90 -0
  298. package/src/index.ts +65 -0
@@ -0,0 +1,450 @@
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, memo, useState, useCallback } from "react";
35
+ import { Box, useMediaQuery, Button, Typography } from "@mui/material";
36
+ import { LazySeq, mkCompareByProperties, OrderedMap } from "@seedtactics/immutable-collections";
37
+ import { FolderOpen as FolderOpenIcon } from "@mui/icons-material";
38
+ import { MaterialDialog, InProcMaterial, SortableInProcMaterial, DragOverlayInProcMaterial, MatSummary, } from "./Material.js";
39
+ import { SortableRegion } from "./Whiteboard.js";
40
+ import * as api from "../../network/api.js";
41
+ import * as matDetails from "../../cell-status/material-details.js";
42
+ import { SelectWorkorderDialog, selectWorkorderDialogOpen } from "./SelectWorkorder.js";
43
+ import { SelectInspTypeDialog, SignalInspectionButton } from "./SelectInspType.js";
44
+ import { MoveMaterialArrowContainer, MoveMaterialArrowNode, useMoveMaterialArrowRef, } from "./MoveMaterialArrows.js";
45
+ import { MoveMaterialNodeKindType } from "../../data/move-arrows.js";
46
+ import { currentOperator } from "../../data/operators.js";
47
+ import { instructionUrl } from "../../network/backend.js";
48
+ import { Tooltip } from "@mui/material";
49
+ import { Fab } from "@mui/material";
50
+ import { fmsInformation } from "../../network/server-settings.js";
51
+ import { currentStatus, secondsSinceEpochAtom } from "../../cell-status/current-status.js";
52
+ import { useIsDemo, useSetTitle } from "../routes.js";
53
+ import { QuarantineMatButton } from "./QuarantineButton.js";
54
+ import { durationToSeconds } from "../../util/parseISODuration.js";
55
+ import { formatSeconds } from "./SystemOverview.js";
56
+ import { InvalidateCycleDialogButton, InvalidateCycleDialogContent, SwapMaterialButtons, SwapMaterialDialogContent, } from "./InvalidateCycle.js";
57
+ import { last30MaterialSummary } from "../../cell-status/material-summary.js";
58
+ import { addHours } from "date-fns";
59
+ import { PromptForQueue } from "./QueuesAddMaterial.js";
60
+ import { useAtomValue, useSetAtom } from "jotai";
61
+ import { PrintLabelButton } from "./PrintedLabel.js";
62
+ function selectLoadStationAndQueueProps(loadNum, queues, curSt) {
63
+ // search for pallet
64
+ let pal;
65
+ if (loadNum >= 0) {
66
+ for (const p of Object.values(curSt.pallets)) {
67
+ if (p.currentPalletLocation.loc === api.PalletLocationEnum.LoadUnload &&
68
+ p.currentPalletLocation.num === loadNum) {
69
+ pal = p;
70
+ break;
71
+ }
72
+ }
73
+ }
74
+ // calculate queues to show, which is all configured queues and any queues with
75
+ // material loading onto the pallet
76
+ const queuesToShow = new Set(queues);
77
+ if (pal !== undefined) {
78
+ for (const m of curSt.material) {
79
+ if (m.action.type === api.ActionType.Loading &&
80
+ m.action.loadOntoPalletNum === pal.palletNum &&
81
+ m.location.type === api.LocType.InQueue &&
82
+ m.location.currentQueue) {
83
+ queuesToShow.add(m.location.currentQueue);
84
+ }
85
+ if ((m.action.type === api.ActionType.UnloadToInProcess ||
86
+ m.action.type === api.ActionType.UnloadToCompletedMaterial) &&
87
+ m.action.unloadIntoQueue &&
88
+ m.location.type === api.LocType.OnPallet &&
89
+ m.location.palletNum === pal.palletNum) {
90
+ queuesToShow.add(m.action.unloadIntoQueue);
91
+ }
92
+ }
93
+ }
94
+ const queueMat = new Map(LazySeq.of(queuesToShow).map((q) => [q, []]));
95
+ const freeLoading = [];
96
+ let palFaces = OrderedMap.empty();
97
+ let elapsedLoadingTime = null;
98
+ // ensure all faces
99
+ if (pal) {
100
+ for (let i = 1; i <= pal.numFaces; i++) {
101
+ palFaces = palFaces.set(i, []);
102
+ }
103
+ }
104
+ for (const m of curSt.material) {
105
+ if (pal) {
106
+ // if loading onto pallet, set elapsed load time, ensure face exists, and set free loading
107
+ if (m.action.type === api.ActionType.Loading && m.action.loadOntoPalletNum === pal.palletNum) {
108
+ if (m.action.elapsedLoadUnloadTime) {
109
+ elapsedLoadingTime = m.action.elapsedLoadUnloadTime;
110
+ }
111
+ if (m.action.loadOntoFace && !palFaces.has(m.action.loadOntoFace)) {
112
+ palFaces = palFaces.set(m.action.loadOntoFace, []);
113
+ }
114
+ if (m.location.type === api.LocType.Free) {
115
+ freeLoading.push(m);
116
+ }
117
+ }
118
+ // if currently on the pallet, set elapsed load time and add it to the pallet face
119
+ if (m.location.type === api.LocType.OnPallet && m.location.palletNum === pal.palletNum) {
120
+ if ((m.action.type === api.ActionType.UnloadToCompletedMaterial ||
121
+ m.action.type === api.ActionType.UnloadToInProcess) &&
122
+ m.action.elapsedLoadUnloadTime) {
123
+ elapsedLoadingTime = m.action.elapsedLoadUnloadTime;
124
+ }
125
+ palFaces = palFaces.alter(m.location.face ?? 1, (oldMats) => {
126
+ if (oldMats) {
127
+ oldMats.push(m);
128
+ return oldMats;
129
+ }
130
+ else {
131
+ return [m];
132
+ }
133
+ });
134
+ }
135
+ }
136
+ // add all material in the configured queues
137
+ if (m.location.type === api.LocType.InQueue &&
138
+ m.location.currentQueue &&
139
+ queueMat.has(m.location.currentQueue)) {
140
+ const old = queueMat.get(m.location.currentQueue);
141
+ if (old === undefined) {
142
+ queueMat.set(m.location.currentQueue, [m]);
143
+ }
144
+ else {
145
+ old.push(m);
146
+ }
147
+ }
148
+ }
149
+ queueMat.forEach((mats) => mats.sort(mkCompareByProperties((m) => m.location.queuePosition ?? 0)));
150
+ const matCount = freeLoading.length + palFaces.valuesToAscLazySeq().sumBy((x) => x.length);
151
+ return {
152
+ pallet: pal,
153
+ face: palFaces,
154
+ freeLoadingMaterial: freeLoading,
155
+ queues: queueMat,
156
+ elapsedLoadingTime,
157
+ fsize: matCount <= 2 ? "x-large" : matCount <= 6 ? "large" : "normal",
158
+ };
159
+ }
160
+ function MultiInstructionButton({ loadData }) {
161
+ const isDemo = useIsDemo();
162
+ const operator = useAtomValue(currentOperator);
163
+ const urls = useMemo(() => {
164
+ const pal = loadData.pallet;
165
+ if (pal) {
166
+ return LazySeq.of(loadData.face.values())
167
+ .append(loadData.freeLoadingMaterial)
168
+ .concat(loadData.queues.values())
169
+ .flatMap((x) => x)
170
+ .collect((mat) => {
171
+ if (mat.action.type === api.ActionType.Loading &&
172
+ mat.action.loadOntoPalletNum === pal.palletNum &&
173
+ mat.location.type === api.LocType.OnPallet &&
174
+ mat.location.palletNum === pal.palletNum) {
175
+ // transfer, but use unload type
176
+ return instructionUrl(mat.partName, "unload", mat.materialID, pal.palletNum, mat.process, operator);
177
+ }
178
+ else if (mat.action.type === api.ActionType.Loading &&
179
+ mat.action.loadOntoPalletNum === pal.palletNum) {
180
+ return instructionUrl(mat.partName, "load", mat.materialID, pal.palletNum, mat.action.processAfterLoad ?? mat.process, operator);
181
+ }
182
+ else if (mat.location.type === api.LocType.OnPallet &&
183
+ mat.location.palletNum === pal.palletNum &&
184
+ (mat.action.type === api.ActionType.UnloadToCompletedMaterial ||
185
+ mat.action.type === api.ActionType.UnloadToInProcess)) {
186
+ return instructionUrl(mat.partName, "unload", mat.materialID, pal.palletNum, mat.process, operator);
187
+ }
188
+ else {
189
+ return null;
190
+ }
191
+ })
192
+ .toRArray();
193
+ }
194
+ else {
195
+ return [];
196
+ }
197
+ }, [loadData, operator]);
198
+ if (urls.length === 0 || isDemo) {
199
+ return _jsx("div", {});
200
+ }
201
+ function open() {
202
+ for (const url of urls) {
203
+ window.open(url, "_blank");
204
+ }
205
+ }
206
+ return (_jsx(Box, { sx: {
207
+ position: "fixed",
208
+ bottom: "5px",
209
+ right: "5px",
210
+ }, children: _jsx(Tooltip, { title: "Open All Instructions", children: _jsx(Fab, { onClick: open, color: "secondary", children: _jsx(FolderOpenIcon, {}) }) }) }));
211
+ }
212
+ function ElapsedLoadTime({ elapsedLoadTime }) {
213
+ const currentStTime = useAtomValue(currentStatus).timeOfCurrentStatusUTC;
214
+ const secondsSinceEpoch = useAtomValue(secondsSinceEpochAtom);
215
+ if (elapsedLoadTime) {
216
+ const elapsedSecsInCurSt = durationToSeconds(elapsedLoadTime);
217
+ const elapsedSecs = elapsedSecsInCurSt + (secondsSinceEpoch - Math.floor(currentStTime.getTime() / 1000));
218
+ return _jsx("span", { children: formatSeconds(elapsedSecs) });
219
+ }
220
+ else {
221
+ return null;
222
+ }
223
+ }
224
+ function PalletFace({ data, faceNum }) {
225
+ const face = data.face.get(faceNum);
226
+ if (!face || !data.pallet)
227
+ return null;
228
+ return (_jsxs("div", { children: [faceNum === 1 ? (_jsxs(Box, { display: "grid", gridTemplateColumns: data.pallet.numFaces > 1 ? "1fr 1fr 1fr" : "1fr 1fr", children: [_jsxs(Typography, { variant: "h4", children: ["Pallet ", data.pallet.palletNum] }), data.pallet.numFaces > 1 ? (_jsx(Typography, { variant: "h6", justifySelf: "center", children: data.pallet.faceNames?.[faceNum - 1] ?? "Face 1" })) : undefined, _jsx(Box, { justifySelf: "flex-end", children: _jsx(ElapsedLoadTime, { elapsedLoadTime: data.elapsedLoadingTime }) })] })) : data.pallet.numFaces > 1 ? (_jsx(Box, { display: "flex", justifyContent: "center", children: _jsx(Typography, { variant: "h6", children: data.pallet.faceNames?.[faceNum - 1] ?? `Face ${faceNum}` }) })) : undefined, _jsx(Box, { ml: "4em", mr: "4em", children: _jsx(MoveMaterialArrowNode, { kind: { type: MoveMaterialNodeKindType.PalletFaceZone, face: faceNum }, children: _jsx(Box, { display: "flex", flexWrap: "wrap", justifyContent: "space-around", children: face.map((m, idx) => (_jsx(MoveMaterialArrowNode, { kind: { type: MoveMaterialNodeKindType.Material, material: m }, children: _jsx(InProcMaterial, { mat: m, fsize: data.fsize }) }, idx))) }) }) })] }));
229
+ }
230
+ function MaterialRegion({ data, mat, }) {
231
+ return (_jsxs("div", { children: [_jsx(Typography, { variant: "h4", children: mat.label }), mat.material.map((m, matIdx) => (_jsx(MoveMaterialArrowNode, { kind: {
232
+ type: MoveMaterialNodeKindType.Material,
233
+ material: data.pallet && m.action.loadOntoPalletNum === data.pallet.palletNum ? m : null,
234
+ }, children: mat.isFree ? (_jsx(InProcMaterial, { mat: m, displayActionForSinglePallet: data.pallet ? data.pallet.palletNum : 0, fsize: data.fsize, showRawMaterial: true, showJobComment: true })) : (_jsx(SortableInProcMaterial, { mat: m, displayActionForSinglePallet: data.pallet ? data.pallet.palletNum : 0, shake: m.action.type === api.ActionType.Loading &&
235
+ m.action.loadOntoPalletNum === data.pallet?.palletNum, fsize: m.action.type === api.ActionType.Loading &&
236
+ m.action.loadOntoPalletNum === data.pallet?.palletNum
237
+ ? data.fsize
238
+ : undefined, showRawMaterial: true, showJobComment: true })) }, matIdx)))] }));
239
+ }
240
+ function MaterialColumn({ data, region, }) {
241
+ return (_jsx(MoveMaterialArrowNode, { kind: region.isFree
242
+ ? { type: MoveMaterialNodeKindType.FreeMaterialZone }
243
+ : {
244
+ type: MoveMaterialNodeKindType.QueueZone,
245
+ queue: region.label,
246
+ }, children: region.isFree ? (_jsx(MaterialRegion, { data: data, mat: region })) : (_jsx(SortableRegion, { matIds: region.material.map((m) => m.materialID), direction: "vertical", queueName: region.label, renderDragOverlay: (mat) => (_jsx(DragOverlayInProcMaterial, { mat: mat, displayActionForSinglePallet: data.pallet ? data.pallet.palletNum : 0, fsize: mat.action.type === api.ActionType.Loading &&
247
+ mat.action.loadOntoPalletNum === data.pallet?.palletNum
248
+ ? data.fsize
249
+ : undefined })), children: _jsx(MaterialRegion, { data: data, mat: region }) })) }));
250
+ }
251
+ function RecentCompletedMaterial() {
252
+ const matSummary = useAtomValue(last30MaterialSummary);
253
+ const recentCompleted = useMemo(() => {
254
+ const cutoff = addHours(new Date(), -5);
255
+ return matSummary.matsById
256
+ .valuesToLazySeq()
257
+ .filter((e) => e.completed_last_proc_machining === true &&
258
+ e.last_unload_time !== undefined &&
259
+ e.last_unload_time >= cutoff)
260
+ .toSortedArray({ desc: (e) => e.last_unload_time?.getTime() ?? 0 });
261
+ }, [matSummary]);
262
+ return (_jsx("div", { children: recentCompleted.map((m, idx) => (_jsx(MatSummary, { mat: m }, idx))) }));
263
+ }
264
+ const CompletedCol = memo(function CompletedCol({ fillViewPort, showMaterial, }) {
265
+ const ref = useMoveMaterialArrowRef({
266
+ type: showMaterial
267
+ ? MoveMaterialNodeKindType.CompletedExpandedMaterialZone
268
+ : MoveMaterialNodeKindType.CompletedCollapsedMaterialZone,
269
+ });
270
+ if (showMaterial && fillViewPort) {
271
+ return (_jsxs(Box, { padding: "8px", display: "flex", flexDirection: "column", height: "100%", ref: ref, children: [_jsx(Typography, { variant: "h4", children: "Completed" }), _jsx(Box, { position: "relative", flexGrow: 1, children: _jsx(Box, { position: "absolute", top: "0", left: "0", right: "0", bottom: "0", overflow: "auto", children: _jsx(RecentCompletedMaterial, {}) }) })] }));
272
+ }
273
+ else if (showMaterial) {
274
+ return (_jsxs(Box, { padding: "8px", ref: ref, children: [_jsx(Typography, { variant: "h4", children: "Completed" }), _jsx(RecentCompletedMaterial, {})] }));
275
+ }
276
+ else {
277
+ return (_jsx(Box, { display: "flex", justifyContent: fillViewPort ? "flex-end" : undefined, padding: "8px", ref: ref, children: _jsx(Typography, { variant: "h4", margin: "4px", sx: fillViewPort ? { textOrientation: "mixed", writingMode: "vertical-rl" } : undefined, children: "Completed" }) }));
278
+ }
279
+ });
280
+ function InstructionButton({ pallet }) {
281
+ const material = useAtomValue(matDetails.inProcessMaterialInDialog);
282
+ const operator = useAtomValue(currentOperator);
283
+ const demo = useIsDemo();
284
+ if (material === null)
285
+ return null;
286
+ let type;
287
+ if (material.action.type === api.ActionType.Loading && material.action.loadOntoPalletNum === pallet) {
288
+ type = "load";
289
+ }
290
+ else if ((material.action.type === api.ActionType.UnloadToInProcess ||
291
+ material.action.type === api.ActionType.UnloadToCompletedMaterial) &&
292
+ material.location.type === api.LocType.OnPallet &&
293
+ material.location.palletNum === pallet) {
294
+ type = "unload";
295
+ }
296
+ if (type === undefined)
297
+ return null;
298
+ const url = instructionUrl(material.partName, type, material.materialID, pallet, material.action.type === api.ActionType.Loading
299
+ ? (material.action.processAfterLoad ?? material.process)
300
+ : material.process, operator);
301
+ if (demo) {
302
+ return _jsx(Button, { color: "primary", children: "Instructions" });
303
+ }
304
+ else {
305
+ return (_jsx(Button, { href: url, target: "bms-instructions", color: "primary", children: "Instructions" }));
306
+ }
307
+ }
308
+ function AddMatButton({ queues, onClose, toQueue, showAddToQueue, setShowAddToQueue, }) {
309
+ const setMatToShow = useSetAtom(matDetails.materialDialogOpen);
310
+ const lastProcMat = useAtomValue(matDetails.materialInDialogLargestUsedProcess);
311
+ const existingMat = useAtomValue(matDetails.materialInDialogInfo);
312
+ const inProcMat = useAtomValue(matDetails.inProcessMaterialInDialog);
313
+ const operator = useAtomValue(currentOperator);
314
+ const [addExistingMat, addingExistingMat] = matDetails.useAddExistingMaterialToQueue();
315
+ if (!existingMat ||
316
+ inProcMat?.location.type === api.LocType.OnPallet ||
317
+ inProcMat?.action.type === api.ActionType.Loading) {
318
+ return null;
319
+ }
320
+ if (queues.length === 0)
321
+ return null;
322
+ if (inProcMat?.location.type === api.LocType.InQueue &&
323
+ inProcMat?.location.currentQueue &&
324
+ queues.includes(inProcMat?.location.currentQueue)) {
325
+ return null;
326
+ }
327
+ if (!showAddToQueue) {
328
+ return (_jsx(Button, { color: "primary", onClick: () => setShowAddToQueue(true), children: "Add To Queue" }));
329
+ }
330
+ else {
331
+ return (_jsxs(Button, { color: "primary", disabled: toQueue === null || addingExistingMat === true, onClick: () => {
332
+ addExistingMat({
333
+ materialId: existingMat.materialID,
334
+ queue: toQueue ?? "",
335
+ queuePosition: -1,
336
+ operator: operator,
337
+ });
338
+ setMatToShow(null);
339
+ onClose();
340
+ }, children: ["Add To ", toQueue ?? "Queue", " ", lastProcMat ? ` To Run Process ${lastProcMat.process + 1}` : ""] }));
341
+ }
342
+ }
343
+ function AssignWorkorderButton() {
344
+ const fmsInfo = useAtomValue(fmsInformation);
345
+ const setWorkorderDialogOpen = useSetAtom(selectWorkorderDialogOpen);
346
+ const mat = useAtomValue(matDetails.materialInDialogInfo);
347
+ if (!fmsInfo.allowChangeWorkorderAtLoadStation) {
348
+ return null;
349
+ }
350
+ if (mat === null || mat.materialID < 0) {
351
+ return null;
352
+ }
353
+ return (_jsx(Button, { color: "primary", onClick: () => setWorkorderDialogOpen(true), children: "Assign Workorder" }));
354
+ }
355
+ const LoadMatDialog = memo(function LoadMatDialog(props) {
356
+ const [swapSt, setSwapSt] = useState(null);
357
+ const [invalidateSt, setInvalidateSt] = useState(null);
358
+ // add material state
359
+ const [showAddMaterial, setShowAddMaterial] = useState(false);
360
+ const [selectedQueue, setSelectedQueue] = useState(null);
361
+ const onClose = useCallback(function onClose() {
362
+ setSwapSt(null);
363
+ setInvalidateSt(null);
364
+ setShowAddMaterial(false);
365
+ setSelectedQueue(null);
366
+ }, [setSwapSt, setInvalidateSt]);
367
+ return (_jsx(MaterialDialog, { onClose: onClose, allowNote: true, highlightProcsGreaterOrEqualTo: invalidateSt?.process ?? undefined, extraDialogElements: _jsxs(_Fragment, { children: [_jsx(SwapMaterialDialogContent, { st: swapSt, setState: setSwapSt }), invalidateSt !== null ? (_jsx(InvalidateCycleDialogContent, { st: invalidateSt, setState: setInvalidateSt })) : null, showAddMaterial ? (_jsx(PromptForQueue, { selectedQueue: selectedQueue, setSelectedQueue: setSelectedQueue, queueNames: props.queues })) : undefined] }), buttons: _jsxs(_Fragment, { children: [_jsx(InstructionButton, { pallet: props.pallet }), _jsx(PrintLabelButton, {}), _jsx(QuarantineMatButton, {}), _jsx(SignalInspectionButton, {}), _jsx(AddMatButton, { toQueue: selectedQueue, queues: props.queues, onClose: onClose, showAddToQueue: showAddMaterial, setShowAddToQueue: setShowAddMaterial }), _jsx(SwapMaterialButtons, { st: swapSt, setState: setSwapSt, onClose: onClose }), _jsx(InvalidateCycleDialogButton, { st: invalidateSt, setState: setInvalidateSt, onClose: onClose, loadStation: true }), _jsx(AssignWorkorderButton, {})] }) }));
368
+ });
369
+ function useGridLayout({ numMatCols, maxNumFaces, horizontal, showMatInCompleted, }) {
370
+ let rows = "";
371
+ let cols = "";
372
+ if (maxNumFaces <= 0)
373
+ maxNumFaces = 1;
374
+ if (horizontal) {
375
+ let colNames = "";
376
+ for (let i = 0; i < numMatCols; i++) {
377
+ cols += "minmax(16em, max-content) ";
378
+ colNames += `mat${i} `;
379
+ }
380
+ cols += "1fr ";
381
+ if (showMatInCompleted) {
382
+ cols += "minmax(16em, max-content)";
383
+ }
384
+ else {
385
+ cols += " 4.5em";
386
+ }
387
+ for (let i = 0; i < maxNumFaces; i++) {
388
+ rows += `"${colNames} palface${i} completed" 1fr\n`;
389
+ }
390
+ }
391
+ else {
392
+ cols = "1fr";
393
+ for (let i = 0; i < numMatCols; i++) {
394
+ rows += `"mat${i}" minmax(134px, max-content)\n`;
395
+ }
396
+ for (let i = 0; i < maxNumFaces; i++) {
397
+ rows += `"palface${i}" minmax(134px, max-content)\n`;
398
+ }
399
+ rows += '"completed" minmax(134px, max-content)\n';
400
+ }
401
+ return `${rows} / ${cols}`;
402
+ }
403
+ export function LoadStation(props) {
404
+ const currentSt = useAtomValue(currentStatus);
405
+ const data = useMemo(() => selectLoadStationAndQueueProps(props.loadNum, props.queues, currentSt), [currentSt, props.loadNum, props.queues]);
406
+ let matColsSeq = LazySeq.of(data.queues)
407
+ .sortBy(([q, _]) => q)
408
+ .map(([q, mats]) => ({
409
+ label: q,
410
+ material: mats,
411
+ isFree: false,
412
+ }));
413
+ if (data.queues.size === 0 || data.freeLoadingMaterial.length > 0) {
414
+ matColsSeq = matColsSeq.append({
415
+ label: "Material",
416
+ material: data.freeLoadingMaterial,
417
+ isFree: true,
418
+ });
419
+ }
420
+ const matCols = matColsSeq.toRArray();
421
+ const numNonPalCols = matCols.length + (props.completed ? 1 : 0);
422
+ const fillViewPort = useMediaQuery(numNonPalCols <= 1
423
+ ? "(min-width: 720px)"
424
+ : numNonPalCols === 2
425
+ ? "(min-width: 1030px)"
426
+ : "(min-width: 1320px)");
427
+ const grid = useGridLayout({
428
+ numMatCols: matCols.length,
429
+ maxNumFaces: data.face.size,
430
+ horizontal: fillViewPort,
431
+ showMatInCompleted: props.completed,
432
+ });
433
+ return (_jsx(MoveMaterialArrowContainer, { hideArrows: !fillViewPort, children: _jsxs(Box, { component: "main", sx: {
434
+ width: "100%",
435
+ bgcolor: props.whiteBackground ? "white" : "#F8F8F8",
436
+ display: "grid",
437
+ gridTemplate: grid,
438
+ minHeight: {
439
+ xs: "calc(100vh - 64px - 32px)",
440
+ sm: "calc(100vh - 64px - 40px)",
441
+ md: "calc(100vh - 64px)",
442
+ },
443
+ padding: fillViewPort ? undefined : "8px",
444
+ }, children: [matCols.map((col, idx) => (_jsx(Box, { gridArea: `mat${idx}`, padding: "8px", borderRight: fillViewPort ? "1px solid black" : undefined, borderBottom: !fillViewPort ? "1px solid black" : undefined, children: _jsx(MaterialColumn, { data: data, region: col }) }, idx))), data.face.keysToAscLazySeq().map((faceNum, idx) => (_jsx(Box, { marginLeft: "15px", gridArea: `palface${idx}`, padding: "8px", borderTop: data.pallet && idx !== 0 ? "1px solid black" : undefined, children: _jsx(PalletFace, { data: data, faceNum: faceNum }) }, faceNum))), _jsx(Box, { borderLeft: fillViewPort ? "1px solid black" : undefined, borderTop: !fillViewPort ? "1px solid black" : undefined, gridArea: "completed", children: _jsx(CompletedCol, { fillViewPort: fillViewPort, showMaterial: props.completed }) }), _jsx(MultiInstructionButton, { loadData: data }), _jsx(SelectWorkorderDialog, {}), _jsx(SelectInspTypeDialog, {}), _jsx(LoadMatDialog, { pallet: data.pallet?.palletNum ?? null, queues: props.queues })] }) }));
445
+ }
446
+ function LoadStationCheckWidth(props) {
447
+ useSetTitle("Load " + props.loadNum.toString());
448
+ return _jsx(LoadStation, { ...props });
449
+ }
450
+ export default LoadStationCheckWidth;
@@ -0,0 +1,77 @@
1
+ import { ComponentType, PureComponent, ReactNode } from "react";
2
+ import * as api from "../../network/api.js";
3
+ import { MaterialSummaryAndCompletedData } from "../../cell-status/material-summary.js";
4
+ export declare class PartIdenticon extends PureComponent<{
5
+ part: string;
6
+ size?: number;
7
+ }> {
8
+ render(): import("react/jsx-runtime").JSX.Element;
9
+ }
10
+ export type MatCardFontSize = "normal" | "large" | "x-large";
11
+ export declare function MaterialAction({ mat, displayActionForSinglePallet, fsize, }: {
12
+ mat: Readonly<api.IInProcessMaterial>;
13
+ displayActionForSinglePallet?: number;
14
+ fsize?: MatCardFontSize;
15
+ }): ReactNode | null;
16
+ export declare function WorkorderFromBarcode(): import("react/jsx-runtime").JSX.Element | null;
17
+ export interface MaterialSummaryProps {
18
+ readonly mat: Readonly<MaterialSummaryAndCompletedData>;
19
+ readonly inProcMat?: Readonly<api.IInProcessMaterial>;
20
+ readonly fsize?: MatCardFontSize;
21
+ readonly displayActionForSinglePallet?: number;
22
+ readonly focusInspectionType?: string | null;
23
+ readonly hideWarningIcon?: boolean;
24
+ readonly displayJob?: boolean;
25
+ readonly showJobComment?: boolean;
26
+ readonly hideAvatar?: boolean;
27
+ readonly hideEmptySerial?: boolean;
28
+ readonly showRawMaterial?: boolean;
29
+ }
30
+ export declare const MatSummary: ComponentType<MaterialSummaryProps>;
31
+ export type InProcMaterialProps = {
32
+ readonly mat: Readonly<api.IInProcessMaterial>;
33
+ readonly fsize?: MatCardFontSize;
34
+ readonly displayActionForSinglePallet?: number;
35
+ readonly displayJob?: boolean;
36
+ readonly hideAvatar?: boolean;
37
+ readonly hideEmptySerial?: boolean;
38
+ readonly showRawMaterial?: boolean;
39
+ readonly showJobComment?: boolean;
40
+ };
41
+ export type ShakeProp = {
42
+ readonly shake?: boolean;
43
+ };
44
+ export declare const InProcMaterial: import("react").NamedExoticComponent<InProcMaterialProps & ShakeProp & {
45
+ readonly showHandle?: boolean;
46
+ }>;
47
+ export type SortableMatData = {
48
+ readonly mat: Readonly<api.IInProcessMaterial>;
49
+ };
50
+ export declare const SortableInProcMaterial: import("react").NamedExoticComponent<InProcMaterialProps & ShakeProp>;
51
+ export declare function DragOverlayInProcMaterial(props: InProcMaterialProps): import("react/jsx-runtime").JSX.Element;
52
+ export interface MultiMaterialProps {
53
+ readonly partOrCasting: string;
54
+ readonly fsize?: MatCardFontSize;
55
+ readonly assignedJobUnique: string | null;
56
+ readonly material: ReadonlyArray<Readonly<api.IInProcessMaterial>>;
57
+ onOpen: () => void;
58
+ }
59
+ export declare const MultiMaterial: import("react").NamedExoticComponent<MultiMaterialProps>;
60
+ export declare const MaterialDetailTitle: import("react").NamedExoticComponent<{
61
+ partName: string;
62
+ serial?: string | null;
63
+ subtitle?: string;
64
+ notes?: boolean;
65
+ }>;
66
+ export declare const MaterialDetailContent: import("react").NamedExoticComponent<{
67
+ highlightProcsGreaterOrEqualTo?: number;
68
+ }>;
69
+ export declare function MaterialLoading(): import("react/jsx-runtime").JSX.Element | null;
70
+ export interface MaterialDialogProps {
71
+ buttons?: ReactNode;
72
+ onClose?: () => void;
73
+ allowNote?: boolean;
74
+ extraDialogElements?: ReactNode;
75
+ highlightProcsGreaterOrEqualTo?: number;
76
+ }
77
+ export declare const MaterialDialog: import("react").NamedExoticComponent<MaterialDialogProps>;