@wisemen/wise-invoicing-web 0.1.1 → 0.3.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-DwtfyQpx.js +151 -0
- package/dist/{BillingDocumentDetailViewDataProvider-f5goWm_i.js → BillingDocumentDetailViewDataProvider-TJUwMhtn.js} +1499 -1407
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-5vi2pgRM.js → BillingDocumentPdf-PU9Ldfhs.js} +20 -13
- package/dist/{CreditNoteDetailViewDataProvider-Byd1QvfY.js → CreditNoteDetailViewDataProvider-DOPmal5D.js} +166 -166
- package/dist/{CreditNotePdfViewDataProvider-DI4eQkpM.js → CreditNotePdfViewDataProvider-BH7MaReQ.js} +3 -3
- package/dist/{CustomFieldValueText-BGbQwhON.js → CustomFieldValueText-BjRVovZL.js} +72 -72
- package/dist/DataProvider-C3uEds9v.js +75 -0
- package/dist/DunningCaseDetailViewDataProvider-CW8ijY3H.js +439 -0
- package/dist/DunningCaseOverviewView-Cfo-4VIw.js +799 -0
- package/dist/{DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js → DunningCaseReminderPdfViewDataProvider-Dr-CS_VQ.js} +25 -25
- package/dist/DunningCaseSendDialog-BYFXJYMM.js +360 -0
- package/dist/InvoiceApprovalOutOfSyncIndicator-CP2GLaeh.js +45 -0
- package/dist/InvoiceApprovalOverviewView-Cjdu9iZC.js +814 -0
- package/dist/InvoiceApprovalStatusBadge-CcX8agTF.js +127 -0
- package/dist/InvoiceApproveDialogDataProvider-4wNAetBn.js +377 -0
- package/dist/InvoiceDetailViewDataProvider-C9O3hXGo.js +2214 -0
- package/dist/InvoiceOverviewViewDataProvider-DBdw7FvZ.js +1892 -0
- package/dist/{InvoicePdfView-C-7m2g3b.js → InvoicePdfView-CvU9bRVd.js} +10 -4
- package/dist/{InvoicePdfViewDataProvider-BPiK110e.js → InvoicePdfViewDataProvider-CFjHQ58K.js} +4 -4
- package/dist/InvoicePublicPdfViewDataProvider-DDv-LdBU.js +45 -0
- package/dist/InvoicePublicProFormaPdfViewDataProvider-BTjJnELb.js +47 -0
- package/dist/InvoicingFileUploadProvider-Kcq7kSSt.js +94 -0
- package/dist/{IssuerSettingsViewDataProvider-COqHGUE6.js → IssuerSettingsViewDataProvider-BuSIVnIl.js} +4 -4
- package/dist/{ReminderSettingsViewDataProvider-Dys4bUU7.js → ReminderSettingsViewDataProvider-CH7gSXnj.js} +68 -70
- package/dist/{api.util-BCSgCfpS.js → api.util-CkIRZS3h.js} +1537 -872
- package/dist/{billingDocumentDetail.transformer-BBn9R_cx.js → billingDocumentDetail.transformer-Bfd8geNo.js} +60 -63
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +19 -1
- package/dist/client/types.gen.d.ts +1155 -119
- package/dist/client/zod.gen.d.ts +25353 -8465
- package/dist/composables/sending-refetch/sendingRefetch.composable.d.ts +7 -0
- package/dist/composables/sending-refetch/sendingRefetch.composable.spec.d.ts +1 -0
- package/dist/{creditNoteDetail.query-BcPsB96h.js → creditNoteDetail.query-tLnfqsEB.js} +32 -32
- package/dist/customerUuid.model-ClN4Vi9n.js +18 -0
- package/dist/{dist-D9lp7NDv.js → dist-BD7Allff.js} +270 -110
- package/dist/{dist-BBjpqvUl.js → dist-D5agTXFI.js} +605 -605
- package/dist/{documentTitle.composable-4ApFl9TZ.js → documentTitle.composable-CRJjS6p-.js} +25 -15
- package/dist/{customFieldValue.util-BwsX8exl.js → download.util-B5Q7KUC9.js} +6 -6
- package/dist/{i18n.lib-C6eb-F-e.js → i18n.lib--mzprLMR.js} +336 -38
- package/dist/index.d.ts +349 -49
- package/dist/index.js +347 -335
- package/dist/invoice.service-B1w16_Md.js +757 -0
- package/dist/invoiceApproval.service-BHAJmFkU.js +72 -0
- package/dist/invoiceApprovalStatus.util-DohOKR4q.js +83 -0
- package/dist/invoiceCustomer.service-DpVfpQUD.js +39 -0
- package/dist/{invoiceDetail.query-Cek8nyaw.js → invoiceDetail.query-CfyNSXLS.js} +1 -1
- package/dist/invoiceIndexCache.util-jHsrFwcA.js +288 -0
- package/dist/{invoicingConfig.composable-DTmad1fe.js → invoicingConfig.composable-COn1rKRf.js} +2 -2
- package/dist/{issuerSettings.query-Bvz-Oj5D.js → issuerSettings.query-CDFk2GiP.js} +6 -5
- package/dist/libs/i18n.lib.d.ts +322 -24
- package/dist/locales/en-US.json.d.ts +168 -19
- package/dist/locales/nl-BE.json.d.ts +168 -19
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +8 -1
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.d.ts +12 -0
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -6
- package/dist/modules/dunning-case/api/mutations/dunningCaseReminderRetry.mutation.d.ts +4 -0
- package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +2 -1
- package/dist/modules/dunning-case/models/dunningCase.model.d.ts +5 -0
- package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +0 -1
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +0 -4
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +0 -1
- package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +2 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +0 -4
- package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +2 -1
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +4 -4
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.spec.d.ts +1 -0
- 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 +17 -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/queries/invoicePublicProFormaDetail.query.d.ts +2 -0
- package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +6 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +15 -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 +15 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.spec.d.ts +1 -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 +15 -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 +14 -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 -1
- package/dist/modules/invoice/models/invoice/invoiceApproval.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +27 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +12 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +2 -1
- package/dist/modules/invoice/routes/invoice.routes.d.ts +4 -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 +14 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialogDataProvider.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/InvoicePaymentDeleteDialog.vue.d.ts +13 -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 -1
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +11 -9
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +3 -2
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +14 -0
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +9 -4
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +0 -5
- package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +4 -1
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicProFormaPdfViewDataProvider.vue.d.ts +3 -0
- 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 +3 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.spec.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/invoiceApprovalIndex.transformer.spec.d.ts +1 -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/models/invoiceApprovalIndexQueryParams.transformer.spec.d.ts +1 -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 +41 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +5 -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/models/issuer-settings/issuerSettings.model.d.ts +1 -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-DSO0ekC_.js +316 -0
- package/dist/routes/invoicingPublicRoutes.composable.d.ts +4 -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/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityApprovalDetails.vue.d.ts +7 -0
- package/dist/utils/html.util.d.ts +4 -0
- package/package.json +3 -2
- 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/DunningCaseDetailViewDataProvider-DKuuysqS.js +0 -409
- package/dist/DunningCaseOverviewView-aWttPLrC.js +0 -747
- package/dist/DunningCaseSendDialog-DyvA5R1p.js +0 -349
- 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/customerUuid.model-GUFYq3O2.js +0 -5
- 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
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import { $ as e, F as t, K as n, O as r, P as i, et as a, lt as o, o as s, t as c } from "./api.util-CkIRZS3h.js";
|
|
2
|
+
import { c as l, h as u, m as d, w as f } from "./documentTitle.composable-CRJjS6p-.js";
|
|
3
|
+
import { n as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
+
import { n as h, r as g, t as _ } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
5
|
+
import { n as v, t as y } from "./percentage.util-Bl78kSSk.js";
|
|
6
|
+
import { Fragment as b, computed as x, createElementBlock as S, createElementVNode as C, defineComponent as w, normalizeClass as T, openBlock as E, renderList as D } from "vue";
|
|
7
|
+
import { useQuery as O } from "@wisemen/vue-core-api-utils";
|
|
8
|
+
//#region src/utils/html.util.ts
|
|
9
|
+
var k = /* @__PURE__ */ new Set(/* @__PURE__ */ "address.article.aside.blockquote.div.dl.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hr.li.main.nav.ol.p.pre.section.table.tbody.td.tfoot.th.thead.tr.ul".split("."));
|
|
10
|
+
function A(e) {
|
|
11
|
+
return e.nodeType === 3;
|
|
12
|
+
}
|
|
13
|
+
function j(e) {
|
|
14
|
+
return e.nodeType === 1;
|
|
15
|
+
}
|
|
16
|
+
function M(e) {
|
|
17
|
+
let t = e;
|
|
18
|
+
for (; t.startsWith("\n\n");) t = t.slice(2);
|
|
19
|
+
for (; t.endsWith("\n\n");) t = t.slice(0, -2);
|
|
20
|
+
return t;
|
|
21
|
+
}
|
|
22
|
+
function N(e) {
|
|
23
|
+
let t = "";
|
|
24
|
+
function n(e) {
|
|
25
|
+
t += e.replaceAll("\xA0", " ");
|
|
26
|
+
}
|
|
27
|
+
function r(e) {
|
|
28
|
+
if (A(e)) {
|
|
29
|
+
n(e.data);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (!j(e)) return;
|
|
33
|
+
let i = e.tagName.toLowerCase();
|
|
34
|
+
if (i === "script" || i === "style") return;
|
|
35
|
+
if (i === "br") {
|
|
36
|
+
n("\n");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
let a = k.has(i);
|
|
40
|
+
a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
|
|
41
|
+
for (let t of e.childNodes) r(t);
|
|
42
|
+
a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
|
|
43
|
+
}
|
|
44
|
+
for (let t of e) r(t);
|
|
45
|
+
return t;
|
|
46
|
+
}
|
|
47
|
+
function P(e) {
|
|
48
|
+
return e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
49
|
+
}
|
|
50
|
+
var F = class {
|
|
51
|
+
static fromPlainText(e) {
|
|
52
|
+
return `<p>${e.split("\n").map((e) => P(e)).join("<br>")}</p>`;
|
|
53
|
+
}
|
|
54
|
+
static toPlainText(e) {
|
|
55
|
+
return M(N(new DOMParser().parseFromString(e, "text/html").body.childNodes));
|
|
56
|
+
}
|
|
57
|
+
}, I = [
|
|
58
|
+
"en-US",
|
|
59
|
+
"nl-BE",
|
|
60
|
+
"fr-BE"
|
|
61
|
+
], L = [
|
|
62
|
+
1,
|
|
63
|
+
2,
|
|
64
|
+
3
|
|
65
|
+
];
|
|
66
|
+
function R(e) {
|
|
67
|
+
return e === null || e === "infinity" || e === "-infinity";
|
|
68
|
+
}
|
|
69
|
+
function z(e) {
|
|
70
|
+
return R(e) ? null : g.fromDto(e);
|
|
71
|
+
}
|
|
72
|
+
function B(e) {
|
|
73
|
+
return R(e) ? null : _.fromDto(e);
|
|
74
|
+
}
|
|
75
|
+
function V(e, t) {
|
|
76
|
+
return e.items.find((e) => e.locale === t)?.value ?? "";
|
|
77
|
+
}
|
|
78
|
+
function H() {
|
|
79
|
+
return {
|
|
80
|
+
"en-US": {
|
|
81
|
+
body: "",
|
|
82
|
+
subject: ""
|
|
83
|
+
},
|
|
84
|
+
"fr-BE": {
|
|
85
|
+
body: "",
|
|
86
|
+
subject: ""
|
|
87
|
+
},
|
|
88
|
+
"nl-BE": {
|
|
89
|
+
body: "",
|
|
90
|
+
subject: ""
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function U(e, t, n) {
|
|
95
|
+
let r = t?.fee.amount ?? null;
|
|
96
|
+
return {
|
|
97
|
+
feeAmount: r === null ? 0 : m(r.amount, r.precision),
|
|
98
|
+
feeCurrency: r?.currency ?? n.currency,
|
|
99
|
+
feePercentage: t?.fee.percentage?.value ?? 0,
|
|
100
|
+
feePrecision: r?.precision ?? n.precision,
|
|
101
|
+
feeType: t?.fee.type ?? d.AMOUNT,
|
|
102
|
+
offsetDays: t?.offsetDays ?? e,
|
|
103
|
+
schedule: t?.schedule ?? f.AFTER_DUE_DATE,
|
|
104
|
+
sequence: e,
|
|
105
|
+
template: t?.template ?? H()
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function W(e, t) {
|
|
109
|
+
return {
|
|
110
|
+
body: F.toPlainText(V(e.body, t)),
|
|
111
|
+
subject: V(e.subject, t)
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function G(e, t) {
|
|
115
|
+
return { items: I.map((n) => ({
|
|
116
|
+
locale: n,
|
|
117
|
+
value: t === "body" ? F.fromPlainText(e[n][t]) : e[n][t]
|
|
118
|
+
})) };
|
|
119
|
+
}
|
|
120
|
+
var K = class e {
|
|
121
|
+
static fromDetailDto(t) {
|
|
122
|
+
return {
|
|
123
|
+
uuid: t.uuid,
|
|
124
|
+
closedAt: g.fromNullableDto(t.closedAt),
|
|
125
|
+
createdAt: g.fromDto(t.createdAt),
|
|
126
|
+
lastReminderSentAt: z(t.lastReminderSentAt),
|
|
127
|
+
nextReminderOn: _.fromNullableDto(t.nextReminderOn),
|
|
128
|
+
updatedAt: g.fromDto(t.updatedAt),
|
|
129
|
+
blockedReason: t.blockedReason,
|
|
130
|
+
canRetryReminder: t.canRetryReminder,
|
|
131
|
+
canSendReminder: t.canSendReminder,
|
|
132
|
+
customer: t.customer,
|
|
133
|
+
invoices: t.invoices.map(e.fromInvoiceDto),
|
|
134
|
+
latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
|
|
135
|
+
level: t.level ?? 0,
|
|
136
|
+
outstandingBalance: h.fromDto(t.outstandingBalance),
|
|
137
|
+
totalCredited: h.fromDto(t.totalCredited),
|
|
138
|
+
totalFee: h.fromDto(t.totalFee),
|
|
139
|
+
totalInvoiced: h.fromDto(t.totalInvoiced),
|
|
140
|
+
totalPaid: h.fromDto(t.totalPaid)
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
static fromIndexDto(t) {
|
|
144
|
+
return {
|
|
145
|
+
uuid: t.uuid,
|
|
146
|
+
lastReminderSentAt: z(t.lastReminderSentAt),
|
|
147
|
+
nextReminderOn: B(t.nextReminderOn),
|
|
148
|
+
blockedReason: t.blockedReason,
|
|
149
|
+
canRetryReminder: t.canRetryReminder,
|
|
150
|
+
canSendReminder: t.canSendReminder,
|
|
151
|
+
customer: t.customer,
|
|
152
|
+
daysOverdue: t.daysOverdue,
|
|
153
|
+
latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
|
|
154
|
+
level: t.level,
|
|
155
|
+
outstandingBalance: h.fromDto(t.outstandingBalance)
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
static fromInvoiceDto(e) {
|
|
159
|
+
return {
|
|
160
|
+
uuid: e.uuid,
|
|
161
|
+
dueOn: _.fromDto(e.dueOn),
|
|
162
|
+
isDisputed: e.isDisputed,
|
|
163
|
+
balanceDueAmount: h.fromDto(e.balanceDueAmount),
|
|
164
|
+
creditNotes: e.creditNotes.map((e) => ({
|
|
165
|
+
uuid: e.uuid,
|
|
166
|
+
finalizedOn: _.fromDto(e.finalizedOn),
|
|
167
|
+
grossAmount: h.fromDto(e.grossAmount),
|
|
168
|
+
sequence: e.sequence
|
|
169
|
+
})),
|
|
170
|
+
grossAmount: h.fromDto(e.grossAmount),
|
|
171
|
+
level: e.level ?? 0,
|
|
172
|
+
paidAmount: h.fromDto(e.paidAmount),
|
|
173
|
+
payments: e.payments.map((e) => ({
|
|
174
|
+
uuid: e.uuid,
|
|
175
|
+
amount: h.fromDto(e.amount),
|
|
176
|
+
date: _.fromDto(e.date)
|
|
177
|
+
})),
|
|
178
|
+
sequence: e.sequence,
|
|
179
|
+
settlementStatus: e.settlementStatus,
|
|
180
|
+
subject: e.subject,
|
|
181
|
+
totalCreditedAmount: h.fromDto(e.totalCreditedAmount)
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
static fromReminderConfigDto(e) {
|
|
185
|
+
return {
|
|
186
|
+
uuid: e.uuid,
|
|
187
|
+
fee: {
|
|
188
|
+
amount: e.fee.amount === null ? null : h.fromDto(e.fee.amount),
|
|
189
|
+
percentage: v.fromNullableDto(e.fee.percentage),
|
|
190
|
+
type: e.fee.type
|
|
191
|
+
},
|
|
192
|
+
offsetDays: e.offsetDays,
|
|
193
|
+
schedule: e.schedule,
|
|
194
|
+
sequence: e.sequence,
|
|
195
|
+
template: {
|
|
196
|
+
"en-US": W(e.template, "en-US"),
|
|
197
|
+
"fr-BE": W(e.template, "fr-BE"),
|
|
198
|
+
"nl-BE": W(e.template, "nl-BE")
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
static fromReminderDto(e) {
|
|
203
|
+
return e === null ? null : {
|
|
204
|
+
uuid: e.uuid,
|
|
205
|
+
sentAt: z(e.sentAt),
|
|
206
|
+
hasErrors: e.hasErrors
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
static reminderConfigsToDto(e) {
|
|
210
|
+
return e.reminders.map((e) => ({
|
|
211
|
+
fee: e.feeType === d.PERCENTAGE ? {
|
|
212
|
+
amount: null,
|
|
213
|
+
percentage: v.toDto(new y(e.feePercentage)),
|
|
214
|
+
type: d.PERCENTAGE
|
|
215
|
+
} : {
|
|
216
|
+
amount: {
|
|
217
|
+
amount: p(e.feeAmount, e.feePrecision),
|
|
218
|
+
currency: e.feeCurrency,
|
|
219
|
+
precision: e.feePrecision
|
|
220
|
+
},
|
|
221
|
+
percentage: null,
|
|
222
|
+
type: d.AMOUNT
|
|
223
|
+
},
|
|
224
|
+
offsetDays: e.offsetDays,
|
|
225
|
+
schedule: e.schedule,
|
|
226
|
+
sequence: e.sequence,
|
|
227
|
+
template: {
|
|
228
|
+
body: G(e.template, "body"),
|
|
229
|
+
subject: G(e.template, "subject")
|
|
230
|
+
}
|
|
231
|
+
}));
|
|
232
|
+
}
|
|
233
|
+
static reminderConfigsToForm(e) {
|
|
234
|
+
let t = e.find((e) => e.fee.amount !== null)?.fee.amount ?? null, n = {
|
|
235
|
+
currency: t?.currency ?? l.EUR,
|
|
236
|
+
precision: t?.precision ?? 2
|
|
237
|
+
};
|
|
238
|
+
return { reminders: L.map((t) => U(t, e.find((e) => e.sequence === t), n)) };
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/modules/dunning-case/api/services/dunningCase.service.ts
|
|
243
|
+
function q(e) {
|
|
244
|
+
return {
|
|
245
|
+
customerUuid: e.customerUuid,
|
|
246
|
+
isOpen: e.isOpen,
|
|
247
|
+
dunningCaseUuids: e.dunningCaseUuids === void 0 ? void 0 : {
|
|
248
|
+
scope: u.INCLUDE,
|
|
249
|
+
values: e.dunningCaseUuids
|
|
250
|
+
},
|
|
251
|
+
level: e.level
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
var J = class {
|
|
255
|
+
static async getAll(e) {
|
|
256
|
+
return (await c.fromPromise(a({ query: {
|
|
257
|
+
filter: q(e),
|
|
258
|
+
pagination: e.pagination
|
|
259
|
+
} }))).map((e) => ({
|
|
260
|
+
data: e.data.items.map(K.fromIndexDto),
|
|
261
|
+
meta: e.data.meta
|
|
262
|
+
}));
|
|
263
|
+
}
|
|
264
|
+
static async getByUuid(t) {
|
|
265
|
+
return (await c.fromPromise(e({ path: { uuid: t } }))).map((e) => K.fromDetailDto(e.data));
|
|
266
|
+
}
|
|
267
|
+
static async getReminderConfigs() {
|
|
268
|
+
return (await c.fromPromise(o())).map((e) => e.data.items.map(K.fromReminderConfigDto));
|
|
269
|
+
}
|
|
270
|
+
static async previewBulk(e) {
|
|
271
|
+
return (await c.fromPromise(r({ query: { filter: q(e) } }))).map((e) => e.data);
|
|
272
|
+
}
|
|
273
|
+
static async retry(e) {
|
|
274
|
+
let t = await c.fromPromise(i({ path: { uuid: e } }));
|
|
275
|
+
return c.void(t);
|
|
276
|
+
}
|
|
277
|
+
static async send(e) {
|
|
278
|
+
let n = await c.fromPromise(t({ path: { uuid: e } }));
|
|
279
|
+
return c.void(n);
|
|
280
|
+
}
|
|
281
|
+
static async sendBulk(e) {
|
|
282
|
+
return (await c.fromPromise(s({ query: { filter: q(e) } }))).map((e) => e.data);
|
|
283
|
+
}
|
|
284
|
+
static async updateReminderConfigs(e) {
|
|
285
|
+
let t = await c.fromPromise(n({ body: { reminders: K.reminderConfigsToDto(e) } }));
|
|
286
|
+
return c.void(t);
|
|
287
|
+
}
|
|
288
|
+
}, Y = {
|
|
289
|
+
class: "flex shrink-0 gap-xxs",
|
|
290
|
+
"aria-hidden": "true"
|
|
291
|
+
}, X = /* @__PURE__ */ w({
|
|
292
|
+
__name: "DunningCaseReminderLevelIndicator",
|
|
293
|
+
props: {
|
|
294
|
+
level: {},
|
|
295
|
+
size: { default: "md" }
|
|
296
|
+
},
|
|
297
|
+
setup(e) {
|
|
298
|
+
let t = e, n = x(() => Math.min(3, Math.max(0, t.level ?? 0))), r = x(() => t.level === 3 ? "error" : t.level === 2 ? "warning" : "brand"), i = x(() => t.size === "sm" ? "h-(--spacing-sm) w-(--spacing-md)" : "h-(--spacing-sm) w-(--spacing-lg)");
|
|
299
|
+
return (e, t) => (E(), S("span", Y, [(E(), S(b, null, D(3, (e) => C("span", {
|
|
300
|
+
key: e,
|
|
301
|
+
class: T([[i.value, e <= n.value ? {
|
|
302
|
+
"border-brand-500 bg-brand-500": r.value === "brand",
|
|
303
|
+
"border-warning-500 bg-warning-solid": r.value === "warning",
|
|
304
|
+
"border-error bg-error-solid": r.value === "error"
|
|
305
|
+
} : "border-secondary bg-primary"], "rounded-full border"])
|
|
306
|
+
}, null, 2)), 64))]));
|
|
307
|
+
}
|
|
308
|
+
}), Z = 3e5;
|
|
309
|
+
function Q() {
|
|
310
|
+
return O("reminderConfig", {
|
|
311
|
+
staleTime: Z,
|
|
312
|
+
queryFn: () => J.getReminderConfigs()
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
//#endregion
|
|
316
|
+
export { K as i, X as n, J as r, Q as t };
|
|
@@ -2,6 +2,10 @@ export declare function useInvoicingPublicRoutes(): [{
|
|
|
2
2
|
readonly name: "invoicing-invoice-public-pdf-preview";
|
|
3
3
|
readonly path: "/pdf";
|
|
4
4
|
readonly component: () => import('vue').Component;
|
|
5
|
+
}, {
|
|
6
|
+
readonly name: "invoicing-invoice-public-pro-forma-pdf-preview";
|
|
7
|
+
readonly path: "/pro-forma-pdf";
|
|
8
|
+
readonly component: () => import('vue').Component;
|
|
5
9
|
}, {
|
|
6
10
|
readonly name: "dunning-case-reminder-pdf";
|
|
7
11
|
readonly path: "/dunning-case-reminder-pdf";
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
export interface InvoicingRoutesOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Replaces the component of the 'invoicing-invoice-overview' route. The
|
|
5
|
-
* route name, path and meta (permission) are preserved, so package-internal
|
|
6
|
-
* navigation keeps working. Hosts wrap the exported overview view to add
|
|
7
|
-
* custom actions or override the create flow.
|
|
8
|
-
*/
|
|
9
3
|
invoiceOverviewComponent?: Component;
|
|
10
4
|
}
|
|
11
5
|
export declare function useInvoicingRoutes(options?: InvoicingRoutesOptions): [{
|
|
@@ -69,5 +63,19 @@ export declare function useInvoicingRoutes(options?: InvoicingRoutesOptions): [{
|
|
|
69
63
|
readonly permission: "dunning-case.read";
|
|
70
64
|
};
|
|
71
65
|
}];
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "invoice-approval-module";
|
|
68
|
+
readonly path: "/invoicing/approvals";
|
|
69
|
+
readonly redirect: {
|
|
70
|
+
readonly name: "invoice-approval-overview";
|
|
71
|
+
};
|
|
72
|
+
readonly children: [{
|
|
73
|
+
readonly name: "invoice-approval-overview";
|
|
74
|
+
readonly path: "";
|
|
75
|
+
readonly component: () => Component;
|
|
76
|
+
readonly meta: {
|
|
77
|
+
readonly permission: "invoice-approval.read";
|
|
78
|
+
};
|
|
79
|
+
}];
|
|
72
80
|
}];
|
|
73
81
|
}];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { computed as e, ref as t, watch as n } from "vue";
|
|
2
|
+
import { refDebounced as r } from "@vueuse/core";
|
|
3
|
+
import { useRoute as i, useRouter as a } from "vue-router";
|
|
4
|
+
//#region src/composables/routeQueryState.composable.ts
|
|
5
|
+
function o(e) {
|
|
6
|
+
let r = i(), o = a();
|
|
7
|
+
function s(t) {
|
|
8
|
+
if (t === null) return e.initialState;
|
|
9
|
+
try {
|
|
10
|
+
return e.serializer.parse(t);
|
|
11
|
+
} catch {
|
|
12
|
+
return e.initialState;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
let c = t(s(r.query[e.key] ?? null));
|
|
16
|
+
return n(() => r.query[e.key], (e) => {
|
|
17
|
+
c.value = s(e ?? null);
|
|
18
|
+
}, { immediate: !0 }), n(c, (t) => {
|
|
19
|
+
o.replace({ query: {
|
|
20
|
+
...r.query,
|
|
21
|
+
[e.key]: e.serializer.serialize(t) || void 0
|
|
22
|
+
} });
|
|
23
|
+
}, { deep: !0 }), c;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/composables/search/search.composable.ts
|
|
27
|
+
var s = 50, c = "search";
|
|
28
|
+
function l(n) {
|
|
29
|
+
let i = n?.debounceMs ?? s, a = n?.persistInUrl ?? !1, l = a === !0 || typeof a == "string" ? o({
|
|
30
|
+
initialState: "",
|
|
31
|
+
key: typeof a == "string" ? a : c,
|
|
32
|
+
serializer: {
|
|
33
|
+
parse: (e) => e,
|
|
34
|
+
serialize: (e) => e
|
|
35
|
+
}
|
|
36
|
+
}) : t(""), u = r(l, i), d = e(() => l.value !== u.value);
|
|
37
|
+
function f() {
|
|
38
|
+
l.value = "";
|
|
39
|
+
}
|
|
40
|
+
function p(e) {
|
|
41
|
+
l.value = e;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
isDebouncing: d,
|
|
45
|
+
clear: f,
|
|
46
|
+
debouncedSearch: e(() => u.value),
|
|
47
|
+
search: l,
|
|
48
|
+
updateSearch: p
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { l as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useRoute as e, useRouter as t } from "vue-router";
|
|
2
1
|
import "vue-i18n";
|
|
3
|
-
import { computed as
|
|
2
|
+
import { computed as e, readonly as t, ref as n, shallowRef as r, toValue as i, watch as a } from "vue";
|
|
4
3
|
import "@tanstack/vue-query";
|
|
5
4
|
import "@vueuse/core";
|
|
5
|
+
import { useRoute as o, useRouter as s } from "vue-router";
|
|
6
6
|
import "@tanstack/vue-virtual";
|
|
7
7
|
//#region ../toolkit/src/composables/currency-format/useCurrencyFormat.composable.ts
|
|
8
8
|
function c(e, t) {
|
|
@@ -10,45 +10,45 @@ function c(e, t) {
|
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region ../toolkit/src/composables/document-title/documentTitle.composable.ts
|
|
13
|
-
var l =
|
|
13
|
+
var l = n("{title}");
|
|
14
14
|
function u(e) {
|
|
15
15
|
if (!e.includes("{title}")) throw Error("Template must include {title}");
|
|
16
16
|
l.value = e;
|
|
17
17
|
}
|
|
18
18
|
function d() {
|
|
19
|
-
let e =
|
|
20
|
-
function
|
|
21
|
-
|
|
19
|
+
let e = n(document.title);
|
|
20
|
+
function r(t) {
|
|
21
|
+
a(() => i(t), (t) => {
|
|
22
22
|
e.value = t;
|
|
23
23
|
}, { immediate: !0 });
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return a(e, (e) => {
|
|
26
26
|
document.title = l.value.replace("{title}", e);
|
|
27
27
|
}, { immediate: !0 }), {
|
|
28
|
-
title:
|
|
29
|
-
set:
|
|
28
|
+
title: t(e),
|
|
29
|
+
set: r,
|
|
30
30
|
setTemplate: u
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region ../toolkit/src/composables/routeQueryState.composable.ts
|
|
35
|
-
function f(
|
|
36
|
-
let
|
|
37
|
-
function
|
|
38
|
-
if (
|
|
35
|
+
function f(e) {
|
|
36
|
+
let t = o(), r = s();
|
|
37
|
+
function i(t) {
|
|
38
|
+
if (t === null) return e.initialState;
|
|
39
39
|
try {
|
|
40
|
-
return
|
|
40
|
+
return e.serializer.parse(t);
|
|
41
41
|
} catch {
|
|
42
|
-
return
|
|
42
|
+
return e.initialState;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
let c = i(
|
|
46
|
-
return
|
|
47
|
-
c.value =
|
|
48
|
-
}, { immediate: !0 }),
|
|
49
|
-
|
|
50
|
-
...
|
|
51
|
-
[
|
|
45
|
+
let c = n(i(t.query[e.key]));
|
|
46
|
+
return a(() => t.query[e.key], (e) => {
|
|
47
|
+
c.value = i(e ?? null);
|
|
48
|
+
}, { immediate: !0 }), a(c, (n) => {
|
|
49
|
+
r.replace({ query: {
|
|
50
|
+
...t.query,
|
|
51
|
+
[e.key]: e.serializer.serialize(n) || void 0
|
|
52
52
|
} });
|
|
53
53
|
}, { deep: !0 }), c;
|
|
54
54
|
}
|
|
@@ -67,56 +67,56 @@ function h(e) {
|
|
|
67
67
|
};
|
|
68
68
|
}).filter(Boolean) : [];
|
|
69
69
|
}
|
|
70
|
-
function g(
|
|
71
|
-
let
|
|
72
|
-
initialState:
|
|
73
|
-
key: typeof
|
|
70
|
+
function g(t) {
|
|
71
|
+
let n = t.persistInUrl === !1 ? !1 : t.persistInUrl ?? p, i = n === !0 || typeof n == "string" ? f({
|
|
72
|
+
initialState: t.initialValues ?? [],
|
|
73
|
+
key: typeof n == "string" ? n : p,
|
|
74
74
|
serializer: {
|
|
75
75
|
parse: h,
|
|
76
76
|
serialize: m
|
|
77
77
|
}
|
|
78
|
-
}) :
|
|
79
|
-
function
|
|
80
|
-
let n =
|
|
78
|
+
}) : r(t.initialValues ?? []);
|
|
79
|
+
function a(e) {
|
|
80
|
+
let n = i.value.findIndex((t) => t.key === e);
|
|
81
81
|
if (n !== -1) {
|
|
82
|
-
let
|
|
83
|
-
if (
|
|
84
|
-
if (
|
|
85
|
-
|
|
82
|
+
let r = i.value[n] ?? null;
|
|
83
|
+
if (r === null) return;
|
|
84
|
+
if (r.direction === "asc") {
|
|
85
|
+
i.value = t.enableMultiSort ? i.value.map((e, t) => t === n ? {
|
|
86
86
|
...e,
|
|
87
87
|
direction: "desc"
|
|
88
88
|
} : e) : [{
|
|
89
89
|
direction: "desc",
|
|
90
|
-
key:
|
|
90
|
+
key: e
|
|
91
91
|
}];
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
i.value = i.value.filter((e, t) => t !== n);
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
i.value = t.enableMultiSort ? [{
|
|
98
98
|
direction: "asc",
|
|
99
|
-
key:
|
|
100
|
-
}, ...
|
|
99
|
+
key: e
|
|
100
|
+
}, ...i.value] : [{
|
|
101
101
|
direction: "asc",
|
|
102
|
-
key:
|
|
102
|
+
key: e
|
|
103
103
|
}];
|
|
104
104
|
}
|
|
105
|
-
function o(
|
|
106
|
-
return
|
|
105
|
+
function o(e) {
|
|
106
|
+
return t.keys.includes(e);
|
|
107
107
|
}
|
|
108
108
|
function s(e) {
|
|
109
|
-
return
|
|
109
|
+
return i.value.find((t) => t.key === e) ?? null;
|
|
110
110
|
}
|
|
111
111
|
function c() {
|
|
112
|
-
|
|
112
|
+
i.value = [];
|
|
113
113
|
}
|
|
114
114
|
return {
|
|
115
115
|
existsSort: o,
|
|
116
116
|
getSort: s,
|
|
117
117
|
resetSort: c,
|
|
118
|
-
setSort:
|
|
119
|
-
values:
|
|
118
|
+
setSort: a,
|
|
119
|
+
values: e(() => i.value)
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
//#endregion
|