@wisemen/wise-invoicing-web 0.3.1 → 0.4.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 → ApprovalReminderSettingsViewDataProvider-IuReavOR.js} +3 -3
- package/dist/{BillingDocumentDetailViewDataProvider-Dub07ybW.js → BillingDocumentDetailViewDataProvider-B3I6UIKY.js} +2201 -1728
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-DgtUB45R.js → BillingDocumentPdf-rFqmLUPy.js} +226 -219
- package/dist/{CreditNoteDetailViewDataProvider-BxNfC6yO.js → CreditNoteDetailViewDataProvider-CQRnG2Fz.js} +41 -41
- package/dist/{CreditNotePdfViewDataProvider-D0j8qqK-.js → CreditNotePdfViewDataProvider-RytwPWH5.js} +2 -2
- package/dist/{CustomFieldValueText-Cuhs9sRn.js → CustomFieldValueText-DA0aPKwC.js} +1 -1
- package/dist/{DunningCaseDetailViewDataProvider-ou1FfNWQ.js → DunningCaseDetailViewDataProvider-BRYbYgTw.js} +64 -64
- package/dist/{DunningCaseOverviewView--zaPD0-c.js → DunningCaseOverviewView-D0vScVF1.js} +125 -125
- package/dist/{DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js → DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js} +1 -1
- package/dist/{DunningCaseSendDialog-Co4oLFtZ.js → DunningCaseSendDialog-CV66_tMv.js} +8 -8
- package/dist/{InvoiceApprovalOutOfSyncIndicator-H6H7kjAE.js → InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-Bw-6rkon.js → InvoiceApprovalOverviewView-CcMqr2jH.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-IyzJ--TJ.js → InvoiceApprovalStatusBadge-BJ3Q18bf.js} +3 -3
- package/dist/{InvoiceApproveDialogDataProvider-8G-11W1e.js → InvoiceApproveDialogDataProvider-DaCEHgs0.js} +7 -7
- package/dist/{InvoiceDetailViewDataProvider-B9gul2ei.js → InvoiceDetailViewDataProvider-B5uZY8Qy.js} +46 -46
- package/dist/{InvoiceOverviewViewDataProvider-5KgIdhfL.js → InvoiceOverviewViewDataProvider-BrgmweRE.js} +57 -57
- package/dist/{InvoicePdfView-5sJ-u_gT.js → InvoicePdfView-CPEX7E9W.js} +1 -1
- package/dist/{InvoicePdfViewDataProvider-BLVXDPv6.js → InvoicePdfViewDataProvider-T4-8A2OD.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-CnhYazmB.js → InvoicePublicPdfViewDataProvider-BkHZoPSZ.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-CcvGISK6.js → InvoicePublicProFormaPdfViewDataProvider-CfkArXbC.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-Kcq7kSSt.js → InvoicingFileUploadProvider-BLBjPKqx.js} +1 -1
- package/dist/{IssuerSettingsViewDataProvider-BuSIVnIl.js → IssuerSettingsViewDataProvider-BStn0jFI.js} +2 -2
- package/dist/{ReminderSettingsViewDataProvider-CH7gSXnj.js → ReminderSettingsViewDataProvider-CjX7afDs.js} +3 -3
- package/dist/{api.util-CkIRZS3h.js → api.util-D6m6OY3_.js} +15 -6
- package/dist/{billingDocumentDetail.transformer-Bfd8geNo.js → billingDocumentDetail.transformer-Da-Nt4bI.js} +37 -29
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.gen.d.ts +16 -2
- package/dist/client/zod.gen.d.ts +28 -0
- package/dist/{creditNoteDetail.query-tLnfqsEB.js → creditNoteDetail.query-Yb8TdZNm.js} +22 -18
- package/dist/{dist-CGZBUnWK.js → dist-BpDuRYDT.js} +130 -130
- package/dist/{dist-BQbaoN5W.js → dist-DCbLgB6Y.js} +181 -101
- package/dist/{i18n.lib--mzprLMR.js → i18n.lib-CKs3ExEl.js} +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +32 -31
- package/dist/{invoice.service-B1w16_Md.js → invoice.service-DWDl9XRh.js} +214 -209
- package/dist/{invoiceApproval.service-BHAJmFkU.js → invoiceApproval.service-Fwlxgd9o.js} +2 -2
- package/dist/{invoiceApprovalStatus.util-DohOKR4q.js → invoiceApprovalStatus.util-q-zHLdFV.js} +1 -1
- package/dist/{invoiceCustomer.service-DpVfpQUD.js → invoiceCustomer.service-DOexR54S.js} +2 -2
- package/dist/{invoiceDetail.query-CfyNSXLS.js → invoiceDetail.query-B5w0Vlsy.js} +1 -1
- package/dist/{invoiceIndexCache.util-BDLs7W9m.js → invoiceIndexCache.util-CUlp4R7R.js} +2 -2
- package/dist/{invoicingConfig.composable-COn1rKRf.js → invoicingConfig.composable-DjFexycc.js} +2 -2
- package/dist/{issuerSettings.query-CDFk2GiP.js → issuerSettings.query-BHuLjV9P.js} +1 -1
- package/dist/libs/i18n.lib.d.ts +28 -0
- package/dist/locales/en-US.json.d.ts +14 -0
- package/dist/locales/nl-BE.json.d.ts +14 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentLineGroup.util.d.ts +15 -0
- package/dist/models/billing-document/billingDocumentLineGroup.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +4 -1
- package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +5 -0
- package/dist/{reminderConfig.query-DSO0ekC_.js → reminderConfig.query-C4J6m4ER.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/apiError.type.d.ts +2 -2
- package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +1 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +3 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +5 -2
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTreeIndent.vue.d.ts +17 -0
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +78 -18
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +14 -4
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +6 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +8 -4
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +16 -3
- package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +163 -26
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as e, t, tt as n, z as r } from "./api.util-
|
|
1
|
+
import { J as e, t, tt as n, z as r } from "./api.util-D6m6OY3_.js";
|
|
2
2
|
import { n as i, r as a, t as o } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
3
|
-
import { t as s } from "./invoiceApprovalStatus.util-
|
|
3
|
+
import { t as s } from "./invoiceApprovalStatus.util-q-zHLdFV.js";
|
|
4
4
|
//#region src/modules/invoice-approval/models/approvalReminderConfig.transformer.ts
|
|
5
5
|
var c = class {
|
|
6
6
|
static toDto(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { X as e, Z as t, t as n } from "./api.util-
|
|
2
|
-
import { o as r } from "./invoice.service-
|
|
1
|
+
import { X as e, Z as t, t as n } from "./api.util-D6m6OY3_.js";
|
|
2
|
+
import { o as r } from "./invoice.service-DWDl9XRh.js";
|
|
3
3
|
//#region src/models/customer/customerDetail.transformer.ts
|
|
4
4
|
var i = class {
|
|
5
5
|
static fromDto(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api.util-
|
|
1
|
+
import "./api.util-D6m6OY3_.js";
|
|
2
2
|
import { T as e, v as t } from "./documentTitle.composable-CRJjS6p-.js";
|
|
3
3
|
import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as r } from "./CustomFieldValueText-
|
|
4
|
+
import { n as r } from "./CustomFieldValueText-DA0aPKwC.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createVNode as c, defineComponent as l, openBlock as u, unref as d, withCtx as f } from "vue";
|
|
7
7
|
import { QueryClient as p, getTanstackQueryClient as m } from "@wisemen/vue-core-api-utils";
|
package/dist/{invoicingConfig.composable-COn1rKRf.js → invoicingConfig.composable-DjFexycc.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib
|
|
2
|
-
import { ft as t } from "./api.util-
|
|
1
|
+
import { t as e } from "./i18n.lib-CKs3ExEl.js";
|
|
2
|
+
import { ft as t } from "./api.util-D6m6OY3_.js";
|
|
3
3
|
import { useI18n as n } from "vue-i18n";
|
|
4
4
|
import { computed as r, ref as i, shallowRef as a, toValue as o, watch as s } from "vue";
|
|
5
5
|
//#region src/libs/http.lib.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as e, at as t, t as n } from "./api.util-
|
|
1
|
+
import { G as e, at as t, t as n } from "./api.util-D6m6OY3_.js";
|
|
2
2
|
import { p as r } from "./documentTitle.composable-CRJjS6p-.js";
|
|
3
3
|
import { n as i, t as a } from "./address.transformer-jGddczLV.js";
|
|
4
4
|
import { t as o } from "./dist-BFx8U4Su.js";
|
package/dist/libs/i18n.lib.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
60
60
|
"wise_invoicing.billing_document.detail.header.locked_tooltip.title": string;
|
|
61
61
|
"wise_invoicing.billing_document.detail.header.locked_tooltip.description": string;
|
|
62
62
|
"wise_invoicing.api_error.invoice_has_no_lines": string;
|
|
63
|
+
"wise_invoicing.api_error.invoice_line_group_max_depth_exceeded": string;
|
|
63
64
|
"wise_invoicing.api_error.invoice_not_editable": string;
|
|
64
65
|
"wise_invoicing.navigation.invoices": string;
|
|
65
66
|
"wise_invoicing.navigation.customers": string;
|
|
@@ -307,6 +308,19 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
307
308
|
"wise_invoicing.invoice.detail.line_items.delete_dialog.line.unnamed": string;
|
|
308
309
|
"wise_invoicing.invoice.detail.line_items.expand_group": string;
|
|
309
310
|
"wise_invoicing.invoice.detail.line_items.select_group": string;
|
|
311
|
+
"wise_invoicing.invoice.detail.line_items.add_subgroup": string;
|
|
312
|
+
"wise_invoicing.invoice.detail.line_items.collapse_all_groups": string;
|
|
313
|
+
"wise_invoicing.invoice.detail.line_items.expand_all_groups": string;
|
|
314
|
+
"wise_invoicing.invoice.detail.line_items.group_actions": string;
|
|
315
|
+
"wise_invoicing.invoice.detail.line_items.group_subgroup_count": string;
|
|
316
|
+
"wise_invoicing.invoice.detail.line_items.indent_row": string;
|
|
317
|
+
"wise_invoicing.invoice.detail.line_items.max_group_level": string;
|
|
318
|
+
"wise_invoicing.invoice.detail.line_items.move_to_top_level": string;
|
|
319
|
+
"wise_invoicing.invoice.detail.line_items.outdent_row": string;
|
|
320
|
+
"wise_invoicing.invoice.detail.line_items.ungroup": string;
|
|
321
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.delete_with_contents": string;
|
|
322
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.description_with_subgroups": string;
|
|
323
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.keep_contents": string;
|
|
310
324
|
"wise_invoicing.invoice.detail.line_items.unit_placeholder": string;
|
|
311
325
|
"wise_invoicing.invoice.detail.line_items.units.piece": string;
|
|
312
326
|
"wise_invoicing.invoice.detail.line_items.units.hour": string;
|
|
@@ -960,6 +974,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
960
974
|
"wise_invoicing.billing_document.detail.header.locked_tooltip.title": string;
|
|
961
975
|
"wise_invoicing.billing_document.detail.header.locked_tooltip.description": string;
|
|
962
976
|
"wise_invoicing.api_error.invoice_has_no_lines": string;
|
|
977
|
+
"wise_invoicing.api_error.invoice_line_group_max_depth_exceeded": string;
|
|
963
978
|
"wise_invoicing.api_error.invoice_not_editable": string;
|
|
964
979
|
"wise_invoicing.navigation.invoices": string;
|
|
965
980
|
"wise_invoicing.navigation.customers": string;
|
|
@@ -1207,6 +1222,19 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
1207
1222
|
"wise_invoicing.invoice.detail.line_items.delete_dialog.line.unnamed": string;
|
|
1208
1223
|
"wise_invoicing.invoice.detail.line_items.expand_group": string;
|
|
1209
1224
|
"wise_invoicing.invoice.detail.line_items.select_group": string;
|
|
1225
|
+
"wise_invoicing.invoice.detail.line_items.add_subgroup": string;
|
|
1226
|
+
"wise_invoicing.invoice.detail.line_items.collapse_all_groups": string;
|
|
1227
|
+
"wise_invoicing.invoice.detail.line_items.expand_all_groups": string;
|
|
1228
|
+
"wise_invoicing.invoice.detail.line_items.group_actions": string;
|
|
1229
|
+
"wise_invoicing.invoice.detail.line_items.group_subgroup_count": string;
|
|
1230
|
+
"wise_invoicing.invoice.detail.line_items.indent_row": string;
|
|
1231
|
+
"wise_invoicing.invoice.detail.line_items.max_group_level": string;
|
|
1232
|
+
"wise_invoicing.invoice.detail.line_items.move_to_top_level": string;
|
|
1233
|
+
"wise_invoicing.invoice.detail.line_items.outdent_row": string;
|
|
1234
|
+
"wise_invoicing.invoice.detail.line_items.ungroup": string;
|
|
1235
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.delete_with_contents": string;
|
|
1236
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.description_with_subgroups": string;
|
|
1237
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.keep_contents": string;
|
|
1210
1238
|
"wise_invoicing.invoice.detail.line_items.unit_placeholder": string;
|
|
1211
1239
|
"wise_invoicing.invoice.detail.line_items.units.piece": string;
|
|
1212
1240
|
"wise_invoicing.invoice.detail.line_items.units.hour": string;
|
|
@@ -53,6 +53,7 @@ declare const _default: {
|
|
|
53
53
|
"wise_invoicing.billing_document.detail.header.locked_tooltip.title": "This version can no longer be modified.",
|
|
54
54
|
"wise_invoicing.billing_document.detail.header.locked_tooltip.description": "It is set to automatically be delivered on {date}.",
|
|
55
55
|
"wise_invoicing.api_error.invoice_has_no_lines": "Add at least one invoice line before finalizing the invoice.",
|
|
56
|
+
"wise_invoicing.api_error.invoice_line_group_max_depth_exceeded": "Groups can be nested up to 4 levels.",
|
|
56
57
|
"wise_invoicing.api_error.invoice_not_editable": "The invoice cannot be edited in its current state.",
|
|
57
58
|
"wise_invoicing.navigation.invoices": "Invoices & Credits",
|
|
58
59
|
"wise_invoicing.navigation.customers": "Customers",
|
|
@@ -300,6 +301,19 @@ declare const _default: {
|
|
|
300
301
|
"wise_invoicing.invoice.detail.line_items.delete_dialog.line.unnamed": "Unnamed line",
|
|
301
302
|
"wise_invoicing.invoice.detail.line_items.expand_group": "Expand group",
|
|
302
303
|
"wise_invoicing.invoice.detail.line_items.select_group": "Select group",
|
|
304
|
+
"wise_invoicing.invoice.detail.line_items.add_subgroup": "Add subgroup",
|
|
305
|
+
"wise_invoicing.invoice.detail.line_items.collapse_all_groups": "Collapse all groups",
|
|
306
|
+
"wise_invoicing.invoice.detail.line_items.expand_all_groups": "Expand all groups",
|
|
307
|
+
"wise_invoicing.invoice.detail.line_items.group_actions": "Group actions",
|
|
308
|
+
"wise_invoicing.invoice.detail.line_items.group_subgroup_count": "{count} subgroup | {count} subgroups",
|
|
309
|
+
"wise_invoicing.invoice.detail.line_items.indent_row": "Move into group above",
|
|
310
|
+
"wise_invoicing.invoice.detail.line_items.max_group_level": "Groups can be nested up to {max} levels.",
|
|
311
|
+
"wise_invoicing.invoice.detail.line_items.move_to_top_level": "No group",
|
|
312
|
+
"wise_invoicing.invoice.detail.line_items.outdent_row": "Move out of group",
|
|
313
|
+
"wise_invoicing.invoice.detail.line_items.ungroup": "Ungroup",
|
|
314
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.delete_with_contents": "Delete group and contents",
|
|
315
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.description_with_subgroups": "Choose whether to keep the contents of {name} ({contents}) or delete them together with the group.",
|
|
316
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.keep_contents": "Keep contents",
|
|
303
317
|
"wise_invoicing.invoice.detail.line_items.unit_placeholder": "Unit",
|
|
304
318
|
"wise_invoicing.invoice.detail.line_items.units.piece": "Pieces",
|
|
305
319
|
"wise_invoicing.invoice.detail.line_items.units.hour": "Hours",
|
|
@@ -53,6 +53,7 @@ declare const _default: {
|
|
|
53
53
|
"wise_invoicing.billing_document.detail.header.locked_tooltip.title": "Deze versie kan niet meer worden aangepast.",
|
|
54
54
|
"wise_invoicing.billing_document.detail.header.locked_tooltip.description": "Ze wordt automatisch geleverd op {date}.",
|
|
55
55
|
"wise_invoicing.api_error.invoice_has_no_lines": "Voeg minstens één factuurlijn toe voordat u de factuur afrondt.",
|
|
56
|
+
"wise_invoicing.api_error.invoice_line_group_max_depth_exceeded": "Groepen kunnen maximaal 4 niveaus diep genest worden.",
|
|
56
57
|
"wise_invoicing.api_error.invoice_not_editable": "De factuur kan in de huidige status niet worden bewerkt.",
|
|
57
58
|
"wise_invoicing.navigation.invoices": "Facturen & Creditnota's",
|
|
58
59
|
"wise_invoicing.navigation.customers": "Klanten",
|
|
@@ -300,6 +301,19 @@ declare const _default: {
|
|
|
300
301
|
"wise_invoicing.invoice.detail.line_items.delete_dialog.line.unnamed": "Naamloze lijn",
|
|
301
302
|
"wise_invoicing.invoice.detail.line_items.expand_group": "Groep uitklappen",
|
|
302
303
|
"wise_invoicing.invoice.detail.line_items.select_group": "Groep selecteren",
|
|
304
|
+
"wise_invoicing.invoice.detail.line_items.add_subgroup": "Subgroep toevoegen",
|
|
305
|
+
"wise_invoicing.invoice.detail.line_items.collapse_all_groups": "Alle groepen inklappen",
|
|
306
|
+
"wise_invoicing.invoice.detail.line_items.expand_all_groups": "Alle groepen uitklappen",
|
|
307
|
+
"wise_invoicing.invoice.detail.line_items.group_actions": "Groepsacties",
|
|
308
|
+
"wise_invoicing.invoice.detail.line_items.group_subgroup_count": "{count} subgroep | {count} subgroepen",
|
|
309
|
+
"wise_invoicing.invoice.detail.line_items.indent_row": "Naar groep erboven verplaatsen",
|
|
310
|
+
"wise_invoicing.invoice.detail.line_items.max_group_level": "Groepen kunnen maximaal {max} niveaus diep genest worden.",
|
|
311
|
+
"wise_invoicing.invoice.detail.line_items.move_to_top_level": "Geen groep",
|
|
312
|
+
"wise_invoicing.invoice.detail.line_items.outdent_row": "Uit groep halen",
|
|
313
|
+
"wise_invoicing.invoice.detail.line_items.ungroup": "Groep opheffen",
|
|
314
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.delete_with_contents": "Groep en inhoud verwijderen",
|
|
315
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.description_with_subgroups": "Kies of u de inhoud van {name} ({contents}) behoudt of samen met de groep verwijdert.",
|
|
316
|
+
"wise_invoicing.invoice.detail.line_items.delete_dialog.group.keep_contents": "Inhoud behouden",
|
|
303
317
|
"wise_invoicing.invoice.detail.line_items.unit_placeholder": "Eenheid",
|
|
304
318
|
"wise_invoicing.invoice.detail.line_items.units.piece": "Stuks",
|
|
305
319
|
"wise_invoicing.invoice.detail.line_items.units.hour": "Uren",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shape shared by every nested line group — API responses, detail models and
|
|
3
|
+
* update payloads alike — so one walker serves them all.
|
|
4
|
+
*/
|
|
5
|
+
export interface BillingDocumentLineGroupTree<TLine> {
|
|
6
|
+
groups: BillingDocumentLineGroupTree<TLine>[];
|
|
7
|
+
lines: TLine[];
|
|
8
|
+
}
|
|
9
|
+
export declare class BillingDocumentLineGroupUtil {
|
|
10
|
+
/**
|
|
11
|
+
* Every line inside the groups, at any depth. Order is depth-first and not
|
|
12
|
+
* meaningful across levels; callers that need an order sort the result.
|
|
13
|
+
*/
|
|
14
|
+
static flattenLines<TLine>(groups: readonly BillingDocumentLineGroupTree<TLine>[]): TLine[];
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,12 +4,15 @@ export type InvoicePdfHeaderType = 'continuation' | 'first';
|
|
|
4
4
|
export interface InvoicePdfGroupRow {
|
|
5
5
|
uuid: string;
|
|
6
6
|
name: string;
|
|
7
|
+
/** How many groups the group sits in: 0 at the top level. */
|
|
8
|
+
depth: number;
|
|
7
9
|
description: string | null;
|
|
8
10
|
total: Monetary | null;
|
|
9
11
|
type: 'group';
|
|
10
12
|
}
|
|
11
13
|
export interface InvoicePdfLineRow {
|
|
12
|
-
|
|
14
|
+
/** How many groups the line sits in: 0 when ungrouped. */
|
|
15
|
+
depth: number;
|
|
13
16
|
line: InvoicePdfLine;
|
|
14
17
|
type: 'line';
|
|
15
18
|
}
|
|
@@ -4,6 +4,11 @@ import { InvoicePdfGroup, InvoicePdfLine } from '../../../models/invoice/pdf/inv
|
|
|
4
4
|
import { InvoicePdfRow } from '../components/invoicePdf.types.ts';
|
|
5
5
|
import { Monetary } from '../../../../../utils/monetary/monetary.model.ts';
|
|
6
6
|
export declare class InvoicePdfUtil {
|
|
7
|
+
/**
|
|
8
|
+
* Emits one level of the line tree in position order: lines and subgroups
|
|
9
|
+
* share the positions of their level, so they interleave.
|
|
10
|
+
*/
|
|
11
|
+
private static appendRows;
|
|
7
12
|
/**
|
|
8
13
|
* Prevents a group header row from being the last row on a page, which would
|
|
9
14
|
* orphan it from its line items on the following page. Trailing group headers
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-D6m6OY3_.js";
|
|
2
2
|
import { c as l, h as u, m as d, w as f } from "./documentTitle.composable-CRJjS6p-.js";
|
|
3
3
|
import { n as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { n as h, r as g, t as _ } from "./plainDate.transformer-Bhiz9jW7.js";
|