@burdenoff/microfe-assethandler 2026.703.2 → 2026.703.3
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/assethandler/AssetHandlerRoot.js +18 -18
- package/dist/assethandler/hooks/useAssetHandlerNavigate.js +19 -0
- package/dist/assethandler/hooks/useAssetHandlerNavigate.js.map +1 -0
- package/dist/assethandler/pages/AiPredictionsPage.js +29 -29
- package/dist/assethandler/pages/AnalyticsPage.js +154 -154
- package/dist/assethandler/pages/AssetsAssetCategoriesPage.js +48 -48
- package/dist/assethandler/pages/AssetsAssetCheckInOutPage.js +84 -84
- package/dist/assethandler/pages/AssetsAssetCheckInOutPage.js.map +1 -1
- package/dist/assethandler/pages/AssetsAssetCreatePage.js +82 -82
- package/dist/assethandler/pages/AssetsAssetCreatePage.js.map +1 -1
- package/dist/assethandler/pages/AssetsAssetDetailPage.js +104 -103
- package/dist/assethandler/pages/AssetsAssetDetailPage.js.map +1 -1
- package/dist/assethandler/pages/AssetsAssetListPage.js +132 -132
- package/dist/assethandler/pages/AssetsAssetListPage.js.map +1 -1
- package/dist/assethandler/pages/AssetsAssetTrackingPage.js +52 -52
- package/dist/assethandler/pages/CmdbBrowserPage.js +27 -27
- package/dist/assethandler/pages/DashboardPage.js +119 -119
- package/dist/assethandler/pages/DashboardPage.js.map +1 -1
- package/dist/assethandler/pages/DigitalTwinPage.js +22 -22
- package/dist/assethandler/pages/DiscoveryJobsPage.js +35 -35
- package/dist/assethandler/pages/EsgDashboardPage.js +32 -32
- package/dist/assethandler/pages/FinanceBudgetDetailPage.js +57 -56
- package/dist/assethandler/pages/FinanceBudgetDetailPage.js.map +1 -1
- package/dist/assethandler/pages/FinanceFinanceHubPage.js +98 -98
- package/dist/assethandler/pages/FinanceFinanceHubPage.js.map +1 -1
- package/dist/assethandler/pages/FinanceInvoiceDetailPage.js +58 -57
- package/dist/assethandler/pages/FinanceInvoiceDetailPage.js.map +1 -1
- package/dist/assethandler/pages/IotDevicesPage.js +29 -29
- package/dist/assethandler/pages/ItilChangeDetailPage.js +76 -75
- package/dist/assethandler/pages/ItilChangeDetailPage.js.map +1 -1
- package/dist/assethandler/pages/ItilChangeManagementPage.js +49 -49
- package/dist/assethandler/pages/ItilIncidentDetailPage.js +63 -62
- package/dist/assethandler/pages/ItilIncidentDetailPage.js.map +1 -1
- package/dist/assethandler/pages/ItilIncidentManagementPage.js +72 -72
- package/dist/assethandler/pages/ItilItilhubPage.js +112 -112
- package/dist/assethandler/pages/ItilItilhubPage.js.map +1 -1
- package/dist/assethandler/pages/ItilProblemDetailPage.js +61 -60
- package/dist/assethandler/pages/ItilProblemDetailPage.js.map +1 -1
- package/dist/assethandler/pages/ItilProblemManagementPage.js +46 -46
- package/dist/assethandler/pages/KnowledgeBasePage.js +28 -28
- package/dist/assethandler/pages/MaintenanceMaintenanceCalendarPage.js +52 -52
- package/dist/assethandler/pages/MaintenanceMaintenanceSchedulerPage.js +29 -29
- package/dist/assethandler/pages/OperationsMaintenanceDetailPage.js +58 -57
- package/dist/assethandler/pages/OperationsMaintenanceDetailPage.js.map +1 -1
- package/dist/assethandler/pages/OperationsOperationsHubPage.js +80 -80
- package/dist/assethandler/pages/OperationsOperationsHubPage.js.map +1 -1
- package/dist/assethandler/pages/OperationsWorkOrderDetailPage.js +49 -48
- package/dist/assethandler/pages/OperationsWorkOrderDetailPage.js.map +1 -1
- package/dist/assethandler/pages/PortfolioPortfolioOverviewPage.js +52 -52
- package/dist/assethandler/pages/ProvenancePage.js +36 -36
- package/dist/assethandler/pages/SamLicensesPage.js +27 -27
- package/dist/assethandler/pages/SecurityComplianceDetailPage.js +39 -38
- package/dist/assethandler/pages/SecurityComplianceDetailPage.js.map +1 -1
- package/dist/assethandler/pages/SecurityPolicyDetailPage.js +50 -49
- package/dist/assethandler/pages/SecurityPolicyDetailPage.js.map +1 -1
- package/dist/assethandler/pages/SecuritySecurityEventDetailPage.js +47 -46
- package/dist/assethandler/pages/SecuritySecurityEventDetailPage.js.map +1 -1
- package/dist/assethandler/pages/SecuritySecurityHubPage.js +104 -104
- package/dist/assethandler/pages/SecuritySecurityHubPage.js.map +1 -1
- package/dist/assethandler/pages/TransactionsTransactionDetailPage.js +74 -73
- package/dist/assethandler/pages/TransactionsTransactionDetailPage.js.map +1 -1
- package/dist/assethandler/pages/TransactionsTransactionListPage.js +77 -77
- package/dist/assethandler/providers/AssetHandlerProvider.js +12 -12
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@ import { useAssetHandlerStore as e } from "../store/assethandlerStore.js";
|
|
|
2
2
|
import { tWithFallback as t } from "../utils/i18n.js";
|
|
3
3
|
import { useState as n } from "react";
|
|
4
4
|
import { ArrowUpDown as r, CheckCircle2 as i, Clock as a, DollarSign as o, Download as s, Filter as c, Search as l } from "lucide-react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
import { Badge as f, Button as p, Card as m, CardContent as h, CardHeader as g, CardTitle as _, GlassCard as v, GradientText as y, IllustratedEmptyState as b, Input as x, PagePurpose as S, Select as C, SelectContent as w, SelectItem as T, SelectTrigger as E, SelectValue as D, Table as O, TableBody as k, TableCell as A, TableHead as j, TableHeader as M, TableRow as N } from "@burdenoff/fe-libs/ui";
|
|
7
|
+
import { useI18n as P } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
8
|
//#region src/assethandler/pages/TransactionsTransactionListPage.tsx
|
|
9
9
|
var F = {
|
|
10
10
|
purchase: "default",
|
|
@@ -21,164 +21,164 @@ var F = {
|
|
|
21
21
|
cancelled: "outline"
|
|
22
22
|
};
|
|
23
23
|
function L() {
|
|
24
|
-
let { t: L } =
|
|
24
|
+
let { t: L } = P(), { transactions: R } = e(), [z, B] = n(""), [V, H] = n("all"), [U, W] = n("all"), G = R.filter((e) => !(V !== "all" && e.type !== V || U !== "all" && e.status !== U || z && !e.description.toLowerCase().includes(z.toLowerCase()) && !e.id.toLowerCase().includes(z.toLowerCase()))), K = R.filter((e) => e.amount > 0).reduce((e, t) => e + t.amount, 0), q = R.filter((e) => e.status === "pending").length, J = R.filter((e) => e.status === "completed").length, Y = (e) => {
|
|
25
25
|
let t = Math.abs(e).toLocaleString("en-US", {
|
|
26
26
|
style: "currency",
|
|
27
27
|
currency: "USD"
|
|
28
28
|
});
|
|
29
29
|
return e < 0 ? `-${t}` : t;
|
|
30
30
|
};
|
|
31
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ d("div", {
|
|
32
32
|
className: "space-y-6 p-6",
|
|
33
33
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ d("div", {
|
|
35
35
|
className: "flex items-center justify-between",
|
|
36
|
-
children: [/* @__PURE__ */
|
|
36
|
+
children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("h1", {
|
|
37
37
|
className: "text-2xl font-semibold",
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
-
}), /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ u(y, { children: t(L, "assethandler.transactions.title", "Transactions") })
|
|
39
|
+
}), /* @__PURE__ */ u("p", {
|
|
40
40
|
className: "text-sm text-text-secondary",
|
|
41
41
|
children: t(L, "assethandler.transactions.description", "Track all financial transactions related to asset management.")
|
|
42
|
-
})] }), /* @__PURE__ */
|
|
42
|
+
})] }), /* @__PURE__ */ d(p, {
|
|
43
43
|
variant: "outline",
|
|
44
44
|
size: "sm",
|
|
45
|
-
children: [/* @__PURE__ */
|
|
45
|
+
children: [/* @__PURE__ */ u(s, { className: "mr-2 h-4 w-4" }), t(L, "assethandler.transactions.actions.export", "Export")]
|
|
46
46
|
})]
|
|
47
47
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ u(S, { children: t(L, "assethandler.transactions.purpose", "Every financial movement tied to your assets in one ledger — purchases, leases, disposals, transfers and depreciation. Search, filter and sort to reconcile spend, approve what is pending and trace the money behind any asset.") }),
|
|
49
|
+
/* @__PURE__ */ d("div", {
|
|
50
50
|
className: "grid gap-4 md:grid-cols-4",
|
|
51
51
|
children: [
|
|
52
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ d(v, {
|
|
53
53
|
treatment: "glass",
|
|
54
54
|
glow: !0,
|
|
55
55
|
className: "border-border-seam",
|
|
56
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ d(g, {
|
|
57
57
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
58
|
-
children: [/* @__PURE__ */
|
|
58
|
+
children: [/* @__PURE__ */ u(_, {
|
|
59
59
|
className: "text-sm font-medium",
|
|
60
60
|
children: t(L, "assethandler.transactions.stats.totalTransactions", "Total Transactions")
|
|
61
|
-
}), /* @__PURE__ */
|
|
62
|
-
}), /* @__PURE__ */
|
|
61
|
+
}), /* @__PURE__ */ u(r, { className: "h-4 w-4 text-text-secondary" })]
|
|
62
|
+
}), /* @__PURE__ */ u(h, { children: /* @__PURE__ */ u("div", {
|
|
63
63
|
className: "text-2xl font-bold tabular-nums",
|
|
64
64
|
children: R.length
|
|
65
65
|
}) })]
|
|
66
66
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ d(v, {
|
|
68
68
|
treatment: "metric",
|
|
69
69
|
className: "border-border-seam",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ d(g, {
|
|
71
71
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
72
|
-
children: [/* @__PURE__ */
|
|
72
|
+
children: [/* @__PURE__ */ u(_, {
|
|
73
73
|
className: "text-sm font-medium",
|
|
74
74
|
children: t(L, "assethandler.transactions.stats.totalSpend", "Total Spend")
|
|
75
|
-
}), /* @__PURE__ */
|
|
76
|
-
}), /* @__PURE__ */
|
|
75
|
+
}), /* @__PURE__ */ u(o, { className: "h-4 w-4 text-status-success-text" })]
|
|
76
|
+
}), /* @__PURE__ */ u(h, { children: /* @__PURE__ */ u("div", {
|
|
77
77
|
className: "text-2xl font-bold tabular-nums",
|
|
78
78
|
children: Y(K)
|
|
79
79
|
}) })]
|
|
80
80
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ d(v, {
|
|
82
82
|
treatment: "metric",
|
|
83
83
|
className: "border-border-seam",
|
|
84
|
-
children: [/* @__PURE__ */
|
|
84
|
+
children: [/* @__PURE__ */ d(g, {
|
|
85
85
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
86
|
-
children: [/* @__PURE__ */
|
|
86
|
+
children: [/* @__PURE__ */ u(_, {
|
|
87
87
|
className: "text-sm font-medium",
|
|
88
88
|
children: t(L, "assethandler.transactions.stats.pendingApprovals", "Pending Approvals")
|
|
89
|
-
}), /* @__PURE__ */
|
|
90
|
-
}), /* @__PURE__ */
|
|
89
|
+
}), /* @__PURE__ */ u(a, { className: "h-4 w-4 text-status-warning-text" })]
|
|
90
|
+
}), /* @__PURE__ */ u(h, { children: /* @__PURE__ */ u("div", {
|
|
91
91
|
className: "text-2xl font-bold tabular-nums",
|
|
92
92
|
children: q
|
|
93
93
|
}) })]
|
|
94
94
|
}),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ d(v, {
|
|
96
96
|
treatment: "metric",
|
|
97
97
|
className: "border-border-seam",
|
|
98
|
-
children: [/* @__PURE__ */
|
|
98
|
+
children: [/* @__PURE__ */ d(g, {
|
|
99
99
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
100
|
-
children: [/* @__PURE__ */
|
|
100
|
+
children: [/* @__PURE__ */ u(_, {
|
|
101
101
|
className: "text-sm font-medium",
|
|
102
102
|
children: t(L, "assethandler.transactions.stats.completed", "Completed")
|
|
103
|
-
}), /* @__PURE__ */
|
|
104
|
-
}), /* @__PURE__ */
|
|
103
|
+
}), /* @__PURE__ */ u(i, { className: "h-4 w-4 text-status-success-text" })]
|
|
104
|
+
}), /* @__PURE__ */ u(h, { children: /* @__PURE__ */ u("div", {
|
|
105
105
|
className: "text-2xl font-bold tabular-nums",
|
|
106
106
|
children: J
|
|
107
107
|
}) })]
|
|
108
108
|
})
|
|
109
109
|
]
|
|
110
110
|
}),
|
|
111
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ d(m, { children: [/* @__PURE__ */ u(g, { children: /* @__PURE__ */ d("div", {
|
|
112
112
|
className: "flex items-center justify-between",
|
|
113
|
-
children: [/* @__PURE__ */
|
|
113
|
+
children: [/* @__PURE__ */ u(_, { children: t(L, "assethandler.transactions.table.title", "All Transactions") }), /* @__PURE__ */ d("div", {
|
|
114
114
|
className: "flex items-center gap-2",
|
|
115
115
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ d("div", {
|
|
117
117
|
className: "relative",
|
|
118
|
-
children: [/* @__PURE__ */
|
|
118
|
+
children: [/* @__PURE__ */ u(l, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-text-secondary" }), /* @__PURE__ */ u(x, {
|
|
119
119
|
placeholder: t(L, "assethandler.transactions.search.placeholder", "Search..."),
|
|
120
120
|
value: z,
|
|
121
121
|
onChange: (e) => B(e.target.value),
|
|
122
122
|
className: "pl-9 w-[200px]"
|
|
123
123
|
})]
|
|
124
124
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ d(C, {
|
|
126
126
|
value: V,
|
|
127
127
|
onValueChange: H,
|
|
128
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ d(E, {
|
|
129
129
|
className: "w-[140px]",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
131
|
-
}), /* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ u(c, { className: "mr-2 h-4 w-4" }), /* @__PURE__ */ u(D, { placeholder: t(L, "assethandler.transactions.filters.type.placeholder", "Type") })]
|
|
131
|
+
}), /* @__PURE__ */ d(w, { children: [
|
|
132
|
+
/* @__PURE__ */ u(T, {
|
|
133
133
|
value: "all",
|
|
134
134
|
children: t(L, "assethandler.transactions.filters.type.all", "All Types")
|
|
135
135
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ u(T, {
|
|
137
137
|
value: "purchase",
|
|
138
138
|
children: t(L, "assethandler.transactions.filters.type.purchase", "Purchase")
|
|
139
139
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ u(T, {
|
|
141
141
|
value: "lease",
|
|
142
142
|
children: t(L, "assethandler.transactions.filters.type.lease", "Lease")
|
|
143
143
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ u(T, {
|
|
145
145
|
value: "disposal",
|
|
146
146
|
children: t(L, "assethandler.transactions.filters.type.disposal", "Disposal")
|
|
147
147
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ u(T, {
|
|
149
149
|
value: "transfer",
|
|
150
150
|
children: t(L, "assethandler.transactions.filters.type.transfer", "Transfer")
|
|
151
151
|
}),
|
|
152
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ u(T, {
|
|
153
153
|
value: "maintenance",
|
|
154
154
|
children: t(L, "assethandler.transactions.filters.type.maintenance", "Maintenance")
|
|
155
155
|
})
|
|
156
156
|
] })]
|
|
157
157
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ d(C, {
|
|
159
159
|
value: U,
|
|
160
160
|
onValueChange: W,
|
|
161
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ u(E, {
|
|
162
162
|
className: "w-[140px]",
|
|
163
|
-
children: /* @__PURE__ */
|
|
164
|
-
}), /* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
163
|
+
children: /* @__PURE__ */ u(D, { placeholder: t(L, "assethandler.transactions.filters.status.placeholder", "Status") })
|
|
164
|
+
}), /* @__PURE__ */ d(w, { children: [
|
|
165
|
+
/* @__PURE__ */ u(T, {
|
|
166
166
|
value: "all",
|
|
167
167
|
children: t(L, "assethandler.transactions.filters.status.all", "All Statuses")
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ u(T, {
|
|
170
170
|
value: "pending",
|
|
171
171
|
children: t(L, "assethandler.transactions.filters.status.pending", "Pending")
|
|
172
172
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ u(T, {
|
|
174
174
|
value: "approved",
|
|
175
175
|
children: t(L, "assethandler.transactions.filters.status.approved", "Approved")
|
|
176
176
|
}),
|
|
177
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ u(T, {
|
|
178
178
|
value: "completed",
|
|
179
179
|
children: t(L, "assethandler.transactions.filters.status.completed", "Completed")
|
|
180
180
|
}),
|
|
181
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ u(T, {
|
|
182
182
|
value: "rejected",
|
|
183
183
|
children: t(L, "assethandler.transactions.filters.status.rejected", "Rejected")
|
|
184
184
|
})
|
|
@@ -186,45 +186,45 @@ function L() {
|
|
|
186
186
|
})
|
|
187
187
|
]
|
|
188
188
|
})]
|
|
189
|
-
}) }), /* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
/* @__PURE__ */
|
|
189
|
+
}) }), /* @__PURE__ */ d(h, { children: [/* @__PURE__ */ d(O, { children: [/* @__PURE__ */ u(M, { children: /* @__PURE__ */ d(N, { children: [
|
|
190
|
+
/* @__PURE__ */ u(j, { children: t(L, "assethandler.transactions.table.id", "ID") }),
|
|
191
|
+
/* @__PURE__ */ u(j, { children: t(L, "assethandler.transactions.table.type", "Type") }),
|
|
192
|
+
/* @__PURE__ */ u(j, { children: t(L, "assethandler.transactions.table.description", "Description") }),
|
|
193
|
+
/* @__PURE__ */ u(j, {
|
|
194
194
|
className: "text-right",
|
|
195
195
|
children: t(L, "assethandler.transactions.table.amount", "Amount")
|
|
196
196
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
] }) }), /* @__PURE__ */
|
|
203
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ u(j, { children: t(L, "assethandler.transactions.table.category", "Category") }),
|
|
198
|
+
/* @__PURE__ */ u(j, { children: t(L, "assethandler.transactions.table.date", "Date") }),
|
|
199
|
+
/* @__PURE__ */ u(j, { children: t(L, "assethandler.transactions.table.status", "Status") }),
|
|
200
|
+
/* @__PURE__ */ u(j, { children: t(L, "assethandler.transactions.table.vendor", "Vendor") }),
|
|
201
|
+
/* @__PURE__ */ u(j, { children: t(L, "assethandler.transactions.table.department", "Department") })
|
|
202
|
+
] }) }), /* @__PURE__ */ u(k, { children: G.map((e) => /* @__PURE__ */ d(N, { children: [
|
|
203
|
+
/* @__PURE__ */ u(A, {
|
|
204
204
|
className: "font-mono text-sm",
|
|
205
205
|
children: e.id
|
|
206
206
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ u(A, { children: /* @__PURE__ */ u(f, {
|
|
208
208
|
variant: F[e.type] || "secondary",
|
|
209
209
|
children: e.type
|
|
210
210
|
}) }),
|
|
211
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ u(A, {
|
|
212
212
|
className: "max-w-[200px] truncate",
|
|
213
213
|
children: e.description
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ u(A, {
|
|
216
216
|
className: `text-right font-medium ${e.amount < 0 ? "text-status-error-text" : ""}`,
|
|
217
217
|
children: Y(e.amount)
|
|
218
218
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ u(A, { children: e.category }),
|
|
220
|
+
/* @__PURE__ */ u(A, { children: new Date(e.date).toLocaleDateString() }),
|
|
221
|
+
/* @__PURE__ */ u(A, { children: /* @__PURE__ */ u(f, {
|
|
222
222
|
variant: I[e.status] || "secondary",
|
|
223
223
|
children: e.status
|
|
224
224
|
}) }),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
] }, e.id)) })] }), G.length === 0 && /* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ u(A, { children: e.vendor || "—" }),
|
|
226
|
+
/* @__PURE__ */ u(A, { children: e.department })
|
|
227
|
+
] }, e.id)) })] }), G.length === 0 && /* @__PURE__ */ u(b, {
|
|
228
228
|
illustration: "empty-data",
|
|
229
229
|
title: t(L, "assethandler.transactions.empty", "No transactions found"),
|
|
230
230
|
description: "No transactions match your current search or filters."
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useAssetHandlerStore as e } from "../store/assethandlerStore.js";
|
|
2
2
|
import { createContext as t, useContext as n, useEffect as r, useMemo as i } from "react";
|
|
3
3
|
import { MemoryRouter as a } from "react-router-dom";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { ApolloClient as o, HttpLink as s, InMemoryCache as c, gql as l } from "@apollo/client";
|
|
5
|
+
import { ApolloProvider as u, useQuery as d } from "@apollo/client/react";
|
|
6
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
7
|
//#region src/assethandler/providers/AssetHandlerProvider.tsx
|
|
8
|
-
var m = t(null), h =
|
|
8
|
+
var m = t(null), h = l`
|
|
9
9
|
query AssetHandlerBootstrap {
|
|
10
10
|
dashboardOverview {
|
|
11
11
|
totalAssets
|
|
@@ -174,7 +174,7 @@ var m = t(null), h = d`
|
|
|
174
174
|
}
|
|
175
175
|
`;
|
|
176
176
|
function g() {
|
|
177
|
-
let t = e((e) => e.hydrateFromBootstrap), { data: n } =
|
|
177
|
+
let t = e((e) => e.hydrateFromBootstrap), { data: n } = d(h, {
|
|
178
178
|
fetchPolicy: "cache-and-network",
|
|
179
179
|
errorPolicy: "all"
|
|
180
180
|
});
|
|
@@ -187,26 +187,26 @@ var _ = () => {
|
|
|
187
187
|
if (!e) throw Error("useAssetHandler must be used within AssetHandlerProvider");
|
|
188
188
|
return e;
|
|
189
189
|
}, v = ({ children: e, ...t }) => {
|
|
190
|
-
let n = i(() => new
|
|
191
|
-
link: new
|
|
190
|
+
let n = i(() => new o({
|
|
191
|
+
link: new s({
|
|
192
192
|
uri: t.apiGatewayUrl ? `${t.apiGatewayUrl}/workspaces/graphql` : "/workspaces/graphql",
|
|
193
193
|
headers: t.authToken ? {
|
|
194
194
|
Authorization: `Bearer ${t.authToken}`,
|
|
195
195
|
...t.workspaceToken ? { "X-Workspace-Authorization": `Bearer ${t.workspaceToken}` } : {}
|
|
196
196
|
} : void 0
|
|
197
197
|
}),
|
|
198
|
-
cache: new
|
|
198
|
+
cache: new c()
|
|
199
199
|
}), [
|
|
200
200
|
t.apiGatewayUrl,
|
|
201
201
|
t.authToken,
|
|
202
202
|
t.workspaceToken
|
|
203
|
-
]), r = !!t.basePath,
|
|
203
|
+
]), r = !!t.basePath, l = /* @__PURE__ */ p(m.Provider, {
|
|
204
204
|
value: t,
|
|
205
|
-
children: [/* @__PURE__ */
|
|
205
|
+
children: [/* @__PURE__ */ f(g, {}), e]
|
|
206
206
|
});
|
|
207
|
-
return r ?
|
|
207
|
+
return r ? l : /* @__PURE__ */ f(u, {
|
|
208
208
|
client: n,
|
|
209
|
-
children: /* @__PURE__ */
|
|
209
|
+
children: /* @__PURE__ */ f(a, { children: l })
|
|
210
210
|
});
|
|
211
211
|
};
|
|
212
212
|
//#endregion
|