@seedtactics/insight-client 17.0.11 → 17.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-UxwWou4m.js +92 -0
- package/dist/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/assets/vendor-DxpZ1E10.js +275 -0
- package/dist/components/operations/Rebookings.js +10 -11
- package/dist/fms-insight-api.json +1 -1
- package/dist/index.html +4 -2
- package/dist/network/api.js +1 -1
- package/package.json +6 -6
- package/dist/assets/index-BKr-hck2.js +0 -366
- /package/dist/assets/{index-DXfAwuj-.css → vendor-DXfAwuj-.css} +0 -0
|
@@ -180,7 +180,8 @@ const NewRebookingDialog = memo(function NewRebookingDialog() {
|
|
|
180
180
|
const [rebooking, setRebooking] = useState({ part: "" });
|
|
181
181
|
const partNames = useAtomValue(partNamesAtom);
|
|
182
182
|
const [createNew, creating] = useNewRebooking();
|
|
183
|
-
const
|
|
183
|
+
const part = rebooking.part.trim();
|
|
184
|
+
const allowCreate = part !== "" && (rebooking.qty ?? 0) > 0;
|
|
184
185
|
function close() {
|
|
185
186
|
setOpen(false);
|
|
186
187
|
setRebooking({ part: "" });
|
|
@@ -189,21 +190,19 @@ const NewRebookingDialog = memo(function NewRebookingDialog() {
|
|
|
189
190
|
if (!allowCreate) {
|
|
190
191
|
return;
|
|
191
192
|
}
|
|
192
|
-
createNew(rebooking)
|
|
193
|
+
createNew({ ...rebooking, part })
|
|
194
|
+
.then(close)
|
|
195
|
+
.catch(console.log);
|
|
193
196
|
}
|
|
194
|
-
return (_jsxs(_Fragment, { children: [_jsxs(Dialog, { open: open, onClose: close, children: [_jsx(DialogTitle, { children: "Create New" }), _jsx(DialogContent, { children: _jsxs(Stack, { direction: "column", spacing: 2, sx: { mt: "0.5em", minWidth: "25em" }, children: [_jsx(Autocomplete, { freeSolo: true, selectOnFocus: true,
|
|
197
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Dialog, { open: open, onClose: close, children: [_jsx(DialogTitle, { children: "Create New" }), _jsx(DialogContent, { children: _jsxs(Stack, { direction: "column", spacing: 2, sx: { mt: "0.5em", minWidth: "25em" }, children: [_jsx(Autocomplete, { freeSolo: true, selectOnFocus: true, handleHomeEndKeys: true, disableClearable: true, forcePopupIcon: true, options: partNames, inputValue: rebooking.part, onInputChange: (_, v) => setRebooking((r) => ({ ...r, part: v })), renderInput: (params) => (_jsx(TextField, { ...params, label: "Part Name", slotProps: {
|
|
198
|
+
...params.slotProps,
|
|
195
199
|
input: {
|
|
196
200
|
...params.slotProps.input,
|
|
197
|
-
startAdornment: (_jsxs(_Fragment, { children: [
|
|
201
|
+
startAdornment: (_jsxs(_Fragment, { children: [part !== "" ? (_jsx(InputAdornment, { position: "start", children: _jsx(PartIdenticon, { part: part, size: 25 }) })) : undefined, params.slotProps.input?.startAdornment] })),
|
|
198
202
|
},
|
|
199
|
-
} })), renderOption: (props, option) => (_jsx("li", { ...props, children: _jsxs(Stack, { direction: "row", spacing: "1", sx: {
|
|
203
|
+
} })), renderOption: ({ key, ...props }, option) => (_jsx("li", { ...props, children: _jsxs(Stack, { direction: "row", spacing: "1", sx: {
|
|
200
204
|
alignItems: "center",
|
|
201
|
-
}, children: [_jsx(PartIdenticon, { part: option, size: 25 }), option] }) })),
|
|
202
|
-
const filtered = options.filter((o) => o.toLowerCase().includes(params.inputValue.toLowerCase()));
|
|
203
|
-
return filtered.length === 0 && params.inputValue !== ""
|
|
204
|
-
? [params.inputValue]
|
|
205
|
-
: filtered;
|
|
206
|
-
} }), _jsx(TextField, { label: "Quantity", type: "number", value: rebooking.qty && !isNaN(rebooking.qty) ? rebooking.qty : "", onChange: (e) => setRebooking((r) => ({ ...r, qty: parseInt(e.target.value) })) }), _jsx(TextField, { label: "Priority (optional)", type: "number", value: rebooking.priority && !isNaN(rebooking.priority) ? rebooking.priority : "", onChange: (e) => setRebooking((r) => ({ ...r, priority: parseInt(e.target.value) })) }), _jsx(TextField, { label: "Workorder (optional)", value: rebooking.workorder ?? "", onChange: (e) => setRebooking((r) => ({ ...r, workorder: e.target.value })) }), _jsx(TextField, { label: "Notes (optional)", multiline: true, minRows: 2, value: rebooking.notes ?? "", onChange: (e) => setRebooking((r) => ({ ...r, notes: e.target.value })) })] }) }), _jsxs(DialogActions, { children: [_jsxs(Button, { color: "secondary", onClick: create, disabled: !allowCreate || creating, children: [creating ? _jsx(CircularProgress, { size: 24 }) : undefined, "Create"] }), _jsx(Button, { onClick: close, children: "Cancel" })] })] }), _jsx(Tooltip, { title: "Add Rebooking", children: _jsx(Fab, { onClick: () => setOpen(true), sx: { position: "fixed", bottom: "24px", right: "24px" }, color: "primary", children: _jsx(Add, {}) }) })] }));
|
|
205
|
+
}, children: [_jsx(PartIdenticon, { part: option, size: 25 }), option] }) }, key)) }), _jsx(TextField, { label: "Quantity", type: "number", value: rebooking.qty && !isNaN(rebooking.qty) ? rebooking.qty : "", onChange: (e) => setRebooking((r) => ({ ...r, qty: parseInt(e.target.value) })) }), _jsx(TextField, { label: "Priority (optional)", type: "number", value: rebooking.priority && !isNaN(rebooking.priority) ? rebooking.priority : "", onChange: (e) => setRebooking((r) => ({ ...r, priority: parseInt(e.target.value) })) }), _jsx(TextField, { label: "Workorder (optional)", value: rebooking.workorder ?? "", onChange: (e) => setRebooking((r) => ({ ...r, workorder: e.target.value })) }), _jsx(TextField, { label: "Notes (optional)", multiline: true, minRows: 2, value: rebooking.notes ?? "", onChange: (e) => setRebooking((r) => ({ ...r, notes: e.target.value })) })] }) }), _jsxs(DialogActions, { children: [_jsxs(Button, { color: "secondary", onClick: create, disabled: !allowCreate || creating, children: [creating ? _jsx(CircularProgress, { size: 24 }) : undefined, "Create"] }), _jsx(Button, { onClick: close, children: "Cancel" })] })] }), _jsx(Tooltip, { title: "Add Rebooking", children: _jsx(Fab, { onClick: () => setOpen(true), sx: { position: "fixed", bottom: "24px", right: "24px" }, color: "primary", children: _jsx(Add, {}) }) })] }));
|
|
207
206
|
});
|
|
208
207
|
const FilterDialog = memo(function UnschFilterDialog() {
|
|
209
208
|
const [open, setOpen] = useAtom(filterDialogOpen);
|
package/dist/index.html
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
<link rel="shortcut icon" href="/assets/favicon-gWFxiJK2.ico" />
|
|
7
7
|
<title>SeedTactic FMS Insight</title>
|
|
8
8
|
<style type="text/css">.download-loader{width:100px;height:100px;display:inline-block}.download-circular{width:100px;height:100px;animation:2s linear infinite rotate}.download-path{stroke-dasharray:1 200;stroke-dashoffset:0;stroke-linecap:round;stroke:#8d6e63;animation:1.5s ease-out infinite dash}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1 200;stroke-dashoffset:0}50%{stroke-dasharray:89 200;stroke-dashoffset:-35px}to{stroke-dasharray:89 200;stroke-dashoffset:-124px}}</style>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
-
<link rel="
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-UxwWou4m.js"></script>
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-DxpZ1E10.js">
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/vendor-DXfAwuj-.css">
|
|
11
13
|
</head>
|
|
12
14
|
<body>
|
|
13
15
|
<noscript> You need to enable JavaScript to run this app. </noscript>
|
package/dist/network/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//----------------------
|
|
2
2
|
// <auto-generated>
|
|
3
|
-
// Generated using the NSwag toolchain v14.
|
|
3
|
+
// Generated using the NSwag toolchain v14.8.0.0 (NJsonSchema v11.6.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
4
4
|
// </auto-generated>
|
|
5
5
|
//----------------------
|
|
6
6
|
/* eslint-disable */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seedtactics/insight-client",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.1.1",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/SeedTactics/fms-insight"
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"@types/d3-shape": "^3.2.0",
|
|
62
62
|
"@types/react": "^19.3.0",
|
|
63
63
|
"@types/react-dom": "^19.3.0",
|
|
64
|
-
"@vitejs/plugin-react": "^6.
|
|
64
|
+
"@vitejs/plugin-react": "^6.3.0",
|
|
65
65
|
"@vitest/browser-playwright": "^5.1.0",
|
|
66
|
-
"jotai": "^3.0.
|
|
67
|
-
"jsdom": "^
|
|
68
|
-
"playwright": "^1.
|
|
66
|
+
"jotai": "^3.0.2",
|
|
67
|
+
"jsdom": "^31.0.0",
|
|
68
|
+
"playwright": "^1.65.0",
|
|
69
69
|
"react": "^19.3.1",
|
|
70
70
|
"react-dom": "^19.3.1",
|
|
71
|
-
"vite": "^8.3.
|
|
71
|
+
"vite": "^8.3.8",
|
|
72
72
|
"vitest": "^5.1.0",
|
|
73
73
|
"vitest-browser-react": "^2.3.0"
|
|
74
74
|
},
|