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.
Files changed (60) hide show
  1. package/components/AttachmentsList/AttachmentsList.vue.d.ts +1 -16
  2. package/components/AttachmentsList/AttachmentsList.vue.js +191 -167
  3. package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
  4. package/components/Button.vue.d.ts +1 -1
  5. package/components/Calendar/Calendar.vue.d.ts +6 -6
  6. package/components/Carousel/Carousel.vue.d.ts +2 -2
  7. package/components/CategoryManager/CategoryManager.vue.d.ts +2 -1
  8. package/components/CategoryManager/CategoryManager.vue.js +187 -147
  9. package/components/CategoryManager/types.d.ts +14 -0
  10. package/components/Chip/Chip.vue.d.ts +2 -2
  11. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  12. package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
  13. package/components/ConfirmationModal.vue.d.ts +2 -2
  14. package/components/CustomFieldsDisplay/CustomFieldsDisplay.vue.d.ts +1 -1
  15. package/components/DataTable/DataTable.vue.d.ts +3 -3
  16. package/components/Dropdown/Dropdown.vue.d.ts +2 -2
  17. package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
  18. package/components/Dropdown/DropdownMenu.vue.d.ts +1 -1
  19. package/components/Dropdown/DropdownTrigger.vue.d.ts +1 -1
  20. package/components/FilePicker/FilePicker.vue.d.ts +1 -1
  21. package/components/Form/Form.vue.js +2 -2
  22. package/components/Form/Form.vue2.js +220 -232
  23. package/components/Form/FormField.vue.d.ts +1 -1
  24. package/components/Input.vue.d.ts +3 -3
  25. package/components/Invoice/Invoice.vue.d.ts +1 -4
  26. package/components/Invoice/Invoice.vue.js +20 -13
  27. package/components/Invoice/InvoiceVariant1.vue.d.ts +3 -0
  28. package/components/Invoice/InvoiceVariant1.vue.js +302 -256
  29. package/components/Invoice/InvoiceVariant2.vue.d.ts +3 -0
  30. package/components/Invoice/InvoiceVariant2.vue.js +164 -168
  31. package/components/Invoice/InvoiceVariant3.vue.d.ts +3 -0
  32. package/components/Invoice/InvoiceVariant3.vue.js +213 -170
  33. package/components/Invoice/InvoiceVariant4.vue.d.ts +3 -0
  34. package/components/Invoice/InvoiceVariant4.vue.js +280 -227
  35. package/components/Invoice/types.d.ts +4 -0
  36. package/components/List/List.vue.d.ts +1 -9
  37. package/components/List/List.vue.js +166 -165
  38. package/components/List/ListFieldRow.vue.d.ts +2 -2
  39. package/components/List/ListFieldRow.vue.js +50 -50
  40. package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
  41. package/components/Navbar/NavbarItem.vue.d.ts +1 -1
  42. package/components/NavbarCommandPalette.vue.js +1 -1
  43. package/components/NumberInput.vue.d.ts +2 -2
  44. package/components/OTPInput/OTPInput.vue.d.ts +1 -1
  45. package/components/PricingPlan/PricingPlan.vue.d.ts +1 -1
  46. package/components/SidebarMenu/SidebarMenu.vue.d.ts +1 -1
  47. package/components/Stats/Stats.vue.d.ts +1 -1
  48. package/components/StatusChip/status-map.js +27 -7
  49. package/components/ThumbnailSelector/ThumbnailSelector.vue.d.ts +2 -2
  50. package/components/Workbook/Workbook.vue.d.ts +3 -3
  51. package/core/config.d.ts +76 -0
  52. package/core/index.js +17 -5
  53. package/index.js +264 -262
  54. package/package.json +1 -1
  55. package/style.css +2 -2
  56. package/types/config.type.d.ts +6 -0
  57. package/types/list.type.d.ts +6 -0
  58. package/utils/configUtils.d.ts +9 -0
  59. package/utils/configUtils.js +7 -0
  60. 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 f, computed as b, openBlock as s, createElementBlock as o, normalizeStyle as g, normalizeClass as n, createElementVNode as t, createCommentVNode as c, toDisplayString as d, createVNode as i, unref as u, Fragment as y, renderList as p } from "vue";
2
- import m from "../Price/Price.vue.js";
3
- import h from "../DateTime/DateTime.vue.js";
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
- const j = ["src", "alt"], z = { key: 0 }, C = { key: 1 }, N = { key: 2 }, D = { key: 3 }, S = { class: "flex justify-between" }, _ = { class: "font-semibold" }, L = {
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-between"
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 mt-2"
13
- }, V = { class: "font-semibold" }, $ = {
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
- }, q = { class: "flex items-start gap-2" }, B = {
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-gray-400 font-medium text-xs"
22
- }, U = {
22
+ class: "text-muted-foreground"
23
+ }, O = {
23
24
  key: 1,
24
- class: "text-success font-medium flex items-center gap-1"
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-gray-200 rounded"
31
- }, P = {
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: "text-gray-400 font-medium uppercase tracking-widest text-xs"
37
- }, se = /* @__PURE__ */ f({
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(a) {
44
- const v = a, e = b(() => v.data);
45
- return (W, r) => (s(), o("div", {
46
- class: n(["v-invoice-v2 bg-body text-gray-900 border border-gray-200 mx-auto print:max-w-[300px] shadow-sm font-sans tracking-tight", a.compact ? "max-w-xs" : "max-w-sm sm:max-w-md"]),
47
- style: g({
48
- "--text-sm": a.compact ? "12px" : "13.5px",
49
- "--text-xs": a.compact ? "9.5px" : "10px"
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
- t("div", {
53
- class: n(["text-center", a.compact ? "p-3 space-y-1.5 pb-2" : "p-6 space-y-3 pb-4"])
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
- key: 0,
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-full object-contain mx-auto grayscale"
63
- }, null, 8, j)
64
- ], 2)) : c("", !0),
65
- t("div", null, [
66
- e.value.brandName ? (s(), o("h2", {
67
- key: 0,
68
- class: n(["font-bold uppercase tracking-widest", a.compact ? "text-base" : "text-2xl"])
69
- }, d(e.value.brandName), 3)) : c("", !0),
70
- e.value.companyInfo ? (s(), o("div", {
71
- key: 1,
72
- class: n(["text-gray-500 space-y-0.5", a.compact ? "mt-1 text-sm" : "mt-2 text-sm"])
73
- }, [
74
- e.value.companyInfo.address ? (s(), o("p", z, d(e.value.companyInfo.address), 1)) : c("", !0),
75
- e.value.companyInfo.city || e.value.companyInfo.state ? (s(), o("p", C, d(e.value.companyInfo.city) + " " + d(e.value.companyInfo.state) + " " + d(e.value.companyInfo.zip), 1)) : c("", !0),
76
- e.value.companyInfo.phone ? (s(), o("p", N, d(e.value.companyInfo.phone), 1)) : c("", !0),
77
- e.value.companyInfo.taxId ? (s(), o("p", D, "VAT: " + d(e.value.companyInfo.taxId), 1)) : c("", !0)
78
- ], 2)) : c("", !0)
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
- t("div", {
82
- class: n(["border-t border-dashed border-gray-300", a.compact ? "mx-3" : "mx-6"])
73
+ a("div", {
74
+ class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
83
75
  }, null, 2),
84
- t("div", {
85
- class: n(a.compact ? "px-3 py-2 space-y-1 text-sm" : "px-6 py-4 space-y-1.5 text-sm")
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
- t("div", S, [
88
- r[0] || (r[0] = t("span", { class: "text-gray-500 font-medium" }, "Receipt #", -1)),
89
- t("span", _, d(e.value.invoiceNumber), 1)
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
- r[1] || (r[1] = t("span", { class: "text-gray-500 font-medium" }, "Date", -1)),
93
- i(u(h), {
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
- ])) : c("", !0),
90
+ ])) : r("", !0),
99
91
  e.value.customerInfo?.name ? (s(), o("div", T, [
100
- r[2] || (r[2] = t("span", { class: "text-gray-500 font-medium" }, "Customer", -1)),
101
- t("span", V, d(e.value.customerInfo.name), 1)
102
- ])) : c("", !0),
103
- e.value.status ? (s(), o("div", $, [
104
- r[3] || (r[3] = t("span", { class: "text-gray-500 font-medium" }, "Status", -1)),
105
- t("span", {
106
- class: n(["uppercase font-bold tracking-widest", u(k)(e.value.status)])
107
- }, d(e.value.status), 3)
108
- ])) : c("", !0)
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
- t("div", {
111
- class: n(["border-t border-dashed border-gray-300", a.compact ? "mx-3" : "mx-6"])
104
+ a("div", {
105
+ class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
112
106
  }, null, 2),
113
- t("div", {
114
- class: n(a.compact ? "px-3 py-2" : "px-6 py-4")
107
+ a("div", {
108
+ class: n(t.compact ? "px-4 py-2.5" : "px-5 py-3.5")
115
109
  }, [
116
- t("div", {
117
- class: n(["flex justify-between font-semibold text-gray-500 uppercase tracking-wider", a.compact ? "text-xs! mb-1.5" : "text-sm! mb-3"])
118
- }, [...r[4] || (r[4] = [
119
- t("span", null, "Item", -1),
120
- t("span", null, "Amount", -1)
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
- t("div", {
123
- class: n(a.compact ? "space-y-2" : "space-y-4")
116
+ a("div", {
117
+ class: n(t.compact ? "space-y-2.5" : "space-y-3.5")
124
118
  }, [
125
- (s(!0), o(y, null, p(e.value.items, (l, x) => (s(), o("div", {
126
- key: l.id || x
119
+ (s(!0), o(f, null, p(e.value.items, (d, x) => (s(), o("div", {
120
+ key: d.id || x
127
121
  }, [
128
- t("div", q, [
129
- l.thumbnail ? (s(), o("div", B, [
130
- t("img", {
131
- src: l.thumbnail,
132
- alt: l.name,
133
- class: "w-full h-full object-cover grayscale"
134
- }, null, 8, E)
135
- ])) : c("", !0),
136
- t("div", A, [
137
- t("div", F, [
138
- t("span", {
139
- class: "truncate pr-2 text-sm!",
140
- title: l.name
141
- }, d(l.name), 9, G),
142
- i(u(m), {
143
- value: l.total,
144
- class: "shrink-0 font-bold text-xs"
145
- }, null, 8, ["value"])
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
- l.sku ? (s(), o("div", {
145
+ d.sku ? (s(), o("div", {
148
146
  key: 0,
149
- class: "text-xs uppercase text-gray-400 font-normal tracking-tight truncate",
150
- title: l.sku
151
- }, " SKU: " + d(l.sku), 9, K)) : c("", !0),
152
- t("div", O, [
153
- t("span", null, d(l.quantity) + " x", 1),
154
- i(u(m), {
155
- value: l.price,
156
- class: "text-xs"
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
- l.size ? (s(), o("span", R, "| Size: " + d(l.size), 1)) : c("", !0),
159
- l.discount !== void 0 ? (s(), o("div", U, [
160
- r[5] || (r[5] = t("span", { class: "text-xs" }, "| Disc:", -1)),
161
- i(u(m), {
162
- value: -l.discount,
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
- l.discountLabel ? (s(), o("span", H, "(" + d(l.discountLabel) + ")", 1)) : c("", !0)
166
- ])) : c("", !0)
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
- t("div", {
174
- class: n(["border-t border-dashed border-gray-300", a.compact ? "mx-3" : "mx-6"])
170
+ a("div", {
171
+ class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
175
172
  }, null, 2),
176
- t("div", {
177
- class: n(a.compact ? "px-3 py-2 space-y-1" : "px-6 py-4 space-y-1")
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(y, null, p(e.value.totals, (l, x) => (s(), o("div", {
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
- l.isGrandTotal ? a.compact ? "mt-1 pt-1 border-t border-gray-200 text-base font-bold" : "mt-2 pt-2 border-t border-gray-200 text-lg font-bold" : (a.compact, "font-medium text-gray-600")
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
- t("span", J, d(l.label), 1),
187
- i(u(m), {
188
- value: l.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
- t("div", {
194
- class: n(["border-t border-dashed border-gray-300", a.compact ? "mx-3" : "mx-6"])
189
+ a("div", {
190
+ class: n(["border-t border-dashed border-border", t.compact ? "mx-3" : "mx-5"])
195
191
  }, null, 2),
196
- t("div", {
197
- class: n(a.compact ? "px-3 py-3 text-center space-y-3" : "px-6 py-6 text-center space-y-4")
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
- t("div", {
200
- class: n(["flex flex-col items-center justify-center", a.compact ? "gap-1" : "gap-2"])
201
- }, [
202
- e.value.qrcode ? (s(), o("div", M, [
203
- i(u(I), {
204
- text: e.value.qrcode,
205
- size: a.compact ? 64 : 96
206
- }, null, 8, ["text", "size"])
207
- ])) : c("", !0),
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: a.compact ? 28 : 40,
218
- width: a.compact ? 1 : 1.2
219
- }, null, 8, ["value", "height", "width"])
220
- ], 2)) : c("", !0)
221
- ], 2),
222
- e.value.notes ? (s(), o("div", P, d(e.value.notes), 1)) : c("", !0),
223
- e.value.footerText ? (s(), o("div", Q, d(e.value.footerText), 1)) : c("", !0)
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
- se as default
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;