@burdenoff/microfe-movethewheels 2026.703.6 → 2026.703.8
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/{AIAssistantPage-BmILdHgO.js → AIAssistantPage-MWJLAMN_.js} +5 -5
- package/dist/{AnalyticsPage-BSlsiSDE.js → AnalyticsPage-900jpV2T.js} +9 -9
- package/dist/{CreateOrderPage-DaCgVaO3.js → CreateOrderPage-V8aXfcpN.js} +11 -11
- package/dist/{CustomerDetailsPage-DErpbafW.js → CustomerDetailsPage-CHzg75Q5.js} +16 -16
- package/dist/{CustomersPage-C1lRU6xs.js → CustomersPage-CwtVspuq.js} +24 -22
- package/dist/{DashboardPage-Q5-5EKAU.js → DashboardPage-DiD-cWwD.js} +17 -17
- package/dist/DataTable-CmdZd6iV.js +369 -0
- package/dist/{DocumentsCard-T9y6cv4-.js → DocumentsCard-y2ybnAlu.js} +4 -4
- package/dist/{DriverDetailsPage-DnHGkDC7.js → DriverDetailsPage-DjaXaATQ.js} +14 -14
- package/dist/{DriversPage-C0ujWVOn.js → DriversPage-DW-FGPFW.js} +26 -24
- package/dist/{FinancePage-CA2XEgsQ.js → FinancePage-DYadOUzC.js} +9 -9
- package/dist/{FleetPage-DrvXW7wK.js → FleetPage-P9k4zZqP.js} +10 -10
- package/dist/{FormError-CRsMP7TQ.js → FormError-D4T5FWZA.js} +1 -1
- package/dist/{ImportExportPage-Cac9HjFx.js → ImportExportPage-BhWGfbH3.js} +6 -6
- package/dist/{InventoryPage-Ezf4gqKI.js → InventoryPage-BWikjZMW.js} +10 -10
- package/dist/{LiveTrackingPage-CzbVwDqK.js → LiveTrackingPage-UQBWlthJ.js} +10 -10
- package/dist/{MarketplacePage-BHDmSQmo.js → MarketplacePage-DMH0HNDH.js} +9 -9
- package/dist/{MetricCard-DQlDNqmK.js → MetricCard-CqU5WsyW.js} +2 -2
- package/dist/{Notice-GmA7JDR3.js → Notice-BrXJ85dA.js} +2 -2
- package/dist/{OrderDetailsPage-CR0Wc1aN.js → OrderDetailsPage-2J4ua0wd.js} +28 -24
- package/dist/OrdersListPage-DvICveRv.js +388 -0
- package/dist/{PageLayout-DX1Ou6V6.js → PageLayout-j9Zw3wBN.js} +542 -517
- package/dist/{ProductDetailsPage-B_ns2MOe.js → ProductDetailsPage-BSjWLrty.js} +9 -9
- package/dist/{ProductsPage-c92BsEoA.js → ProductsPage-Bn1U2jTj.js} +21 -19
- package/dist/{ReportsPage-CPLXtLT2.js → ReportsPage-MU8F9DQC.js} +9 -9
- package/dist/{RouteDetailsPage-DOfcRiFv.js → RouteDetailsPage-CgSY1CTd.js} +18 -18
- package/dist/{RoutesPage-BZGublby.js → RoutesPage-Dqd5Don6.js} +19 -17
- package/dist/{SettingsPage-5cweX_xh.js → SettingsPage-2a05Sq2k.js} +4 -4
- package/dist/{Sparkline-zSXvG6vA.js → Sparkline-DTGdlxUH.js} +1 -1
- package/dist/{StatusBadge-oZjownr1.js → StatusBadge-BfiF-nNI.js} +1 -1
- package/dist/{TrackingPage-Ln9qVflK.js → TrackingPage-SnjW6qeD.js} +11 -11
- package/dist/{VehicleDetailsPage-CrkzE0dN.js → VehicleDetailsPage-CvRMJ2zC.js} +12 -12
- package/dist/{VehiclesPage-CTQWH7af.js → VehiclesPage-qxf-1C1B.js} +26 -24
- package/dist/{WarehouseDetailsPage-CwDLaG65.js → WarehouseDetailsPage-D0Wyyj1Y.js} +11 -11
- package/dist/{WarehousesPage-KW02DvZg.js → WarehousesPage-44Wj7AGT.js} +19 -17
- package/dist/{arrow-left-DJDw_Yqv.js → arrow-left-1dVWv2dg.js} +1 -1
- package/dist/{arrow-right-Cb2fLTPJ.js → arrow-right-PUCNATnk.js} +1 -1
- package/dist/{arrow-up-PxaOIyiT.js → arrow-up-VQuGMABN.js} +1 -1
- package/dist/{box-hSJVtvGf.js → box-DW1KNP8j.js} +1 -1
- package/dist/{boxes-DDnxEkT5.js → boxes-D6I00XqA.js} +1 -1
- package/dist/{chart-column-xXgAZvRl.js → chart-column-BwQ5H9ol.js} +1 -1
- package/dist/{charts-CfCwQg6o.js → charts-Dv_zxP7L.js} +2 -2
- package/dist/{chevron-left-dhEGJYdh.js → chevron-left-DzNxoaBG.js} +1 -1
- package/dist/{chevron-right-Cud2NDvm.js → chevron-right-CKm3ZC1T.js} +1 -1
- package/dist/{circle-alert-Rx0p3D5w.js → circle-alert-CtBm6oIb.js} +1 -1
- package/dist/{circle-check-BCxRFdFo.js → circle-check-B_Y7FDyR.js} +1 -1
- package/dist/{circle-check-big-BcIJ8xjx.js → circle-check-big-H5pLiMBW.js} +1 -1
- package/dist/{clock-B2_YxJgB.js → clock-B4-qjGuB.js} +1 -1
- package/dist/{dollar-sign-CQmAICv4.js → dollar-sign-CYGHy2oS.js} +1 -1
- package/dist/{download-CG4Tponq.js → download-BJonq2ty.js} +1 -1
- package/dist/{file-text-CzH-zMub.js → file-text-C-cZx58r.js} +1 -1
- package/dist/{filter-C0u2Lwfn.js → filter-B_S6WOqr.js} +1 -1
- package/dist/{fuel-C2KELcM-.js → fuel-Cjt6IxKr.js} +1 -1
- package/dist/index.js +33 -33
- package/dist/{map-FuPu5aTw.js → map-CO0aWUae.js} +1 -1
- package/dist/{map-pin-czpLv9uy.js → map-pin-BISLzLwb.js} +1 -1
- package/dist/{maps-D9m7PKrs.js → maps-CtfuCAmh.js} +1 -1
- package/dist/{navigation-D5_pdCSS.js → navigation-BFki5UJz.js} +1 -1
- package/dist/{package-B0sdi6lU.js → package-UyaWiALC.js} +1 -1
- package/dist/{phone-V2nuzPu9.js → phone-Bav_V7rR.js} +1 -1
- package/dist/{plus-BqQxkfoU.js → plus-Bk_G-lFC.js} +1 -1
- package/dist/{refresh-cw-CEOAPEcV.js → refresh-cw-C4-jecjy.js} +1 -1
- package/dist/{route-CZWcW-Dw.js → route-WpCP6F1x.js} +1 -1
- package/dist/{save-DDFvrxWl.js → save-CcfoIn2J.js} +1 -1
- package/dist/{search-D7Ya6jxj.js → search-C3YRxW9e.js} +1 -1
- package/dist/{square-pen-DoZZS4Lw.js → square-pen-Dr1X-P2s.js} +1 -1
- package/dist/{star-B7PgVu5j.js → star-1Ixfuzai.js} +1 -1
- package/dist/{store-YVzcIG4A.js → store-BwU935v5.js} +1 -1
- package/dist/{trash-2-BegnBzwI.js → trash-2-CC4KugEJ.js} +1 -1
- package/dist/{trending-up-DBd3XNdb.js → trending-up-1brglj1E.js} +1 -1
- package/dist/{triangle-alert-Bxk3Kgs6.js → triangle-alert-Dh56Yu3-.js} +1 -1
- package/dist/{truck-Clrn0oHp.js → truck-DxhtLfkG.js} +1 -1
- package/dist/{upload-Df5JmMwH.js → upload-CLf0JLXW.js} +1 -1
- package/dist/{useAssistant-Cb8nnIVC.js → useAssistant-B9qBtRKm.js} +1 -1
- package/dist/{useCustomers-Dq2IR2HQ.js → useCustomers-BQ4AIEAT.js} +1 -1
- package/dist/{useFleet-CapnWBcA.js → useFleet-BXSocBD_.js} +1 -1
- package/dist/{useImportExport-BoGzrlJy.js → useImportExport-7-O8noRJ.js} +1 -1
- package/dist/{useInventory-Ci6M2d9f.js → useInventory-DmZficcp.js} +1 -1
- package/dist/{useOrders-BuQU1OHX.js → useOrders-B5FV0kcz.js} +1 -1
- package/dist/{useReports-DIx8W7CO.js → useReports-hUXb8ryJ.js} +1 -1
- package/dist/{useRoutes-D7EvI_pm.js → useRoutes-C_ZCYJ_h.js} +1 -1
- package/dist/{useSettings-BhX251UQ.js → useSettings-CteNasBE.js} +1 -1
- package/dist/{useTracking-C40jmZ6W.js → useTracking-B7ttexRe.js} +3 -3
- package/dist/{user-BlcJrbtE.js → user-B1IjWJtn.js} +1 -1
- package/dist/{user-check-DtnQmimP.js → user-check-Cx6fHHll.js} +1 -1
- package/dist/{users-Cvwko-Dx.js → users-BKmsb79k.js} +1 -1
- package/dist/{warehouse-LWLVTk6G.js → warehouse-DE1irFyJ.js} +1 -1
- package/dist/{wrench-Cme0RbyR.js → wrench-DTJGFs17.js} +1 -1
- package/dist/{x-D8C9Pg5V.js → x-CvsUGJy1.js} +1 -1
- package/package.json +1 -1
- package/src/movethewheels/components/DataTable.tsx +40 -0
- package/src/movethewheels/components/GlassPanel.tsx +1 -3
- package/src/movethewheels/components/MetricCard.tsx +16 -3
- package/src/movethewheels/components/charts/StatusDonut.tsx +2 -6
- package/src/movethewheels/components/charts/TrendChart.tsx +2 -6
- package/src/movethewheels/components/maps/LogisticsMap.tsx +1 -4
- package/src/movethewheels/components/maps/RouteMap.tsx +3 -5
- package/src/movethewheels/components/maps/TrackingMap.tsx +11 -2
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +3 -2
- package/src/movethewheels/pages/CustomersPage.tsx +3 -1
- package/src/movethewheels/pages/DriverDetailsPage.tsx +2 -2
- package/src/movethewheels/pages/DriversPage.tsx +3 -1
- package/src/movethewheels/pages/OrderDetailsPage.tsx +2 -1
- package/src/movethewheels/pages/OrdersListPage.tsx +3 -1
- package/src/movethewheels/pages/ProductsPage.tsx +3 -1
- package/src/movethewheels/pages/RoutesPage.tsx +3 -1
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +2 -2
- package/src/movethewheels/pages/VehiclesPage.tsx +12 -2
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +3 -1
- package/src/movethewheels/pages/WarehousesPage.tsx +3 -1
- package/src/movethewheels/utils/graphqlClient.ts +103 -8
- package/dist/DataTable-KjzbwnRL.js +0 -340
- package/dist/OrdersListPage-C8Bu6wXM.js +0 -386
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
import { A as e, B as t, F as n, G as r, H as i, I as a, K as o, L as ee, P as te, R as ne, U as s, W as c, q as l, rt as u, u as d, ut as f } from "./PageLayout-DX1Ou6V6.js";
|
|
2
|
-
import { n as re, t as ie } from "./arrow-up-PxaOIyiT.js";
|
|
3
|
-
import { t as p } from "./chevron-left-dhEGJYdh.js";
|
|
4
|
-
import { t as m } from "./chevron-right-Cud2NDvm.js";
|
|
5
|
-
import { t as ae } from "./search-D7Ya6jxj.js";
|
|
6
|
-
import { useMemo as h, useState as g } from "react";
|
|
7
|
-
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
8
|
-
import { IllustratedEmptyState as y } from "@burdenoff/fe-libs/ui";
|
|
9
|
-
//#region node_modules/lucide-react/dist/esm/icons/arrow-up-down.js
|
|
10
|
-
var oe = f("ArrowUpDown", [
|
|
11
|
-
["path", {
|
|
12
|
-
d: "m21 16-4 4-4-4",
|
|
13
|
-
key: "f6ql7i"
|
|
14
|
-
}],
|
|
15
|
-
["path", {
|
|
16
|
-
d: "M17 20V4",
|
|
17
|
-
key: "1ejh1v"
|
|
18
|
-
}],
|
|
19
|
-
["path", {
|
|
20
|
-
d: "m3 8 4-4 4 4",
|
|
21
|
-
key: "11wl7u"
|
|
22
|
-
}],
|
|
23
|
-
["path", {
|
|
24
|
-
d: "M7 4v16",
|
|
25
|
-
key: "1glfcx"
|
|
26
|
-
}]
|
|
27
|
-
]), b = f("ChevronsLeft", [["path", {
|
|
28
|
-
d: "m11 17-5-5 5-5",
|
|
29
|
-
key: "13zhaf"
|
|
30
|
-
}], ["path", {
|
|
31
|
-
d: "m18 17-5-5 5-5",
|
|
32
|
-
key: "h8a8et"
|
|
33
|
-
}]]), se = f("ChevronsRight", [["path", {
|
|
34
|
-
d: "m6 17 5-5-5-5",
|
|
35
|
-
key: "xnjwq"
|
|
36
|
-
}], ["path", {
|
|
37
|
-
d: "m13 17 5-5-5-5",
|
|
38
|
-
key: "17xmmf"
|
|
39
|
-
}]]);
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/movethewheels/components/DataTable.tsx
|
|
42
|
-
function x({ columns: f, data: x, isLoading: ce = !1, searchable: S = !1, searchPlaceholder: le = "Search...", searchFields: C, pagination: w = !0, pageSize: T = 10, pageSizeOptions: ue = [
|
|
43
|
-
10,
|
|
44
|
-
25,
|
|
45
|
-
50,
|
|
46
|
-
100
|
|
47
|
-
], onRowClick: E, rowClassName: D, emptyMessage: O = "No data found", emptyIllustration: k, emptyTitle: de, emptyDescription: fe, emptyAction: pe, className: A, getRowId: j, pageIndex: me, onPageChange: M, onPageSizeChange: he, totalItems: N, hasNextPage: ge }) {
|
|
48
|
-
let P = typeof M == "function", F = me ?? 0, [I, _e] = g(""), [L, R] = g(null), [z, B] = g(null), [V, H] = g(1), [U, ve] = g(T), W = P ? T : U, G = h(() => {
|
|
49
|
-
if (!I || !C || C.length === 0) return x;
|
|
50
|
-
let e = I.toLowerCase();
|
|
51
|
-
return x.filter((t) => C.some((n) => {
|
|
52
|
-
let r = t[n];
|
|
53
|
-
return r != null && String(r).toLowerCase().includes(e);
|
|
54
|
-
}));
|
|
55
|
-
}, [
|
|
56
|
-
x,
|
|
57
|
-
I,
|
|
58
|
-
C
|
|
59
|
-
]), K = h(() => {
|
|
60
|
-
if (!L || !z) return G;
|
|
61
|
-
let e = f.find((e) => e.id === L);
|
|
62
|
-
return e?.accessorKey ? [...G].sort((t, n) => {
|
|
63
|
-
let r = t[e.accessorKey], i = n[e.accessorKey];
|
|
64
|
-
if (r == null) return 1;
|
|
65
|
-
if (i == null) return -1;
|
|
66
|
-
let a = 0;
|
|
67
|
-
return a = typeof r == "string" && typeof i == "string" ? r.localeCompare(i) : typeof r == "number" && typeof i == "number" ? r - i : r instanceof Date && i instanceof Date ? r.getTime() - i.getTime() : String(r).localeCompare(String(i)), z === "asc" ? a : -a;
|
|
68
|
-
}) : G;
|
|
69
|
-
}, [
|
|
70
|
-
G,
|
|
71
|
-
L,
|
|
72
|
-
z,
|
|
73
|
-
f
|
|
74
|
-
]), q = h(() => {
|
|
75
|
-
if (!w || P) return K;
|
|
76
|
-
let e = (V - 1) * U;
|
|
77
|
-
return K.slice(e, e + U);
|
|
78
|
-
}, [
|
|
79
|
-
K,
|
|
80
|
-
V,
|
|
81
|
-
U,
|
|
82
|
-
w,
|
|
83
|
-
P
|
|
84
|
-
]), J = Math.max(1, Math.ceil(K.length / U)), Y = typeof N == "number", X = Y ? Math.max(1, Math.ceil(N / W)) : void 0, ye = (e) => {
|
|
85
|
-
L === e ? z === "asc" ? B("desc") : z === "desc" && (R(null), B(null)) : (R(e), B("asc"));
|
|
86
|
-
}, be = (e) => L === e ? _(z === "asc" ? ie : re, { className: "w-4 h-4 text-primary" }) : /* @__PURE__ */ _(oe, { className: "w-4 h-4 text-text-secondary/50" }), Z = (e, t) => {
|
|
87
|
-
if (t.cell) return t.cell(e);
|
|
88
|
-
if (t.accessorKey) {
|
|
89
|
-
let n = e[t.accessorKey];
|
|
90
|
-
return n == null ? "-" : n instanceof Date ? n.toLocaleDateString() : String(n);
|
|
91
|
-
}
|
|
92
|
-
return "-";
|
|
93
|
-
};
|
|
94
|
-
if (ce) return /* @__PURE__ */ v("div", {
|
|
95
|
-
className: u("space-y-4", A),
|
|
96
|
-
children: [
|
|
97
|
-
S && /* @__PURE__ */ _("div", {
|
|
98
|
-
className: "flex items-center gap-4",
|
|
99
|
-
children: /* @__PURE__ */ _(t, { className: "h-10 w-64" })
|
|
100
|
-
}),
|
|
101
|
-
/* @__PURE__ */ _("div", {
|
|
102
|
-
className: "hidden md:block rounded-card border border-border-seam bg-bg-surface shadow-elevation-1",
|
|
103
|
-
children: /* @__PURE__ */ v(i, { children: [/* @__PURE__ */ _(o, { children: /* @__PURE__ */ _(l, { children: f.map((e) => /* @__PURE__ */ _(r, { children: /* @__PURE__ */ _(t, { className: "h-4 w-20 motion-safe:animate-vc-shimmer" }) }, e.id)) }) }), /* @__PURE__ */ _(s, { children: Array.from({ length: 5 }).map((e, n) => /* @__PURE__ */ _(l, { children: f.map((e) => /* @__PURE__ */ _(c, { children: /* @__PURE__ */ _(t, { className: "h-4 w-full max-w-[100px] motion-safe:animate-vc-shimmer" }) }, e.id)) }, n)) })] })
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ _("div", {
|
|
106
|
-
className: "md:hidden space-y-3",
|
|
107
|
-
children: Array.from({ length: 4 }).map((e, n) => /* @__PURE__ */ v("div", {
|
|
108
|
-
className: "rounded-card border border-border-seam bg-bg-surface p-4 shadow-elevation-1",
|
|
109
|
-
children: [/* @__PURE__ */ _(t, { className: "h-4 w-2/3 mb-2 motion-safe:animate-vc-shimmer" }), /* @__PURE__ */ _(t, { className: "h-4 w-1/2 motion-safe:animate-vc-shimmer" })]
|
|
110
|
-
}, n))
|
|
111
|
-
})
|
|
112
|
-
]
|
|
113
|
-
});
|
|
114
|
-
let Q = q.length === 0, $ = () => k ? I ? /* @__PURE__ */ _(y, {
|
|
115
|
-
illustration: "empty-search",
|
|
116
|
-
title: "No matches",
|
|
117
|
-
description: `Nothing matches “${I}”. Try a different search.`
|
|
118
|
-
}) : /* @__PURE__ */ _(y, {
|
|
119
|
-
illustration: k,
|
|
120
|
-
title: de ?? O,
|
|
121
|
-
description: fe,
|
|
122
|
-
action: pe
|
|
123
|
-
}) : /* @__PURE__ */ _("p", {
|
|
124
|
-
className: "text-text-secondary",
|
|
125
|
-
children: O
|
|
126
|
-
}), xe = w && (P ? K.length > 0 || F > 0 : K.length > 0);
|
|
127
|
-
return /* @__PURE__ */ v("div", {
|
|
128
|
-
className: u("space-y-4", A),
|
|
129
|
-
children: [
|
|
130
|
-
S && /* @__PURE__ */ _("div", {
|
|
131
|
-
className: "flex items-center gap-4",
|
|
132
|
-
children: /* @__PURE__ */ v("div", {
|
|
133
|
-
className: "relative flex-1 max-w-sm",
|
|
134
|
-
children: [/* @__PURE__ */ _(ae, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-text-secondary" }), /* @__PURE__ */ _(e, {
|
|
135
|
-
placeholder: le,
|
|
136
|
-
value: I,
|
|
137
|
-
onChange: (e) => {
|
|
138
|
-
_e(e.target.value), H(1);
|
|
139
|
-
},
|
|
140
|
-
className: "pl-9"
|
|
141
|
-
})]
|
|
142
|
-
})
|
|
143
|
-
}),
|
|
144
|
-
/* @__PURE__ */ _("div", {
|
|
145
|
-
className: "hidden md:block overflow-x-auto rounded-card border border-border-seam bg-bg-surface shadow-elevation-1",
|
|
146
|
-
children: /* @__PURE__ */ v(i, { children: [/* @__PURE__ */ _(o, { children: /* @__PURE__ */ _(l, { children: f.map((e) => /* @__PURE__ */ _(r, {
|
|
147
|
-
className: u(e.sortable && "cursor-pointer select-none hover:bg-bg-sunken/50", e.headerClassName),
|
|
148
|
-
onClick: () => e.sortable && ye(e.id),
|
|
149
|
-
children: /* @__PURE__ */ v("div", {
|
|
150
|
-
className: "flex items-center gap-2",
|
|
151
|
-
children: [e.header, e.sortable && be(e.id)]
|
|
152
|
-
})
|
|
153
|
-
}, e.id)) }) }), /* @__PURE__ */ _(s, { children: Q ? /* @__PURE__ */ _(l, { children: /* @__PURE__ */ _(c, {
|
|
154
|
-
colSpan: f.length,
|
|
155
|
-
className: "py-8 text-center",
|
|
156
|
-
children: $()
|
|
157
|
-
}) }) : q.map((e, t) => {
|
|
158
|
-
let n = j ? j(e) : t, r = typeof D == "function" ? D(e) : D;
|
|
159
|
-
return /* @__PURE__ */ _(l, {
|
|
160
|
-
className: u(E && "cursor-pointer hover:bg-bg-sunken/50", r),
|
|
161
|
-
onClick: () => E?.(e),
|
|
162
|
-
children: f.map((t) => /* @__PURE__ */ _(c, {
|
|
163
|
-
className: t.className,
|
|
164
|
-
children: Z(e, t)
|
|
165
|
-
}, t.id))
|
|
166
|
-
}, n);
|
|
167
|
-
}) })] })
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ _("div", {
|
|
170
|
-
className: "md:hidden space-y-3",
|
|
171
|
-
children: Q ? /* @__PURE__ */ _("div", {
|
|
172
|
-
className: "rounded-card border border-border-seam bg-bg-surface p-6 text-center shadow-elevation-1",
|
|
173
|
-
children: $()
|
|
174
|
-
}) : q.map((e, t) => {
|
|
175
|
-
let n = j ? j(e) : t, r = typeof D == "function" ? D(e) : D;
|
|
176
|
-
return /* @__PURE__ */ _("div", {
|
|
177
|
-
role: E ? "button" : void 0,
|
|
178
|
-
tabIndex: E ? 0 : void 0,
|
|
179
|
-
className: u("rounded-card border border-border-seam bg-bg-surface p-4 shadow-elevation-1", E && "cursor-pointer hover:bg-bg-sunken/50", r),
|
|
180
|
-
onClick: () => E?.(e),
|
|
181
|
-
onKeyDown: (t) => {
|
|
182
|
-
E && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), E(e));
|
|
183
|
-
},
|
|
184
|
-
children: /* @__PURE__ */ _("dl", {
|
|
185
|
-
className: "space-y-2",
|
|
186
|
-
children: f.map((t) => /* @__PURE__ */ v("div", {
|
|
187
|
-
className: "flex items-start justify-between gap-3",
|
|
188
|
-
children: [/* @__PURE__ */ _("dt", {
|
|
189
|
-
className: "text-xs font-medium text-text-secondary shrink-0",
|
|
190
|
-
children: t.header
|
|
191
|
-
}), /* @__PURE__ */ _("dd", {
|
|
192
|
-
className: "text-sm text-right min-w-0",
|
|
193
|
-
children: Z(e, t)
|
|
194
|
-
})]
|
|
195
|
-
}, t.id))
|
|
196
|
-
})
|
|
197
|
-
}, n);
|
|
198
|
-
})
|
|
199
|
-
}),
|
|
200
|
-
xe && /* @__PURE__ */ v("div", {
|
|
201
|
-
className: "flex flex-wrap items-center justify-between gap-3",
|
|
202
|
-
children: [/* @__PURE__ */ v("div", {
|
|
203
|
-
className: "flex flex-wrap items-center gap-2 text-sm text-text-secondary",
|
|
204
|
-
children: [
|
|
205
|
-
P ? /* @__PURE__ */ v("span", { children: [
|
|
206
|
-
"Showing ",
|
|
207
|
-
K.length === 0 ? 0 : F * W + 1,
|
|
208
|
-
" to",
|
|
209
|
-
" ",
|
|
210
|
-
F * W + K.length,
|
|
211
|
-
Y ? ` of ${N}` : ""
|
|
212
|
-
] }) : /* @__PURE__ */ v("span", { children: [
|
|
213
|
-
"Showing ",
|
|
214
|
-
(V - 1) * U + 1,
|
|
215
|
-
" to",
|
|
216
|
-
" ",
|
|
217
|
-
Math.min(V * U, K.length),
|
|
218
|
-
" of ",
|
|
219
|
-
K.length
|
|
220
|
-
] }),
|
|
221
|
-
/* @__PURE__ */ v(te, {
|
|
222
|
-
value: String(W),
|
|
223
|
-
onValueChange: (e) => {
|
|
224
|
-
let t = Number(e);
|
|
225
|
-
P ? he?.(t) : (ve(t), H(1));
|
|
226
|
-
},
|
|
227
|
-
children: [/* @__PURE__ */ _(ee, {
|
|
228
|
-
className: "w-[70px] h-8",
|
|
229
|
-
children: /* @__PURE__ */ _(ne, {})
|
|
230
|
-
}), /* @__PURE__ */ _(n, { children: ue.map((e) => /* @__PURE__ */ _(a, {
|
|
231
|
-
value: String(e),
|
|
232
|
-
children: e
|
|
233
|
-
}, e)) })]
|
|
234
|
-
}),
|
|
235
|
-
/* @__PURE__ */ _("span", { children: "per page" })
|
|
236
|
-
]
|
|
237
|
-
}), P ? /* @__PURE__ */ v("div", {
|
|
238
|
-
className: "flex items-center gap-1",
|
|
239
|
-
children: [
|
|
240
|
-
/* @__PURE__ */ _(d, {
|
|
241
|
-
variant: "outline",
|
|
242
|
-
size: "icon",
|
|
243
|
-
className: "h-8 w-8",
|
|
244
|
-
"aria-label": "First page",
|
|
245
|
-
onClick: () => M?.(0),
|
|
246
|
-
disabled: F === 0,
|
|
247
|
-
children: /* @__PURE__ */ _(b, { className: "h-4 w-4" })
|
|
248
|
-
}),
|
|
249
|
-
/* @__PURE__ */ _(d, {
|
|
250
|
-
variant: "outline",
|
|
251
|
-
size: "icon",
|
|
252
|
-
className: "h-8 w-8",
|
|
253
|
-
"aria-label": "Previous page",
|
|
254
|
-
onClick: () => M?.(Math.max(0, F - 1)),
|
|
255
|
-
disabled: F === 0,
|
|
256
|
-
children: /* @__PURE__ */ _(p, { className: "h-4 w-4" })
|
|
257
|
-
}),
|
|
258
|
-
/* @__PURE__ */ v("span", {
|
|
259
|
-
className: "px-3 text-sm",
|
|
260
|
-
children: [
|
|
261
|
-
"Page ",
|
|
262
|
-
F + 1,
|
|
263
|
-
Y ? ` of ${X}` : ""
|
|
264
|
-
]
|
|
265
|
-
}),
|
|
266
|
-
/* @__PURE__ */ _(d, {
|
|
267
|
-
variant: "outline",
|
|
268
|
-
size: "icon",
|
|
269
|
-
className: "h-8 w-8",
|
|
270
|
-
"aria-label": "Next page",
|
|
271
|
-
onClick: () => M?.(F + 1),
|
|
272
|
-
disabled: Y ? F + 1 >= (X ?? 1) : !ge,
|
|
273
|
-
children: /* @__PURE__ */ _(m, { className: "h-4 w-4" })
|
|
274
|
-
}),
|
|
275
|
-
Y && /* @__PURE__ */ _(d, {
|
|
276
|
-
variant: "outline",
|
|
277
|
-
size: "icon",
|
|
278
|
-
className: "h-8 w-8",
|
|
279
|
-
"aria-label": "Last page",
|
|
280
|
-
onClick: () => M?.((X ?? 1) - 1),
|
|
281
|
-
disabled: F + 1 >= (X ?? 1),
|
|
282
|
-
children: /* @__PURE__ */ _(se, { className: "h-4 w-4" })
|
|
283
|
-
})
|
|
284
|
-
]
|
|
285
|
-
}) : /* @__PURE__ */ v("div", {
|
|
286
|
-
className: "flex items-center gap-1",
|
|
287
|
-
children: [
|
|
288
|
-
/* @__PURE__ */ _(d, {
|
|
289
|
-
variant: "outline",
|
|
290
|
-
size: "icon",
|
|
291
|
-
className: "h-8 w-8",
|
|
292
|
-
"aria-label": "First page",
|
|
293
|
-
onClick: () => H(1),
|
|
294
|
-
disabled: V === 1,
|
|
295
|
-
children: /* @__PURE__ */ _(b, { className: "h-4 w-4" })
|
|
296
|
-
}),
|
|
297
|
-
/* @__PURE__ */ _(d, {
|
|
298
|
-
variant: "outline",
|
|
299
|
-
size: "icon",
|
|
300
|
-
className: "h-8 w-8",
|
|
301
|
-
"aria-label": "Previous page",
|
|
302
|
-
onClick: () => H((e) => Math.max(1, e - 1)),
|
|
303
|
-
disabled: V === 1,
|
|
304
|
-
children: /* @__PURE__ */ _(p, { className: "h-4 w-4" })
|
|
305
|
-
}),
|
|
306
|
-
/* @__PURE__ */ v("span", {
|
|
307
|
-
className: "px-3 text-sm",
|
|
308
|
-
children: [
|
|
309
|
-
"Page ",
|
|
310
|
-
V,
|
|
311
|
-
" of ",
|
|
312
|
-
J
|
|
313
|
-
]
|
|
314
|
-
}),
|
|
315
|
-
/* @__PURE__ */ _(d, {
|
|
316
|
-
variant: "outline",
|
|
317
|
-
size: "icon",
|
|
318
|
-
className: "h-8 w-8",
|
|
319
|
-
"aria-label": "Next page",
|
|
320
|
-
onClick: () => H((e) => Math.min(J, e + 1)),
|
|
321
|
-
disabled: V === J,
|
|
322
|
-
children: /* @__PURE__ */ _(m, { className: "h-4 w-4" })
|
|
323
|
-
}),
|
|
324
|
-
/* @__PURE__ */ _(d, {
|
|
325
|
-
variant: "outline",
|
|
326
|
-
size: "icon",
|
|
327
|
-
className: "h-8 w-8",
|
|
328
|
-
"aria-label": "Last page",
|
|
329
|
-
onClick: () => H(J),
|
|
330
|
-
disabled: V === J,
|
|
331
|
-
children: /* @__PURE__ */ _(se, { className: "h-4 w-4" })
|
|
332
|
-
})
|
|
333
|
-
]
|
|
334
|
-
})]
|
|
335
|
-
})
|
|
336
|
-
]
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
//#endregion
|
|
340
|
-
export { x as t };
|