vlite3 1.2.1 → 1.2.2

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 (38) hide show
  1. package/components/AppShell/AppShellLayoutClassic.vue.js +67 -64
  2. package/components/AppShell/AppShellLayoutDashboard.vue.js +75 -70
  3. package/components/AppShell/AppShellLayoutDock.vue.js +27 -27
  4. package/components/AppShell/AppShellLayoutHeaderShell.vue.js +80 -75
  5. package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +56 -56
  6. package/components/DataTable/DataTable.vue.d.ts +3 -3
  7. package/components/DataTable/DataTableRow.vue.d.ts +1 -1
  8. package/components/Form/CustomFields.vue.js +2 -2
  9. package/components/Form/CustomFields.vue2.js +15 -2
  10. package/components/Invoice/InvoiceVariant1.vue.js +225 -176
  11. package/components/Invoice/InvoiceVariant2.vue.js +174 -125
  12. package/components/Invoice/InvoiceVariant3.vue.js +186 -157
  13. package/components/Invoice/InvoiceVariant4.vue.js +200 -156
  14. package/components/Invoice/types.d.ts +10 -1
  15. package/components/List/ListFieldRow.vue.js +16 -16
  16. package/components/List/utils.d.ts +2 -2
  17. package/components/List/utils.js +6 -9
  18. package/components/NavbarCommandPalette.vue.js +1 -1
  19. package/components/Price/Price.vue.d.ts +2 -0
  20. package/components/Price/Price.vue.js +15 -12
  21. package/components/Screen/Screen.vue.d.ts +36 -10
  22. package/components/Screen/Screen.vue.js +398 -304
  23. package/components/Screen/components/ScreenToolbar.vue.d.ts +62 -0
  24. package/components/Screen/components/ScreenToolbar.vue.js +116 -0
  25. package/components/Screen/components/ScreenToolbar.vue2.js +4 -0
  26. package/components/Screen/types.d.ts +9 -0
  27. package/components/Stats/StatItem.vue.js +88 -87
  28. package/components/Stats/Stats.vue.js +20 -20
  29. package/components/Stats/types.d.ts +3 -1
  30. package/core/config.d.ts +10 -0
  31. package/core/config.js +11 -9
  32. package/index.js +131 -131
  33. package/package.json +1 -1
  34. package/style.css +1 -1
  35. package/types/config.type.d.ts +2 -0
  36. package/types/list.type.d.ts +4 -0
  37. package/utils/functions.d.ts +9 -10
  38. package/utils/functions.js +78 -63
@@ -1,57 +1,63 @@
1
- import { defineComponent as _, computed as v, openBlock as s, createElementBlock as a, normalizeStyle as k, normalizeClass as n, createElementVNode as t, createVNode as u, createCommentVNode as l, toDisplayString as o, createBlock as w, unref as r, Fragment as I, renderList as z } from "vue";
2
- import f from "../Price/Price.vue.js";
3
- import y from "../DateTime/DateTime.vue.js";
1
+ import { defineComponent as b, computed as v, openBlock as s, createElementBlock as a, normalizeStyle as k, normalizeClass as i, createElementVNode as o, createVNode as u, createCommentVNode as c, toDisplayString as t, createBlock as I, unref as r, Fragment as w, renderList as z } from "vue";
2
+ import p from "../Price/Price.vue.js";
3
+ import g from "../DateTime/DateTime.vue.js";
4
4
  import D from "../QRCode/QRCode.vue.js";
5
5
  import N from "../Barcode/Barcode.vue.js";
6
- import g from "../Avatar.vue.js";
7
- import B from "../StatusChip/StatusChip.vue.js";
8
- import T from "./InvoiceTotals.vue.js";
9
- const V = { class: "flex items-center gap-3" }, $ = {
6
+ import y from "../Avatar.vue.js";
7
+ import T from "../StatusChip/StatusChip.vue.js";
8
+ import B from "./InvoiceTotals.vue.js";
9
+ const S = { class: "flex items-center gap-3" }, V = {
10
10
  key: 0,
11
11
  class: "shrink-0"
12
- }, q = { class: "flex flex-col leading-tight" }, L = { class: "flex items-center gap-3" }, S = { key: 0 }, C = { class: "mt-0.5 text-muted-foreground space-y-0.5 text-xs" }, j = { key: 0 }, E = { key: 1 }, F = { key: 2 }, P = {
12
+ }, $ = { class: "flex flex-col leading-tight" }, M = { class: "flex items-center gap-3" }, q = { key: 0 }, L = { class: "mt-0.5 text-muted-foreground space-y-0.5 text-xs" }, C = { key: 0 }, j = { key: 1 }, E = { key: 2 }, P = {
13
13
  key: 3,
14
14
  class: "pt-0.5"
15
- }, K = { key: 1 }, O = { class: "mt-0.5 text-muted-foreground space-y-0.5 text-xs" }, Q = { key: 0 }, U = { key: 1 }, A = { key: 2 }, G = { class: "flex flex-col md:items-end gap-2" }, H = {
15
+ }, F = { key: 1 }, K = { class: "mt-0.5 text-muted-foreground space-y-0.5 text-xs" }, O = { key: 0 }, Q = { key: 1 }, U = { key: 2 }, A = { key: 2 }, G = { class: "mt-0.5 text-muted-foreground space-y-0.5 text-xs" }, H = { key: 0 }, J = { key: 1 }, R = { key: 2 }, W = { key: 3 }, X = { key: 4 }, Y = { class: "flex flex-col md:items-end gap-2" }, Z = {
16
16
  key: 0,
17
17
  class: "flex gap-2 items-center"
18
- }, J = { class: "text-muted-foreground font-medium text-xs" }, M = {
18
+ }, ee = { class: "text-muted-foreground font-medium text-xs" }, te = {
19
19
  key: 1,
20
20
  class: "flex gap-2 items-center"
21
- }, R = { class: "text-muted-foreground font-medium text-xs" }, W = {
21
+ }, oe = { class: "text-muted-foreground font-medium text-xs" }, se = {
22
22
  key: 2,
23
+ class: "flex gap-2 items-center"
24
+ }, ae = { class: "text-muted-foreground font-medium text-xs" }, ce = { class: "font-semibold text-xs text-foreground" }, ne = {
25
+ key: 3,
26
+ class: "flex gap-2 items-center"
27
+ }, ie = { class: "text-muted-foreground font-medium text-xs" }, le = { class: "font-semibold text-xs text-foreground" }, de = {
28
+ key: 4,
23
29
  class: "flex items-center justify-end gap-2 mt-1"
24
- }, X = {
30
+ }, ue = {
25
31
  key: 0,
26
32
  class: ""
27
- }, Y = {
33
+ }, re = {
28
34
  key: 1,
29
35
  class: "overflow-hidden"
30
- }, Z = { class: "border border-border rounded-md overflow-x-auto" }, ee = { class: "invoice-table" }, te = { class: "invoice-thead" }, oe = {
36
+ }, me = { class: "border border-border rounded-md overflow-x-auto" }, ve = { class: "invoice-table" }, pe = { class: "invoice-thead" }, fe = {
31
37
  scope: "col",
32
38
  class: "invoice-th"
33
- }, se = { class: "invoice-tbody text-xs" }, ae = { class: "invoice-td" }, ce = { class: "flex items-center gap-2.5" }, le = { class: "min-w-0 flex-1" }, ne = ["title"], ie = ["title"], de = { class: "invoice-td invoice-text-right tabular-nums text-muted-foreground font-medium" }, ue = {
39
+ }, he = { class: "invoice-tbody text-xs" }, xe = { class: "invoice-td" }, ge = { class: "flex items-center gap-2.5" }, ye = { class: "min-w-0 flex-1" }, _e = ["title"], be = ["title"], ke = { class: "invoice-td invoice-text-right tabular-nums text-muted-foreground font-medium" }, Ie = {
34
40
  key: 0,
35
41
  class: "invoice-td invoice-text-right tabular-nums text-muted-foreground"
36
- }, re = { class: "invoice-td invoice-text-right tabular-nums text-muted-foreground" }, me = {
42
+ }, we = { class: "invoice-td invoice-text-right tabular-nums text-muted-foreground" }, ze = {
37
43
  key: 1,
38
44
  class: "invoice-td invoice-text-right tabular-nums text-success/80 font-medium"
39
- }, ve = {
45
+ }, De = {
40
46
  key: 0,
41
47
  class: "flex flex-col items-end"
42
- }, fe = {
48
+ }, Ne = {
43
49
  key: 0,
44
50
  class: "text-[8px] uppercase font-bold"
45
- }, xe = {
51
+ }, Te = {
46
52
  key: 1,
47
53
  class: "text-muted-foreground"
48
- }, he = { class: "invoice-td invoice-text-right tabular-nums font-semibold text-foreground" }, pe = {
54
+ }, Be = { class: "invoice-td invoice-text-right tabular-nums font-semibold text-foreground" }, Se = {
49
55
  key: 0,
50
56
  class: "text-muted-foreground text-xs border-t border-border pt-3"
51
- }, ye = { class: "text-foreground" }, ge = { class: "whitespace-pre-wrap" }, be = {
57
+ }, Ve = { class: "text-foreground" }, $e = { class: "whitespace-pre-wrap" }, Me = {
52
58
  key: 1,
53
59
  class: "text-center text-muted-foreground opacity-70 text-xs"
54
- }, Ve = /* @__PURE__ */ _({
60
+ }, Qe = /* @__PURE__ */ b({
55
61
  __name: "InvoiceVariant3",
56
62
  props: {
57
63
  data: {},
@@ -59,224 +65,247 @@ const V = { class: "flex items-center gap-3" }, $ = {
59
65
  displayBarcodeValue: { type: Boolean, default: !1 },
60
66
  labels: {}
61
67
  },
62
- setup(c) {
63
- const x = c, e = v(() => x.data), d = v(() => x.labels || {}), h = v(() => e.value.items.some((m) => !!m.size)), p = v(() => e.value.items.some((m) => m.discount !== void 0));
64
- return (m, _e) => (s(), a("div", {
65
- class: n(["v-invoice-v3 bg-background text-foreground border border-border rounded-lg overflow-hidden", c.compact ? "text-xs" : "text-sm"]),
68
+ setup(n) {
69
+ const f = n, e = v(() => f.data), d = v(() => f.labels || {}), h = v(() => e.value.items.some((m) => !!m.size)), x = v(() => e.value.items.some((m) => m.discount !== void 0));
70
+ return (m, qe) => (s(), a("div", {
71
+ class: i(["v-invoice-v3 bg-background text-foreground border border-border rounded-lg overflow-hidden", n.compact ? "text-xs" : "text-sm"]),
66
72
  style: k({
67
- "--invoice-cell-px": c.compact ? "0.75rem" : "1rem",
68
- "--invoice-cell-py": c.compact ? "0.375rem" : "0.5rem",
73
+ "--invoice-cell-px": n.compact ? "0.75rem" : "1rem",
74
+ "--invoice-cell-py": n.compact ? "0.375rem" : "0.5rem",
69
75
  "--invoice-thead-bg": "var(--color-muted)",
70
76
  "--invoice-tr-border": "1px solid var(--color-border)",
71
77
  "--invoice-tr-hover-bg": "color-mix(in oklab, var(--color-muted) 30%, transparent)"
72
78
  })
73
79
  }, [
74
- t("div", {
75
- class: n(["bg-gray-900 flex justify-between items-center text-white", c.compact ? "px-5 py-2.5" : "px-6 py-3.5"])
80
+ o("div", {
81
+ class: i(["bg-gray-900 flex justify-between items-center text-white", n.compact ? "px-5 py-2.5" : "px-6 py-3.5"])
76
82
  }, [
77
- t("div", V, [
78
- e.value.brandLogo ? (s(), a("div", $, [
79
- u(g, {
83
+ o("div", S, [
84
+ e.value.brandLogo ? (s(), a("div", V, [
85
+ u(y, {
80
86
  src: e.value.brandLogo,
81
87
  alt: e.value.brandName,
82
- class: n(c.compact ? "h-7 w-7" : "h-8 w-8"),
88
+ class: i(n.compact ? "h-7 w-7" : "h-8 w-8"),
83
89
  rounded: "sm"
84
90
  }, null, 8, ["src", "alt", "class"])
85
- ])) : l("", !0),
86
- t("div", q, [
91
+ ])) : c("", !0),
92
+ o("div", $, [
87
93
  e.value.brandName ? (s(), a("span", {
88
94
  key: 0,
89
- class: n(["font-bold text-white leading-tight", c.compact ? "text-sm" : "text-base"])
90
- }, o(e.value.brandName), 3)) : l("", !0),
95
+ class: i(["font-bold text-white leading-tight", n.compact ? "text-sm" : "text-base"])
96
+ }, t(e.value.brandName), 3)) : c("", !0),
91
97
  e.value.brandTitle ? (s(), a("span", {
92
98
  key: 1,
93
- class: n(["opacity-75 font-medium", c.compact ? "text-[10px]" : "text-xs"])
94
- }, o(e.value.brandTitle), 3)) : l("", !0)
99
+ class: i(["opacity-75 font-medium", n.compact ? "text-[10px]" : "text-xs"])
100
+ }, t(e.value.brandTitle), 3)) : c("", !0)
95
101
  ])
96
102
  ]),
97
- t("div", L, [
98
- t("span", {
99
- class: n(["opacity-80 font-medium", c.compact ? "text-xs" : "text-sm"])
100
- }, "#" + o(e.value.invoiceNumber), 3),
101
- e.value.status ? (s(), w(B, {
103
+ o("div", M, [
104
+ o("span", {
105
+ class: i(["opacity-80 font-medium", n.compact ? "text-xs" : "text-sm"])
106
+ }, "#" + t(e.value.invoiceNumber), 3),
107
+ e.value.status ? (s(), I(T, {
102
108
  key: 0,
103
109
  status: e.value.status,
104
110
  "hide-icon": "",
105
111
  size: "small"
106
- }, null, 8, ["status"])) : l("", !0)
112
+ }, null, 8, ["status"])) : c("", !0)
107
113
  ])
108
114
  ], 2),
109
- t("div", {
110
- class: n(c.compact ? "p-4 space-y-4" : "p-5 space-y-5")
115
+ o("div", {
116
+ class: i(n.compact ? "p-4 space-y-4" : "p-5 space-y-5")
111
117
  }, [
112
- t("div", {
113
- class: n(["grid grid-cols-1 md:grid-cols-3", c.compact ? "gap-3" : "gap-5"])
118
+ o("div", {
119
+ class: i(["grid grid-cols-1 sm:grid-cols-2", [e.value.shippingInfo ? "md:grid-cols-4" : "md:grid-cols-3", n.compact ? "gap-3" : "gap-5"]])
114
120
  }, [
115
- e.value.companyInfo ? (s(), a("div", S, [
116
- t("p", {
117
- class: n(["text-muted-foreground uppercase tracking-widest font-semibold mb-1.5", c.compact ? "text-[9px]" : "text-[10px]"])
118
- }, o(d.value.from || "From"), 3),
119
- t("p", {
120
- class: n(["font-bold text-foreground", c.compact ? "text-xs" : "text-sm"])
121
- }, o(e.value.companyInfo.name || e.value.brandName), 3),
122
- t("div", C, [
123
- e.value.companyInfo.address ? (s(), a("p", j, o(e.value.companyInfo.address), 1)) : l("", !0),
124
- e.value.companyInfo.city ? (s(), a("p", E, o(e.value.companyInfo.city) + ", " + o(e.value.companyInfo.state) + " " + o(e.value.companyInfo.zip), 1)) : l("", !0),
125
- e.value.companyInfo.country ? (s(), a("p", F, o(e.value.companyInfo.country), 1)) : l("", !0),
126
- e.value.companyInfo.email ? (s(), a("p", P, o(e.value.companyInfo.email), 1)) : l("", !0)
121
+ e.value.companyInfo ? (s(), a("div", q, [
122
+ o("p", {
123
+ class: i(["text-muted-foreground uppercase tracking-widest font-semibold mb-1.5", n.compact ? "text-[9px]" : "text-[10px]"])
124
+ }, t(d.value.from || "From"), 3),
125
+ o("p", {
126
+ class: i(["font-bold text-foreground", n.compact ? "text-xs" : "text-sm"])
127
+ }, t(e.value.companyInfo.name || e.value.brandName), 3),
128
+ o("div", L, [
129
+ e.value.companyInfo.address ? (s(), a("p", C, t(e.value.companyInfo.address), 1)) : c("", !0),
130
+ e.value.companyInfo.city ? (s(), a("p", j, t(e.value.companyInfo.city) + ", " + t(e.value.companyInfo.state) + " " + t(e.value.companyInfo.zip), 1)) : c("", !0),
131
+ e.value.companyInfo.country ? (s(), a("p", E, t(e.value.companyInfo.country), 1)) : c("", !0),
132
+ e.value.companyInfo.email ? (s(), a("p", P, t(e.value.companyInfo.email), 1)) : c("", !0)
133
+ ])
134
+ ])) : c("", !0),
135
+ e.value.customerInfo ? (s(), a("div", F, [
136
+ o("p", {
137
+ class: i(["text-muted-foreground uppercase tracking-widest font-semibold mb-1.5", n.compact ? "text-[9px]" : "text-[10px]"])
138
+ }, t(d.value.billedTo || "Billed To"), 3),
139
+ o("p", {
140
+ class: i(["font-bold text-foreground", n.compact ? "text-xs" : "text-sm"])
141
+ }, t(e.value.customerInfo.name), 3),
142
+ o("div", K, [
143
+ e.value.customerInfo.address ? (s(), a("p", O, t(e.value.customerInfo.address), 1)) : c("", !0),
144
+ e.value.customerInfo.city ? (s(), a("p", Q, t(e.value.customerInfo.city) + ", " + t(e.value.customerInfo.state) + " " + t(e.value.customerInfo.zip), 1)) : c("", !0),
145
+ e.value.customerInfo.email ? (s(), a("p", U, t(e.value.customerInfo.email), 1)) : c("", !0)
127
146
  ])
128
- ])) : l("", !0),
129
- e.value.customerInfo ? (s(), a("div", K, [
130
- t("p", {
131
- class: n(["text-muted-foreground uppercase tracking-widest font-semibold mb-1.5", c.compact ? "text-[9px]" : "text-[10px]"])
132
- }, o(d.value.billedTo || "Billed To"), 3),
133
- t("p", {
134
- class: n(["font-bold text-foreground", c.compact ? "text-xs" : "text-sm"])
135
- }, o(e.value.customerInfo.name), 3),
136
- t("div", O, [
137
- e.value.customerInfo.address ? (s(), a("p", Q, o(e.value.customerInfo.address), 1)) : l("", !0),
138
- e.value.customerInfo.city ? (s(), a("p", U, o(e.value.customerInfo.city) + ", " + o(e.value.customerInfo.state) + " " + o(e.value.customerInfo.zip), 1)) : l("", !0),
139
- e.value.customerInfo.email ? (s(), a("p", A, o(e.value.customerInfo.email), 1)) : l("", !0)
147
+ ])) : c("", !0),
148
+ e.value.shippingInfo ? (s(), a("div", A, [
149
+ o("p", {
150
+ class: i(["text-muted-foreground uppercase tracking-widest font-semibold mb-1.5", n.compact ? "text-[9px]" : "text-[10px]"])
151
+ }, t(d.value.shipTo || "Ship To"), 3),
152
+ o("p", {
153
+ class: i(["font-bold text-foreground", n.compact ? "text-xs" : "text-sm"])
154
+ }, t(e.value.shippingInfo.name), 3),
155
+ o("div", G, [
156
+ e.value.shippingInfo.address ? (s(), a("p", H, t(e.value.shippingInfo.address), 1)) : c("", !0),
157
+ e.value.shippingInfo.city ? (s(), a("p", J, t(e.value.shippingInfo.city) + ", " + t(e.value.shippingInfo.state) + " " + t(e.value.shippingInfo.zip), 1)) : c("", !0),
158
+ e.value.shippingInfo.country ? (s(), a("p", R, t(e.value.shippingInfo.country), 1)) : c("", !0),
159
+ e.value.shippingInfo.email ? (s(), a("p", W, t(e.value.shippingInfo.email), 1)) : c("", !0),
160
+ e.value.shippingInfo.phone ? (s(), a("p", X, t(e.value.shippingInfo.phone), 1)) : c("", !0)
140
161
  ])
141
- ])) : l("", !0),
142
- t("div", G, [
143
- e.value.issuedDate ? (s(), a("div", H, [
144
- t("span", J, o(d.value.issued || "Issued") + ":", 1),
145
- u(r(y), {
162
+ ])) : c("", !0),
163
+ o("div", Y, [
164
+ e.value.issuedDate ? (s(), a("div", Z, [
165
+ o("span", ee, t(d.value.issued || "Issued") + ":", 1),
166
+ u(r(g), {
146
167
  value: e.value.issuedDate,
147
168
  type: "date",
148
169
  class: "font-semibold text-xs text-foreground"
149
170
  }, null, 8, ["value"])
150
- ])) : l("", !0),
151
- e.value.dueDate ? (s(), a("div", M, [
152
- t("span", R, o(d.value.due || "Due") + ":", 1),
153
- u(r(y), {
171
+ ])) : c("", !0),
172
+ e.value.dueDate ? (s(), a("div", te, [
173
+ o("span", oe, t(d.value.due || "Due") + ":", 1),
174
+ u(r(g), {
154
175
  value: e.value.dueDate,
155
176
  type: "date",
156
177
  class: "font-semibold text-xs text-foreground"
157
178
  }, null, 8, ["value"])
158
- ])) : l("", !0),
159
- e.value.qrcode || e.value.barcode ? (s(), a("div", W, [
160
- e.value.qrcode ? (s(), a("div", X, [
179
+ ])) : c("", !0),
180
+ e.value.paymentMethod ? (s(), a("div", se, [
181
+ o("span", ae, t(d.value.paymentMethod || "Payment") + ":", 1),
182
+ o("span", ce, t(e.value.paymentMethod), 1)
183
+ ])) : c("", !0),
184
+ e.value.shippingMethod ? (s(), a("div", ne, [
185
+ o("span", ie, t(d.value.shippingMethod || "Shipping") + ":", 1),
186
+ o("span", le, t(e.value.shippingMethod), 1)
187
+ ])) : c("", !0),
188
+ e.value.qrcode || e.value.barcode ? (s(), a("div", de, [
189
+ e.value.qrcode ? (s(), a("div", ue, [
161
190
  u(r(D), {
162
191
  value: e.value.qrcode,
163
- size: c.compact ? 40 : 48
192
+ size: n.compact ? 40 : 48
164
193
  }, null, 8, ["value", "size"])
165
- ])) : l("", !0),
166
- e.value.barcode ? (s(), a("div", Y, [
194
+ ])) : c("", !0),
195
+ e.value.barcode ? (s(), a("div", re, [
167
196
  u(r(N), {
168
197
  value: e.value.barcode,
169
198
  format: "CODE128",
170
- height: c.compact ? 20 : 26,
171
- width: c.compact ? 1 : 1.2,
172
- "display-value": c.displayBarcodeValue
199
+ height: n.compact ? 20 : 26,
200
+ width: n.compact ? 1 : 1.2,
201
+ "display-value": n.displayBarcodeValue
173
202
  }, null, 8, ["value", "height", "width", "display-value"])
174
- ])) : l("", !0)
175
- ])) : l("", !0)
203
+ ])) : c("", !0)
204
+ ])) : c("", !0)
176
205
  ])
177
206
  ], 2),
178
- t("div", Z, [
179
- t("table", ee, [
180
- t("thead", te, [
181
- t("tr", null, [
182
- t("th", oe, o(d.value.item || "Product"), 1),
183
- t("th", {
207
+ o("div", me, [
208
+ o("table", ve, [
209
+ o("thead", pe, [
210
+ o("tr", null, [
211
+ o("th", fe, t(d.value.item || "Product"), 1),
212
+ o("th", {
184
213
  scope: "col",
185
- class: n(["invoice-th invoice-text-right", c.compact ? "w-14" : "w-20"])
186
- }, o(d.value.qty || "Qty"), 3),
214
+ class: i(["invoice-th invoice-text-right", n.compact ? "w-14" : "w-20"])
215
+ }, t(d.value.qty || "Qty"), 3),
187
216
  h.value ? (s(), a("th", {
188
217
  key: 0,
189
218
  scope: "col",
190
- class: n(["invoice-th invoice-text-right", c.compact ? "w-14" : "w-20"])
191
- }, o(d.value.size || "Size"), 3)) : l("", !0),
192
- t("th", {
219
+ class: i(["invoice-th invoice-text-right", n.compact ? "w-14" : "w-20"])
220
+ }, t(d.value.size || "Size"), 3)) : c("", !0),
221
+ o("th", {
193
222
  scope: "col",
194
- class: n(["invoice-th invoice-text-right", c.compact ? "w-20" : "w-28"])
195
- }, o(d.value.price || "Price"), 3),
196
- p.value ? (s(), a("th", {
223
+ class: i(["invoice-th invoice-text-right", n.compact ? "w-20" : "w-28"])
224
+ }, t(d.value.price || "Price"), 3),
225
+ x.value ? (s(), a("th", {
197
226
  key: 1,
198
227
  scope: "col",
199
- class: n(["invoice-th invoice-text-right", c.compact ? "w-20" : "w-28"])
200
- }, o(d.value.discount || "Discount"), 3)) : l("", !0),
201
- t("th", {
228
+ class: i(["invoice-th invoice-text-right", n.compact ? "w-20" : "w-28"])
229
+ }, t(d.value.discount || "Discount"), 3)) : c("", !0),
230
+ o("th", {
202
231
  scope: "col",
203
- class: n(["invoice-th invoice-text-right", c.compact ? "w-20" : "w-28"])
204
- }, o(d.value.total || "Total"), 3)
232
+ class: i(["invoice-th invoice-text-right", n.compact ? "w-20" : "w-28"])
233
+ }, t(d.value.total || "Total"), 3)
205
234
  ])
206
235
  ]),
207
- t("tbody", se, [
208
- (s(!0), a(I, null, z(e.value.items, (i, b) => (s(), a("tr", {
209
- key: i.id || b,
236
+ o("tbody", he, [
237
+ (s(!0), a(w, null, z(e.value.items, (l, _) => (s(), a("tr", {
238
+ key: l.id || _,
210
239
  class: "invoice-tr group"
211
240
  }, [
212
- t("td", ae, [
213
- t("div", ce, [
214
- i.thumbnail ? (s(), a("div", {
241
+ o("td", xe, [
242
+ o("div", ge, [
243
+ l.thumbnail ? (s(), a("div", {
215
244
  key: 0,
216
- class: n(["shrink-0 overflow-hidden border border-border", c.compact ? "w-8 h-8 rounded" : "w-9 h-9 rounded-md"])
245
+ class: i(["shrink-0 overflow-hidden border border-border", n.compact ? "w-8 h-8 rounded" : "w-9 h-9 rounded-md"])
217
246
  }, [
218
- u(g, {
219
- src: i.thumbnail,
220
- alt: i.name,
247
+ u(y, {
248
+ src: l.thumbnail,
249
+ alt: l.name,
221
250
  class: "w-full h-full",
222
251
  rounded: "sm"
223
252
  }, null, 8, ["src", "alt"])
224
- ], 2)) : l("", !0),
225
- t("div", le, [
226
- t("div", {
227
- class: n(["font-semibold text-foreground truncate", c.compact ? "" : "text-[13px]"]),
228
- title: i.name
229
- }, o(i.name), 11, ne),
230
- i.sku ? (s(), a("div", {
253
+ ], 2)) : c("", !0),
254
+ o("div", ye, [
255
+ o("div", {
256
+ class: i(["font-semibold text-foreground truncate", n.compact ? "" : "text-[13px]"]),
257
+ title: l.name
258
+ }, t(l.name), 11, _e),
259
+ l.sku ? (s(), a("div", {
231
260
  key: 0,
232
261
  class: "text-[9px] text-muted-foreground font-normal uppercase tracking-tight truncate",
233
- title: i.sku
234
- }, o(d.value.sku || "SKU") + ": " + o(i.sku), 9, ie)) : l("", !0)
262
+ title: l.sku
263
+ }, t(d.value.sku || "SKU") + ": " + t(l.sku), 9, be)) : c("", !0)
235
264
  ])
236
265
  ])
237
266
  ]),
238
- t("td", de, o(i.quantity), 1),
239
- h.value ? (s(), a("td", ue, o(i.size || "-"), 1)) : l("", !0),
240
- t("td", re, [
241
- u(r(f), {
242
- value: i.price
267
+ o("td", ke, t(l.quantity), 1),
268
+ h.value ? (s(), a("td", Ie, t(l.size || "-"), 1)) : c("", !0),
269
+ o("td", we, [
270
+ u(r(p), {
271
+ value: l.price
243
272
  }, null, 8, ["value"])
244
273
  ]),
245
- p.value ? (s(), a("td", me, [
246
- i.discount !== void 0 ? (s(), a("div", ve, [
247
- u(r(f), {
248
- value: -i.discount
274
+ x.value ? (s(), a("td", ze, [
275
+ l.discount !== void 0 ? (s(), a("div", De, [
276
+ u(r(p), {
277
+ value: -l.discount
249
278
  }, null, 8, ["value"]),
250
- i.discountLabel ? (s(), a("span", fe, o(i.discountLabel), 1)) : l("", !0)
251
- ])) : (s(), a("span", xe, "-"))
252
- ])) : l("", !0),
253
- t("td", he, [
254
- u(r(f), {
255
- value: i.total
279
+ l.discountLabel ? (s(), a("span", Ne, t(l.discountLabel), 1)) : c("", !0)
280
+ ])) : (s(), a("span", Te, "-"))
281
+ ])) : c("", !0),
282
+ o("td", Be, [
283
+ u(r(p), {
284
+ value: l.total
256
285
  }, null, 8, ["value"])
257
286
  ])
258
287
  ]))), 128))
259
288
  ])
260
289
  ]),
261
- t("div", {
262
- class: n(["bg-muted/30 border-t border-border flex justify-end", c.compact ? "p-3" : "p-4"])
290
+ o("div", {
291
+ class: i(["bg-muted/30 border-t border-border flex justify-end", n.compact ? "p-3" : "p-4"])
263
292
  }, [
264
- u(T, {
293
+ u(B, {
265
294
  totals: e.value.totals,
266
- compact: c.compact,
295
+ compact: n.compact,
267
296
  variant: "Variant3"
268
297
  }, null, 8, ["totals", "compact"])
269
298
  ], 2)
270
299
  ]),
271
- e.value.notes ? (s(), a("div", pe, [
272
- t("strong", ye, o(d.value.notes || "Notes") + ":", 1),
273
- t("span", ge, o(e.value.notes), 1)
274
- ])) : l("", !0),
275
- e.value.footerText ? (s(), a("div", be, o(e.value.footerText), 1)) : l("", !0)
300
+ e.value.notes ? (s(), a("div", Se, [
301
+ o("strong", Ve, t(d.value.notes || "Notes") + ":", 1),
302
+ o("span", $e, t(e.value.notes), 1)
303
+ ])) : c("", !0),
304
+ e.value.footerText ? (s(), a("div", Me, t(e.value.footerText), 1)) : c("", !0)
276
305
  ], 2)
277
306
  ], 6));
278
307
  }
279
308
  });
280
309
  export {
281
- Ve as default
310
+ Qe as default
282
311
  };