@wisemen/wise-invoicing-web 0.0.2 → 0.0.4
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/AddOpenBoundaryIcon-9SqBHfoz.js +25 -0
- package/dist/AirlineIcon-Z6sH_StM.js +26 -0
- package/dist/AirplaneIcon-C-nSkD1w.js +19 -0
- package/dist/AirportIcon-m4itDKCV.js +16 -0
- package/dist/AlertTriangleIcon-DtYLCC-Y.js +23 -0
- package/dist/AllocationsIcon-hcg93Sll.js +16 -0
- package/dist/ArrowNarrowRightIcon-2-Sml68f.js +23 -0
- package/dist/AssetIcon-qOYs6Wna.js +16 -0
- package/dist/BarChartIcon-DDyzpV_3.js +22 -0
- package/dist/BellIcon-DF1OBFta.js +21 -0
- package/dist/BillingDocumentDetailViewDataProvider-pePmiXWb.js +5248 -0
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/BillingDocumentPdf-Dg5JlQE1.js +726 -0
- package/dist/BuildingIcon-CC5PMNeP.js +22 -0
- package/dist/ChargerIcon-aM_endLr.js +16 -0
- package/dist/ChevronDownIcon-4QiK-Z6-.js +23 -0
- package/dist/ChevronUpIcon-qBsjZ5Dz.js +23 -0
- package/dist/ClockIcon-BNiPCaiB.js +23 -0
- package/dist/ClockSnoozeIcon-BxGfwJB6.js +23 -0
- package/dist/CopyIcon-DH5ly0dZ.js +19 -0
- package/dist/CreditNoteDetailViewDataProvider-C-A0jyVr.js +751 -0
- package/dist/CreditNotePdfViewDataProvider-DNUvFVDj.js +21 -0
- package/dist/CustomFieldValueText-DDQq-975.js +189 -0
- package/dist/DataProvider-CfHLB3rH.js +48 -0
- package/dist/DownloadCloudIcon-Cf8ftklG.js +22 -0
- package/dist/DunningCaseDetailViewDataProvider-0WV-7-vg.js +400 -0
- package/dist/DunningCaseOverviewView-CHdzfbhb.js +553 -0
- package/dist/DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js +239 -0
- package/dist/DunningCaseSendDialog-DBtwr2ue.js +350 -0
- package/dist/EditIcon-Dr7OHBBR.js +21 -0
- package/dist/EraserIcon-B1VJSvdI.js +23 -0
- package/dist/FileIcon-ssmQI5Yl.js +23 -0
- package/dist/FilterLinesIcon-C7YdyPBk.js +23 -0
- package/dist/GlobeIcon-BfRM6Ike.js +22 -0
- package/dist/HelpIcon-BrJ49P5y.js +22 -0
- package/dist/HourGlassIcon-D9rfU1Is.js +22 -0
- package/dist/InfoCircleIcon-Ee0SyiMc.js +23 -0
- package/dist/InvoiceDetailViewDataProvider-BDL9lAWe.js +1579 -0
- package/dist/InvoiceOverviewViewDataProvider-B_jrcC_8.js +1613 -0
- package/dist/InvoicePdfView-Bygb-9z6.js +17 -0
- package/dist/InvoicePdfViewDataProvider-nBk3XNrE.js +21 -0
- package/dist/InvoicePublicPdfViewDataProvider-DHJP_-7-.js +44 -0
- package/dist/IssuerSettingsViewDataProvider-Dk_Q6w6f.js +188 -0
- package/dist/KeyboardIcon-T3o_g-1c.js +22 -0
- package/dist/LinkExternalIcon-BkHS4fCx.js +22 -0
- package/dist/LinkIcon-DuPwae98.js +22 -0
- package/dist/MarkerIcon-B1Jqenjb.js +28 -0
- package/dist/MobileBatteryIcon-GZ1SMRDV.js +16 -0
- package/dist/MonitorIcon-pbK22reU.js +22 -0
- package/dist/NotificationIcon-Ctv8vyWt.js +19 -0
- package/dist/ParkingIcon-DnUPW3pB.js +24 -0
- package/dist/PlanningIcon-CXvrskgj.js +16 -0
- package/dist/PreferenceIcon-BHS8uDyi.js +22 -0
- package/dist/ReceiptCheckIcon-QTestqCJ.js +23 -0
- package/dist/RefreshIcon-DShY-aoS.js +22 -0
- package/dist/ReminderSettingsViewDataProvider-CDBjfU7R.js +668 -0
- package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +28 -0
- package/dist/RewindIcon-GWg2AQax.js +22 -0
- package/dist/SettingsIcon-CBLJ6B5u.js +25 -0
- package/dist/ShieldIcon-CVnrOcxl.js +19 -0
- package/dist/ShieldOffIcon-B9l0dDVb.js +23 -0
- package/dist/SignOutIcon-CmDkjJ5F.js +21 -0
- package/dist/SlashCircleIcon-jY5FBko5.js +22 -0
- package/dist/StandIcon-CoYnBLMn.js +23 -0
- package/dist/StarsIcon-D7ZlqOW7.js +22 -0
- package/dist/StopwatchIcon-BK0vh1lg.js +22 -0
- package/dist/TargetIcon-HMWj77-Q.js +22 -0
- package/dist/ThreeDotsIcon-BtFruOKz.js +32 -0
- package/dist/ToolIcon-DRfDb7fE.js +22 -0
- package/dist/TrashIcon-BwxBjHv5.js +19 -0
- package/dist/TurnaroundIcon-b1X61TwZ.js +27 -0
- package/dist/UploadCloudIcon-BF0equKg.js +22 -0
- package/dist/UserIcon-B0rCC6KE.js +22 -0
- package/dist/UsersIcon-cK5l_zKG.js +22 -0
- package/dist/VerifiedIcon-CELYlqcv.js +22 -0
- package/dist/WifiIcon--JPvMNEF.js +23 -0
- package/dist/WifiOffIcon-BS2KftcP.js +23 -0
- package/dist/ZapIcon-BHwcIQc0.js +23 -0
- package/dist/ZoomInIcon-Cu6r915V.js +23 -0
- package/dist/ZoomOutIcon-DwB4FRj-.js +23 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/address.transformer-B8C0pwT1.js +167 -0
- package/dist/addressForm.model-C853zEtX.js +20 -0
- package/dist/api.util-Dm_TQedZ.js +2948 -0
- package/dist/billingDocumentDetail.transformer-zMTbka5p.js +334 -0
- package/dist/client/client/client.gen.d.ts +2 -0
- package/dist/client/client/index.d.ts +10 -0
- package/dist/client/client/types.gen.d.ts +120 -0
- package/dist/client/client/utils.gen.d.ts +37 -0
- package/dist/client/client.gen.d.ts +12 -0
- package/dist/client/core/auth.gen.d.ts +25 -0
- package/dist/client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/client/core/params.gen.d.ts +43 -0
- package/dist/client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/client/core/types.gen.d.ts +83 -0
- package/dist/client/core/utils.gen.d.ts +19 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/sdk.gen.d.ts +123 -0
- package/dist/client/types.gen.d.ts +4894 -0
- package/dist/client/zod.gen.d.ts +67202 -0
- package/dist/composables/created.composable.d.ts +1 -0
- package/dist/composables/currency-format/useCurrencyFormat.composable.d.ts +12 -0
- package/dist/composables/document-title/documentTitle.composable.d.ts +8 -0
- package/dist/composables/form-auto-save/formAutoSave.composable.d.ts +14 -0
- package/dist/composables/invoicingConfig.composable.d.ts +24 -0
- package/dist/composables/invoicingQueryInvalidation.composable.d.ts +9 -0
- package/dist/composables/invoicingQueryInvalidation.composable.spec.d.ts +1 -0
- package/dist/composables/is-selector-visible/isSelectorVisible.composable.d.ts +1 -0
- package/dist/composables/paginated-cache/paginatedCache.composable.d.ts +8 -0
- package/dist/composables/routeQueryState.composable.d.ts +12 -0
- package/dist/composables/search/search.composable.d.ts +12 -0
- package/dist/composables/sort.composable.d.ts +3 -0
- package/dist/composables/virtual-scrolling/virtualScrolling.composable.d.ts +31 -0
- package/dist/creditNoteDetail.query-BZqgZRSu.js +122 -0
- package/dist/customerUuid.model-GUFYq3O2.js +5 -0
- package/dist/dashboard-BaWGNEek.js +5 -0
- package/dist/dist-DJ8yJcb9.js +2499 -0
- package/dist/dist-DP8KNFVD.js +927 -0
- package/dist/dist-YTXTCfo1.js +333 -0
- package/dist/documentTitle.composable-CeaFddr1.js +68 -0
- package/dist/download.util-PjaUQR6r.js +9 -0
- package/dist/formango.util-D5c2ql--.js +12 -0
- package/dist/i18n.lib-DUbAMBRb.js +1440 -0
- package/dist/index.d.ts +1603 -2873
- package/dist/index.js +749 -42
- package/dist/invoice.service-ChHEtXBA.js +629 -0
- package/dist/invoiceDeliveryStatus.util-BsA-MlA3.js +331 -0
- package/dist/invoiceDetail.query-O_CGvdwg.js +11 -0
- package/dist/invoicingConfig.composable-c6w_aMm1.js +60 -0
- package/dist/issuerSettings.query-RqtrZFaB.js +116 -0
- package/dist/libs/http.lib.d.ts +5 -0
- package/dist/libs/i18n.lib.d.ts +1439 -0
- package/dist/locales/en-US.json.d.ts +718 -0
- package/dist/locales/nl-BE.json.d.ts +718 -0
- package/dist/locales/ui-en-US.json.d.ts +66 -0
- package/dist/locales/ui-nl-BE.json.d.ts +66 -0
- package/dist/models/address/address.model.d.ts +15 -0
- package/dist/models/address/address.transformer.d.ts +11 -0
- package/dist/models/address/address.util.d.ts +11 -0
- package/dist/models/address/addressForm.model.d.ts +15 -0
- package/dist/models/address/addressForm.transformer.d.ts +8 -0
- package/dist/models/address/addressForm.transformer.spec.d.ts +1 -0
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +21 -0
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.transformer.d.ts +5 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +136 -0
- package/dist/models/billing-document/billingDocumentDetail.transformer.d.ts +5 -0
- package/dist/models/billing-document/billingDocumentDiscount.model.d.ts +9 -0
- package/dist/models/billing-document/billingDocumentDiscount.transformer.d.ts +6 -0
- package/dist/models/billing-document/billingDocumentDisplay.util.d.ts +7 -0
- package/dist/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.d.ts +6 -0
- package/dist/models/billing-document/billingDocumentLineItemUpdateForm.model.d.ts +21 -0
- package/dist/models/billing-document/billingDocumentStatusEnum.model.d.ts +12 -0
- package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +27 -0
- package/dist/models/billing-document/billingDocumentVatSummary.util.d.ts +4 -0
- package/dist/models/billing-document/billingDocumentVatSummary.util.spec.d.ts +1 -0
- package/dist/models/customer/customerDetail.model.d.ts +6 -0
- package/dist/models/customer/customerDetail.transformer.d.ts +5 -0
- package/dist/models/customer/customerUuid.model.d.ts +3 -0
- package/dist/models/file-reference/fileReference.dto.d.ts +13 -0
- package/dist/models/file-reference/fileReference.model.d.ts +13 -0
- package/dist/models/file-reference/fileReference.transformer.d.ts +9 -0
- package/dist/models/file-reference/fileReferenceForm.model.d.ts +10 -0
- package/dist/modules/credit-note/api/mutations/creditNoteDelete.mutation.d.ts +4 -0
- package/dist/modules/credit-note/api/mutations/creditNoteFinalize.mutation.d.ts +6 -0
- package/dist/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.d.ts +6 -0
- package/dist/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.d.ts +6 -0
- package/dist/modules/credit-note/api/mutations/creditNoteSend.mutation.d.ts +4 -0
- package/dist/modules/credit-note/api/mutations/creditNoteUpdate.mutation.d.ts +9 -0
- package/dist/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.d.ts +4 -0
- package/dist/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.d.ts +3 -0
- package/dist/modules/credit-note/api/queries/creditNoteDetail.query.d.ts +3 -0
- package/dist/modules/credit-note/api/query-keys/creditNote.queryKeys.d.ts +17 -0
- package/dist/modules/credit-note/api/services/creditNote.service.d.ts +18 -0
- package/dist/modules/credit-note/models/creditNoteUuid.model.d.ts +3 -0
- package/dist/modules/credit-note/models/detail/creditNoteDetail.model.d.ts +4 -0
- package/dist/modules/credit-note/models/detail/creditNoteDetail.transformer.d.ts +5 -0
- package/dist/modules/credit-note/models/update/creditNoteUpdate.transformer.d.ts +7 -0
- package/dist/modules/credit-note/models/update/creditNoteUpdateForm.model.d.ts +11 -0
- package/dist/modules/credit-note/models/update/creditNoteUpdateLines.model.d.ts +2 -0
- package/dist/modules/credit-note/models/update/creditNoteUpdateLines.transformer.d.ts +5 -0
- package/dist/modules/credit-note/routes/creditNote.routes.d.ts +26 -0
- package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue.d.ts +12 -0
- package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailRemarksSection.vue.d.ts +7 -0
- package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebar.vue.d.ts +9 -0
- package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue.d.ts +7 -0
- package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarInfoTab.vue.d.ts +9 -0
- package/dist/modules/credit-note/use-cases/detail/components/table/CreditNoteLineItemsTableSection.vue.d.ts +9 -0
- package/dist/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.d.ts +8 -0
- package/dist/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue.d.ts +13 -0
- package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailView.vue.d.ts +9 -0
- package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/credit-note/use-cases/pdf/views/CreditNotePdfViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/custom-field/api/queries/customFieldDefinitionIndex.query.d.ts +3 -0
- package/dist/modules/custom-field/api/query-keys/customFieldDefinition.queryKeys.d.ts +10 -0
- package/dist/modules/custom-field/api/services/customFieldDefinition.service.d.ts +6 -0
- package/dist/modules/custom-field/components/CustomFieldFieldset.vue.d.ts +21 -0
- package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +10 -0
- package/dist/modules/custom-field/components/CustomFieldValueInput.vue.d.ts +23 -0
- package/dist/modules/custom-field/components/CustomFieldValueText.vue.d.ts +10 -0
- package/dist/modules/custom-field/components/customFieldFieldset.spec.d.ts +1 -0
- package/dist/modules/custom-field/components/customFieldValueInput.spec.d.ts +1 -0
- package/dist/modules/custom-field/composables/customFieldValueModel.composable.d.ts +28 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +24 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.d.ts +5 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +8 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionIndexQueryParams.model.d.ts +4 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionUuid.model.d.ts +3 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +12 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.d.ts +8 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.spec.d.ts +1 -0
- package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +13 -0
- package/dist/modules/dunning-case/api/mutations/dunningCaseBulkSend.mutation.d.ts +5 -0
- package/dist/modules/dunning-case/api/mutations/dunningCaseSend.mutation.d.ts +4 -0
- package/dist/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.d.ts +24 -0
- package/dist/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.d.ts +2 -0
- package/dist/modules/dunning-case/api/queries/dunningCaseCustomerIndex.query.d.ts +6 -0
- package/dist/modules/dunning-case/api/queries/dunningCaseDetail.query.d.ts +3 -0
- package/dist/modules/dunning-case/api/queries/dunningCaseIndex.query.d.ts +8 -0
- package/dist/modules/dunning-case/api/queries/reminderConfig.query.d.ts +1 -0
- package/dist/modules/dunning-case/api/query-keys/dunningCase.queryKeys.d.ts +55 -0
- package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +19 -0
- package/dist/modules/dunning-case/api/services/dunningCaseCustomer.service.d.ts +11 -0
- package/dist/modules/dunning-case/components/DunningCaseReminderLevelIndicator.vue.d.ts +9 -0
- package/dist/modules/dunning-case/components/DunningCaseReminderStatusIndicator.vue.d.ts +9 -0
- package/dist/modules/dunning-case/components/dunningCaseReminderLevelIndicator.spec.d.ts +1 -0
- package/dist/modules/dunning-case/components/dunningCaseReminderStatusIndicator.spec.d.ts +1 -0
- package/dist/modules/dunning-case/index.d.ts +4 -0
- package/dist/modules/dunning-case/models/dunningCase.model.d.ts +107 -0
- package/dist/modules/dunning-case/models/dunningCase.model.spec.d.ts +1 -0
- package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +13 -0
- package/dist/modules/dunning-case/models/dunningCase.transformer.spec.d.ts +1 -0
- package/dist/modules/dunning-case/models/dunningCaseCustomer.model.d.ts +9 -0
- package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +31 -0
- package/dist/modules/dunning-case/models/reminderConfigForm.model.spec.d.ts +1 -0
- package/dist/modules/dunning-case/models/reminderTimeline.util.d.ts +9 -0
- package/dist/modules/dunning-case/models/reminderTimeline.util.spec.d.ts +1 -0
- package/dist/modules/dunning-case/routes/dunningCase.routes.d.ts +37 -0
- package/dist/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailView.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/detail/views/dunningCaseDetailView.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewFilters.composable.d.ts +5 -0
- package/dist/modules/dunning-case/use-cases/overview/views/DunningCaseOverviewView.vue.d.ts +3 -0
- package/dist/modules/dunning-case/use-cases/overview/views/dunningCaseOverviewView.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +2 -0
- package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +5 -0
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +20 -0
- package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendStat.vue.d.ts +9 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendSummary.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendFeeRow.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceRow.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceSummary.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendRecipientAlert.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseReminderSubject.composable.d.ts +6 -0
- package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseSendRecipient.composable.d.ts +16 -0
- package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +10 -0
- package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseSendDialog.vue.d.ts +12 -0
- package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.d.ts +16 -0
- package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderFeeNotice.vue.d.ts +3 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderPanel.vue.d.ts +12 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +26 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderTimeline.vue.d.ts +13 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplateTabs.vue.d.ts +20 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplatesPanel.vue.d.ts +24 -0
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +41 -0
- package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsView.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/invoice/actions/invoice.actions.d.ts +5 -0
- package/dist/modules/invoice/actions/invoiceNavigateToDetail.action.d.ts +1 -0
- package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +11 -0
- package/dist/modules/invoice/api/invoiceIndexCache.util.spec.d.ts +1 -0
- package/dist/modules/invoice/api/mutations/invoiceApplyDiscount.mutation.d.ts +9 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceCreate.mutation.d.ts +7 -0
- package/dist/modules/invoice/api/mutations/invoiceCreateCreditNote.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceDelete.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceDuplicate.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceFinalize.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsDraft.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPaid.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsProtested.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsReady.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoicePaymentCreate.mutation.d.ts +11 -0
- package/dist/modules/invoice/api/mutations/invoicePaymentDelete.mutation.d.ts +6 -0
- package/dist/modules/invoice/api/mutations/invoiceSend.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceUpdateAttachments.mutation.d.ts +13 -0
- package/dist/modules/invoice/api/mutations/invoiceUpdateLines.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceWithdrawProtest.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/queries/invoiceActivityLogIndex.query.d.ts +3 -0
- package/dist/modules/invoice/api/queries/invoiceCustomerDetail.query.d.ts +6 -0
- package/dist/modules/invoice/api/queries/invoiceCustomerSearch.query.d.ts +7 -0
- package/dist/modules/invoice/api/queries/invoiceDetail.query.d.ts +3 -0
- package/dist/modules/invoice/api/queries/invoiceIndex.query.d.ts +3 -0
- package/dist/modules/invoice/api/queries/invoicePaymentIndex.query.d.ts +3 -0
- package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +2 -0
- package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +55 -0
- package/dist/modules/invoice/api/services/fileUpload.service.d.ts +9 -0
- package/dist/modules/invoice/api/services/fileUpload.service.spec.d.ts +1 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +48 -0
- package/dist/modules/invoice/api/services/invoiceCustomer.service.d.ts +9 -0
- package/dist/modules/invoice/components/InvoiceDeliveryStatusBadge.vue.d.ts +10 -0
- package/dist/modules/invoice/components/InvoiceDisputedBadge.vue.d.ts +8 -0
- package/dist/modules/invoice/components/InvoiceOverdueBadge.vue.d.ts +8 -0
- package/dist/modules/invoice/components/InvoiceSettlementStatusBadge.vue.d.ts +18 -0
- package/dist/modules/invoice/components/InvoiceStatusBadge.vue.d.ts +10 -0
- package/dist/modules/invoice/components/form/InvoiceFormCustomerField.vue.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCreate.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.model.d.ts +9 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCreateForm.model.d.ts +9 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.transformer.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +4 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/index/invoiceDateRange.model.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +27 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndex.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.model.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.model.d.ts +20 -0
- package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.d.ts +11 -0
- package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceStatus.model.d.ts +11 -0
- package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/payment/invoicePayment.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/payment/invoicePayment.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.d.ts +11 -0
- package/dist/modules/invoice/models/invoice/payment/paymentUuid.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +56 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscount.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscountForm.model.d.ts +9 -0
- package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdate.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdateForm.model.d.ts +12 -0
- package/dist/modules/invoice/models/invoice/update/invoiceLineItemUpdateForm.model.d.ts +11 -0
- package/dist/modules/invoice/models/invoice/update/invoiceSubjectUpdateForm.model.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUpdate.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUpdateForm.model.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.model.d.ts +2 -0
- package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoiceUuid.model.d.ts +3 -0
- package/dist/modules/invoice/routes/invoice.routes.d.ts +38 -0
- package/dist/modules/invoice/use-cases/create/dialogs/InvoiceCreateDialog.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailLinkedCreditNotesSection.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailRemarksSection.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebar.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarActivityTab.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarInfoTab.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/components/sidebar/invoiceDetailSidebarInfoTab.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentActionsCell.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentManualCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsSection.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsTableTextCell.vue.d.ts +6 -0
- package/dist/modules/invoice/use-cases/detail/components/table/InvoiceLineItemsTableSection.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +6 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApplyDiscountDialog.vue.d.ts +11 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceDeleteDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentCreateDialog.vue.d.ts +11 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceUpdateDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailView.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +22 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableAmountCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableCustomFieldCell.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableDueDateCell.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableIssuedDateCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableLifecycleCell.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableNameCell.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSelectionCell.vue.d.ts +10 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSentCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSequenceCell.vue.d.ts +6 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableStatusCell.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +15 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.d.ts +11 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +16 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +18 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.d.ts +14 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +25 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkFinalizeDialog.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +29 -0
- package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +25 -0
- package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewViewDataProvider.vue.d.ts +16 -0
- package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfFooterSection.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfHeaderSection.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfLinesTable.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfSummarySection.vue.d.ts +8 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableCell.vue.d.ts +16 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableHeaderCell.vue.d.ts +6 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +3 -0
- package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +30 -0
- package/dist/modules/invoice/use-cases/pdf/components/invoicePdfLinesTable.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +42 -0
- package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfViewDataProvider.vue.d.ts +7 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicPdfViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/api/mutations/issuerSettingsUpdate.mutation.d.ts +25 -0
- package/dist/modules/settings/api/queries/issuerSettings.query.d.ts +1 -0
- package/dist/modules/settings/api/query-keys/issuerSettings.queryKeys.d.ts +6 -0
- package/dist/modules/settings/api/services/issuerSettings.service.d.ts +7 -0
- package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +15 -0
- package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.d.ts +8 -0
- package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.spec.d.ts +1 -0
- package/dist/modules/settings/models/issuer-settings/issuerSettingsForm.model.d.ts +28 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +23 -0
- package/dist/modules/settings/use-cases/overview/components/IssuerSettingsForm.vue.d.ts +7 -0
- package/dist/modules/settings/use-cases/overview/views/IssuerSettingsView.vue.d.ts +7 -0
- package/dist/modules/settings/use-cases/overview/views/IssuerSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/plainDate.transformer-BxvJpJOv.js +39 -0
- package/dist/reminderConfig.query-DzTN2AvU.js +316 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/routes/invoicingPublicRoutes.composable.d.ts +9 -0
- package/dist/routes/invoicingRoutes.composable.d.ts +73 -0
- package/dist/routes/invoicingRoutes.composable.spec.d.ts +1 -0
- package/dist/routes/invoicingStandaloneRoutes.composable.d.ts +17 -0
- package/dist/src-BFgnUugN.js +123 -0
- package/dist/style.css +2 -1
- package/dist/types/apiError.type.d.ts +7 -0
- package/dist/types/query.type.d.ts +20 -0
- package/dist/types/queryKey.type.d.ts +8 -0
- package/dist/ui/DateRangeFilterButton.vue.d.ts +15 -0
- package/dist/ui/DisplayState.vue.d.ts +16 -0
- package/dist/ui/billing-document/BillingDocumentDetailHeaderSection.vue.d.ts +28 -0
- package/dist/ui/billing-document/BillingDocumentDetailLayout.vue.d.ts +22 -0
- package/dist/ui/billing-document/BillingDocumentDetailPage.vue.d.ts +24 -0
- package/dist/ui/billing-document/BillingDocumentDetailRemarksSection.vue.d.ts +10 -0
- package/dist/ui/billing-document/BillingDocumentDetailViewDataProvider.vue.d.ts +31 -0
- package/dist/ui/billing-document/BillingDocumentFinalizeDialog.vue.d.ts +11 -0
- package/dist/ui/billing-document/BillingDocumentHeaderActions.vue.d.ts +13 -0
- package/dist/ui/billing-document/BillingDocumentPdfViewer.vue.d.ts +7 -0
- package/dist/ui/billing-document/billingDocumentHeaderActions.types.d.ts +24 -0
- package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.d.ts +14 -0
- package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.spec.d.ts +1 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebar.vue.d.ts +20 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityContent.vue.d.ts +20 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityTab.vue.d.ts +3 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarAttachmentsTab.vue.d.ts +7 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarHeader.vue.d.ts +14 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarInfoItem.vue.d.ts +21 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarLayout.vue.d.ts +16 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarOriginalInvoiceSection.vue.d.ts +7 -0
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarPartySection.vue.d.ts +12 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +16 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsBulkActionBar.vue.d.ts +3 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsDragHandle.vue.d.ts +3 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +16 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGrid.vue.d.ts +3 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +14 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableHeader.vue.d.ts +12 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableRow.vue.d.ts +10 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableSection.vue.d.ts +13 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTotals.vue.d.ts +7 -0
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +2773 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.d.ts +22 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.spec.d.ts +1 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +484 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +41 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.spec.d.ts +1 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +41 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsSelection.composable.d.ts +16 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +13 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableCustomField.vue.d.ts +21 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +35 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableNumberField.vue.d.ts +26 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableSelectField.vue.d.ts +35 -0
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +23 -0
- package/dist/ui/billing-document/table/field/billingDocumentLineItemsTableNumberField.spec.d.ts +1 -0
- package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +90 -0
- package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.spec.d.ts +1 -0
- package/dist/ui/billing-document/useBillingDocumentFinalizePreference.composable.d.ts +4 -0
- package/dist/ui/customer-invoice-list/CustomerInvoiceList.vue.d.ts +16 -0
- package/dist/ui/customer-invoice-list/CustomerInvoiceTable.vue.d.ts +6 -0
- package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue.d.ts +8 -0
- package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableInvoiceNumberCell.vue.d.ts +6 -0
- package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableTextCell.vue.d.ts +6 -0
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +3 -0
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.d.ts +9 -0
- package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.d.ts +8 -0
- package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.spec.d.ts +1 -0
- package/dist/ui/dashboard/index.d.ts +7 -0
- package/dist/ui/data-provider/DataProvider.vue.d.ts +27 -0
- package/dist/ui/file-upload/InvoicingFileUploadProvider.vue.d.ts +13 -0
- package/dist/ui/file-upload/invoicingFileUpload.adapter.d.ts +2 -0
- package/dist/useCurrencyFormat.composable-MtZaqKnO.js +38 -0
- package/dist/utils/api.util.d.ts +5 -0
- package/dist/utils/context.util.d.ts +1 -0
- package/dist/utils/createComponent.d.ts +4 -0
- package/dist/utils/download.util.d.ts +3 -0
- package/dist/utils/formango.util.d.ts +8 -0
- package/dist/utils/image.util.d.ts +3 -0
- package/dist/utils/instant.transformer.d.ts +7 -0
- package/dist/utils/map.util.d.ts +2 -0
- package/dist/utils/monetary/currency.model.d.ts +180 -0
- package/dist/utils/monetary/monetary.model.d.ts +6 -0
- package/dist/utils/monetary/monetary.util.d.ts +8 -0
- package/dist/utils/monetary/monetaryDto.model.d.ts +9 -0
- package/dist/utils/number.util.d.ts +4 -0
- package/dist/utils/percentage.util.d.ts +13 -0
- package/dist/utils/plainDate.transformer.d.ts +7 -0
- package/dist/utils/search.util.d.ts +3 -0
- package/package.json +26 -25
- package/dist/AddOpenBoundaryIcon-LcnpqCb7.js +0 -28
- package/dist/AirlineIcon-29r8leGB.js +0 -31
- package/dist/AirplaneIcon-B9jZP9r0.js +0 -21
- package/dist/AirportIcon-C4PxDtDr.js +0 -18
- package/dist/AlertTriangleIcon-BD58hKRP.js +0 -24
- package/dist/AllocationsIcon-BQan6NWO.js +0 -18
- package/dist/ArrowNarrowRightIcon-BA1c_QRh.js +0 -24
- package/dist/AssetIcon-DnK5wAyN.js +0 -18
- package/dist/BarChartIcon-CKrBCh6x.js +0 -24
- package/dist/BellIcon-BT2cGatU.js +0 -23
- package/dist/BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-C5j9jPsk.js +0 -5374
- package/dist/BuildingIcon-CUOTWDHc.js +0 -24
- package/dist/ChargerIcon-BhrjeyKv.js +0 -18
- package/dist/ChevronDownIcon-DljNUnFk.js +0 -24
- package/dist/ChevronUpIcon-CoxFAIp_.js +0 -24
- package/dist/ClockIcon-CTnAGb9i.js +0 -24
- package/dist/ClockSnoozeIcon-BRoTw_Vn.js +0 -24
- package/dist/CopyIcon-JiNI8Dfg.js +0 -21
- package/dist/CreditNoteDetailViewDataProvider-Cy1j_m3I.js +0 -871
- package/dist/CreditNotePdfViewDataProvider-B7-HFIKD.js +0 -36
- package/dist/DownloadCloudIcon-DKHwnpvk.js +0 -24
- package/dist/EditIcon-DtGrCf8G.js +0 -23
- package/dist/EraserIcon-Cb0Ep_Yq.js +0 -24
- package/dist/FileIcon-C4wGvJpt.js +0 -26
- package/dist/FilterLinesIcon-B7wPXDy1.js +0 -24
- package/dist/GlobeIcon-B-Idmck1.js +0 -24
- package/dist/HelpIcon-CdKWaEaB.js +0 -26
- package/dist/HourGlassIcon-CQLPiXVW.js +0 -24
- package/dist/InfoCircleIcon-5gjQoNog.js +0 -24
- package/dist/InvoiceDetailViewDataProvider-4lGG7Wtq.js +0 -1918
- package/dist/InvoiceOverviewView-Boqvwabl.js +0 -4
- package/dist/InvoicePdfViewDataProvider-CJ3fL71W.js +0 -36
- package/dist/InvoicePublicPdfViewDataProvider-CzgGk_V5.js +0 -4
- package/dist/IssuerSettingsViewDataProvider-TM-bmC55.js +0 -249
- package/dist/KeyboardIcon-DlAp0VUG.js +0 -24
- package/dist/LinkExternalIcon-BPO_c7Ke.js +0 -24
- package/dist/LinkIcon-9M0uzW4a.js +0 -24
- package/dist/MarkerIcon-pId64QTW.js +0 -31
- package/dist/MobileBatteryIcon-Dq6Vh0d5.js +0 -18
- package/dist/MonitorIcon-PsvDF5LA.js +0 -24
- package/dist/NotificationIcon-C-mhyH5v.js +0 -21
- package/dist/ParkingIcon-BD0RoGv5.js +0 -29
- package/dist/PlanningIcon-BBIuwW2I.js +0 -18
- package/dist/PreferenceIcon-zR5mjygu.js +0 -24
- package/dist/ReceiptCheckIcon-CHEEnJEK.js +0 -24
- package/dist/RefreshIcon-CfjOS7Vw.js +0 -24
- package/dist/RemoveOpenBoundaryIcon-CEbBT9CX.js +0 -31
- package/dist/RewindIcon-9PFea9gA.js +0 -24
- package/dist/SettingsIcon-CSIbrANE.js +0 -28
- package/dist/ShieldIcon-CU4mxKxP.js +0 -21
- package/dist/ShieldOffIcon-D6_I1MKn.js +0 -24
- package/dist/SignOutIcon-ClrPsj39.js +0 -23
- package/dist/SlashCircleIcon-DBy7XjBm.js +0 -24
- package/dist/StandIcon-vV8J4-3H.js +0 -24
- package/dist/StarsIcon-RO6wNbsC.js +0 -26
- package/dist/StopwatchIcon-DubYBmeN.js +0 -24
- package/dist/TargetIcon-BwVw7rVC.js +0 -24
- package/dist/ThreeDotsIcon-BvRfi-Lm.js +0 -32
- package/dist/ToolIcon-Dw-vgiL1.js +0 -24
- package/dist/TrashIcon-Dh6ASxXd.js +0 -21
- package/dist/TurnaroundIcon-Hn5nPhvb.js +0 -30
- package/dist/UploadCloudIcon-BV7b8ygQ.js +0 -24
- package/dist/UserIcon-BRrPmqkm.js +0 -24
- package/dist/UsersIcon-fORcf4YV.js +0 -24
- package/dist/VerifiedIcon-BtqxtP6h.js +0 -26
- package/dist/WifiIcon-Bd9TvVVJ.js +0 -24
- package/dist/WifiOffIcon-CpATjY4j.js +0 -24
- package/dist/ZapIcon-BG6cVpfC.js +0 -24
- package/dist/ZoomInIcon-CQ_R4Ydf.js +0 -24
- package/dist/ZoomOutIcon-DlcCdCda.js +0 -24
- package/dist/creditNoteDetail.query-Dj6oKRTO.js +0 -159
- package/dist/index-CYV9qUlg.js +0 -23375
- package/dist/index-DCE3vzbe.js +0 -7
- package/dist/invoiceDetail.query-Wtw3VSKd.js +0 -13
- package/dist/issuerSettings.query-H5-5e_KF.js +0 -130
- package/dist/style.d.ts +0 -1
- /package/dist/{index.css → DunningCaseReminderPdfViewDataProvider.css} +0 -0
|
@@ -0,0 +1,726 @@
|
|
|
1
|
+
import "./api.util-Dm_TQedZ.js";
|
|
2
|
+
import { h as e, m as t } from "./documentTitle.composable-CeaFddr1.js";
|
|
3
|
+
import { n } from "./invoicingConfig.composable-c6w_aMm1.js";
|
|
4
|
+
import { r } from "./address.transformer-B8C0pwT1.js";
|
|
5
|
+
import { Q as i } from "./dist-DP8KNFVD.js";
|
|
6
|
+
import { useI18n as a } from "vue-i18n";
|
|
7
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, openBlock as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
|
|
8
|
+
import { UIColumnLayout as S, UIRowLayout as C, UIText as w } from "@wisemen/vue-core-design-system";
|
|
9
|
+
//#region src/modules/invoice/use-cases/pdf/utils/invoicePdf.util.ts
|
|
10
|
+
var T = "-", E = 32, D = 512, O = 640, k = 576, A = 704, j = 52, M = 34, N = 16, P = 14, F = /\r?\n/u, I = class {
|
|
11
|
+
static avoidGroupRowOrphans(e) {
|
|
12
|
+
let t = e.map((e) => [...e]);
|
|
13
|
+
for (let e = 0; e < t.length - 1; e += 1) {
|
|
14
|
+
let n = t[e], r = t[e + 1];
|
|
15
|
+
if (n === void 0 || r === void 0) continue;
|
|
16
|
+
let i = [];
|
|
17
|
+
for (; n.at(-1)?.type === "group";) {
|
|
18
|
+
let e = n.pop();
|
|
19
|
+
if (e === void 0) break;
|
|
20
|
+
i.unshift(e);
|
|
21
|
+
}
|
|
22
|
+
r.unshift(...i);
|
|
23
|
+
}
|
|
24
|
+
let n = t.filter((e) => e.length > 0);
|
|
25
|
+
return n.length > 0 ? n : [[]];
|
|
26
|
+
}
|
|
27
|
+
static buildRows(e, t) {
|
|
28
|
+
let n = [...e.ungroupedLines.map((e) => ({
|
|
29
|
+
kind: "line",
|
|
30
|
+
line: e,
|
|
31
|
+
position: e.position
|
|
32
|
+
})), ...e.groups.map((e) => ({
|
|
33
|
+
group: e,
|
|
34
|
+
kind: "group",
|
|
35
|
+
position: e.position
|
|
36
|
+
}))].toSorted((e, t) => e.position - t.position), r = [];
|
|
37
|
+
for (let e of n) {
|
|
38
|
+
if (e.kind === "line") {
|
|
39
|
+
r.push({
|
|
40
|
+
isGrouped: !1,
|
|
41
|
+
line: e.line,
|
|
42
|
+
type: "line"
|
|
43
|
+
});
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
r.push({
|
|
47
|
+
uuid: e.group.uuid,
|
|
48
|
+
name: e.group.name,
|
|
49
|
+
description: e.group.description,
|
|
50
|
+
total: this.getGroupTotal(e.group.lines, t),
|
|
51
|
+
type: "group"
|
|
52
|
+
});
|
|
53
|
+
for (let t of e.group.lines.toSorted((e, t) => e.position - t.position)) r.push({
|
|
54
|
+
isGrouped: !0,
|
|
55
|
+
line: t,
|
|
56
|
+
type: "line"
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return r;
|
|
60
|
+
}
|
|
61
|
+
static estimateGroupRowHeight(e) {
|
|
62
|
+
let t = [e.name, e.description].filter((e) => e !== null && e.trim() !== "").reduce((e, t) => e + this.getWrappedTextLineCount(t), 0);
|
|
63
|
+
return Math.max(E, N + t * P);
|
|
64
|
+
}
|
|
65
|
+
static estimateLineHeight(e) {
|
|
66
|
+
let t = this.getWrappedItemLineCount(e);
|
|
67
|
+
return Math.max(E, N + t * P);
|
|
68
|
+
}
|
|
69
|
+
static estimateRowHeight(e) {
|
|
70
|
+
return e.type === "group" ? this.estimateGroupRowHeight(e) : this.estimateLineHeight(e.line);
|
|
71
|
+
}
|
|
72
|
+
static formatMonetary(e, t) {
|
|
73
|
+
let n = e.amount / 10 ** e.precision;
|
|
74
|
+
return new Intl.NumberFormat(t, {
|
|
75
|
+
currency: e.currency,
|
|
76
|
+
maximumFractionDigits: 2,
|
|
77
|
+
minimumFractionDigits: 2,
|
|
78
|
+
style: "currency"
|
|
79
|
+
}).format(n);
|
|
80
|
+
}
|
|
81
|
+
static formatNumber(e, t) {
|
|
82
|
+
return new Intl.NumberFormat(t, { maximumFractionDigits: 2 }).format(e);
|
|
83
|
+
}
|
|
84
|
+
static formatPercentage(e, t) {
|
|
85
|
+
return `${this.formatNumber(e, t)}%`;
|
|
86
|
+
}
|
|
87
|
+
static formatPlainDate(e, t) {
|
|
88
|
+
return e === null ? T : new Intl.DateTimeFormat(t, {
|
|
89
|
+
day: "2-digit",
|
|
90
|
+
month: "2-digit",
|
|
91
|
+
timeZone: "UTC",
|
|
92
|
+
year: "numeric"
|
|
93
|
+
}).format(Date.UTC(e.year, e.month - 1, e.day));
|
|
94
|
+
}
|
|
95
|
+
static getAddressLines(e) {
|
|
96
|
+
return r.formatLines(e);
|
|
97
|
+
}
|
|
98
|
+
static getDisplayLineGrossAmount(e, t) {
|
|
99
|
+
let n = t.isCreditNote === t.isDiscount ? 1 : -1;
|
|
100
|
+
return {
|
|
101
|
+
...e,
|
|
102
|
+
amount: Math.abs(e.amount) * n
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
static getGroupTotal(e, t) {
|
|
106
|
+
let [n] = e;
|
|
107
|
+
return n === void 0 ? null : {
|
|
108
|
+
amount: e.reduce((e, n) => e + this.getDisplayLineGrossAmount(n.grossAmount, {
|
|
109
|
+
isCreditNote: t.isCreditNote,
|
|
110
|
+
isDiscount: n.isDiscount
|
|
111
|
+
}).amount, 0),
|
|
112
|
+
currency: n.grossAmount.currency,
|
|
113
|
+
precision: n.grossAmount.precision
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
static getLastPageRowBudget(e) {
|
|
117
|
+
let t = e.headerType === "first" ? D : k;
|
|
118
|
+
return e.hasRemarks ? t - j : t;
|
|
119
|
+
}
|
|
120
|
+
static getTotalRowsHeight(e) {
|
|
121
|
+
return e.reduce((e, t) => e + this.estimateRowHeight(t), 0);
|
|
122
|
+
}
|
|
123
|
+
static getWrappedItemLineCount(e) {
|
|
124
|
+
return [e.name, e.description].filter((e) => e !== null && e.trim() !== "").reduce((e, t) => e + this.getWrappedTextLineCount(t), 0);
|
|
125
|
+
}
|
|
126
|
+
static getWrappedTextLineCount(e) {
|
|
127
|
+
let t = e.trim();
|
|
128
|
+
return t === "" ? 1 : t.split(F).reduce((e, t) => e + Math.max(1, Math.ceil(t.length / M)), 0);
|
|
129
|
+
}
|
|
130
|
+
static paginatePrefixRows(e) {
|
|
131
|
+
if (e.length === 0) return [];
|
|
132
|
+
let t = [], n = e, r = this.takeRowsForBudget(n, O);
|
|
133
|
+
for (t.push(r), n = n.slice(r.length); n.length > 0;) {
|
|
134
|
+
let e = this.takeRowsForBudget(n, A);
|
|
135
|
+
t.push(e), n = n.slice(e.length);
|
|
136
|
+
}
|
|
137
|
+
return t;
|
|
138
|
+
}
|
|
139
|
+
static paginateRows(e, t) {
|
|
140
|
+
if (e.length === 0) return [[]];
|
|
141
|
+
if (this.getTotalRowsHeight(e) <= this.getLastPageRowBudget({
|
|
142
|
+
hasRemarks: t.hasRemarks,
|
|
143
|
+
headerType: "first"
|
|
144
|
+
})) return [e];
|
|
145
|
+
let n = this.paginatePrefixRows(e);
|
|
146
|
+
for (; n.length > 0;) {
|
|
147
|
+
let e = n.length === 1 ? "first" : "continuation", r = this.getLastPageRowBudget({
|
|
148
|
+
hasRemarks: t.hasRemarks,
|
|
149
|
+
headerType: e
|
|
150
|
+
}), i = n.at(-1);
|
|
151
|
+
if (i === void 0 || this.getTotalRowsHeight(i) <= r) break;
|
|
152
|
+
let a = this.splitLastPageForFinalBudget(i, r);
|
|
153
|
+
if (a === null) {
|
|
154
|
+
n.push([]);
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
n.splice(n.length - 1, 1, a.prefixRows, a.finalPageRows);
|
|
158
|
+
}
|
|
159
|
+
return this.avoidGroupRowOrphans(n);
|
|
160
|
+
}
|
|
161
|
+
static splitLastPageForFinalBudget(e, t) {
|
|
162
|
+
let n = 0;
|
|
163
|
+
for (let r = e.length - 1; r >= 1; --r) {
|
|
164
|
+
let i = e[r];
|
|
165
|
+
if (i !== void 0 && (n += this.estimateRowHeight(i), n <= t)) return {
|
|
166
|
+
finalPageRows: e.slice(r),
|
|
167
|
+
prefixRows: e.slice(0, r)
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
static takeRowsForBudget(e, t) {
|
|
173
|
+
let n = [], r = 0;
|
|
174
|
+
for (let i of e) {
|
|
175
|
+
if (i === void 0) continue;
|
|
176
|
+
let e = this.estimateRowHeight(i);
|
|
177
|
+
if (n.length > 0 && r + e > t || (n.push(i), r += e, n.length === 1 && e > t)) break;
|
|
178
|
+
}
|
|
179
|
+
return n;
|
|
180
|
+
}
|
|
181
|
+
}, L = /* @__PURE__ */ m({
|
|
182
|
+
__name: "InvoicePdfFooterSection",
|
|
183
|
+
props: { invoice: {} },
|
|
184
|
+
setup(e) {
|
|
185
|
+
let t = e, n = a(), r = s(() => [{
|
|
186
|
+
label: n.t("wise_invoicing.invoice.pdf.footer.email"),
|
|
187
|
+
value: t.invoice.issuer.email ?? ""
|
|
188
|
+
}, {
|
|
189
|
+
label: n.t("wise_invoicing.invoice.pdf.footer.phone"),
|
|
190
|
+
value: t.invoice.issuer.phoneNumber ?? ""
|
|
191
|
+
}].filter((e) => e.value !== "")), i = s(() => [
|
|
192
|
+
{
|
|
193
|
+
label: n.t("wise_invoicing.invoice.pdf.footer.address"),
|
|
194
|
+
value: I.getAddressLines(t.invoice.issuer.address).join(", ")
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
label: n.t("wise_invoicing.invoice.pdf.footer.vat_number"),
|
|
198
|
+
value: t.invoice.issuer.vatNumber ?? ""
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
label: n.t("wise_invoicing.invoice.pdf.footer.iban"),
|
|
202
|
+
value: t.invoice.issuer.bankAccountNumber ?? t.invoice.issuer.alternativeBankAccountNumber ?? ""
|
|
203
|
+
}
|
|
204
|
+
].filter((e) => e.value !== ""));
|
|
205
|
+
return (e, a) => (g(), c(b(S), {
|
|
206
|
+
as: "footer",
|
|
207
|
+
align: "center",
|
|
208
|
+
justify: "center",
|
|
209
|
+
gap: "none",
|
|
210
|
+
class: "mt-auto w-full break-inside-avoid [page-break-inside:avoid]"
|
|
211
|
+
}, {
|
|
212
|
+
default: x(() => [
|
|
213
|
+
p(b(C), {
|
|
214
|
+
align: "center",
|
|
215
|
+
gap: "md"
|
|
216
|
+
}, {
|
|
217
|
+
default: x(() => [
|
|
218
|
+
a[0] ||= d("span", { class: "flex-1 border-t border-secondary" }, null, -1),
|
|
219
|
+
p(b(w), {
|
|
220
|
+
text: t.invoice.issuer.name ?? b(n).t("wise_invoicing.common.not_available"),
|
|
221
|
+
truncate: !1,
|
|
222
|
+
as: "p",
|
|
223
|
+
class: "text-xs font-semibold text-primary"
|
|
224
|
+
}, null, 8, ["text"]),
|
|
225
|
+
a[1] ||= d("span", { class: "flex-1 border-t border-secondary" }, null, -1)
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}),
|
|
229
|
+
r.value.length > 0 ? (g(), c(b(C), {
|
|
230
|
+
key: 0,
|
|
231
|
+
justify: "center",
|
|
232
|
+
gap: "xs",
|
|
233
|
+
class: "mt-xxs",
|
|
234
|
+
wrap: ""
|
|
235
|
+
}, {
|
|
236
|
+
default: x(() => [(g(!0), u(o, null, _(r.value, (e) => (g(), c(b(w), {
|
|
237
|
+
key: e.label,
|
|
238
|
+
text: `${e.label}: ${e.value}`,
|
|
239
|
+
truncate: !1,
|
|
240
|
+
as: "p",
|
|
241
|
+
class: "text-xxs text-primary"
|
|
242
|
+
}, null, 8, ["text"]))), 128))]),
|
|
243
|
+
_: 1
|
|
244
|
+
})) : l("", !0),
|
|
245
|
+
i.value.length > 0 ? (g(), c(b(C), {
|
|
246
|
+
key: 1,
|
|
247
|
+
justify: "center",
|
|
248
|
+
gap: "xs",
|
|
249
|
+
class: "mt-xxs",
|
|
250
|
+
wrap: ""
|
|
251
|
+
}, {
|
|
252
|
+
default: x(() => [(g(!0), u(o, null, _(i.value, (e) => (g(), c(b(w), {
|
|
253
|
+
key: e.label,
|
|
254
|
+
text: `${e.label}: ${e.value}`,
|
|
255
|
+
truncate: !1,
|
|
256
|
+
as: "p",
|
|
257
|
+
class: "text-xxs text-primary"
|
|
258
|
+
}, null, 8, ["text"]))), 128))]),
|
|
259
|
+
_: 1
|
|
260
|
+
})) : l("", !0)
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}));
|
|
264
|
+
}
|
|
265
|
+
}), R = /* @__PURE__ */ m({
|
|
266
|
+
__name: "InvoicePdfHeaderSection",
|
|
267
|
+
props: {
|
|
268
|
+
invoice: {},
|
|
269
|
+
pageType: {}
|
|
270
|
+
},
|
|
271
|
+
setup(t) {
|
|
272
|
+
let r = t, d = a(), f = n(), m = s(() => d.locale.value || "en-US"), h = s(() => r.invoice.type === e.CREDIT_NOTE), v = s(() => h.value ? r.invoice.sequence === null ? d.t("wise_invoicing.credit_note.detail.fallback_title") : `${d.t("wise_invoicing.invoice.type.credit_note")} ${r.invoice.sequence}` : r.invoice.sequence ?? d.t("wise_invoicing.invoice.detail.fallback_title")), y = s(() => {
|
|
273
|
+
let e = r.invoice.originalInvoice?.sequence;
|
|
274
|
+
return !h.value || r.pageType !== "first" || e === null ? null : `${d.t("wise_invoicing.invoice.type.standard")} ${e}`;
|
|
275
|
+
}), T = s(() => (r.invoice.issuer.name ?? d.t("wise_invoicing.common.not_available")).split(" ").filter((e) => e !== "").slice(0, 2).map((e) => e.toUpperCase())), E = s(() => I.getAddressLines(r.invoice.customer.address)), D = s(() => {
|
|
276
|
+
let e = r.invoice.customer.vatNumber;
|
|
277
|
+
return e ? `${d.t("wise_invoicing.invoice.pdf.footer.vat_number")}: ${e}` : null;
|
|
278
|
+
}), O = s(() => r.invoice.customer.name !== null || E.value.length > 0 || r.invoice.customer.email !== null || D.value !== null), k = s(() => {
|
|
279
|
+
let e = [{
|
|
280
|
+
label: d.t("wise_invoicing.invoice.detail.header.invoice_date"),
|
|
281
|
+
value: A(r.invoice.issueOn)
|
|
282
|
+
}, {
|
|
283
|
+
label: d.t("wise_invoicing.invoice.detail.header.due_date"),
|
|
284
|
+
value: A(r.invoice.dueOn)
|
|
285
|
+
}];
|
|
286
|
+
return r.pageType === "first" && f.isDeliveryDateVisible.value && e.push({
|
|
287
|
+
label: d.t("wise_invoicing.invoice.detail.header.delivery_date"),
|
|
288
|
+
value: A(r.invoice.deliveredOn)
|
|
289
|
+
}), e;
|
|
290
|
+
});
|
|
291
|
+
function A(e) {
|
|
292
|
+
return I.formatPlainDate(e, m.value);
|
|
293
|
+
}
|
|
294
|
+
return (e, t) => (g(), c(b(S), {
|
|
295
|
+
as: "header",
|
|
296
|
+
gap: "none",
|
|
297
|
+
class: "w-full break-inside-avoid [page-break-inside:avoid]"
|
|
298
|
+
}, {
|
|
299
|
+
default: x(() => [p(b(S), {
|
|
300
|
+
"aria-label": r.invoice.issuer.name ?? b(d).t("wise_invoicing.common.not_available"),
|
|
301
|
+
align: "center",
|
|
302
|
+
gap: "none",
|
|
303
|
+
class: "w-full leading-none font-bold text-primary"
|
|
304
|
+
}, {
|
|
305
|
+
default: x(() => [(g(!0), u(o, null, _(T.value, (e) => (g(), c(b(w), {
|
|
306
|
+
key: e,
|
|
307
|
+
text: e,
|
|
308
|
+
truncate: !1,
|
|
309
|
+
as: "span"
|
|
310
|
+
}, null, 8, ["text"]))), 128))]),
|
|
311
|
+
_: 1
|
|
312
|
+
}, 8, ["aria-label"]), p(b(S), {
|
|
313
|
+
gap: r.pageType === "first" ? "2xl" : "xl",
|
|
314
|
+
class: "w-full"
|
|
315
|
+
}, {
|
|
316
|
+
default: x(() => [p(b(C), {
|
|
317
|
+
justify: "between",
|
|
318
|
+
align: "start",
|
|
319
|
+
gap: "2xl",
|
|
320
|
+
class: "w-full"
|
|
321
|
+
}, {
|
|
322
|
+
default: x(() => [p(b(S), {
|
|
323
|
+
gap: "none",
|
|
324
|
+
class: "min-w-px"
|
|
325
|
+
}, {
|
|
326
|
+
default: x(() => [
|
|
327
|
+
y.value === null ? l("", !0) : (g(), c(b(C), {
|
|
328
|
+
key: 0,
|
|
329
|
+
align: "center",
|
|
330
|
+
gap: "xxs",
|
|
331
|
+
class: "text-xs text-secondary"
|
|
332
|
+
}, {
|
|
333
|
+
default: x(() => [p(b(i), {
|
|
334
|
+
"aria-hidden": "true",
|
|
335
|
+
class: "size-3 shrink-0 text-secondary"
|
|
336
|
+
}), p(b(w), {
|
|
337
|
+
text: y.value,
|
|
338
|
+
truncate: !1,
|
|
339
|
+
as: "p",
|
|
340
|
+
class: "text-xs text-secondary"
|
|
341
|
+
}, null, 8, ["text"])]),
|
|
342
|
+
_: 1
|
|
343
|
+
})),
|
|
344
|
+
p(b(w), {
|
|
345
|
+
text: v.value,
|
|
346
|
+
truncate: !1,
|
|
347
|
+
as: "h1",
|
|
348
|
+
class: "text-lg font-semibold text-primary"
|
|
349
|
+
}, null, 8, ["text"]),
|
|
350
|
+
r.invoice.subject ? (g(), c(b(w), {
|
|
351
|
+
key: 1,
|
|
352
|
+
text: r.invoice.subject,
|
|
353
|
+
truncate: !1,
|
|
354
|
+
as: "p",
|
|
355
|
+
class: "max-w-100! text-xs wrap-break-word text-secondary"
|
|
356
|
+
}, null, 8, ["text"])) : l("", !0)
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
}), p(b(S), {
|
|
360
|
+
as: "dl",
|
|
361
|
+
gap: "none",
|
|
362
|
+
class: "w-48 text-xs text-primary"
|
|
363
|
+
}, {
|
|
364
|
+
default: x(() => [(g(!0), u(o, null, _(k.value, (e) => (g(), c(b(C), {
|
|
365
|
+
key: e.label,
|
|
366
|
+
justify: "between",
|
|
367
|
+
align: "start",
|
|
368
|
+
gap: "xl",
|
|
369
|
+
class: "w-full"
|
|
370
|
+
}, {
|
|
371
|
+
default: x(() => [p(b(w), {
|
|
372
|
+
text: e.label,
|
|
373
|
+
truncate: !1,
|
|
374
|
+
as: "dt",
|
|
375
|
+
class: "font-medium text-primary"
|
|
376
|
+
}, null, 8, ["text"]), p(b(w), {
|
|
377
|
+
text: e.value,
|
|
378
|
+
truncate: !1,
|
|
379
|
+
as: "dd",
|
|
380
|
+
class: "m-0 w-[10ch] shrink-0 text-right text-primary tabular-nums"
|
|
381
|
+
}, null, 8, ["text"])]),
|
|
382
|
+
_: 2
|
|
383
|
+
}, 1024))), 128))]),
|
|
384
|
+
_: 1
|
|
385
|
+
})]),
|
|
386
|
+
_: 1
|
|
387
|
+
}), r.pageType === "first" && O.value ? (g(), c(b(S), {
|
|
388
|
+
key: 0,
|
|
389
|
+
as: "section",
|
|
390
|
+
gap: "xxs",
|
|
391
|
+
class: "break-inside-avoid [page-break-inside:avoid]"
|
|
392
|
+
}, {
|
|
393
|
+
default: x(() => [
|
|
394
|
+
p(b(w), {
|
|
395
|
+
text: b(d).t("wise_invoicing.invoice.pdf.client"),
|
|
396
|
+
truncate: !1,
|
|
397
|
+
as: "h2",
|
|
398
|
+
class: "text-xs font-semibold text-primary"
|
|
399
|
+
}, null, 8, ["text"]),
|
|
400
|
+
p(b(w), {
|
|
401
|
+
text: r.invoice.customer.name ?? "-",
|
|
402
|
+
truncate: !1,
|
|
403
|
+
as: "p",
|
|
404
|
+
class: "text-xs text-secondary"
|
|
405
|
+
}, null, 8, ["text"]),
|
|
406
|
+
(g(!0), u(o, null, _(E.value, (e) => (g(), c(b(w), {
|
|
407
|
+
key: e,
|
|
408
|
+
text: e,
|
|
409
|
+
truncate: !1,
|
|
410
|
+
as: "p",
|
|
411
|
+
class: "text-xs text-secondary"
|
|
412
|
+
}, null, 8, ["text"]))), 128)),
|
|
413
|
+
p(b(w), {
|
|
414
|
+
text: r.invoice.customer.email ?? "-",
|
|
415
|
+
truncate: !1,
|
|
416
|
+
as: "p",
|
|
417
|
+
class: "text-xs text-secondary"
|
|
418
|
+
}, null, 8, ["text"]),
|
|
419
|
+
D.value === null ? l("", !0) : (g(), c(b(w), {
|
|
420
|
+
key: 0,
|
|
421
|
+
text: D.value,
|
|
422
|
+
truncate: !1,
|
|
423
|
+
as: "p",
|
|
424
|
+
class: "text-xs text-secondary"
|
|
425
|
+
}, null, 8, ["text"]))
|
|
426
|
+
]),
|
|
427
|
+
_: 1
|
|
428
|
+
})) : l("", !0)]),
|
|
429
|
+
_: 1
|
|
430
|
+
}, 8, ["gap"])]),
|
|
431
|
+
_: 1
|
|
432
|
+
}));
|
|
433
|
+
}
|
|
434
|
+
}), z = /* @__PURE__ */ m({
|
|
435
|
+
__name: "InvoicePdfTableCell",
|
|
436
|
+
props: { bold: { type: Boolean } },
|
|
437
|
+
setup(e) {
|
|
438
|
+
let t = e;
|
|
439
|
+
return (e, n) => (g(), u("td", { class: h([t.bold && "font-semibold", "px-lg py-sm text-right align-middle text-xxs whitespace-nowrap text-primary"]) }, [v(e.$slots, "default")], 2));
|
|
440
|
+
}
|
|
441
|
+
}), B = { class: "border-b border-secondary bg-secondary px-lg py-xs text-right text-xxs font-semibold text-primary" }, V = /* @__PURE__ */ m({
|
|
442
|
+
__name: "InvoicePdfTableHeaderCell",
|
|
443
|
+
props: { label: {} },
|
|
444
|
+
setup(e) {
|
|
445
|
+
let t = e;
|
|
446
|
+
return (e, n) => (g(), u("th", B, y(t.label), 1));
|
|
447
|
+
}
|
|
448
|
+
}), H = { class: "mt-2xl w-full" }, U = { class: "w-full table-fixed border-separate border-spacing-0 overflow-hidden rounded-xs border border-secondary" }, W = { class: "table-header-group" }, G = {
|
|
449
|
+
key: 0,
|
|
450
|
+
class: "break-inside-avoid bg-secondary [page-break-inside:avoid]"
|
|
451
|
+
}, K = {
|
|
452
|
+
colspan: "6",
|
|
453
|
+
class: "border-y border-secondary px-lg py-sm align-middle text-xxs wrap-break-word text-primary"
|
|
454
|
+
}, q = { class: "font-semibold" }, J = {
|
|
455
|
+
key: 0,
|
|
456
|
+
class: "ml-xs text-tertiary"
|
|
457
|
+
}, Y = { class: "border-y border-secondary px-lg py-sm text-right align-middle text-xxs font-semibold whitespace-nowrap text-primary" }, X = {
|
|
458
|
+
key: 0,
|
|
459
|
+
class: "mt-xxs whitespace-pre-line text-tertiary"
|
|
460
|
+
}, Z = { key: 0 }, Q = {
|
|
461
|
+
colspan: "7",
|
|
462
|
+
class: "px-lg py-sm text-center text-xxs text-secondary"
|
|
463
|
+
}, ee = /* @__PURE__ */ m({
|
|
464
|
+
__name: "InvoicePdfLinesTable",
|
|
465
|
+
props: {
|
|
466
|
+
isCreditNote: { type: Boolean },
|
|
467
|
+
rows: {}
|
|
468
|
+
},
|
|
469
|
+
setup(e) {
|
|
470
|
+
let t = e, n = a(), r = n.locale;
|
|
471
|
+
function i(e) {
|
|
472
|
+
return I.formatMonetary(e, r.value);
|
|
473
|
+
}
|
|
474
|
+
function s(e) {
|
|
475
|
+
return e === null ? "" : I.formatMonetary(e, r.value);
|
|
476
|
+
}
|
|
477
|
+
function c(e) {
|
|
478
|
+
let n = t.isCreditNote ? {
|
|
479
|
+
...e,
|
|
480
|
+
amount: -e.amount
|
|
481
|
+
} : e;
|
|
482
|
+
return I.formatMonetary(n, r.value);
|
|
483
|
+
}
|
|
484
|
+
function m(e) {
|
|
485
|
+
return I.formatMonetary(I.getDisplayLineGrossAmount(e.grossAmount, {
|
|
486
|
+
isCreditNote: t.isCreditNote,
|
|
487
|
+
isDiscount: e.isDiscount
|
|
488
|
+
}), r.value);
|
|
489
|
+
}
|
|
490
|
+
function v(e) {
|
|
491
|
+
return I.formatNumber(t.isCreditNote ? -e : e, r.value);
|
|
492
|
+
}
|
|
493
|
+
function S(e) {
|
|
494
|
+
return e.toString(r.value);
|
|
495
|
+
}
|
|
496
|
+
return (e, r) => (g(), u("div", H, [d("table", U, [
|
|
497
|
+
r[0] ||= d("colgroup", null, [
|
|
498
|
+
d("col", { class: "w-auto" }),
|
|
499
|
+
d("col", { class: "w-[8%]" }),
|
|
500
|
+
d("col", { class: "w-[8%]" }),
|
|
501
|
+
d("col", { class: "w-[14%]" }),
|
|
502
|
+
d("col", { class: "w-[16%]" }),
|
|
503
|
+
d("col", { class: "w-[4%]" }),
|
|
504
|
+
d("col", { class: "w-[12%]" })
|
|
505
|
+
], -1),
|
|
506
|
+
d("thead", W, [d("tr", null, [
|
|
507
|
+
p(V, {
|
|
508
|
+
label: b(n).t("wise_invoicing.invoice.detail.line_items.item"),
|
|
509
|
+
class: "text-left!"
|
|
510
|
+
}, null, 8, ["label"]),
|
|
511
|
+
p(V, { label: b(n).t("wise_invoicing.invoice.detail.line_items.unit") }, null, 8, ["label"]),
|
|
512
|
+
p(V, { label: b(n).t("wise_invoicing.invoice.detail.line_items.qty") }, null, 8, ["label"]),
|
|
513
|
+
p(V, { label: b(n).t("wise_invoicing.invoice.detail.line_items.unit_price") }, null, 8, ["label"]),
|
|
514
|
+
p(V, { label: b(n).t("wise_invoicing.invoice.detail.line_items.price_excl_vat") }, null, 8, ["label"]),
|
|
515
|
+
p(V, { label: b(n).t("wise_invoicing.invoice.detail.line_items.vat") }, null, 8, ["label"]),
|
|
516
|
+
p(V, { label: b(n).t("wise_invoicing.invoice.detail.line_items.total") }, null, 8, ["label"])
|
|
517
|
+
])]),
|
|
518
|
+
d("tbody", null, [(g(!0), u(o, null, _(t.rows, (e, t) => (g(), u(o, { key: e.type === "group" ? e.uuid : e.line.uuid }, [e.type === "group" ? (g(), u("tr", G, [d("td", K, [d("span", q, y(e.name), 1), e.description !== null && e.description !== "" ? (g(), u("span", J, y(e.description), 1)) : l("", !0)]), d("td", Y, y(s(e.total)), 1)])) : (g(), u("tr", {
|
|
519
|
+
key: 1,
|
|
520
|
+
class: h([t % 2 == 1 ? "bg-secondary" : "bg-primary", "break-inside-avoid [page-break-inside:avoid]"])
|
|
521
|
+
}, [
|
|
522
|
+
d("td", { class: h([e.isGrouped ? "py-sm pr-lg pl-2xl" : "px-lg py-sm", "align-middle text-xxs font-medium wrap-break-word text-primary"]) }, [d("div", null, y(e.line.name), 1), e.line.description !== null && e.line.description !== "" ? (g(), u("div", X, y(e.line.description), 1)) : l("", !0)], 2),
|
|
523
|
+
p(z, null, {
|
|
524
|
+
default: x(() => [f(y(e.line.unit), 1)]),
|
|
525
|
+
_: 2
|
|
526
|
+
}, 1024),
|
|
527
|
+
p(z, null, {
|
|
528
|
+
default: x(() => [f(y(v(e.line.quantity)), 1)]),
|
|
529
|
+
_: 2
|
|
530
|
+
}, 1024),
|
|
531
|
+
p(z, null, {
|
|
532
|
+
default: x(() => [f(y(i(e.line.unitPrice)), 1)]),
|
|
533
|
+
_: 2
|
|
534
|
+
}, 1024),
|
|
535
|
+
p(z, null, {
|
|
536
|
+
default: x(() => [f(y(c(e.line.netAmount)), 1)]),
|
|
537
|
+
_: 2
|
|
538
|
+
}, 1024),
|
|
539
|
+
p(z, null, {
|
|
540
|
+
default: x(() => [f(y(S(e.line.vatRatePercentage)), 1)]),
|
|
541
|
+
_: 2
|
|
542
|
+
}, 1024),
|
|
543
|
+
p(z, { bold: !0 }, {
|
|
544
|
+
default: x(() => [f(y(m(e.line)), 1)]),
|
|
545
|
+
_: 2
|
|
546
|
+
}, 1024)
|
|
547
|
+
], 2))], 64))), 128)), t.rows.length === 0 ? (g(), u("tr", Z, [d("td", Q, y(b(n).t("wise_invoicing.invoice.detail.line_items.empty")), 1)])) : l("", !0)])
|
|
548
|
+
])]));
|
|
549
|
+
}
|
|
550
|
+
}), $ = class {
|
|
551
|
+
static sortByVatRate(e) {
|
|
552
|
+
return e.toSorted((e, t) => Number(e.vatRate) - Number(t.vatRate));
|
|
553
|
+
}
|
|
554
|
+
}, te = { class: "grid grid-cols-[auto_1px_auto] items-end gap-x-2xl align-bottom" }, ne = { class: "grid h-min grid-cols-[auto_auto_auto] gap-x-lg gap-y-sm text-xs" }, re = {
|
|
555
|
+
key: 0,
|
|
556
|
+
class: "mt-4xl text-xs text-primary"
|
|
557
|
+
}, ie = /* @__PURE__ */ m({
|
|
558
|
+
__name: "InvoicePdfSummarySection",
|
|
559
|
+
props: {
|
|
560
|
+
hasLines: { type: Boolean },
|
|
561
|
+
invoice: {}
|
|
562
|
+
},
|
|
563
|
+
setup(t) {
|
|
564
|
+
let n = t, r = a(), i = s(() => r.locale.value || "en-US"), c = s(() => n.invoice.type === e.CREDIT_NOTE);
|
|
565
|
+
function f(e) {
|
|
566
|
+
return {
|
|
567
|
+
...e,
|
|
568
|
+
amount: -e.amount
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
function m(e) {
|
|
572
|
+
return I.formatMonetary(c.value ? f(e) : e, i.value);
|
|
573
|
+
}
|
|
574
|
+
let v = s(() => {
|
|
575
|
+
let e = $.sortByVatRate(n.invoice.vatSummaries).map((e) => ({
|
|
576
|
+
key: `${e.vatRate}`,
|
|
577
|
+
label: T(e.vatRate),
|
|
578
|
+
netValue: m(e.netAmount),
|
|
579
|
+
vatValue: m(e.vatAmount)
|
|
580
|
+
}));
|
|
581
|
+
return e.push({
|
|
582
|
+
key: "subtotal",
|
|
583
|
+
label: r.t("wise_invoicing.invoice.pdf.summary.subtotal"),
|
|
584
|
+
netValue: m(n.invoice.effectiveNet),
|
|
585
|
+
vatValue: m(n.invoice.vatAmount)
|
|
586
|
+
}), e;
|
|
587
|
+
}), y = s(() => n.invoice.totalDiscountAmount === null ? "-" : `-${I.formatMonetary(n.invoice.totalDiscountAmount, i.value)}`);
|
|
588
|
+
function T(e) {
|
|
589
|
+
let t = n.invoice.lines.find((t) => t.vatRate === e);
|
|
590
|
+
return t === void 0 ? r.t("wise_invoicing.invoice.detail.totals.vat") : t.vatRatePercentage.toString(i.value);
|
|
591
|
+
}
|
|
592
|
+
return (e, t) => (g(), u("div", { class: h([n.hasLines ? "mt-xl" : "mt-4xl", "break-inside-avoid [page-break-inside:avoid]"]) }, [d("div", te, [
|
|
593
|
+
d("div", ne, [
|
|
594
|
+
t[0] ||= d("span", { class: "min-w-12" }, null, -1),
|
|
595
|
+
p(b(w), {
|
|
596
|
+
text: b(r).t("wise_invoicing.invoice.detail.totals.excl_vat"),
|
|
597
|
+
truncate: !1,
|
|
598
|
+
as: "span",
|
|
599
|
+
class: "text-right font-medium text-secondary"
|
|
600
|
+
}, null, 8, ["text"]),
|
|
601
|
+
p(b(w), {
|
|
602
|
+
text: b(r).t("wise_invoicing.invoice.detail.totals.vat"),
|
|
603
|
+
truncate: !1,
|
|
604
|
+
as: "span",
|
|
605
|
+
class: "text-right font-medium text-secondary"
|
|
606
|
+
}, null, 8, ["text"]),
|
|
607
|
+
(g(!0), u(o, null, _(v.value, (e) => (g(), u(o, { key: e.key }, [
|
|
608
|
+
p(b(w), {
|
|
609
|
+
text: e.label,
|
|
610
|
+
truncate: !1,
|
|
611
|
+
as: "span",
|
|
612
|
+
class: "font-medium text-secondary"
|
|
613
|
+
}, null, 8, ["text"]),
|
|
614
|
+
p(b(w), {
|
|
615
|
+
text: e.netValue,
|
|
616
|
+
truncate: !1,
|
|
617
|
+
as: "span",
|
|
618
|
+
class: "text-right font-medium whitespace-nowrap text-primary"
|
|
619
|
+
}, null, 8, ["text"]),
|
|
620
|
+
p(b(w), {
|
|
621
|
+
text: e.vatValue,
|
|
622
|
+
truncate: !1,
|
|
623
|
+
as: "span",
|
|
624
|
+
class: "text-right font-medium whitespace-nowrap text-primary"
|
|
625
|
+
}, null, 8, ["text"])
|
|
626
|
+
], 64))), 128))
|
|
627
|
+
]),
|
|
628
|
+
t[2] ||= d("span", { class: "h-24 w-px bg-tertiary" }, null, -1),
|
|
629
|
+
p(b(S), { class: "w-full" }, {
|
|
630
|
+
default: x(() => [
|
|
631
|
+
p(b(C), {
|
|
632
|
+
justify: "between",
|
|
633
|
+
class: "w-full text-xs"
|
|
634
|
+
}, {
|
|
635
|
+
default: x(() => [p(b(w), {
|
|
636
|
+
text: b(r).t("wise_invoicing.invoice.pdf.summary.total_discount"),
|
|
637
|
+
truncate: !1,
|
|
638
|
+
as: "span",
|
|
639
|
+
class: "font-medium text-secondary"
|
|
640
|
+
}, null, 8, ["text"]), p(b(w), {
|
|
641
|
+
text: y.value,
|
|
642
|
+
truncate: !1,
|
|
643
|
+
as: "span",
|
|
644
|
+
class: "text-right font-medium whitespace-nowrap text-primary"
|
|
645
|
+
}, null, 8, ["text"])]),
|
|
646
|
+
_: 1
|
|
647
|
+
}),
|
|
648
|
+
t[1] ||= d("span", { class: "w-full border-t border-tertiary" }, null, -1),
|
|
649
|
+
p(b(C), {
|
|
650
|
+
class: "w-full",
|
|
651
|
+
justify: "between"
|
|
652
|
+
}, {
|
|
653
|
+
default: x(() => [p(b(w), {
|
|
654
|
+
text: b(r).t("wise_invoicing.invoice.detail.totals.total_incl_vat"),
|
|
655
|
+
truncate: !1,
|
|
656
|
+
as: "span",
|
|
657
|
+
class: "text-xs font-medium text-secondary"
|
|
658
|
+
}, null, 8, ["text"]), p(b(w), {
|
|
659
|
+
text: m(n.invoice.grossAmount),
|
|
660
|
+
truncate: !1,
|
|
661
|
+
as: "span",
|
|
662
|
+
class: "text-sm font-semibold whitespace-nowrap text-primary"
|
|
663
|
+
}, null, 8, ["text"])]),
|
|
664
|
+
_: 1
|
|
665
|
+
})
|
|
666
|
+
]),
|
|
667
|
+
_: 1
|
|
668
|
+
})
|
|
669
|
+
]), n.invoice.externalRemarks ? (g(), u("section", re, [p(b(w), {
|
|
670
|
+
text: b(r).t("wise_invoicing.invoice.pdf.summary.remarks"),
|
|
671
|
+
truncate: !1,
|
|
672
|
+
as: "h2",
|
|
673
|
+
class: "font-medium"
|
|
674
|
+
}, null, 8, ["text"]), p(b(w), {
|
|
675
|
+
text: n.invoice.externalRemarks,
|
|
676
|
+
truncate: !1,
|
|
677
|
+
as: "p"
|
|
678
|
+
}, null, 8, ["text"])])) : l("", !0)], 2));
|
|
679
|
+
}
|
|
680
|
+
}), ae = {
|
|
681
|
+
"aria-hidden": "true",
|
|
682
|
+
class: "pointer-events-none absolute inset-0 flex transform-[rotate(-34deg)] items-center justify-center text-[42mm] leading-none font-bold whitespace-nowrap text-primary uppercase opacity-[0.05] select-none"
|
|
683
|
+
}, oe = /* @__PURE__ */ m({
|
|
684
|
+
__name: "InvoicePdfWatermark",
|
|
685
|
+
setup(e) {
|
|
686
|
+
let t = a();
|
|
687
|
+
return (e, n) => (g(), u("div", ae, y(b(t).t("wise_invoicing.invoice.status.draft")), 1));
|
|
688
|
+
}
|
|
689
|
+
}), se = { class: "absolute right-9 bottom-9 text-xs leading-none font-medium text-tertiary" }, ce = /* @__PURE__ */ m({
|
|
690
|
+
__name: "BillingDocumentPdf",
|
|
691
|
+
props: { billingDocument: {} },
|
|
692
|
+
setup(n) {
|
|
693
|
+
let r = n, i = s(() => r.billingDocument.status === t.DRAFT || r.billingDocument.status === t.READY), a = s(() => r.billingDocument.type === e.CREDIT_NOTE), f = s(() => I.buildRows(r.billingDocument, { isCreditNote: a.value })), m = s(() => {
|
|
694
|
+
let e = I.paginateRows(f.value, { hasRemarks: r.billingDocument.externalRemarks !== null && r.billingDocument.externalRemarks.trim() !== "" });
|
|
695
|
+
return e.map((t, n) => ({
|
|
696
|
+
isLastPage: n === e.length - 1,
|
|
697
|
+
headerType: n === 0 ? "first" : "continuation",
|
|
698
|
+
rows: t
|
|
699
|
+
}));
|
|
700
|
+
});
|
|
701
|
+
return (e, t) => (g(!0), u(o, null, _(m.value, (e, t) => (g(), u("article", {
|
|
702
|
+
key: `invoice-pdf-page-${t}`,
|
|
703
|
+
class: h([t > 0 ? "\n mt-4xl\n print:mt-0\n " : "", "relative mx-auto box-border flex h-[297mm] w-[210mm] break-after-page flex-col overflow-hidden bg-primary px-5xl pt-5xl pb-2xl text-primary shadow-card [-webkit-print-color-adjust:exact] [page-break-after:always] [print-color-adjust:exact] last:break-after-auto last:[page-break-after:auto] print:mx-none print:min-h-auto print:w-auto print:shadow-none"])
|
|
704
|
+
}, [
|
|
705
|
+
i.value ? (g(), c(oe, { key: 0 })) : l("", !0),
|
|
706
|
+
p(R, {
|
|
707
|
+
invoice: r.billingDocument,
|
|
708
|
+
"page-type": e.headerType
|
|
709
|
+
}, null, 8, ["invoice", "page-type"]),
|
|
710
|
+
e.rows.length > 0 || r.billingDocument.lines.length === 0 ? (g(), c(ee, {
|
|
711
|
+
key: 1,
|
|
712
|
+
"is-credit-note": a.value,
|
|
713
|
+
rows: e.rows
|
|
714
|
+
}, null, 8, ["is-credit-note", "rows"])) : l("", !0),
|
|
715
|
+
e.isLastPage ? (g(), c(ie, {
|
|
716
|
+
key: 2,
|
|
717
|
+
"has-lines": e.rows.length > 0 || r.billingDocument.lines.length === 0,
|
|
718
|
+
invoice: r.billingDocument
|
|
719
|
+
}, null, 8, ["has-lines", "invoice"])) : l("", !0),
|
|
720
|
+
p(L, { invoice: r.billingDocument }, null, 8, ["invoice"]),
|
|
721
|
+
d("span", se, y(t + 1) + "/" + y(m.value.length), 1)
|
|
722
|
+
], 2))), 128));
|
|
723
|
+
}
|
|
724
|
+
});
|
|
725
|
+
//#endregion
|
|
726
|
+
export { $ as n, I as r, ce as t };
|