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
|
@@ -3,8 +3,11 @@ type __VLS_Props = {
|
|
|
3
3
|
data: InvoiceData;
|
|
4
4
|
/** Reduces padding, spacing, and font sizes for print-friendly output */
|
|
5
5
|
compact?: boolean;
|
|
6
|
+
/** Toggles the display of the barcode text value underneath the bars */
|
|
7
|
+
displayBarcodeValue?: boolean;
|
|
6
8
|
};
|
|
7
9
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
10
|
compact: boolean;
|
|
11
|
+
displayBarcodeValue: boolean;
|
|
9
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
13
|
export default _default;
|
|
@@ -1,230 +1,226 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getStatusColorClass as k } from "../../utils/status.js";
|
|
1
|
+
import { defineComponent as b, computed as g, openBlock as s, createElementBlock as o, normalizeStyle as h, normalizeClass as n, createElementVNode as a, createVNode as u, createCommentVNode as r, toDisplayString as l, unref as m, Fragment as f, renderList as p } from "vue";
|
|
2
|
+
import i from "../Price/Price.vue.js";
|
|
3
|
+
import k from "../DateTime/DateTime.vue.js";
|
|
5
4
|
import w from "../Barcode/Barcode.vue.js";
|
|
6
5
|
import I from "../QRCode/QRCode.vue.js";
|
|
7
|
-
|
|
6
|
+
import v from "../Avatar.vue.js";
|
|
7
|
+
import j from "../StatusChip/StatusChip.vue.js";
|
|
8
|
+
const z = {
|
|
8
9
|
key: 0,
|
|
9
|
-
class: "flex justify-
|
|
10
|
+
class: "flex justify-center mb-2"
|
|
11
|
+
}, N = { key: 0 }, V = { key: 1 }, B = { key: 2 }, D = { key: 3 }, $ = { class: "flex justify-between items-center" }, C = { class: "font-semibold text-foreground" }, L = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "flex justify-between items-center"
|
|
10
14
|
}, T = {
|
|
11
15
|
key: 1,
|
|
12
|
-
class: "flex justify-between
|
|
13
|
-
},
|
|
16
|
+
class: "flex justify-between items-center"
|
|
17
|
+
}, S = { class: "font-semibold text-foreground" }, q = {
|
|
14
18
|
key: 2,
|
|
15
|
-
class: "flex justify-between"
|
|
16
|
-
},
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "shrink-0 w-8 h-8 rounded bg-gray-100 overflow-hidden border border-gray-200 mt-0.5"
|
|
19
|
-
}, E = ["src", "alt"], A = { class: "flex-1 min-w-0" }, F = { class: "flex justify-between font-medium" }, G = ["title"], K = ["title"], O = { class: "text-gray-500 flex flex-wrap gap-x-2 gap-y-0.5 text-xs" }, R = {
|
|
19
|
+
class: "flex justify-between items-center"
|
|
20
|
+
}, E = { class: "flex items-start gap-2.5" }, A = { class: "flex-1 min-w-0" }, F = { class: "flex justify-between items-start gap-2" }, G = ["title"], K = {
|
|
20
21
|
key: 0,
|
|
21
|
-
class: "text-
|
|
22
|
-
},
|
|
22
|
+
class: "text-muted-foreground"
|
|
23
|
+
}, O = {
|
|
23
24
|
key: 1,
|
|
24
|
-
class: "text-success font-medium flex items-center gap-
|
|
25
|
-
}, H = {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "text-xs!"
|
|
28
|
-
}, J = { class: "text-sm" }, M = {
|
|
25
|
+
class: "text-success font-medium flex items-center gap-0.5"
|
|
26
|
+
}, R = { key: 0 }, U = { class: "flex flex-row flex-wrap items-center justify-center gap-3" }, H = {
|
|
29
27
|
key: 0,
|
|
30
|
-
class: "p-1 bg-white border border-
|
|
31
|
-
},
|
|
32
|
-
key: 0,
|
|
33
|
-
class: "text-gray-600 whitespace-pre-wrap text-xs"
|
|
34
|
-
}, Q = {
|
|
28
|
+
class: "p-1 bg-white border border-border rounded"
|
|
29
|
+
}, J = {
|
|
35
30
|
key: 1,
|
|
36
|
-
class: "
|
|
37
|
-
},
|
|
31
|
+
class: "bg-white p-1 rounded border border-border overflow-hidden"
|
|
32
|
+
}, ee = /* @__PURE__ */ b({
|
|
38
33
|
__name: "InvoiceVariant2",
|
|
39
34
|
props: {
|
|
40
35
|
data: {},
|
|
41
|
-
compact: { type: Boolean, default: !1 }
|
|
36
|
+
compact: { type: Boolean, default: !1 },
|
|
37
|
+
displayBarcodeValue: { type: Boolean, default: !1 }
|
|
42
38
|
},
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
45
|
-
return (
|
|
46
|
-
class: n(["v-invoice-v2 bg-
|
|
47
|
-
style:
|
|
48
|
-
"--text-sm":
|
|
49
|
-
"--text-xs":
|
|
39
|
+
setup(t) {
|
|
40
|
+
const y = t, e = g(() => y.data);
|
|
41
|
+
return (M, c) => (s(), o("div", {
|
|
42
|
+
class: n(["v-invoice-v2 bg-background text-foreground border border-border mx-auto print:max-w-[300px] font-sans tracking-tight", t.compact ? "max-w-xs" : "max-w-sm sm:max-w-md"]),
|
|
43
|
+
style: h({
|
|
44
|
+
"--text-sm": t.compact ? "12px" : "13.5px",
|
|
45
|
+
"--text-xs": t.compact ? "9.5px" : "10px"
|
|
50
46
|
})
|
|
51
47
|
}, [
|
|
52
|
-
|
|
53
|
-
class: n(["text-center",
|
|
48
|
+
a("div", {
|
|
49
|
+
class: n(["text-center", t.compact ? "p-4 pb-3" : "p-6 pb-4"])
|
|
54
50
|
}, [
|
|
55
|
-
e.value.brandLogo ? (s(), o("div",
|
|
56
|
-
|
|
57
|
-
class: n(a.compact ? "h-8 mx-auto mb-1" : "h-14 mx-auto mb-2")
|
|
58
|
-
}, [
|
|
59
|
-
t("img", {
|
|
51
|
+
e.value.brandLogo ? (s(), o("div", z, [
|
|
52
|
+
u(v, {
|
|
60
53
|
src: e.value.brandLogo,
|
|
61
54
|
alt: e.value.brandName,
|
|
62
|
-
class: "h-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
])
|
|
55
|
+
class: n(t.compact ? "h-9 w-9" : "h-12 w-12"),
|
|
56
|
+
rounded: "md"
|
|
57
|
+
}, null, 8, ["src", "alt", "class"])
|
|
58
|
+
])) : r("", !0),
|
|
59
|
+
e.value.brandName ? (s(), o("h2", {
|
|
60
|
+
key: 1,
|
|
61
|
+
class: n(["font-bold uppercase tracking-widest text-foreground", t.compact ? "text-base" : "text-xl"])
|
|
62
|
+
}, l(e.value.brandName), 3)) : r("", !0),
|
|
63
|
+
e.value.companyInfo ? (s(), o("div", {
|
|
64
|
+
key: 2,
|
|
65
|
+
class: n(["text-muted-foreground space-y-0.5 mt-1", t.compact ? "text-xs" : "text-sm"])
|
|
66
|
+
}, [
|
|
67
|
+
e.value.companyInfo.address ? (s(), o("p", N, l(e.value.companyInfo.address), 1)) : r("", !0),
|
|
68
|
+
e.value.companyInfo.city || e.value.companyInfo.state ? (s(), o("p", V, l(e.value.companyInfo.city) + " " + l(e.value.companyInfo.state) + " " + l(e.value.companyInfo.zip), 1)) : r("", !0),
|
|
69
|
+
e.value.companyInfo.phone ? (s(), o("p", B, l(e.value.companyInfo.phone), 1)) : r("", !0),
|
|
70
|
+
e.value.companyInfo.taxId ? (s(), o("p", D, "VAT: " + l(e.value.companyInfo.taxId), 1)) : r("", !0)
|
|
71
|
+
], 2)) : r("", !0)
|
|
80
72
|
], 2),
|
|
81
|
-
|
|
82
|
-
class: n(["border-t border-dashed border-
|
|
73
|
+
a("div", {
|
|
74
|
+
class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
|
|
83
75
|
}, null, 2),
|
|
84
|
-
|
|
85
|
-
class: n(
|
|
76
|
+
a("div", {
|
|
77
|
+
class: n(t.compact ? "px-4 py-2.5 space-y-1 text-xs" : "px-5 py-3.5 space-y-1.5 text-sm")
|
|
86
78
|
}, [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
a("div", $, [
|
|
80
|
+
c[0] || (c[0] = a("span", { class: "text-muted-foreground font-medium" }, "Receipt #", -1)),
|
|
81
|
+
a("span", C, l(e.value.invoiceNumber), 1)
|
|
90
82
|
]),
|
|
91
83
|
e.value.issuedDate ? (s(), o("div", L, [
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
c[1] || (c[1] = a("span", { class: "text-muted-foreground font-medium" }, "Date", -1)),
|
|
85
|
+
u(m(k), {
|
|
94
86
|
value: e.value.issuedDate,
|
|
95
87
|
type: "dateTime",
|
|
96
|
-
class: "font-medium"
|
|
88
|
+
class: "font-medium text-foreground"
|
|
97
89
|
}, null, 8, ["value"])
|
|
98
|
-
])) :
|
|
90
|
+
])) : r("", !0),
|
|
99
91
|
e.value.customerInfo?.name ? (s(), o("div", T, [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
])) :
|
|
103
|
-
e.value.status ? (s(), o("div",
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
92
|
+
c[2] || (c[2] = a("span", { class: "text-muted-foreground font-medium" }, "Customer", -1)),
|
|
93
|
+
a("span", S, l(e.value.customerInfo.name), 1)
|
|
94
|
+
])) : r("", !0),
|
|
95
|
+
e.value.status ? (s(), o("div", q, [
|
|
96
|
+
c[3] || (c[3] = a("span", { class: "text-muted-foreground font-medium" }, "Status", -1)),
|
|
97
|
+
u(j, {
|
|
98
|
+
status: e.value.status,
|
|
99
|
+
"hide-icon": "",
|
|
100
|
+
size: "small"
|
|
101
|
+
}, null, 8, ["status"])
|
|
102
|
+
])) : r("", !0)
|
|
109
103
|
], 2),
|
|
110
|
-
|
|
111
|
-
class: n(["border-t border-dashed border-
|
|
104
|
+
a("div", {
|
|
105
|
+
class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
|
|
112
106
|
}, null, 2),
|
|
113
|
-
|
|
114
|
-
class: n(
|
|
107
|
+
a("div", {
|
|
108
|
+
class: n(t.compact ? "px-4 py-2.5" : "px-5 py-3.5")
|
|
115
109
|
}, [
|
|
116
|
-
|
|
117
|
-
class: n(["flex justify-between font-semibold text-
|
|
118
|
-
}, [...
|
|
119
|
-
|
|
120
|
-
|
|
110
|
+
a("div", {
|
|
111
|
+
class: n(["flex justify-between font-semibold text-muted-foreground uppercase tracking-wider mb-2", t.compact ? "text-[10px]" : "text-xs"])
|
|
112
|
+
}, [...c[4] || (c[4] = [
|
|
113
|
+
a("span", null, "Item", -1),
|
|
114
|
+
a("span", null, "Amount", -1)
|
|
121
115
|
])], 2),
|
|
122
|
-
|
|
123
|
-
class: n(
|
|
116
|
+
a("div", {
|
|
117
|
+
class: n(t.compact ? "space-y-2.5" : "space-y-3.5")
|
|
124
118
|
}, [
|
|
125
|
-
(s(!0), o(
|
|
126
|
-
key:
|
|
119
|
+
(s(!0), o(f, null, p(e.value.items, (d, x) => (s(), o("div", {
|
|
120
|
+
key: d.id || x
|
|
127
121
|
}, [
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
},
|
|
122
|
+
a("div", E, [
|
|
123
|
+
d.thumbnail ? (s(), o("div", {
|
|
124
|
+
key: 0,
|
|
125
|
+
class: n(["shrink-0 overflow-hidden border border-border mt-0.5", t.compact ? "w-8 h-8 rounded" : "w-9 h-9 rounded-md"])
|
|
126
|
+
}, [
|
|
127
|
+
u(v, {
|
|
128
|
+
src: d.thumbnail,
|
|
129
|
+
alt: d.name,
|
|
130
|
+
class: "w-full h-full",
|
|
131
|
+
rounded: "sm"
|
|
132
|
+
}, null, 8, ["src", "alt"])
|
|
133
|
+
], 2)) : r("", !0),
|
|
134
|
+
a("div", A, [
|
|
135
|
+
a("div", F, [
|
|
136
|
+
a("span", {
|
|
137
|
+
class: n(["font-semibold text-foreground truncate", t.compact ? "text-xs" : "text-sm"]),
|
|
138
|
+
title: d.name
|
|
139
|
+
}, l(d.name), 11, G),
|
|
140
|
+
u(m(i), {
|
|
141
|
+
value: d.total,
|
|
142
|
+
class: n(["shrink-0 font-bold text-foreground", t.compact ? "text-xs" : "text-sm"])
|
|
143
|
+
}, null, 8, ["value", "class"])
|
|
146
144
|
]),
|
|
147
|
-
|
|
145
|
+
d.sku ? (s(), o("div", {
|
|
148
146
|
key: 0,
|
|
149
|
-
class: "text-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
147
|
+
class: n(["text-muted-foreground uppercase tracking-tight truncate mt-0.5", t.compact ? "text-[9px]" : "text-[10px]"])
|
|
148
|
+
}, " SKU: " + l(d.sku), 3)) : r("", !0),
|
|
149
|
+
a("div", {
|
|
150
|
+
class: n(["text-muted-foreground flex flex-wrap gap-x-1.5 gap-y-0.5 mt-0.5", t.compact ? "text-[10px]" : "text-xs"])
|
|
151
|
+
}, [
|
|
152
|
+
a("span", null, l(d.quantity) + " x", 1),
|
|
153
|
+
u(m(i), {
|
|
154
|
+
value: d.price
|
|
157
155
|
}, null, 8, ["value"]),
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
value: -
|
|
163
|
-
class: "text-xs!"
|
|
156
|
+
d.size ? (s(), o("span", K, "· " + l(d.size), 1)) : r("", !0),
|
|
157
|
+
d.discount !== void 0 ? (s(), o("div", O, [
|
|
158
|
+
c[5] || (c[5] = a("span", null, "· Disc:", -1)),
|
|
159
|
+
u(m(i), {
|
|
160
|
+
value: -d.discount
|
|
164
161
|
}, null, 8, ["value"]),
|
|
165
|
-
|
|
166
|
-
])) :
|
|
167
|
-
])
|
|
162
|
+
d.discountLabel ? (s(), o("span", R, "(" + l(d.discountLabel) + ")", 1)) : r("", !0)
|
|
163
|
+
])) : r("", !0)
|
|
164
|
+
], 2)
|
|
168
165
|
])
|
|
169
166
|
])
|
|
170
167
|
]))), 128))
|
|
171
168
|
], 2)
|
|
172
169
|
], 2),
|
|
173
|
-
|
|
174
|
-
class: n(["border-t border-dashed border-
|
|
170
|
+
a("div", {
|
|
171
|
+
class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
|
|
175
172
|
}, null, 2),
|
|
176
|
-
|
|
177
|
-
class: n(
|
|
173
|
+
a("div", {
|
|
174
|
+
class: n(t.compact ? "px-4 py-2.5 space-y-1" : "px-5 py-3 space-y-1.5")
|
|
178
175
|
}, [
|
|
179
|
-
(s(!0), o(
|
|
176
|
+
(s(!0), o(f, null, p(e.value.totals, (d, x) => (s(), o("div", {
|
|
180
177
|
key: x,
|
|
181
178
|
class: n([
|
|
182
|
-
"flex justify-between",
|
|
183
|
-
|
|
179
|
+
"flex justify-between items-center",
|
|
180
|
+
d.isGrandTotal ? t.compact ? "mt-1.5 pt-1.5 border-t border-border font-bold text-foreground text-sm" : "mt-2 pt-2 border-t border-border font-bold text-foreground text-base" : t.compact ? "text-xs font-medium text-muted-foreground" : "text-sm font-medium text-muted-foreground"
|
|
184
181
|
])
|
|
185
182
|
}, [
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
value:
|
|
189
|
-
class: "text-sm"
|
|
183
|
+
a("span", null, l(d.label), 1),
|
|
184
|
+
u(m(i), {
|
|
185
|
+
value: d.value
|
|
190
186
|
}, null, 8, ["value"])
|
|
191
187
|
], 2))), 128))
|
|
192
188
|
], 2),
|
|
193
|
-
|
|
194
|
-
class: n(["border-t border-dashed border-
|
|
189
|
+
a("div", {
|
|
190
|
+
class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
|
|
195
191
|
}, null, 2),
|
|
196
|
-
|
|
197
|
-
class: n(
|
|
192
|
+
a("div", {
|
|
193
|
+
class: n(t.compact ? "px-4 py-3 text-center space-y-3" : "px-5 py-4 text-center space-y-4")
|
|
198
194
|
}, [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
e.value.barcode ? (s(), o("div", {
|
|
209
|
-
key: 1,
|
|
210
|
-
class: n(
|
|
211
|
-
a.compact ? "inline-block overflow-hidden" : "scale-90 inline-block overflow-hidden"
|
|
212
|
-
)
|
|
213
|
-
}, [
|
|
214
|
-
i(u(w), {
|
|
195
|
+
a("div", U, [
|
|
196
|
+
e.value.qrcode ? (s(), o("div", H, [
|
|
197
|
+
u(m(I), {
|
|
198
|
+
value: e.value.qrcode,
|
|
199
|
+
size: t.compact ? 48 : 64
|
|
200
|
+
}, null, 8, ["value", "size"])
|
|
201
|
+
])) : r("", !0),
|
|
202
|
+
e.value.barcode ? (s(), o("div", J, [
|
|
203
|
+
u(m(w), {
|
|
215
204
|
value: e.value.barcode,
|
|
216
205
|
format: "CODE128",
|
|
217
|
-
height:
|
|
218
|
-
width:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
e.value.
|
|
206
|
+
height: t.compact ? 24 : 32,
|
|
207
|
+
width: t.compact ? 1 : 1.2,
|
|
208
|
+
"display-value": t.displayBarcodeValue
|
|
209
|
+
}, null, 8, ["value", "height", "width", "display-value"])
|
|
210
|
+
])) : r("", !0)
|
|
211
|
+
]),
|
|
212
|
+
e.value.notes ? (s(), o("div", {
|
|
213
|
+
key: 0,
|
|
214
|
+
class: n(["text-muted-foreground whitespace-pre-wrap", t.compact ? "text-[10px]" : "text-xs"])
|
|
215
|
+
}, l(e.value.notes), 3)) : r("", !0),
|
|
216
|
+
e.value.footerText ? (s(), o("div", {
|
|
217
|
+
key: 1,
|
|
218
|
+
class: n(["text-muted-foreground font-medium uppercase tracking-widest", t.compact ? "text-[9px]" : "text-[10px]"])
|
|
219
|
+
}, l(e.value.footerText), 3)) : r("", !0)
|
|
224
220
|
], 2)
|
|
225
221
|
], 6));
|
|
226
222
|
}
|
|
227
223
|
});
|
|
228
224
|
export {
|
|
229
|
-
|
|
225
|
+
ee as default
|
|
230
226
|
};
|
|
@@ -3,8 +3,11 @@ type __VLS_Props = {
|
|
|
3
3
|
data: InvoiceData;
|
|
4
4
|
/** Reduces padding, spacing, and font sizes for print-friendly output */
|
|
5
5
|
compact?: boolean;
|
|
6
|
+
/** Toggles the display of the barcode text value underneath the bars */
|
|
7
|
+
displayBarcodeValue?: boolean;
|
|
6
8
|
};
|
|
7
9
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
10
|
compact: boolean;
|
|
11
|
+
displayBarcodeValue: boolean;
|
|
9
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
13
|
export default _default;
|