vlite3 1.1.1 → 1.1.4
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 +2 -17
- package/components/AttachmentsList/AttachmentsList.vue.js +273 -175
- package/components/Avatar.vue.js +1 -1
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
- package/components/AvatarUploader/AvatarUploader.vue.js +40 -37
- package/components/Button.vue.d.ts +1 -1
- package/components/Button.vue.js +30 -28
- 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 +12 -3
- package/components/CategoryManager/CategoryManager.vue.js +204 -145
- package/components/CategoryManager/CategoryNode.vue.d.ts +2 -0
- package/components/CategoryManager/CategoryNode.vue.js +93 -88
- package/components/CategoryManager/types.d.ts +14 -0
- package/components/Chat/ChatBubble.vue.js +22 -22
- package/components/CheckBox.vue.js +29 -28
- package/components/Chip/Chip.vue.d.ts +2 -2
- package/components/ConfirmationModal.vue.d.ts +2 -2
- package/components/ConfirmationModal.vue.js +30 -28
- package/components/CopyButton.vue.d.ts +50 -0
- package/components/CopyButton.vue.js +69 -0
- package/components/CopyButton.vue2.js +4 -0
- package/components/CustomFieldsDisplay/CustomFieldsDisplay.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.d.ts +3 -3
- package/components/DataTable/DataTable.vue.js +44 -44
- package/components/DatePicker.vue.js +41 -35
- package/components/DateRangePicker.vue.js +18 -17
- package/components/Dropdown/Dropdown.vue.d.ts +5 -2
- package/components/Dropdown/Dropdown.vue.js +117 -115
- package/components/Dropdown/DropdownBooleanItem.vue.js +16 -15
- package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
- package/components/Dropdown/DropdownItem.vue.js +21 -20
- package/components/Dropdown/DropdownMenu.vue.d.ts +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Dropdown/DropdownMenu.vue2.js +13 -12
- package/components/Dropdown/DropdownTrigger.vue.d.ts +3 -1
- package/components/Dropdown/DropdownTrigger.vue.js +10 -6
- package/components/Dropdown/composables/useDropdownHydration.d.ts +2 -0
- package/components/Dropdown/composables/useDropdownSelection.d.ts +1 -0
- package/components/Dropdown/composables/useDropdownSelection.js +46 -31
- package/components/FilePicker/FilePicker.vue.d.ts +1 -1
- package/components/FilePicker/FilePicker.vue.js +93 -90
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +230 -238
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Form/FormField.vue.js +204 -148
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +28 -27
- package/components/Form/types.d.ts +2 -2
- package/components/Form/utils/form.utils.d.ts +3 -3
- package/components/Form/utils/form.utils.js +37 -37
- package/components/Input.vue.d.ts +3 -3
- package/components/Input.vue.js +64 -62
- package/components/Invoice/Invoice.vue.d.ts +1 -4
- package/components/Invoice/Invoice.vue.js +22 -13
- package/components/Invoice/InvoiceTotals.vue.d.ts +14 -0
- package/components/Invoice/InvoiceTotals.vue.js +86 -0
- package/components/Invoice/InvoiceTotals.vue2.js +4 -0
- package/components/Invoice/InvoiceVariant1.vue.d.ts +6 -1
- package/components/Invoice/InvoiceVariant1.vue.js +304 -271
- package/components/Invoice/InvoiceVariant2.vue.d.ts +6 -1
- package/components/Invoice/InvoiceVariant2.vue.js +168 -181
- package/components/Invoice/InvoiceVariant3.vue.d.ts +6 -1
- package/components/Invoice/InvoiceVariant3.vue.js +215 -182
- package/components/Invoice/InvoiceVariant4.vue.d.ts +6 -1
- package/components/Invoice/InvoiceVariant4.vue.js +281 -238
- package/components/Invoice/index.d.ts +1 -0
- package/components/Invoice/types.d.ts +26 -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/Masonry/Masonry.vue.d.ts +1 -1
- package/components/Modal.vue.js +1 -1
- package/components/Modal.vue2.js +60 -54
- package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
- package/components/MultiSelect/MultiSelect.vue.js +47 -46
- package/components/MultiSelect/composables/useMultiSelectHydration.d.ts +2 -0
- package/components/Navbar/NavbarItem.vue.d.ts +1 -1
- package/components/NumberInput.vue.d.ts +2 -2
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +121 -116
- package/components/OTPInput/OTPInput.vue.d.ts +1 -1
- package/components/PricingPlan/PricingPlan.vue.d.ts +2 -2
- package/components/SidePanel.vue.js +2 -2
- package/components/SidePanel.vue2.js +58 -52
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
- package/components/Stats/StatItem.vue.js +96 -91
- package/components/Stats/Stats.vue.d.ts +1 -1
- package/components/Stats/types.d.ts +1 -0
- package/components/StatusChip/status-map.js +27 -7
- package/components/Switch.vue.d.ts +6 -1
- package/components/Switch.vue.js +61 -24
- package/components/TagInput/TagInput.vue.d.ts +187 -0
- package/components/TagInput/TagInput.vue.js +113 -0
- package/components/TagInput/TagInput.vue2.js +4 -0
- package/components/TagInput/index.d.ts +1 -0
- package/components/Textarea.vue.js +19 -18
- package/components/ThumbnailSelector/ThumbnailSelector.vue.d.ts +2 -2
- package/components/ThumbnailSelector/ThumbnailSelector.vue.js +2 -2
- package/components/ThumbnailSelector/ThumbnailSelector.vue2.js +19 -16
- package/components/Workbook/Workbook.vue.d.ts +3 -3
- package/core/config.d.ts +112 -0
- package/core/index.js +17 -5
- package/index.d.ts +2 -0
- package/index.js +279 -271
- package/package.json +1 -1
- package/style.css +617 -2
- package/types/button.d.ts +1 -1
- package/types/config.type.d.ts +6 -0
- package/types/list.type.d.ts +6 -0
- package/types/styles.d.ts +1 -0
- package/utils/configUtils.d.ts +9 -0
- package/utils/configUtils.js +7 -0
- package/utils/functions.js +9 -9
- package/utils/index.d.ts +1 -0
|
@@ -1,314 +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 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";
|
|
2
|
+
import f from "../Price/Price.vue.js";
|
|
3
|
+
import b 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 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 = {
|
|
10
|
+
key: 0,
|
|
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 = {
|
|
8
13
|
key: 1,
|
|
9
|
-
class: "
|
|
10
|
-
},
|
|
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 = {
|
|
16
|
+
key: 3,
|
|
17
|
+
class: "pt-0.5"
|
|
18
|
+
}, Q = { key: 4 }, A = {
|
|
19
|
+
key: 5,
|
|
20
|
+
class: "pt-0.5"
|
|
21
|
+
}, G = { key: 1 }, H = { key: 0 }, J = { key: 1 }, M = { key: 2 }, R = {
|
|
22
|
+
key: 3,
|
|
23
|
+
class: "pt-0.5"
|
|
24
|
+
}, W = { key: 4 }, X = {
|
|
25
|
+
key: 5,
|
|
26
|
+
class: "pt-0.5"
|
|
27
|
+
}, Y = {
|
|
11
28
|
key: 1,
|
|
12
|
-
class: "
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
class: "
|
|
16
|
-
},
|
|
29
|
+
class: "border-b border-border overflow-x-auto"
|
|
30
|
+
}, Z = { class: "invoice-thead" }, ee = {
|
|
31
|
+
scope: "col",
|
|
32
|
+
class: "invoice-th"
|
|
33
|
+
}, te = {
|
|
34
|
+
scope: "col",
|
|
35
|
+
class: "invoice-th invoice-text-right"
|
|
36
|
+
}, oe = {
|
|
37
|
+
key: 0,
|
|
38
|
+
scope: "col",
|
|
39
|
+
class: "invoice-th invoice-text-right"
|
|
40
|
+
}, ae = {
|
|
41
|
+
scope: "col",
|
|
42
|
+
class: "invoice-th invoice-text-right"
|
|
43
|
+
}, se = {
|
|
17
44
|
key: 1,
|
|
18
|
-
|
|
19
|
-
|
|
45
|
+
scope: "col",
|
|
46
|
+
class: "invoice-th invoice-text-right"
|
|
47
|
+
}, ce = {
|
|
48
|
+
scope: "col",
|
|
49
|
+
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 = {
|
|
20
51
|
key: 0,
|
|
21
|
-
class: "
|
|
22
|
-
},
|
|
52
|
+
class: "text-muted-foreground uppercase tracking-wider font-medium mt-0.5 text-xs"
|
|
53
|
+
}, me = {
|
|
54
|
+
key: 1,
|
|
55
|
+
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 = {
|
|
23
57
|
key: 0,
|
|
24
|
-
class: "text-
|
|
25
|
-
},
|
|
58
|
+
class: "invoice-td invoice-text-right tabular-nums text-muted-foreground"
|
|
59
|
+
}, xe = { class: "invoice-td invoice-text-right tabular-nums" }, fe = {
|
|
60
|
+
key: 1,
|
|
61
|
+
class: "invoice-td invoice-text-right tabular-nums text-success font-semibold"
|
|
62
|
+
}, he = {
|
|
26
63
|
key: 0,
|
|
27
|
-
class: "
|
|
28
|
-
},
|
|
64
|
+
class: "flex flex-col items-end gap-0.5"
|
|
65
|
+
}, ye = {
|
|
66
|
+
key: 1,
|
|
67
|
+
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,
|
|
70
|
+
class: "flex flex-row flex-wrap gap-3 items-center"
|
|
71
|
+
}, Ie = {
|
|
29
72
|
key: 0,
|
|
30
|
-
class: "
|
|
31
|
-
},
|
|
73
|
+
class: "shrink-0"
|
|
74
|
+
}, _e = {
|
|
32
75
|
key: 1,
|
|
33
|
-
class: "
|
|
34
|
-
},
|
|
76
|
+
class: "shrink-0"
|
|
77
|
+
}, we = { class: "w-full lg:w-2/5 min-w-[220px]" }, Ce = /* @__PURE__ */ _({
|
|
35
78
|
__name: "InvoiceVariant1",
|
|
36
79
|
props: {
|
|
37
80
|
data: {},
|
|
38
|
-
compact: { type: Boolean, default: !1 }
|
|
81
|
+
compact: { type: Boolean, default: !1 },
|
|
82
|
+
displayBarcodeValue: { type: Boolean, default: !1 },
|
|
83
|
+
labels: {}
|
|
39
84
|
},
|
|
40
|
-
setup(
|
|
41
|
-
const
|
|
42
|
-
return (
|
|
43
|
-
class: "v-invoice-v1 bg-background text-foreground
|
|
44
|
-
style:
|
|
45
|
-
"--text-sm":
|
|
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", {
|
|
88
|
+
class: "v-invoice-v1 bg-background text-foreground border border-border rounded-sm",
|
|
89
|
+
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",
|
|
93
|
+
"--invoice-thead-bg": "var(--color-muted)",
|
|
94
|
+
"--invoice-tr-border": "1px solid var(--color-border)",
|
|
95
|
+
"--invoice-tr-hover-bg": "color-mix(in oklab, var(--color-muted) 40%, transparent)"
|
|
46
96
|
})
|
|
47
97
|
}, [
|
|
48
|
-
|
|
49
|
-
class:
|
|
98
|
+
s("div", {
|
|
99
|
+
class: n(["border-b border-border", l.compact ? "px-5 py-3" : "px-6 pt-5 pb-3.5"])
|
|
50
100
|
}, [
|
|
51
|
-
|
|
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)
|
|
101
|
+
s("div", $, [
|
|
102
|
+
s("div", q, [
|
|
103
|
+
s("div", {
|
|
104
|
+
class: n(l.compact ? "h-10 w-10" : "h-13 w-13")
|
|
105
|
+
}, [
|
|
106
|
+
r(k, {
|
|
107
|
+
src: e.value.brandLogo,
|
|
108
|
+
alt: e.value.brandName,
|
|
109
|
+
class: "h-full w-auto object-contain",
|
|
110
|
+
rounded: "md"
|
|
111
|
+
}, null, 8, ["src", "alt"])
|
|
112
|
+
], 2)
|
|
95
113
|
]),
|
|
96
|
-
|
|
97
|
-
class: l
|
|
114
|
+
s("div", {
|
|
115
|
+
class: n(["flex-1 min-w-0", l.compact ? "space-y-0.5" : "space-y-1"])
|
|
98
116
|
}, [
|
|
99
|
-
e.value.
|
|
117
|
+
e.value.brandName ? (o(), a("p", {
|
|
100
118
|
key: 0,
|
|
101
|
-
class:
|
|
102
|
-
},
|
|
103
|
-
e.value.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
class: "font-medium"
|
|
117
|
-
},
|
|
118
|
-
])
|
|
119
|
+
class: n(["font-bold text-foreground leading-tight truncate", l.compact ? "text-base" : "text-lg"])
|
|
120
|
+
}, t(e.value.brandName), 3)) : c("", !0),
|
|
121
|
+
e.value.brandTitle ? (o(), a("p", {
|
|
122
|
+
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)
|
|
125
|
+
], 2),
|
|
126
|
+
s("div", {
|
|
127
|
+
class: n(["text-right shrink-0", l.compact ? "space-y-2" : "space-y-3"])
|
|
128
|
+
}, [
|
|
129
|
+
s("div", null, [
|
|
130
|
+
s("h1", {
|
|
131
|
+
class: n(["font-black tracking-tight text-foreground uppercase", l.compact ? "text-2xl" : "text-3xl"])
|
|
132
|
+
}, 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"])
|
|
135
|
+
}, " #" + t(e.value.invoiceNumber), 3)
|
|
136
|
+
])
|
|
119
137
|
], 2)
|
|
138
|
+
]),
|
|
139
|
+
s("div", {
|
|
140
|
+
class: n(["flex items-center gap-4 text-xs", l.compact ? "mt-2" : "mt-4"])
|
|
141
|
+
}, [
|
|
142
|
+
e.value.issuedDate ? (o(), a("div", S, [
|
|
143
|
+
s("span", C, t(i.value.issued || "Issued"), 1),
|
|
144
|
+
r(d(b), {
|
|
145
|
+
value: e.value.issuedDate,
|
|
146
|
+
type: "date",
|
|
147
|
+
class: "font-semibold text-foreground tabular-nums"
|
|
148
|
+
}, 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), {
|
|
153
|
+
value: e.value.dueDate,
|
|
154
|
+
type: "date",
|
|
155
|
+
class: "font-semibold text-foreground tabular-nums"
|
|
156
|
+
}, null, 8, ["value"])
|
|
157
|
+
])) : c("", !0),
|
|
158
|
+
e.value.status ? (o(), z(B, {
|
|
159
|
+
key: 2,
|
|
160
|
+
status: e.value.status,
|
|
161
|
+
"hide-icon": "",
|
|
162
|
+
size: "small"
|
|
163
|
+
}, null, 8, ["status"])) : c("", !0)
|
|
120
164
|
], 2)
|
|
121
165
|
], 2),
|
|
122
|
-
a("div", {
|
|
123
|
-
|
|
166
|
+
e.value.companyInfo || e.value.customerInfo ? (o(), a("div", {
|
|
167
|
+
key: 0,
|
|
168
|
+
class: n(["border-b border-border", l.compact ? "px-5 py-4" : "px-6 pt-4 pb-5"])
|
|
124
169
|
}, [
|
|
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
|
-
|
|
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]"])
|
|
174
|
+
}, t(i.value.from || "From"), 3),
|
|
175
|
+
e.value.brandName ? (o(), a("p", {
|
|
176
|
+
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"])
|
|
181
|
+
}, [
|
|
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),
|
|
185
|
+
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
|
+
], 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]"])
|
|
199
|
+
}, t(i.value.billedTo || "Billed To"), 3),
|
|
200
|
+
s("p", {
|
|
201
|
+
class: n(["font-bold text-foreground", l.compact ? "text-sm" : "text-base"])
|
|
202
|
+
}, 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"])
|
|
205
|
+
}, [
|
|
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),
|
|
209
|
+
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
|
+
], 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"])
|
|
152
225
|
}, [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
a("
|
|
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
|
-
key: n.id || f,
|
|
189
|
-
class: "hover:bg-muted/50 transition-colors"
|
|
190
|
-
}, [
|
|
191
|
-
a("td", {
|
|
192
|
-
class: l(s.compact ? "px-4 py-2" : "px-5 py-3")
|
|
193
|
-
}, [
|
|
194
|
-
a("div", M, [
|
|
195
|
-
n.thumbnail ? (t(), o("div", {
|
|
196
|
-
key: 0,
|
|
197
|
-
class: l(["shrink-0 rounded-md bg-muted overflow-hidden border border-border/50", s.compact ? "w-8 h-8" : "w-10 h-10"])
|
|
198
|
-
}, [
|
|
199
|
-
a("img", {
|
|
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
|
-
])
|
|
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)
|
|
234
|
+
])
|
|
235
|
+
]),
|
|
236
|
+
s("tbody", le, [
|
|
237
|
+
(o(!0), a(x, null, D(e.value.items, (u, I) => (o(), a("tr", {
|
|
238
|
+
key: u.id || I,
|
|
239
|
+
class: "invoice-tr group"
|
|
240
|
+
}, [
|
|
241
|
+
s("td", ne, [
|
|
242
|
+
s("div", ue, [
|
|
243
|
+
u.thumbnail ? (o(), a("div", {
|
|
244
|
+
key: 0,
|
|
245
|
+
class: n(["shrink-0 overflow-hidden", l.compact ? "w-9 h-9" : "w-10 h-10"])
|
|
246
|
+
}, [
|
|
247
|
+
r(k, {
|
|
248
|
+
src: u.thumbnail,
|
|
249
|
+
alt: u.name,
|
|
250
|
+
class: "w-full h-full ronded!",
|
|
251
|
+
rounded: "md"
|
|
252
|
+
}, null, 8, ["src", "alt"])
|
|
253
|
+
], 2)) : c("", !0),
|
|
254
|
+
s("div", ie, [
|
|
255
|
+
s("p", {
|
|
256
|
+
class: "font-semibold text-foreground whitespace-normal text-sm",
|
|
257
|
+
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)
|
|
217
261
|
])
|
|
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,
|
|
262
|
+
])
|
|
263
|
+
]),
|
|
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), {
|
|
268
|
+
value: u.price,
|
|
269
|
+
class: "text-sm"
|
|
270
|
+
}, null, 8, ["value"])
|
|
271
|
+
]),
|
|
272
|
+
g.value ? (o(), a("td", fe, [
|
|
273
|
+
u.discount !== void 0 ? (o(), a("div", he, [
|
|
274
|
+
r(d(f), {
|
|
275
|
+
value: -u.discount,
|
|
250
276
|
class: "text-sm"
|
|
251
|
-
}, null, 8, ["value"])
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
277
|
+
}, null, 8, ["value"]),
|
|
278
|
+
u.discountLabel ? (o(), a("span", {
|
|
279
|
+
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), {
|
|
286
|
+
value: u.total,
|
|
287
|
+
class: "text-sm"
|
|
288
|
+
}, null, 8, ["value"])
|
|
289
|
+
])
|
|
290
|
+
]))), 128))
|
|
291
|
+
])
|
|
292
|
+
], 2)
|
|
293
|
+
])) : c("", !0),
|
|
294
|
+
s("div", {
|
|
295
|
+
class: n(l.compact ? "p-6" : "p-8")
|
|
296
|
+
}, [
|
|
297
|
+
s("div", {
|
|
298
|
+
class: n(["flex flex-col-reverse lg:flex-row justify-between", l.compact ? "gap-6" : "gap-8"])
|
|
259
299
|
}, [
|
|
260
|
-
|
|
261
|
-
class:
|
|
300
|
+
s("div", {
|
|
301
|
+
class: n(["w-full lg:w-1/2 flex flex-col", l.compact ? "gap-4" : "gap-5"])
|
|
262
302
|
}, [
|
|
263
|
-
e.value.notes ? (
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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]"])
|
|
306
|
+
}, 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"])
|
|
309
|
+
}, t(e.value.notes), 3)
|
|
268
310
|
])) : c("", !0),
|
|
269
|
-
a("div",
|
|
270
|
-
e.value.qrcode ? (
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
size:
|
|
274
|
-
}, null, 8, ["
|
|
311
|
+
e.value.qrcode || e.value.barcode ? (o(), a("div", ke, [
|
|
312
|
+
e.value.qrcode ? (o(), a("div", Ie, [
|
|
313
|
+
r(d(T), {
|
|
314
|
+
value: e.value.qrcode,
|
|
315
|
+
size: l.compact ? 48 : 56
|
|
316
|
+
}, null, 8, ["value", "size"])
|
|
275
317
|
])) : c("", !0),
|
|
276
|
-
e.value.barcode ? (
|
|
277
|
-
|
|
318
|
+
e.value.barcode ? (o(), a("div", _e, [
|
|
319
|
+
r(d(N), {
|
|
278
320
|
value: e.value.barcode,
|
|
279
321
|
format: "CODE128",
|
|
280
|
-
height:
|
|
281
|
-
width:
|
|
282
|
-
|
|
322
|
+
height: l.compact ? 24 : 30,
|
|
323
|
+
width: l.compact ? 1.2 : 1.4,
|
|
324
|
+
"display-value": l.displayBarcodeValue
|
|
325
|
+
}, null, 8, ["value", "height", "width", "display-value"])
|
|
283
326
|
])) : c("", !0)
|
|
284
|
-
])
|
|
327
|
+
])) : c("", !0)
|
|
285
328
|
], 2),
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
class: l(["flex justify-between items-center", [
|
|
293
|
-
n.isGrandTotal ? s.compact ? "pt-2 border-t border-border mt-2 text-base font-bold text-foreground" : "pt-3 border-t border-border mt-3 text-base font-bold text-foreground" : "text-sm text-muted-foreground font-medium"
|
|
294
|
-
]])
|
|
295
|
-
}, [
|
|
296
|
-
a("span", null, u(n.label), 1),
|
|
297
|
-
m(d(v), {
|
|
298
|
-
value: n.value
|
|
299
|
-
}, null, 8, ["value"])
|
|
300
|
-
], 2))), 128))
|
|
301
|
-
], 2)
|
|
329
|
+
s("div", we, [
|
|
330
|
+
r(V, {
|
|
331
|
+
totals: e.value.totals,
|
|
332
|
+
compact: l.compact,
|
|
333
|
+
variant: "Variant1"
|
|
334
|
+
}, null, 8, ["totals", "compact"])
|
|
302
335
|
])
|
|
303
336
|
], 2)
|
|
304
337
|
], 2),
|
|
305
|
-
e.value.footerText ? (
|
|
306
|
-
key:
|
|
307
|
-
class:
|
|
308
|
-
},
|
|
338
|
+
e.value.footerText ? (o(), a("div", {
|
|
339
|
+
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)
|
|
309
342
|
], 4));
|
|
310
343
|
}
|
|
311
344
|
});
|
|
312
345
|
export {
|
|
313
|
-
|
|
346
|
+
Ce as default
|
|
314
347
|
};
|