@wisemen/wise-invoicing-web 0.20.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-jpp-QwPi.js → BillingDocumentDetailViewDataProvider-kFzqhrxW.js} +1563 -1550
- package/dist/{BillingDocumentPdf-Zw3GXZVE.js → BillingDocumentPdf-Dp6HSypy.js} +5 -5
- package/dist/{DunningCaseSendDialog-CA-nzjzV.js → DunningCaseSendDialog-1S6OD9wd.js} +36 -36
- package/dist/{InvoiceApprovalOutOfSyncIndicator-Dnw03isr.js → InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js} +16 -13
- package/dist/{InvoiceApprovalOverviewView-CoJXggOy.js → InvoiceApprovalOverviewView-DM_LiO19.js} +210 -210
- package/dist/{InvoiceApprovalStatusBadge-BWx3Fhuy.js → InvoiceApprovalStatusBadge-mbYHYU3x.js} +6 -6
- package/dist/{InvoicePdfView-Bv5aMLh6.js → InvoicePdfView-YbDJpTIA.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-Ca7-AmAH.js → InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js} +3 -3
- package/dist/InvoiceRejectDialogDataProvider-yegAlkDB.js +410 -0
- package/dist/{InvoiceStatusBadge-uXAh9ypU.js → InvoiceStatusBadge-Bo5PDjEy.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-C3cyIUhL.js → InvoicingFileUploadProvider-DVh22OUB.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-C-CRF9sK.js → IssuerSettingsViewDataProvider-BgSFemZr.js} +4 -4
- package/dist/{PeppolSettingsViewDataProvider-COQEInsh.js → PeppolSettingsViewDataProvider-_Bx0xx9e.js} +3 -3
- package/dist/ReminderTemplatesPanel-DxmfU2xK.js +103 -0
- package/dist/{api.util-DSerLsgA.js → api.util-lGbimoKL.js} +575 -446
- package/dist/{billingDocumentDetail.transformer-ClWwi8h4.js → billingDocumentDetail.transformer-C5-zjIhL.js} +13 -4
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +8 -3
- package/dist/client/types.gen.d.ts +316 -49
- package/dist/client/zod.gen.d.ts +1465 -71
- package/dist/{creditNoteDetail.query-q1b6nzu0.js → creditNoteDetail.query-CqJeWeRV.js} +23 -23
- package/dist/{customFieldDefinitionIndex.query-DQxer9Je.js → customFieldDefinitionIndex.query-Co7hoMow.js} +65 -56
- package/dist/{deliveryReason.util-BlxvUaz0.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-D5uPh3uG.js → documentTitle.composable-aTEYXgaZ.js} +1 -1
- package/dist/html.util-vG4ow95N.js +52 -0
- package/dist/{i18n.lib-DB15VQsH.js → i18n.lib-B1H9r0km.js} +196 -26
- package/dist/index.d.ts +182 -12
- package/dist/index.js +1638 -1479
- package/dist/{invoice.service-BKgP2p8z.js → invoice.service-D9ubyWPb.js} +245 -203
- package/dist/invoiceApproval.service-BtDIOHIo.js +182 -0
- package/dist/{invoiceApprovalStatus.util-D17DWEh1.js → invoiceApprovalStatus.util-Bqq_bILG.js} +2 -2
- package/dist/{invoiceCustomer.service-CLYUR6vc.js → invoiceCustomer.service-D0AtVrLg.js} +6 -6
- package/dist/{invoiceDetail.query-CzyZqT82.js → invoiceDetail.query-BNL6MkvC.js} +1 -1
- package/dist/{invoicingConfig.composable-CzgTMtog.js → invoicingConfig.composable-DEF0lzNP.js} +2 -2
- package/dist/{issuerSettings.query-D8T34N7f.js → issuerSettings.query-Cu-I6OAg.js} +5 -5
- package/dist/libs/i18n.lib.d.ts +182 -12
- package/dist/locales/en-US.json.d.ts +98 -13
- package/dist/locales/nl-BE.json.d.ts +98 -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/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 +4 -2
- 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 +5 -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/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/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-CFmCWWlO.js → reminderConfig.query-DHMHVOeX.js} +62 -109
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ApprovalReminderSettingsViewDataProvider-DMWLX53_.js +0 -147
- package/dist/InvoiceRejectDialog-Ca-4nz4U.js +0 -361
- package/dist/invoiceApproval.service-oT1fvhsW.js +0 -73
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +0 -4
- package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +0 -4
package/dist/{InvoiceApprovalStatusBadge-BWx3Fhuy.js → InvoiceApprovalStatusBadge-mbYHYU3x.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import { a as e, s as t } from "./documentTitle.composable-
|
|
3
|
-
import {
|
|
1
|
+
import "./api.util-lGbimoKL.js";
|
|
2
|
+
import { a as e, s as t } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
3
|
+
import { C as n, nt as r } from "./dist-DmVrfBOT.js";
|
|
4
4
|
import { r as i } from "./dist-CyUNvdkD.js";
|
|
5
|
-
import { t as a } from "./invoiceApprovalStatus.util-
|
|
5
|
+
import { t as a } from "./invoiceApprovalStatus.util-Bqq_bILG.js";
|
|
6
6
|
import { useI18n as o } from "vue-i18n";
|
|
7
7
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, openBlock as g, renderList as _, unref as v, withCtx as y } from "vue";
|
|
8
8
|
import { UIBadge as b, UIText as x, UITooltip as S, UITooltipContent as C } from "@wisemen/vue-core-design-system";
|
|
@@ -63,8 +63,8 @@ var w = {
|
|
|
63
63
|
approval: f.approval,
|
|
64
64
|
requiresPriorApproval: f.requiresPriorApproval
|
|
65
65
|
})), b = c(() => _.value === null ? null : a.getMetadata(_.value)), w = c(() => b.value === null ? "" : m.t(b.value.translationKey)), T = c(() => _.value === e.REMINDER_1 || _.value === e.REMINDER_2 ? f.approval?.level ?? null : null), E = {
|
|
66
|
-
[e.AWAITING_APPROVAL]:
|
|
67
|
-
[e.REJECTED]:
|
|
66
|
+
[e.AWAITING_APPROVAL]: n,
|
|
67
|
+
[e.REJECTED]: r
|
|
68
68
|
}, O = c(() => {
|
|
69
69
|
let e = _.value === null ? void 0 : E[_.value];
|
|
70
70
|
return e === void 0 ? void 0 : {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./documentTitle.composable-
|
|
2
|
-
import { t } from "./BillingDocumentPdf-
|
|
1
|
+
import { t as e } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
2
|
+
import { t } from "./BillingDocumentPdf-Dp6HSypy.js";
|
|
3
3
|
import { useI18n as n } from "vue-i18n";
|
|
4
4
|
import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s } from "vue";
|
|
5
5
|
//#region src/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./invoicingConfig.composable-
|
|
2
|
-
import { t } from "./invoice.service-
|
|
1
|
+
import { n as e } from "./invoicingConfig.composable-DEF0lzNP.js";
|
|
2
|
+
import { t } from "./invoice.service-D9ubyWPb.js";
|
|
3
3
|
import { t as n } from "./DataProvider-BtnD-BzI.js";
|
|
4
|
-
import { t as r } from "./InvoicePdfView-
|
|
4
|
+
import { t as r } from "./InvoicePdfView-YbDJpTIA.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, openBlock as d, resolveDynamicComponent as f, unref as p, watch as m, withCtx as h } from "vue";
|
|
7
7
|
import { useQuery as g } from "@wisemen/vue-core-api-utils";
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { t as e } from "./i18n.lib-B1H9r0km.js";
|
|
2
|
+
import "./api.util-lGbimoKL.js";
|
|
3
|
+
import { y as t } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
4
|
+
import { l as n, t as r, u as i } from "./invoice.service-D9ubyWPb.js";
|
|
5
|
+
import { J as a, Tt as o, gt as s } from "./dist-DmVrfBOT.js";
|
|
6
|
+
import { n as c, r as l, t as u } from "./InvoicingFileUploadProvider-DVh22OUB.js";
|
|
7
|
+
import { t as d } from "./formango.util-D5c2ql--.js";
|
|
8
|
+
import { t as f } from "./invoiceApprovalStatus.util-Bqq_bILG.js";
|
|
9
|
+
import { t as p } from "./DataProvider-BtnD-BzI.js";
|
|
10
|
+
import { t as m } from "./invoiceDetail.query-BNL6MkvC.js";
|
|
11
|
+
import { t as h } from "./issuerSettings.query-Cu-I6OAg.js";
|
|
12
|
+
import { z as g } from "zod";
|
|
13
|
+
import { useI18n as _ } from "vue-i18n";
|
|
14
|
+
import { computed as v, createBlock as y, createVNode as b, defineComponent as x, mergeProps as S, openBlock as C, unref as w, withCtx as T } from "vue";
|
|
15
|
+
import { useMutation as E } from "@wisemen/vue-core-api-utils";
|
|
16
|
+
import { UIDialogBody as D, UIDialogFooter as O, UIDialogFooterCancel as k, UIDialogFooterSubmit as A, UIDialogHeader as j, UIFormDialog as M, UIFormFieldGroup as N, UIFormFileUpload as P, UIFormSubmitButton as F, UISelect as I, UITextareaField as L, createSelectOptions as R, useToast as z } from "@wisemen/vue-core-design-system";
|
|
17
|
+
import { useForm as B } from "formango";
|
|
18
|
+
//#region src/modules/invoice/api/mutations/invoiceSendApproval.mutation.ts
|
|
19
|
+
function V() {
|
|
20
|
+
return E({
|
|
21
|
+
queryFn: (e) => e.params.hasActiveApproval ? r.restartApproval(e.params.invoiceUuid) : r.sendApproval(e.params.invoiceUuid),
|
|
22
|
+
queryKeysToInvalidate: {
|
|
23
|
+
invoiceActivityLogIndex: { invoiceUuid: (e) => e.invoiceUuid },
|
|
24
|
+
invoiceApprovalIndex: {},
|
|
25
|
+
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
26
|
+
invoiceIndex: {}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/modules/invoice/api/mutations/invoiceArchiveApproval.mutation.ts
|
|
32
|
+
function H() {
|
|
33
|
+
return E({
|
|
34
|
+
queryFn: (e) => r.archiveApproval(e.params.approvalUuid),
|
|
35
|
+
queryKeysToInvalidate: {
|
|
36
|
+
invoiceActivityLogIndex: { invoiceUuid: (e) => e.invoiceUuid },
|
|
37
|
+
invoiceApprovalIndex: {},
|
|
38
|
+
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
39
|
+
invoiceIndex: {}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalArchiveDialog.vue
|
|
45
|
+
var U = /* @__PURE__ */ x({
|
|
46
|
+
__name: "InvoiceApprovalArchiveDialog",
|
|
47
|
+
props: {
|
|
48
|
+
approvalUuid: {},
|
|
49
|
+
invoiceUuid: {}
|
|
50
|
+
},
|
|
51
|
+
emits: ["close"],
|
|
52
|
+
setup(e, { emit: t }) {
|
|
53
|
+
let n = e, r = t, i = _(), o = z(), s = H(), c = B({
|
|
54
|
+
initialState: {},
|
|
55
|
+
schema: g.object({}),
|
|
56
|
+
onSubmit: async () => {
|
|
57
|
+
let e = await s.execute({ params: {
|
|
58
|
+
approvalUuid: n.approvalUuid,
|
|
59
|
+
invoiceUuid: n.invoiceUuid
|
|
60
|
+
} });
|
|
61
|
+
e.isErr() ? o.apiError(e.error) : (o.show({ message: i.t("wise_invoicing.invoice.approval_archive.success") }), r("close"));
|
|
62
|
+
},
|
|
63
|
+
onSubmitError: () => {
|
|
64
|
+
o.unableToSave();
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
return (e, t) => (C(), y(w(M), {
|
|
68
|
+
form: w(c),
|
|
69
|
+
size: "sm",
|
|
70
|
+
onClose: t[0] ||= (e) => r("close")
|
|
71
|
+
}, {
|
|
72
|
+
default: T(() => [b(w(j), {
|
|
73
|
+
title: w(i).t("wise_invoicing.invoice.approval_archive.title"),
|
|
74
|
+
description: w(i).t("wise_invoicing.invoice.approval_archive.description"),
|
|
75
|
+
icon: w(a),
|
|
76
|
+
"icon-variant": "error"
|
|
77
|
+
}, null, 8, [
|
|
78
|
+
"title",
|
|
79
|
+
"description",
|
|
80
|
+
"icon"
|
|
81
|
+
]), b(w(O), null, {
|
|
82
|
+
default: T(() => [b(w(k)), b(w(A), { label: w(i).t("wise_invoicing.invoice.approval_archive.submit") }, null, 8, ["label"])]),
|
|
83
|
+
_: 1
|
|
84
|
+
})]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["form"]));
|
|
87
|
+
}
|
|
88
|
+
}), W = g.string().trim().max(500).nullable();
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/modules/invoice/api/mutations/invoiceApproveApproval.mutation.ts
|
|
91
|
+
function G() {
|
|
92
|
+
return E({
|
|
93
|
+
queryFn: (e) => r.approveApproval(e.params.approvalUuid, e.body),
|
|
94
|
+
queryKeysToInvalidate: {
|
|
95
|
+
invoiceActivityLogIndex: { invoiceUuid: (e) => e.invoiceUuid },
|
|
96
|
+
invoiceApprovalIndex: {},
|
|
97
|
+
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
98
|
+
invoiceIndex: {}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/modules/invoice/models/invoice/approval/invoiceApproveForm.model.ts
|
|
104
|
+
var K = g.object({
|
|
105
|
+
files: c.array(),
|
|
106
|
+
internalNote: W
|
|
107
|
+
});
|
|
108
|
+
function q(t) {
|
|
109
|
+
return K.superRefine((n, r) => {
|
|
110
|
+
t && n.files.length === 0 && r.addIssue({
|
|
111
|
+
code: "custom",
|
|
112
|
+
message: e.global.t("wise_invoicing.invoice.approve.proof_required"),
|
|
113
|
+
path: ["files"]
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue?vue&type=script&setup=true&lang.ts
|
|
119
|
+
var J = 26214400, Y = /* @__PURE__ */ x({
|
|
120
|
+
__name: "InvoiceApproveDialog",
|
|
121
|
+
props: {
|
|
122
|
+
approvalUuid: {},
|
|
123
|
+
invoiceUuid: {},
|
|
124
|
+
isProofOfApprovalRequired: { type: Boolean },
|
|
125
|
+
files: {},
|
|
126
|
+
internalNote: {}
|
|
127
|
+
},
|
|
128
|
+
emits: ["close"],
|
|
129
|
+
setup(e, { emit: t }) {
|
|
130
|
+
let n = e, r = t, a = /* @__PURE__ */ new Set([
|
|
131
|
+
"application/pdf",
|
|
132
|
+
"image/png",
|
|
133
|
+
"image/jpeg"
|
|
134
|
+
]), s = _(), c = z(), f = G(), p = B({
|
|
135
|
+
initialState: i.toForm(n.internalNote, n.files),
|
|
136
|
+
schema: q(n.isProofOfApprovalRequired),
|
|
137
|
+
onSubmit: async (e) => {
|
|
138
|
+
let t = await f.execute({
|
|
139
|
+
body: e,
|
|
140
|
+
params: {
|
|
141
|
+
approvalUuid: n.approvalUuid,
|
|
142
|
+
invoiceUuid: n.invoiceUuid
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
t.isErr() ? c.apiError(t.error) : (c.show({ message: s.t("wise_invoicing.invoice.approve.success") }), r("close"));
|
|
146
|
+
},
|
|
147
|
+
onSubmitError: () => {
|
|
148
|
+
c.unableToSave();
|
|
149
|
+
}
|
|
150
|
+
}), m = p.register("files");
|
|
151
|
+
async function h(e) {
|
|
152
|
+
let t = await l.getDownloadUrl(e.uuid);
|
|
153
|
+
t !== null && window.open(t, "_blank", "noopener");
|
|
154
|
+
}
|
|
155
|
+
let g = p.register("internalNote");
|
|
156
|
+
function v(e) {
|
|
157
|
+
return a.has(e.type) ? e.size > J ? s.t("wise_invoicing.invoice.approve.proof_too_large") : !0 : s.t("wise_invoicing.invoice.approve.proof_invalid_type");
|
|
158
|
+
}
|
|
159
|
+
return (e, t) => (C(), y(w(M), {
|
|
160
|
+
form: w(p),
|
|
161
|
+
size: "sm",
|
|
162
|
+
onClose: t[0] ||= (e) => r("close")
|
|
163
|
+
}, {
|
|
164
|
+
default: T(() => [
|
|
165
|
+
b(w(j), {
|
|
166
|
+
title: w(s).t("wise_invoicing.invoice.approve.title"),
|
|
167
|
+
description: w(s).t("wise_invoicing.invoice.approve.description"),
|
|
168
|
+
icon: w(o),
|
|
169
|
+
"icon-variant": "success"
|
|
170
|
+
}, null, 8, [
|
|
171
|
+
"title",
|
|
172
|
+
"description",
|
|
173
|
+
"icon"
|
|
174
|
+
]),
|
|
175
|
+
b(w(D), null, {
|
|
176
|
+
default: T(() => [b(w(N), null, {
|
|
177
|
+
default: T(() => [b(u, null, {
|
|
178
|
+
default: T(() => [b(w(P), S(w(d)(w(m)), {
|
|
179
|
+
label: w(s).t("wise_invoicing.invoice.approval.files_label"),
|
|
180
|
+
accept: Array.from(w(a)),
|
|
181
|
+
description: w(s).t("wise_invoicing.invoice.approve.fields.proof_description"),
|
|
182
|
+
hint: w(s).t("wise_invoicing.invoice.approve.fields.proof_hint"),
|
|
183
|
+
"is-required": n.isProofOfApprovalRequired,
|
|
184
|
+
"is-valid-file": v,
|
|
185
|
+
preprocess: w(l).preprocess,
|
|
186
|
+
class: "w-full",
|
|
187
|
+
onDownload: h
|
|
188
|
+
}), null, 16, [
|
|
189
|
+
"label",
|
|
190
|
+
"accept",
|
|
191
|
+
"description",
|
|
192
|
+
"hint",
|
|
193
|
+
"is-required",
|
|
194
|
+
"preprocess"
|
|
195
|
+
])]),
|
|
196
|
+
_: 1
|
|
197
|
+
}), b(w(L), S(w(d)(w(g)), {
|
|
198
|
+
label: w(s).t("wise_invoicing.invoice.approve.fields.note"),
|
|
199
|
+
placeholder: w(s).t("wise_invoicing.invoice.approve.fields.note_placeholder")
|
|
200
|
+
}), null, 16, ["label", "placeholder"])]),
|
|
201
|
+
_: 1
|
|
202
|
+
})]),
|
|
203
|
+
_: 1
|
|
204
|
+
}),
|
|
205
|
+
b(w(O), null, {
|
|
206
|
+
default: T(() => [b(w(k)), b(w(F), { label: w(s).t("wise_invoicing.invoice.approve.submit") }, null, 8, ["label"])]),
|
|
207
|
+
_: 1
|
|
208
|
+
})
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["form"]));
|
|
212
|
+
}
|
|
213
|
+
}), X = /* @__PURE__ */ x({
|
|
214
|
+
inheritAttrs: !1,
|
|
215
|
+
__name: "InvoiceApproveDialogDataProvider",
|
|
216
|
+
props: {
|
|
217
|
+
approvalUuid: {},
|
|
218
|
+
invoiceUuid: {}
|
|
219
|
+
},
|
|
220
|
+
emits: ["close"],
|
|
221
|
+
setup(e, { emit: t }) {
|
|
222
|
+
let n = e, r = t, i = h(), a = m(v(() => n.invoiceUuid));
|
|
223
|
+
return (e, t) => (C(), y(p, { queries: {
|
|
224
|
+
invoice: w(a),
|
|
225
|
+
issuerSettings: w(i)
|
|
226
|
+
} }, {
|
|
227
|
+
default: T(({ data: i }) => [b(Y, S(e.$attrs, {
|
|
228
|
+
"approval-uuid": n.approvalUuid,
|
|
229
|
+
files: i.invoice.approvalFiles,
|
|
230
|
+
"internal-note": i.invoice.approvalInternalNote,
|
|
231
|
+
"invoice-uuid": n.invoiceUuid,
|
|
232
|
+
"is-proof-of-approval-required": i.issuerSettings.requiresInvoiceApprovalFile,
|
|
233
|
+
onClose: t[0] ||= (e) => r("close")
|
|
234
|
+
}), null, 16, [
|
|
235
|
+
"approval-uuid",
|
|
236
|
+
"files",
|
|
237
|
+
"internal-note",
|
|
238
|
+
"invoice-uuid",
|
|
239
|
+
"is-proof-of-approval-required"
|
|
240
|
+
])]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["queries"]));
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/modules/invoice/api/mutations/invoiceRejectApproval.mutation.ts
|
|
247
|
+
function Z() {
|
|
248
|
+
return E({
|
|
249
|
+
queryFn: (e) => r.rejectApproval(e.params.approvalUuid, e.body),
|
|
250
|
+
queryKeysToInvalidate: {
|
|
251
|
+
invoiceActivityLogIndex: { invoiceUuid: (e) => e.invoiceUuid },
|
|
252
|
+
invoiceApprovalIndex: {},
|
|
253
|
+
invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
|
|
254
|
+
invoiceIndex: {}
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/modules/invoice/models/invoice/approval/invoiceRejectForm.model.ts
|
|
260
|
+
var Q = g.object({
|
|
261
|
+
files: c.array(),
|
|
262
|
+
internalNote: W,
|
|
263
|
+
reason: g.enum(t).nullable()
|
|
264
|
+
}).superRefine((n, r) => {
|
|
265
|
+
n.reason === null ? r.addIssue({
|
|
266
|
+
code: "custom",
|
|
267
|
+
message: e.global.t("wise_invoicing.invoice.approval.validation.required"),
|
|
268
|
+
path: ["reason"]
|
|
269
|
+
}) : n.reason === t.OTHER && (n.internalNote ?? "") === "" && r.addIssue({
|
|
270
|
+
code: "custom",
|
|
271
|
+
message: e.global.t("wise_invoicing.invoice.approval.validation.required"),
|
|
272
|
+
path: ["internalNote"]
|
|
273
|
+
});
|
|
274
|
+
}), $ = 10485760, ee = /* @__PURE__ */ x({
|
|
275
|
+
__name: "InvoiceRejectDialog",
|
|
276
|
+
props: {
|
|
277
|
+
approvalUuid: {},
|
|
278
|
+
invoiceUuid: {},
|
|
279
|
+
files: {},
|
|
280
|
+
internalNote: {}
|
|
281
|
+
},
|
|
282
|
+
emits: ["close"],
|
|
283
|
+
setup(e, { emit: r }) {
|
|
284
|
+
let i = e, a = r, o = _(), c = z(), p = Z(), m = B({
|
|
285
|
+
initialState: n.toForm(i.internalNote, i.files),
|
|
286
|
+
schema: Q,
|
|
287
|
+
onSubmit: async (e) => {
|
|
288
|
+
let t = await p.execute({
|
|
289
|
+
body: e,
|
|
290
|
+
params: {
|
|
291
|
+
approvalUuid: i.approvalUuid,
|
|
292
|
+
invoiceUuid: i.invoiceUuid
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
t.isErr() ? c.apiError(t.error) : (c.show({ message: o.t("wise_invoicing.invoice.reject.success") }), a("close"));
|
|
296
|
+
},
|
|
297
|
+
onSubmitError: () => {
|
|
298
|
+
c.unableToSave();
|
|
299
|
+
}
|
|
300
|
+
}), h = m.register("files");
|
|
301
|
+
async function g(e) {
|
|
302
|
+
let t = await l.getDownloadUrl(e.uuid);
|
|
303
|
+
t !== null && window.open(t, "_blank", "noopener");
|
|
304
|
+
}
|
|
305
|
+
let x = m.register("reason"), E = m.register("internalNote"), A = v(() => R([...Object.values(t).filter((e) => e !== t.OTHER), t.OTHER]));
|
|
306
|
+
function V(e) {
|
|
307
|
+
return o.t(f.getRejectionReasonTranslationKey(e));
|
|
308
|
+
}
|
|
309
|
+
let H = v(() => x.modelValue.value === t.OTHER);
|
|
310
|
+
function U(e) {
|
|
311
|
+
return e.size > $ ? o.t("wise_invoicing.invoice.reject.attachment_too_large") : !0;
|
|
312
|
+
}
|
|
313
|
+
return (e, t) => (C(), y(w(M), {
|
|
314
|
+
form: w(m),
|
|
315
|
+
size: "sm",
|
|
316
|
+
onClose: t[0] ||= (e) => a("close")
|
|
317
|
+
}, {
|
|
318
|
+
default: T(() => [
|
|
319
|
+
b(w(j), {
|
|
320
|
+
title: w(o).t("wise_invoicing.invoice.reject.title"),
|
|
321
|
+
description: w(o).t("wise_invoicing.invoice.reject.description"),
|
|
322
|
+
icon: w(s),
|
|
323
|
+
"icon-variant": "warning"
|
|
324
|
+
}, null, 8, [
|
|
325
|
+
"title",
|
|
326
|
+
"description",
|
|
327
|
+
"icon"
|
|
328
|
+
]),
|
|
329
|
+
b(w(D), null, {
|
|
330
|
+
default: T(() => [b(w(N), null, {
|
|
331
|
+
default: T(() => [
|
|
332
|
+
b(w(I), S(w(d)(w(x)), {
|
|
333
|
+
"display-fn": V,
|
|
334
|
+
"is-required": !0,
|
|
335
|
+
items: A.value,
|
|
336
|
+
label: w(o).t("wise_invoicing.invoice.reject.fields.reason")
|
|
337
|
+
}), null, 16, ["items", "label"]),
|
|
338
|
+
b(w(L), S(w(d)(w(E)), {
|
|
339
|
+
"is-required": H.value,
|
|
340
|
+
label: w(o).t("wise_invoicing.invoice.reject.fields.remark"),
|
|
341
|
+
placeholder: w(o).t("wise_invoicing.invoice.reject.fields.remark_placeholder")
|
|
342
|
+
}), null, 16, [
|
|
343
|
+
"is-required",
|
|
344
|
+
"label",
|
|
345
|
+
"placeholder"
|
|
346
|
+
]),
|
|
347
|
+
b(u, null, {
|
|
348
|
+
default: T(() => [b(w(P), S(w(d)(w(h)), {
|
|
349
|
+
label: w(o).t("wise_invoicing.invoice.approval.files_label"),
|
|
350
|
+
accept: [
|
|
351
|
+
"application/pdf",
|
|
352
|
+
"image/png",
|
|
353
|
+
"image/jpeg"
|
|
354
|
+
],
|
|
355
|
+
description: w(o).t("wise_invoicing.invoice.reject.fields.attachment_description"),
|
|
356
|
+
hint: w(o).t("wise_invoicing.invoice.reject.fields.attachment_hint"),
|
|
357
|
+
"is-valid-file": U,
|
|
358
|
+
preprocess: w(l).preprocess,
|
|
359
|
+
class: "w-full",
|
|
360
|
+
onDownload: g
|
|
361
|
+
}), null, 16, [
|
|
362
|
+
"label",
|
|
363
|
+
"description",
|
|
364
|
+
"hint",
|
|
365
|
+
"preprocess"
|
|
366
|
+
])]),
|
|
367
|
+
_: 1
|
|
368
|
+
})
|
|
369
|
+
]),
|
|
370
|
+
_: 1
|
|
371
|
+
})]),
|
|
372
|
+
_: 1
|
|
373
|
+
}),
|
|
374
|
+
b(w(O), null, {
|
|
375
|
+
default: T(() => [b(w(k)), b(w(F), { label: w(o).t("wise_invoicing.invoice.reject.submit") }, null, 8, ["label"])]),
|
|
376
|
+
_: 1
|
|
377
|
+
})
|
|
378
|
+
]),
|
|
379
|
+
_: 1
|
|
380
|
+
}, 8, ["form"]));
|
|
381
|
+
}
|
|
382
|
+
}), te = /* @__PURE__ */ x({
|
|
383
|
+
inheritAttrs: !1,
|
|
384
|
+
__name: "InvoiceRejectDialogDataProvider",
|
|
385
|
+
props: {
|
|
386
|
+
approvalUuid: {},
|
|
387
|
+
invoiceUuid: {}
|
|
388
|
+
},
|
|
389
|
+
emits: ["close"],
|
|
390
|
+
setup(e, { emit: t }) {
|
|
391
|
+
let n = e, r = t, i = m(v(() => n.invoiceUuid));
|
|
392
|
+
return (e, t) => (C(), y(p, { queries: { invoice: w(i) } }, {
|
|
393
|
+
default: T(({ data: i }) => [b(ee, S(e.$attrs, {
|
|
394
|
+
"approval-uuid": n.approvalUuid,
|
|
395
|
+
files: i.invoice.approvalFiles,
|
|
396
|
+
"internal-note": i.invoice.approvalInternalNote,
|
|
397
|
+
"invoice-uuid": n.invoiceUuid,
|
|
398
|
+
onClose: t[0] ||= (e) => r("close")
|
|
399
|
+
}), null, 16, [
|
|
400
|
+
"approval-uuid",
|
|
401
|
+
"files",
|
|
402
|
+
"internal-note",
|
|
403
|
+
"invoice-uuid"
|
|
404
|
+
])]),
|
|
405
|
+
_: 1
|
|
406
|
+
}, 8, ["queries"]));
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
//#endregion
|
|
410
|
+
export { V as a, U as i, X as n, W as r, te as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import { M as e, x as t } from "./documentTitle.composable-
|
|
1
|
+
import "./api.util-lGbimoKL.js";
|
|
2
|
+
import { M as e, x as t } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
3
3
|
import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { c as r } from "./customFieldDefinitionIndex.query-
|
|
4
|
+
import { c as r } from "./customFieldDefinitionIndex.query-Co7hoMow.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createVNode as c, defineComponent as l, openBlock as u, unref as d, withCtx as f } from "vue";
|
|
7
7
|
import { UIBadge as p, UIColumnLayout as m, UIText as h, UITooltip as g, UITooltipContent as _ } from "@wisemen/vue-core-design-system";
|
package/dist/{InvoicingFileUploadProvider-C3cyIUhL.js → InvoicingFileUploadProvider-DVh22OUB.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e,
|
|
2
|
-
import { T as i } from "./documentTitle.composable-
|
|
1
|
+
import { d as e, h as t, t as n, x as r } from "./api.util-lGbimoKL.js";
|
|
2
|
+
import { T as i } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
3
3
|
import { z as a } from "zod";
|
|
4
4
|
import { createBlock as o, defineComponent as s, openBlock as c, renderSlot as l, unref as u, withCtx as d } from "vue";
|
|
5
5
|
import { UIConfigProvider as f, useInjectConfigContext as p } from "@wisemen/vue-core-design-system";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import { A as t, j as n, k as r, l as i, t as a } from "./documentTitle.composable-
|
|
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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import { D as e, t } from "./documentTitle.composable-
|
|
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 };
|