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