@wisemen/wise-invoicing-web 0.11.2 → 0.12.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.
Files changed (79) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-D0kpogSQ.js → ApprovalReminderSettingsViewDataProvider-BnHeEMZD.js} +6 -10
  2. package/dist/{BillingDocumentDetailViewDataProvider-D_oc3-0D.js → BillingDocumentDetailViewDataProvider-Dm8C5WNN.js} +1311 -1327
  3. package/dist/{BillingDocumentPdf-wlv-k8KE.js → BillingDocumentPdf-57ksqoPW.js} +16 -22
  4. package/dist/{CreditNoteDetailViewDataProvider-DoFm2xgo.js → CreditNoteDetailViewDataProvider-CC4gnwSN.js} +154 -172
  5. package/dist/{CreditNotePdfViewDataProvider-QpzNsVsK.js → CreditNotePdfViewDataProvider-C9vgN3kV.js} +4 -4
  6. package/dist/{CustomFieldValueText-DZzqLZ0K.js → CustomFieldValueText-CvWq0fl_.js} +3 -3
  7. package/dist/{DataProvider-C3uEds9v.js → DataProvider-BtnD-BzI.js} +1 -1
  8. package/dist/{DunningCaseSendDialog-Bol8NF1J.js → DunningCaseSendDialog-CfWSrquA.js} +6 -14
  9. package/dist/{InvoiceApprovalOutOfSyncIndicator-C4ZLDRiv.js → InvoiceApprovalOutOfSyncIndicator-CKLAraIU.js} +1 -1
  10. package/dist/{InvoiceApprovalOverviewView-BAmEOum7.js → InvoiceApprovalOverviewView-DpL-vV8_.js} +10 -18
  11. package/dist/{InvoiceApprovalStatusBadge-C2Wj9b_Z.js → InvoiceApprovalStatusBadge-oVWkCqZY.js} +3 -3
  12. package/dist/{InvoiceApproveDialogDataProvider-S81Mc5oS.js → InvoiceApproveDialogDataProvider-serNDdl9.js} +16 -32
  13. package/dist/{InvoiceDetailViewDataProvider-Dqu6qlky.js → InvoiceDetailViewDataProvider-BaT7fgsi.js} +591 -665
  14. package/dist/{InvoicePdfView-D0G-Pik3.js → InvoicePdfView-MaBnd78V.js} +2 -2
  15. package/dist/{InvoicePdfViewDataProvider-DXXbPe-Z.js → InvoicePdfViewDataProvider-BIHBY608.js} +4 -4
  16. package/dist/{InvoicePublicProFormaPdfViewDataProvider-CdGFZD-G.js → InvoicePublicProFormaPdfViewDataProvider-KY8pN59k.js} +4 -4
  17. package/dist/{InvoicingFileUploadProvider-BsK5eRGE.js → InvoicingFileUploadProvider-CxmF68sz.js} +2 -2
  18. package/dist/IssuerSettingsViewDataProvider-DJzVZS8Q.js +543 -0
  19. package/dist/{PeppolSettingsViewDataProvider-ZdJQGqux.js → PeppolSettingsViewDataProvider-C7lwtu7n.js} +6 -20
  20. package/dist/{api.util-B3JqQVJA.js → api.util-Ct8FnoLB.js} +628 -547
  21. package/dist/{billingDocumentDetail.transformer-CcnSe7Fz.js → billingDocumentDetail.transformer-B3ypgtIv.js} +4 -2
  22. package/dist/client/index.d.ts +1 -1
  23. package/dist/client/types.gen.d.ts +177 -7
  24. package/dist/client/zod.gen.d.ts +406 -6
  25. package/dist/composables/invoicingConfig.composable.d.ts +15 -0
  26. package/dist/{creditNoteDetail.query-BVbXoNt-.js → creditNoteDetail.query-C2BYvPKC.js} +5 -3
  27. package/dist/{dist-DALBiuub.js → dist-BZgvL8_m.js} +19 -30
  28. package/dist/{documentTitle.composable-RvqrZTBa.js → documentTitle.composable-BqZWKGw1.js} +35 -29
  29. package/dist/{i18n.lib-BkdaaKCs.js → i18n.lib-8sQYo5_y.js} +101 -7
  30. package/dist/index.d.ts +96 -2
  31. package/dist/index.js +4517 -228
  32. package/dist/{invoice.service-jakQLnDu.js → invoice.service-CtePUw1R.js} +8 -5
  33. package/dist/{invoiceApproval.service-DR9g1Dek.js → invoiceApproval.service-CQzG8_wX.js} +2 -2
  34. package/dist/{invoiceApprovalStatus.util-Nd4E3qlZ.js → invoiceApprovalStatus.util-C4su45dU.js} +2 -2
  35. package/dist/{invoiceCustomer.service-Bp59E0ZJ.js → invoiceCustomer.service-CzbM3ey1.js} +2 -2
  36. package/dist/{invoiceDetail.query-BBhA0ZAn.js → invoiceDetail.query-NNAoIuWN.js} +1 -1
  37. package/dist/{invoiceIndexCache.util-Ba2MGULh.js → invoiceIndexCache.util-DI0WM-eW.js} +4 -8
  38. package/dist/{invoicingConfig.composable-k8p1Y_eJ.js → invoicingConfig.composable-DXJ71Uq_.js} +20 -18
  39. package/dist/issuerSettings.query-ggEHdk0S.js +204 -0
  40. package/dist/libs/i18n.lib.d.ts +96 -2
  41. package/dist/locales/en-US.json.d.ts +50 -3
  42. package/dist/locales/nl-BE.json.d.ts +51 -4
  43. package/dist/models/billing-document/billingDocumentCreditable.util.d.ts +19 -0
  44. package/dist/models/billing-document/billingDocumentCreditable.util.spec.d.ts +1 -0
  45. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -0
  46. package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +2 -0
  47. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +4 -1
  48. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
  49. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +1 -1
  50. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.spec.d.ts +1 -0
  51. package/dist/modules/settings/api/mutations/issuerSettingsUpdate.mutation.d.ts +22 -1
  52. package/dist/modules/settings/models/issuer-settings/invoiceSequenceFormat.util.d.ts +16 -0
  53. package/dist/modules/settings/models/issuer-settings/invoiceSequenceFormat.util.spec.d.ts +1 -0
  54. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +7 -2
  55. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.d.ts +2 -0
  56. package/dist/modules/settings/models/issuer-settings/issuerSettingsForm.model.d.ts +23 -2
  57. package/dist/modules/settings/use-cases/overview/components/InvoiceSequenceFormatFields.vue.d.ts +11 -0
  58. package/dist/modules/settings/use-cases/overview/components/InvoiceSequenceNumberPreview.vue.d.ts +12 -0
  59. package/dist/modules/settings/use-cases/overview/components/InvoiceSequencePreviewCard.vue.d.ts +13 -0
  60. package/dist/modules/settings/use-cases/overview/components/SharedSequencePreviewCard.vue.d.ts +8 -0
  61. package/dist/modules/settings/use-cases/overview/composables/sequenceFormatFields.composable.d.ts +16 -0
  62. package/dist/{reminderConfig.query-BIfCEIYX.js → reminderConfig.query-C2xT3DJH.js} +2 -2
  63. package/dist/{src-DUSgQTKr.js → src-Vz2dm4sM.js} +1 -3
  64. package/dist/style.css +1 -1
  65. package/dist/types/apiError.type.d.ts +2 -2
  66. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +24 -0
  67. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +4 -0
  68. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +4 -0
  69. package/package.json +2 -2
  70. package/dist/DunningCaseDetailViewDataProvider-uRJFWZtQ.js +0 -439
  71. package/dist/DunningCaseOverviewView-DpQoXamE.js +0 -799
  72. package/dist/DunningCaseReminderPdfViewDataProvider-D-CfDeC8.js +0 -490
  73. package/dist/InvoiceOverviewViewDataProvider-WKzgF7cl.js +0 -1929
  74. package/dist/InvoicePublicPdfViewDataProvider-ndVoAAY3.js +0 -45
  75. package/dist/IssuerSettingsViewDataProvider-Ca7GPCDE.js +0 -193
  76. package/dist/ReminderSettingsViewDataProvider-DTC0Ud5z.js +0 -709
  77. package/dist/issuerSettings.query-BOgWdNmP.js +0 -118
  78. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  79. /package/dist/{DunningCaseReminderPdfViewDataProvider.css → index.css} +0 -0
@@ -1,45 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { n as t } from "./invoicingConfig.composable-k8p1Y_eJ.js";
3
- import { t as n } from "./invoice.service-jakQLnDu.js";
4
- import { t as r } from "./DataProvider-C3uEds9v.js";
5
- import { t as i } from "./InvoicePdfView-D0G-Pik3.js";
6
- import { useI18n as a } from "vue-i18n";
7
- import { computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, openBlock as f, resolveDynamicComponent as p, unref as m, watch as h, withCtx as g } from "vue";
8
- import { useQuery as _ } from "@wisemen/vue-core-api-utils";
9
- import { useRouter as v } from "vue-router";
10
- import { UIText as y } from "@wisemen/vue-core-design-system";
11
- import { useRouteQuery as b } from "@vueuse/router";
12
- //#region src/modules/invoice/api/queries/invoicePublicDetail.query.ts
13
- function x(e) {
14
- return _("invoicePublicDetail", {
15
- isEnabled: o(() => e.value !== null),
16
- params: { token: e },
17
- queryFn: () => {
18
- if (e.value === null) throw Error("Token is required to fetch invoice public detail");
19
- return n.getPublicDetail(e.value);
20
- }
21
- });
22
- }
23
- //#endregion
24
- //#region src/modules/invoice/use-cases/pdf/views/InvoicePublicPdfViewDataProvider.vue?vue&type=script&setup=true&lang.ts
25
- var S = { class: "flex min-h-screen items-center justify-center bg-secondary" }, C = {
26
- key: 1,
27
- class: "flex min-h-screen items-center justify-center bg-secondary"
28
- }, w = /*@__PURE__*/ d({
29
- __name: "InvoicePublicPdfViewDataProvider",
30
- setup(e) {
31
- let n = a(), d = t(), _ = o(() => d.invoicePdfComponent.value ?? i), w = v(), T = b("token", null), E = x(o(() => T.value));
32
- return h(o(() => T.value === null || E.result.value?.isErr() === !0), async (e) => {
33
- e && await w.replace({ name: "index" });
34
- }, { immediate: !0 }), (e, t) => m(T) === null ? (f(), c("div", C, [u(m(y), { text: m(n).t("wise_invoicing.common.loading") }, null, 8, ["text"])])) : (f(), s(r, {
35
- key: 0,
36
- queries: { invoice: m(E) }
37
- }, {
38
- default: g(({ data: e }) => [(f(), s(p(_.value), { invoice: e.invoice }, null, 8, ["invoice"]))]),
39
- loading: g(() => [l("div", S, [u(m(y), { text: m(n).t("wise_invoicing.common.loading") }, null, 8, ["text"])])]),
40
- _: 1
41
- }, 8, ["queries"]));
42
- }
43
- }), T = /* @__PURE__ */ e({ default: () => E }), E = w;
44
- //#endregion
45
- export { T as n, x as r, E as t };
@@ -1,193 +0,0 @@
1
- import "./api.util-B3JqQVJA.js";
2
- import { c as e, t } from "./documentTitle.composable-RvqrZTBa.js";
3
- import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { t as r } from "./addressForm.model-C853zEtX.js";
5
- import { t as i } from "./DataProvider-C3uEds9v.js";
6
- import { t as a } from "./formango.util-D5c2ql--.js";
7
- import { n as o, r as s, t as c } from "./issuerSettings.query-BOgWdNmP.js";
8
- import { t as l } from "./dashboard-BaWGNEek.js";
9
- import { z as u } from "zod";
10
- import { useI18n as d } from "vue-i18n";
11
- import { Teleport as f, computed as p, createBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, mergeProps as v, openBlock as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
12
- import { useMutation as C } from "@wisemen/vue-core-api-utils";
13
- import { useRouter as w } from "vue-router";
14
- import { UIAddressAutocomplete as T, UIButton as E, UIDashboardPage as D, UIDashboardPageContent as O, UIForm as k, UIFormFieldGrid as A, UIFormFieldGroup as j, UIFormFieldSet as M, UIFormLayout as N, UIFormSubmitButton as P, UINumberField as F, UIPhoneNumberField as I, UISelect as L, UISeparator as R, UITextField as z, createSelectOptions as B, useToast as V } from "@wisemen/vue-core-design-system";
15
- import { useForm as H } from "formango";
16
- //#region src/modules/settings/api/mutations/issuerSettingsUpdate.mutation.ts
17
- function U() {
18
- return C({
19
- queryFn: (e) => o.update(e.body),
20
- queryKeysToInvalidate: { issuerSettings: {} }
21
- });
22
- }
23
- //#endregion
24
- //#region src/modules/settings/models/issuer-settings/issuerSettingsForm.model.ts
25
- var W = u.object({
26
- name: u.string().min(1),
27
- address: r.nullable(),
28
- bankAccountNumber: u.string().min(1),
29
- bic: u.string(),
30
- currency: u.enum(e),
31
- defaultPaymentTermDays: u.number().min(1),
32
- email: u.email().min(1),
33
- phoneNumber: u.string().min(1),
34
- sequencePrefix: u.string().max(10),
35
- vatNumber: u.string().min(1),
36
- website: u.string()
37
- }), G = { class: "mx-auto w-full max-w-4xl" }, K = { class: "pr-md text-xs text-secondary" }, q = { class: "mx-auto w-full max-w-4xl" }, J = /* @__PURE__ */ _({
38
- __name: "IssuerSettingsForm",
39
- props: { issuerSettings: {} },
40
- setup(t) {
41
- let r = t, i = d(), o = V(), c = n(), l = U(), u = p(() => B(Object.values(e))), _ = H({
42
- initialState: p(() => s.toForm(r.issuerSettings)),
43
- schema: W,
44
- onSubmit: async (e) => {
45
- let t = await l.execute({ body: e });
46
- if (t.isErr()) {
47
- o.apiError(t.error);
48
- return;
49
- }
50
- o.show({ message: i.t("wise_invoicing.settings.saved") });
51
- },
52
- onSubmitError: () => {
53
- o.unableToSave();
54
- }
55
- }), C = _.register("name"), w = _.register("email"), E = _.register("phoneNumber"), D = _.register("website"), O = _.register("address"), J = _.register("vatNumber"), Y = _.register("bankAccountNumber"), X = _.register("bic"), Z = _.register("currency"), Q = _.register("defaultPaymentTermDays"), $ = _.register("sequencePrefix"), ee = p(() => {
56
- let e = $.modelValue.value?.trim(), t = String((/* @__PURE__ */ new Date()).getFullYear());
57
- return e == null || e === "" ? `${t}-0001` : `${e}-${t}-0001`;
58
- }), te = p(() => `${i.t("wise_invoicing.settings.preview.label")}: ${ee.value}`);
59
- function ne(e) {
60
- return `${e} (${c.getSymbol(e).symbol})`;
61
- }
62
- return (e, t) => (y(), m(x(k), {
63
- form: x(_),
64
- "prompt-on-unsaved-changes": !0
65
- }, {
66
- default: S(() => [(y(), m(f, {
67
- to: "#page-actions",
68
- defer: ""
69
- }, [g(x(P), {
70
- "is-disabled": !x(_).isDirty.value,
71
- label: x(i).t("wise_invoicing.common.save")
72
- }, null, 8, ["is-disabled", "label"])])), g(x(N), null, {
73
- default: S(() => [
74
- g(x(M), {
75
- title: x(i).t("wise_invoicing.settings.sections.issuer.title"),
76
- description: x(i).t("wise_invoicing.settings.sections.issuer.description")
77
- }, {
78
- default: S(() => [g(x(j), null, {
79
- default: S(() => [g(x(A), {
80
- lg: 2,
81
- sm: 1
82
- }, {
83
- default: S(() => [
84
- g(x(z), v({ "is-required": !0 }, x(a)(x(C)), { label: x(i).t("wise_invoicing.settings.fields.name.label") }), null, 16, ["label"]),
85
- g(x(z), v({ "is-required": !0 }, x(a)(x(w)), {
86
- label: x(i).t("wise_invoicing.settings.fields.email.label"),
87
- type: "email"
88
- }), null, 16, ["label"]),
89
- g(x(I), v(x(a)(x(E)), { label: x(i).t("wise_invoicing.settings.fields.phone_number.label") }), null, 16, ["label"]),
90
- g(x(z), v(x(a)(x(D)), { label: x(i).t("wise_invoicing.settings.fields.website.label") }), null, 16, ["label"]),
91
- g(x(T), v({ "is-required": !0 }, x(a)(x(O)), { label: x(i).t("wise_invoicing.settings.fields.address.label") }), null, 16, ["label"]),
92
- g(x(z), v(x(a)(x(J)), {
93
- "is-disabled": !0,
94
- label: x(i).t("wise_invoicing.settings.fields.vat_number.label")
95
- }), null, 16, ["label"]),
96
- g(x(z), v({ "is-required": !0 }, x(a)(x(Y)), { label: x(i).t("wise_invoicing.settings.fields.bank_account_number.label") }), null, 16, ["label"]),
97
- g(x(z), v(x(a)(x(X)), { label: x(i).t("wise_invoicing.settings.fields.bic.label") }), null, 16, ["label"])
98
- ]),
99
- _: 1
100
- })]),
101
- _: 1
102
- })]),
103
- _: 1
104
- }, 8, ["title", "description"]),
105
- h("div", G, [g(x(R))]),
106
- g(x(M), {
107
- title: x(i).t("wise_invoicing.settings.sections.payment.title"),
108
- description: x(i).t("wise_invoicing.settings.sections.payment.description")
109
- }, {
110
- default: S(() => [g(x(j), null, {
111
- default: S(() => [g(x(A), {
112
- lg: 2,
113
- sm: 1
114
- }, {
115
- default: S(() => [g(x(L), v(x(a)(x(Z)), {
116
- "display-fn": ne,
117
- items: u.value,
118
- label: x(i).t("wise_invoicing.settings.fields.currency.label")
119
- }), null, 16, ["items", "label"]), g(x(F), v(x(a)(x(Q)), {
120
- label: x(i).t("wise_invoicing.settings.fields.default_payment_term.label"),
121
- placeholder: x(i).t("wise_invoicing.settings.fields.default_payment_term.placeholder")
122
- }), {
123
- right: S(() => [h("span", K, b(x(i).t("wise_invoicing.settings.fields.default_payment_term.suffix")), 1)]),
124
- _: 1
125
- }, 16, ["label", "placeholder"])]),
126
- _: 1
127
- })]),
128
- _: 1
129
- })]),
130
- _: 1
131
- }, 8, ["title", "description"]),
132
- h("div", q, [g(x(R))]),
133
- g(x(M), {
134
- title: x(i).t("wise_invoicing.settings.sections.numbering.title"),
135
- description: x(i).t("wise_invoicing.settings.sections.numbering.description")
136
- }, {
137
- default: S(() => [g(x(j), null, {
138
- default: S(() => [g(x(A), {
139
- lg: 2,
140
- sm: 1
141
- }, {
142
- default: S(() => [g(x(z), v(x(a)(x($)), {
143
- label: x(i).t("wise_invoicing.settings.fields.invoice_number_format.label"),
144
- placeholder: x(i).t("wise_invoicing.settings.fields.sequence_prefix.placeholder"),
145
- hint: te.value
146
- }), null, 16, [
147
- "label",
148
- "placeholder",
149
- "hint"
150
- ])]),
151
- _: 1
152
- })]),
153
- _: 1
154
- })]),
155
- _: 1
156
- }, 8, ["title", "description"])
157
- ]),
158
- _: 1
159
- })]),
160
- _: 1
161
- }, 8, ["form"]));
162
- }
163
- }), Y = /* @__PURE__ */ _({
164
- __name: "IssuerSettingsView",
165
- props: { issuerSettings: {} },
166
- setup(e) {
167
- let n = e, r = d(), i = w();
168
- return t().set(() => r.t("wise_invoicing.settings.title")), (e, t) => (y(), m(x(D), { title: x(r).t("wise_invoicing.settings.title") }, {
169
- "page-actions-right": S(() => [g(x(E), {
170
- label: x(r).t("wise_invoicing.delivery.settings.title"),
171
- variant: "secondary",
172
- onClick: t[0] ||= (e) => x(i).push({ name: "invoicing-peppol-settings" })
173
- }, null, 8, ["label"]), t[1] ||= h("div", { id: "page-actions" }, null, -1)]),
174
- default: S(() => [g(x(O), null, {
175
- default: S(() => [g(J, { "issuer-settings": n.issuerSettings }, null, 8, ["issuer-settings"])]),
176
- _: 1
177
- })]),
178
- _: 1
179
- }, 8, ["title"]));
180
- }
181
- }), X = /* @__PURE__ */ _({
182
- __name: "IssuerSettingsViewDataProvider",
183
- setup(e) {
184
- let t = c();
185
- return (e, n) => (y(), m(i, { queries: { issuerSettings: x(t) } }, {
186
- default: S(({ data: e }) => [g(Y, { "issuer-settings": e.issuerSettings }, null, 8, ["issuer-settings"])]),
187
- loading: S(() => [g(x(l).PageLoadingState, { breadcrumbs: [] })]),
188
- _: 1
189
- }, 8, ["queries"]));
190
- }
191
- });
192
- //#endregion
193
- export { X as default };