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,57 +1,63 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
18
|
+
}, ee = { class: "text-muted-foreground font-medium text-xs" }, te = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "flex gap-2 items-center"
|
|
21
|
-
},
|
|
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
|
-
},
|
|
30
|
+
}, ue = {
|
|
25
31
|
key: 0,
|
|
26
32
|
class: ""
|
|
27
|
-
},
|
|
33
|
+
}, re = {
|
|
28
34
|
key: 1,
|
|
29
35
|
class: "overflow-hidden"
|
|
30
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
45
|
+
}, De = {
|
|
40
46
|
key: 0,
|
|
41
47
|
class: "flex flex-col items-end"
|
|
42
|
-
},
|
|
48
|
+
}, Ne = {
|
|
43
49
|
key: 0,
|
|
44
50
|
class: "text-[8px] uppercase font-bold"
|
|
45
|
-
},
|
|
51
|
+
}, Te = {
|
|
46
52
|
key: 1,
|
|
47
53
|
class: "text-muted-foreground"
|
|
48
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
63
|
-
const
|
|
64
|
-
return (m,
|
|
65
|
-
class:
|
|
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":
|
|
68
|
-
"--invoice-cell-py":
|
|
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
|
-
|
|
75
|
-
class:
|
|
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
|
-
|
|
78
|
-
e.value.brandLogo ? (s(), a("div",
|
|
79
|
-
u(
|
|
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
|
|
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
|
-
])) :
|
|
86
|
-
|
|
91
|
+
])) : c("", !0),
|
|
92
|
+
o("div", $, [
|
|
87
93
|
e.value.brandName ? (s(), a("span", {
|
|
88
94
|
key: 0,
|
|
89
|
-
class:
|
|
90
|
-
},
|
|
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:
|
|
94
|
-
},
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
class:
|
|
100
|
-
}, "#" +
|
|
101
|
-
e.value.status ? (s(),
|
|
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"])) :
|
|
112
|
+
}, null, 8, ["status"])) : c("", !0)
|
|
107
113
|
])
|
|
108
114
|
], 2),
|
|
109
|
-
|
|
110
|
-
class: n
|
|
115
|
+
o("div", {
|
|
116
|
+
class: i(n.compact ? "p-4 space-y-4" : "p-5 space-y-5")
|
|
111
117
|
}, [
|
|
112
|
-
|
|
113
|
-
class:
|
|
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",
|
|
116
|
-
|
|
117
|
-
class:
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
class:
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
e.value.companyInfo.address ? (s(), a("p",
|
|
124
|
-
e.value.companyInfo.city ? (s(), a("p",
|
|
125
|
-
e.value.companyInfo.country ? (s(), a("p",
|
|
126
|
-
e.value.companyInfo.email ? (s(), a("p", P,
|
|
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
|
-
])) :
|
|
129
|
-
e.value.
|
|
130
|
-
|
|
131
|
-
class:
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
class:
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
e.value.
|
|
138
|
-
e.value.
|
|
139
|
-
e.value.
|
|
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
|
-
])) :
|
|
142
|
-
|
|
143
|
-
e.value.issuedDate ? (s(), a("div",
|
|
144
|
-
|
|
145
|
-
u(r(
|
|
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
|
-
])) :
|
|
151
|
-
e.value.dueDate ? (s(), a("div",
|
|
152
|
-
|
|
153
|
-
u(r(
|
|
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
|
-
])) :
|
|
159
|
-
e.value.
|
|
160
|
-
|
|
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:
|
|
192
|
+
size: n.compact ? 40 : 48
|
|
164
193
|
}, null, 8, ["value", "size"])
|
|
165
|
-
])) :
|
|
166
|
-
e.value.barcode ? (s(), a("div",
|
|
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:
|
|
171
|
-
width:
|
|
172
|
-
"display-value":
|
|
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
|
-
])) :
|
|
175
|
-
])) :
|
|
203
|
+
])) : c("", !0)
|
|
204
|
+
])) : c("", !0)
|
|
176
205
|
])
|
|
177
206
|
], 2),
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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:
|
|
186
|
-
},
|
|
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:
|
|
191
|
-
},
|
|
192
|
-
|
|
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:
|
|
195
|
-
},
|
|
196
|
-
|
|
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:
|
|
200
|
-
},
|
|
201
|
-
|
|
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:
|
|
204
|
-
},
|
|
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
|
-
|
|
208
|
-
(s(!0), a(
|
|
209
|
-
key:
|
|
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
|
-
|
|
213
|
-
|
|
214
|
-
|
|
241
|
+
o("td", xe, [
|
|
242
|
+
o("div", ge, [
|
|
243
|
+
l.thumbnail ? (s(), a("div", {
|
|
215
244
|
key: 0,
|
|
216
|
-
class:
|
|
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(
|
|
219
|
-
src:
|
|
220
|
-
alt:
|
|
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)) :
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
class:
|
|
228
|
-
title:
|
|
229
|
-
},
|
|
230
|
-
|
|
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:
|
|
234
|
-
},
|
|
262
|
+
title: l.sku
|
|
263
|
+
}, t(d.value.sku || "SKU") + ": " + t(l.sku), 9, be)) : c("", !0)
|
|
235
264
|
])
|
|
236
265
|
])
|
|
237
266
|
]),
|
|
238
|
-
|
|
239
|
-
h.value ? (s(), a("td",
|
|
240
|
-
|
|
241
|
-
u(r(
|
|
242
|
-
value:
|
|
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
|
-
|
|
246
|
-
|
|
247
|
-
u(r(
|
|
248
|
-
value: -
|
|
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
|
-
|
|
251
|
-
])) : (s(), a("span",
|
|
252
|
-
])) :
|
|
253
|
-
|
|
254
|
-
u(r(
|
|
255
|
-
value:
|
|
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
|
-
|
|
262
|
-
class:
|
|
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(
|
|
293
|
+
u(B, {
|
|
265
294
|
totals: e.value.totals,
|
|
266
|
-
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",
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
])) :
|
|
275
|
-
e.value.footerText ? (s(), a("div",
|
|
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
|
-
|
|
310
|
+
Qe as default
|
|
282
311
|
};
|