@wisemen/wise-invoicing-web 0.1.1 → 0.2.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-D-qXZrPT.js +151 -0
- package/dist/{BillingDocumentDetailViewDataProvider-f5goWm_i.js → BillingDocumentDetailViewDataProvider-DDdtlW-2.js} +1386 -1450
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-5vi2pgRM.js → BillingDocumentPdf-ehdFB6mr.js} +4 -4
- package/dist/{CreditNoteDetailViewDataProvider-Byd1QvfY.js → CreditNoteDetailViewDataProvider-11a-JO3H.js} +201 -201
- package/dist/{CreditNotePdfViewDataProvider-DI4eQkpM.js → CreditNotePdfViewDataProvider-bfeaya3P.js} +3 -3
- package/dist/{CustomFieldValueText-BGbQwhON.js → CustomFieldValueText-CZQXGE5F.js} +81 -81
- package/dist/DataProvider-C3uEds9v.js +75 -0
- package/dist/{DunningCaseDetailViewDataProvider-DKuuysqS.js → DunningCaseDetailViewDataProvider-DC-ziMoO.js} +35 -35
- package/dist/{DunningCaseOverviewView-aWttPLrC.js → DunningCaseOverviewView-y_bCmi5j.js} +180 -180
- package/dist/{DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js → DunningCaseReminderPdfViewDataProvider-DNODfED_.js} +22 -23
- package/dist/{DunningCaseSendDialog-DyvA5R1p.js → DunningCaseSendDialog-BPXcqit5.js} +82 -82
- package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +870 -0
- package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +161 -0
- package/dist/InvoiceApproveDialog-2LXneG2r.js +308 -0
- package/dist/InvoiceDetailViewDataProvider-BYeaaQzL.js +2156 -0
- package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +318 -0
- package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +1620 -0
- package/dist/{InvoicePdfView-C-7m2g3b.js → InvoicePdfView-BJRTg_TH.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-BPiK110e.js → InvoicePdfViewDataProvider-CwI_uGm3.js} +4 -4
- package/dist/InvoicePublicPdfViewDataProvider-uZUfsr5K.js +45 -0
- package/dist/InvoicingFileUploadProvider-D9Xk4rQM.js +94 -0
- package/dist/{IssuerSettingsViewDataProvider-COqHGUE6.js → IssuerSettingsViewDataProvider-CGRa8F-2.js} +4 -4
- package/dist/{ReminderSettingsViewDataProvider-Dys4bUU7.js → ReminderSettingsViewDataProvider-1ucp3z2T.js} +58 -58
- package/dist/{api.util-BCSgCfpS.js → api.util-C_kMGlJN.js} +1456 -846
- package/dist/{billingDocumentDetail.transformer-BBn9R_cx.js → billingDocumentDetail.transformer-Da6_-Hv9.js} +58 -59
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +18 -1
- package/dist/client/types.gen.d.ts +1059 -106
- package/dist/client/zod.gen.d.ts +32759 -16136
- package/dist/{creditNoteDetail.query-BcPsB96h.js → creditNoteDetail.query-DLR7L0Ep.js} +30 -30
- package/dist/{dist-BBjpqvUl.js → dist-CoztMdYH.js} +614 -614
- package/dist/{dist-D9lp7NDv.js → dist-Cxdm09Lp.js} +210 -98
- package/dist/{documentTitle.composable-4ApFl9TZ.js → documentTitle.composable-DsBbzhXN.js} +23 -15
- package/dist/{customFieldValue.util-BwsX8exl.js → download.util-B5Q7KUC9.js} +6 -6
- package/dist/{i18n.lib-C6eb-F-e.js → i18n.lib-Cvr8pcDw.js} +272 -8
- package/dist/index.d.ts +297 -31
- package/dist/index.js +344 -324
- package/dist/invoice.service-DEEA9mal.js +745 -0
- package/dist/invoiceApproval.service-DvL3LliM.js +72 -0
- package/dist/invoiceApprovalStatus.util-3Zh10Pj8.js +79 -0
- package/dist/invoiceDeliveryStatus.util-nCsqDypY.js +211 -0
- package/dist/{invoiceDetail.query-Cek8nyaw.js → invoiceDetail.query-CRoH_SgM.js} +1 -1
- package/dist/{invoicingConfig.composable-DTmad1fe.js → invoicingConfig.composable-rxjGK882.js} +2 -2
- package/dist/{issuerSettings.query-Bvz-Oj5D.js → issuerSettings.query-Dc5gsaEm.js} +5 -5
- package/dist/libs/i18n.lib.d.ts +270 -6
- package/dist/locales/en-US.json.d.ts +136 -4
- package/dist/locales/nl-BE.json.d.ts +136 -4
- package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +0 -1
- package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceArchiveApproval.mutation.d.ts +6 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +9 -0
- package/dist/modules/invoice/api/mutations/invoiceRestoreFromProForma.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceSendApproval.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +14 -1
- package/dist/modules/invoice/components/InvoiceApprovalOutOfSyncIndicator.vue.d.ts +3 -0
- package/dist/{ui/DisplayState.vue.d.ts → modules/invoice/components/InvoiceApprovalStatusBadge.vue.d.ts} +7 -10
- package/dist/modules/invoice/components/InvoiceApprovalStatusChip.vue.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalTransformers.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUuid.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +13 -1
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +4 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/invoiceApproval.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +34 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +10 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +19 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +5 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalArchiveDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalRevertDialog.vue.d.ts +15 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceFinalizeOutOfSyncDialog.vue.d.ts +21 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +3 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableApprovalCell.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +3 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +2 -0
- package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +0 -5
- package/dist/modules/invoice-approval/actions/invoiceApproval.actions.d.ts +5 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalArchive.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalMarkAsApproved.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalReject.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +1 -0
- package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +8 -0
- package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -0
- package/dist/modules/invoice-approval/api/queries/invoiceApprovalIndex.query.d.ts +3 -0
- package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +15 -0
- package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -0
- package/dist/modules/invoice-approval/components/InvoiceApprovalReminderLevelIndicator.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfig.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +21 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.d.ts +5 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.model.d.ts +9 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/routes/invoiceApproval.routes.d.ts +24 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewActionsCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewAmountCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewInvoiceCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewMetrics.vue.d.ts +18 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewNextReminderCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewStatusCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +42 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +10 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewTableColumns.composable.d.ts +3 -0
- package/dist/modules/invoice-approval/use-cases/overview/views/InvoiceApprovalOverviewView.vue.d.ts +3 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
- package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Bhiz9jW7.js} +17 -4
- package/dist/reminderConfig.query-snaHQmrY.js +309 -0
- package/dist/routes/invoicingRoutes.composable.d.ts +14 -6
- package/dist/search.composable-CU9OpyUB.js +52 -0
- package/dist/{src-BFgnUugN.js → src-DUSgQTKr.js} +45 -45
- package/dist/style.css +1 -1
- package/dist/types/queryKey.type.d.ts +3 -2
- package/dist/utils/html.util.d.ts +4 -0
- package/package.json +2 -1
- package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +0 -25
- package/dist/AirlineIcon-Z6sH_StM.js +0 -26
- package/dist/AirplaneIcon-C-nSkD1w.js +0 -19
- package/dist/AirportIcon-m4itDKCV.js +0 -16
- package/dist/AlertTriangleIcon-DtYLCC-Y.js +0 -23
- package/dist/AllocationsIcon-hcg93Sll.js +0 -16
- package/dist/ArrowNarrowRightIcon-2-Sml68f.js +0 -23
- package/dist/AssetIcon-qOYs6Wna.js +0 -16
- package/dist/BarChartIcon-DDyzpV_3.js +0 -22
- package/dist/BellIcon-DF1OBFta.js +0 -21
- package/dist/BuildingIcon-CC5PMNeP.js +0 -22
- package/dist/ChargerIcon-aM_endLr.js +0 -16
- package/dist/ChevronDownIcon-4QiK-Z6-.js +0 -23
- package/dist/ChevronUpIcon-qBsjZ5Dz.js +0 -23
- package/dist/ClockIcon-BNiPCaiB.js +0 -23
- package/dist/ClockSnoozeIcon-BxGfwJB6.js +0 -23
- package/dist/CopyIcon-DH5ly0dZ.js +0 -19
- package/dist/DataProvider-Dj34ljUX.js +0 -75
- package/dist/DownloadCloudIcon-Cf8ftklG.js +0 -22
- package/dist/EditIcon-Dr7OHBBR.js +0 -21
- package/dist/EraserIcon-B1VJSvdI.js +0 -23
- package/dist/FileIcon-ssmQI5Yl.js +0 -23
- package/dist/FilterLinesIcon-C7YdyPBk.js +0 -23
- package/dist/GlobeIcon-BfRM6Ike.js +0 -22
- package/dist/HelpIcon-BrJ49P5y.js +0 -22
- package/dist/HourGlassIcon-D9rfU1Is.js +0 -22
- package/dist/InfoCircleIcon-Ee0SyiMc.js +0 -23
- package/dist/InvoiceDetailViewDataProvider-BU6jZfD7.js +0 -1670
- package/dist/InvoiceOverviewViewDataProvider-i8tXATJE.js +0 -1677
- package/dist/InvoicePublicPdfViewDataProvider-BJe-8hC5.js +0 -45
- package/dist/KeyboardIcon-T3o_g-1c.js +0 -22
- package/dist/LinkExternalIcon-BkHS4fCx.js +0 -22
- package/dist/LinkIcon-DuPwae98.js +0 -22
- package/dist/MarkerIcon-B1Jqenjb.js +0 -28
- package/dist/MobileBatteryIcon-GZ1SMRDV.js +0 -16
- package/dist/MonitorIcon-pbK22reU.js +0 -22
- package/dist/NotificationIcon-Ctv8vyWt.js +0 -19
- package/dist/ParkingIcon-DnUPW3pB.js +0 -24
- package/dist/PlanningIcon-CXvrskgj.js +0 -16
- package/dist/PreferenceIcon-BHS8uDyi.js +0 -22
- package/dist/ReceiptCheckIcon-QTestqCJ.js +0 -23
- package/dist/RefreshIcon-DShY-aoS.js +0 -22
- package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +0 -28
- package/dist/RewindIcon-GWg2AQax.js +0 -22
- package/dist/SettingsIcon-CBLJ6B5u.js +0 -25
- package/dist/ShieldIcon-CVnrOcxl.js +0 -19
- package/dist/ShieldOffIcon-B9l0dDVb.js +0 -23
- package/dist/SignOutIcon-CmDkjJ5F.js +0 -21
- package/dist/SlashCircleIcon-jY5FBko5.js +0 -22
- package/dist/StandIcon-CoYnBLMn.js +0 -23
- package/dist/StarsIcon-D7ZlqOW7.js +0 -22
- package/dist/StopwatchIcon-BK0vh1lg.js +0 -22
- package/dist/TargetIcon-HMWj77-Q.js +0 -22
- package/dist/ThreeDotsIcon-BtFruOKz.js +0 -32
- package/dist/ToolIcon-DRfDb7fE.js +0 -22
- package/dist/TrashIcon-BwxBjHv5.js +0 -19
- package/dist/TurnaroundIcon-b1X61TwZ.js +0 -27
- package/dist/UploadCloudIcon-BF0equKg.js +0 -22
- package/dist/UserIcon-B0rCC6KE.js +0 -22
- package/dist/UsersIcon-cK5l_zKG.js +0 -22
- package/dist/VerifiedIcon-CELYlqcv.js +0 -22
- package/dist/WifiIcon--JPvMNEF.js +0 -23
- package/dist/WifiOffIcon-BS2KftcP.js +0 -23
- package/dist/ZapIcon-BHwcIQc0.js +0 -23
- package/dist/ZoomInIcon-Cu6r915V.js +0 -23
- package/dist/ZoomOutIcon-DwB4FRj-.js +0 -23
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/instant.transformer-KmBsH3E9.js +0 -18
- package/dist/invoice.service-Bb8VqQvc.js +0 -635
- package/dist/invoiceDeliveryStatus.util-BPkGCQM6.js +0 -331
- package/dist/reminderConfig.query-DsJNqqi7.js +0 -331
- package/dist/search.composable-BCtYqudV.js +0 -52
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { t } from "./documentTitle.composable-
|
|
2
|
+
import { t } from "./documentTitle.composable-DsBbzhXN.js";
|
|
3
3
|
import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as a, r as o } from "./reminderConfig.query-
|
|
7
|
-
import {
|
|
8
|
-
import { i as m, o as h, r as g, t as _ } from "./DunningCaseSendDialog-
|
|
9
|
-
import { f as v, i as y, n as ee, o as te, r as b, s as ne } from "./dist-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
4
|
+
import { n as r } from "./invoicingConfig.composable-rxjGK882.js";
|
|
5
|
+
import { t as i } from "./search.composable-CU9OpyUB.js";
|
|
6
|
+
import { n as a, r as o } from "./reminderConfig.query-snaHQmrY.js";
|
|
7
|
+
import { C as s, M as c, R as l, c as u, ct as d, l as f, ot as p } from "./dist-Cxdm09Lp.js";
|
|
8
|
+
import { i as m, o as h, r as g, t as _ } from "./DunningCaseSendDialog-BPXcqit5.js";
|
|
9
|
+
import { f as v, i as y, n as ee, o as te, r as b, s as ne } from "./dist-CoztMdYH.js";
|
|
10
|
+
import { z as re } from "zod";
|
|
11
|
+
import { useI18n as x } from "vue-i18n";
|
|
12
|
+
import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createVNode as O, defineComponent as k, nextTick as A, normalizeClass as j, normalizeStyle as M, onMounted as N, openBlock as P, ref as F, renderList as I, toDisplayString as L, unref as R, watch as ie, withCtx as z } from "vue";
|
|
13
|
+
import { useMutation as B, useOffsetInfiniteQuery as V } from "@wisemen/vue-core-api-utils";
|
|
14
|
+
import { useRouter as H } from "vue-router";
|
|
15
|
+
import { Temporal as U } from "temporal-polyfill";
|
|
16
|
+
import { UIBadge as W, UIButton as G, UIDashboardPage as ae, UIDialogBody as K, UIDialogFooter as q, UIDialogFooterCancel as J, UIDialogFooterPrimary as Y, UIDialogHeader as X, UIFormDialog as oe, UITable as se, UITableCell as Z, UITableCellInteractiveElement as ce, UITabs as le, UITabsItem as ue, UITabsList as de, createComponent as Q, defineTableColumns as fe, useOverlay as pe, useToast as me } from "@wisemen/vue-core-design-system";
|
|
17
|
+
import { createAction as he } from "@wisemen/vue-core-actions";
|
|
18
18
|
import { useForm as ge } from "formango";
|
|
19
19
|
//#region src/modules/dunning-case/api/queries/dunningCaseIndex.query.ts
|
|
20
20
|
function $(e) {
|
|
21
|
-
let t =
|
|
21
|
+
let t = C(() => ({
|
|
22
22
|
customerUuid: e.params.customerUuid?.value,
|
|
23
23
|
isOpen: e.params.isOpen?.value,
|
|
24
24
|
dunningCaseUuids: e.params.dunningCaseUuids?.value,
|
|
25
25
|
level: e.params.level?.value
|
|
26
26
|
}));
|
|
27
|
-
return
|
|
28
|
-
isEnabled:
|
|
27
|
+
return V("dunningCaseIndex", {
|
|
28
|
+
isEnabled: C(() => e.isEnabled?.value ?? !0),
|
|
29
29
|
params: { queryParams: t },
|
|
30
30
|
queryFn: (e) => o.getAll({
|
|
31
31
|
...t.value,
|
|
@@ -36,8 +36,8 @@ function $(e) {
|
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/modules/dunning-case/actions/dunningCaseNavigateToCustomer.action.ts
|
|
38
38
|
function _e() {
|
|
39
|
-
let e =
|
|
40
|
-
return
|
|
39
|
+
let e = x(), t = H(), n = r();
|
|
40
|
+
return he({
|
|
41
41
|
id: "dunning-case-navigate-to-customer",
|
|
42
42
|
isApplicable: (e) => {
|
|
43
43
|
let t = e.targetedModelOfType("DunningCase");
|
|
@@ -54,8 +54,8 @@ function _e() {
|
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/modules/dunning-case/actions/dunningCaseNavigateToDetail.action.ts
|
|
56
56
|
function ve() {
|
|
57
|
-
let e =
|
|
58
|
-
return
|
|
57
|
+
let e = x(), t = H();
|
|
58
|
+
return he({
|
|
59
59
|
id: "dunning-case-navigate-to-detail",
|
|
60
60
|
isApplicable: (e) => e.hasTargetedModelsOfType("DunningCase"),
|
|
61
61
|
name: () => e.t("module.dunning_case.overview.menu.view_case"),
|
|
@@ -66,12 +66,12 @@ function ve() {
|
|
|
66
66
|
params: { dunningCaseUuid: n.uuid }
|
|
67
67
|
});
|
|
68
68
|
},
|
|
69
|
-
icon: () =>
|
|
69
|
+
icon: () => c
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewMetrics.vue?vue&type=script&setup=true&lang.ts
|
|
74
|
-
var ye = ["aria-label"], be = { class: "text-xs font-semibold text-secondary uppercase" }, xe = { class: "mt-xl font-mono text-4xl font-semibold text-primary" }, Se = { class: "mt-xs text-sm text-secondary" }, Ce = { class: "lg:col-span-2" }, we = { class: "flex h-1.5 w-full overflow-hidden rounded-full bg-secondary" }, Te = { class: "mt-xl grid grid-cols-1 gap-md sm:grid-cols-3" }, Ee = { class: "flex min-w-0 items-center gap-sm" }, De = { class: "truncate text-sm text-secondary" }, Oe = { class: "shrink-0 font-mono text-sm font-semibold text-primary tabular-nums" }, ke = /* @__PURE__ */
|
|
74
|
+
var ye = ["aria-label"], be = { class: "text-xs font-semibold text-secondary uppercase" }, xe = { class: "mt-xl font-mono text-4xl font-semibold text-primary" }, Se = { class: "mt-xs text-sm text-secondary" }, Ce = { class: "lg:col-span-2" }, we = { class: "flex h-1.5 w-full overflow-hidden rounded-full bg-secondary" }, Te = { class: "mt-xl grid grid-cols-1 gap-md sm:grid-cols-3" }, Ee = { class: "flex min-w-0 items-center gap-sm" }, De = { class: "truncate text-sm text-secondary" }, Oe = { class: "shrink-0 font-mono text-sm font-semibold text-primary tabular-nums" }, ke = /* @__PURE__ */ k({
|
|
75
75
|
__name: "DunningCaseOverviewMetrics",
|
|
76
76
|
props: {
|
|
77
77
|
hasLevelCountError: { type: Boolean },
|
|
@@ -79,61 +79,61 @@ var ye = ["aria-label"], be = { class: "text-xs font-semibold text-secondary upp
|
|
|
79
79
|
levelCountTotal: {}
|
|
80
80
|
},
|
|
81
81
|
setup(e) {
|
|
82
|
-
let t = e, n =
|
|
82
|
+
let t = e, n = x(), r = C(() => t.hasLevelCountError ? n.t("module.dunning_case.overview.metrics_unavailable") : t.levelCountTotal === null ? n.t("module.dunning_case.common.loading") : n.t("module.dunning_case.overview.case_count", { count: t.levelCountTotal }));
|
|
83
83
|
function i(e) {
|
|
84
84
|
return e === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: e });
|
|
85
85
|
}
|
|
86
|
-
return (t, a) => (
|
|
87
|
-
"aria-label":
|
|
86
|
+
return (t, a) => (P(), E("section", {
|
|
87
|
+
"aria-label": R(n).t("module.dunning_case.overview.levels"),
|
|
88
88
|
class: "grid min-w-0 grid-cols-1 gap-2xl rounded-lg border border-secondary bg-primary p-2xl shadow-sm lg:grid-cols-3 lg:items-center"
|
|
89
|
-
}, [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
]),
|
|
89
|
+
}, [D("div", null, [
|
|
90
|
+
D("p", be, L(R(n).t("module.dunning_case.overview.levels")), 1),
|
|
91
|
+
D("p", xe, L(e.levelCountTotal ?? "—"), 1),
|
|
92
|
+
D("p", Se, L(r.value), 1)
|
|
93
|
+
]), D("div", Ce, [D("div", we, [(P(!0), E(S, null, I(e.levelCounts, (e, t) => (P(), E("span", {
|
|
94
94
|
key: t,
|
|
95
|
-
class:
|
|
95
|
+
class: j({
|
|
96
96
|
"bg-brand-500": t === 0,
|
|
97
97
|
"bg-error-solid": t === 2,
|
|
98
98
|
"bg-warning-solid": t === 1
|
|
99
99
|
}),
|
|
100
|
-
style:
|
|
101
|
-
}, null, 6))), 128))]),
|
|
100
|
+
style: M({ flexGrow: e ?? 0 })
|
|
101
|
+
}, null, 6))), 128))]), D("div", Te, [(P(!0), E(S, null, I(e.levelCounts, (e, t) => (P(), E("div", {
|
|
102
102
|
key: t,
|
|
103
103
|
class: "flex items-center justify-between gap-xl"
|
|
104
|
-
}, [
|
|
104
|
+
}, [D("div", Ee, [D("span", { class: j([{
|
|
105
105
|
"bg-brand-500": t === 0,
|
|
106
106
|
"bg-error-solid": t === 2,
|
|
107
107
|
"bg-warning-solid": t === 1
|
|
108
|
-
}, "size-2 shrink-0 rounded-full"]) }, null, 2),
|
|
108
|
+
}, "size-2 shrink-0 rounded-full"]) }, null, 2), D("p", De, L(i(t + 1)), 1)]), D("p", Oe, L(e ?? "—"), 1)]))), 128))])])], 8, ye));
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.ts
|
|
113
113
|
function Ae(e) {
|
|
114
|
-
let t =
|
|
114
|
+
let t = C(() => !0), { isFetchingNextPage: n, isLoading: r, fetchNextPage: i, result: a } = $({ params: {
|
|
115
115
|
customerUuid: e.customerUuid,
|
|
116
116
|
isOpen: t,
|
|
117
|
-
level:
|
|
118
|
-
} }), o =
|
|
117
|
+
level: C(() => e.activeLevel.value ?? void 0)
|
|
118
|
+
} }), o = C(() => a.value.isOk() ? a.value.getValue().data : []), s = C(() => a.value.isErr() ? a.value.getError() : null), c = $({ params: {
|
|
119
119
|
customerUuid: e.customerUuid,
|
|
120
120
|
isOpen: t,
|
|
121
|
-
level:
|
|
121
|
+
level: C(() => 1)
|
|
122
122
|
} }), l = $({ params: {
|
|
123
123
|
customerUuid: e.customerUuid,
|
|
124
124
|
isOpen: t,
|
|
125
|
-
level:
|
|
125
|
+
level: C(() => 2)
|
|
126
126
|
} }), u = $({ params: {
|
|
127
127
|
customerUuid: e.customerUuid,
|
|
128
128
|
isOpen: t,
|
|
129
|
-
level:
|
|
130
|
-
} }), d =
|
|
129
|
+
level: C(() => 3)
|
|
130
|
+
} }), d = C(() => [
|
|
131
131
|
c,
|
|
132
132
|
l,
|
|
133
133
|
u
|
|
134
134
|
].map((e) => e.result.value.isOk() ? e.result.value.getValue().meta.total : null));
|
|
135
135
|
return {
|
|
136
|
-
hasLevelCountError:
|
|
136
|
+
hasLevelCountError: C(() => [
|
|
137
137
|
c,
|
|
138
138
|
l,
|
|
139
139
|
u
|
|
@@ -144,15 +144,15 @@ function Ae(e) {
|
|
|
144
144
|
error: s,
|
|
145
145
|
fetchNextPage: i,
|
|
146
146
|
levelCounts: d,
|
|
147
|
-
levelCountTotal:
|
|
147
|
+
levelCountTotal: C(() => d.value.every((e) => e !== null) ? d.value.reduce((e, t) => e + t, 0) : null),
|
|
148
148
|
result: a
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
//#endregion
|
|
152
152
|
//#region src/modules/dunning-case/api/queries/dunningCaseCustomerIndex.query.ts
|
|
153
153
|
function je(e) {
|
|
154
|
-
let t =
|
|
155
|
-
return
|
|
154
|
+
let t = C(() => ({ search: e.params.search?.value }));
|
|
155
|
+
return V("dunningCaseCustomerIndex", {
|
|
156
156
|
params: { queryParams: t },
|
|
157
157
|
queryFn: (e) => h.getAll(t.value.search, e)
|
|
158
158
|
});
|
|
@@ -160,7 +160,7 @@ function je(e) {
|
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region src/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewFilters.composable.ts
|
|
162
162
|
function Me() {
|
|
163
|
-
let e =
|
|
163
|
+
let e = x(), t = i({ debounceMs: 250 }), n = je({ params: { search: t.debouncedSearch } }), r = C(() => n.result.value.isOk() ? n.result.value.getValue().data : []), a = y({
|
|
164
164
|
actionGroup: { name: "dunning-cases" },
|
|
165
165
|
filters: [v({
|
|
166
166
|
defaultValue: {
|
|
@@ -168,13 +168,13 @@ function Me() {
|
|
|
168
168
|
value: []
|
|
169
169
|
},
|
|
170
170
|
disableOperators: !0,
|
|
171
|
-
displayFn: (e) =>
|
|
171
|
+
displayFn: (e) => r.value.find((t) => t.uuid === e)?.name ?? e,
|
|
172
172
|
key: "customerUuids",
|
|
173
173
|
label: e.t("module.dunning_case.overview.filter_customer"),
|
|
174
|
-
options: async (e) => a.values.value.customerUuids.value.length > 0 ? [] : (t.updateSearch(e), await
|
|
174
|
+
options: async (e) => a.values.value.customerUuids.value.length > 0 ? [] : (t.updateSearch(e), await A(), r.value.map((e) => e.uuid))
|
|
175
175
|
})]
|
|
176
176
|
});
|
|
177
|
-
return
|
|
177
|
+
return ie(() => a.values.value.customerUuids, (e) => {
|
|
178
178
|
(e.operator !== b.INCLUDES || e.value.length > 1) && (a.values.value.customerUuids = {
|
|
179
179
|
operator: b.INCLUDES,
|
|
180
180
|
value: e.value.slice(-1)
|
|
@@ -183,36 +183,36 @@ function Me() {
|
|
|
183
183
|
deep: !0,
|
|
184
184
|
immediate: !0
|
|
185
185
|
}), {
|
|
186
|
-
customerUuid:
|
|
186
|
+
customerUuid: C(() => a.values.value.customerUuids.value[0]),
|
|
187
187
|
filters: a
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
//#endregion
|
|
191
191
|
//#region src/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue?vue&type=script&setup=true&lang.ts
|
|
192
|
-
var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PURE__ */
|
|
192
|
+
var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PURE__ */ k({
|
|
193
193
|
__name: "DunningCaseOverviewActionsCell",
|
|
194
194
|
props: { item: {} },
|
|
195
195
|
emits: ["send", "viewCustomer"],
|
|
196
196
|
setup(e, { emit: t }) {
|
|
197
|
-
let n = e,
|
|
198
|
-
return (t, n) => (
|
|
199
|
-
default:
|
|
200
|
-
default:
|
|
197
|
+
let n = e, i = t, a = x(), o = r(), c = C(() => o.getCustomerDetailRoute(n.item.customer.uuid)), l = C(() => n.item.blockedReason !== null), u = C(() => g(n.item.latestCreatedReminder)), f = C(() => l.value ? a.t("module.dunning_case.overview.blocked") : n.item.nextReminderOn === null ? a.t("module.dunning_case.overview.not_scheduled") : a.t("module.dunning_case.overview.send"));
|
|
198
|
+
return (t, n) => (P(), w(R(Z), null, {
|
|
199
|
+
default: z(() => [O(R(ce), { class: "w-full" }, {
|
|
200
|
+
default: z(() => [D("div", Ne, [l.value && c.value !== null ? (P(), w(R(G), {
|
|
201
201
|
key: 0,
|
|
202
|
-
"icon-right":
|
|
203
|
-
label:
|
|
202
|
+
"icon-right": R(s),
|
|
203
|
+
label: R(a).t("module.dunning_case.overview.fix"),
|
|
204
204
|
size: "sm",
|
|
205
205
|
variant: "secondary",
|
|
206
|
-
onClick: n[0] ||= (e) =>
|
|
207
|
-
}, null, 8, ["icon-right", "label"])) : (
|
|
206
|
+
onClick: n[0] ||= (e) => i("viewCustomer")
|
|
207
|
+
}, null, 8, ["icon-right", "label"])) : (P(), w(R(G), {
|
|
208
208
|
key: 1,
|
|
209
|
-
"icon-right": e.item.canSendReminder ?
|
|
210
|
-
"is-disabled":
|
|
209
|
+
"icon-right": e.item.canSendReminder ? R(d) : void 0,
|
|
210
|
+
"is-disabled": l.value || !e.item.canSendReminder,
|
|
211
211
|
"is-loading": u.value === "sending",
|
|
212
|
-
label:
|
|
212
|
+
label: f.value,
|
|
213
213
|
size: "sm",
|
|
214
214
|
variant: "secondary",
|
|
215
|
-
onClick: n[1] ||= (e) =>
|
|
215
|
+
onClick: n[1] ||= (e) => i("send")
|
|
216
216
|
}, null, 8, [
|
|
217
217
|
"icon-right",
|
|
218
218
|
"is-disabled",
|
|
@@ -224,38 +224,38 @@ var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PU
|
|
|
224
224
|
_: 1
|
|
225
225
|
}));
|
|
226
226
|
}
|
|
227
|
-
}), Fe = { class: "truncate text-sm font-medium text-primary" }, Ie = /* @__PURE__ */
|
|
227
|
+
}), Fe = { class: "truncate text-sm font-medium text-primary" }, Ie = /* @__PURE__ */ k({
|
|
228
228
|
__name: "DunningCaseOverviewCustomerCell",
|
|
229
229
|
props: { item: {} },
|
|
230
230
|
setup(e) {
|
|
231
|
-
return (t, n) => (
|
|
232
|
-
default:
|
|
231
|
+
return (t, n) => (P(), w(R(Z), null, {
|
|
232
|
+
default: z(() => [D("span", Fe, L(e.item.customer.name), 1)]),
|
|
233
233
|
_: 1
|
|
234
234
|
}));
|
|
235
235
|
}
|
|
236
|
-
}), Le = /* @__PURE__ */
|
|
236
|
+
}), Le = /* @__PURE__ */ k({
|
|
237
237
|
__name: "DunningCaseOverviewDaysOverdueCell",
|
|
238
238
|
props: { item: {} },
|
|
239
239
|
setup(e) {
|
|
240
|
-
return (t, n) => (
|
|
241
|
-
default:
|
|
240
|
+
return (t, n) => (P(), w(R(Z), null, {
|
|
241
|
+
default: z(() => [D("span", { class: j([{
|
|
242
242
|
"text-error-primary": e.item.level === 3,
|
|
243
243
|
"text-primary": e.item.level !== 3
|
|
244
|
-
}, "w-full text-right font-mono text-sm tabular-nums"]) },
|
|
244
|
+
}, "w-full text-right font-mono text-sm tabular-nums"]) }, L(e.item.daysOverdue), 3)]),
|
|
245
245
|
_: 1
|
|
246
246
|
}));
|
|
247
247
|
}
|
|
248
248
|
}), Re = {
|
|
249
249
|
key: 0,
|
|
250
250
|
class: "font-mono text-xs text-secondary tabular-nums"
|
|
251
|
-
}, ze = /* @__PURE__ */
|
|
251
|
+
}, ze = /* @__PURE__ */ k({
|
|
252
252
|
__name: "DunningCaseOverviewLastReminderCell",
|
|
253
253
|
props: { item: {} },
|
|
254
254
|
setup(e) {
|
|
255
|
-
let t = e, n =
|
|
255
|
+
let t = e, n = x(), r = C(() => {
|
|
256
256
|
if (t.item.level === null) return null;
|
|
257
257
|
if (t.item.lastReminderSentAt === null) return n.t("module.dunning_case.overview.last_reminder_not_sent");
|
|
258
|
-
let e =
|
|
258
|
+
let e = U.Now.instant().epochMilliseconds - t.item.lastReminderSentAt.epochMilliseconds, r = Math.floor(e / 36e5);
|
|
259
259
|
return r < 1 ? n.t("module.dunning_case.overview.last_reminder_sent_just_now", { level: t.item.level }) : r < 24 ? n.t("module.dunning_case.overview.last_reminder_sent_hours", {
|
|
260
260
|
hours: r,
|
|
261
261
|
level: t.item.level
|
|
@@ -264,60 +264,60 @@ var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PU
|
|
|
264
264
|
level: t.item.level
|
|
265
265
|
});
|
|
266
266
|
});
|
|
267
|
-
return (e, t) => (
|
|
268
|
-
default:
|
|
267
|
+
return (e, t) => (P(), w(R(Z), null, {
|
|
268
|
+
default: z(() => [r.value === null ? T("", !0) : (P(), E("span", Re, L(r.value), 1))]),
|
|
269
269
|
_: 1
|
|
270
270
|
}));
|
|
271
271
|
}
|
|
272
272
|
}), Be = {
|
|
273
273
|
key: 0,
|
|
274
274
|
class: "flex min-w-0 items-center gap-sm"
|
|
275
|
-
}, Ve = { class: "truncate text-xs text-primary" }, He = /* @__PURE__ */
|
|
275
|
+
}, Ve = { class: "truncate text-xs text-primary" }, He = /* @__PURE__ */ k({
|
|
276
276
|
__name: "DunningCaseOverviewLevelCell",
|
|
277
277
|
props: { item: {} },
|
|
278
278
|
setup(e) {
|
|
279
|
-
let t =
|
|
279
|
+
let t = x();
|
|
280
280
|
function n(e) {
|
|
281
281
|
return e === 0 ? t.t("module.dunning_case.level.none") : t.t("module.dunning_case.level.reminder", { level: e });
|
|
282
282
|
}
|
|
283
|
-
return (t, r) => (
|
|
284
|
-
default:
|
|
283
|
+
return (t, r) => (P(), w(R(Z), null, {
|
|
284
|
+
default: z(() => [e.item.level === null ? T("", !0) : (P(), E("div", Be, [O(a, {
|
|
285
285
|
level: e.item.level,
|
|
286
286
|
size: "sm"
|
|
287
|
-
}, null, 8, ["level"]),
|
|
287
|
+
}, null, 8, ["level"]), D("span", Ve, L(n(e.item.level)), 1)]))]),
|
|
288
288
|
_: 1
|
|
289
289
|
}));
|
|
290
290
|
}
|
|
291
|
-
}), Ue = { class: "w-full text-right font-mono text-sm font-medium text-primary tabular-nums" }, We = /* @__PURE__ */
|
|
291
|
+
}), Ue = { class: "w-full text-right font-mono text-sm font-medium text-primary tabular-nums" }, We = /* @__PURE__ */ k({
|
|
292
292
|
__name: "DunningCaseOverviewOutstandingCell",
|
|
293
293
|
props: { item: {} },
|
|
294
294
|
setup(e) {
|
|
295
295
|
let t = n();
|
|
296
|
-
return (n, r) => (
|
|
297
|
-
default:
|
|
296
|
+
return (n, r) => (P(), w(R(Z), null, {
|
|
297
|
+
default: z(() => [D("span", Ue, L(R(t).formatMonetary(e.item.outstandingBalance)), 1)]),
|
|
298
298
|
_: 1
|
|
299
299
|
}));
|
|
300
300
|
}
|
|
301
|
-
}), Ge = { class: "flex flex-col items-start gap-xxs" }, Ke = /* @__PURE__ */
|
|
301
|
+
}), Ge = { class: "flex flex-col items-start gap-xxs" }, Ke = /* @__PURE__ */ k({
|
|
302
302
|
__name: "DunningCaseOverviewReminderCell",
|
|
303
303
|
props: { item: {} },
|
|
304
304
|
setup(e) {
|
|
305
|
-
let t = e, n =
|
|
305
|
+
let t = e, n = x(), r = C(() => g(t.item.latestCreatedReminder));
|
|
306
306
|
function i(e) {
|
|
307
|
-
let t =
|
|
307
|
+
let t = U.Now.plainDateISO().until(e, { largestUnit: "days" }).days;
|
|
308
308
|
return t <= 0 ? n.t("module.dunning_case.overview.due_today") : n.t("module.dunning_case.overview.due_in_days", { count: t });
|
|
309
309
|
}
|
|
310
310
|
function a(e) {
|
|
311
|
-
return
|
|
311
|
+
return U.PlainDate.compare(e, U.Now.plainDateISO()) <= 0;
|
|
312
312
|
}
|
|
313
|
-
return (t, n) => (
|
|
314
|
-
default:
|
|
313
|
+
return (t, n) => (P(), w(R(Z), null, {
|
|
314
|
+
default: z(() => [D("div", Ge, [e.item.nextReminderOn === null ? T("", !0) : (P(), w(R(W), {
|
|
315
315
|
key: 0,
|
|
316
316
|
color: a(e.item.nextReminderOn) ? "success" : "warning",
|
|
317
317
|
label: i(e.item.nextReminderOn),
|
|
318
318
|
size: "sm",
|
|
319
319
|
variant: "translucent"
|
|
320
|
-
}, null, 8, ["color", "label"])),
|
|
320
|
+
}, null, 8, ["color", "label"])), O(m, {
|
|
321
321
|
"blocked-reason": e.item.blockedReason,
|
|
322
322
|
status: r.value
|
|
323
323
|
}, null, 8, ["blocked-reason", "status"])])]),
|
|
@@ -328,8 +328,8 @@ var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PU
|
|
|
328
328
|
//#endregion
|
|
329
329
|
//#region src/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.ts
|
|
330
330
|
function qe(e) {
|
|
331
|
-
let t =
|
|
332
|
-
return
|
|
331
|
+
let t = x();
|
|
332
|
+
return C(() => fe()([
|
|
333
333
|
{
|
|
334
334
|
headerLabel: t.t("module.dunning_case.overview.table.customer"),
|
|
335
335
|
key: "customer",
|
|
@@ -402,7 +402,7 @@ function qe(e) {
|
|
|
402
402
|
//#endregion
|
|
403
403
|
//#region src/modules/dunning-case/api/mutations/dunningCaseBulkSend.mutation.ts
|
|
404
404
|
function Je() {
|
|
405
|
-
return
|
|
405
|
+
return B({
|
|
406
406
|
queryFn: (e) => o.sendBulk(e.params.queryParams),
|
|
407
407
|
queryKeysToInvalidate: {
|
|
408
408
|
dunningCaseDetail: {},
|
|
@@ -412,7 +412,7 @@ function Je() {
|
|
|
412
412
|
}
|
|
413
413
|
//#endregion
|
|
414
414
|
//#region src/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendStat.vue
|
|
415
|
-
var Ye = /* @__PURE__ */
|
|
415
|
+
var Ye = /* @__PURE__ */ k({
|
|
416
416
|
__name: "DunningCaseBulkSendStat",
|
|
417
417
|
props: {
|
|
418
418
|
hasSeparator: { type: Boolean },
|
|
@@ -422,20 +422,20 @@ var Ye = /* @__PURE__ */ M({
|
|
|
422
422
|
},
|
|
423
423
|
setup(e) {
|
|
424
424
|
let t = e;
|
|
425
|
-
return (e, n) => (
|
|
425
|
+
return (e, n) => (P(), E("div", { class: j([{ "border-r border-secondary": t.hasSeparator }, "p-lg"]) }, [D("p", { class: j([{
|
|
426
426
|
"text-primary": t.tone === "default",
|
|
427
427
|
"text-success-primary": t.tone === "success",
|
|
428
428
|
"text-warning-primary": t.tone === "warning"
|
|
429
|
-
}, "font-mono text-2xl font-semibold tabular-nums"]) },
|
|
429
|
+
}, "font-mono text-2xl font-semibold tabular-nums"]) }, L(t.value), 3), D("p", { class: j([{
|
|
430
430
|
"text-secondary": t.tone === "default",
|
|
431
431
|
"text-success-primary": t.tone === "success",
|
|
432
432
|
"text-warning-primary": t.tone === "warning"
|
|
433
|
-
}, "mt-xs text-xs font-medium uppercase"]) },
|
|
433
|
+
}, "mt-xs text-xs font-medium uppercase"]) }, L(t.label), 3)], 2));
|
|
434
434
|
}
|
|
435
435
|
}), Xe = { class: "flex flex-col gap-md" }, Ze = { class: "grid grid-cols-3 overflow-hidden rounded-md border border-secondary" }, Qe = { class: "rounded-md bg-success-primary px-lg py-md text-sm font-medium text-success-primary" }, $e = {
|
|
436
436
|
key: 0,
|
|
437
437
|
class: "rounded-md border border-secondary px-lg py-md text-sm text-secondary"
|
|
438
|
-
}, et = /* @__PURE__ */
|
|
438
|
+
}, et = /* @__PURE__ */ k({
|
|
439
439
|
__name: "DunningCaseBulkSendSummary",
|
|
440
440
|
props: {
|
|
441
441
|
processableCount: {},
|
|
@@ -443,7 +443,7 @@ var Ye = /* @__PURE__ */ M({
|
|
|
443
443
|
totalCount: {}
|
|
444
444
|
},
|
|
445
445
|
setup(e) {
|
|
446
|
-
let t = e, n =
|
|
446
|
+
let t = e, n = x(), r = C(() => [
|
|
447
447
|
{
|
|
448
448
|
label: n.t("module.dunning_case.bulk_send.total"),
|
|
449
449
|
tone: "default",
|
|
@@ -460,8 +460,8 @@ var Ye = /* @__PURE__ */ M({
|
|
|
460
460
|
value: t.skippedCount
|
|
461
461
|
}
|
|
462
462
|
]);
|
|
463
|
-
return (e, i) => (
|
|
464
|
-
|
|
463
|
+
return (e, i) => (P(), E("div", Xe, [
|
|
464
|
+
D("div", Ze, [(P(!0), E(S, null, I(r.value, (e, t) => (P(), w(Ye, {
|
|
465
465
|
key: e.label,
|
|
466
466
|
"has-separator": t < r.value.length - 1,
|
|
467
467
|
label: e.label,
|
|
@@ -473,14 +473,14 @@ var Ye = /* @__PURE__ */ M({
|
|
|
473
473
|
"tone",
|
|
474
474
|
"value"
|
|
475
475
|
]))), 128))]),
|
|
476
|
-
|
|
477
|
-
t.skippedCount > 0 ? (
|
|
476
|
+
D("p", Qe, L(R(n).t("module.dunning_case.bulk_send.processable", { count: t.processableCount })), 1),
|
|
477
|
+
t.skippedCount > 0 ? (P(), E("p", $e, L(R(n).t("module.dunning_case.bulk_send.skipped", { count: t.skippedCount })), 1)) : T("", !0)
|
|
478
478
|
]));
|
|
479
479
|
}
|
|
480
480
|
}), tt = {
|
|
481
481
|
key: 0,
|
|
482
482
|
class: "text-sm text-secondary"
|
|
483
|
-
}, nt = /* @__PURE__ */
|
|
483
|
+
}, nt = /* @__PURE__ */ k({
|
|
484
484
|
__name: "DunningCaseBulkSendDialog",
|
|
485
485
|
props: { onSent: { type: Function } },
|
|
486
486
|
emits: ["close"],
|
|
@@ -495,7 +495,7 @@ var Ye = /* @__PURE__ */ M({
|
|
|
495
495
|
function s(e) {
|
|
496
496
|
return Object.hasOwn(a, e);
|
|
497
497
|
}
|
|
498
|
-
let c =
|
|
498
|
+
let c = x(), l = me(), u = Je(), f = F(null), p = F(!0), m = C(() => f.value?.meta.processed ?? 0);
|
|
499
499
|
function h(e) {
|
|
500
500
|
let t = e.errors.at(0)?.errors.at(0)?.code;
|
|
501
501
|
return t !== void 0 && s(t) ? c.t(a[t]) : c.t("module.dunning_case.bulk_send.skip_reason.unknown");
|
|
@@ -512,7 +512,7 @@ var Ye = /* @__PURE__ */ M({
|
|
|
512
512
|
})).join(", ");
|
|
513
513
|
}
|
|
514
514
|
let _ = ge({
|
|
515
|
-
schema:
|
|
515
|
+
schema: re.object({}),
|
|
516
516
|
onSubmit: async () => {
|
|
517
517
|
let e = await u.execute({ params: { queryParams: i } });
|
|
518
518
|
if (e.isErr()) {
|
|
@@ -541,32 +541,32 @@ var Ye = /* @__PURE__ */ M({
|
|
|
541
541
|
l.apiError(e.error), r("close");
|
|
542
542
|
return;
|
|
543
543
|
}
|
|
544
|
-
|
|
544
|
+
f.value = e.value, p.value = !1;
|
|
545
545
|
}
|
|
546
|
-
return
|
|
546
|
+
return N(() => {
|
|
547
547
|
v();
|
|
548
|
-
}), (e, t) => (
|
|
549
|
-
form:
|
|
548
|
+
}), (e, t) => (P(), w(R(oe), {
|
|
549
|
+
form: R(_),
|
|
550
550
|
size: "md",
|
|
551
551
|
onClose: t[0] ||= (e) => r("close")
|
|
552
552
|
}, {
|
|
553
|
-
default:
|
|
554
|
-
|
|
555
|
-
title:
|
|
556
|
-
description:
|
|
553
|
+
default: z(() => [
|
|
554
|
+
O(R(X), {
|
|
555
|
+
title: p.value ? R(c).t("module.dunning_case.bulk_send.title") : R(c).t("module.dunning_case.bulk_send.confirm_question", { count: m.value }),
|
|
556
|
+
description: R(c).t("module.dunning_case.bulk_send.description"),
|
|
557
557
|
"has-separator": !1,
|
|
558
|
-
icon:
|
|
558
|
+
icon: R(d)
|
|
559
559
|
}, null, 8, [
|
|
560
560
|
"title",
|
|
561
561
|
"description",
|
|
562
562
|
"icon"
|
|
563
563
|
]),
|
|
564
|
-
|
|
565
|
-
default:
|
|
564
|
+
O(R(K), null, {
|
|
565
|
+
default: z(() => [f.value === null ? (P(), E("p", tt, L(R(c).t("module.dunning_case.bulk_send.loading")), 1)) : (P(), w(et, {
|
|
566
566
|
key: 1,
|
|
567
|
-
"processable-count":
|
|
568
|
-
"skipped-count":
|
|
569
|
-
"total-count":
|
|
567
|
+
"processable-count": f.value.meta.processed,
|
|
568
|
+
"skipped-count": f.value.meta.skipped,
|
|
569
|
+
"total-count": f.value.meta.total
|
|
570
570
|
}, null, 8, [
|
|
571
571
|
"processable-count",
|
|
572
572
|
"skipped-count",
|
|
@@ -574,13 +574,13 @@ var Ye = /* @__PURE__ */ M({
|
|
|
574
574
|
]))]),
|
|
575
575
|
_: 1
|
|
576
576
|
}),
|
|
577
|
-
|
|
578
|
-
right:
|
|
579
|
-
"icon-right":
|
|
580
|
-
"is-disabled":
|
|
581
|
-
"is-loading":
|
|
582
|
-
label:
|
|
583
|
-
onClick:
|
|
577
|
+
O(R(q), { "has-separator": !1 }, {
|
|
578
|
+
right: z(() => [O(R(J)), O(R(Y), {
|
|
579
|
+
"icon-right": R(d),
|
|
580
|
+
"is-disabled": p.value || m.value === 0,
|
|
581
|
+
"is-loading": R(_).isSubmitting.value,
|
|
582
|
+
label: R(c).t("module.dunning_case.bulk_send.confirm", { count: m.value }),
|
|
583
|
+
onClick: R(_).submit
|
|
584
584
|
}, null, 8, [
|
|
585
585
|
"icon-right",
|
|
586
586
|
"is-disabled",
|
|
@@ -600,12 +600,12 @@ var Ye = /* @__PURE__ */ M({
|
|
|
600
600
|
}, lt = { class: "flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-secondary bg-primary shadow-sm" }, ut = { class: "flex flex-col gap-md border-b border-secondary p-sm md:flex-row md:items-center md:justify-between" }, dt = { class: "flex items-center justify-between gap-md border-b border-secondary p-sm" }, ft = {
|
|
601
601
|
key: 0,
|
|
602
602
|
class: "px-sm text-xs text-secondary"
|
|
603
|
-
}, pt = { class: "relative flex min-h-0 flex-1 flex-col" }, mt = /*@__PURE__*/
|
|
603
|
+
}, pt = { class: "relative flex min-h-0 flex-1 flex-col" }, mt = /*@__PURE__*/ k({
|
|
604
604
|
__name: "DunningCaseOverviewView",
|
|
605
605
|
setup(e) {
|
|
606
|
-
let n =
|
|
606
|
+
let n = x(), i = pe(), a = H(), o = t(), s = r(), f = F("all"), m = C(() => [
|
|
607
607
|
{
|
|
608
|
-
icon:
|
|
608
|
+
icon: l,
|
|
609
609
|
key: "all",
|
|
610
610
|
label: n.t("module.dunning_case.overview.filter_all")
|
|
611
611
|
},
|
|
@@ -624,22 +624,22 @@ var Ye = /* @__PURE__ */ M({
|
|
|
624
624
|
key: "level-3",
|
|
625
625
|
label: n.t("module.dunning_case.level.reminder", { level: 3 })
|
|
626
626
|
}
|
|
627
|
-
]), h =
|
|
627
|
+
]), h = C(() => f.value === "all" ? null : Number(f.value.replace("level-", ""))), g = F(!0), { customerUuid: v, filters: y } = Me();
|
|
628
628
|
ee(y), o.set(() => n.t("module.dunning_case.title"));
|
|
629
|
-
let { hasLevelCountError: b, isFetchingNextPage:
|
|
629
|
+
let { hasLevelCountError: b, isFetchingNextPage: re, isLoading: k, data: A, error: j, fetchNextPage: M, levelCounts: N, levelCountTotal: ie, result: B } = Ae({
|
|
630
630
|
customerUuid: v,
|
|
631
631
|
activeLevel: h
|
|
632
|
-
}),
|
|
633
|
-
function
|
|
634
|
-
|
|
632
|
+
}), V = C(() => y.activeFilters.value.length);
|
|
633
|
+
function U(e) {
|
|
634
|
+
i.create(_, { props: { dunningCaseUuid: e.uuid } }).open();
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
|
|
638
|
-
|
|
636
|
+
function W() {
|
|
637
|
+
i.create(nt, { props: { onSent: () => {
|
|
638
|
+
B.value;
|
|
639
639
|
} } }).open();
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
let t =
|
|
641
|
+
function K(e) {
|
|
642
|
+
let t = s.getCustomerDetailRoute(e.customer.uuid);
|
|
643
643
|
t !== null && a.push(t);
|
|
644
644
|
}
|
|
645
645
|
function q(e) {
|
|
@@ -649,42 +649,42 @@ var Ye = /* @__PURE__ */ M({
|
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
651
|
let J = ve(), Y = _e(), X = qe({
|
|
652
|
-
onSend:
|
|
653
|
-
onViewCustomer:
|
|
652
|
+
onSend: U,
|
|
653
|
+
onViewCustomer: K
|
|
654
654
|
});
|
|
655
|
-
return (e, t) => (
|
|
656
|
-
title:
|
|
655
|
+
return (e, t) => (P(), w(R(ae), {
|
|
656
|
+
title: R(n).t("module.dunning_case.title"),
|
|
657
657
|
"is-title-hidden": !0
|
|
658
658
|
}, {
|
|
659
|
-
default:
|
|
660
|
-
|
|
661
|
-
"icon-left": g.value ?
|
|
662
|
-
label:
|
|
659
|
+
default: z(() => [D("div", rt, [
|
|
660
|
+
D("div", it, [D("div", null, [D("h2", at, L(R(n).t("module.dunning_case.title")), 1), D("p", ot, L(R(n).t("module.dunning_case.overview.description")), 1)]), D("div", st, [O(R(G), {
|
|
661
|
+
"icon-left": g.value ? R(p) : R(c),
|
|
662
|
+
label: R(n).t(g.value ? "module.dunning_case.overview.hide_metrics" : "module.dunning_case.overview.show_metrics"),
|
|
663
663
|
variant: "secondary",
|
|
664
664
|
onClick: t[0] ||= (e) => g.value = !g.value
|
|
665
|
-
}, null, 8, ["icon-left", "label"]),
|
|
666
|
-
"icon-right":
|
|
667
|
-
label:
|
|
668
|
-
onClick:
|
|
665
|
+
}, null, 8, ["icon-left", "label"]), O(R(G), {
|
|
666
|
+
"icon-right": R(d),
|
|
667
|
+
label: R(n).t("module.dunning_case.overview.send_all"),
|
|
668
|
+
onClick: W
|
|
669
669
|
}, null, 8, ["icon-right", "label"])])]),
|
|
670
|
-
g.value ? (
|
|
671
|
-
"has-level-count-error":
|
|
672
|
-
"level-counts":
|
|
673
|
-
"level-count-total":
|
|
670
|
+
g.value ? (P(), E("div", ct, [O(ke, {
|
|
671
|
+
"has-level-count-error": R(b),
|
|
672
|
+
"level-counts": R(N),
|
|
673
|
+
"level-count-total": R(ie)
|
|
674
674
|
}, null, 8, [
|
|
675
675
|
"has-level-count-error",
|
|
676
676
|
"level-counts",
|
|
677
677
|
"level-count-total"
|
|
678
|
-
])])) :
|
|
679
|
-
|
|
680
|
-
|
|
678
|
+
])])) : T("", !0),
|
|
679
|
+
D("div", lt, [
|
|
680
|
+
D("div", ut, [O(R(le), {
|
|
681
681
|
modelValue: f.value,
|
|
682
682
|
"onUpdate:modelValue": t[1] ||= (e) => f.value = e,
|
|
683
|
-
"aria-label":
|
|
683
|
+
"aria-label": R(n).t("module.dunning_case.overview.filter_label"),
|
|
684
684
|
variant: "button-border"
|
|
685
685
|
}, {
|
|
686
|
-
default:
|
|
687
|
-
default:
|
|
686
|
+
default: z(() => [O(R(de), null, {
|
|
687
|
+
default: z(() => [(P(!0), E(S, null, I(m.value, (e) => (P(), w(R(ue), {
|
|
688
688
|
key: e.key,
|
|
689
689
|
config: { left: {
|
|
690
690
|
icon: e.icon,
|
|
@@ -700,31 +700,31 @@ var Ye = /* @__PURE__ */ M({
|
|
|
700
700
|
_: 1
|
|
701
701
|
})]),
|
|
702
702
|
_: 1
|
|
703
|
-
}, 8, ["modelValue", "aria-label"]),
|
|
704
|
-
"icon-right":
|
|
705
|
-
label:
|
|
703
|
+
}, 8, ["modelValue", "aria-label"]), O(R(G), {
|
|
704
|
+
"icon-right": R(d),
|
|
705
|
+
label: R(n).t("module.dunning_case.overview.send_all"),
|
|
706
706
|
size: "sm",
|
|
707
|
-
onClick:
|
|
707
|
+
onClick: W
|
|
708
708
|
}, null, 8, ["icon-right", "label"])]),
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
"active-filter-count":
|
|
712
|
-
columns:
|
|
713
|
-
data:
|
|
714
|
-
error:
|
|
709
|
+
D("div", dt, [V.value === 0 ? (P(), E("p", ft, L(R(n).t("module.dunning_case.overview.no_active_filters")), 1)) : (P(), w(R(te), { key: 1 })), O(R(ne))]),
|
|
710
|
+
D("div", pt, [O(R(se), {
|
|
711
|
+
"active-filter-count": V.value,
|
|
712
|
+
columns: R(X),
|
|
713
|
+
data: R(A),
|
|
714
|
+
error: R(j),
|
|
715
715
|
"get-key": (e) => e.uuid,
|
|
716
|
-
actions: [
|
|
716
|
+
actions: [R(J), R(Y)],
|
|
717
717
|
"get-action-model": (e) => ({
|
|
718
718
|
key: e.uuid,
|
|
719
719
|
modelName: "DunningCase",
|
|
720
720
|
...e
|
|
721
721
|
}),
|
|
722
722
|
"get-link": q,
|
|
723
|
-
"is-fetching-next-page":
|
|
724
|
-
"is-loading":
|
|
723
|
+
"is-fetching-next-page": R(re),
|
|
724
|
+
"is-loading": R(k),
|
|
725
725
|
variant: "full-page",
|
|
726
|
-
onClearFilters: t[2] ||= (e) =>
|
|
727
|
-
onNextPage:
|
|
726
|
+
onClearFilters: t[2] ||= (e) => R(y).clearAll(),
|
|
727
|
+
onNextPage: R(M)
|
|
728
728
|
}, null, 8, [
|
|
729
729
|
"active-filter-count",
|
|
730
730
|
"columns",
|