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,80 +1,86 @@
1
- import { defineComponent as _, computed as p, openBlock as o, createElementBlock as a, normalizeStyle as w, createElementVNode as s, normalizeClass as n, createVNode as r, toDisplayString as t, createCommentVNode as c, unref as d, createBlock as z, createTextVNode as m, Fragment as x, renderList as D } from "vue";
1
+ import { defineComponent as _, computed as v, openBlock as o, createElementBlock as a, normalizeStyle as w, createElementVNode as c, normalizeClass as l, createVNode as d, toDisplayString as t, createCommentVNode as s, unref as m, createBlock as z, createTextVNode as r, Fragment as x, renderList as D } from "vue";
2
2
  import f from "../Price/Price.vue.js";
3
3
  import b from "../DateTime/DateTime.vue.js";
4
- import N from "../Barcode/Barcode.vue.js";
5
- import T from "../QRCode/QRCode.vue.js";
4
+ import T from "../Barcode/Barcode.vue.js";
5
+ import N from "../QRCode/QRCode.vue.js";
6
6
  import k from "../Avatar.vue.js";
7
- import B from "../StatusChip/StatusChip.vue.js";
8
- import V from "./InvoiceTotals.vue.js";
9
- const $ = { class: "flex items-center justify-between gap-3" }, q = { class: "shrink-0" }, S = {
7
+ import M from "../StatusChip/StatusChip.vue.js";
8
+ import B from "./InvoiceTotals.vue.js";
9
+ const V = { class: "flex items-center justify-between gap-3" }, S = { class: "shrink-0" }, $ = {
10
10
  key: 0,
11
11
  class: "flex items-center gap-3 border-r-[1.5px] pr-3 border-gray-300"
12
- }, C = { class: "text-muted-foreground uppercase tracking-wider font-medium" }, L = {
12
+ }, q = { class: "text-muted-foreground uppercase tracking-wider font-medium" }, C = {
13
13
  key: 1,
14
14
  class: "flex items-center gap-3 border-r-[1.5px] pr-3 border-gray-250"
15
- }, j = { class: "text-muted-foreground uppercase tracking-wider font-medium" }, E = { class: "grid grid-cols-2 gap-8" }, F = { key: 0 }, U = { key: 0 }, K = { key: 1 }, O = { key: 2 }, P = {
15
+ }, L = { class: "text-muted-foreground uppercase tracking-wider font-medium" }, j = { key: 0 }, E = { key: 0 }, F = { key: 1 }, P = { key: 2 }, U = {
16
16
  key: 3,
17
17
  class: "pt-0.5"
18
- }, Q = { key: 4 }, A = {
18
+ }, K = { key: 4 }, O = {
19
19
  key: 5,
20
20
  class: "pt-0.5"
21
- }, G = { key: 1 }, H = { key: 0 }, J = { key: 1 }, M = { key: 2 }, R = {
21
+ }, Q = { key: 1 }, A = { key: 0 }, G = { key: 1 }, H = { key: 2 }, J = {
22
22
  key: 3,
23
23
  class: "pt-0.5"
24
- }, W = { key: 4 }, X = {
24
+ }, R = { key: 4 }, W = {
25
25
  key: 5,
26
26
  class: "pt-0.5"
27
- }, Y = {
27
+ }, X = { key: 2 }, Y = { key: 0 }, Z = { key: 1 }, ee = { key: 2 }, te = {
28
+ key: 3,
29
+ class: "pt-0.5"
30
+ }, oe = { key: 4 }, ae = {
28
31
  key: 1,
29
32
  class: "border-b border-border overflow-x-auto"
30
- }, Z = { class: "invoice-thead" }, ee = {
33
+ }, se = { class: "invoice-thead" }, ce = {
31
34
  scope: "col",
32
35
  class: "invoice-th"
33
- }, te = {
36
+ }, ne = {
34
37
  scope: "col",
35
38
  class: "invoice-th invoice-text-right"
36
- }, oe = {
39
+ }, le = {
37
40
  key: 0,
38
41
  scope: "col",
39
42
  class: "invoice-th invoice-text-right"
40
- }, ae = {
43
+ }, ie = {
41
44
  scope: "col",
42
45
  class: "invoice-th invoice-text-right"
43
- }, se = {
46
+ }, ue = {
44
47
  key: 1,
45
48
  scope: "col",
46
49
  class: "invoice-th invoice-text-right"
47
- }, ce = {
50
+ }, de = {
48
51
  scope: "col",
49
52
  class: "invoice-th invoice-text-right"
50
- }, le = { class: "invoice-tbody" }, ne = { class: "invoice-td" }, ue = { class: "flex items-start gap-3" }, ie = { class: "min-w-0 flex-1" }, re = ["title"], de = {
53
+ }, re = { class: "invoice-tbody" }, me = { class: "invoice-td" }, pe = { class: "flex items-start gap-3" }, ve = { class: "min-w-0 flex-1" }, xe = ["title"], fe = {
51
54
  key: 0,
52
55
  class: "text-muted-foreground uppercase tracking-wider font-medium mt-0.5 text-xs"
53
- }, me = {
56
+ }, he = {
54
57
  key: 1,
55
58
  class: "text-muted-foreground mt-0.5 whitespace-normal max-w-xs text-xs leading-snug"
56
- }, ve = { class: "invoice-td invoice-text-right tabular-nums font-medium text-sm" }, pe = {
59
+ }, ge = { class: "invoice-td invoice-text-right tabular-nums font-medium text-sm" }, ye = {
57
60
  key: 0,
58
61
  class: "invoice-td invoice-text-right tabular-nums text-muted-foreground"
59
- }, xe = { class: "invoice-td invoice-text-right tabular-nums" }, fe = {
62
+ }, be = { class: "invoice-td invoice-text-right tabular-nums" }, ke = {
60
63
  key: 1,
61
64
  class: "invoice-td invoice-text-right tabular-nums text-success font-semibold"
62
- }, he = {
65
+ }, Ie = {
63
66
  key: 0,
64
67
  class: "flex flex-col items-end gap-0.5"
65
- }, ye = {
68
+ }, _e = {
66
69
  key: 1,
67
70
  class: "text-muted-foreground font-normal"
68
- }, ge = { class: "invoice-td invoice-text-right tabular-nums font-bold text-foreground" }, be = { key: 0 }, ke = {
69
- key: 1,
71
+ }, we = { class: "invoice-td invoice-text-right tabular-nums font-bold text-foreground" }, ze = {
72
+ key: 0,
73
+ class: "flex flex-wrap gap-6"
74
+ }, De = { key: 0 }, Te = { key: 1 }, Ne = { key: 1 }, Me = {
75
+ key: 2,
70
76
  class: "flex flex-row flex-wrap gap-3 items-center"
71
- }, Ie = {
77
+ }, Be = {
72
78
  key: 0,
73
79
  class: "shrink-0"
74
- }, _e = {
80
+ }, Ve = {
75
81
  key: 1,
76
82
  class: "shrink-0"
77
- }, we = { class: "w-full lg:w-2/5 min-w-[220px]" }, Ce = /* @__PURE__ */ _({
83
+ }, Se = { class: "w-full lg:w-2/5 min-w-[220px]" }, Ke = /* @__PURE__ */ _({
78
84
  __name: "InvoiceVariant1",
79
85
  props: {
80
86
  data: {},
@@ -82,28 +88,28 @@ const $ = { class: "flex items-center justify-between gap-3" }, q = { class: "sh
82
88
  displayBarcodeValue: { type: Boolean, default: !1 },
83
89
  labels: {}
84
90
  },
85
- setup(l) {
86
- const h = l, e = p(() => h.data), i = p(() => h.labels || {}), y = p(() => e.value.items.some((v) => !!v.size)), g = p(() => e.value.items.some((v) => v.discount !== void 0));
87
- return (v, ze) => (o(), a("div", {
91
+ setup(n) {
92
+ const h = n, e = v(() => h.data), i = v(() => h.labels || {}), g = v(() => e.value.items.some((p) => !!p.size)), y = v(() => e.value.items.some((p) => p.discount !== void 0));
93
+ return (p, $e) => (o(), a("div", {
88
94
  class: "v-invoice-v1 bg-background text-foreground border border-border rounded-sm",
89
95
  style: w({
90
- "--text-sm": l.compact ? "12.5px" : "13.5px",
91
- "--invoice-cell-px": l.compact ? "0.875rem" : "1.25rem",
92
- "--invoice-cell-py": l.compact ? "0.625rem" : "0.875rem",
96
+ "--text-sm": n.compact ? "12.5px" : "13.5px",
97
+ "--invoice-cell-px": n.compact ? "0.875rem" : "1.25rem",
98
+ "--invoice-cell-py": n.compact ? "0.625rem" : "0.875rem",
93
99
  "--invoice-thead-bg": "var(--color-muted)",
94
100
  "--invoice-tr-border": "1px solid var(--color-border)",
95
101
  "--invoice-tr-hover-bg": "color-mix(in oklab, var(--color-muted) 40%, transparent)"
96
102
  })
97
103
  }, [
98
- s("div", {
99
- class: n(["border-b border-border", l.compact ? "px-5 py-3" : "px-6 pt-5 pb-3.5"])
104
+ c("div", {
105
+ class: l(["border-b border-border", n.compact ? "px-5 py-3" : "px-6 pt-5 pb-3.5"])
100
106
  }, [
101
- s("div", $, [
102
- s("div", q, [
103
- s("div", {
104
- class: n(l.compact ? "h-10 w-10" : "h-13 w-13")
107
+ c("div", V, [
108
+ c("div", S, [
109
+ c("div", {
110
+ class: l(n.compact ? "h-10 w-10" : "h-13 w-13")
105
111
  }, [
106
- r(k, {
112
+ d(k, {
107
113
  src: e.value.brandLogo,
108
114
  alt: e.value.brandName,
109
115
  class: "h-full w-auto object-contain",
@@ -111,178 +117,203 @@ const $ = { class: "flex items-center justify-between gap-3" }, q = { class: "sh
111
117
  }, null, 8, ["src", "alt"])
112
118
  ], 2)
113
119
  ]),
114
- s("div", {
115
- class: n(["flex-1 min-w-0", l.compact ? "space-y-0.5" : "space-y-1"])
120
+ c("div", {
121
+ class: l(["flex-1 min-w-0", n.compact ? "space-y-0.5" : "space-y-1"])
116
122
  }, [
117
123
  e.value.brandName ? (o(), a("p", {
118
124
  key: 0,
119
- class: n(["font-bold text-foreground leading-tight truncate", l.compact ? "text-base" : "text-lg"])
120
- }, t(e.value.brandName), 3)) : c("", !0),
125
+ class: l(["font-bold text-foreground leading-tight truncate", n.compact ? "text-base" : "text-lg"])
126
+ }, t(e.value.brandName), 3)) : s("", !0),
121
127
  e.value.brandTitle ? (o(), a("p", {
122
128
  key: 1,
123
- class: n(["text-muted-foreground font-medium truncate", l.compact ? "text-xs" : "text-sm"])
124
- }, t(e.value.brandTitle), 3)) : c("", !0)
129
+ class: l(["text-muted-foreground font-medium truncate", n.compact ? "text-xs" : "text-sm"])
130
+ }, t(e.value.brandTitle), 3)) : s("", !0)
125
131
  ], 2),
126
- s("div", {
127
- class: n(["text-right shrink-0", l.compact ? "space-y-2" : "space-y-3"])
132
+ c("div", {
133
+ class: l(["text-right shrink-0", n.compact ? "space-y-2" : "space-y-3"])
128
134
  }, [
129
- s("div", null, [
130
- s("h1", {
131
- class: n(["font-black tracking-tight text-foreground uppercase", l.compact ? "text-2xl" : "text-3xl"])
135
+ c("div", null, [
136
+ c("h1", {
137
+ class: l(["font-black tracking-tight text-foreground uppercase", n.compact ? "text-2xl" : "text-3xl"])
132
138
  }, t(i.value.invoice || "Invoice"), 3),
133
- s("p", {
134
- class: n(["text-muted-foreground font-medium mt-0.5", l.compact ? "text-xs" : "text-sm"])
139
+ c("p", {
140
+ class: l(["text-muted-foreground font-medium mt-0.5", n.compact ? "text-xs" : "text-sm"])
135
141
  }, " #" + t(e.value.invoiceNumber), 3)
136
142
  ])
137
143
  ], 2)
138
144
  ]),
139
- s("div", {
140
- class: n(["flex items-center gap-4 text-xs", l.compact ? "mt-2" : "mt-4"])
145
+ c("div", {
146
+ class: l(["flex items-center gap-4 text-xs", n.compact ? "mt-2" : "mt-4"])
141
147
  }, [
142
- e.value.issuedDate ? (o(), a("div", S, [
143
- s("span", C, t(i.value.issued || "Issued"), 1),
144
- r(d(b), {
148
+ e.value.issuedDate ? (o(), a("div", $, [
149
+ c("span", q, t(i.value.issued || "Issued"), 1),
150
+ d(m(b), {
145
151
  value: e.value.issuedDate,
146
152
  type: "date",
147
153
  class: "font-semibold text-foreground tabular-nums"
148
154
  }, null, 8, ["value"])
149
- ])) : c("", !0),
150
- e.value.dueDate ? (o(), a("div", L, [
151
- s("span", j, t(i.value.due || "Due"), 1),
152
- r(d(b), {
155
+ ])) : s("", !0),
156
+ e.value.dueDate ? (o(), a("div", C, [
157
+ c("span", L, t(i.value.due || "Due"), 1),
158
+ d(m(b), {
153
159
  value: e.value.dueDate,
154
160
  type: "date",
155
161
  class: "font-semibold text-foreground tabular-nums"
156
162
  }, null, 8, ["value"])
157
- ])) : c("", !0),
158
- e.value.status ? (o(), z(B, {
163
+ ])) : s("", !0),
164
+ e.value.status ? (o(), z(M, {
159
165
  key: 2,
160
166
  status: e.value.status,
161
167
  "hide-icon": "",
162
168
  size: "small"
163
- }, null, 8, ["status"])) : c("", !0)
169
+ }, null, 8, ["status"])) : s("", !0)
164
170
  ], 2)
165
171
  ], 2),
166
- e.value.companyInfo || e.value.customerInfo ? (o(), a("div", {
172
+ e.value.companyInfo || e.value.customerInfo || e.value.shippingInfo ? (o(), a("div", {
167
173
  key: 0,
168
- class: n(["border-b border-border", l.compact ? "px-5 py-4" : "px-6 pt-4 pb-5"])
174
+ class: l(["border-b border-border", n.compact ? "px-5 py-4" : "px-6 pt-4 pb-5"])
169
175
  }, [
170
- s("div", E, [
171
- e.value.companyInfo ? (o(), a("div", F, [
172
- s("p", {
173
- class: n(["text-muted-foreground uppercase tracking-widest font-semibold mb-2", l.compact ? "text-[9px]" : "text-[10px]"])
176
+ c("div", {
177
+ class: l(["grid gap-8", e.value.shippingInfo ? "grid-cols-2 md:grid-cols-3" : "grid-cols-2"])
178
+ }, [
179
+ e.value.companyInfo ? (o(), a("div", j, [
180
+ c("p", {
181
+ class: l(["text-muted-foreground uppercase tracking-widest font-semibold mb-2", n.compact ? "text-[9px]" : "text-[10px]"])
174
182
  }, t(i.value.from || "From"), 3),
175
183
  e.value.brandName ? (o(), a("p", {
176
184
  key: 0,
177
- class: n(["font-bold text-foreground", l.compact ? "text-sm" : "text-base"])
178
- }, t(e.value.brandName), 3)) : c("", !0),
179
- s("div", {
180
- class: n(["text-muted-foreground leading-snug mt-1", l.compact ? "text-xs space-y-0.5" : "text-sm space-y-0.5"])
185
+ class: l(["font-bold text-foreground", n.compact ? "text-sm" : "text-base"])
186
+ }, t(e.value.brandName), 3)) : s("", !0),
187
+ c("div", {
188
+ class: l(["text-muted-foreground leading-snug mt-1", n.compact ? "text-xs space-y-0.5" : "text-sm space-y-0.5"])
181
189
  }, [
182
- e.value.companyInfo.address ? (o(), a("p", U, t(e.value.companyInfo.address), 1)) : c("", !0),
183
- e.value.companyInfo.city || e.value.companyInfo.state || e.value.companyInfo.zip ? (o(), a("p", K, [
184
- m(t(e.value.companyInfo.city), 1),
190
+ e.value.companyInfo.address ? (o(), a("p", E, t(e.value.companyInfo.address), 1)) : s("", !0),
191
+ e.value.companyInfo.city || e.value.companyInfo.state || e.value.companyInfo.zip ? (o(), a("p", F, [
192
+ r(t(e.value.companyInfo.city), 1),
185
193
  e.value.companyInfo.city && e.value.companyInfo.state ? (o(), a(x, { key: 0 }, [
186
- m(", ")
187
- ], 64)) : c("", !0),
188
- m(t(e.value.companyInfo.state) + " " + t(e.value.companyInfo.zip), 1)
189
- ])) : c("", !0),
190
- e.value.companyInfo.country ? (o(), a("p", O, t(e.value.companyInfo.country), 1)) : c("", !0),
191
- e.value.companyInfo.email ? (o(), a("p", P, t(e.value.companyInfo.email), 1)) : c("", !0),
192
- e.value.companyInfo.phone ? (o(), a("p", Q, t(e.value.companyInfo.phone), 1)) : c("", !0),
193
- e.value.companyInfo.taxId ? (o(), a("p", A, t(i.value.taxId || "Tax ID") + ": " + t(e.value.companyInfo.taxId), 1)) : c("", !0)
194
+ r(", ")
195
+ ], 64)) : s("", !0),
196
+ r(t(e.value.companyInfo.state) + " " + t(e.value.companyInfo.zip), 1)
197
+ ])) : s("", !0),
198
+ e.value.companyInfo.country ? (o(), a("p", P, t(e.value.companyInfo.country), 1)) : s("", !0),
199
+ e.value.companyInfo.email ? (o(), a("p", U, t(e.value.companyInfo.email), 1)) : s("", !0),
200
+ e.value.companyInfo.phone ? (o(), a("p", K, t(e.value.companyInfo.phone), 1)) : s("", !0),
201
+ e.value.companyInfo.taxId ? (o(), a("p", O, t(i.value.taxId || "Tax ID") + ": " + t(e.value.companyInfo.taxId), 1)) : s("", !0)
194
202
  ], 2)
195
- ])) : c("", !0),
196
- e.value.customerInfo ? (o(), a("div", G, [
197
- s("p", {
198
- class: n(["text-muted-foreground uppercase tracking-widest font-semibold mb-2", l.compact ? "text-[9px]" : "text-[10px]"])
203
+ ])) : s("", !0),
204
+ e.value.customerInfo ? (o(), a("div", Q, [
205
+ c("p", {
206
+ class: l(["text-muted-foreground uppercase tracking-widest font-semibold mb-2", n.compact ? "text-[9px]" : "text-[10px]"])
199
207
  }, t(i.value.billedTo || "Billed To"), 3),
200
- s("p", {
201
- class: n(["font-bold text-foreground", l.compact ? "text-sm" : "text-base"])
208
+ c("p", {
209
+ class: l(["font-bold text-foreground", n.compact ? "text-sm" : "text-base"])
202
210
  }, t(e.value.customerInfo.name), 3),
203
- s("div", {
204
- class: n(["text-muted-foreground leading-snug mt-1", l.compact ? "text-xs space-y-0.5" : "text-sm space-y-0.5"])
211
+ c("div", {
212
+ class: l(["text-muted-foreground leading-snug mt-1", n.compact ? "text-xs space-y-0.5" : "text-sm space-y-0.5"])
205
213
  }, [
206
- e.value.customerInfo.address ? (o(), a("p", H, t(e.value.customerInfo.address), 1)) : c("", !0),
207
- e.value.customerInfo.city || e.value.customerInfo.state ? (o(), a("p", J, [
208
- m(t(e.value.customerInfo.city), 1),
214
+ e.value.customerInfo.address ? (o(), a("p", A, t(e.value.customerInfo.address), 1)) : s("", !0),
215
+ e.value.customerInfo.city || e.value.customerInfo.state ? (o(), a("p", G, [
216
+ r(t(e.value.customerInfo.city), 1),
209
217
  e.value.customerInfo.city && e.value.customerInfo.state ? (o(), a(x, { key: 0 }, [
210
- m(", ")
211
- ], 64)) : c("", !0),
212
- m(t(e.value.customerInfo.state) + " " + t(e.value.customerInfo.zip), 1)
213
- ])) : c("", !0),
214
- e.value.customerInfo.country ? (o(), a("p", M, t(e.value.customerInfo.country), 1)) : c("", !0),
215
- e.value.customerInfo.email ? (o(), a("p", R, t(e.value.customerInfo.email), 1)) : c("", !0),
216
- e.value.customerInfo.phone ? (o(), a("p", W, t(e.value.customerInfo.phone), 1)) : c("", !0),
217
- e.value.customerInfo.taxId ? (o(), a("p", X, t(i.value.taxId || "Tax ID") + ": " + t(e.value.customerInfo.taxId), 1)) : c("", !0)
218
+ r(", ")
219
+ ], 64)) : s("", !0),
220
+ r(t(e.value.customerInfo.state) + " " + t(e.value.customerInfo.zip), 1)
221
+ ])) : s("", !0),
222
+ e.value.customerInfo.country ? (o(), a("p", H, t(e.value.customerInfo.country), 1)) : s("", !0),
223
+ e.value.customerInfo.email ? (o(), a("p", J, t(e.value.customerInfo.email), 1)) : s("", !0),
224
+ e.value.customerInfo.phone ? (o(), a("p", R, t(e.value.customerInfo.phone), 1)) : s("", !0),
225
+ e.value.customerInfo.taxId ? (o(), a("p", W, t(i.value.taxId || "Tax ID") + ": " + t(e.value.customerInfo.taxId), 1)) : s("", !0)
218
226
  ], 2)
219
- ])) : c("", !0)
220
- ])
221
- ], 2)) : c("", !0),
222
- e.value.items && e.value.items.length ? (o(), a("div", Y, [
223
- s("table", {
224
- class: n(["invoice-table", l.compact ? "text-xs" : "text-sm"])
227
+ ])) : s("", !0),
228
+ e.value.shippingInfo ? (o(), a("div", X, [
229
+ c("p", {
230
+ class: l(["text-muted-foreground uppercase tracking-widest font-semibold mb-2", n.compact ? "text-[9px]" : "text-[10px]"])
231
+ }, t(i.value.shipTo || "Ship To"), 3),
232
+ c("p", {
233
+ class: l(["font-bold text-foreground", n.compact ? "text-sm" : "text-base"])
234
+ }, t(e.value.shippingInfo.name), 3),
235
+ c("div", {
236
+ class: l(["text-muted-foreground leading-snug mt-1", n.compact ? "text-xs space-y-0.5" : "text-sm space-y-0.5"])
237
+ }, [
238
+ e.value.shippingInfo.address ? (o(), a("p", Y, t(e.value.shippingInfo.address), 1)) : s("", !0),
239
+ e.value.shippingInfo.city || e.value.shippingInfo.state ? (o(), a("p", Z, [
240
+ r(t(e.value.shippingInfo.city), 1),
241
+ e.value.shippingInfo.city && e.value.shippingInfo.state ? (o(), a(x, { key: 0 }, [
242
+ r(", ")
243
+ ], 64)) : s("", !0),
244
+ r(t(e.value.shippingInfo.state) + " " + t(e.value.shippingInfo.zip), 1)
245
+ ])) : s("", !0),
246
+ e.value.shippingInfo.country ? (o(), a("p", ee, t(e.value.shippingInfo.country), 1)) : s("", !0),
247
+ e.value.shippingInfo.email ? (o(), a("p", te, t(e.value.shippingInfo.email), 1)) : s("", !0),
248
+ e.value.shippingInfo.phone ? (o(), a("p", oe, t(e.value.shippingInfo.phone), 1)) : s("", !0)
249
+ ], 2)
250
+ ])) : s("", !0)
251
+ ], 2)
252
+ ], 2)) : s("", !0),
253
+ e.value.items && e.value.items.length ? (o(), a("div", ae, [
254
+ c("table", {
255
+ class: l(["invoice-table", n.compact ? "text-xs" : "text-sm"])
225
256
  }, [
226
- s("thead", Z, [
227
- s("tr", null, [
228
- s("th", ee, t(i.value.item || "Description"), 1),
229
- s("th", te, t(i.value.qty || "Qty"), 1),
230
- y.value ? (o(), a("th", oe, t(i.value.size || "Size"), 1)) : c("", !0),
231
- s("th", ae, t(i.value.price || "Unit Price"), 1),
232
- g.value ? (o(), a("th", se, t(i.value.discount || "Discount"), 1)) : c("", !0),
233
- s("th", ce, t(i.value.total || "Total"), 1)
257
+ c("thead", se, [
258
+ c("tr", null, [
259
+ c("th", ce, t(i.value.item || "Description"), 1),
260
+ c("th", ne, t(i.value.qty || "Qty"), 1),
261
+ g.value ? (o(), a("th", le, t(i.value.size || "Size"), 1)) : s("", !0),
262
+ c("th", ie, t(i.value.price || "Unit Price"), 1),
263
+ y.value ? (o(), a("th", ue, t(i.value.discount || "Discount"), 1)) : s("", !0),
264
+ c("th", de, t(i.value.total || "Total"), 1)
234
265
  ])
235
266
  ]),
236
- s("tbody", le, [
267
+ c("tbody", re, [
237
268
  (o(!0), a(x, null, D(e.value.items, (u, I) => (o(), a("tr", {
238
269
  key: u.id || I,
239
270
  class: "invoice-tr group"
240
271
  }, [
241
- s("td", ne, [
242
- s("div", ue, [
272
+ c("td", me, [
273
+ c("div", pe, [
243
274
  u.thumbnail ? (o(), a("div", {
244
275
  key: 0,
245
- class: n(["shrink-0 overflow-hidden", l.compact ? "w-9 h-9" : "w-10 h-10"])
276
+ class: l(["shrink-0 overflow-hidden", n.compact ? "w-9 h-9" : "w-10 h-10"])
246
277
  }, [
247
- r(k, {
278
+ d(k, {
248
279
  src: u.thumbnail,
249
280
  alt: u.name,
250
281
  class: "w-full h-full ronded!",
251
282
  rounded: "md"
252
283
  }, null, 8, ["src", "alt"])
253
- ], 2)) : c("", !0),
254
- s("div", ie, [
255
- s("p", {
284
+ ], 2)) : s("", !0),
285
+ c("div", ve, [
286
+ c("p", {
256
287
  class: "font-semibold text-foreground whitespace-normal text-sm",
257
288
  title: u.name
258
- }, t(u.name), 9, re),
259
- u.sku ? (o(), a("p", de, t(i.value.sku || "SKU") + ": " + t(u.sku), 1)) : c("", !0),
260
- u.description && !l.compact ? (o(), a("p", me, t(u.description), 1)) : c("", !0)
289
+ }, t(u.name), 9, xe),
290
+ u.sku ? (o(), a("p", fe, t(i.value.sku || "SKU") + ": " + t(u.sku), 1)) : s("", !0),
291
+ u.description && !n.compact ? (o(), a("p", he, t(u.description), 1)) : s("", !0)
261
292
  ])
262
293
  ])
263
294
  ]),
264
- s("td", ve, t(u.quantity), 1),
265
- y.value ? (o(), a("td", pe, t(u.size || "—"), 1)) : c("", !0),
266
- s("td", xe, [
267
- r(d(f), {
295
+ c("td", ge, t(u.quantity), 1),
296
+ g.value ? (o(), a("td", ye, t(u.size || "—"), 1)) : s("", !0),
297
+ c("td", be, [
298
+ d(m(f), {
268
299
  value: u.price,
269
300
  class: "text-sm"
270
301
  }, null, 8, ["value"])
271
302
  ]),
272
- g.value ? (o(), a("td", fe, [
273
- u.discount !== void 0 ? (o(), a("div", he, [
274
- r(d(f), {
303
+ y.value ? (o(), a("td", ke, [
304
+ u.discount !== void 0 ? (o(), a("div", Ie, [
305
+ d(m(f), {
275
306
  value: -u.discount,
276
307
  class: "text-sm"
277
308
  }, null, 8, ["value"]),
278
309
  u.discountLabel ? (o(), a("span", {
279
310
  key: 0,
280
- class: n(["uppercase tracking-wider font-bold text-muted-foreground", l.compact ? "text-[8px]" : "text-[9px]"])
281
- }, t(u.discountLabel), 3)) : c("", !0)
282
- ])) : (o(), a("span", ye, "—"))
283
- ])) : c("", !0),
284
- s("td", ge, [
285
- r(d(f), {
311
+ class: l(["uppercase tracking-wider font-bold text-muted-foreground", n.compact ? "text-[8px]" : "text-[9px]"])
312
+ }, t(u.discountLabel), 3)) : s("", !0)
313
+ ])) : (o(), a("span", _e, "—"))
314
+ ])) : s("", !0),
315
+ c("td", we, [
316
+ d(m(f), {
286
317
  value: u.total,
287
318
  class: "text-sm"
288
319
  }, null, 8, ["value"])
@@ -290,46 +321,64 @@ const $ = { class: "flex items-center justify-between gap-3" }, q = { class: "sh
290
321
  ]))), 128))
291
322
  ])
292
323
  ], 2)
293
- ])) : c("", !0),
294
- s("div", {
295
- class: n(l.compact ? "p-6" : "p-8")
324
+ ])) : s("", !0),
325
+ c("div", {
326
+ class: l(n.compact ? "p-6" : "p-8")
296
327
  }, [
297
- s("div", {
298
- class: n(["flex flex-col-reverse lg:flex-row justify-between", l.compact ? "gap-6" : "gap-8"])
328
+ c("div", {
329
+ class: l(["flex flex-col-reverse lg:flex-row justify-between", n.compact ? "gap-6" : "gap-8"])
299
330
  }, [
300
- s("div", {
301
- class: n(["w-full lg:w-1/2 flex flex-col", l.compact ? "gap-4" : "gap-5"])
331
+ c("div", {
332
+ class: l(["w-full lg:w-1/2 flex flex-col", n.compact ? "gap-4" : "gap-5"])
302
333
  }, [
303
- e.value.notes ? (o(), a("div", be, [
304
- s("p", {
305
- class: n(["text-muted-foreground uppercase tracking-widest font-semibold mb-2", l.compact ? "text-[9px]" : "text-[10px]"])
334
+ e.value.paymentMethod || e.value.shippingMethod ? (o(), a("div", ze, [
335
+ e.value.paymentMethod ? (o(), a("div", De, [
336
+ c("p", {
337
+ class: l(["text-muted-foreground uppercase tracking-widest font-semibold mb-2", n.compact ? "text-[9px]" : "text-[10px]"])
338
+ }, t(i.value.paymentMethod || "Payment Method"), 3),
339
+ c("p", {
340
+ class: l(["font-medium text-foreground", n.compact ? "text-xs" : "text-sm"])
341
+ }, t(e.value.paymentMethod), 3)
342
+ ])) : s("", !0),
343
+ e.value.shippingMethod ? (o(), a("div", Te, [
344
+ c("p", {
345
+ class: l(["text-muted-foreground uppercase tracking-widest font-semibold mb-2", n.compact ? "text-[9px]" : "text-[10px]"])
346
+ }, t(i.value.shippingMethod || "Shipping Method"), 3),
347
+ c("p", {
348
+ class: l(["font-medium text-foreground", n.compact ? "text-xs" : "text-sm"])
349
+ }, t(e.value.shippingMethod), 3)
350
+ ])) : s("", !0)
351
+ ])) : s("", !0),
352
+ e.value.notes ? (o(), a("div", Ne, [
353
+ c("p", {
354
+ class: l(["text-muted-foreground uppercase tracking-widest font-semibold mb-2", n.compact ? "text-[9px]" : "text-[10px]"])
306
355
  }, t(i.value.notes || "Notes"), 3),
307
- s("p", {
308
- class: n(["text-muted-foreground whitespace-pre-wrap leading-relaxed", l.compact ? "text-xs" : "text-sm"])
356
+ c("p", {
357
+ class: l(["text-muted-foreground whitespace-pre-wrap leading-relaxed", n.compact ? "text-xs" : "text-sm"])
309
358
  }, t(e.value.notes), 3)
310
- ])) : c("", !0),
311
- e.value.qrcode || e.value.barcode ? (o(), a("div", ke, [
312
- e.value.qrcode ? (o(), a("div", Ie, [
313
- r(d(T), {
359
+ ])) : s("", !0),
360
+ e.value.qrcode || e.value.barcode ? (o(), a("div", Me, [
361
+ e.value.qrcode ? (o(), a("div", Be, [
362
+ d(m(N), {
314
363
  value: e.value.qrcode,
315
- size: l.compact ? 48 : 56
364
+ size: n.compact ? 48 : 56
316
365
  }, null, 8, ["value", "size"])
317
- ])) : c("", !0),
318
- e.value.barcode ? (o(), a("div", _e, [
319
- r(d(N), {
366
+ ])) : s("", !0),
367
+ e.value.barcode ? (o(), a("div", Ve, [
368
+ d(m(T), {
320
369
  value: e.value.barcode,
321
370
  format: "CODE128",
322
- height: l.compact ? 24 : 30,
323
- width: l.compact ? 1.2 : 1.4,
324
- "display-value": l.displayBarcodeValue
371
+ height: n.compact ? 24 : 30,
372
+ width: n.compact ? 1.2 : 1.4,
373
+ "display-value": n.displayBarcodeValue
325
374
  }, null, 8, ["value", "height", "width", "display-value"])
326
- ])) : c("", !0)
327
- ])) : c("", !0)
375
+ ])) : s("", !0)
376
+ ])) : s("", !0)
328
377
  ], 2),
329
- s("div", we, [
330
- r(V, {
378
+ c("div", Se, [
379
+ d(B, {
331
380
  totals: e.value.totals,
332
- compact: l.compact,
381
+ compact: n.compact,
333
382
  variant: "Variant1"
334
383
  }, null, 8, ["totals", "compact"])
335
384
  ])
@@ -337,11 +386,11 @@ const $ = { class: "flex items-center justify-between gap-3" }, q = { class: "sh
337
386
  ], 2),
338
387
  e.value.footerText ? (o(), a("div", {
339
388
  key: 2,
340
- class: n(["border-t border-border text-center text-muted-foreground font-medium uppercase tracking-widest", l.compact ? "px-6 py-3 text-[9px]" : "px-6 py-4 text-[10px]"])
341
- }, t(e.value.footerText), 3)) : c("", !0)
389
+ class: l(["border-t border-border text-center text-muted-foreground font-medium uppercase tracking-widest", n.compact ? "px-6 py-3 text-[9px]" : "px-6 py-4 text-[10px]"])
390
+ }, t(e.value.footerText), 3)) : s("", !0)
342
391
  ], 4));
343
392
  }
344
393
  });
345
394
  export {
346
- Ce as default
395
+ Ke as default
347
396
  };