@wisemen/wise-invoicing-web 0.0.4 → 0.0.6

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 (91) hide show
  1. package/dist/{BillingDocumentDetailViewDataProvider-pePmiXWb.js → BillingDocumentDetailViewDataProvider-BGE-p_FL.js} +953 -863
  2. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  3. package/dist/{BillingDocumentPdf-Dg5JlQE1.js → BillingDocumentPdf-Ca81NkZq.js} +4 -4
  4. package/dist/{CreditNoteDetailViewDataProvider-C-A0jyVr.js → CreditNoteDetailViewDataProvider-b5dY_4mH.js} +181 -181
  5. package/dist/{CreditNotePdfViewDataProvider-DNUvFVDj.js → CreditNotePdfViewDataProvider-C2QqCdQ7.js} +3 -3
  6. package/dist/{CustomFieldValueText-DDQq-975.js → CustomFieldValueText-ne5yy02J.js} +2 -2
  7. package/dist/DataProvider-Dj34ljUX.js +75 -0
  8. package/dist/{DunningCaseDetailViewDataProvider-0WV-7-vg.js → DunningCaseDetailViewDataProvider-jsh-LlGx.js} +68 -59
  9. package/dist/DunningCaseOverviewView-WbXalMt6.js +747 -0
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js → DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js} +1 -1
  11. package/dist/DunningCaseSendDialog-D7jAZ8yT.js +349 -0
  12. package/dist/{InvoiceDetailViewDataProvider-BDL9lAWe.js → InvoiceDetailViewDataProvider-BAVdcJay.js} +589 -498
  13. package/dist/{InvoiceOverviewViewDataProvider-B_jrcC_8.js → InvoiceOverviewViewDataProvider-BT9cuQXw.js} +546 -482
  14. package/dist/{InvoicePdfView-Bygb-9z6.js → InvoicePdfView-BpIaYdZX.js} +2 -2
  15. package/dist/{InvoicePdfViewDataProvider-nBk3XNrE.js → InvoicePdfViewDataProvider-DGCnmNE-.js} +3 -3
  16. package/dist/{InvoicePublicPdfViewDataProvider-DHJP_-7-.js → InvoicePublicPdfViewDataProvider-KV0_hKUI.js} +3 -3
  17. package/dist/{IssuerSettingsViewDataProvider-Dk_Q6w6f.js → IssuerSettingsViewDataProvider-Bs4rEES2.js} +4 -4
  18. package/dist/ReminderSettingsViewDataProvider-D4bRLLXx.js +711 -0
  19. package/dist/{api.util-Dm_TQedZ.js → api.util-BCSgCfpS.js} +528 -509
  20. package/dist/{billingDocumentDetail.transformer-zMTbka5p.js → billingDocumentDetail.transformer-DIKAl4_L.js} +58 -89
  21. package/dist/client/index.d.ts +1 -1
  22. package/dist/client/types.gen.d.ts +28 -5
  23. package/dist/client/zod.gen.d.ts +869 -623
  24. package/dist/{creditNoteDetail.query-BZqgZRSu.js → creditNoteDetail.query-DHP69UiB.js} +13 -13
  25. package/dist/{dist-DP8KNFVD.js → dist-D9lp7NDv.js} +20 -36
  26. package/dist/{dist-DJ8yJcb9.js → dist-PErDVE6-.js} +621 -671
  27. package/dist/{documentTitle.composable-CeaFddr1.js → documentTitle.composable-4ApFl9TZ.js} +10 -8
  28. package/dist/{i18n.lib-DUbAMBRb.js → i18n.lib-BGcQ_OBF.js} +50 -2
  29. package/dist/index.d.ts +51 -2
  30. package/dist/index.js +78 -78
  31. package/dist/{invoice.service-ChHEtXBA.js → invoice.service-DG5eacZC.js} +46 -46
  32. package/dist/{invoiceDeliveryStatus.util-BsA-MlA3.js → invoiceDeliveryStatus.util-CX-IdqAu.js} +28 -28
  33. package/dist/{invoiceDetail.query-O_CGvdwg.js → invoiceDetail.query-C_IMGjOX.js} +1 -1
  34. package/dist/{invoicingConfig.composable-c6w_aMm1.js → invoicingConfig.composable-Kad_HHx_.js} +2 -2
  35. package/dist/{issuerSettings.query-RqtrZFaB.js → issuerSettings.query-6wnSPphB.js} +2 -2
  36. package/dist/libs/i18n.lib.d.ts +50 -2
  37. package/dist/locales/en-US.json.d.ts +25 -1
  38. package/dist/locales/nl-BE.json.d.ts +25 -1
  39. package/dist/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.d.ts +9 -3
  40. package/dist/modules/dunning-case/actions/dunningCase.actions.d.ts +12 -0
  41. package/dist/modules/dunning-case/actions/dunningCaseNavigateToCustomer.action.d.ts +1 -0
  42. package/dist/modules/dunning-case/actions/dunningCaseNavigateToDetail.action.d.ts +1 -0
  43. package/dist/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.d.ts +2 -0
  44. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +12 -3
  45. package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +3 -1
  46. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +13 -0
  47. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewCustomerCell.vue.d.ts +7 -0
  48. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewDaysOverdueCell.vue.d.ts +7 -0
  49. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewLastReminderCell.vue.d.ts +7 -0
  50. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewLevelCell.vue.d.ts +7 -0
  51. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewMetrics.vue.d.ts +8 -0
  52. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewOutstandingCell.vue.d.ts +7 -0
  53. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewReminderCell.vue.d.ts +7 -0
  54. package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewActionsCell.spec.d.ts +1 -0
  55. package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewLastReminderCell.spec.d.ts +1 -0
  56. package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewReminderCell.spec.d.ts +1 -0
  57. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +24 -0
  58. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +8 -0
  59. package/dist/modules/dunning-case/use-cases/send/dialogs/dunningCaseBulkSendDialog.spec.d.ts +1 -0
  60. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +3 -1
  61. package/dist/modules/dunning-case/use-cases/settings/components/reminderLadderFeeNotice.spec.d.ts +1 -0
  62. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +3 -1
  63. package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +4 -4
  64. package/dist/modules/invoice/api/queries/invoiceUserSearch.query.d.ts +3 -0
  65. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +8 -0
  66. package/dist/modules/invoice/api/services/invoiceUser.service.d.ts +6 -0
  67. package/dist/modules/invoice/components/form/InvoiceFormPreparedByField.vue.d.ts +16 -0
  68. package/dist/modules/invoice/models/invoice/update/invoicePreparer.model.d.ts +4 -0
  69. package/dist/modules/invoice/models/invoice/update/invoicePreparer.transformer.d.ts +5 -0
  70. package/dist/modules/invoice/models/invoice/update/invoiceUserSearchQueryParams.model.d.ts +3 -0
  71. package/dist/modules/invoice/models/invoice/update/invoiceUserSearchQueryParams.transformer.d.ts +6 -0
  72. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
  73. package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Dfe5r84P.js} +32 -1
  74. package/dist/{reminderConfig.query-DzTN2AvU.js → reminderConfig.query-hmDNKreg.js} +105 -91
  75. package/dist/search.composable-BCtYqudV.js +52 -0
  76. package/dist/style.css +1 -1
  77. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +6 -6
  78. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +1 -1
  79. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +2 -2
  80. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.spec.d.ts +1 -0
  81. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +3 -1
  82. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +2 -0
  83. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +1 -0
  84. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +19 -0
  85. package/dist/ui/data-provider/DataProviderErrorState.vue.d.ts +7 -0
  86. package/dist/ui/data-provider/dataProviderErrorState.spec.d.ts +1 -0
  87. package/package.json +6 -1
  88. package/dist/DataProvider-CfHLB3rH.js +0 -48
  89. package/dist/DunningCaseOverviewView-CHdzfbhb.js +0 -553
  90. package/dist/DunningCaseSendDialog-DBtwr2ue.js +0 -350
  91. package/dist/ReminderSettingsViewDataProvider-CDBjfU7R.js +0 -668
package/dist/index.js CHANGED
@@ -1,25 +1,25 @@
1
- import { n as e, r as t } from "./i18n.lib-DUbAMBRb.js";
2
- import "./api.util-Dm_TQedZ.js";
3
- import { C as n, b as r, h as i, m as a, t as o } from "./documentTitle.composable-CeaFddr1.js";
1
+ import { n as e, r as t } from "./i18n.lib-BGcQ_OBF.js";
2
+ import "./api.util-BCSgCfpS.js";
3
+ import { g as n, h as r, t as i, w as a, x as o } from "./documentTitle.composable-4ApFl9TZ.js";
4
4
  import { n as s, r as c, t as l } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
- import { a as u, i as d, l as f, n as ee, o as te, p, r as m, s as ne, t as h } from "./dist-DJ8yJcb9.js";
6
- import { t as g } from "./src-BFgnUugN.js";
7
- import { r as re, t as _ } from "./InvoiceOverviewViewDataProvider-B_jrcC_8.js";
8
- import { t as v } from "./download.util-PjaUQR6r.js";
9
- import { n as y } from "./plainDate.transformer-BxvJpJOv.js";
10
- import { o as b, s as x } from "./billingDocumentDetail.transformer-zMTbka5p.js";
11
- import { n as S, t as C } from "./invoicingConfig.composable-c6w_aMm1.js";
12
- import { r as ie } from "./address.transformer-B8C0pwT1.js";
13
- import { t as ae } from "./addressForm.model-C853zEtX.js";
14
- import { r as w, t as oe } from "./DunningCaseOverviewView-CHdzfbhb.js";
15
- import { C as T, R as se, T as E } from "./dist-DP8KNFVD.js";
16
- import { o as ce } from "./DunningCaseSendDialog-DBtwr2ue.js";
17
- import { n as le } from "./dist-YTXTCfo1.js";
18
- import { i as D } from "./CustomFieldValueText-DDQq-975.js";
19
- import { t as ue } from "./DunningCaseDetailViewDataProvider-0WV-7-vg.js";
20
- import { t as de } from "./DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js";
21
- import { t as fe } from "./ReminderSettingsViewDataProvider-CDBjfU7R.js";
22
- import { t as pe } from "./InvoicePublicPdfViewDataProvider-DHJP_-7-.js";
5
+ import { t as u } from "./search.composable-BCtYqudV.js";
6
+ import { t as d } from "./src-BFgnUugN.js";
7
+ import { r as ee, t as f } from "./InvoiceOverviewViewDataProvider-BT9cuQXw.js";
8
+ import { t as p } from "./download.util-PjaUQR6r.js";
9
+ import { i as m, n as h, r as g } from "./plainDate.transformer-Dfe5r84P.js";
10
+ import { n as _, t as v } from "./invoicingConfig.composable-Kad_HHx_.js";
11
+ import { r as y } from "./address.transformer-B8C0pwT1.js";
12
+ import { t as b } from "./addressForm.model-C853zEtX.js";
13
+ import { r as x, t as S } from "./DunningCaseOverviewView-WbXalMt6.js";
14
+ import { C, L as te, T as w } from "./dist-D9lp7NDv.js";
15
+ import { o as ne } from "./DunningCaseSendDialog-D7jAZ8yT.js";
16
+ import { n as re } from "./dist-YTXTCfo1.js";
17
+ import { a as ie, i as ae, l as T, n as oe, o as se, r as ce, s as le, t as E } from "./dist-PErDVE6-.js";
18
+ import { i as D } from "./CustomFieldValueText-ne5yy02J.js";
19
+ import { t as ue } from "./DunningCaseDetailViewDataProvider-jsh-LlGx.js";
20
+ import { t as de } from "./DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js";
21
+ import { t as fe } from "./ReminderSettingsViewDataProvider-D4bRLLXx.js";
22
+ import { t as pe } from "./InvoicePublicPdfViewDataProvider-KV0_hKUI.js";
23
23
  import { createAction as me } from "@wisemen/vue-core-actions";
24
24
  import { RouterLink as O, useRouter as he } from "vue-router";
25
25
  import { z as k } from "zod";
@@ -166,13 +166,13 @@ function ke() {
166
166
  return t.subject ?? t.sequence ?? t.uuid;
167
167
  },
168
168
  execute: (t) => {
169
- let n = t.targetedModelOfTypeOrThrow("Invoice");
170
- n.type === i.STANDARD ? e.push({
169
+ let r = t.targetedModelOfTypeOrThrow("Invoice");
170
+ r.type === n.STANDARD ? e.push({
171
171
  name: "invoicing-invoice-detail",
172
- params: { invoiceUuid: n.uuid }
172
+ params: { invoiceUuid: r.uuid }
173
173
  }) : e.push({
174
174
  name: "invoicing-credit-note-detail",
175
- params: { creditNoteUuid: n.uuid }
175
+ params: { creditNoteUuid: r.uuid }
176
176
  });
177
177
  }
178
178
  });
@@ -215,24 +215,24 @@ var Fe = J([{
215
215
  children: [{
216
216
  name: "dunning-case-overview",
217
217
  path: "",
218
- component: () => import("./DunningCaseOverviewView-CHdzfbhb.js").then((e) => e.n),
218
+ component: () => import("./DunningCaseOverviewView-WbXalMt6.js").then((e) => e.n),
219
219
  meta: { permission: "dunning-case.read" }
220
220
  }, {
221
221
  name: "dunning-case-detail",
222
222
  props: !0,
223
223
  path: ":dunningCaseUuid",
224
- component: () => import("./DunningCaseDetailViewDataProvider-0WV-7-vg.js").then((e) => e.n),
224
+ component: () => import("./DunningCaseDetailViewDataProvider-jsh-LlGx.js").then((e) => e.n),
225
225
  meta: { permission: "dunning-case.read" }
226
226
  }]
227
227
  }]), Y = J([{
228
228
  name: "dunning-case-settings-module",
229
229
  path: "payment-reminders",
230
- component: () => import("./ReminderSettingsViewDataProvider-CDBjfU7R.js").then((e) => e.n),
230
+ component: () => import("./ReminderSettingsViewDataProvider-D4bRLLXx.js").then((e) => e.n),
231
231
  meta: { permission: "reminder-config.read" }
232
232
  }]), Ie = J([{
233
233
  name: "dunning-case-reminder-pdf",
234
234
  path: "/dunning-case-reminder-pdf",
235
- component: () => import("./DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js").then((e) => e.n)
235
+ component: () => import("./DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js").then((e) => e.n)
236
236
  }]), Le = [{
237
237
  name: "invoicing-settings-module",
238
238
  path: "invoicing",
@@ -240,7 +240,7 @@ var Fe = J([{
240
240
  children: [{
241
241
  name: "invoicing-settings-overview",
242
242
  path: "",
243
- component: () => import("./IssuerSettingsViewDataProvider-Dk_Q6w6f.js"),
243
+ component: () => import("./IssuerSettingsViewDataProvider-Bs4rEES2.js"),
244
244
  meta: { permission: "issuer.read" }
245
245
  }]
246
246
  }, ...Y], X = {
@@ -257,7 +257,7 @@ function ze(e) {
257
257
  return ye("dunningCaseCustomerByExternalId", {
258
258
  isEnabled: M(() => e.value !== null),
259
259
  params: { externalId: e },
260
- queryFn: () => ce.getUuidByExternalId(e.value ?? "")
260
+ queryFn: () => ne.getUuidByExternalId(e.value ?? "")
261
261
  });
262
262
  }
263
263
  //#endregion
@@ -272,13 +272,13 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
272
272
  externalId: {}
273
273
  },
274
274
  setup(e) {
275
- let t = e, n = A(), r = c(), i = ze(M(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = M(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = w({
275
+ let t = e, n = A(), r = c(), i = ze(M(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = M(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = x({
276
276
  isEnabled: M(() => a.value !== void 0),
277
277
  params: {
278
278
  customerUuid: a,
279
279
  isOpen: M(() => !0)
280
280
  }
281
- }), s = w({
281
+ }), s = x({
282
282
  isEnabled: M(() => a.value !== void 0),
283
283
  params: {
284
284
  customerUuid: a,
@@ -296,14 +296,14 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
296
296
  class: "mb-md flex w-fit max-w-full items-center gap-lg rounded-lg border border-secondary bg-primary p-lg shadow-sm hover:bg-secondary sm:max-w-2xl"
297
297
  }, {
298
298
  default: U(() => [
299
- I("span", He, [L(H(T), { class: "size-(--spacing-xl)" })]),
299
+ I("span", He, [L(H(C), { class: "size-(--spacing-xl)" })]),
300
300
  I("span", Ue, [I("span", We, [I("span", Ge, V(H(n).t("module.dunning_case.customer.open_case")), 1), L(H(W), {
301
301
  label: e.level === 0 ? H(n).t("module.dunning_case.level.none") : H(n).t("module.dunning_case.level.reminder", { level: e.level }),
302
302
  color: "brand",
303
303
  size: "sm",
304
304
  variant: "translucent"
305
305
  }, null, 8, ["label"])]), I("span", Ke, V(H(n).t("module.dunning_case.customer.outstanding", { amount: H(r).formatMonetary(e.outstandingBalance) })), 1)]),
306
- L(H(E), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
306
+ L(H(w), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
307
307
  ]),
308
308
  _: 2
309
309
  }, 1032, ["to"]))), 128)),
@@ -316,9 +316,9 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
316
316
  class: "flex items-center justify-between gap-lg border-b border-secondary px-lg py-md text-sm last:border-b-0 hover:bg-secondary"
317
317
  }, {
318
318
  default: U(() => [
319
- I("span", Xe, [L(H(T), { class: "size-(--spacing-xl)" })]),
319
+ I("span", Xe, [L(H(C), { class: "size-(--spacing-xl)" })]),
320
320
  I("span", Ze, [I("span", Qe, V(H(n).t("module.dunning_case.customer.closed_case")), 1), I("span", $e, V(H(r).formatMonetary(e.outstandingBalance)), 1)]),
321
- L(H(E), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
321
+ L(H(w), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
322
322
  ]),
323
323
  _: 2
324
324
  }, 1032, ["to"]))), 128))])])) : P("", !0)
@@ -366,7 +366,7 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
366
366
  }
367
367
  }), $ = class {
368
368
  static getStatusBadgeColor(e) {
369
- return e === a.OVERDUE || e === a.PROTESTED ? "error" : "gray";
369
+ return e === r.OVERDUE || e === r.PROTESTED ? "error" : "gray";
370
370
  }
371
371
  static getVatAmount(e) {
372
372
  return {
@@ -378,14 +378,14 @@ var Be = { key: 0 }, Ve = { class: "mb-md text-sm font-semibold text-primary" },
378
378
  //#endregion
379
379
  //#region src/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.ts
380
380
  function nt() {
381
- let e = A(), t = le(), r = c();
382
- function a(e) {
381
+ let e = A(), t = re(), r = c();
382
+ function i(e) {
383
383
  return e === null ? null : t.formatPlainDate(e);
384
384
  }
385
385
  return M(() => Te()([
386
386
  {
387
387
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
388
- key: n.SEQUENCE,
388
+ key: a.SEQUENCE,
389
389
  size: {
390
390
  max: "9.625rem",
391
391
  min: "9.625rem"
@@ -406,12 +406,12 @@ function nt() {
406
406
  },
407
407
  {
408
408
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
409
- key: n.ISSUED_ON,
409
+ key: a.ISSUED_ON,
410
410
  size: {
411
411
  max: "8.125rem",
412
412
  min: "8.125rem"
413
413
  },
414
- component: (e) => q(Q, { text: a(e.issuedOn) })
414
+ component: (e) => q(Q, { text: i(e.issuedOn) })
415
415
  },
416
416
  {
417
417
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.due_date"),
@@ -420,7 +420,7 @@ function nt() {
420
420
  max: "7.125rem",
421
421
  min: "7.125rem"
422
422
  },
423
- component: (e) => q(Q, { text: a(e.dueOn) })
423
+ component: (e) => q(Q, { text: i(e.dueOn) })
424
424
  },
425
425
  {
426
426
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.type"),
@@ -431,12 +431,12 @@ function nt() {
431
431
  },
432
432
  component: (t) => q(Z, {
433
433
  color: "gray",
434
- label: e.t(t.type === i.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
434
+ label: e.t(t.type === n.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
435
435
  })
436
436
  },
437
437
  {
438
438
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
439
- key: n.NET_AMOUNT,
439
+ key: a.NET_AMOUNT,
440
440
  size: {
441
441
  max: "8.25rem",
442
442
  min: "8.25rem"
@@ -475,23 +475,23 @@ function nt() {
475
475
  //#endregion
476
476
  //#region src/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.ts
477
477
  function rt() {
478
- let e = A(), t = d({
478
+ let e = A(), t = ae({
479
479
  actionGroup: { name: "customer-invoices" },
480
480
  filters: [
481
- u({
481
+ ie({
482
482
  defaultValue: {
483
- operator: m.INCLUDES,
483
+ operator: ce.INCLUDES,
484
484
  value: []
485
485
  },
486
486
  disableOperators: !0,
487
487
  displayFn: (t) => e.t(D.getMetadata(t).translationKey),
488
488
  key: "statuses",
489
489
  label: e.t("wise_invoicing.customer_invoice_list.filters.status"),
490
- options: () => Object.values(a)
490
+ options: () => Object.values(r)
491
491
  }),
492
- f({
492
+ T({
493
493
  defaultValue: {
494
- operator: h.IS_BETWEEN,
494
+ operator: E.IS_BETWEEN,
495
495
  value: {
496
496
  from: null,
497
497
  until: null
@@ -501,9 +501,9 @@ function rt() {
501
501
  key: "issuedOnRange",
502
502
  label: e.t("wise_invoicing.invoice.overview.filters.issued_on")
503
503
  }),
504
- f({
504
+ T({
505
505
  defaultValue: {
506
- operator: h.IS_BETWEEN,
506
+ operator: E.IS_BETWEEN,
507
507
  value: {
508
508
  from: null,
509
509
  until: null
@@ -566,30 +566,30 @@ var it = { class: "duration-500 starting:opacity-0 starting:blur-md" }, at = { c
566
566
  __name: "CustomerInvoiceTable",
567
567
  props: { externalId: {} },
568
568
  setup(e) {
569
- let t = e, r = A(), a = nt(), o = p({ debounceMs: 300 }), { issuedOnRange: s, dueOnRange: c, filters: l, statuses: u } = rt();
570
- ee(l);
571
- let d = Ee({
569
+ let t = e, r = A(), i = nt(), o = u({ debounceMs: 300 }), { issuedOnRange: s, dueOnRange: c, filters: l, statuses: d } = rt();
570
+ oe(l);
571
+ let f = Ee({
572
572
  initialValues: [{
573
573
  direction: "desc",
574
- key: n.ISSUED_ON
574
+ key: a.ISSUED_ON
575
575
  }],
576
576
  keys: [
577
- n.SEQUENCE,
578
- n.ISSUED_ON,
579
- n.NET_AMOUNT
577
+ a.SEQUENCE,
578
+ a.ISSUED_ON,
579
+ a.NET_AMOUNT
580
580
  ]
581
- }), { isFetching: f, isFetchingNextPage: m, isLoading: h, fetchNextPage: g, result: _ } = re({ params: {
581
+ }), { isFetching: p, isFetchingNextPage: m, isLoading: h, fetchNextPage: g, result: _ } = ee({ params: {
582
582
  filters: M(() => ({
583
583
  issuedOnRange: s.value,
584
584
  customerExternalIds: [t.externalId],
585
585
  dueOnRange: c.value,
586
- statuses: u.value
586
+ statuses: d.value
587
587
  })),
588
588
  search: o.debouncedSearch,
589
- sort: d.values
590
- } }), v = M(() => _.value.isOk() ? _.value.getValue().data : []), y = M(() => _.value.isErr() ? _.value.getError() : null), b = M(() => l.activeFilters.value.length), x = M(() => (o.debouncedSearch.value?.trim().length ?? 0) > 0), S = M(() => !h.value && !f.value && y.value === null && v.value.length === 0 && o.search.value === "" && b.value === 0);
589
+ sort: f.values
590
+ } }), v = M(() => _.value.isOk() ? _.value.getValue().data : []), y = M(() => _.value.isErr() ? _.value.getError() : null), b = M(() => l.activeFilters.value.length), x = M(() => (o.debouncedSearch.value?.trim().length ?? 0) > 0), S = M(() => !h.value && !p.value && y.value === null && v.value.length === 0 && o.search.value === "" && b.value === 0);
591
591
  function C(e) {
592
- return e.type === i.CREDIT_NOTE ? {
592
+ return e.type === n.CREDIT_NOTE ? {
593
593
  name: "invoicing-credit-note-detail",
594
594
  params: { creditNoteUuid: e.uuid }
595
595
  } : {
@@ -605,12 +605,12 @@ var it = { class: "duration-500 starting:opacity-0 starting:blur-md" }, at = { c
605
605
  justify: "between",
606
606
  class: "p-md"
607
607
  }, {
608
- default: U(() => [L(H(te)), L(H(G), { justify: "end" }, {
608
+ default: U(() => [L(H(se)), L(H(G), { justify: "end" }, {
609
609
  default: U(() => [L(H(we), {
610
610
  modelValue: H(o).search.value,
611
611
  "onUpdate:modelValue": t[0] ||= (e) => H(o).search.value = e,
612
612
  label: null,
613
- "icon-left": H(se),
613
+ "icon-left": H(te),
614
614
  placeholder: H(r).t("wise_invoicing.common.search"),
615
615
  size: "sm",
616
616
  type: "search"
@@ -618,14 +618,14 @@ var it = { class: "duration-500 starting:opacity-0 starting:blur-md" }, at = { c
618
618
  "modelValue",
619
619
  "icon-left",
620
620
  "placeholder"
621
- ]), L(H(ne))]),
621
+ ]), L(H(le))]),
622
622
  _: 1
623
623
  })]),
624
624
  _: 1
625
625
  }), I("div", lt, [L(H(xe), {
626
- columns: H(a),
626
+ columns: H(i),
627
627
  data: v.value,
628
- sort: H(d),
628
+ sort: H(f),
629
629
  "is-loading": H(h),
630
630
  "is-fetching-next-page": H(m),
631
631
  error: y.value,
@@ -670,13 +670,13 @@ function ft(e) {
670
670
  children: [{
671
671
  name: "invoicing-invoice-overview",
672
672
  path: "",
673
- component: e ?? (() => import("./InvoiceOverviewViewDataProvider-B_jrcC_8.js").then((e) => e.n)),
673
+ component: e ?? (() => import("./InvoiceOverviewViewDataProvider-BT9cuQXw.js").then((e) => e.n)),
674
674
  meta: { permission: "invoice.read" }
675
675
  }, {
676
676
  name: "invoicing-invoice-detail",
677
677
  props: !0,
678
678
  path: ":invoiceUuid",
679
- component: () => import("./InvoiceDetailViewDataProvider-BDL9lAWe.js"),
679
+ component: () => import("./InvoiceDetailViewDataProvider-BAVdcJay.js"),
680
680
  meta: { permission: "invoice.read" }
681
681
  }]
682
682
  }]);
@@ -685,12 +685,12 @@ var pt = J([{
685
685
  name: "invoicing-invoice-pdf-preview",
686
686
  props: !0,
687
687
  path: "/invoicing/invoices/:invoiceUuid/pdf",
688
- component: () => import("./InvoicePdfViewDataProvider-nBk3XNrE.js"),
688
+ component: () => import("./InvoicePdfViewDataProvider-DGCnmNE-.js"),
689
689
  meta: { permission: "invoice.read" }
690
690
  }]), mt = J([{
691
691
  name: "invoicing-invoice-public-pdf-preview",
692
692
  path: "/pdf",
693
- component: () => import("./InvoicePublicPdfViewDataProvider-DHJP_-7-.js").then((e) => e.n)
693
+ component: () => import("./InvoicePublicPdfViewDataProvider-KV0_hKUI.js").then((e) => e.n)
694
694
  }]);
695
695
  //#endregion
696
696
  //#region src/routes/invoicingPublicRoutes.composable.ts
@@ -707,14 +707,14 @@ var gt = [{
707
707
  name: "invoicing-credit-note-detail",
708
708
  props: !0,
709
709
  path: ":creditNoteUuid",
710
- component: () => import("./CreditNoteDetailViewDataProvider-C-A0jyVr.js"),
710
+ component: () => import("./CreditNoteDetailViewDataProvider-b5dY_4mH.js"),
711
711
  meta: { permission: "invoice.read" }
712
712
  }]
713
713
  }], _t = [{
714
714
  name: "invoicing-credit-note-pdf-preview",
715
715
  props: !0,
716
716
  path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
717
- component: () => import("./CreditNotePdfViewDataProvider-DNUvFVDj.js"),
717
+ component: () => import("./CreditNotePdfViewDataProvider-C2QqCdQ7.js"),
718
718
  meta: { permission: "invoice.read" }
719
719
  }];
720
720
  //#endregion
@@ -747,4 +747,4 @@ var bt = {
747
747
  }
748
748
  };
749
749
  //#endregion
750
- export { ie as AddressUtil, v as DownloadUtil, y as MonetaryTransformer, Me as NumberUtil, b as Percentage, x as PercentageTransformer, r as SortDirection, ve as SortUtil, et as WiseInvoicingCustomerDunningCasesSection, dt as WiseInvoicingCustomerInvoiceList, ue as WiseInvoicingDunningCaseDetailView, oe as WiseInvoicingDunningCaseOverviewView, de as WiseInvoicingDunningCaseReminderPdfView, _ as WiseInvoicingInvoiceOverviewView, pe as WiseInvoicingInvoicePublicPdfViewDataProvider, fe as WiseInvoicingReminderSettingsView, ae as addressFormSchema, Ne as creditNoteUuidSchema, C as initWiseInvoicingConfig, Pe as invoiceUuidSchema, Ae as onCreated, l as toMajorUnits, s as toMinorUnits, c as useCurrencyFormat, o as useDocumentTitle, ke as useInvoiceNavigateToDetailAction, p as useSearch, g as useSort, Re as useWiseInvoicingApiError, S as useWiseInvoicingConfig, w as useWiseInvoicingDunningCaseIndexQuery, ht as useWiseInvoicingPublicRoutes, je as useWiseInvoicingQueryInvalidation, vt as useWiseInvoicingRoutes, yt as useWiseInvoicingStandaloneRoutes, X as wiseInvoicingApiErrorI18nKeys, bt as wiseInvoicingLocales, Le as wiseInvoicingSettingsRoutes };
750
+ export { y as AddressUtil, p as DownloadUtil, m as MonetaryTransformer, Me as NumberUtil, h as Percentage, g as PercentageTransformer, o as SortDirection, ve as SortUtil, et as WiseInvoicingCustomerDunningCasesSection, dt as WiseInvoicingCustomerInvoiceList, ue as WiseInvoicingDunningCaseDetailView, S as WiseInvoicingDunningCaseOverviewView, de as WiseInvoicingDunningCaseReminderPdfView, f as WiseInvoicingInvoiceOverviewView, pe as WiseInvoicingInvoicePublicPdfViewDataProvider, fe as WiseInvoicingReminderSettingsView, b as addressFormSchema, Ne as creditNoteUuidSchema, v as initWiseInvoicingConfig, Pe as invoiceUuidSchema, Ae as onCreated, l as toMajorUnits, s as toMinorUnits, c as useCurrencyFormat, i as useDocumentTitle, ke as useInvoiceNavigateToDetailAction, u as useSearch, d as useSort, Re as useWiseInvoicingApiError, _ as useWiseInvoicingConfig, x as useWiseInvoicingDunningCaseIndexQuery, ht as useWiseInvoicingPublicRoutes, je as useWiseInvoicingQueryInvalidation, vt as useWiseInvoicingRoutes, yt as useWiseInvoicingStandaloneRoutes, X as wiseInvoicingApiErrorI18nKeys, bt as wiseInvoicingLocales, Le as wiseInvoicingSettingsRoutes };
@@ -1,10 +1,10 @@
1
- import { A as e, C as t, D as n, F as r, H as ee, M as te, S as ne, T as i, U as a, W as o, Y as s, _ as c, b as l, c as u, d, f, h as p, i as m, j as re, n as ie, o as ae, p as oe, q as se, r as ce, t as h, u as le, v as ue, x as de, y as fe } from "./api.util-Dm_TQedZ.js";
2
- import { C as g, d as _, h as pe, l as me, r as he } from "./documentTitle.composable-CeaFddr1.js";
1
+ import { A as e, C as t, D as n, F as r, H as ee, M as te, S as ne, T as i, U as a, W as o, X as s, _ as c, b as l, c as u, d, f, h as p, i as m, j as re, n as ie, o as ae, p as oe, q as se, r as ce, t as h, u as le, v as ue, x as de, y as fe } from "./api.util-BCSgCfpS.js";
2
+ import { f as g, g as pe, l as me, r as he, w as _ } from "./documentTitle.composable-4ApFl9TZ.js";
3
3
  import { n as ge } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
4
  import { r as v } from "./src-BFgnUugN.js";
5
- import { n as y, t as b } from "./plainDate.transformer-BxvJpJOv.js";
6
- import { a as x, i as S, n as C, o as w, r as T, s as E, t as D } from "./billingDocumentDetail.transformer-zMTbka5p.js";
7
- import { n as O, t as k } from "./address.transformer-B8C0pwT1.js";
5
+ import { i as y, n as b, r as x, t as S } from "./plainDate.transformer-Dfe5r84P.js";
6
+ import { n as C, t as w } from "./address.transformer-B8C0pwT1.js";
7
+ import { a as T, i as E, n as D, r as O, t as k } from "./billingDocumentDetail.transformer-DIKAl4_L.js";
8
8
  import A from "zod";
9
9
  import { ref as j } from "vue";
10
10
  import { SortUtil as M } from "@wisemen/vue-core-api-utils";
@@ -37,20 +37,20 @@ var P = class e {
37
37
  }
38
38
  }, I = class {
39
39
  static fromDto(e) {
40
- return D.fromViewInvoiceDetailDto(e, e.uuid, pe.STANDARD);
40
+ return k.fromViewInvoiceDetailDto(e, e.uuid, pe.STANDARD);
41
41
  }
42
42
  }, L = class {
43
43
  static fromDto(e) {
44
44
  return {
45
45
  uuid: e.uuid,
46
- createdAt: x.fromDto(e.createdAt),
47
- dueOn: b.fromNullableDto(e.dueOn),
48
- issuedOn: b.fromNullableDto(e.issuedOn),
46
+ createdAt: T.fromDto(e.createdAt),
47
+ dueOn: S.fromNullableDto(e.dueOn),
48
+ issuedOn: S.fromNullableDto(e.issuedOn),
49
49
  isDisputed: e.isDisputed,
50
50
  isOverdue: e.isOverdue,
51
51
  balanceDueAmount: y.fromNullableDto(e.balanceDueAmount),
52
52
  customerName: e.customer.name,
53
- customFields: e.customFields.map(C.fromDto),
53
+ customFields: e.customFields.map(D.fromDto),
54
54
  deliveryStatus: e.deliveryStatus,
55
55
  grossAmount: y.fromDto(e.grossAmount),
56
56
  lifecycleStatus: e.lifecycleStatus,
@@ -73,8 +73,8 @@ var P = class e {
73
73
  }, _e = class {
74
74
  static toDateRangeDto(e) {
75
75
  if (e != null && e.from !== null && e.until !== null) return {
76
- startDate: b.toDto(e.from),
77
- endDate: b.toDto(e.until)
76
+ startDate: S.toDto(e.from),
77
+ endDate: S.toDto(e.until)
78
78
  };
79
79
  }
80
80
  static toDto(e) {
@@ -84,11 +84,11 @@ var P = class e {
84
84
  pagination: e.pagination,
85
85
  search: R.toDto(e.search),
86
86
  sort: M.toDto(e.sort, {
87
- created_at: g.CREATED_AT,
88
- issued_on: g.ISSUED_ON,
89
- customer: g.CUSTOMER,
90
- netAmount: g.NET_AMOUNT,
91
- sequence: g.SEQUENCE
87
+ created_at: _.CREATED_AT,
88
+ issued_on: _.ISSUED_ON,
89
+ customer: _.CUSTOMER,
90
+ netAmount: _.NET_AMOUNT,
91
+ sequence: _.SEQUENCE
92
92
  })
93
93
  };
94
94
  }
@@ -293,7 +293,7 @@ var ye = class {
293
293
  function Se(e) {
294
294
  return {
295
295
  uuid: e.uuid,
296
- createdAt: x.fromDto(e.createdAt),
296
+ createdAt: T.fromDto(e.createdAt),
297
297
  sequence: e.sequence,
298
298
  status: e.status
299
299
  };
@@ -304,7 +304,7 @@ function Y(e) {
304
304
  isDiscount: e.isDiscount,
305
305
  name: e.name,
306
306
  description: e.description,
307
- discount: T.fromDto(e.discount),
307
+ discount: O.fromDto(e.discount),
308
308
  grossAmount: y.fromDto(e.grossAmount),
309
309
  netAmount: y.fromDto(e.netAmount),
310
310
  position: e.position,
@@ -312,7 +312,7 @@ function Y(e) {
312
312
  unit: e.unit,
313
313
  unitPrice: y.fromDto(e.unitPrice),
314
314
  vatRate: e.vatRate,
315
- vatRatePercentage: E.fromDto(e.vatRatePercentage)
315
+ vatRatePercentage: x.fromDto(e.vatRatePercentage)
316
316
  };
317
317
  }
318
318
  function Ce(e) {
@@ -330,15 +330,15 @@ function X(e) {
330
330
  var we = class {
331
331
  static fromPublicDto(e) {
332
332
  return {
333
- createdAt: x.fromDto(e.createdAt),
334
- deliveredOn: b.fromNullableDto(e.deliveredOn),
335
- dueOn: b.fromNullableDto(e.dueOn),
336
- issueOn: b.fromNullableDto(e.issueOn),
337
- updatedAt: x.fromDto(e.updatedAt),
333
+ createdAt: T.fromDto(e.createdAt),
334
+ deliveredOn: S.fromNullableDto(e.deliveredOn),
335
+ dueOn: S.fromNullableDto(e.dueOn),
336
+ issueOn: S.fromNullableDto(e.issueOn),
337
+ updatedAt: T.fromDto(e.updatedAt),
338
338
  issuer: {
339
339
  uuid: e.issuer.uuid,
340
340
  name: e.issuer.name,
341
- address: k.fromNullableDto(e.issuer.address),
341
+ address: w.fromNullableDto(e.issuer.address),
342
342
  alternativeBankAccountNumber: e.issuer.alternativeBankAccountNumber,
343
343
  bankAccountNumber: e.issuer.bankAccountNumber,
344
344
  email: e.issuer.email,
@@ -349,14 +349,14 @@ var we = class {
349
349
  customer: {
350
350
  uuid: e.customer.uuid,
351
351
  name: e.customer.name,
352
- address: k.fromNullableDto(e.customer.address),
352
+ address: w.fromNullableDto(e.customer.address),
353
353
  email: e.customer.email,
354
354
  phoneNumber: e.customer.phoneNumber,
355
355
  vatNumber: e.customer.vatNumber
356
356
  },
357
357
  effectiveNet: y.fromDto(e.effectiveNet),
358
358
  externalRemarks: e.externalRemarks,
359
- globalDiscount: T.fromDto(e.globalDiscount),
359
+ globalDiscount: O.fromDto(e.globalDiscount),
360
360
  grossAmount: y.fromDto(e.grossAmount),
361
361
  groups: e.groups.toSorted((e, t) => e.position - t.position).map(Ce),
362
362
  lines: X(e).map(Y),
@@ -389,7 +389,7 @@ var we = class {
389
389
  return e.type === me.PERCENTAGE ? { discount: {
390
390
  amount: null,
391
391
  description: null,
392
- percentage: E.toDto(new w(t)),
392
+ percentage: x.toDto(new b(t)),
393
393
  type: e.type
394
394
  } } : { discount: {
395
395
  amount: y.toDto({
@@ -420,13 +420,13 @@ var we = class {
420
420
  static toDto(e) {
421
421
  return {
422
422
  preparedByUuid: e.preparedBy.uuid,
423
- deliveredOn: b.toNullableDto(e.deliveredOn),
424
- dueOn: b.toDto(e.dueOn),
425
- issuedOn: b.toDto(e.issuedOn),
426
- customFields: e.customFields.map(C.toDto),
427
- externalRemarks: O.trimOrNull(e.externalRemarks),
428
- poNumber: O.trimOrNull(e.poNumber),
429
- subject: O.trimOrNull(e.subject)
423
+ deliveredOn: S.toNullableDto(e.deliveredOn),
424
+ dueOn: S.toDto(e.dueOn),
425
+ issuedOn: S.toDto(e.issuedOn),
426
+ customFields: e.customFields.map(D.toDto),
427
+ externalRemarks: C.trimOrNull(e.externalRemarks),
428
+ poNumber: C.trimOrNull(e.poNumber),
429
+ subject: C.trimOrNull(e.subject)
430
430
  };
431
431
  }
432
432
  static toForm(e) {
@@ -448,9 +448,9 @@ function $(e) {
448
448
  return {
449
449
  isDiscount: e.quantity < 0 || e.isDiscount,
450
450
  name: e.name,
451
- customFields: e.customFields.map(C.toDto),
451
+ customFields: e.customFields.map(D.toDto),
452
452
  description: e.description,
453
- discount: T.toDto(e.discount),
453
+ discount: O.toDto(e.discount),
454
454
  position: e.position,
455
455
  quantity: e.quantity,
456
456
  unit: e.unit,
@@ -463,7 +463,7 @@ var Ee = class {
463
463
  return {
464
464
  groups: e.groups.map((e) => ({
465
465
  name: e.name,
466
- customFields: e.customFields.map(C.toDto),
466
+ customFields: e.customFields.map(D.toDto),
467
467
  description: e.description,
468
468
  lines: e.lines.map($),
469
469
  position: e.position
@@ -481,19 +481,19 @@ var Ee = class {
481
481
  }
482
482
  static async bulkFinalize(e) {
483
483
  return (await h.fromPromise(ce({ query: { filter: { invoiceUuids: {
484
- scope: _.INCLUDE,
484
+ scope: g.INCLUDE,
485
485
  values: e
486
486
  } } } }))).map((e) => e.data);
487
487
  }
488
488
  static async bulkMarkAsReady(e) {
489
489
  return (await h.fromPromise(m({ query: { filter: { invoiceUuids: {
490
- scope: _.INCLUDE,
490
+ scope: g.INCLUDE,
491
491
  values: e
492
492
  } } } }))).map((e) => e.data);
493
493
  }
494
494
  static async bulkSend(e) {
495
495
  return (await h.fromPromise(ae({ query: { filter: { invoiceUuids: {
496
- scope: _.INCLUDE,
496
+ scope: g.INCLUDE,
497
497
  values: e
498
498
  } } } }))).map((e) => e.data);
499
499
  }
@@ -539,7 +539,7 @@ var Ee = class {
539
539
  limit: t.pagination.limit
540
540
  }
541
541
  } }))).map((e) => ({
542
- data: e.data.logs.map(S.fromDto),
542
+ data: e.data.logs.map(E.fromDto),
543
543
  meta: { next: e.data.nextKey }
544
544
  }));
545
545
  }
@@ -579,19 +579,19 @@ var Ee = class {
579
579
  }
580
580
  static async previewBulkFinalize(e) {
581
581
  return (await h.fromPromise(ne({ query: { filter: { invoiceUuids: {
582
- scope: _.INCLUDE,
582
+ scope: g.INCLUDE,
583
583
  values: e
584
584
  } } } }))).map((e) => e.data);
585
585
  }
586
586
  static async previewBulkMarkAsReady(e) {
587
587
  return (await h.fromPromise(t({ query: { filter: { invoiceUuids: {
588
- scope: _.INCLUDE,
588
+ scope: g.INCLUDE,
589
589
  values: e
590
590
  } } } }))).map((e) => e.data);
591
591
  }
592
592
  static async previewBulkSend(e) {
593
593
  return (await h.fromPromise(i({ query: { filter: { invoiceUuids: {
594
- scope: _.INCLUDE,
594
+ scope: g.INCLUDE,
595
595
  values: e
596
596
  } } } }))).map((e) => e.data);
597
597
  }