@burdenoff/microfe-labsofscience 2026.820.5 → 2026.829.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.
Files changed (82) hide show
  1. package/dist/labsofscience/LabsOfScienceRoot.d.ts.map +1 -1
  2. package/dist/labsofscience/LabsOfScienceRoot.js +54 -57
  3. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  4. package/dist/labsofscience/components/BottomNav.d.ts.map +1 -1
  5. package/dist/labsofscience/components/BottomNav.js +67 -63
  6. package/dist/labsofscience/components/BottomNav.js.map +1 -1
  7. package/dist/labsofscience/hooks/index.d.ts +2 -1
  8. package/dist/labsofscience/hooks/index.d.ts.map +1 -1
  9. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts +11 -2
  10. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts.map +1 -1
  11. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +84 -54
  12. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  13. package/dist/labsofscience/hooks/useTr.d.ts +17 -0
  14. package/dist/labsofscience/hooks/useTr.d.ts.map +1 -0
  15. package/dist/labsofscience/hooks/useTr.js +14 -0
  16. package/dist/labsofscience/hooks/useTr.js.map +1 -0
  17. package/dist/labsofscience/pages/OverviewPage.d.ts.map +1 -1
  18. package/dist/labsofscience/pages/OverviewPage.js +187 -161
  19. package/dist/labsofscience/pages/OverviewPage.js.map +1 -1
  20. package/dist/labsofscience/pages/ai/aiReaders.d.ts +28 -0
  21. package/dist/labsofscience/pages/ai/aiReaders.d.ts.map +1 -1
  22. package/dist/labsofscience/pages/ai/aiReaders.js +14 -1
  23. package/dist/labsofscience/pages/ai/aiReaders.js.map +1 -1
  24. package/dist/labsofscience/pages/analytics/AnalyticsPage.d.ts.map +1 -1
  25. package/dist/labsofscience/pages/analytics/AnalyticsPage.js +168 -106
  26. package/dist/labsofscience/pages/analytics/AnalyticsPage.js.map +1 -1
  27. package/dist/labsofscience/pages/datasets/DatasetDetailPage.d.ts.map +1 -1
  28. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +98 -78
  29. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -1
  30. package/dist/labsofscience/pages/datasets/DatasetsListPage.d.ts.map +1 -1
  31. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +129 -128
  32. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -1
  33. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.d.ts +25 -0
  34. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.d.ts.map +1 -0
  35. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.js +104 -0
  36. package/dist/labsofscience/pages/experiments/AcceptRecommendationDialog.js.map +1 -0
  37. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.d.ts +30 -0
  38. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.d.ts.map +1 -0
  39. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.js +151 -0
  40. package/dist/labsofscience/pages/experiments/ExperimentAiPanel.js.map +1 -0
  41. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.d.ts.map +1 -1
  42. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +25 -17
  43. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -1
  44. package/dist/labsofscience/pages/experiments/ExperimentsListPage.d.ts.map +1 -1
  45. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +168 -131
  46. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -1
  47. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.d.ts +10 -2
  48. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.d.ts.map +1 -1
  49. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js +165 -53
  50. package/dist/labsofscience/pages/instruments/BookInstrumentDialog.js.map +1 -1
  51. package/dist/labsofscience/pages/instruments/InstrumentsListPage.d.ts.map +1 -1
  52. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +171 -134
  53. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -1
  54. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.d.ts.map +1 -1
  55. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +171 -54
  56. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -1
  57. package/dist/labsofscience/pages/inventory/InventoryListPage.d.ts.map +1 -1
  58. package/dist/labsofscience/pages/inventory/InventoryListPage.js +169 -147
  59. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -1
  60. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js +4 -4
  61. package/dist/labsofscience/pages/notebook/NotebookListPage.d.ts.map +1 -1
  62. package/dist/labsofscience/pages/notebook/NotebookListPage.js +123 -122
  63. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -1
  64. package/dist/labsofscience/pages/pipelines/PipelinesPage.d.ts.map +1 -1
  65. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +172 -123
  66. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -1
  67. package/dist/labsofscience/pages/projects/ProjectsListPage.d.ts.map +1 -1
  68. package/dist/labsofscience/pages/projects/ProjectsListPage.js +141 -131
  69. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -1
  70. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.d.ts.map +1 -1
  71. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +186 -124
  72. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -1
  73. package/dist/labsofscience/pages/protocols/ProtocolsListPage.d.ts.map +1 -1
  74. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +123 -122
  75. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -1
  76. package/dist/labsofscience/types/index.d.ts +20 -0
  77. package/dist/labsofscience/types/index.d.ts.map +1 -1
  78. package/dist/labsofscience/utils/formatters.d.ts +13 -0
  79. package/dist/labsofscience/utils/formatters.d.ts.map +1 -1
  80. package/dist/labsofscience/utils/formatters.js +28 -7
  81. package/dist/labsofscience/utils/formatters.js.map +1 -1
  82. package/package.json +1 -1
@@ -1,194 +1,216 @@
1
- import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.js";
2
- import { cn as t } from "../../utils/cn.js";
3
- import { PageLayout as n } from "../../components/PageLayout.js";
4
- import { StatusBadge as r } from "../../components/StatusBadge.js";
5
- import { QueryBoundary as i } from "../../components/QueryStates.js";
6
- import { useInventoryItems as a } from "../../hooks/useLabsOfScienceApi.js";
7
- import { formatDateShort as o, titleCase as s } from "../../utils/formatters.js";
8
- import { EmptyState as c } from "../../components/EmptyState.js";
9
- import { ListSearchInput as l } from "../../components/ListSearchInput.js";
10
- import { useDebouncedValue as u } from "../../utils/useDebouncedValue.js";
11
- import { InventoryFormDialog as d } from "./InventoryFormDialog.js";
12
- import { useState as f } from "react";
13
- import { Boxes as p, Plus as m } from "lucide-react";
14
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
15
- import { Button as v, Pagination as y, ResponsiveTable as b, Select as x, SelectContent as S, SelectItem as C, SelectTrigger as w, SelectValue as T } from "@burdenoff/fe-libs/ui";
1
+ import { useTr as e } from "../../hooks/useTr.js";
2
+ import { useLabsOfScience as t } from "../../context/LabsOfScienceContext.js";
3
+ import { cn as n } from "../../utils/cn.js";
4
+ import { PageLayout as r } from "../../components/PageLayout.js";
5
+ import { StatusBadge as i } from "../../components/StatusBadge.js";
6
+ import { QueryBoundary as a } from "../../components/QueryStates.js";
7
+ import { useInventoryItems as o } from "../../hooks/useLabsOfScienceApi.js";
8
+ import { formatDateShort as s, titleCase as c } from "../../utils/formatters.js";
9
+ import { EmptyState as l } from "../../components/EmptyState.js";
10
+ import { ListSearchInput as u } from "../../components/ListSearchInput.js";
11
+ import { useDebouncedValue as d } from "../../utils/useDebouncedValue.js";
12
+ import { InventoryFormDialog as f } from "./InventoryFormDialog.js";
13
+ import { useState as p } from "react";
14
+ import { Boxes as m, Plus as h } from "lucide-react";
15
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
16
+ import { Button as y, Pagination as b, ResponsiveTable as x, Select as S, SelectContent as C, SelectItem as w, SelectTrigger as T, SelectValue as E } from "@burdenoff/fe-libs/ui";
16
17
  //#region src/labsofscience/pages/inventory/InventoryListPage.tsx
17
- var E = 20, D = [
18
+ var D = 20, O = [
18
19
  "REAGENT",
19
20
  "CONSUMABLE",
20
21
  "SAMPLE",
21
22
  "CHEMICAL",
22
23
  "BIOLOGICAL",
23
24
  "EQUIPMENT_PART"
24
- ], O = [
25
+ ], k = [
25
26
  "IN_STOCK",
26
27
  "LOW",
27
28
  "OUT_OF_STOCK",
28
29
  "EXPIRED",
29
30
  "QUARANTINED"
30
31
  ];
31
- function k() {
32
- let { navigateTo: k } = e(), [A, j] = f(1), [M, N] = f("ALL"), [P, F] = f("ALL"), [I, L] = f(""), [R, z] = f(!1), B = u(I.trim()), V = a({
33
- category: M === "ALL" ? void 0 : M,
34
- status: P === "ALL" ? void 0 : P,
35
- search: B || void 0,
32
+ function A() {
33
+ let { navigateTo: A } = t(), j = e(), [M, N] = p(1), [P, F] = p("ALL"), [I, L] = p("ALL"), [R, z] = p(""), [B, V] = p(!1), H = d(R.trim()), U = o({
34
+ category: P === "ALL" ? void 0 : P,
35
+ status: I === "ALL" ? void 0 : I,
36
+ search: H || void 0,
36
37
  pagination: {
37
- limit: E,
38
- offset: (A - 1) * E
38
+ limit: D,
39
+ offset: (M - 1) * D
39
40
  }
40
- }), H = V.data?.items ?? [], U = V.data?.pageInfo.hasMore ?? !1;
41
- return /* @__PURE__ */ _(n, {
42
- title: "Inventory",
43
- description: "Reagents, samples, and consumables with auto-derived stock status.",
44
- actions: /* @__PURE__ */ _(v, {
45
- onClick: () => z(!0),
46
- children: [/* @__PURE__ */ g(m, { className: "mr-2 h-4 w-4" }), "New item"]
41
+ }), W = U.data?.items ?? [], G = U.data?.pageInfo.hasMore ?? !1, K = [
42
+ {
43
+ key: "name",
44
+ header: j("labsofscience.inventory.column.item", "Item"),
45
+ priority: "primary",
46
+ cell: (e) => /* @__PURE__ */ v("div", {
47
+ className: "min-w-0",
48
+ children: [/* @__PURE__ */ _("p", {
49
+ className: "truncate font-medium text-text-primary",
50
+ children: e.name
51
+ }), e.catalogNumber && /* @__PURE__ */ _("p", {
52
+ className: "text-xs text-text-tertiary",
53
+ children: e.catalogNumber
54
+ })]
55
+ })
56
+ },
57
+ {
58
+ key: "category",
59
+ header: j("labsofscience.inventory.column.category", "Category"),
60
+ cell: (e) => /* @__PURE__ */ _("span", {
61
+ className: "text-text-secondary",
62
+ children: c(e.category)
63
+ })
64
+ },
65
+ {
66
+ key: "quantity",
67
+ header: j("labsofscience.inventory.column.quantity", "Quantity"),
68
+ cell: (e) => /* @__PURE__ */ v("span", {
69
+ className: n("tabular-nums", e.quantity <= e.reorderLevel ? "text-status-warning-text" : "text-text-secondary"),
70
+ children: [
71
+ e.quantity,
72
+ " ",
73
+ e.unit
74
+ ]
75
+ })
76
+ },
77
+ {
78
+ key: "reorderLevel",
79
+ header: j("labsofscience.inventory.column.reorderLevel", "Reorder level"),
80
+ priority: "hidden-on-mobile",
81
+ cell: (e) => /* @__PURE__ */ v("span", {
82
+ className: "tabular-nums text-text-secondary",
83
+ children: [
84
+ e.reorderLevel,
85
+ " ",
86
+ e.unit
87
+ ]
88
+ })
89
+ },
90
+ {
91
+ key: "status",
92
+ header: j("labsofscience.inventory.column.status", "Status"),
93
+ priority: "primary",
94
+ cell: (e) => /* @__PURE__ */ _(i, { status: e.status })
95
+ },
96
+ {
97
+ key: "expiresAt",
98
+ header: j("labsofscience.inventory.column.expiry", "Expiry"),
99
+ cell: (e) => /* @__PURE__ */ _("span", {
100
+ className: e.status === "EXPIRED" ? "text-status-error-text" : "text-text-secondary",
101
+ children: s(e.expiresAt)
102
+ })
103
+ },
104
+ {
105
+ key: "location",
106
+ header: j("labsofscience.inventory.column.location", "Location"),
107
+ priority: "hidden-on-mobile",
108
+ cell: (e) => /* @__PURE__ */ _("span", {
109
+ className: "text-text-secondary",
110
+ children: e.location ?? "—"
111
+ })
112
+ },
113
+ {
114
+ key: "updatedAt",
115
+ header: j("labsofscience.inventory.column.updated", "Updated"),
116
+ priority: "hidden-on-mobile",
117
+ cell: (e) => /* @__PURE__ */ _("span", {
118
+ className: "text-text-secondary",
119
+ children: s(e.updatedAt)
120
+ })
121
+ }
122
+ ];
123
+ return /* @__PURE__ */ v(r, {
124
+ title: j("labsofscience.inventory.title", "Inventory"),
125
+ description: j("labsofscience.inventory.description", "Reagents, samples, and consumables with auto-derived stock status."),
126
+ actions: /* @__PURE__ */ v(y, {
127
+ onClick: () => V(!0),
128
+ children: [/* @__PURE__ */ _(h, { className: "mr-2 h-4 w-4" }), j("labsofscience.inventory.newButton", "New item")]
47
129
  }),
48
- children: [/* @__PURE__ */ _("div", {
130
+ children: [/* @__PURE__ */ v("div", {
49
131
  className: "space-y-4",
50
- children: [/* @__PURE__ */ _("div", {
132
+ children: [/* @__PURE__ */ v("div", {
51
133
  className: "flex flex-wrap items-center gap-3",
52
134
  children: [
53
- /* @__PURE__ */ g(l, {
54
- value: I,
55
- ariaLabel: "Search inventory",
56
- placeholder: "Search inventory…",
135
+ /* @__PURE__ */ _(u, {
136
+ value: R,
137
+ ariaLabel: j("labsofscience.inventory.searchAria", "Search inventory"),
138
+ placeholder: j("labsofscience.inventory.searchPlaceholder", "Search inventory…"),
57
139
  onChange: (e) => {
58
- L(e), j(1);
140
+ z(e), N(1);
59
141
  }
60
142
  }),
61
- /* @__PURE__ */ _(x, {
62
- value: M,
143
+ /* @__PURE__ */ v(S, {
144
+ value: P,
63
145
  onValueChange: (e) => {
64
- N(e), j(1);
146
+ F(e), N(1);
65
147
  },
66
- children: [/* @__PURE__ */ g(w, {
148
+ children: [/* @__PURE__ */ _(T, {
67
149
  className: "w-full sm:w-48",
68
- "aria-label": "Filter by category",
69
- children: /* @__PURE__ */ g(T, { placeholder: "All categories" })
70
- }), /* @__PURE__ */ _(S, { children: [/* @__PURE__ */ g(C, {
150
+ "aria-label": j("labsofscience.inventory.categoryFilterAria", "Filter by category"),
151
+ children: /* @__PURE__ */ _(E, { placeholder: j("labsofscience.inventory.allCategories", "All categories") })
152
+ }), /* @__PURE__ */ v(C, { children: [/* @__PURE__ */ _(w, {
71
153
  value: "ALL",
72
- children: "All categories"
73
- }), D.map((e) => /* @__PURE__ */ g(C, {
154
+ children: j("labsofscience.inventory.allCategories", "All categories")
155
+ }), O.map((e) => /* @__PURE__ */ _(w, {
74
156
  value: e,
75
- children: s(e)
157
+ children: c(e)
76
158
  }, e))] })]
77
159
  }),
78
- /* @__PURE__ */ _(x, {
79
- value: P,
160
+ /* @__PURE__ */ v(S, {
161
+ value: I,
80
162
  onValueChange: (e) => {
81
- F(e), j(1);
163
+ L(e), N(1);
82
164
  },
83
- children: [/* @__PURE__ */ g(w, {
165
+ children: [/* @__PURE__ */ _(T, {
84
166
  className: "w-full sm:w-48",
85
- "aria-label": "Filter by status",
86
- children: /* @__PURE__ */ g(T, { placeholder: "All statuses" })
87
- }), /* @__PURE__ */ _(S, { children: [/* @__PURE__ */ g(C, {
167
+ "aria-label": j("labsofscience.inventory.statusFilterAria", "Filter by status"),
168
+ children: /* @__PURE__ */ _(E, { placeholder: j("labsofscience.inventory.allStatuses", "All statuses") })
169
+ }), /* @__PURE__ */ v(C, { children: [/* @__PURE__ */ _(w, {
88
170
  value: "ALL",
89
- children: "All statuses"
90
- }), O.map((e) => /* @__PURE__ */ g(C, {
171
+ children: j("labsofscience.inventory.allStatuses", "All statuses")
172
+ }), k.map((e) => /* @__PURE__ */ _(w, {
91
173
  value: e,
92
- children: s(e)
174
+ children: c(e)
93
175
  }, e))] })]
94
176
  })
95
177
  ]
96
- }), /* @__PURE__ */ g(i, {
97
- isLoading: V.isLoading,
98
- isError: V.isError,
99
- error: V.error,
100
- onRetry: () => void V.refetch(),
101
- loadingLabel: "Loading inventory…",
102
- children: H.length === 0 ? /* @__PURE__ */ g(c, {
103
- icon: /* @__PURE__ */ g(p, { className: "h-10 w-10" }),
104
- title: "No inventory items found",
105
- description: "Register your first reagent or sample to start tracking stock.",
106
- action: /* @__PURE__ */ _(v, {
107
- onClick: () => z(!0),
108
- children: [/* @__PURE__ */ g(m, { className: "mr-2 h-4 w-4" }), "New item"]
178
+ }), /* @__PURE__ */ _(a, {
179
+ isLoading: U.isLoading,
180
+ isError: U.isError,
181
+ error: U.error,
182
+ onRetry: () => void U.refetch(),
183
+ loadingLabel: j("labsofscience.inventory.loading", "Loading inventory…"),
184
+ children: W.length === 0 ? /* @__PURE__ */ _(l, {
185
+ icon: /* @__PURE__ */ _(m, { className: "h-10 w-10" }),
186
+ title: j("labsofscience.inventory.emptyTitle", "No inventory items found"),
187
+ description: j("labsofscience.inventory.emptyDescription", "Register your first reagent or sample to start tracking stock."),
188
+ action: /* @__PURE__ */ v(y, {
189
+ onClick: () => V(!0),
190
+ children: [/* @__PURE__ */ _(h, { className: "mr-2 h-4 w-4" }), j("labsofscience.inventory.newButton", "New item")]
109
191
  })
110
- }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(b, {
111
- columns: [
112
- {
113
- key: "name",
114
- header: "Item",
115
- priority: "primary",
116
- cell: (e) => /* @__PURE__ */ _("div", {
117
- className: "min-w-0",
118
- children: [/* @__PURE__ */ g("p", {
119
- className: "truncate font-medium text-text-primary",
120
- children: e.name
121
- }), e.catalogNumber && /* @__PURE__ */ g("p", {
122
- className: "text-xs text-text-tertiary",
123
- children: e.catalogNumber
124
- })]
125
- })
126
- },
127
- {
128
- key: "category",
129
- header: "Category",
130
- cell: (e) => /* @__PURE__ */ g("span", {
131
- className: "text-text-secondary",
132
- children: s(e.category)
133
- })
134
- },
135
- {
136
- key: "quantity",
137
- header: "Quantity",
138
- cell: (e) => /* @__PURE__ */ _("span", {
139
- className: t("tabular-nums", e.quantity <= e.reorderLevel ? "text-status-warning-text" : "text-text-secondary"),
140
- children: [
141
- e.quantity,
142
- " ",
143
- e.unit
144
- ]
145
- })
146
- },
147
- {
148
- key: "status",
149
- header: "Status",
150
- priority: "primary",
151
- cell: (e) => /* @__PURE__ */ g(r, { status: e.status })
152
- },
153
- {
154
- key: "location",
155
- header: "Location",
156
- priority: "hidden-on-mobile",
157
- cell: (e) => /* @__PURE__ */ g("span", {
158
- className: "text-text-secondary",
159
- children: e.location ?? "—"
160
- })
161
- },
162
- {
163
- key: "updatedAt",
164
- header: "Updated",
165
- priority: "hidden-on-mobile",
166
- cell: (e) => /* @__PURE__ */ g("span", {
167
- className: "text-text-secondary",
168
- children: o(e.updatedAt)
169
- })
170
- }
171
- ],
172
- data: H,
192
+ }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(x, {
193
+ columns: K,
194
+ data: W,
173
195
  rowKey: (e) => e.id,
174
- onRowClick: (e) => k(`inventory/${e.id}`)
175
- }), /* @__PURE__ */ g(y, {
176
- page: A,
177
- pageSize: E,
178
- hasNextPage: U,
179
- hasPreviousPage: A > 1,
180
- loading: V.isFetching,
181
- onPageChange: j
196
+ onRowClick: (e) => A(`inventory/${e.id}`)
197
+ }), /* @__PURE__ */ _(b, {
198
+ page: M,
199
+ pageSize: D,
200
+ hasNextPage: G,
201
+ hasPreviousPage: M > 1,
202
+ loading: U.isFetching,
203
+ onPageChange: N
182
204
  })] })
183
205
  })]
184
- }), /* @__PURE__ */ g(d, {
185
- open: R,
186
- onOpenChange: z,
187
- onSaved: (e) => k(`inventory/${e.id}`)
206
+ }), /* @__PURE__ */ _(f, {
207
+ open: B,
208
+ onOpenChange: V,
209
+ onSaved: (e) => A(`inventory/${e.id}`)
188
210
  })]
189
211
  });
190
212
  }
191
213
  //#endregion
192
- export { k as InventoryListPage };
214
+ export { A as InventoryListPage };
193
215
 
194
216
  //# sourceMappingURL=InventoryListPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InventoryListPage.js","names":[],"sources":["../../../../src/labsofscience/pages/inventory/InventoryListPage.tsx"],"sourcesContent":["/**\n * Inventory list page\n * @module labsofscience/pages/inventory\n */\n\nimport { useState } from 'react';\nimport { Boxes, Plus } from 'lucide-react';\nimport {\n Button,\n Pagination,\n ResponsiveTable,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n type ResponsiveTableColumn,\n} from '@burdenoff/fe-libs/ui';\nimport { PageLayout } from '../../components/PageLayout';\nimport { StatusBadge } from '../../components/StatusBadge';\nimport { EmptyState } from '../../components/EmptyState';\nimport { QueryBoundary } from '../../components/QueryStates';\nimport { ListSearchInput } from '../../components/ListSearchInput';\nimport { useLabsOfScience } from '../../context/LabsOfScienceContext';\nimport { useInventoryItems } from '../../hooks/useLabsOfScienceApi';\nimport type { LabInventoryCategory, LabInventoryItem, LabInventoryStatus } from '../../types';\nimport { formatDateShort, titleCase } from '../../utils/formatters';\nimport { useDebouncedValue } from '../../utils/useDebouncedValue';\nimport { cn } from '../../utils/cn';\nimport { InventoryFormDialog } from './InventoryFormDialog';\n\nconst PAGE_SIZE = 20;\nconst CATEGORY_OPTIONS: LabInventoryCategory[] = [\n 'REAGENT',\n 'CONSUMABLE',\n 'SAMPLE',\n 'CHEMICAL',\n 'BIOLOGICAL',\n 'EQUIPMENT_PART',\n];\nconst STATUS_OPTIONS: LabInventoryStatus[] = [\n 'IN_STOCK',\n 'LOW',\n 'OUT_OF_STOCK',\n 'EXPIRED',\n 'QUARANTINED',\n];\n\nexport function InventoryListPage() {\n const { navigateTo } = useLabsOfScience();\n const [page, setPage] = useState(1);\n const [category, setCategory] = useState<LabInventoryCategory | 'ALL'>('ALL');\n const [status, setStatus] = useState<LabInventoryStatus | 'ALL'>('ALL');\n const [search, setSearch] = useState('');\n const [createOpen, setCreateOpen] = useState(false);\n const debouncedSearch = useDebouncedValue(search.trim());\n\n const query = useInventoryItems({\n category: category === 'ALL' ? undefined : category,\n status: status === 'ALL' ? undefined : status,\n search: debouncedSearch || undefined,\n pagination: { limit: PAGE_SIZE, offset: (page - 1) * PAGE_SIZE },\n });\n\n const items = query.data?.items ?? [];\n const hasMore = query.data?.pageInfo.hasMore ?? false;\n\n const columns: ResponsiveTableColumn<LabInventoryItem>[] = [\n {\n key: 'name',\n header: 'Item',\n priority: 'primary',\n cell: (row) => (\n <div className=\"min-w-0\">\n <p className=\"truncate font-medium text-text-primary\">{row.name}</p>\n {row.catalogNumber && <p className=\"text-xs text-text-tertiary\">{row.catalogNumber}</p>}\n </div>\n ),\n },\n {\n key: 'category',\n header: 'Category',\n cell: (row) => <span className=\"text-text-secondary\">{titleCase(row.category)}</span>,\n },\n {\n key: 'quantity',\n header: 'Quantity',\n cell: (row) => (\n <span\n className={cn(\n 'tabular-nums',\n row.quantity <= row.reorderLevel ? 'text-status-warning-text' : 'text-text-secondary'\n )}\n >\n {row.quantity} {row.unit}\n </span>\n ),\n },\n {\n key: 'status',\n header: 'Status',\n priority: 'primary',\n cell: (row) => <StatusBadge status={row.status} />,\n },\n {\n key: 'location',\n header: 'Location',\n priority: 'hidden-on-mobile',\n cell: (row) => <span className=\"text-text-secondary\">{row.location ?? '—'}</span>,\n },\n {\n key: 'updatedAt',\n header: 'Updated',\n priority: 'hidden-on-mobile',\n cell: (row) => <span className=\"text-text-secondary\">{formatDateShort(row.updatedAt)}</span>,\n },\n ];\n\n return (\n <PageLayout\n title=\"Inventory\"\n description=\"Reagents, samples, and consumables with auto-derived stock status.\"\n actions={\n <Button onClick={() => setCreateOpen(true)}>\n <Plus className=\"mr-2 h-4 w-4\" />\n New item\n </Button>\n }\n >\n <div className=\"space-y-4\">\n <div className=\"flex flex-wrap items-center gap-3\">\n <ListSearchInput\n value={search}\n ariaLabel=\"Search inventory\"\n placeholder=\"Search inventory…\"\n onChange={(value) => {\n setSearch(value);\n setPage(1);\n }}\n />\n <Select\n value={category}\n onValueChange={(value) => {\n setCategory(value as LabInventoryCategory | 'ALL');\n setPage(1);\n }}\n >\n <SelectTrigger className=\"w-full sm:w-48\" aria-label=\"Filter by category\">\n <SelectValue placeholder=\"All categories\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"ALL\">All categories</SelectItem>\n {CATEGORY_OPTIONS.map((option) => (\n <SelectItem key={option} value={option}>\n {titleCase(option)}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <Select\n value={status}\n onValueChange={(value) => {\n setStatus(value as LabInventoryStatus | 'ALL');\n setPage(1);\n }}\n >\n <SelectTrigger className=\"w-full sm:w-48\" aria-label=\"Filter by status\">\n <SelectValue placeholder=\"All statuses\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"ALL\">All statuses</SelectItem>\n {STATUS_OPTIONS.map((option) => (\n <SelectItem key={option} value={option}>\n {titleCase(option)}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n\n <QueryBoundary\n isLoading={query.isLoading}\n isError={query.isError}\n error={query.error}\n onRetry={() => void query.refetch()}\n loadingLabel=\"Loading inventory…\"\n >\n {items.length === 0 ? (\n <EmptyState\n icon={<Boxes className=\"h-10 w-10\" />}\n title=\"No inventory items found\"\n description=\"Register your first reagent or sample to start tracking stock.\"\n action={\n <Button onClick={() => setCreateOpen(true)}>\n <Plus className=\"mr-2 h-4 w-4\" />\n New item\n </Button>\n }\n />\n ) : (\n <>\n <ResponsiveTable\n columns={columns}\n data={items}\n rowKey={(row) => row.id}\n onRowClick={(row) => navigateTo(`inventory/${row.id}`)}\n />\n <Pagination\n page={page}\n pageSize={PAGE_SIZE}\n hasNextPage={hasMore}\n hasPreviousPage={page > 1}\n loading={query.isFetching}\n onPageChange={setPage}\n />\n </>\n )}\n </QueryBoundary>\n </div>\n\n <InventoryFormDialog\n open={createOpen}\n onOpenChange={setCreateOpen}\n onSaved={(item) => navigateTo(`inventory/${item.id}`)}\n />\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA+BA,IAAM,IAAY,IACZ,IAA2C;CAC/C;CACA;CACA;C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ACR,OAAO,MAAQ,kBAAC,QAAD;QAAM,WAAU;kBAAuB,EAAU,EAAI,QAAQ;OAAQ,CAAA;MACtF;MACA;OACE,KAAK;OACL,QAAQ;OACR,OAAO,MACL,kBAAC,QAAD;QACE,WAAW,EACT,gBACA,EAAI,YAAY,EAAI,eAAe,6BAA6B,qBAClE;kBAJF;SAMG,EAAI;SAAS;SAAE,EAAI;QAChB;;MAEV;MACA;OACE,KAAK;OACL,QAAQ;OACR,UAAU;OACV,OAAO,MAAQ,kBAAC,GAAD,EAAa,QAAQ,EAAI,OAAS,CAAA;MACnD;MACA;OACE,KAAK;OACL,QAAQ;OACR,UAAU;OACV,OAAO,MAAQ,kBAAC,QAAD;QAAM,WAAU;kBAAuB,EAAI,YAAY;OAAU,CAAA;MAClF;MACA;OACE,KAAK;OACL,QAAQ;OACR,UAAU;OACV,OAAO,MAAQ,kBAAC,QAAD;QAAM,WAAU;kBAAuB,EAAgB,EAAI,SAAS;OAAQ,CAAA;MAC7F;KAuFqB;KACT,MAAM;KACN,SAAS,MAAQ,EAAI;KACrB,aAAa,MAAQ,EAAW,aAAa,EAAI,IAAI;IACtD,CAAA,GACD,kBAAC,GAAD;KACQ;KACN,UAAU;KACV,aAAa;KACb,iBAAiB,IAAO;KACxB,SAAS,EAAM;KACf,cAAc;IACf,CAAA,CACD,EAAA,CAAA;GAES,CAAA,CACZ;MAEL,kBAAC,GAAD;GACE,MAAM;GACN,cAAc;GACd,UAAU,MAAS,EAAW,aAAa,EAAK,IAAI;EACrD,CAAA,CACS;;AAEhB"}
1
+ {"version":3,"file":"InventoryListPage.js","names":[],"sources":["../../../../src/labsofscience/pages/inventory/InventoryListPage.tsx"],"sourcesContent":["/**\n * Inventory list page\n * @module labsofscience/pages/inventory\n */\n\nimport { useState } from 'react';\nimport { Boxes, Plus } from 'lucide-react';\nimport {\n Button,\n Pagination,\n ResponsiveTable,\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n type ResponsiveTableColumn,\n} from '@burdenoff/fe-libs/ui';\nimport { PageLayout } from '../../components/PageLayout';\nimport { StatusBadge } from '../../components/StatusBadge';\nimport { EmptyState } from '../../components/EmptyState';\nimport { QueryBoundary } from '../../components/QueryStates';\nimport { ListSearchInput } from '../../components/ListSearchInput';\nimport { useLabsOfScience } from '../../context/LabsOfScienceContext';\nimport { useInventoryItems } from '../../hooks/useLabsOfScienceApi';\nimport { useTr } from '../../hooks/useTr';\nimport type { LabInventoryCategory, LabInventoryItem, LabInventoryStatus } from '../../types';\nimport { formatDateShort, titleCase } from '../../utils/formatters';\nimport { useDebouncedValue } from '../../utils/useDebouncedValue';\nimport { cn } from '../../utils/cn';\nimport { InventoryFormDialog } from './InventoryFormDialog';\n\nconst PAGE_SIZE = 20;\nconst CATEGORY_OPTIONS: LabInventoryCategory[] = [\n 'REAGENT',\n 'CONSUMABLE',\n 'SAMPLE',\n 'CHEMICAL',\n 'BIOLOGICAL',\n 'EQUIPMENT_PART',\n];\nconst STATUS_OPTIONS: LabInventoryStatus[] = [\n 'IN_STOCK',\n 'LOW',\n 'OUT_OF_STOCK',\n 'EXPIRED',\n 'QUARANTINED',\n];\n\nexport function InventoryListPage() {\n const { navigateTo } = useLabsOfScience();\n const tr = useTr();\n const [page, setPage] = useState(1);\n const [category, setCategory] = useState<LabInventoryCategory | 'ALL'>('ALL');\n const [status, setStatus] = useState<LabInventoryStatus | 'ALL'>('ALL');\n const [search, setSearch] = useState('');\n const [createOpen, setCreateOpen] = useState(false);\n const debouncedSearch = useDebouncedValue(search.trim());\n\n const query = useInventoryItems({\n category: category === 'ALL' ? undefined : category,\n status: status === 'ALL' ? undefined : status,\n search: debouncedSearch || undefined,\n pagination: { limit: PAGE_SIZE, offset: (page - 1) * PAGE_SIZE },\n });\n\n const items = query.data?.items ?? [];\n const hasMore = query.data?.pageInfo.hasMore ?? false;\n\n const columns: ResponsiveTableColumn<LabInventoryItem>[] = [\n {\n key: 'name',\n header: tr('labsofscience.inventory.column.item', 'Item'),\n priority: 'primary',\n cell: (row) => (\n <div className=\"min-w-0\">\n <p className=\"truncate font-medium text-text-primary\">{row.name}</p>\n {row.catalogNumber && <p className=\"text-xs text-text-tertiary\">{row.catalogNumber}</p>}\n </div>\n ),\n },\n {\n key: 'category',\n header: tr('labsofscience.inventory.column.category', 'Category'),\n cell: (row) => <span className=\"text-text-secondary\">{titleCase(row.category)}</span>,\n },\n {\n key: 'quantity',\n header: tr('labsofscience.inventory.column.quantity', 'Quantity'),\n cell: (row) => (\n <span\n className={cn(\n 'tabular-nums',\n row.quantity <= row.reorderLevel ? 'text-status-warning-text' : 'text-text-secondary'\n )}\n >\n {row.quantity} {row.unit}\n </span>\n ),\n },\n {\n key: 'reorderLevel',\n header: tr('labsofscience.inventory.column.reorderLevel', 'Reorder level'),\n priority: 'hidden-on-mobile',\n cell: (row) => (\n <span className=\"tabular-nums text-text-secondary\">\n {row.reorderLevel} {row.unit}\n </span>\n ),\n },\n {\n key: 'status',\n header: tr('labsofscience.inventory.column.status', 'Status'),\n priority: 'primary',\n cell: (row) => <StatusBadge status={row.status} />,\n },\n {\n key: 'expiresAt',\n header: tr('labsofscience.inventory.column.expiry', 'Expiry'),\n cell: (row) => (\n <span\n className={row.status === 'EXPIRED' ? 'text-status-error-text' : 'text-text-secondary'}\n >\n {formatDateShort(row.expiresAt)}\n </span>\n ),\n },\n {\n key: 'location',\n header: tr('labsofscience.inventory.column.location', 'Location'),\n priority: 'hidden-on-mobile',\n cell: (row) => <span className=\"text-text-secondary\">{row.location ?? '—'}</span>,\n },\n {\n key: 'updatedAt',\n header: tr('labsofscience.inventory.column.updated', 'Updated'),\n priority: 'hidden-on-mobile',\n cell: (row) => <span className=\"text-text-secondary\">{formatDateShort(row.updatedAt)}</span>,\n },\n ];\n\n return (\n <PageLayout\n title={tr('labsofscience.inventory.title', 'Inventory')}\n description={tr(\n 'labsofscience.inventory.description',\n 'Reagents, samples, and consumables with auto-derived stock status.'\n )}\n actions={\n <Button onClick={() => setCreateOpen(true)}>\n <Plus className=\"mr-2 h-4 w-4\" />\n {tr('labsofscience.inventory.newButton', 'New item')}\n </Button>\n }\n >\n <div className=\"space-y-4\">\n <div className=\"flex flex-wrap items-center gap-3\">\n <ListSearchInput\n value={search}\n ariaLabel={tr('labsofscience.inventory.searchAria', 'Search inventory')}\n placeholder={tr('labsofscience.inventory.searchPlaceholder', 'Search inventory…')}\n onChange={(value) => {\n setSearch(value);\n setPage(1);\n }}\n />\n <Select\n value={category}\n onValueChange={(value) => {\n setCategory(value as LabInventoryCategory | 'ALL');\n setPage(1);\n }}\n >\n <SelectTrigger\n className=\"w-full sm:w-48\"\n aria-label={tr('labsofscience.inventory.categoryFilterAria', 'Filter by category')}\n >\n <SelectValue\n placeholder={tr('labsofscience.inventory.allCategories', 'All categories')}\n />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"ALL\">\n {tr('labsofscience.inventory.allCategories', 'All categories')}\n </SelectItem>\n {CATEGORY_OPTIONS.map((option) => (\n <SelectItem key={option} value={option}>\n {titleCase(option)}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <Select\n value={status}\n onValueChange={(value) => {\n setStatus(value as LabInventoryStatus | 'ALL');\n setPage(1);\n }}\n >\n <SelectTrigger\n className=\"w-full sm:w-48\"\n aria-label={tr('labsofscience.inventory.statusFilterAria', 'Filter by status')}\n >\n <SelectValue\n placeholder={tr('labsofscience.inventory.allStatuses', 'All statuses')}\n />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"ALL\">\n {tr('labsofscience.inventory.allStatuses', 'All statuses')}\n </SelectItem>\n {STATUS_OPTIONS.map((option) => (\n <SelectItem key={option} value={option}>\n {titleCase(option)}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n\n <QueryBoundary\n isLoading={query.isLoading}\n isError={query.isError}\n error={query.error}\n onRetry={() => void query.refetch()}\n loadingLabel={tr('labsofscience.inventory.loading', 'Loading inventory…')}\n >\n {items.length === 0 ? (\n <EmptyState\n icon={<Boxes className=\"h-10 w-10\" />}\n title={tr('labsofscience.inventory.emptyTitle', 'No inventory items found')}\n description={tr(\n 'labsofscience.inventory.emptyDescription',\n 'Register your first reagent or sample to start tracking stock.'\n )}\n action={\n <Button onClick={() => setCreateOpen(true)}>\n <Plus className=\"mr-2 h-4 w-4\" />\n {tr('labsofscience.inventory.newButton', 'New item')}\n </Button>\n }\n />\n ) : (\n <>\n <ResponsiveTable\n columns={columns}\n data={items}\n rowKey={(row) => row.id}\n onRowClick={(row) => navigateTo(`inventory/${row.id}`)}\n />\n <Pagination\n page={page}\n pageSize={PAGE_SIZE}\n hasNextPage={hasMore}\n hasPreviousPage={page > 1}\n loading={query.isFetching}\n onPageChange={setPage}\n />\n </>\n )}\n </QueryBoundary>\n </div>\n\n <InventoryFormDialog\n open={createOpen}\n onOpenChange={setCreateOpen}\n onSaved={(item) => navigateTo(`inventory/${item.id}`)}\n />\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAgCA,IAAM,IAAY,IACZ,IAA2C;CAC/C;CACA;CACA;CACA;CACA;CACA;AACF,GACM,IAAuC;CAC3C;CACA;CACA;CACA;CACA;AACF;AAEA,SAAgB,IAAoB;CAClC,IAAM,EAAE,kBAAe,EAAiB,GAClC,IAAK,EAAM,GACX,CAAC,GAAM,KAAW,EAAS,CAAC,GAC5B,CAAC,GAAU,KAAe,EAAuC,KAAK,GACtE,CAAC,GAAQ,KAAa,EAAqC,KAAK,GAChE,CAAC,GAAQ,KAAa,EAAS,EAAE,GACjC,CAAC,GAAY,KAAiB,EAAS,EAAK,GAC5C,IAAkB,EAAkB,EAAO,KAAK,CAAC,GAEjD,IAAQ,EAAkB;EAC9B,UAAU,MAAa,QAAQ,KAAA,IAAY;EAC3C,QAAQ,MAAW,QAAQ,KAAA,IAAY;EACvC,QAAQ,KAAmB,KAAA;EAC3B,YAAY;GAAE,OAAO;GAAW,SAAS,IAAO,KAAK;EAAU;CACjE,CAAC,GAEK,IAAQ,EAAM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AAY,EAAG,4CAA4C,kBAAkB;iBAE7E,kBAAC,GAAD,EACE,aAAa,EAAG,uCAAuC,cAAc,EACtE,CAAA;MACY,CAAA,GACf,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;OAAY,OAAM;iBACf,EAAG,uCAAuC,cAAc;MAC/C,CAAA,GACX,EAAe,KAAK,MACnB,kBAAC,GAAD;OAAyB,OAAO;iBAC7B,EAAU,CAAM;MACP,GAFK,CAEL,CACb,CACY,EAAA,CAAA,CACT;;IACL;OAEL,kBAAC,GAAD;IACE,WAAW,EAAM;IACjB,SAAS,EAAM;IACf,OAAO,EAAM;IACb,eAAe,KAAK,EAAM,QAAQ;IAClC,cAAc,EAAG,mCAAmC,oBAAoB;cAEvE,EAAM,WAAW,IAChB,kBAAC,GAAD;KACE,MAAM,kBAAC,GAAD,EAAO,WAAU,YAAa,CAAA;KACpC,OAAO,EAAG,sCAAsC,0BAA0B;KAC1E,aAAa,EACX,4CACA,gEACF;KACA,QACE,kBAAC,GAAD;MAAQ,eAAe,EAAc,EAAI;gBAAzC,CACE,kBAAC,GAAD,EAAM,WAAU,eAAgB,CAAA,GAC/B,EAAG,qCAAqC,UAAU,CAC7C;;IAEX,CAAA,IAED,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;KACW;KACT,MAAM;KACN,SAAS,MAAQ,EAAI;KACrB,aAAa,MAAQ,EAAW,aAAa,EAAI,IAAI;IACtD,CAAA,GACD,kBAAC,GAAD;KACQ;KACN,UAAU;KACV,aAAa;KACb,iBAAiB,IAAO;KACxB,SAAS,EAAM;KACf,cAAc;IACf,CAAA,CACD,EAAA,CAAA;GAES,CAAA,CACZ;MAEL,kBAAC,GAAD;GACE,MAAM;GACN,cAAc;GACd,UAAU,MAAS,EAAW,aAAa,EAAK,IAAI;EACrD,CAAA,CACS;;AAEhB"}
@@ -7,8 +7,8 @@ import { formatDate as s } from "../../utils/formatters.js";
7
7
  import { EmptyState as c } from "../../components/EmptyState.js";
8
8
  import { BackLink as l, DetailField as u, DetailSection as d, TagList as f } from "../shared/DetailComponents.js";
9
9
  import { DiscussionPanel as p } from "../../components/DiscussionPanel.js";
10
- import { ProvenancePanel as m } from "../../components/ProvenancePanel.js";
11
- import { FileAttachment as h } from "../../components/FileAttachment.js";
10
+ import { FileAttachment as m } from "../../components/FileAttachment.js";
11
+ import { ProvenancePanel as h } from "../../components/ProvenancePanel.js";
12
12
  import { BookOpen as g, FlaskConical as _, PenLine as v, ShieldCheck as y } from "lucide-react";
13
13
  import { useParams as b } from "react-router";
14
14
  import { jsx as x, jsxs as S } from "react/jsx-runtime";
@@ -141,10 +141,10 @@ function E() {
141
141
  children: "No files attached."
142
142
  }) : /* @__PURE__ */ x("div", {
143
143
  className: "space-y-2",
144
- children: M.files.map((e) => /* @__PURE__ */ x(h, { fileId: e.id }, e.id))
144
+ children: M.files.map((e) => /* @__PURE__ */ x(m, { fileId: e.id }, e.id))
145
145
  })
146
146
  }),
147
- /* @__PURE__ */ x(m, {
147
+ /* @__PURE__ */ x(h, {
148
148
  entityType: "LAB_NOTEBOOK_ENTRY",
149
149
  entityId: M.id
150
150
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"NotebookListPage.d.ts","sourceRoot":"","sources":["../../../../src/labsofscience/pages/notebook/NotebookListPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwDH,wBAAgB,gBAAgB,gCA8I/B"}
1
+ {"version":3,"file":"NotebookListPage.d.ts","sourceRoot":"","sources":["../../../../src/labsofscience/pages/notebook/NotebookListPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA4DH,wBAAgB,gBAAgB,gCA8J/B"}