@wisemen/wise-invoicing-web 0.6.0 → 0.8.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-r9DcFi76.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-CsqBeAiA.js → BillingDocumentDetailViewDataProvider-V5c_cJwt.js} +1544 -1459
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-thrvzGfh.js → BillingDocumentPdf-BYn3lUyl.js} +8 -7
- package/dist/{CreditNoteDetailViewDataProvider-D6IMBwLn.js → CreditNoteDetailViewDataProvider-BqLYeBUQ.js} +230 -223
- package/dist/CreditNotePdfViewDataProvider-Co4R7QJx.js +22 -0
- package/dist/{CustomFieldValueText-BRpCwCqJ.js → CustomFieldValueText-BP4bKQh7.js} +53 -38
- package/dist/{DunningCaseDetailViewDataProvider-DTotyRX8.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
- package/dist/{DunningCaseOverviewView-kDq7UY5e.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
- package/dist/{DunningCaseReminderPdfViewDataProvider-DgKA-7lX.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
- package/dist/{DunningCaseSendDialog-DVfBVtgr.js → DunningCaseSendDialog-DwB_jFum.js} +8 -8
- package/dist/{InvoiceApprovalOutOfSyncIndicator-DPlrqqOs.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-B6naRElx.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-CDc_Pwsm.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
- package/dist/{InvoiceApproveDialogDataProvider-CK6ij8X1.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
- package/dist/{InvoiceDetailViewDataProvider-BKurQPAV.js → InvoiceDetailViewDataProvider-DSG6VnDh.js} +592 -586
- package/dist/{InvoiceOverviewViewDataProvider-ChoyCi5L.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +440 -440
- package/dist/{InvoicePdfView-DLEKQ29O.js → InvoicePdfView-BIDvRCr4.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-C-b7iXiH.js → InvoicePdfViewDataProvider-Ct1HBqqa.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-DZ4WQsvi.js → InvoicePublicPdfViewDataProvider-DS0Q-BEX.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-CsF8fPlp.js → InvoicePublicProFormaPdfViewDataProvider-DqWKGeAm.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-t64Qiyn6.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-Cc8R6ekd.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +3 -3
- package/dist/{PeppolSettingsViewDataProvider-DpVIfFVG.js → PeppolSettingsViewDataProvider-Cptga29B.js} +2 -2
- package/dist/{ReminderSettingsViewDataProvider-QOh3LpMX.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +4 -4
- package/dist/{api.util-Do9BEwG4.js → api.util-CR2xLnNj.js} +536 -515
- package/dist/{billingDocumentDetail.transformer-BAOQ3Zrg.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +8 -2
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.gen.d.ts +23 -17
- package/dist/client/zod.gen.d.ts +360 -0
- package/dist/composables/invoicingConfig.composable.d.ts +16 -3
- package/dist/{creditNoteDetail.query-C1rr54m1.js → creditNoteDetail.query-DGeG9_sO.js} +3 -3
- package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
- package/dist/{dist-CZAOPudv.js → dist-DALBiuub.js} +133 -133
- package/dist/{documentTitle.composable-C3k1m0Nz.js → documentTitle.composable-RvqrZTBa.js} +1 -1
- package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
- package/dist/{i18n.lib-Bkz_R954.js → i18n.lib-MOiHLIGc.js} +4 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +219 -204
- package/dist/{invoice.service-DrI2ULIR.js → invoice.service-Fv4F4aZq.js} +3 -3
- package/dist/{invoiceApproval.service-Dpxiru7l.js → invoiceApproval.service-DJvXagC7.js} +2 -2
- package/dist/{invoiceApprovalStatus.util-CdOAcPzv.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
- package/dist/{invoiceCustomer.service-RRFosiYR.js → invoiceCustomer.service-CDyrtcwH.js} +2 -2
- package/dist/{invoiceDetail.query-BmtHdfj0.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
- package/dist/{invoiceIndexCache.util-DKtJorc_.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
- package/dist/{invoicingConfig.composable-CMTYHHS9.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
- package/dist/{issuerSettings.query-CKDhoStt.js → issuerSettings.query-CoiXblSm.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +4 -0
- package/dist/locales/en-US.json.d.ts +2 -0
- package/dist/locales/nl-BE.json.d.ts +2 -0
- package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
- package/dist/modules/custom-field/components/customFieldTypeIcon.d.ts +16 -0
- package/dist/modules/custom-field/components/customFieldValueText.spec.d.ts +1 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.d.ts +16 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +1 -1
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
- package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/{reminderConfig.query-yImUS5qt.js → reminderConfig.query-aRFzY6uZ.js} +2 -2
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +114 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +57 -36
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +6 -1
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.spec.d.ts +1 -0
- package/package.json +1 -1
- package/dist/CreditNotePdfViewDataProvider-C4z1NE3Q.js +0 -21
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { Component, MaybeRefOrGetter } from 'vue';
|
|
2
2
|
import { RouteLocationRaw } from 'vue-router';
|
|
3
|
+
import { CustomFieldEntityType } from '../client/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* A reference custom field value, together with the definition fields that say what it
|
|
6
|
+
* points to. The package does not know the referenced entity, so the host maps it to a route.
|
|
7
|
+
*/
|
|
8
|
+
export interface CustomFieldReference {
|
|
9
|
+
entityType: CustomFieldEntityType;
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
3
13
|
export interface InvoicingConfig {
|
|
4
14
|
isDeliveryDateVisible?: boolean;
|
|
5
15
|
isGlobalDiscountEnabled?: boolean;
|
|
@@ -11,10 +21,12 @@ export interface InvoicingInitProps {
|
|
|
11
21
|
environment?: string;
|
|
12
22
|
getAccessToken?: () => Promise<string | null>;
|
|
13
23
|
getCustomerDetailRoute?: (customerUuid: string) => RouteLocationRaw | null;
|
|
24
|
+
getCustomFieldReferenceRoute?: (reference: CustomFieldReference) => RouteLocationRaw | null;
|
|
14
25
|
/**
|
|
15
|
-
* Renders the invoice PDF instead of the built-in layout,
|
|
16
|
-
* public token route. It receives a single `invoice: InvoicePdfDetail` prop,
|
|
17
|
-
* ship its own invoice design without re-implementing the fetching or the token
|
|
26
|
+
* Renders the invoice and credit note PDF instead of the built-in layout, in the detail page's PDF
|
|
27
|
+
* viewer, the in-app previews and the public token route. It receives a single `invoice: InvoicePdfDetail` prop,
|
|
28
|
+
* so a host app can ship its own invoice design without re-implementing the fetching or the token
|
|
29
|
+
* handling. Mark each page element with `data-pdf-page` so the viewer can count and navigate pages.
|
|
18
30
|
*/
|
|
19
31
|
invoicePdfComponent?: Component;
|
|
20
32
|
locale: MaybeRefOrGetter<string>;
|
|
@@ -26,6 +38,7 @@ export declare function useInvoicingConfig(): {
|
|
|
26
38
|
isInitialized: import('vue').ComputedRef<boolean>;
|
|
27
39
|
isLineDiscountEnabled: import('vue').ComputedRef<boolean>;
|
|
28
40
|
getCustomerDetailRoute: (customerUuid: string) => RouteLocationRaw | null;
|
|
41
|
+
getCustomFieldReferenceRoute: (reference: CustomFieldReference) => RouteLocationRaw | null;
|
|
29
42
|
init: (props: InvoicingInitProps) => Promise<void>;
|
|
30
43
|
invoicePdfComponent: import('vue').ComputedRef<Component | null>;
|
|
31
44
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as e, L as t, S as n, T as r, V as i, Y as a, h as o, it as s, t as c, y as l } from "./api.util-
|
|
2
|
-
import { r as u, x as d } from "./documentTitle.composable-
|
|
1
|
+
import { H as e, L as t, S as n, T as r, V as i, Y as a, h as o, it as s, t as c, y as l } from "./api.util-CR2xLnNj.js";
|
|
2
|
+
import { r as u, x as d } from "./documentTitle.composable-RvqrZTBa.js";
|
|
3
3
|
import { n as f, t as p } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
4
|
-
import { a as m, n as h, o as g, t as _ } from "./billingDocumentDetail.transformer-
|
|
4
|
+
import { a as m, n as h, o as g, t as _ } from "./billingDocumentDetail.transformer-D1f6Nv-U.js";
|
|
5
5
|
import { t as v } from "./dist-BFx8U4Su.js";
|
|
6
6
|
import { useQuery as y } from "@wisemen/vue-core-api-utils";
|
|
7
7
|
//#region src/modules/credit-note/models/detail/creditNoteDetail.transformer.ts
|