@wisemen/wise-invoicing-web 0.19.0 → 1.0.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 (107) hide show
  1. package/dist/ApprovalReminderSettingsViewDataProvider-DyrHExKn.js +962 -0
  2. package/dist/{BillingDocumentDetailViewDataProvider-BZCFhsjA.js → BillingDocumentDetailViewDataProvider-kFzqhrxW.js} +1632 -1619
  3. package/dist/{BillingDocumentPdf-DMTwOlzG.js → BillingDocumentPdf-Dp6HSypy.js} +10 -10
  4. package/dist/{DunningCaseSendDialog-DfMYo2LV.js → DunningCaseSendDialog-1S6OD9wd.js} +36 -36
  5. package/dist/{InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js → InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js} +16 -13
  6. package/dist/{InvoiceApprovalOverviewView-BH5rJgk6.js → InvoiceApprovalOverviewView-DM_LiO19.js} +237 -237
  7. package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-mbYHYU3x.js} +6 -6
  8. package/dist/{InvoicePdfView-DRqX3P-X.js → InvoicePdfView-YbDJpTIA.js} +2 -2
  9. package/dist/{InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js → InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js} +3 -3
  10. package/dist/InvoiceRejectDialogDataProvider-yegAlkDB.js +410 -0
  11. package/dist/{InvoiceStatusBadge-BI41yxpr.js → InvoiceStatusBadge-Bo5PDjEy.js} +23 -23
  12. package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-DVh22OUB.js} +2 -2
  13. package/dist/{IssuerSettingsViewDataProvider-nNg0lR7Y.js → IssuerSettingsViewDataProvider-BgSFemZr.js} +66 -66
  14. package/dist/{PeppolSettingsViewDataProvider-CFelH70Q.js → PeppolSettingsViewDataProvider-_Bx0xx9e.js} +3 -3
  15. package/dist/ReminderTemplatesPanel-DxmfU2xK.js +103 -0
  16. package/dist/{api.util-sW4gNny-.js → api.util-lGbimoKL.js} +814 -667
  17. package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +319 -0
  18. package/dist/client/index.d.ts +2 -2
  19. package/dist/client/sdk.gen.d.ts +12 -7
  20. package/dist/client/types.gen.d.ts +396 -94
  21. package/dist/client/zod.gen.d.ts +3003 -401
  22. package/dist/{creditNoteDetail.query-C4DvgGFR.js → creditNoteDetail.query-CqJeWeRV.js} +25 -25
  23. package/dist/{customFieldDefinitionIndex.query-BBqxMfvT.js → customFieldDefinitionIndex.query-Co7hoMow.js} +75 -66
  24. package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-ny1rA7Sm.js} +6 -6
  25. package/dist/{dist-47-1LAzT.js → dist-CrNFh-CR.js} +59 -59
  26. package/dist/{dist-B33lNwLw.js → dist-DmVrfBOT.js} +149 -79
  27. package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-aTEYXgaZ.js} +37 -35
  28. package/dist/html.util-vG4ow95N.js +52 -0
  29. package/dist/{i18n.lib-DckceEsg.js → i18n.lib-B1H9r0km.js} +198 -26
  30. package/dist/index.d.ts +184 -12
  31. package/dist/index.js +1990 -1829
  32. package/dist/{invoice.service-v9uIoFgR.js → invoice.service-D9ubyWPb.js} +224 -181
  33. package/dist/invoiceApproval.service-BtDIOHIo.js +182 -0
  34. package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-Bqq_bILG.js} +29 -29
  35. package/dist/{invoiceCustomer.service-Bl4vN_U5.js → invoiceCustomer.service-D0AtVrLg.js} +6 -6
  36. package/dist/{invoiceDetail.query-MElhxTMM.js → invoiceDetail.query-BNL6MkvC.js} +1 -1
  37. package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-DEF0lzNP.js} +2 -2
  38. package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-Cu-I6OAg.js} +30 -30
  39. package/dist/libs/i18n.lib.d.ts +184 -12
  40. package/dist/locales/en-US.json.d.ts +99 -13
  41. package/dist/locales/nl-BE.json.d.ts +99 -13
  42. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -2
  43. package/dist/models/file-reference/fileReference.transformer.d.ts +3 -0
  44. package/dist/modules/invoice/api/mutations/invoiceApprovalUpdate.mutation.d.ts +16 -0
  45. package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +2 -2
  46. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
  47. package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +2 -2
  48. package/dist/modules/invoice/api/mutations/invoiceSetApprovalMode.mutation.d.ts +7 -0
  49. package/dist/modules/invoice/api/services/invoice.service.d.ts +7 -5
  50. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.model.d.ts +3 -0
  51. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.transformer.d.ts +6 -0
  52. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalModeForm.model.d.ts +7 -0
  53. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalNote.model.d.ts +2 -0
  54. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdate.transformer.d.ts +7 -0
  55. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdateForm.model.d.ts +13 -0
  56. package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +3 -0
  57. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +2 -2
  58. package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +3 -0
  59. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +2 -2
  60. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +7 -1
  61. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
  62. package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +1 -0
  63. package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +13 -0
  64. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +2 -0
  65. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalModeDialog.vue.d.ts +13 -0
  66. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalUpdateDialog.vue.d.ts +16 -0
  67. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +4 -0
  68. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +4 -0
  69. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialogDataProvider.vue.d.ts +13 -0
  70. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
  71. package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.d.ts +7 -0
  72. package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.d.ts +4 -0
  73. package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.d.ts +10 -0
  74. package/dist/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.d.ts +14 -0
  75. package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +14 -1
  76. package/dist/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.d.ts +2 -0
  77. package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -1
  78. package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +9 -2
  79. package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -2
  80. package/dist/modules/invoice-approval/models/approvalFollowUpPause.model.d.ts +11 -0
  81. package/dist/modules/invoice-approval/models/approvalFollowUpPause.transformer.d.ts +11 -0
  82. package/dist/modules/invoice-approval/models/approvalFollowUpPauseForm.model.d.ts +11 -0
  83. package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.d.ts +6 -0
  84. package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.spec.d.ts +1 -0
  85. package/dist/modules/invoice-approval/models/approvalMailTemplateForm.model.d.ts +18 -0
  86. package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +15 -2
  87. package/dist/modules/invoice-approval/models/approvalSettingsForm.model.d.ts +39 -0
  88. package/dist/modules/invoice-approval/models/approvalSettingsForm.spec.d.ts +1 -0
  89. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
  90. package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseList.vue.d.ts +20 -0
  91. package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseRow.vue.d.ts +20 -0
  92. package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPausesPanel.vue.d.ts +7 -0
  93. package/dist/modules/invoice-approval/use-cases/settings/composables/approvalFollowUpPauseDialogs.composable.d.ts +8 -0
  94. package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue.d.ts +11 -0
  95. package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseFormDialog.vue.d.ts +14 -0
  96. package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +2 -1
  97. package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.d.ts +41 -0
  98. package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.spec.d.ts +1 -0
  99. package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-DHMHVOeX.js} +67 -114
  100. package/dist/style.css +1 -1
  101. package/package.json +1 -1
  102. package/dist/ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js +0 -147
  103. package/dist/InvoiceRejectDialog-_5i8eFuk.js +0 -361
  104. package/dist/billingDocumentDetail.transformer-Ifa6tWtE.js +0 -310
  105. package/dist/invoiceApproval.service-DXIKgCI_.js +0 -72
  106. package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +0 -4
  107. package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +0 -4
@@ -1,13 +1,13 @@
1
- import { t as e } from "./i18n.lib-DckceEsg.js";
2
- import "./api.util-sW4gNny-.js";
3
- import { A as t, O as n, c as r, k as i, t as a } from "./documentTitle.composable-Dl8Cm3v3.js";
1
+ import { t as e } from "./i18n.lib-B1H9r0km.js";
2
+ import "./api.util-lGbimoKL.js";
3
+ import { A as t, j as n, k as r, l as i, t as a } from "./documentTitle.composable-aTEYXgaZ.js";
4
4
  import { r as o } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
5
  import { t as s } from "./addressForm.model-C853zEtX.js";
6
6
  import { t as c } from "./dist-CwkVU5yS.js";
7
7
  import { t as l } from "./formango.util-D5c2ql--.js";
8
8
  import { t as u } from "./DataProvider-BtnD-BzI.js";
9
9
  import { t as d } from "./dashboard-BaWGNEek.js";
10
- import { i as f, n as p, r as ee, t as m } from "./issuerSettings.query-CR7EtvNm.js";
10
+ import { i as f, n as p, r as ee, t as m } from "./issuerSettings.query-Cu-I6OAg.js";
11
11
  import { z as h } from "zod";
12
12
  import { useI18n as g } from "vue-i18n";
13
13
  import { Fragment as _, Teleport as te, Transition as ne, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createVNode as C, defineComponent as w, mergeProps as T, normalizeClass as E, openBlock as D, renderList as O, toDisplayString as re, unref as k, withCtx as A } from "vue";
@@ -26,13 +26,13 @@ function de() {
26
26
  //#endregion
27
27
  //#region src/modules/settings/models/issuer-settings/issuerSettingsForm.model.ts
28
28
  var Y = h.object({
29
- dateFormat: h.enum(n),
29
+ dateFormat: h.enum(r),
30
30
  minDigits: h.number().int().min(0).max(10),
31
31
  prefix: h.string().max(10).regex(/^[a-z]*$/i, { message: e.global.t("wise_invoicing.settings.fields.sequence_prefix.only_letters") }),
32
32
  separator: h.object({
33
33
  afterDate: h.boolean(),
34
34
  afterPrefix: h.boolean(),
35
- value: h.enum(t)
35
+ value: h.enum(n)
36
36
  })
37
37
  }), fe = h.object({
38
38
  name: h.string().min(1),
@@ -40,7 +40,7 @@ var Y = h.object({
40
40
  bankAccountNumber: h.string().min(1),
41
41
  bic: h.string(),
42
42
  creditNoteSequenceFormat: Y,
43
- currency: h.enum(r),
43
+ currency: h.enum(i),
44
44
  defaultPaymentTermDays: h.number().min(1),
45
45
  email: h.email().min(1),
46
46
  invoiceSequenceFormat: Y,
@@ -58,26 +58,26 @@ var Y = h.object({
58
58
  prefixPlaceholder: {}
59
59
  },
60
60
  setup(e) {
61
- let r = e, i = g(), a = v(() => J(Object.values(n))), o = v(() => J(Object.values(t))), s = {
62
- [n.NONE]: "wise_invoicing.settings.fields.sequence_date_format.options.none",
63
- [n.YY]: "wise_invoicing.settings.fields.sequence_date_format.options.yy",
64
- [n.YYMM]: "wise_invoicing.settings.fields.sequence_date_format.options.yymm",
65
- [n.YYYY]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyy",
66
- [n.YYYYMM]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyymm",
67
- [n.YYYYMMDD]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyymmdd"
61
+ let t = e, i = g(), a = v(() => J(Object.values(r))), o = v(() => J(Object.values(n))), s = {
62
+ [r.NONE]: "wise_invoicing.settings.fields.sequence_date_format.options.none",
63
+ [r.YY]: "wise_invoicing.settings.fields.sequence_date_format.options.yy",
64
+ [r.YYMM]: "wise_invoicing.settings.fields.sequence_date_format.options.yymm",
65
+ [r.YYYY]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyy",
66
+ [r.YYYYMM]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyymm",
67
+ [r.YYYYMMDD]: "wise_invoicing.settings.fields.sequence_date_format.options.yyyymmdd"
68
68
  }, c = {
69
- [t.HYPHEN]: "wise_invoicing.settings.fields.sequence_separator.options.hyphen",
70
- [t.NONE]: "wise_invoicing.settings.fields.sequence_separator.options.none",
71
- [t.PERIOD]: "wise_invoicing.settings.fields.sequence_separator.options.period",
72
- [t.SLASH]: "wise_invoicing.settings.fields.sequence_separator.options.slash",
73
- [t.UNDERSCORE]: "wise_invoicing.settings.fields.sequence_separator.options.underscore"
74
- }, u = v(() => f.hasSeparatorPlacementChoice(r.editedFormat));
75
- return (e, t) => (D(), x(_, null, [
76
- C(k(q), T(k(l)(r.fields.prefix), {
77
- label: r.prefixLabel,
78
- placeholder: r.prefixPlaceholder
69
+ [n.HYPHEN]: "wise_invoicing.settings.fields.sequence_separator.options.hyphen",
70
+ [n.NONE]: "wise_invoicing.settings.fields.sequence_separator.options.none",
71
+ [n.PERIOD]: "wise_invoicing.settings.fields.sequence_separator.options.period",
72
+ [n.SLASH]: "wise_invoicing.settings.fields.sequence_separator.options.slash",
73
+ [n.UNDERSCORE]: "wise_invoicing.settings.fields.sequence_separator.options.underscore"
74
+ }, u = v(() => f.hasSeparatorPlacementChoice(t.editedFormat));
75
+ return (e, n) => (D(), x(_, null, [
76
+ C(k(q), T(k(l)(t.fields.prefix), {
77
+ label: t.prefixLabel,
78
+ placeholder: t.prefixPlaceholder
79
79
  }), null, 16, ["label", "placeholder"]),
80
- C(k(W), T(k(l)(r.fields.dateFormat), {
80
+ C(k(W), T(k(l)(t.fields.dateFormat), {
81
81
  "display-fn": (e) => k(i).t(s[e]),
82
82
  items: a.value,
83
83
  label: k(i).t("wise_invoicing.settings.fields.sequence_date_format.label")
@@ -91,7 +91,7 @@ var Y = h.object({
91
91
  gap: "md",
92
92
  align: "stretch"
93
93
  }, {
94
- default: A(() => [C(k(W), T(k(l)(r.fields.separator), {
94
+ default: A(() => [C(k(W), T(k(l)(t.fields.separator), {
95
95
  "display-fn": (e) => k(i).t(c[e]),
96
96
  items: o.value,
97
97
  label: k(i).t("wise_invoicing.settings.fields.sequence_separator.label")
@@ -109,7 +109,7 @@ var Y = h.object({
109
109
  key: 0,
110
110
  gap: "md"
111
111
  }, {
112
- default: A(() => [C(k(I), T(k(l)(r.fields.separatorAfterPrefix), { label: k(i).t("wise_invoicing.settings.fields.sequence_separator_after_prefix.label") }), null, 16, ["label"]), C(k(I), T(k(l)(r.fields.separatorAfterDate), { label: k(i).t("wise_invoicing.settings.fields.sequence_separator_after_date.label") }), null, 16, ["label"])]),
112
+ default: A(() => [C(k(I), T(k(l)(t.fields.separatorAfterPrefix), { label: k(i).t("wise_invoicing.settings.fields.sequence_separator_after_prefix.label") }), null, 16, ["label"]), C(k(I), T(k(l)(t.fields.separatorAfterDate), { label: k(i).t("wise_invoicing.settings.fields.sequence_separator_after_date.label") }), null, 16, ["label"])]),
113
113
  _: 1
114
114
  })) : b("", !0)]),
115
115
  _: 1
@@ -118,7 +118,7 @@ var Y = h.object({
118
118
  })]),
119
119
  _: 1
120
120
  }),
121
- C(k(U), T(k(l)(r.fields.minDigits), {
121
+ C(k(U), T(k(l)(t.fields.minDigits), {
122
122
  min: 0,
123
123
  max: 10,
124
124
  label: k(i).t("wise_invoicing.settings.fields.sequence_min_digits.label"),
@@ -319,21 +319,21 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
319
319
  __name: "IssuerSettingsForm",
320
320
  props: { issuerSettings: {} },
321
321
  setup(e) {
322
- let t = e, n = g(), a = le(), s = o(), c = de(), u = v(() => J(Object.values(r))), d = ue({
323
- initialState: v(() => ee.toForm(t.issuerSettings)),
322
+ let n = e, r = g(), a = le(), s = o(), c = de(), u = v(() => J(Object.values(i))), d = ue({
323
+ initialState: v(() => ee.toForm(n.issuerSettings)),
324
324
  schema: fe,
325
325
  onSubmit: async (e) => {
326
326
  let t = await c.execute({ body: e });
327
- t.isErr() ? a.apiError(t.error) : a.show({ message: n.t("wise_invoicing.settings.saved") });
327
+ t.isErr() ? a.apiError(t.error) : a.show({ message: r.t("wise_invoicing.settings.saved") });
328
328
  },
329
329
  onSubmitError: () => {
330
330
  a.unableToSave();
331
331
  }
332
- }), p = d.register("name"), m = d.register("email"), h = d.register("phoneNumber"), w = d.register("website"), E = d.register("address"), O = d.register("vatNumber"), j = d.register("bankAccountNumber"), M = d.register("bic"), N = d.register("currency"), P = d.register("defaultPaymentTermDays"), F = d.register("restartsNumberingYearly", !1), L = d.register("shareCreditNoteSequence", !1), R = ge(d, "invoiceSequenceFormat", () => t.issuerSettings.invoiceSequenceFormat), z = ge(d, "creditNoteSequenceFormat", () => t.issuerSettings.creditNoteSequenceFormat), K = v(() => L.modelValue.value), Y = v(() => K.value !== t.issuerSettings.shareCreditNoteSequence), pe = v(() => t.issuerSettings.shareCreditNoteSequence ? t.issuerSettings.invoiceSequenceFormat : t.issuerSettings.creditNoteSequenceFormat), Z = v(() => f.canRestartYearly(R.editedFormat.value, z.editedFormat.value, K.value)), Q = v(() => Z.value && F.modelValue.value), $ = v(() => Q.value !== (t.issuerSettings.sequenceReset === i.YEARLY));
332
+ }), p = d.register("name"), m = d.register("email"), h = d.register("phoneNumber"), w = d.register("website"), E = d.register("address"), O = d.register("vatNumber"), j = d.register("bankAccountNumber"), M = d.register("bic"), N = d.register("currency"), P = d.register("defaultPaymentTermDays"), F = d.register("restartsNumberingYearly", !1), L = d.register("shareCreditNoteSequence", !1), R = ge(d, "invoiceSequenceFormat", () => n.issuerSettings.invoiceSequenceFormat), z = ge(d, "creditNoteSequenceFormat", () => n.issuerSettings.creditNoteSequenceFormat), K = v(() => L.modelValue.value), Y = v(() => K.value !== n.issuerSettings.shareCreditNoteSequence), pe = v(() => n.issuerSettings.shareCreditNoteSequence ? n.issuerSettings.invoiceSequenceFormat : n.issuerSettings.creditNoteSequenceFormat), Z = v(() => f.canRestartYearly(R.editedFormat.value, z.editedFormat.value, K.value)), Q = v(() => Z.value && F.modelValue.value), $ = v(() => Q.value !== (n.issuerSettings.sequenceReset === t.YEARLY));
333
333
  function Ce(e) {
334
334
  return `${e} (${s.getSymbol(e).symbol})`;
335
335
  }
336
- return (e, r) => (D(), y(k(ae), {
336
+ return (e, t) => (D(), y(k(ae), {
337
337
  form: k(d),
338
338
  "prompt-on-unsaved-changes": !0
339
339
  }, {
@@ -342,12 +342,12 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
342
342
  defer: ""
343
343
  }, [C(k(se), {
344
344
  "is-disabled": !k(d).isDirty.value,
345
- label: k(n).t("wise_invoicing.common.save")
345
+ label: k(r).t("wise_invoicing.common.save")
346
346
  }, null, 8, ["is-disabled", "label"])])), C(k(oe), null, {
347
347
  default: A(() => [
348
348
  C(k(H), {
349
- title: k(n).t("wise_invoicing.settings.sections.issuer.title"),
350
- description: k(n).t("wise_invoicing.settings.sections.issuer.description")
349
+ title: k(r).t("wise_invoicing.settings.sections.issuer.title"),
350
+ description: k(r).t("wise_invoicing.settings.sections.issuer.description")
351
351
  }, {
352
352
  default: A(() => [C(k(V), null, {
353
353
  default: A(() => [C(k(B), {
@@ -355,20 +355,20 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
355
355
  sm: 1
356
356
  }, {
357
357
  default: A(() => [
358
- C(k(q), T({ "is-required": !0 }, k(l)(k(p)), { label: k(n).t("wise_invoicing.settings.fields.name.label") }), null, 16, ["label"]),
358
+ C(k(q), T({ "is-required": !0 }, k(l)(k(p)), { label: k(r).t("wise_invoicing.settings.fields.name.label") }), null, 16, ["label"]),
359
359
  C(k(q), T({ "is-required": !0 }, k(l)(k(m)), {
360
- label: k(n).t("wise_invoicing.settings.fields.email.label"),
360
+ label: k(r).t("wise_invoicing.settings.fields.email.label"),
361
361
  type: "email"
362
362
  }), null, 16, ["label"]),
363
- C(k(ce), T(k(l)(k(h)), { label: k(n).t("wise_invoicing.settings.fields.phone_number.label") }), null, 16, ["label"]),
364
- C(k(q), T(k(l)(k(w)), { label: k(n).t("wise_invoicing.settings.fields.website.label") }), null, 16, ["label"]),
365
- C(k(ie), T({ "is-required": !0 }, k(l)(k(E)), { label: k(n).t("wise_invoicing.settings.fields.address.label") }), null, 16, ["label"]),
363
+ C(k(ce), T(k(l)(k(h)), { label: k(r).t("wise_invoicing.settings.fields.phone_number.label") }), null, 16, ["label"]),
364
+ C(k(q), T(k(l)(k(w)), { label: k(r).t("wise_invoicing.settings.fields.website.label") }), null, 16, ["label"]),
365
+ C(k(ie), T({ "is-required": !0 }, k(l)(k(E)), { label: k(r).t("wise_invoicing.settings.fields.address.label") }), null, 16, ["label"]),
366
366
  C(k(q), T(k(l)(k(O)), {
367
367
  "is-disabled": !0,
368
- label: k(n).t("wise_invoicing.settings.fields.vat_number.label")
368
+ label: k(r).t("wise_invoicing.settings.fields.vat_number.label")
369
369
  }), null, 16, ["label"]),
370
- C(k(q), T({ "is-required": !0 }, k(l)(k(j)), { label: k(n).t("wise_invoicing.settings.fields.bank_account_number.label") }), null, 16, ["label"]),
371
- C(k(q), T(k(l)(k(M)), { label: k(n).t("wise_invoicing.settings.fields.bic.label") }), null, 16, ["label"])
370
+ C(k(q), T({ "is-required": !0 }, k(l)(k(j)), { label: k(r).t("wise_invoicing.settings.fields.bank_account_number.label") }), null, 16, ["label"]),
371
+ C(k(q), T(k(l)(k(M)), { label: k(r).t("wise_invoicing.settings.fields.bic.label") }), null, 16, ["label"])
372
372
  ]),
373
373
  _: 1
374
374
  })]),
@@ -378,8 +378,8 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
378
378
  }, 8, ["title", "description"]),
379
379
  S("div", _e, [C(k(G))]),
380
380
  C(k(H), {
381
- title: k(n).t("wise_invoicing.settings.sections.payment.title"),
382
- description: k(n).t("wise_invoicing.settings.sections.payment.description")
381
+ title: k(r).t("wise_invoicing.settings.sections.payment.title"),
382
+ description: k(r).t("wise_invoicing.settings.sections.payment.description")
383
383
  }, {
384
384
  default: A(() => [C(k(V), null, {
385
385
  default: A(() => [C(k(B), {
@@ -389,12 +389,12 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
389
389
  default: A(() => [C(k(W), T(k(l)(k(N)), {
390
390
  "display-fn": Ce,
391
391
  items: u.value,
392
- label: k(n).t("wise_invoicing.settings.fields.currency.label")
392
+ label: k(r).t("wise_invoicing.settings.fields.currency.label")
393
393
  }), null, 16, ["items", "label"]), C(k(U), T(k(l)(k(P)), {
394
- label: k(n).t("wise_invoicing.settings.fields.default_payment_term.label"),
395
- placeholder: k(n).t("wise_invoicing.settings.fields.default_payment_term.placeholder")
394
+ label: k(r).t("wise_invoicing.settings.fields.default_payment_term.label"),
395
+ placeholder: k(r).t("wise_invoicing.settings.fields.default_payment_term.placeholder")
396
396
  }), {
397
- right: A(() => [S("span", ve, re(k(n).t("wise_invoicing.settings.fields.default_payment_term.suffix")), 1)]),
397
+ right: A(() => [S("span", ve, re(k(r).t("wise_invoicing.settings.fields.default_payment_term.suffix")), 1)]),
398
398
  _: 1
399
399
  }, 16, ["label", "placeholder"])]),
400
400
  _: 1
@@ -405,8 +405,8 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
405
405
  }, 8, ["title", "description"]),
406
406
  S("div", ye, [C(k(G))]),
407
407
  C(k(H), {
408
- title: k(n).t("wise_invoicing.settings.sections.numbering.title"),
409
- description: k(n).t("wise_invoicing.settings.sections.numbering.description")
408
+ title: k(r).t("wise_invoicing.settings.sections.numbering.title"),
409
+ description: k(r).t("wise_invoicing.settings.sections.numbering.description")
410
410
  }, {
411
411
  default: A(() => [C(k(V), null, {
412
412
  default: A(() => [C(k(B), {
@@ -417,8 +417,8 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
417
417
  C(X, {
418
418
  "edited-format": k(R).editedFormat.value,
419
419
  fields: k(R).fields,
420
- "prefix-label": k(n).t("wise_invoicing.settings.fields.sequence_prefix.label"),
421
- "prefix-placeholder": k(n).t("wise_invoicing.settings.fields.sequence_prefix.placeholder")
420
+ "prefix-label": k(r).t("wise_invoicing.settings.fields.sequence_prefix.label"),
421
+ "prefix-placeholder": k(r).t("wise_invoicing.settings.fields.sequence_prefix.placeholder")
422
422
  }, null, 8, [
423
423
  "edited-format",
424
424
  "fields",
@@ -432,17 +432,17 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
432
432
  "leave-to-class": "opacity-0"
433
433
  }, {
434
434
  default: A(() => [Z.value ? (D(), x("div", be, [C(k(I), T(k(l)(k(F)), {
435
- label: k(n).t("wise_invoicing.settings.fields.restarts_numbering_yearly.label"),
436
- hint: k(n).t("wise_invoicing.settings.fields.restarts_numbering_yearly.hint")
435
+ label: k(r).t("wise_invoicing.settings.fields.restarts_numbering_yearly.label"),
436
+ hint: k(r).t("wise_invoicing.settings.fields.restarts_numbering_yearly.hint")
437
437
  }), null, 16, ["label", "hint"])])) : b("", !0)]),
438
438
  _: 1
439
439
  }),
440
440
  C(me, {
441
441
  "edited-format": k(R).editedFormat.value,
442
442
  "has-other-numbering-changes": $.value,
443
- "is-change-immediate": t.issuerSettings.isSequenceFormatChangeImmediate,
443
+ "is-change-immediate": n.issuerSettings.isSequenceFormatChangeImmediate,
444
444
  "is-restarting-yearly": Q.value,
445
- "saved-format": t.issuerSettings.invoiceSequenceFormat,
445
+ "saved-format": n.issuerSettings.invoiceSequenceFormat,
446
446
  "document-type": "invoice"
447
447
  }, null, 8, [
448
448
  "edited-format",
@@ -460,8 +460,8 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
460
460
  }, 8, ["title", "description"]),
461
461
  S("div", xe, [C(k(G))]),
462
462
  C(k(H), {
463
- title: k(n).t("wise_invoicing.settings.sections.credit_note_numbering.title"),
464
- description: k(n).t("wise_invoicing.settings.sections.credit_note_numbering.description")
463
+ title: k(r).t("wise_invoicing.settings.sections.credit_note_numbering.title"),
464
+ description: k(r).t("wise_invoicing.settings.sections.credit_note_numbering.description")
465
465
  }, {
466
466
  default: A(() => [C(k(V), null, {
467
467
  default: A(() => [C(k(B), {
@@ -469,17 +469,17 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
469
469
  sm: 1
470
470
  }, {
471
471
  default: A(() => [S("div", Se, [C(k(I), T(k(l)(k(L)), {
472
- label: k(n).t("wise_invoicing.settings.fields.share_credit_note_sequence.label"),
473
- hint: k(n).t("wise_invoicing.settings.fields.share_credit_note_sequence.hint")
472
+ label: k(r).t("wise_invoicing.settings.fields.share_credit_note_sequence.label"),
473
+ hint: k(r).t("wise_invoicing.settings.fields.share_credit_note_sequence.hint")
474
474
  }), null, 16, ["label", "hint"])]), K.value ? (D(), y(he, {
475
475
  key: 0,
476
476
  "invoice-format": k(R).editedFormat.value,
477
- "is-sharing-deferred": Y.value && !t.issuerSettings.isCreditNoteSequenceChangeImmediate
477
+ "is-sharing-deferred": Y.value && !n.issuerSettings.isCreditNoteSequenceChangeImmediate
478
478
  }, null, 8, ["invoice-format", "is-sharing-deferred"])) : (D(), x(_, { key: 1 }, [C(X, {
479
479
  "edited-format": k(z).editedFormat.value,
480
480
  fields: k(z).fields,
481
- "prefix-label": k(n).t("wise_invoicing.settings.fields.credit_note_sequence_prefix.label"),
482
- "prefix-placeholder": k(n).t("wise_invoicing.settings.fields.credit_note_sequence_prefix.placeholder")
481
+ "prefix-label": k(r).t("wise_invoicing.settings.fields.credit_note_sequence_prefix.label"),
482
+ "prefix-placeholder": k(r).t("wise_invoicing.settings.fields.credit_note_sequence_prefix.placeholder")
483
483
  }, null, 8, [
484
484
  "edited-format",
485
485
  "fields",
@@ -488,7 +488,7 @@ var _e = { class: "mx-auto w-full max-w-4xl" }, ve = { class: "pr-md text-xs tex
488
488
  ]), C(me, {
489
489
  "edited-format": k(z).editedFormat.value,
490
490
  "has-other-numbering-changes": $.value || Y.value,
491
- "is-change-immediate": t.issuerSettings.isCreditNoteSequenceChangeImmediate,
491
+ "is-change-immediate": n.issuerSettings.isCreditNoteSequenceChangeImmediate,
492
492
  "is-restarting-yearly": Q.value,
493
493
  "saved-format": pe.value,
494
494
  "document-type": "credit_note"
@@ -1,6 +1,6 @@
1
- import "./api.util-sW4gNny-.js";
2
- import { E as e, t } from "./documentTitle.composable-Dl8Cm3v3.js";
3
- import { i as n, n as r, r as i, t as a } from "./deliveryReason.util-KBh3q_-P.js";
1
+ import "./api.util-lGbimoKL.js";
2
+ import { D as e, t } from "./documentTitle.composable-aTEYXgaZ.js";
3
+ import { i as n, n as r, r as i, t as a } from "./deliveryReason.util-ny1rA7Sm.js";
4
4
  import { t as o } from "./formango.util-D5c2ql--.js";
5
5
  import { t as s } from "./DataProvider-BtnD-BzI.js";
6
6
  import c from "zod";
@@ -0,0 +1,103 @@
1
+ import { t as e } from "./formango.util-D5c2ql--.js";
2
+ import { useI18n as t } from "vue-i18n";
3
+ import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, mergeModels as l, mergeProps as u, openBlock as d, renderList as f, toDisplayString as p, unref as m, useModel as h, withCtx as g } from "vue";
4
+ import { UITabs as _, UITabsItem as v, UITabsList as y, UITextField as b, UITextareaField as x } from "@wisemen/vue-core-design-system";
5
+ //#region src/modules/dunning-case/use-cases/settings/components/ReminderTemplateTabs.vue?vue&type=script&setup=true&lang.ts
6
+ var S = { class: "flex flex-wrap items-center gap-xl" }, C = { class: "text-xs text-secondary" }, w = /* @__PURE__ */ c({
7
+ __name: "ReminderTemplateTabs",
8
+ props: /*@__PURE__*/ l({
9
+ caption: {},
10
+ items: {}
11
+ }, {
12
+ modelValue: { required: !0 },
13
+ modelModifiers: {}
14
+ }),
15
+ emits: ["update:modelValue"],
16
+ setup(e) {
17
+ let i = e, c = h(e, "modelValue"), l = t();
18
+ function u(e) {
19
+ return e.hasMissingContent ? `${e.label}, ${l.t("module.dunning_case.settings.templates.missing")}` : e.label;
20
+ }
21
+ return (e, t) => (d(), a("div", S, [o("p", C, p(i.caption), 1), s(m(_), {
22
+ modelValue: c.value,
23
+ "onUpdate:modelValue": t[0] ||= (e) => c.value = e,
24
+ "aria-label": i.caption,
25
+ variant: "button-brand"
26
+ }, {
27
+ default: g(() => [s(m(y), null, {
28
+ default: g(() => [(d(!0), a(n, null, f(i.items, (e) => (d(), r(m(v), {
29
+ key: e.value,
30
+ "aria-label": u(e),
31
+ config: e.hasMissingContent ? { indicator: {
32
+ type: "dot",
33
+ color: "error"
34
+ } } : null,
35
+ label: e.label,
36
+ value: e.value
37
+ }, null, 8, [
38
+ "aria-label",
39
+ "config",
40
+ "label",
41
+ "value"
42
+ ]))), 128))]),
43
+ _: 1
44
+ })]),
45
+ _: 1
46
+ }, 8, ["modelValue", "aria-label"])]));
47
+ }
48
+ }), T = { class: "mt-5xl" }, E = { class: "flex flex-col gap-xl sm:flex-row sm:items-center sm:justify-between" }, D = { class: "mt-xl overflow-hidden rounded-md border border-secondary bg-primary" }, O = { class: "border-b border-secondary px-3xl py-lg" }, k = { class: "text-sm font-medium text-primary" }, A = {
49
+ key: 0,
50
+ class: "flex flex-col gap-md p-3xl"
51
+ }, j = /* @__PURE__ */ c({
52
+ __name: "ReminderTemplatesPanel",
53
+ props: /*@__PURE__*/ l({
54
+ bodyField: {},
55
+ canUpdate: { type: Boolean },
56
+ cardTitle: {},
57
+ levelItems: {},
58
+ localeItems: {},
59
+ subjectField: {}
60
+ }, {
61
+ activeLevel: { required: !0 },
62
+ activeLevelModifiers: {},
63
+ activeLocale: { required: !0 },
64
+ activeLocaleModifiers: {}
65
+ }),
66
+ emits: ["update:activeLevel", "update:activeLocale"],
67
+ setup(n) {
68
+ let r = n, c = h(n, "activeLevel"), l = h(n, "activeLocale"), f = t();
69
+ return (t, n) => (d(), a("div", T, [o("div", E, [s(w, {
70
+ modelValue: c.value,
71
+ "onUpdate:modelValue": n[0] ||= (e) => c.value = e,
72
+ caption: m(f).t("module.dunning_case.settings.templates.selector"),
73
+ items: r.levelItems
74
+ }, null, 8, [
75
+ "modelValue",
76
+ "caption",
77
+ "items"
78
+ ]), s(w, {
79
+ modelValue: l.value,
80
+ "onUpdate:modelValue": n[1] ||= (e) => l.value = e,
81
+ caption: m(f).t("module.dunning_case.settings.templates.language"),
82
+ items: r.localeItems
83
+ }, null, 8, [
84
+ "modelValue",
85
+ "caption",
86
+ "items"
87
+ ])]), o("div", D, [o("div", O, [o("h2", k, p(r.cardTitle), 1)]), r.subjectField !== void 0 && r.bodyField !== void 0 ? (d(), a("div", A, [s(m(b), u(m(e)(r.subjectField), {
88
+ "is-disabled": !r.canUpdate,
89
+ "is-required": !0,
90
+ label: m(f).t("module.dunning_case.settings.templates.subject"),
91
+ size: "sm"
92
+ }), null, 16, ["is-disabled", "label"]), s(m(x), u(m(e)(r.bodyField), {
93
+ "is-disabled": !r.canUpdate,
94
+ "is-required": !0,
95
+ label: m(f).t("module.dunning_case.settings.templates.content"),
96
+ "min-height": "var(--spacing-11xl)",
97
+ resize: "auto-vertical",
98
+ size: "sm"
99
+ }), null, 16, ["is-disabled", "label"])])) : i("", !0)])]));
100
+ }
101
+ });
102
+ //#endregion
103
+ export { j as t };