@wisemen/wise-invoicing-web 0.18.0 → 0.19.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 (29) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-BZBuz6EF.js → ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js} +7 -7
  2. package/dist/{BillingDocumentDetailViewDataProvider-BCADHPFR.js → BillingDocumentDetailViewDataProvider-BZCFhsjA.js} +1526 -1506
  3. package/dist/{BillingDocumentPdf-ddBlGdIN.js → BillingDocumentPdf-DMTwOlzG.js} +76 -76
  4. package/dist/{DunningCaseSendDialog-fgL9OsV8.js → DunningCaseSendDialog-DfMYo2LV.js} +21 -21
  5. package/dist/{InvoiceApprovalOutOfSyncIndicator-BoPBNXx1.js → InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js} +1 -1
  6. package/dist/{InvoiceApprovalOverviewView-BIiJ6gen.js → InvoiceApprovalOverviewView-BH5rJgk6.js} +18 -18
  7. package/dist/{InvoicePdfView-BRJaAErd.js → InvoicePdfView-DRqX3P-X.js} +1 -1
  8. package/dist/{InvoicePublicProFormaPdfViewDataProvider-mZaggXYf.js → InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js} +2 -2
  9. package/dist/{InvoiceApproveDialogDataProvider-C9NhZX-D.js → InvoiceRejectDialog-_5i8eFuk.js} +175 -175
  10. package/dist/{invoiceDeliveryStatus.util-Dp9hD1Tj.js → InvoiceStatusBadge-BI41yxpr.js} +70 -70
  11. package/dist/{IssuerSettingsViewDataProvider-D13f6rvi.js → IssuerSettingsViewDataProvider-nNg0lR7Y.js} +198 -198
  12. package/dist/{PeppolSettingsViewDataProvider-DymLdaRM.js → PeppolSettingsViewDataProvider-CFelH70Q.js} +30 -30
  13. package/dist/{billingDocumentDetail.transformer-DcNMzl46.js → billingDocumentDetail.transformer-Ifa6tWtE.js} +11 -11
  14. package/dist/{creditNoteDetail.query-DiS_-xFz.js → creditNoteDetail.query-C4DvgGFR.js} +1 -1
  15. package/dist/{InvoiceDeliverySendDialog-BICcd6Cf.js → customFieldDefinitionIndex.query-BBqxMfvT.js} +214 -217
  16. package/dist/{dist-C99_-gWv.js → dist-47-1LAzT.js} +6 -6
  17. package/dist/index.d.ts +4 -0
  18. package/dist/index.js +5978 -3013
  19. package/dist/{invoice.service-2QiktTs9.js → invoice.service-v9uIoFgR.js} +111 -111
  20. package/dist/{invoiceCustomer.service-BNQJt1KV.js → invoiceCustomer.service-Bl4vN_U5.js} +1 -1
  21. package/dist/{invoiceDetail.query-MIrBYgNS.js → invoiceDetail.query-MElhxTMM.js} +1 -1
  22. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +2 -2
  23. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/dist/CreditNoteDetailViewDataProvider-Donn5pVv.js +0 -816
  26. package/dist/CreditNotePdfViewDataProvider-c-apCeCW.js +0 -22
  27. package/dist/InvoiceDetailViewDataProvider-BppXFT6D.js +0 -2176
  28. package/dist/InvoicePdfViewDataProvider-J7NP1Dhh.js +0 -22
  29. package/dist/download.util-LyRpGWKA.js +0 -25
@@ -1,12 +1,52 @@
1
1
  import "./api.util-sW4gNny-.js";
2
2
  import { b as e, j as t } from "./documentTitle.composable-Dl8Cm3v3.js";
3
3
  import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { a as r } from "./InvoiceDeliverySendDialog-BICcd6Cf.js";
4
+ import { c as r } from "./customFieldDefinitionIndex.query-BBqxMfvT.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";
8
- //#region src/modules/invoice/models/invoice/invoiceSettlementStatus.util.ts
8
+ //#region src/modules/invoice/models/invoice/invoiceDeliveryStatus.util.ts
9
9
  var v = {
10
+ [e.FAILED]: {
11
+ tone: "error",
12
+ translationKey: "wise_invoicing.invoice.delivery_status.failed"
13
+ },
14
+ [e.PROCESSING]: {
15
+ tone: "blue",
16
+ translationKey: "wise_invoicing.invoice.delivery_status.processing"
17
+ },
18
+ [e.SENT]: {
19
+ tone: "brand",
20
+ translationKey: "wise_invoicing.invoice.delivery_status.sent"
21
+ },
22
+ [e.UNSENT]: {
23
+ tone: "gray",
24
+ translationKey: "wise_invoicing.invoice.delivery_status.unsent"
25
+ },
26
+ [e.VIEWED]: {
27
+ tone: "success",
28
+ translationKey: "wise_invoicing.invoice.delivery_status.viewed"
29
+ }
30
+ }, y = class {
31
+ static getMetadata(e) {
32
+ return v[e];
33
+ }
34
+ static isSent(t) {
35
+ return [e.SENT, e.VIEWED].includes(t);
36
+ }
37
+ }, b = /* @__PURE__ */ l({
38
+ __name: "InvoiceDisputedBadge",
39
+ props: { size: { default: "sm" } },
40
+ setup(e) {
41
+ let t = e, n = i(), r = a(() => n.t("wise_invoicing.invoice.status.disputed"));
42
+ return (e, n) => (u(), o(d(p), {
43
+ label: r.value,
44
+ size: t.size,
45
+ color: "warning",
46
+ variant: "translucent"
47
+ }, null, 8, ["label", "size"]));
48
+ }
49
+ }), x = {
10
50
  [t.CREDITED]: {
11
51
  tone: "success",
12
52
  translationKey: "wise_invoicing.invoice.settlement_status.credited"
@@ -31,10 +71,10 @@ var v = {
31
71
  tone: "gray",
32
72
  translationKey: "wise_invoicing.invoice.settlement_status.unpaid"
33
73
  }
34
- }, y = {
74
+ }, S = {
35
75
  tone: "warning",
36
76
  translationKey: "wise_invoicing.invoice.settlement_status.awaiting_payment"
37
- }, b = /* @__PURE__ */ new Set([t.PARTIALLY_PAID, t.UNPAID]), x = class e {
77
+ }, C = /* @__PURE__ */ new Set([t.PARTIALLY_PAID, t.UNPAID]), w = class e {
38
78
  static getCreditedAmount(e) {
39
79
  if (e.totalCreditedAmount !== null) return e.totalCreditedAmount.amount > 0 ? e.totalCreditedAmount : null;
40
80
  if (e.balanceDueAmount == null) return null;
@@ -45,7 +85,7 @@ var v = {
45
85
  } : null;
46
86
  }
47
87
  static getMetadata(e, t) {
48
- return t && b.has(e) ? y : v[e];
88
+ return t && C.has(e) ? S : x[e];
49
89
  }
50
90
  static getSubtextParts(n) {
51
91
  let r = n.paidAmount, i = e.getCreditedAmount(n);
@@ -74,37 +114,7 @@ var v = {
74
114
  default: return null;
75
115
  }
76
116
  }
77
- }, S = /* @__PURE__ */ l({
78
- __name: "InvoiceDisputedBadge",
79
- props: { size: { default: "sm" } },
80
- setup(e) {
81
- let t = e, n = i(), r = a(() => n.t("wise_invoicing.invoice.status.disputed"));
82
- return (e, n) => (u(), o(d(p), {
83
- label: r.value,
84
- size: t.size,
85
- color: "warning",
86
- variant: "translucent"
87
- }, null, 8, ["label", "size"]));
88
- }
89
- }), C = /* @__PURE__ */ l({
90
- __name: "InvoiceStatusBadge",
91
- props: {
92
- lifecycleStatus: {},
93
- size: { default: "sm" }
94
- },
95
- setup(e) {
96
- let t = e, n = i(), s = a(() => r.getLifecycleMetadata(t.lifecycleStatus)), c = a(() => n.t(s.value.translationKey));
97
- return (e, n) => (u(), o(d(p), {
98
- label: c.value,
99
- color: s.value.tone,
100
- size: t.size
101
- }, null, 8, [
102
- "label",
103
- "color",
104
- "size"
105
- ]));
106
- }
107
- }), w = /* @__PURE__ */ l({
117
+ }, T = /* @__PURE__ */ l({
108
118
  __name: "InvoiceSettlementStatusBadge",
109
119
  props: {
110
120
  isSent: { type: Boolean },
@@ -120,8 +130,8 @@ var v = {
120
130
  totalCreditedAmount: {}
121
131
  },
122
132
  setup(e) {
123
- let r = e, l = i(), v = n(), y = a(() => r.isSent || r.settlementStatus !== t.UNPAID), b = a(() => x.getMetadata(r.settlementStatus, r.isSent)), S = a(() => l.t(b.value.translationKey)), C = a(() => {
124
- let e = x.getSubtextParts({
133
+ let r = e, l = i(), v = n(), y = a(() => r.isSent || r.settlementStatus !== t.UNPAID), b = a(() => w.getMetadata(r.settlementStatus, r.isSent)), x = a(() => l.t(b.value.translationKey)), S = a(() => {
134
+ let e = w.getSubtextParts({
125
135
  balanceDueAmount: r.balanceDueAmount,
126
136
  grossAmount: r.grossAmount,
127
137
  paidAmount: r.paidAmount,
@@ -135,19 +145,19 @@ var v = {
135
145
  creditedAmount: v.formatMonetary(e.creditedAmount),
136
146
  paidAmount: v.formatMonetary(e.paidAmount)
137
147
  }) : e.paidAmount === null ? e.creditedAmount === null ? null : l.t("wise_invoicing.invoice.status_subtext.credited", { creditedAmount: v.formatMonetary(e.creditedAmount) }) : l.t("wise_invoicing.invoice.status_subtext.paid", { paidAmount: v.formatMonetary(e.paidAmount) });
138
- }), w = a(() => r.showSubtext && C.value !== null), T = a(() => C.value ?? "");
148
+ }), C = a(() => r.showSubtext && S.value !== null), T = a(() => S.value ?? "");
139
149
  return (e, t) => y.value ? (u(), o(d(m), {
140
150
  key: 0,
141
151
  gap: "xs"
142
152
  }, {
143
- default: f(() => [w.value ? (u(), o(d(g), {
153
+ default: f(() => [C.value ? (u(), o(d(g), {
144
154
  key: 0,
145
155
  "popover-side-offset": 8,
146
156
  "popover-align": "center",
147
157
  "popover-side": "bottom"
148
158
  }, {
149
159
  trigger: f(() => [c(d(p), {
150
- label: S.value,
160
+ label: x.value,
151
161
  color: b.value.tone,
152
162
  size: r.size,
153
163
  variant: "translucent"
@@ -166,7 +176,7 @@ var v = {
166
176
  _: 1
167
177
  })) : (u(), o(d(p), {
168
178
  key: 1,
169
- label: S.value,
179
+ label: x.value,
170
180
  color: b.value.tone,
171
181
  size: r.size,
172
182
  variant: "translucent"
@@ -178,34 +188,24 @@ var v = {
178
188
  _: 1
179
189
  })) : s("", !0);
180
190
  }
181
- }), T = {
182
- [e.FAILED]: {
183
- tone: "error",
184
- translationKey: "wise_invoicing.invoice.delivery_status.failed"
185
- },
186
- [e.PROCESSING]: {
187
- tone: "blue",
188
- translationKey: "wise_invoicing.invoice.delivery_status.processing"
189
- },
190
- [e.SENT]: {
191
- tone: "brand",
192
- translationKey: "wise_invoicing.invoice.delivery_status.sent"
193
- },
194
- [e.UNSENT]: {
195
- tone: "gray",
196
- translationKey: "wise_invoicing.invoice.delivery_status.unsent"
191
+ }), E = /* @__PURE__ */ l({
192
+ __name: "InvoiceStatusBadge",
193
+ props: {
194
+ lifecycleStatus: {},
195
+ size: { default: "sm" }
197
196
  },
198
- [e.VIEWED]: {
199
- tone: "success",
200
- translationKey: "wise_invoicing.invoice.delivery_status.viewed"
201
- }
202
- }, E = class {
203
- static getMetadata(e) {
204
- return T[e];
205
- }
206
- static isSent(t) {
207
- return [e.SENT, e.VIEWED].includes(t);
197
+ setup(e) {
198
+ let t = e, n = i(), s = a(() => r.getLifecycleMetadata(t.lifecycleStatus)), c = a(() => n.t(s.value.translationKey));
199
+ return (e, n) => (u(), o(d(p), {
200
+ label: c.value,
201
+ color: s.value.tone,
202
+ size: t.size
203
+ }, null, 8, [
204
+ "label",
205
+ "color",
206
+ "size"
207
+ ]));
208
208
  }
209
- };
209
+ });
210
210
  //#endregion
211
- export { x as a, S as i, w as n, C as r, E as t };
211
+ export { y as a, b as i, T as n, w as r, E as t };