@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.
- package/dist/ApprovalReminderSettingsViewDataProvider-DyrHExKn.js +962 -0
- package/dist/{BillingDocumentDetailViewDataProvider-BZCFhsjA.js → BillingDocumentDetailViewDataProvider-kFzqhrxW.js} +1632 -1619
- package/dist/{BillingDocumentPdf-DMTwOlzG.js → BillingDocumentPdf-Dp6HSypy.js} +10 -10
- package/dist/{DunningCaseSendDialog-DfMYo2LV.js → DunningCaseSendDialog-1S6OD9wd.js} +36 -36
- package/dist/{InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js → InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js} +16 -13
- package/dist/{InvoiceApprovalOverviewView-BH5rJgk6.js → InvoiceApprovalOverviewView-DM_LiO19.js} +237 -237
- package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-mbYHYU3x.js} +6 -6
- package/dist/{InvoicePdfView-DRqX3P-X.js → InvoicePdfView-YbDJpTIA.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js → InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js} +3 -3
- package/dist/InvoiceRejectDialogDataProvider-yegAlkDB.js +410 -0
- package/dist/{InvoiceStatusBadge-BI41yxpr.js → InvoiceStatusBadge-Bo5PDjEy.js} +23 -23
- package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-DVh22OUB.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-nNg0lR7Y.js → IssuerSettingsViewDataProvider-BgSFemZr.js} +66 -66
- package/dist/{PeppolSettingsViewDataProvider-CFelH70Q.js → PeppolSettingsViewDataProvider-_Bx0xx9e.js} +3 -3
- package/dist/ReminderTemplatesPanel-DxmfU2xK.js +103 -0
- package/dist/{api.util-sW4gNny-.js → api.util-lGbimoKL.js} +814 -667
- package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +319 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +12 -7
- package/dist/client/types.gen.d.ts +396 -94
- package/dist/client/zod.gen.d.ts +3003 -401
- package/dist/{creditNoteDetail.query-C4DvgGFR.js → creditNoteDetail.query-CqJeWeRV.js} +25 -25
- package/dist/{customFieldDefinitionIndex.query-BBqxMfvT.js → customFieldDefinitionIndex.query-Co7hoMow.js} +75 -66
- package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-ny1rA7Sm.js} +6 -6
- package/dist/{dist-47-1LAzT.js → dist-CrNFh-CR.js} +59 -59
- package/dist/{dist-B33lNwLw.js → dist-DmVrfBOT.js} +149 -79
- package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-aTEYXgaZ.js} +37 -35
- package/dist/html.util-vG4ow95N.js +52 -0
- package/dist/{i18n.lib-DckceEsg.js → i18n.lib-B1H9r0km.js} +198 -26
- package/dist/index.d.ts +184 -12
- package/dist/index.js +1990 -1829
- package/dist/{invoice.service-v9uIoFgR.js → invoice.service-D9ubyWPb.js} +224 -181
- package/dist/invoiceApproval.service-BtDIOHIo.js +182 -0
- package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-Bqq_bILG.js} +29 -29
- package/dist/{invoiceCustomer.service-Bl4vN_U5.js → invoiceCustomer.service-D0AtVrLg.js} +6 -6
- package/dist/{invoiceDetail.query-MElhxTMM.js → invoiceDetail.query-BNL6MkvC.js} +1 -1
- package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-DEF0lzNP.js} +2 -2
- package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-Cu-I6OAg.js} +30 -30
- package/dist/libs/i18n.lib.d.ts +184 -12
- package/dist/locales/en-US.json.d.ts +99 -13
- package/dist/locales/nl-BE.json.d.ts +99 -13
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -2
- package/dist/models/file-reference/fileReference.transformer.d.ts +3 -0
- package/dist/modules/invoice/api/mutations/invoiceApprovalUpdate.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceSetApprovalMode.mutation.d.ts +7 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +7 -5
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.transformer.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalModeForm.model.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalNote.model.d.ts +2 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdate.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdateForm.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +7 -1
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +2 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalModeDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalUpdateDialog.vue.d.ts +16 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialogDataProvider.vue.d.ts +13 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.d.ts +7 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.d.ts +4 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.d.ts +10 -0
- package/dist/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.d.ts +14 -0
- package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +14 -1
- package/dist/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.d.ts +2 -0
- package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -1
- package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +9 -2
- package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -2
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.transformer.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPauseForm.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplateForm.model.d.ts +18 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +15 -2
- package/dist/modules/invoice-approval/models/approvalSettingsForm.model.d.ts +39 -0
- package/dist/modules/invoice-approval/models/approvalSettingsForm.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseList.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseRow.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPausesPanel.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/settings/composables/approvalFollowUpPauseDialogs.composable.d.ts +8 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue.d.ts +11 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseFormDialog.vue.d.ts +14 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +2 -1
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.d.ts +41 -0
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.spec.d.ts +1 -0
- package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-DHMHVOeX.js} +67 -114
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js +0 -147
- package/dist/InvoiceRejectDialog-_5i8eFuk.js +0 -361
- package/dist/billingDocumentDetail.transformer-Ifa6tWtE.js +0 -310
- package/dist/invoiceApproval.service-DXIKgCI_.js +0 -72
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +0 -4
- package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import { A as t,
|
|
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-
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
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
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
}, u = v(() => f.hasSeparatorPlacementChoice(
|
|
75
|
-
return (e,
|
|
76
|
-
C(k(q), T(k(l)(
|
|
77
|
-
label:
|
|
78
|
-
placeholder:
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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
|
|
323
|
-
initialState: v(() => ee.toForm(
|
|
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:
|
|
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", () =>
|
|
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,
|
|
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(
|
|
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(
|
|
350
|
-
description: k(
|
|
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(
|
|
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(
|
|
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(
|
|
364
|
-
C(k(q), T(k(l)(k(w)), { label: k(
|
|
365
|
-
C(k(ie), T({ "is-required": !0 }, k(l)(k(E)), { label: k(
|
|
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(
|
|
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(
|
|
371
|
-
C(k(q), T(k(l)(k(M)), { label: k(
|
|
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(
|
|
382
|
-
description: k(
|
|
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(
|
|
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(
|
|
395
|
-
placeholder: k(
|
|
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(
|
|
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(
|
|
409
|
-
description: k(
|
|
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(
|
|
421
|
-
"prefix-placeholder": k(
|
|
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(
|
|
436
|
-
hint: k(
|
|
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":
|
|
443
|
+
"is-change-immediate": n.issuerSettings.isSequenceFormatChangeImmediate,
|
|
444
444
|
"is-restarting-yearly": Q.value,
|
|
445
|
-
"saved-format":
|
|
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(
|
|
464
|
-
description: k(
|
|
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(
|
|
473
|
-
hint: k(
|
|
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 && !
|
|
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(
|
|
482
|
-
"prefix-placeholder": k(
|
|
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":
|
|
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-
|
|
2
|
-
import {
|
|
3
|
-
import { i as n, n as r, r as i, t as a } from "./deliveryReason.util-
|
|
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 };
|