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.
- package/components/AppShell/AppShellLayoutClassic.vue.js +67 -64
- package/components/AppShell/AppShellLayoutDashboard.vue.js +75 -70
- package/components/AppShell/AppShellLayoutDock.vue.js +27 -27
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +80 -75
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +56 -56
- package/components/DataTable/DataTable.vue.d.ts +3 -3
- package/components/DataTable/DataTableRow.vue.d.ts +1 -1
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/CustomFields.vue2.js +15 -2
- package/components/Invoice/InvoiceVariant1.vue.js +225 -176
- package/components/Invoice/InvoiceVariant2.vue.js +174 -125
- package/components/Invoice/InvoiceVariant3.vue.js +186 -157
- package/components/Invoice/InvoiceVariant4.vue.js +200 -156
- package/components/Invoice/types.d.ts +10 -1
- package/components/List/ListFieldRow.vue.js +16 -16
- package/components/List/utils.d.ts +2 -2
- package/components/List/utils.js +6 -9
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/Price/Price.vue.d.ts +2 -0
- package/components/Price/Price.vue.js +15 -12
- package/components/Screen/Screen.vue.d.ts +36 -10
- package/components/Screen/Screen.vue.js +398 -304
- package/components/Screen/components/ScreenToolbar.vue.d.ts +62 -0
- package/components/Screen/components/ScreenToolbar.vue.js +116 -0
- package/components/Screen/components/ScreenToolbar.vue2.js +4 -0
- package/components/Screen/types.d.ts +9 -0
- package/components/Stats/StatItem.vue.js +88 -87
- package/components/Stats/Stats.vue.js +20 -20
- package/components/Stats/types.d.ts +3 -1
- package/core/config.d.ts +10 -0
- package/core/config.js +11 -9
- package/index.js +131 -131
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/config.type.d.ts +2 -0
- package/types/list.type.d.ts +4 -0
- package/utils/functions.d.ts +9 -10
- package/utils/functions.js +78 -63
|
@@ -1,80 +1,86 @@
|
|
|
1
|
-
import { defineComponent as _, computed as
|
|
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
|
|
5
|
-
import
|
|
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
|
|
8
|
-
import
|
|
9
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
18
|
+
}, K = { key: 4 }, O = {
|
|
19
19
|
key: 5,
|
|
20
20
|
class: "pt-0.5"
|
|
21
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
33
|
+
}, se = { class: "invoice-thead" }, ce = {
|
|
31
34
|
scope: "col",
|
|
32
35
|
class: "invoice-th"
|
|
33
|
-
},
|
|
36
|
+
}, ne = {
|
|
34
37
|
scope: "col",
|
|
35
38
|
class: "invoice-th invoice-text-right"
|
|
36
|
-
},
|
|
39
|
+
}, le = {
|
|
37
40
|
key: 0,
|
|
38
41
|
scope: "col",
|
|
39
42
|
class: "invoice-th invoice-text-right"
|
|
40
|
-
},
|
|
43
|
+
}, ie = {
|
|
41
44
|
scope: "col",
|
|
42
45
|
class: "invoice-th invoice-text-right"
|
|
43
|
-
},
|
|
46
|
+
}, ue = {
|
|
44
47
|
key: 1,
|
|
45
48
|
scope: "col",
|
|
46
49
|
class: "invoice-th invoice-text-right"
|
|
47
|
-
},
|
|
50
|
+
}, de = {
|
|
48
51
|
scope: "col",
|
|
49
52
|
class: "invoice-th invoice-text-right"
|
|
50
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
65
|
+
}, Ie = {
|
|
63
66
|
key: 0,
|
|
64
67
|
class: "flex flex-col items-end gap-0.5"
|
|
65
|
-
},
|
|
68
|
+
}, _e = {
|
|
66
69
|
key: 1,
|
|
67
70
|
class: "text-muted-foreground font-normal"
|
|
68
|
-
},
|
|
69
|
-
key:
|
|
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
|
-
},
|
|
77
|
+
}, Be = {
|
|
72
78
|
key: 0,
|
|
73
79
|
class: "shrink-0"
|
|
74
|
-
},
|
|
80
|
+
}, Ve = {
|
|
75
81
|
key: 1,
|
|
76
82
|
class: "shrink-0"
|
|
77
|
-
},
|
|
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(
|
|
86
|
-
const h =
|
|
87
|
-
return (
|
|
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":
|
|
91
|
-
"--invoice-cell-px":
|
|
92
|
-
"--invoice-cell-py":
|
|
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
|
-
|
|
99
|
-
class:
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
class: n
|
|
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
|
-
|
|
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
|
-
|
|
115
|
-
class:
|
|
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:
|
|
120
|
-
}, t(e.value.brandName), 3)) :
|
|
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:
|
|
124
|
-
}, t(e.value.brandTitle), 3)) :
|
|
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
|
-
|
|
127
|
-
class:
|
|
132
|
+
c("div", {
|
|
133
|
+
class: l(["text-right shrink-0", n.compact ? "space-y-2" : "space-y-3"])
|
|
128
134
|
}, [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
class:
|
|
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
|
-
|
|
134
|
-
class:
|
|
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
|
-
|
|
140
|
-
class:
|
|
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",
|
|
143
|
-
|
|
144
|
-
|
|
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
|
-
])) :
|
|
150
|
-
e.value.dueDate ? (o(), a("div",
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
])) :
|
|
158
|
-
e.value.status ? (o(), z(
|
|
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"])) :
|
|
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:
|
|
174
|
+
class: l(["border-b border-border", n.compact ? "px-5 py-4" : "px-6 pt-4 pb-5"])
|
|
169
175
|
}, [
|
|
170
|
-
|
|
171
|
-
e.value.
|
|
172
|
-
|
|
173
|
-
|
|
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:
|
|
178
|
-
}, t(e.value.brandName), 3)) :
|
|
179
|
-
|
|
180
|
-
class:
|
|
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",
|
|
183
|
-
e.value.companyInfo.city || e.value.companyInfo.state || e.value.companyInfo.zip ? (o(), a("p",
|
|
184
|
-
|
|
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
|
-
|
|
187
|
-
], 64)) :
|
|
188
|
-
|
|
189
|
-
])) :
|
|
190
|
-
e.value.companyInfo.country ? (o(), a("p",
|
|
191
|
-
e.value.companyInfo.email ? (o(), a("p",
|
|
192
|
-
e.value.companyInfo.phone ? (o(), a("p",
|
|
193
|
-
e.value.companyInfo.taxId ? (o(), a("p",
|
|
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
|
-
])) :
|
|
196
|
-
e.value.customerInfo ? (o(), a("div",
|
|
197
|
-
|
|
198
|
-
class:
|
|
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
|
-
|
|
201
|
-
class:
|
|
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
|
-
|
|
204
|
-
class:
|
|
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",
|
|
207
|
-
e.value.customerInfo.city || e.value.customerInfo.state ? (o(), a("p",
|
|
208
|
-
|
|
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
|
-
|
|
211
|
-
], 64)) :
|
|
212
|
-
|
|
213
|
-
])) :
|
|
214
|
-
e.value.customerInfo.country ? (o(), a("p",
|
|
215
|
-
e.value.customerInfo.email ? (o(), a("p",
|
|
216
|
-
e.value.customerInfo.phone ? (o(), a("p",
|
|
217
|
-
e.value.customerInfo.taxId ? (o(), a("p",
|
|
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
|
-
])) :
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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
|
-
|
|
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
|
-
|
|
242
|
-
|
|
272
|
+
c("td", me, [
|
|
273
|
+
c("div", pe, [
|
|
243
274
|
u.thumbnail ? (o(), a("div", {
|
|
244
275
|
key: 0,
|
|
245
|
-
class:
|
|
276
|
+
class: l(["shrink-0 overflow-hidden", n.compact ? "w-9 h-9" : "w-10 h-10"])
|
|
246
277
|
}, [
|
|
247
|
-
|
|
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)) :
|
|
254
|
-
|
|
255
|
-
|
|
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,
|
|
259
|
-
u.sku ? (o(), a("p",
|
|
260
|
-
u.description && !
|
|
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
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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
|
-
|
|
273
|
-
u.discount !== void 0 ? (o(), a("div",
|
|
274
|
-
|
|
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:
|
|
281
|
-
}, t(u.discountLabel), 3)) :
|
|
282
|
-
])) : (o(), a("span",
|
|
283
|
-
])) :
|
|
284
|
-
|
|
285
|
-
|
|
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
|
-
])) :
|
|
294
|
-
|
|
295
|
-
class: n
|
|
324
|
+
])) : s("", !0),
|
|
325
|
+
c("div", {
|
|
326
|
+
class: l(n.compact ? "p-6" : "p-8")
|
|
296
327
|
}, [
|
|
297
|
-
|
|
298
|
-
class:
|
|
328
|
+
c("div", {
|
|
329
|
+
class: l(["flex flex-col-reverse lg:flex-row justify-between", n.compact ? "gap-6" : "gap-8"])
|
|
299
330
|
}, [
|
|
300
|
-
|
|
301
|
-
class:
|
|
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.
|
|
304
|
-
|
|
305
|
-
|
|
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
|
-
|
|
308
|
-
class:
|
|
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
|
-
])) :
|
|
311
|
-
e.value.qrcode || e.value.barcode ? (o(), a("div",
|
|
312
|
-
e.value.qrcode ? (o(), a("div",
|
|
313
|
-
|
|
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:
|
|
364
|
+
size: n.compact ? 48 : 56
|
|
316
365
|
}, null, 8, ["value", "size"])
|
|
317
|
-
])) :
|
|
318
|
-
e.value.barcode ? (o(), a("div",
|
|
319
|
-
|
|
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:
|
|
323
|
-
width:
|
|
324
|
-
"display-value":
|
|
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
|
-
])) :
|
|
327
|
-
])) :
|
|
375
|
+
])) : s("", !0)
|
|
376
|
+
])) : s("", !0)
|
|
328
377
|
], 2),
|
|
329
|
-
|
|
330
|
-
|
|
378
|
+
c("div", Se, [
|
|
379
|
+
d(B, {
|
|
331
380
|
totals: e.value.totals,
|
|
332
|
-
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:
|
|
341
|
-
}, t(e.value.footerText), 3)) :
|
|
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
|
-
|
|
395
|
+
Ke as default
|
|
347
396
|
};
|