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