@wisemen/wise-invoicing-web 1.0.0 → 1.1.0
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/{BillingDocumentDetailViewDataProvider-kFzqhrxW.js → BillingDocumentDetailViewDataProvider-BsMGrki9.js} +3 -3
- package/dist/{BillingDocumentPdf-Dp6HSypy.js → BillingDocumentPdf-DFKxdbZX.js} +1 -1
- package/dist/{DunningCaseSendDialog-1S6OD9wd.js → DunningCaseSendDialog-S1W7M38u.js} +1 -1
- package/dist/{InvoicePdfView-YbDJpTIA.js → InvoicePdfView-qHeP8BNd.js} +1 -1
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js → InvoicePublicProFormaPdfViewDataProvider-BZVlYijT.js} +2 -2
- package/dist/{InvoiceStatusBadge-Bo5PDjEy.js → InvoiceStatusBadge-CRfN5LpT.js} +1 -1
- package/dist/composables/invoicingConfig.composable.d.ts +3 -0
- package/dist/{customFieldDefinitionIndex.query-Co7hoMow.js → customFieldDefinitionIndex.query-BPNS8LMx.js} +1 -1
- package/dist/index.js +8 -8
- package/dist/{invoicingConfig.composable-DEF0lzNP.js → invoicingConfig.composable-D2bnX7HW.js} +18 -17
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "./api.util-lGbimoKL.js";
|
|
2
2
|
import { C as e, F as t, P as n, S as r, b as i, d as a, h as o, i as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, w as g, y as _ } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
3
3
|
import { n as v, r as y, t as b } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as x } from "./invoicingConfig.composable-
|
|
4
|
+
import { n as x } from "./invoicingConfig.composable-D2bnX7HW.js";
|
|
5
5
|
import { r as S, t as ee } from "./invoice.service-D9ubyWPb.js";
|
|
6
6
|
import { t as C } from "./dist-CwkVU5yS.js";
|
|
7
7
|
import { t as te } from "./percentage.util-Bl78kSSk.js";
|
|
8
8
|
import { $ as ne, A as re, B as w, C as T, Et as ie, F as ae, H as oe, O as se, Ot as ce, Q as le, S as ue, St as de, T as fe, Tt as pe, U as me, V as he, X as ge, Y as _e, Z as ve, _ as ye, at as be, b as xe, bt as Se, c as Ce, ct as we, et as Te, ft as Ee, g as De, gt as Oe, it as ke, j as Ae, k as je, kt as Me, lt as Ne, m as Pe, nt as Fe, o as Ie, p as Le, q as Re, r as ze, rt as Be, s as Ve, t as He, tt as Ue, ut as We, v as Ge, w as Ke, xt as qe, y as Je, yt as Ye } from "./dist-DmVrfBOT.js";
|
|
9
9
|
import { r as Xe } from "./dist-CyUNvdkD.js";
|
|
10
10
|
import { n as Ze, r as Qe, t as $e } from "./InvoicingFileUploadProvider-DVh22OUB.js";
|
|
11
|
-
import { i as et, r as tt, s as nt } from "./customFieldDefinitionIndex.query-
|
|
11
|
+
import { i as et, r as tt, s as nt } from "./customFieldDefinitionIndex.query-BPNS8LMx.js";
|
|
12
12
|
import { t as rt } from "./deliveryReason.util-ny1rA7Sm.js";
|
|
13
13
|
import { t as it } from "./formango.util-D5c2ql--.js";
|
|
14
14
|
import { t as at } from "./invoiceApprovalStatus.util-Bqq_bILG.js";
|
|
15
15
|
import { t as ot } from "./InvoiceApprovalStatusBadge-mbYHYU3x.js";
|
|
16
|
-
import { n as st, r as ct, t as lt } from "./BillingDocumentPdf-
|
|
16
|
+
import { n as st, r as ct, t as lt } from "./BillingDocumentPdf-DFKxdbZX.js";
|
|
17
17
|
import { t as ut } from "./DataProvider-BtnD-BzI.js";
|
|
18
18
|
import { t as dt } from "./dashboard-BaWGNEek.js";
|
|
19
19
|
import ft, { z as E } from "zod";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./api.util-lGbimoKL.js";
|
|
2
2
|
import { C as e, w as t } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
3
3
|
import { n, t as r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
4
|
+
import { n as i } from "./invoicingConfig.composable-D2bnX7HW.js";
|
|
5
5
|
import { n as a } from "./address.transformer-jGddczLV.js";
|
|
6
6
|
import { i as o } from "./billingDocumentDetail.transformer-C5-zjIhL.js";
|
|
7
7
|
import { wt as s } from "./dist-DmVrfBOT.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ct as e, lt as t, t as n } from "./api.util-lGbimoKL.js";
|
|
2
2
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
3
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
3
|
+
import { n as i } from "./invoicingConfig.composable-D2bnX7HW.js";
|
|
4
4
|
import { gt as a, h as o, kt as s } from "./dist-DmVrfBOT.js";
|
|
5
5
|
import { n as c, r as l, t as u } from "./reminderConfig.query-DHMHVOeX.js";
|
|
6
6
|
import { t as d } from "./customerUuid.model-ClN4Vi9n.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
2
|
-
import { t } from "./BillingDocumentPdf-
|
|
2
|
+
import { t } from "./BillingDocumentPdf-DFKxdbZX.js";
|
|
3
3
|
import { useI18n as n } from "vue-i18n";
|
|
4
4
|
import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s } from "vue";
|
|
5
5
|
//#region src/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./invoicingConfig.composable-
|
|
1
|
+
import { n as e } from "./invoicingConfig.composable-D2bnX7HW.js";
|
|
2
2
|
import { t } from "./invoice.service-D9ubyWPb.js";
|
|
3
3
|
import { t as n } from "./DataProvider-BtnD-BzI.js";
|
|
4
|
-
import { t as r } from "./InvoicePdfView-
|
|
4
|
+
import { t as r } from "./InvoicePdfView-qHeP8BNd.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, openBlock as d, resolveDynamicComponent as f, unref as p, watch as m, withCtx as h } from "vue";
|
|
7
7
|
import { useQuery as g } from "@wisemen/vue-core-api-utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./api.util-lGbimoKL.js";
|
|
2
2
|
import { M as e, x as t } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
3
3
|
import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { c as r } from "./customFieldDefinitionIndex.query-
|
|
4
|
+
import { c as r } from "./customFieldDefinitionIndex.query-BPNS8LMx.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createVNode as c, defineComponent as l, openBlock as u, unref as d, withCtx as f } from "vue";
|
|
7
7
|
import { UIBadge as p, UIColumnLayout as m, UIText as h, UITooltip as g, UITooltipContent as _ } from "@wisemen/vue-core-design-system";
|
|
@@ -17,6 +17,8 @@ export interface CustomFieldReference {
|
|
|
17
17
|
value: string;
|
|
18
18
|
}
|
|
19
19
|
export interface InvoicingConfig {
|
|
20
|
+
/** Hides the action that changes whether and how an invoice needs approval. */
|
|
21
|
+
isApprovalModeEditable?: boolean;
|
|
20
22
|
isDeliveryDateVisible?: boolean;
|
|
21
23
|
isGlobalDiscountEnabled?: boolean;
|
|
22
24
|
isLineDiscountEnabled?: boolean;
|
|
@@ -47,6 +49,7 @@ export interface InvoicingInitProps {
|
|
|
47
49
|
}
|
|
48
50
|
export declare function initInvoicingConfig(props: InvoicingInitProps): Promise<void>;
|
|
49
51
|
export declare function useInvoicingConfig(): {
|
|
52
|
+
isApprovalModeEditable: import('vue').ComputedRef<boolean>;
|
|
50
53
|
isDeliveryDateVisible: import('vue').ComputedRef<boolean>;
|
|
51
54
|
isGlobalDiscountEnabled: import('vue').ComputedRef<boolean>;
|
|
52
55
|
isInitialized: import('vue').ComputedRef<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B as e, P as t, V as n, c as r, ot as i, pt as a, t as o } from "./api.util-lGbimoKL.js";
|
|
2
2
|
import { C as s, S as c, d as l, p as u } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
3
3
|
import { r as d } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as f } from "./invoicingConfig.composable-
|
|
4
|
+
import { n as f } from "./invoicingConfig.composable-D2bnX7HW.js";
|
|
5
5
|
import { r as p } from "./dist-CyUNvdkD.js";
|
|
6
6
|
import { n as ee, t as te } from "./deliveryReason.util-ny1rA7Sm.js";
|
|
7
7
|
import { t as m } from "./formango.util-D5c2ql--.js";
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { n as e, r as t, t as n } from "./i18n.lib-B1H9r0km.js";
|
|
|
2
2
|
import { Ct as r, t as i, yt as a } from "./api.util-lGbimoKL.js";
|
|
3
3
|
import { C as o, E as s, I as c, M as l, N as u, O as d, S as f, _ as p, a as m, b as h, d as g, f as _, h as v, l as y, o as b, r as x, s as S, t as ee, u as te, w as ne, x as re } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
4
4
|
import { n as ie, r as C, t as ae } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
-
import { n as oe, t as se } from "./invoicingConfig.composable-
|
|
5
|
+
import { n as oe, t as se } from "./invoicingConfig.composable-D2bnX7HW.js";
|
|
6
6
|
import { t as ce } from "./search.composable-CU9OpyUB.js";
|
|
7
7
|
import { n as le, t as ue } from "./src-Vz2dm4sM.js";
|
|
8
8
|
import { a as de, c as fe, d as pe, f as me, i as he, n as ge, o as _e, s as ve, t as w } from "./invoice.service-D9ubyWPb.js";
|
|
@@ -12,23 +12,23 @@ import { n as xe, r as Se, t as Ce } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
|
12
12
|
import { n as we, t as Te } from "./percentage.util-Bl78kSSk.js";
|
|
13
13
|
import { n as Ee, r as De, t as Oe } from "./creditNoteDetail.query-CqJeWeRV.js";
|
|
14
14
|
import { $ as ke, B as Ae, C as je, Ct as Me, D as Ne, Dt as Pe, E as Fe, F as Ie, I as Le, J as Re, K as ze, L as Be, M as Ve, Q as He, R as Ue, Tt as We, W as Ge, X as Ke, _t as qe, at as Je, ct as Ye, d as Xe, ft as Ze, ht as Qe, i as $e, kt as E, l as et, mt as tt, ot as nt, pt as rt, q as it, t as at, tt as ot, u as st, ut as ct, v as lt, vt as ut, x as dt, z as ft } from "./dist-DmVrfBOT.js";
|
|
15
|
-
import { C as pt, D as mt, E as ht, O as gt, S as _t, T as vt, _ as yt, a as bt, b as xt, c as St, d as Ct, f as wt, g as Tt, h as Et, i as Dt, l as Ot, m as kt, n as At, o as jt, p as Mt, r as Nt, s as Pt, t as Ft, u as It, v as Lt, w as Rt, x as zt, y as Bt } from "./BillingDocumentDetailViewDataProvider-
|
|
15
|
+
import { C as pt, D as mt, E as ht, O as gt, S as _t, T as vt, _ as yt, a as bt, b as xt, c as St, d as Ct, f as wt, g as Tt, h as Et, i as Dt, l as Ot, m as kt, n as At, o as jt, p as Mt, r as Nt, s as Pt, t as Ft, u as It, v as Lt, w as Rt, x as zt, y as Bt } from "./BillingDocumentDetailViewDataProvider-BsMGrki9.js";
|
|
16
16
|
import { n as Vt, r as Ht, t as Ut } from "./dist-CyUNvdkD.js";
|
|
17
17
|
import { n as Wt, r as Gt, t as Kt } from "./InvoicingFileUploadProvider-DVh22OUB.js";
|
|
18
|
-
import { a as qt, c as Jt, i as Yt, n as Xt, o as Zt, r as Qt, t as $t } from "./customFieldDefinitionIndex.query-
|
|
18
|
+
import { a as qt, c as Jt, i as Yt, n as Xt, o as Zt, r as Qt, t as $t } from "./customFieldDefinitionIndex.query-BPNS8LMx.js";
|
|
19
19
|
import { t as D } from "./formango.util-D5c2ql--.js";
|
|
20
20
|
import { t as en } from "./invoiceApprovalStatus.util-Bqq_bILG.js";
|
|
21
21
|
import { n as tn, t as nn } from "./InvoiceApprovalStatusBadge-mbYHYU3x.js";
|
|
22
22
|
import { t as rn } from "./DataProvider-BtnD-BzI.js";
|
|
23
23
|
import { t as an } from "./dashboard-BaWGNEek.js";
|
|
24
|
-
import { t as on } from "./InvoicePdfView-
|
|
24
|
+
import { t as on } from "./InvoicePdfView-qHeP8BNd.js";
|
|
25
25
|
import { i as sn, n as cn, r as ln, t as un } from "./reminderConfig.query-DHMHVOeX.js";
|
|
26
|
-
import { a as dn, i as fn, n as pn, o as mn, r as hn, s as gn, t as _n } from "./DunningCaseSendDialog-
|
|
26
|
+
import { a as dn, i as fn, n as pn, o as mn, r as hn, s as gn, t as _n } from "./DunningCaseSendDialog-S1W7M38u.js";
|
|
27
27
|
import { n as vn, t as yn } from "./customerUuid.model-ClN4Vi9n.js";
|
|
28
28
|
import { a as bn, c as xn, d as Sn, f as Cn, i as wn, l as Tn, n as En, o as Dn, r as On, s as kn, t as An, u as jn } from "./dist-CrNFh-CR.js";
|
|
29
29
|
import { t as Mn } from "./ReminderTemplatesPanel-DxmfU2xK.js";
|
|
30
30
|
import { t as Nn } from "./invoiceDetail.query-BNL6MkvC.js";
|
|
31
|
-
import { a as Pn, i as Fn, n as In, r as Ln, t as Rn } from "./InvoiceStatusBadge-
|
|
31
|
+
import { a as Pn, i as Fn, n as In, r as Ln, t as Rn } from "./InvoiceStatusBadge-CRfN5LpT.js";
|
|
32
32
|
import { t as zn } from "./invoiceCustomer.service-D0AtVrLg.js";
|
|
33
33
|
import { t as Bn } from "./issuerSettings.query-Cu-I6OAg.js";
|
|
34
34
|
import { a as Vn, i as Hn, n as Un, r as Wn, t as Gn } from "./InvoiceRejectDialogDataProvider-yegAlkDB.js";
|
|
@@ -5260,7 +5260,7 @@ function Ku(e) {
|
|
|
5260
5260
|
})), _e = j(() => {
|
|
5261
5261
|
let e = ge.value;
|
|
5262
5262
|
return e === null || e === m.APPROVED ? null : e;
|
|
5263
|
-
}), ve = j(() => _e.value === null ? null : t.t("wise_invoicing.invoice.finalize.blocked_by_approval", { status: t.t(en.getMetadata(_e.value).translationKey) })), T = j(() => de.value.isEditable && e.value.approvalUuid === null), ye = j(() => de.value.isEditable && e.value.requiresPriorApproval && (ge.value !== m.APPROVED || e.value.hasChangesSinceApprovalSent)), be = j(() => ye.value && he("finalize") && !e.value.hasApprovalHistory), xe = j(() => de.value.isEditable || e.value.approvalMode === b.FINALIZED), Se = j(() => xe.value && e.value.approval !== null && en.canMarkAsApproved(e.value.approval.status)), Ce = j(() => xe.value && e.value.approvalUuid !== null && Wu.has(ge.value)), we = j(() => ge.value === m.APPROVED && e.value.hasChangesSinceApprovalSent), Te = j(() => xe.value && e.value.approval?.status === h.REQUESTED);
|
|
5263
|
+
}), ve = j(() => _e.value === null ? null : t.t("wise_invoicing.invoice.finalize.blocked_by_approval", { status: t.t(en.getMetadata(_e.value).translationKey) })), T = j(() => i.isApprovalModeEditable.value && de.value.isEditable && e.value.approvalUuid === null), ye = j(() => de.value.isEditable && e.value.requiresPriorApproval && (ge.value !== m.APPROVED || e.value.hasChangesSinceApprovalSent)), be = j(() => ye.value && he("finalize") && !e.value.hasApprovalHistory), xe = j(() => de.value.isEditable || e.value.approvalMode === b.FINALIZED), Se = j(() => xe.value && e.value.approval !== null && en.canMarkAsApproved(e.value.approval.status)), Ce = j(() => xe.value && e.value.approvalUuid !== null && Wu.has(ge.value)), we = j(() => ge.value === m.APPROVED && e.value.hasChangesSinceApprovalSent), Te = j(() => xe.value && e.value.approval?.status === h.REQUESTED);
|
|
5264
5264
|
async function Ee() {
|
|
5265
5265
|
e.value.approvalUuid !== null && await d.open({
|
|
5266
5266
|
approvalUuid: e.value.approvalUuid,
|
|
@@ -7832,7 +7832,7 @@ var Sf = mf([{
|
|
|
7832
7832
|
}, {
|
|
7833
7833
|
name: "invoicing-invoice-public-pro-forma-pdf-preview",
|
|
7834
7834
|
path: "/pro-forma-pdf",
|
|
7835
|
-
component: () => import("./InvoicePublicProFormaPdfViewDataProvider-
|
|
7835
|
+
component: () => import("./InvoicePublicProFormaPdfViewDataProvider-BZVlYijT.js")
|
|
7836
7836
|
}]);
|
|
7837
7837
|
//#endregion
|
|
7838
7838
|
//#region src/routes/invoicingPublicRoutes.composable.ts
|
package/dist/{invoicingConfig.composable-DEF0lzNP.js → invoicingConfig.composable-D2bnX7HW.js}
RENAMED
|
@@ -25,44 +25,45 @@ function f(e) {
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/composables/invoicingConfig.composable.ts
|
|
28
|
-
var p = i(!1), m = i(0), h = i(!0), g = i(!0), _ = i(!0), v = i(!0), y = a({});
|
|
29
|
-
function
|
|
28
|
+
var p = i(!1), m = i(0), h = i(!0), g = i(!0), _ = i(!0), v = i(!0), y = i(!0), b = a({});
|
|
29
|
+
function x(e) {
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function S(e) {
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
function
|
|
35
|
+
var C = i(x), w = i(S), T = a(null);
|
|
36
|
+
function E(t) {
|
|
37
37
|
return s(() => o(t.locale), (t) => {
|
|
38
38
|
e.global.locale.value = t;
|
|
39
39
|
}), f({
|
|
40
40
|
apiInvoicingBaseUrl: t.apiInvoicingBaseUrl,
|
|
41
41
|
getAccessToken: t.getAccessToken,
|
|
42
42
|
getLocale: () => o(t.locale)
|
|
43
|
-
}), m.value = t.config?.expandedGroupLevels ?? 0, h.value = t.config?.
|
|
43
|
+
}), m.value = t.config?.expandedGroupLevels ?? 0, h.value = t.config?.isApprovalModeEditable ?? !0, g.value = t.config?.isDeliveryDateVisible ?? !0, _.value = t.config?.isGlobalDiscountEnabled ?? !0, v.value = t.config?.isLineDiscountEnabled ?? !0, y.value = t.config?.isUnitVisible ?? !0, b.value = t.config?.invoiceOverviewTabs ?? {}, C.value = t.getCustomerDetailRoute ?? x, w.value = t.getCustomFieldReferenceRoute ?? S, T.value = t.invoicePdfComponent ?? null, p.value = !0, Promise.resolve();
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function D() {
|
|
46
46
|
let e = n();
|
|
47
47
|
function t(t) {
|
|
48
|
-
return
|
|
48
|
+
return E({
|
|
49
49
|
...t,
|
|
50
50
|
locale: e.locale
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
isApprovalModeEditable: r(() => h.value),
|
|
55
|
+
isDeliveryDateVisible: r(() => g.value),
|
|
56
|
+
isGlobalDiscountEnabled: r(() => _.value),
|
|
56
57
|
isInitialized: r(() => p.value),
|
|
57
|
-
isLineDiscountEnabled: r(() =>
|
|
58
|
-
isUnitVisible: r(() =>
|
|
58
|
+
isLineDiscountEnabled: r(() => v.value),
|
|
59
|
+
isUnitVisible: r(() => y.value),
|
|
59
60
|
expandedGroupLevels: r(() => m.value),
|
|
60
|
-
getCustomerDetailRoute: (e) =>
|
|
61
|
-
getCustomFieldReferenceRoute: (e) =>
|
|
61
|
+
getCustomerDetailRoute: (e) => C.value(e),
|
|
62
|
+
getCustomFieldReferenceRoute: (e) => w.value(e),
|
|
62
63
|
init: t,
|
|
63
|
-
invoiceOverviewTabs: r(() =>
|
|
64
|
-
invoicePdfComponent: r(() =>
|
|
64
|
+
invoiceOverviewTabs: r(() => b.value),
|
|
65
|
+
invoicePdfComponent: r(() => T.value)
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
//#endregion
|
|
68
|
-
export {
|
|
69
|
+
export { D as n, E as t };
|
package/package.json
CHANGED