@wisemen/wise-invoicing-web 0.0.0-alpha.1
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/dist/AddOpenBoundaryIcon-BEbt7idt.js +28 -0
- package/dist/AirlineIcon-CiRX64yU.js +31 -0
- package/dist/AirplaneIcon-ySlq4lyE.js +21 -0
- package/dist/AirportIcon-B84mgPeW.js +18 -0
- package/dist/AlertTriangleIcon-CBaygowk.js +24 -0
- package/dist/AllocationsIcon-BEq-KzFl.js +18 -0
- package/dist/ArrowNarrowRightIcon-CeV9G-PX.js +24 -0
- package/dist/AssetIcon-CgYKjgAv.js +18 -0
- package/dist/BarChartIcon-180sKdWD.js +24 -0
- package/dist/BellIcon-k_e3dHc9.js +23 -0
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -0
- package/dist/BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-CWKBYgXH.js +5161 -0
- package/dist/BuildingIcon-vsvoi83j.js +24 -0
- package/dist/ChargerIcon-Bp3Up7jS.js +18 -0
- package/dist/ChevronDownIcon-D9nXH3kA.js +24 -0
- package/dist/ChevronUpIcon-CkYZnNds.js +24 -0
- package/dist/ClockIcon-DltYwVJC.js +24 -0
- package/dist/ClockSnoozeIcon-x_plYT2B.js +24 -0
- package/dist/CopyIcon-DOqno1Gb.js +21 -0
- package/dist/CreditNoteDetailViewDataProvider-Dc_APzSS.js +873 -0
- package/dist/CreditNotePdfViewDataProvider-zdBDlMRD.js +36 -0
- package/dist/DownloadCloudIcon-CHztnC6f.js +24 -0
- package/dist/EditIcon-L73PCCiu.js +23 -0
- package/dist/EraserIcon-CRVRD-F9.js +24 -0
- package/dist/FileIcon-Fuwo_cD0.js +26 -0
- package/dist/FilterLinesIcon-CRaEthek.js +24 -0
- package/dist/GlobeIcon-UmFqS-_n.js +24 -0
- package/dist/HelpIcon-CyOF59jk.js +26 -0
- package/dist/HourGlassIcon-mbgmoOa_.js +24 -0
- package/dist/InfoCircleIcon-DdlwGcMV.js +24 -0
- package/dist/InvoiceDetailViewDataProvider-DeS1LPn1.js +1942 -0
- package/dist/InvoiceOverviewView-BELZjC4d.js +14297 -0
- package/dist/InvoicePdfViewDataProvider-CzzbJS9s.js +36 -0
- package/dist/InvoicePublicPdfViewDataProvider-B7fszuGq.js +4 -0
- package/dist/InvoiceSettlementStatusBadge.vue_vue_type_script_setup_true_lang-YngYVFcS.js +196 -0
- package/dist/IssuerSettingsViewDataProvider-CbKj-AK2.js +250 -0
- package/dist/KeyboardIcon-BYex7WoL.js +24 -0
- package/dist/LinkExternalIcon-QJt5WMfk.js +24 -0
- package/dist/LinkIcon-D9WPvO58.js +24 -0
- package/dist/MarkerIcon-Dacom7sa.js +31 -0
- package/dist/MobileBatteryIcon-i1TxVu66.js +18 -0
- package/dist/MonitorIcon-B6-by77x.js +24 -0
- package/dist/NotificationIcon-D5mgxQ3P.js +21 -0
- package/dist/ParkingIcon-DJzqSxFU.js +29 -0
- package/dist/PlanningIcon-Dj8UH1Cl.js +18 -0
- package/dist/PreferenceIcon-DrDfTl-0.js +24 -0
- package/dist/ReceiptCheckIcon-DfUkv_G6.js +24 -0
- package/dist/RefreshIcon-CykNw3qm.js +24 -0
- package/dist/RemoveOpenBoundaryIcon-8vTxISBg.js +31 -0
- package/dist/RewindIcon-K0KiISjE.js +24 -0
- package/dist/SettingsIcon-BA4bIP5a.js +28 -0
- package/dist/ShieldIcon-B6OfkWmr.js +21 -0
- package/dist/ShieldOffIcon-RppEweJ9.js +24 -0
- package/dist/SignOutIcon-C6x_Sv0W.js +23 -0
- package/dist/SlashCircleIcon-CbwLUV0p.js +24 -0
- package/dist/StandIcon-DW1SUHPC.js +24 -0
- package/dist/StarsIcon-I4S_hN5F.js +26 -0
- package/dist/StopwatchIcon-D8KogezG.js +24 -0
- package/dist/TargetIcon-DZL7Hi3v.js +24 -0
- package/dist/ThreeDotsIcon-CKO5p_ZD.js +32 -0
- package/dist/ToolIcon-Dbvw1D-H.js +24 -0
- package/dist/TrashIcon-02miWCrc.js +21 -0
- package/dist/TurnaroundIcon-Dee23oaX.js +30 -0
- package/dist/UploadCloudIcon-DhtpTfwc.js +24 -0
- package/dist/UserIcon-DbdAYeNN.js +24 -0
- package/dist/UsersIcon-CHaIEI5X.js +24 -0
- package/dist/VerifiedIcon-CTveuqDt.js +26 -0
- package/dist/WifiIcon-DHt-RpM2.js +24 -0
- package/dist/WifiOffIcon-D8xUKqLP.js +24 -0
- package/dist/ZapIcon-C95VuzXS.js +24 -0
- package/dist/ZoomInIcon-qDywyLfc.js +24 -0
- package/dist/ZoomOutIcon-KL3_B-6s.js +24 -0
- package/dist/_plugin-vue_export-helper-3S5xkc9H.js +453 -0
- package/dist/creditNoteDetail.query-JGvG5yYz.js +159 -0
- package/dist/formango.util-D66mMTWb.js +12 -0
- package/dist/index-Beg0OAsI.js +8082 -0
- package/dist/index-DCE3vzbe.js +7 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1608 -0
- package/dist/index.js +40 -0
- package/dist/invoiceDetail.query-C3Llz0nF.js +13 -0
- package/dist/issuerSettings.query-H83T7-h9.js +130 -0
- package/dist/style.css +1 -0
- package/dist/style.d.ts +1 -0
- package/package.json +103 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { J as u, w as m, az as g, aL as v, ao as d, aM as I, aN as l, a2 as p, a as S, aO as U, aP as f, aQ as W, aR as P, af as w, ag as D, u as R, b as T, aS as b, d as h, l as A, aT as C, aU as M, aV as N, aW as y, aX as x, aY as E, aZ as F, a_ as L } from "./index-Beg0OAsI.js";
|
|
2
|
+
import "zod";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "vue-i18n";
|
|
5
|
+
import "@tanstack/vue-query";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "@vueuse/core";
|
|
8
|
+
import "@tanstack/vue-virtual";
|
|
9
|
+
import { SortUtil as j } from "@wisemen/vue-core-api-utils";
|
|
10
|
+
export {
|
|
11
|
+
u as AddressUtil,
|
|
12
|
+
m as DownloadUtil,
|
|
13
|
+
g as MonetaryTransformer,
|
|
14
|
+
v as NumberUtil,
|
|
15
|
+
d as Percentage,
|
|
16
|
+
I as PercentageTransformer,
|
|
17
|
+
l as SortDirection,
|
|
18
|
+
j as SortUtil,
|
|
19
|
+
p as WiseInvoicingInvoicePublicPdfViewDataProvider,
|
|
20
|
+
S as addressFormSchema,
|
|
21
|
+
U as creditNoteUuidSchema,
|
|
22
|
+
f as initWiseInvoicingConfig,
|
|
23
|
+
W as invoiceUuidSchema,
|
|
24
|
+
P as onCreated,
|
|
25
|
+
w as toMajorUnits,
|
|
26
|
+
D as toMinorUnits,
|
|
27
|
+
R as useCurrencyFormat,
|
|
28
|
+
T as useDocumentTitle,
|
|
29
|
+
b as useInvoiceNavigateToDetailAction,
|
|
30
|
+
h as useSearch,
|
|
31
|
+
A as useSort,
|
|
32
|
+
C as useWiseInvoicingApiError,
|
|
33
|
+
M as useWiseInvoicingConfig,
|
|
34
|
+
N as useWiseInvoicingPublicRoutes,
|
|
35
|
+
y as useWiseInvoicingRoutes,
|
|
36
|
+
x as useWiseInvoicingStandaloneRoutes,
|
|
37
|
+
E as wiseInvoicingApiErrorI18nKeys,
|
|
38
|
+
F as wiseInvoicingLocales,
|
|
39
|
+
L as wiseInvoicingSettingsRoutes
|
|
40
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useQuery as r } from "@wisemen/vue-core-api-utils";
|
|
2
|
+
import { I as u } from "./index-Beg0OAsI.js";
|
|
3
|
+
function t(e) {
|
|
4
|
+
return r("invoiceDetail", {
|
|
5
|
+
params: {
|
|
6
|
+
invoiceUuid: e
|
|
7
|
+
},
|
|
8
|
+
queryFn: () => u.getByUuid(e.value)
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
t as u
|
|
13
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { useQuery as l } from "@wisemen/vue-core-api-utils";
|
|
2
|
+
import { W as c, Y as b, Z as t, A as n, $ as o, a0 as m } from "./index-Beg0OAsI.js";
|
|
3
|
+
import "zod";
|
|
4
|
+
class s {
|
|
5
|
+
static fromDto(e) {
|
|
6
|
+
return {
|
|
7
|
+
bus: e.unit ?? "",
|
|
8
|
+
city: e.city ?? "",
|
|
9
|
+
coordinates: {
|
|
10
|
+
lat: e.coordinates?.latitude ?? null,
|
|
11
|
+
lng: e.coordinates?.longitude ?? null
|
|
12
|
+
},
|
|
13
|
+
country: e.country ?? "",
|
|
14
|
+
postalCode: e.postalCode ?? "",
|
|
15
|
+
street: e.streetName ?? "",
|
|
16
|
+
streetNumber: e.streetNumber ?? ""
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
static fromNullableDto(e) {
|
|
20
|
+
return e === null ? null : s.fromDto(e);
|
|
21
|
+
}
|
|
22
|
+
static toDto(e) {
|
|
23
|
+
return {
|
|
24
|
+
placeId: null,
|
|
25
|
+
city: r(e.city),
|
|
26
|
+
coordinates: e.coordinates.lat == null || e.coordinates.lng == null ? null : {
|
|
27
|
+
latitude: e.coordinates.lat,
|
|
28
|
+
longitude: e.coordinates.lng
|
|
29
|
+
},
|
|
30
|
+
country: r(e.country),
|
|
31
|
+
countryCode: null,
|
|
32
|
+
placeName: null,
|
|
33
|
+
postalCode: r(e.postalCode),
|
|
34
|
+
streetName: r(e.street),
|
|
35
|
+
streetNumber: r(e.streetNumber),
|
|
36
|
+
unit: r(e.bus)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static toNullableDto(e) {
|
|
40
|
+
return e === null ? null : s.toDto(e);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function r(u) {
|
|
44
|
+
const e = u.trim();
|
|
45
|
+
return e === "" ? null : e;
|
|
46
|
+
}
|
|
47
|
+
class i {
|
|
48
|
+
static fromDto(e) {
|
|
49
|
+
return {
|
|
50
|
+
name: e.name,
|
|
51
|
+
address: c.fromNullableDto(e.address),
|
|
52
|
+
bankAccountNumber: e.bankAccountNumber,
|
|
53
|
+
bic: e.bic,
|
|
54
|
+
currency: e.currency,
|
|
55
|
+
defaultPaymentTermDays: e.defaultPaymentTerm.value,
|
|
56
|
+
email: e.email,
|
|
57
|
+
phoneNumber: e.phoneNumber,
|
|
58
|
+
sequencePrefix: e.sequencePrefix,
|
|
59
|
+
vatNumber: e.vatNumber,
|
|
60
|
+
website: e.website
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static toDto(e) {
|
|
64
|
+
return {
|
|
65
|
+
name: t.trimOrNull(e.name),
|
|
66
|
+
address: s.toNullableDto(e.address),
|
|
67
|
+
bankAccountNumber: t.trimOrNull(e.bankAccountNumber),
|
|
68
|
+
bic: t.trimOrNull(e.bic),
|
|
69
|
+
currency: e.currency,
|
|
70
|
+
defaultPaymentTerm: {
|
|
71
|
+
unit: b.DAYS,
|
|
72
|
+
value: Number(e.defaultPaymentTermDays)
|
|
73
|
+
},
|
|
74
|
+
email: t.trimOrNull(e.email),
|
|
75
|
+
phoneNumber: t.trimOrNull(e.phoneNumber),
|
|
76
|
+
sequencePrefix: t.trimOrNull(e.sequencePrefix),
|
|
77
|
+
vatNumber: t.trimOrNull(e.vatNumber),
|
|
78
|
+
website: t.trimOrNull(e.website)
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
static toForm(e) {
|
|
82
|
+
return {
|
|
83
|
+
name: e.name ?? "",
|
|
84
|
+
address: e.address === null ? null : {
|
|
85
|
+
bus: e.address.bus ?? "",
|
|
86
|
+
city: e.address.city ?? "",
|
|
87
|
+
coordinates: {
|
|
88
|
+
lat: e.address.coordinates.lat,
|
|
89
|
+
lng: e.address.coordinates.lng
|
|
90
|
+
},
|
|
91
|
+
country: e.address.country ?? "",
|
|
92
|
+
postalCode: e.address.postalCode ?? "",
|
|
93
|
+
street: e.address.street ?? "",
|
|
94
|
+
streetNumber: e.address.streetNumber ?? ""
|
|
95
|
+
},
|
|
96
|
+
bankAccountNumber: e.bankAccountNumber ?? "",
|
|
97
|
+
bic: e.bic ?? "",
|
|
98
|
+
currency: e.currency,
|
|
99
|
+
defaultPaymentTermDays: e.defaultPaymentTermDays,
|
|
100
|
+
email: e.email ?? "",
|
|
101
|
+
phoneNumber: e.phoneNumber ?? "",
|
|
102
|
+
sequencePrefix: e.sequencePrefix ?? "",
|
|
103
|
+
vatNumber: e.vatNumber ?? "",
|
|
104
|
+
website: e.website ?? ""
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
class N {
|
|
109
|
+
static async get() {
|
|
110
|
+
return (await n.fromPromise(o({
|
|
111
|
+
responseValidator: void 0
|
|
112
|
+
}))).map((a) => i.fromDto(a.data));
|
|
113
|
+
}
|
|
114
|
+
static async update(e) {
|
|
115
|
+
const a = await n.fromPromise(m({
|
|
116
|
+
body: i.toDto(e)
|
|
117
|
+
}));
|
|
118
|
+
return n.void(a);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function D() {
|
|
122
|
+
return l("issuerSettings", {
|
|
123
|
+
queryFn: () => N.get()
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
N as I,
|
|
128
|
+
i as a,
|
|
129
|
+
D as u
|
|
130
|
+
};
|