@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
package/dist/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { n as e, r as t } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
1
|
+
import { n as e, r as t } from "./i18n.lib-Cvr8pcDw.js";
|
|
2
|
+
import "./api.util-C_kMGlJN.js";
|
|
3
|
+
import { O as n, T as r, b as i, l as a, t as o, y as s } from "./documentTitle.composable-DsBbzhXN.js";
|
|
4
4
|
import { n as c, r as l, t as u } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as g } from "./
|
|
10
|
-
import {
|
|
11
|
-
import { n as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as S } from "./
|
|
14
|
-
import { r as C, t as te } from "./DunningCaseOverviewView-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { a as se, i as ce, l as E, n as le, o as ue, r as de, s as fe, t as D } from "./dist-
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { z as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
5
|
+
import { n as d, t as f } from "./invoicingConfig.composable-rxjGK882.js";
|
|
6
|
+
import { t as p } from "./search.composable-CU9OpyUB.js";
|
|
7
|
+
import { t as m } from "./src-DUSgQTKr.js";
|
|
8
|
+
import { r as ee, t as h } from "./InvoiceOverviewViewDataProvider-CZIQeftL.js";
|
|
9
|
+
import { n as g } from "./address.transformer-jGddczLV.js";
|
|
10
|
+
import { t as _ } from "./addressForm.model-C853zEtX.js";
|
|
11
|
+
import { n as v, t as y } from "./download.util-B5Q7KUC9.js";
|
|
12
|
+
import { n as b } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
13
|
+
import { n as x, t as S } from "./percentage.util-Bl78kSSk.js";
|
|
14
|
+
import { r as C, t as te } from "./DunningCaseOverviewView-y_bCmi5j.js";
|
|
15
|
+
import { D as w, U as ne, Y as re, w as T } from "./dist-Cxdm09Lp.js";
|
|
16
|
+
import { o as ie } from "./DunningCaseSendDialog-BPXcqit5.js";
|
|
17
|
+
import { n as ae } from "./dist-boJIIxnT.js";
|
|
18
|
+
import { t as oe } from "./DunningCaseDetailViewDataProvider-DC-ziMoO.js";
|
|
19
|
+
import { a as se, i as ce, l as E, n as le, o as ue, r as de, s as fe, t as D } from "./dist-CoztMdYH.js";
|
|
20
|
+
import { t as pe } from "./DunningCaseReminderPdfViewDataProvider-DNODfED_.js";
|
|
21
|
+
import { t as me } from "./ReminderSettingsViewDataProvider-1ucp3z2T.js";
|
|
22
|
+
import { r as he, t as ge } from "./InvoicePublicPdfViewDataProvider-uZUfsr5K.js";
|
|
23
|
+
import { n as O } from "./CustomFieldValueText-CZQXGE5F.js";
|
|
24
|
+
import { z as k } from "zod";
|
|
25
|
+
import { useI18n as A } from "vue-i18n";
|
|
26
|
+
import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createVNode as L, defineComponent as R, openBlock as z, renderList as B, toDisplayString as V, unref as H, withCtx as U } from "vue";
|
|
27
|
+
import { useQueryClient as _e } from "@tanstack/vue-query";
|
|
28
|
+
import { QueryClient as ve, SortUtil as ye, useQuery as be } from "@wisemen/vue-core-api-utils";
|
|
29
|
+
import { RouterLink as W, useRouter as xe } from "vue-router";
|
|
30
|
+
import { UIBadge as G, UIEmptyState as Se, UIRowLayout as K, UITable as Ce, UITableCell as q, UITableCellText as we, UIText as J, UITextField as Te, createComponent as Y, defineTableColumns as Ee, useSort as De } from "@wisemen/vue-core-design-system";
|
|
31
|
+
import { createAction as Oe } from "@wisemen/vue-core-actions";
|
|
32
32
|
//#region src/locales/ui-en-US.json
|
|
33
33
|
var ke = {
|
|
34
34
|
"component.api_error.default_message": "An unexpected error occurred.",
|
|
@@ -156,139 +156,59 @@ var ke = {
|
|
|
156
156
|
"shared.options": "Opties"
|
|
157
157
|
};
|
|
158
158
|
//#endregion
|
|
159
|
-
//#region src/modules/invoice/actions/invoiceNavigateToDetail.action.ts
|
|
160
|
-
function je() {
|
|
161
|
-
let e = _e();
|
|
162
|
-
return ge({
|
|
163
|
-
id: "invoice-navigate-to-detail",
|
|
164
|
-
isApplicable: (e) => e.hasTargetedModelsOfType("Invoice"),
|
|
165
|
-
name: (e) => {
|
|
166
|
-
let t = e.targetedModelOfTypeOrThrow("Invoice");
|
|
167
|
-
return t.subject ?? t.sequence ?? t.uuid;
|
|
168
|
-
},
|
|
169
|
-
execute: (t) => {
|
|
170
|
-
let r = t.targetedModelOfTypeOrThrow("Invoice");
|
|
171
|
-
r.type === n.STANDARD ? e.push({
|
|
172
|
-
name: "invoicing-invoice-detail",
|
|
173
|
-
params: { invoiceUuid: r.uuid }
|
|
174
|
-
}) : e.push({
|
|
175
|
-
name: "invoicing-credit-note-detail",
|
|
176
|
-
params: { creditNoteUuid: r.uuid }
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
//#endregion
|
|
182
159
|
//#region src/composables/created.composable.ts
|
|
183
|
-
function
|
|
160
|
+
function je(e) {
|
|
184
161
|
e();
|
|
185
162
|
}
|
|
186
163
|
//#endregion
|
|
187
164
|
//#region src/composables/invoicingQueryInvalidation.composable.ts
|
|
188
|
-
function
|
|
189
|
-
let e = new
|
|
165
|
+
function Me() {
|
|
166
|
+
let e = new ve(_e());
|
|
190
167
|
async function t() {
|
|
191
168
|
await e.invalidate("invoiceIndex");
|
|
192
169
|
}
|
|
193
170
|
return { invalidateInvoiceIndex: t };
|
|
194
171
|
}
|
|
195
172
|
//#endregion
|
|
196
|
-
//#region src/
|
|
197
|
-
var
|
|
198
|
-
static format(e, t = 0) {
|
|
199
|
-
return new Intl.NumberFormat(void 0, { maximumFractionDigits: t }).format(e);
|
|
200
|
-
}
|
|
201
|
-
static randomBetween(e, t) {
|
|
202
|
-
return Math.floor(Math.random() * (t - e + 1)) + e;
|
|
203
|
-
}
|
|
204
|
-
}, Fe = A.uuid().brand("CreditNoteUuid"), Ie = A.uuid().brand("InvoiceUuid");
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region ../router/src/createRoutes.ts
|
|
207
|
-
function Y(e) {
|
|
208
|
-
return e;
|
|
209
|
-
}
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region src/modules/dunning-case/routes/dunningCase.routes.ts
|
|
212
|
-
var Le = Y([{
|
|
213
|
-
name: "dunning-case-module",
|
|
214
|
-
path: "/dunning-cases",
|
|
215
|
-
redirect: { name: "dunning-case-overview" },
|
|
216
|
-
children: [{
|
|
217
|
-
name: "dunning-case-overview",
|
|
218
|
-
path: "",
|
|
219
|
-
component: () => import("./DunningCaseOverviewView-aWttPLrC.js").then((e) => e.n),
|
|
220
|
-
meta: { permission: "dunning-case.read" }
|
|
221
|
-
}, {
|
|
222
|
-
name: "dunning-case-detail",
|
|
223
|
-
props: !0,
|
|
224
|
-
path: ":dunningCaseUuid",
|
|
225
|
-
component: () => import("./DunningCaseDetailViewDataProvider-DKuuysqS.js").then((e) => e.n),
|
|
226
|
-
meta: { permission: "dunning-case.read" }
|
|
227
|
-
}]
|
|
228
|
-
}]), Re = Y([{
|
|
229
|
-
name: "dunning-case-settings-module",
|
|
230
|
-
path: "payment-reminders",
|
|
231
|
-
component: () => import("./ReminderSettingsViewDataProvider-Dys4bUU7.js").then((e) => e.n),
|
|
232
|
-
meta: { permission: "reminder-config.read" }
|
|
233
|
-
}]), ze = Y([{
|
|
234
|
-
name: "dunning-case-reminder-pdf",
|
|
235
|
-
path: "/dunning-case-reminder-pdf",
|
|
236
|
-
component: () => import("./DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js").then((e) => e.n)
|
|
237
|
-
}]), Be = [{
|
|
238
|
-
name: "invoicing-settings-module",
|
|
239
|
-
path: "invoicing",
|
|
240
|
-
redirect: { name: "invoicing-settings-overview" },
|
|
241
|
-
children: [{
|
|
242
|
-
name: "invoicing-settings-overview",
|
|
243
|
-
path: "",
|
|
244
|
-
component: () => import("./IssuerSettingsViewDataProvider-COqHGUE6.js"),
|
|
245
|
-
meta: { permission: "issuer.read" }
|
|
246
|
-
}]
|
|
247
|
-
}, ...Re], X = {
|
|
248
|
-
invoice_has_no_lines: "wise_invoicing.api_error.invoice_has_no_lines",
|
|
249
|
-
invoice_not_editable: "wise_invoicing.api_error.invoice_not_editable"
|
|
250
|
-
};
|
|
251
|
-
function Ve() {
|
|
252
|
-
let e = j();
|
|
253
|
-
return { messages: N(() => Object.fromEntries(Object.entries(X).map(([t, n]) => [t, e.t(n)]))) };
|
|
254
|
-
}
|
|
173
|
+
//#region src/modules/credit-note/models/creditNoteUuid.model.ts
|
|
174
|
+
var Ne = k.uuid().brand("CreditNoteUuid");
|
|
255
175
|
//#endregion
|
|
256
176
|
//#region src/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.ts
|
|
257
|
-
function
|
|
258
|
-
return
|
|
259
|
-
isEnabled:
|
|
177
|
+
function Pe(e) {
|
|
178
|
+
return be("dunningCaseCustomerByExternalId", {
|
|
179
|
+
isEnabled: M(() => e.value !== null),
|
|
260
180
|
params: { externalId: e },
|
|
261
|
-
queryFn: () =>
|
|
181
|
+
queryFn: () => ie.getUuidByExternalId(e.value ?? "")
|
|
262
182
|
});
|
|
263
183
|
}
|
|
264
184
|
//#endregion
|
|
265
185
|
//#region src/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue?vue&type=script&setup=true&lang.ts
|
|
266
|
-
var
|
|
186
|
+
var Fe = { key: 0 }, Ie = { class: "mb-md text-sm font-semibold text-primary" }, Le = { class: "flex size-(--spacing-4xl) shrink-0 items-center justify-center rounded-full bg-brand-100 text-brand-600" }, Re = { class: "min-w-0 flex-1" }, ze = { class: "flex min-w-0 flex-wrap items-center gap-sm" }, Be = { class: "text-sm font-semibold wrap-break-word text-primary" }, Ve = { class: "mt-xs block text-sm text-secondary" }, He = {
|
|
267
187
|
key: 0,
|
|
268
188
|
class: "rounded-lg border border-secondary bg-primary"
|
|
269
|
-
},
|
|
189
|
+
}, Ue = { class: "cursor-pointer px-lg py-md text-sm font-medium text-primary" }, We = { class: "border-t border-secondary" }, Ge = { class: "flex size-(--spacing-4xl) shrink-0 items-center justify-center rounded-full bg-secondary text-secondary" }, Ke = { class: "min-w-0 flex-1" }, qe = { class: "block truncate text-primary" }, Je = { class: "mt-xxs block text-xs text-secondary tabular-nums" }, Ye = /* @__PURE__ */ R({
|
|
270
190
|
__name: "CustomerDunningCasesSection",
|
|
271
191
|
props: {
|
|
272
192
|
customerUuid: {},
|
|
273
193
|
externalId: {}
|
|
274
194
|
},
|
|
275
195
|
setup(e) {
|
|
276
|
-
let t = e, n =
|
|
277
|
-
isEnabled:
|
|
196
|
+
let t = e, n = A(), r = l(), i = Pe(M(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = M(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = C({
|
|
197
|
+
isEnabled: M(() => a.value !== void 0),
|
|
278
198
|
params: {
|
|
279
199
|
customerUuid: a,
|
|
280
|
-
isOpen:
|
|
200
|
+
isOpen: M(() => !0)
|
|
281
201
|
}
|
|
282
202
|
}), s = C({
|
|
283
|
-
isEnabled:
|
|
203
|
+
isEnabled: M(() => a.value !== void 0),
|
|
284
204
|
params: {
|
|
285
205
|
customerUuid: a,
|
|
286
|
-
isOpen:
|
|
206
|
+
isOpen: M(() => !1)
|
|
287
207
|
}
|
|
288
|
-
}), c =
|
|
289
|
-
return (e, t) => c.value.length > 0 || u.value.length > 0 ? (
|
|
290
|
-
|
|
291
|
-
(
|
|
208
|
+
}), c = M(() => o.result.value.isOk() ? o.result.value.getValue().data : []), u = M(() => s.result.value.isOk() ? s.result.value.getValue().data : []);
|
|
209
|
+
return (e, t) => c.value.length > 0 || u.value.length > 0 ? (z(), F("section", Fe, [
|
|
210
|
+
I("h2", Ie, V(H(n).t("module.dunning_case.customer.title")), 1),
|
|
211
|
+
(z(!0), F(j, null, B(c.value, (e) => (z(), N(H(W), {
|
|
292
212
|
key: e.uuid,
|
|
293
213
|
to: {
|
|
294
214
|
name: "dunning-case-detail",
|
|
@@ -296,19 +216,19 @@ var Ue = { key: 0 }, We = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
296
216
|
},
|
|
297
217
|
class: "mb-md flex w-fit max-w-full items-center gap-lg rounded-lg border border-secondary bg-primary p-lg shadow-sm hover:bg-secondary sm:max-w-2xl"
|
|
298
218
|
}, {
|
|
299
|
-
default:
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
label: e.level === 0 ?
|
|
219
|
+
default: U(() => [
|
|
220
|
+
I("span", Le, [L(H(T), { class: "size-(--spacing-xl)" })]),
|
|
221
|
+
I("span", Re, [I("span", ze, [I("span", Be, V(H(n).t("module.dunning_case.customer.open_case")), 1), L(H(G), {
|
|
222
|
+
label: e.level === 0 ? H(n).t("module.dunning_case.level.none") : H(n).t("module.dunning_case.level.reminder", { level: e.level }),
|
|
303
223
|
color: "brand",
|
|
304
224
|
size: "sm",
|
|
305
225
|
variant: "translucent"
|
|
306
|
-
}, null, 8, ["label"])]),
|
|
307
|
-
|
|
226
|
+
}, null, 8, ["label"])]), I("span", Ve, V(H(n).t("module.dunning_case.customer.outstanding", { amount: H(r).formatMonetary(e.outstandingBalance) })), 1)]),
|
|
227
|
+
L(H(w), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
|
|
308
228
|
]),
|
|
309
229
|
_: 2
|
|
310
230
|
}, 1032, ["to"]))), 128)),
|
|
311
|
-
u.value.length > 0 ? (
|
|
231
|
+
u.value.length > 0 ? (z(), F("details", He, [I("summary", Ue, V(H(n).t("module.dunning_case.customer.closed_cases", { count: u.value.length })), 1), I("div", We, [(z(!0), F(j, null, B(u.value, (e) => (z(), N(H(W), {
|
|
312
232
|
key: e.uuid,
|
|
313
233
|
to: {
|
|
314
234
|
name: "dunning-case-detail",
|
|
@@ -316,16 +236,192 @@ var Ue = { key: 0 }, We = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
316
236
|
},
|
|
317
237
|
class: "flex items-center justify-between gap-lg border-b border-secondary px-lg py-md text-sm last:border-b-0 hover:bg-secondary"
|
|
318
238
|
}, {
|
|
319
|
-
default:
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
239
|
+
default: U(() => [
|
|
240
|
+
I("span", Ge, [L(H(T), { class: "size-(--spacing-xl)" })]),
|
|
241
|
+
I("span", Ke, [I("span", qe, V(H(n).t("module.dunning_case.customer.closed_case")), 1), I("span", Je, V(H(r).formatMonetary(e.outstandingBalance)), 1)]),
|
|
242
|
+
L(H(w), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
|
|
323
243
|
]),
|
|
324
244
|
_: 2
|
|
325
|
-
}, 1032, ["to"]))), 128))])])) :
|
|
326
|
-
])) :
|
|
245
|
+
}, 1032, ["to"]))), 128))])])) : P("", !0)
|
|
246
|
+
])) : P("", !0);
|
|
327
247
|
}
|
|
328
|
-
})
|
|
248
|
+
});
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/modules/invoice/actions/invoiceNavigateToDetail.action.ts
|
|
251
|
+
function Xe() {
|
|
252
|
+
let e = xe();
|
|
253
|
+
return Oe({
|
|
254
|
+
id: "invoice-navigate-to-detail",
|
|
255
|
+
isApplicable: (e) => e.hasTargetedModelsOfType("Invoice"),
|
|
256
|
+
name: (e) => {
|
|
257
|
+
let t = e.targetedModelOfTypeOrThrow("Invoice");
|
|
258
|
+
return t.subject ?? t.sequence ?? t.uuid;
|
|
259
|
+
},
|
|
260
|
+
execute: (t) => {
|
|
261
|
+
let n = t.targetedModelOfTypeOrThrow("Invoice");
|
|
262
|
+
n.type === i.STANDARD ? e.push({
|
|
263
|
+
name: "invoicing-invoice-detail",
|
|
264
|
+
params: { invoiceUuid: n.uuid }
|
|
265
|
+
}) : e.push({
|
|
266
|
+
name: "invoicing-credit-note-detail",
|
|
267
|
+
params: { creditNoteUuid: n.uuid }
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region src/modules/invoice/models/invoiceUuid.model.ts
|
|
274
|
+
var Ze = k.uuid().brand("InvoiceUuid");
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region ../router/src/createRoutes.ts
|
|
277
|
+
function X(e) {
|
|
278
|
+
return e;
|
|
279
|
+
}
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/modules/dunning-case/routes/dunningCase.routes.ts
|
|
282
|
+
var Qe = X([{
|
|
283
|
+
name: "dunning-case-module",
|
|
284
|
+
path: "/dunning-cases",
|
|
285
|
+
redirect: { name: "dunning-case-overview" },
|
|
286
|
+
children: [{
|
|
287
|
+
name: "dunning-case-overview",
|
|
288
|
+
path: "",
|
|
289
|
+
component: () => import("./DunningCaseOverviewView-y_bCmi5j.js").then((e) => e.n),
|
|
290
|
+
meta: { permission: "dunning-case.read" }
|
|
291
|
+
}, {
|
|
292
|
+
name: "dunning-case-detail",
|
|
293
|
+
props: !0,
|
|
294
|
+
path: ":dunningCaseUuid",
|
|
295
|
+
component: () => import("./DunningCaseDetailViewDataProvider-DC-ziMoO.js").then((e) => e.n),
|
|
296
|
+
meta: { permission: "dunning-case.read" }
|
|
297
|
+
}]
|
|
298
|
+
}]), $e = X([{
|
|
299
|
+
name: "dunning-case-settings-module",
|
|
300
|
+
path: "payment-reminders",
|
|
301
|
+
component: () => import("./ReminderSettingsViewDataProvider-1ucp3z2T.js").then((e) => e.n),
|
|
302
|
+
meta: { permission: "reminder-config.read" }
|
|
303
|
+
}]), et = X([{
|
|
304
|
+
name: "dunning-case-reminder-pdf",
|
|
305
|
+
path: "/dunning-case-reminder-pdf",
|
|
306
|
+
component: () => import("./DunningCaseReminderPdfViewDataProvider-DNODfED_.js").then((e) => e.n)
|
|
307
|
+
}]), tt = X([{
|
|
308
|
+
name: "invoice-approval-module",
|
|
309
|
+
path: "/invoicing/approvals",
|
|
310
|
+
redirect: { name: "invoice-approval-overview" },
|
|
311
|
+
children: [{
|
|
312
|
+
name: "invoice-approval-overview",
|
|
313
|
+
path: "",
|
|
314
|
+
component: () => import("./InvoiceApprovalOverviewView-DZ14mi4L.js"),
|
|
315
|
+
meta: { permission: "invoice-approval.read" }
|
|
316
|
+
}]
|
|
317
|
+
}]), nt = X([{
|
|
318
|
+
name: "invoice-approval-settings-module",
|
|
319
|
+
path: "approval-reminders",
|
|
320
|
+
component: () => import("./ApprovalReminderSettingsViewDataProvider-D-qXZrPT.js"),
|
|
321
|
+
meta: { permission: "reminder-config.read" }
|
|
322
|
+
}]), rt = [
|
|
323
|
+
{
|
|
324
|
+
name: "invoicing-settings-module",
|
|
325
|
+
path: "invoicing",
|
|
326
|
+
redirect: { name: "invoicing-settings-overview" },
|
|
327
|
+
children: [{
|
|
328
|
+
name: "invoicing-settings-overview",
|
|
329
|
+
path: "",
|
|
330
|
+
component: () => import("./IssuerSettingsViewDataProvider-CGRa8F-2.js"),
|
|
331
|
+
meta: { permission: "issuer.read" }
|
|
332
|
+
}]
|
|
333
|
+
},
|
|
334
|
+
...$e,
|
|
335
|
+
...nt
|
|
336
|
+
];
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region src/modules/invoice/routes/invoice.routes.ts
|
|
339
|
+
function it(e) {
|
|
340
|
+
return X([{
|
|
341
|
+
name: "invoicing-module",
|
|
342
|
+
path: "/invoicing/invoices",
|
|
343
|
+
redirect: { name: "invoicing-invoice-overview" },
|
|
344
|
+
children: [{
|
|
345
|
+
name: "invoicing-invoice-overview",
|
|
346
|
+
path: "",
|
|
347
|
+
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-CZIQeftL.js").then((e) => e.n)),
|
|
348
|
+
meta: { permission: "invoice.read" }
|
|
349
|
+
}, {
|
|
350
|
+
name: "invoicing-invoice-detail",
|
|
351
|
+
props: !0,
|
|
352
|
+
path: ":invoiceUuid",
|
|
353
|
+
component: () => import("./InvoiceDetailViewDataProvider-BYeaaQzL.js"),
|
|
354
|
+
meta: { permission: "invoice.read" }
|
|
355
|
+
}]
|
|
356
|
+
}]);
|
|
357
|
+
}
|
|
358
|
+
var at = X([{
|
|
359
|
+
name: "invoicing-invoice-pdf-preview",
|
|
360
|
+
props: !0,
|
|
361
|
+
path: "/invoicing/invoices/:invoiceUuid/pdf",
|
|
362
|
+
component: () => import("./InvoicePdfViewDataProvider-CwI_uGm3.js"),
|
|
363
|
+
meta: { permission: "invoice.read" }
|
|
364
|
+
}]), ot = X([{
|
|
365
|
+
name: "invoicing-invoice-public-pdf-preview",
|
|
366
|
+
path: "/pdf",
|
|
367
|
+
component: () => import("./InvoicePublicPdfViewDataProvider-uZUfsr5K.js").then((e) => e.n)
|
|
368
|
+
}]);
|
|
369
|
+
//#endregion
|
|
370
|
+
//#region src/routes/invoicingPublicRoutes.composable.ts
|
|
371
|
+
function st() {
|
|
372
|
+
return [...ot, ...et];
|
|
373
|
+
}
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/modules/credit-note/routes/creditNote.routes.ts
|
|
376
|
+
var ct = [{
|
|
377
|
+
name: "invoicing-credit-note-module",
|
|
378
|
+
path: "/invoicing/credit-notes",
|
|
379
|
+
redirect: { name: "invoicing-invoice-overview" },
|
|
380
|
+
children: [{
|
|
381
|
+
name: "invoicing-credit-note-detail",
|
|
382
|
+
props: !0,
|
|
383
|
+
path: ":creditNoteUuid",
|
|
384
|
+
component: () => import("./CreditNoteDetailViewDataProvider-11a-JO3H.js"),
|
|
385
|
+
meta: { permission: "invoice.read" }
|
|
386
|
+
}]
|
|
387
|
+
}], lt = [{
|
|
388
|
+
name: "invoicing-credit-note-pdf-preview",
|
|
389
|
+
props: !0,
|
|
390
|
+
path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
|
|
391
|
+
component: () => import("./CreditNotePdfViewDataProvider-bfeaya3P.js"),
|
|
392
|
+
meta: { permission: "invoice.read" }
|
|
393
|
+
}];
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region src/routes/invoicingRoutes.composable.ts
|
|
396
|
+
function ut(e) {
|
|
397
|
+
return X([{
|
|
398
|
+
path: "",
|
|
399
|
+
children: [
|
|
400
|
+
...it(e?.invoiceOverviewComponent),
|
|
401
|
+
...ct,
|
|
402
|
+
...Qe,
|
|
403
|
+
...tt
|
|
404
|
+
]
|
|
405
|
+
}]);
|
|
406
|
+
}
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region src/routes/invoicingStandaloneRoutes.composable.ts
|
|
409
|
+
function dt() {
|
|
410
|
+
return [...lt, ...at];
|
|
411
|
+
}
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region src/types/apiError.type.ts
|
|
414
|
+
var Z = {
|
|
415
|
+
invoice_has_no_lines: "wise_invoicing.api_error.invoice_has_no_lines",
|
|
416
|
+
invoice_not_editable: "wise_invoicing.api_error.invoice_not_editable"
|
|
417
|
+
};
|
|
418
|
+
function ft() {
|
|
419
|
+
let e = A();
|
|
420
|
+
return { messages: M(() => Object.fromEntries(Object.entries(Z).map(([t, n]) => [t, e.t(n)]))) };
|
|
421
|
+
}
|
|
422
|
+
//#endregion
|
|
423
|
+
//#region src/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue
|
|
424
|
+
var Q = /* @__PURE__ */ R({
|
|
329
425
|
__name: "CustomerInvoiceTableBadgeCell",
|
|
330
426
|
props: {
|
|
331
427
|
color: {},
|
|
@@ -333,8 +429,8 @@ var Ue = { key: 0 }, We = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
333
429
|
},
|
|
334
430
|
setup(e) {
|
|
335
431
|
let t = e;
|
|
336
|
-
return (e, n) => (
|
|
337
|
-
default:
|
|
432
|
+
return (e, n) => (z(), N(H(q), null, {
|
|
433
|
+
default: U(() => [L(H(G), {
|
|
338
434
|
label: t.label,
|
|
339
435
|
color: t.color,
|
|
340
436
|
size: "sm"
|
|
@@ -342,32 +438,32 @@ var Ue = { key: 0 }, We = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
342
438
|
_: 1
|
|
343
439
|
}));
|
|
344
440
|
}
|
|
345
|
-
}),
|
|
441
|
+
}), pt = /* @__PURE__ */ R({
|
|
346
442
|
__name: "CustomerInvoiceTableInvoiceNumberCell",
|
|
347
443
|
props: { sequence: {} },
|
|
348
444
|
setup(e) {
|
|
349
445
|
let t = e;
|
|
350
|
-
return (e, n) => (
|
|
351
|
-
default:
|
|
446
|
+
return (e, n) => (z(), N(H(q), null, {
|
|
447
|
+
default: U(() => [L(H(J), {
|
|
352
448
|
text: t.sequence ?? "-",
|
|
353
449
|
class: "text-xs font-medium text-primary"
|
|
354
450
|
}, null, 8, ["text"])]),
|
|
355
451
|
_: 1
|
|
356
452
|
}));
|
|
357
453
|
}
|
|
358
|
-
}),
|
|
454
|
+
}), $ = /* @__PURE__ */ R({
|
|
359
455
|
__name: "CustomerInvoiceTableTextCell",
|
|
360
456
|
props: { text: {} },
|
|
361
457
|
setup(e) {
|
|
362
458
|
let t = e;
|
|
363
|
-
return (e, n) => (
|
|
364
|
-
default:
|
|
459
|
+
return (e, n) => (z(), N(H(q), null, {
|
|
460
|
+
default: U(() => [L(H(we), { text: t.text ?? "-" }, null, 8, ["text"])]),
|
|
365
461
|
_: 1
|
|
366
462
|
}));
|
|
367
463
|
}
|
|
368
|
-
}),
|
|
464
|
+
}), mt = class {
|
|
369
465
|
static getStatusBadgeColor(e) {
|
|
370
|
-
return e ===
|
|
466
|
+
return e === s.OVERDUE || e === s.PROTESTED ? "error" : "gray";
|
|
371
467
|
}
|
|
372
468
|
static getVatAmount(e) {
|
|
373
469
|
return {
|
|
@@ -378,20 +474,20 @@ var Ue = { key: 0 }, We = { class: "mb-md text-sm font-semibold text-primary" },
|
|
|
378
474
|
};
|
|
379
475
|
//#endregion
|
|
380
476
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.ts
|
|
381
|
-
function
|
|
382
|
-
let e =
|
|
383
|
-
function
|
|
477
|
+
function ht() {
|
|
478
|
+
let e = A(), t = ae(), r = l();
|
|
479
|
+
function a(e) {
|
|
384
480
|
return e === null ? null : t.formatPlainDate(e);
|
|
385
481
|
}
|
|
386
|
-
return
|
|
482
|
+
return M(() => Ee()([
|
|
387
483
|
{
|
|
388
484
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
|
|
389
|
-
key:
|
|
485
|
+
key: n.SEQUENCE,
|
|
390
486
|
size: {
|
|
391
487
|
max: "9.625rem",
|
|
392
488
|
min: "9.625rem"
|
|
393
489
|
},
|
|
394
|
-
component: (e) =>
|
|
490
|
+
component: (e) => Y(pt, { sequence: e.sequence })
|
|
395
491
|
},
|
|
396
492
|
{
|
|
397
493
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.status"),
|
|
@@ -400,19 +496,19 @@ function at() {
|
|
|
400
496
|
max: "6.4375rem",
|
|
401
497
|
min: "6.4375rem"
|
|
402
498
|
},
|
|
403
|
-
component: (t) =>
|
|
404
|
-
color:
|
|
499
|
+
component: (t) => Y(Q, {
|
|
500
|
+
color: mt.getStatusBadgeColor(t.status),
|
|
405
501
|
label: e.t(O.getMetadata(t.status).translationKey)
|
|
406
502
|
})
|
|
407
503
|
},
|
|
408
504
|
{
|
|
409
505
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
|
|
410
|
-
key:
|
|
506
|
+
key: n.ISSUED_ON,
|
|
411
507
|
size: {
|
|
412
508
|
max: "8.125rem",
|
|
413
509
|
min: "8.125rem"
|
|
414
510
|
},
|
|
415
|
-
component: (e) =>
|
|
511
|
+
component: (e) => Y($, { text: a(e.issuedOn) })
|
|
416
512
|
},
|
|
417
513
|
{
|
|
418
514
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.due_date"),
|
|
@@ -421,7 +517,7 @@ function at() {
|
|
|
421
517
|
max: "7.125rem",
|
|
422
518
|
min: "7.125rem"
|
|
423
519
|
},
|
|
424
|
-
component: (e) =>
|
|
520
|
+
component: (e) => Y($, { text: a(e.dueOn) })
|
|
425
521
|
},
|
|
426
522
|
{
|
|
427
523
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.type"),
|
|
@@ -430,19 +526,19 @@ function at() {
|
|
|
430
526
|
max: "7.875rem",
|
|
431
527
|
min: "7.875rem"
|
|
432
528
|
},
|
|
433
|
-
component: (t) =>
|
|
529
|
+
component: (t) => Y(Q, {
|
|
434
530
|
color: "gray",
|
|
435
|
-
label: e.t(t.type ===
|
|
531
|
+
label: e.t(t.type === i.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
|
|
436
532
|
})
|
|
437
533
|
},
|
|
438
534
|
{
|
|
439
535
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
|
|
440
|
-
key:
|
|
536
|
+
key: n.NET_AMOUNT,
|
|
441
537
|
size: {
|
|
442
538
|
max: "8.25rem",
|
|
443
539
|
min: "8.25rem"
|
|
444
540
|
},
|
|
445
|
-
component: (e) =>
|
|
541
|
+
component: (e) => Y($, { text: r.formatMonetary(e.total) })
|
|
446
542
|
},
|
|
447
543
|
{
|
|
448
544
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.vat"),
|
|
@@ -451,7 +547,7 @@ function at() {
|
|
|
451
547
|
max: "8.25rem",
|
|
452
548
|
min: "8.25rem"
|
|
453
549
|
},
|
|
454
|
-
component: (e) =>
|
|
550
|
+
component: (e) => Y($, { text: r.formatMonetary(mt.getVatAmount(e)) })
|
|
455
551
|
},
|
|
456
552
|
{
|
|
457
553
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_incl_vat"),
|
|
@@ -460,7 +556,7 @@ function at() {
|
|
|
460
556
|
max: "8.25rem",
|
|
461
557
|
min: "8.25rem"
|
|
462
558
|
},
|
|
463
|
-
component: (e) =>
|
|
559
|
+
component: (e) => Y($, { text: r.formatMonetary(e.grossAmount) })
|
|
464
560
|
},
|
|
465
561
|
{
|
|
466
562
|
headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_due"),
|
|
@@ -469,14 +565,14 @@ function at() {
|
|
|
469
565
|
max: "1fr",
|
|
470
566
|
min: "8.3125rem"
|
|
471
567
|
},
|
|
472
|
-
component: (e) =>
|
|
568
|
+
component: (e) => Y($, { text: e.balanceDueAmount === null ? null : r.formatMonetary(e.balanceDueAmount) })
|
|
473
569
|
}
|
|
474
570
|
]));
|
|
475
571
|
}
|
|
476
572
|
//#endregion
|
|
477
573
|
//#region src/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.ts
|
|
478
|
-
function
|
|
479
|
-
let e =
|
|
574
|
+
function gt() {
|
|
575
|
+
let e = A(), t = ce({
|
|
480
576
|
actionGroup: { name: "customer-invoices" },
|
|
481
577
|
filters: [
|
|
482
578
|
se({
|
|
@@ -488,7 +584,7 @@ function ot() {
|
|
|
488
584
|
displayFn: (t) => e.t(O.getMetadata(t).translationKey),
|
|
489
585
|
key: "statuses",
|
|
490
586
|
label: e.t("wise_invoicing.customer_invoice_list.filters.status"),
|
|
491
|
-
options: () => Object.values(
|
|
587
|
+
options: () => Object.values(s)
|
|
492
588
|
}),
|
|
493
589
|
E({
|
|
494
590
|
defaultValue: {
|
|
@@ -515,16 +611,16 @@ function ot() {
|
|
|
515
611
|
label: e.t("wise_invoicing.invoice.overview.filters.due_on")
|
|
516
612
|
})
|
|
517
613
|
]
|
|
518
|
-
}), n =
|
|
614
|
+
}), n = M(() => {
|
|
519
615
|
let e = t.values.value.statuses.value;
|
|
520
616
|
return e?.length ? e : null;
|
|
521
617
|
});
|
|
522
618
|
return {
|
|
523
|
-
issuedOnRange:
|
|
619
|
+
issuedOnRange: M(() => {
|
|
524
620
|
let e = t.values.value.issuedOnRange.value;
|
|
525
621
|
return e.from === null || e.until === null ? null : e;
|
|
526
622
|
}),
|
|
527
|
-
dueOnRange:
|
|
623
|
+
dueOnRange: M(() => {
|
|
528
624
|
let e = t.values.value.dueOnRange.value;
|
|
529
625
|
return e.from === null || e.until === null ? null : e;
|
|
530
626
|
}),
|
|
@@ -533,64 +629,38 @@ function ot() {
|
|
|
533
629
|
};
|
|
534
630
|
}
|
|
535
631
|
//#endregion
|
|
536
|
-
//#region src/ui/
|
|
537
|
-
var
|
|
538
|
-
__name: "DisplayState",
|
|
539
|
-
props: {
|
|
540
|
-
title: {},
|
|
541
|
-
action: { default: null },
|
|
542
|
-
message: {}
|
|
543
|
-
},
|
|
544
|
-
setup(e) {
|
|
545
|
-
let t = e;
|
|
546
|
-
return (e, n) => (B(), I("div", st, [
|
|
547
|
-
L("span", ct, H(t.title), 1),
|
|
548
|
-
L("p", lt, H(t.message), 1),
|
|
549
|
-
t.action === null ? F("", !0) : (B(), P(U(K), {
|
|
550
|
-
key: 0,
|
|
551
|
-
justify: "center",
|
|
552
|
-
class: "mt-2xl"
|
|
553
|
-
}, {
|
|
554
|
-
default: W(() => [R(U(Se), {
|
|
555
|
-
label: t.action.label,
|
|
556
|
-
variant: "secondary",
|
|
557
|
-
onClick: t.action.onClick
|
|
558
|
-
}, null, 8, ["label", "onClick"])]),
|
|
559
|
-
_: 1
|
|
560
|
-
}))
|
|
561
|
-
]));
|
|
562
|
-
}
|
|
563
|
-
}), dt = {
|
|
632
|
+
//#region src/ui/customer-invoice-list/CustomerInvoiceTable.vue?vue&type=script&setup=true&lang.ts
|
|
633
|
+
var _t = { class: "flex min-h-0 flex-1 flex-col" }, vt = {
|
|
564
634
|
key: 1,
|
|
565
635
|
class: "flex min-h-0 flex-1 flex-col"
|
|
566
|
-
},
|
|
636
|
+
}, yt = /* @__PURE__ */ R({
|
|
567
637
|
__name: "CustomerInvoiceTable",
|
|
568
638
|
props: { externalId: {} },
|
|
569
639
|
setup(e) {
|
|
570
|
-
let t = e, r =
|
|
640
|
+
let t = e, r = A(), a = ht(), o = p({ debounceMs: 300 }), { issuedOnRange: s, dueOnRange: c, filters: l, statuses: u } = gt();
|
|
571
641
|
le(l);
|
|
572
|
-
let
|
|
642
|
+
let d = De({
|
|
573
643
|
initialValues: [{
|
|
574
644
|
direction: "desc",
|
|
575
|
-
key:
|
|
645
|
+
key: n.ISSUED_ON
|
|
576
646
|
}],
|
|
577
647
|
keys: [
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
648
|
+
n.SEQUENCE,
|
|
649
|
+
n.ISSUED_ON,
|
|
650
|
+
n.NET_AMOUNT
|
|
581
651
|
]
|
|
582
|
-
}), { isFetching:
|
|
583
|
-
filters:
|
|
652
|
+
}), { isFetching: f, isFetchingNextPage: m, isLoading: h, fetchNextPage: g, result: _ } = ee({ params: {
|
|
653
|
+
filters: M(() => ({
|
|
584
654
|
issuedOnRange: s.value,
|
|
585
655
|
customerExternalIds: [t.externalId],
|
|
586
656
|
dueOnRange: c.value,
|
|
587
657
|
statuses: u.value
|
|
588
658
|
})),
|
|
589
|
-
search:
|
|
590
|
-
sort:
|
|
591
|
-
} }), v =
|
|
659
|
+
search: o.debouncedSearch,
|
|
660
|
+
sort: d.values
|
|
661
|
+
} }), v = M(() => _.value.isOk() ? _.value.getValue().data : []), y = M(() => _.value.isErr() ? _.value.getError() : null), b = M(() => l.activeFilters.value.length), x = M(() => (o.debouncedSearch.value?.trim().length ?? 0) > 0), S = M(() => !h.value && !f.value && y.value === null && v.value.length === 0 && o.search.value === "" && b.value === 0);
|
|
592
662
|
function C(e) {
|
|
593
|
-
return e.type ===
|
|
663
|
+
return e.type === i.CREDIT_NOTE ? {
|
|
594
664
|
name: "invoicing-credit-note-detail",
|
|
595
665
|
params: { creditNoteUuid: e.uuid }
|
|
596
666
|
} : {
|
|
@@ -598,45 +668,65 @@ var st = { class: "duration-500 starting:opacity-0 starting:blur-md" }, ct = { c
|
|
|
598
668
|
params: { invoiceUuid: e.uuid }
|
|
599
669
|
};
|
|
600
670
|
}
|
|
601
|
-
return (e, t) =>
|
|
602
|
-
|
|
603
|
-
title: U(r).t("wise_invoicing.customer_invoice_list.empty_state.title"),
|
|
604
|
-
message: U(r).t("wise_invoicing.customer_invoice_list.empty_state.description")
|
|
605
|
-
}, null, 8, ["title", "message"])) : (B(), I("div", dt, [R(U(K), {
|
|
671
|
+
return (e, t) => (z(), F("div", _t, [L(H(K), {
|
|
672
|
+
align: "center",
|
|
606
673
|
justify: "between",
|
|
607
|
-
class: "
|
|
674
|
+
class: "border-b border-secondary bg-secondary px-lg py-md"
|
|
608
675
|
}, {
|
|
609
|
-
default:
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
676
|
+
default: U(() => [L(H(K), {
|
|
677
|
+
align: "center",
|
|
678
|
+
gap: "md",
|
|
679
|
+
class: "min-w-0"
|
|
680
|
+
}, {
|
|
681
|
+
default: U(() => [L(H(J), {
|
|
682
|
+
text: H(r).t("wise_invoicing.customer_invoice_list.title"),
|
|
683
|
+
class: "shrink-0 text-sm font-semibold text-primary"
|
|
684
|
+
}, null, 8, ["text"]), L(H(ue))]),
|
|
685
|
+
_: 1
|
|
686
|
+
}), S.value ? P("", !0) : (z(), N(H(K), {
|
|
687
|
+
key: 0,
|
|
688
|
+
justify: "end"
|
|
689
|
+
}, {
|
|
690
|
+
default: U(() => [L(H(Te), {
|
|
691
|
+
modelValue: H(o).search.value,
|
|
692
|
+
"onUpdate:modelValue": t[0] ||= (e) => H(o).search.value = e,
|
|
613
693
|
label: null,
|
|
614
|
-
"icon-left":
|
|
615
|
-
placeholder:
|
|
694
|
+
"icon-left": H(ne),
|
|
695
|
+
placeholder: H(r).t("wise_invoicing.common.search"),
|
|
616
696
|
size: "sm",
|
|
617
697
|
type: "search"
|
|
618
698
|
}, null, 8, [
|
|
619
699
|
"modelValue",
|
|
620
700
|
"icon-left",
|
|
621
701
|
"placeholder"
|
|
622
|
-
]),
|
|
702
|
+
]), L(H(fe))]),
|
|
623
703
|
_: 1
|
|
624
|
-
})]),
|
|
704
|
+
}))]),
|
|
625
705
|
_: 1
|
|
626
|
-
}),
|
|
627
|
-
|
|
706
|
+
}), S.value ? (z(), N(H(Se), {
|
|
707
|
+
key: 0,
|
|
708
|
+
icon: H(re),
|
|
709
|
+
title: H(r).t("wise_invoicing.customer_invoice_list.empty_state.title"),
|
|
710
|
+
description: H(r).t("wise_invoicing.customer_invoice_list.empty_state.description"),
|
|
711
|
+
class: "py-7xl"
|
|
712
|
+
}, null, 8, [
|
|
713
|
+
"icon",
|
|
714
|
+
"title",
|
|
715
|
+
"description"
|
|
716
|
+
])) : (z(), F("div", vt, [L(H(Ce), {
|
|
717
|
+
columns: H(a),
|
|
628
718
|
data: v.value,
|
|
629
|
-
sort:
|
|
630
|
-
"is-loading":
|
|
631
|
-
"is-fetching-next-page":
|
|
719
|
+
sort: H(d),
|
|
720
|
+
"is-loading": H(h),
|
|
721
|
+
"is-fetching-next-page": H(m),
|
|
632
722
|
error: y.value,
|
|
633
723
|
"has-active-search": x.value,
|
|
634
724
|
"active-filter-count": b.value,
|
|
635
725
|
"get-key": (e) => e.uuid,
|
|
636
726
|
"get-link": C,
|
|
637
|
-
onNextPage:
|
|
638
|
-
onClearSearch: t[1] ||= (e) =>
|
|
639
|
-
onClearFilters: t[2] ||= (e) =>
|
|
727
|
+
onNextPage: H(g),
|
|
728
|
+
onClearSearch: t[1] ||= (e) => H(o).clear(),
|
|
729
|
+
onClearFilters: t[2] ||= (e) => H(l).clearAll()
|
|
640
730
|
}, null, 8, [
|
|
641
731
|
"columns",
|
|
642
732
|
"data",
|
|
@@ -648,96 +738,26 @@ var st = { class: "duration-500 starting:opacity-0 starting:blur-md" }, ct = { c
|
|
|
648
738
|
"active-filter-count",
|
|
649
739
|
"get-key",
|
|
650
740
|
"onNextPage"
|
|
651
|
-
])])]));
|
|
741
|
+
])]))]));
|
|
652
742
|
}
|
|
653
|
-
}),
|
|
743
|
+
}), bt = /* @__PURE__ */ R({
|
|
654
744
|
__name: "CustomerInvoiceList",
|
|
655
745
|
props: { externalId: {} },
|
|
656
746
|
setup(e) {
|
|
657
|
-
let t = e, n =
|
|
658
|
-
return (e, t) => n.value === null ?
|
|
747
|
+
let t = e, n = M(() => typeof t.externalId == "string" && t.externalId !== "" ? t.externalId : null);
|
|
748
|
+
return (e, t) => n.value === null ? P("", !0) : (z(), N(yt, {
|
|
659
749
|
key: n.value,
|
|
660
750
|
"external-id": n.value
|
|
661
751
|
}, null, 8, ["external-id"]));
|
|
662
752
|
}
|
|
663
|
-
})
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
children: [{
|
|
672
|
-
name: "invoicing-invoice-overview",
|
|
673
|
-
path: "",
|
|
674
|
-
component: e ?? (() => import("./InvoiceOverviewViewDataProvider-i8tXATJE.js").then((e) => e.n)),
|
|
675
|
-
meta: { permission: "invoice.read" }
|
|
676
|
-
}, {
|
|
677
|
-
name: "invoicing-invoice-detail",
|
|
678
|
-
props: !0,
|
|
679
|
-
path: ":invoiceUuid",
|
|
680
|
-
component: () => import("./InvoiceDetailViewDataProvider-BU6jZfD7.js"),
|
|
681
|
-
meta: { permission: "invoice.read" }
|
|
682
|
-
}]
|
|
683
|
-
}]);
|
|
684
|
-
}
|
|
685
|
-
var gt = Y([{
|
|
686
|
-
name: "invoicing-invoice-pdf-preview",
|
|
687
|
-
props: !0,
|
|
688
|
-
path: "/invoicing/invoices/:invoiceUuid/pdf",
|
|
689
|
-
component: () => import("./InvoicePdfViewDataProvider-BPiK110e.js"),
|
|
690
|
-
meta: { permission: "invoice.read" }
|
|
691
|
-
}]), _t = Y([{
|
|
692
|
-
name: "invoicing-invoice-public-pdf-preview",
|
|
693
|
-
path: "/pdf",
|
|
694
|
-
component: () => import("./InvoicePublicPdfViewDataProvider-BJe-8hC5.js").then((e) => e.n)
|
|
695
|
-
}]);
|
|
696
|
-
//#endregion
|
|
697
|
-
//#region src/routes/invoicingPublicRoutes.composable.ts
|
|
698
|
-
function vt() {
|
|
699
|
-
return [..._t, ...ze];
|
|
700
|
-
}
|
|
701
|
-
//#endregion
|
|
702
|
-
//#region src/modules/credit-note/routes/creditNote.routes.ts
|
|
703
|
-
var yt = [{
|
|
704
|
-
name: "invoicing-credit-note-module",
|
|
705
|
-
path: "/invoicing/credit-notes",
|
|
706
|
-
redirect: { name: "invoicing-invoice-overview" },
|
|
707
|
-
children: [{
|
|
708
|
-
name: "invoicing-credit-note-detail",
|
|
709
|
-
props: !0,
|
|
710
|
-
path: ":creditNoteUuid",
|
|
711
|
-
component: () => import("./CreditNoteDetailViewDataProvider-Byd1QvfY.js"),
|
|
712
|
-
meta: { permission: "invoice.read" }
|
|
713
|
-
}]
|
|
714
|
-
}], bt = [{
|
|
715
|
-
name: "invoicing-credit-note-pdf-preview",
|
|
716
|
-
props: !0,
|
|
717
|
-
path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
|
|
718
|
-
component: () => import("./CreditNotePdfViewDataProvider-DI4eQkpM.js"),
|
|
719
|
-
meta: { permission: "invoice.read" }
|
|
720
|
-
}];
|
|
721
|
-
//#endregion
|
|
722
|
-
//#region src/routes/invoicingRoutes.composable.ts
|
|
723
|
-
function xt(e) {
|
|
724
|
-
return Y([{
|
|
725
|
-
path: "",
|
|
726
|
-
children: [
|
|
727
|
-
...ht(e?.invoiceOverviewComponent),
|
|
728
|
-
...yt,
|
|
729
|
-
...Le
|
|
730
|
-
]
|
|
731
|
-
}]);
|
|
732
|
-
}
|
|
733
|
-
//#endregion
|
|
734
|
-
//#region src/routes/invoicingStandaloneRoutes.composable.ts
|
|
735
|
-
function St() {
|
|
736
|
-
return [...bt, ...gt];
|
|
737
|
-
}
|
|
738
|
-
//#endregion
|
|
739
|
-
//#region src/index.ts
|
|
740
|
-
var Ct = {
|
|
753
|
+
}), xt = class {
|
|
754
|
+
static format(e, t = 0) {
|
|
755
|
+
return new Intl.NumberFormat(void 0, { maximumFractionDigits: t }).format(e);
|
|
756
|
+
}
|
|
757
|
+
static randomBetween(e, t) {
|
|
758
|
+
return Math.floor(Math.random() * (t - e + 1)) + e;
|
|
759
|
+
}
|
|
760
|
+
}, St = {
|
|
741
761
|
"en-US": {
|
|
742
762
|
...t,
|
|
743
763
|
...ke
|
|
@@ -748,4 +768,4 @@ var Ct = {
|
|
|
748
768
|
}
|
|
749
769
|
};
|
|
750
770
|
//#endregion
|
|
751
|
-
export {
|
|
771
|
+
export { g as AddressUtil, y as DownloadUtil, b as MonetaryTransformer, xt as NumberUtil, S as Percentage, x as PercentageTransformer, r as SortDirection, ye as SortUtil, a as WiseInvoicingCustomFieldType, v as WiseInvoicingCustomFieldValueUtil, Ye as WiseInvoicingCustomerDunningCasesSection, bt as WiseInvoicingCustomerInvoiceList, oe as WiseInvoicingDunningCaseDetailView, te as WiseInvoicingDunningCaseOverviewView, pe as WiseInvoicingDunningCaseReminderPdfView, h as WiseInvoicingInvoiceOverviewView, ge as WiseInvoicingInvoicePublicPdfViewDataProvider, me as WiseInvoicingReminderSettingsView, _ as addressFormSchema, Ne as creditNoteUuidSchema, f as initWiseInvoicingConfig, Ze as invoiceUuidSchema, je as onCreated, u as toMajorUnits, c as toMinorUnits, l as useCurrencyFormat, o as useDocumentTitle, Xe as useInvoiceNavigateToDetailAction, p as useSearch, m as useSort, ft as useWiseInvoicingApiError, d as useWiseInvoicingConfig, C as useWiseInvoicingDunningCaseIndexQuery, he as useWiseInvoicingInvoicePublicDetailQuery, st as useWiseInvoicingPublicRoutes, Me as useWiseInvoicingQueryInvalidation, ut as useWiseInvoicingRoutes, dt as useWiseInvoicingStandaloneRoutes, Z as wiseInvoicingApiErrorI18nKeys, St as wiseInvoicingLocales, rt as wiseInvoicingSettingsRoutes };
|