@tesouro/embedded-components-react 0.11.235 → 0.11.236
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/README.md +2 -2
- package/dist/index.css +12 -0
- package/dist/index.d.ts +24 -0
- package/dist/lib/ReceivablesWidget.d.ts +24 -0
- package/dist/lib/WidgetSuite.d.ts +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +198 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +76 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +459 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +101 -449
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +9 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +85 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +246 -71
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +40 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +237 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +21 -244
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +529 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +4 -530
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +242 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +3 -245
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index50.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index51.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +386 -354
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +260 -258
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +219 -179
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +31 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +40 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +30 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +463 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +15 -66
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +66 -391
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +148 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +173 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +3 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +37 -432
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +66 -188
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +455 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +191 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +5 -265
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +261 -125
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +2 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +122 -230
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +216 -224
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +3 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +228 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +152 -109
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +140 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index65.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/document-preview.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +122 -0
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index52.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +0 -2
|
@@ -1,2 +1,148 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./
|
|
1
|
+
import { Accordion as e, AccordionContent as t, AccordionItem as n, Button as r, FormSheet as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_DETAILS_PANEL_LABELS_EN as a } from "./index19.js";
|
|
3
|
+
import { RECEIVABLE_DETAILS_SECTION as o } from "./index38.js";
|
|
4
|
+
import { sectionItemClass as s } from "./index34.js";
|
|
5
|
+
import { BillingContent as c, CustomerContent as l, DetailsSection as u, DetailsSkeleton as d, HeaderActions as f, HeaderIconTooltip as p, LineItemTotals as m, LineItemsList as h, NotesContent as g, PaymentHistoryContent as _, SummaryActions as v, SummaryCard as y, hasCustomerContent as b } from "./index36.js";
|
|
6
|
+
import { SectionTrigger as x } from "./index37.js";
|
|
7
|
+
import { AttachmentsItem as S } from "./index39.js";
|
|
8
|
+
import { AuditHistoryItem as C } from "./index40.js";
|
|
9
|
+
import { DetailsMessage as w } from "./index41.js";
|
|
10
|
+
import { ScheduledInvoicesTable as T } from "./index42.js";
|
|
11
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
12
|
+
import { ChevronLeft as O, MoveDiagonal2Icon as k } from "lucide-react";
|
|
13
|
+
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js
|
|
14
|
+
function A({ open: A, onOpenChange: j, details: M, message: N, isLoading: P, onActionClick: F, openSections: I, onOpenSectionsChange: L, disabledActions: R, onExpand: z, labels: B }) {
|
|
15
|
+
let V = {
|
|
16
|
+
...a,
|
|
17
|
+
...B
|
|
18
|
+
}, H = M?.panel, U = !P && !N && !!(M && H), W = H?.recurringSeries, G = z ? /* @__PURE__ */ E(p, {
|
|
19
|
+
label: V.expandButton,
|
|
20
|
+
children: /* @__PURE__ */ E(r, {
|
|
21
|
+
type: "button",
|
|
22
|
+
variant: "ghost",
|
|
23
|
+
size: "icon",
|
|
24
|
+
"aria-label": V.expandButton,
|
|
25
|
+
onClick: z,
|
|
26
|
+
children: /* @__PURE__ */ E(k, { className: "ttw:size-4" })
|
|
27
|
+
})
|
|
28
|
+
}) : null, K = U && M && H ? /* @__PURE__ */ E(f, {
|
|
29
|
+
details: M,
|
|
30
|
+
panel: H,
|
|
31
|
+
onActionClick: F,
|
|
32
|
+
disabledActions: R,
|
|
33
|
+
labels: V,
|
|
34
|
+
showPdfLink: !0,
|
|
35
|
+
leading: G
|
|
36
|
+
}) : void 0, q = U && M ? M.title : /* @__PURE__ */ E("span", {
|
|
37
|
+
className: "ttw:sr-only",
|
|
38
|
+
children: N && !P ? N.title : V.loadingTitle
|
|
39
|
+
});
|
|
40
|
+
return /* @__PURE__ */ E(i, {
|
|
41
|
+
open: A,
|
|
42
|
+
onOpenChange: j,
|
|
43
|
+
title: q,
|
|
44
|
+
description: U ? H?.subtitle ?? H?.hiddenDescription : void 0,
|
|
45
|
+
descriptionHidden: U && !H?.subtitle && !!H?.hiddenDescription,
|
|
46
|
+
headerActions: K,
|
|
47
|
+
labels: { close: V.closeButton },
|
|
48
|
+
children: N && !P ? /* @__PURE__ */ E(w, { ...N }) : !U || !M || !H ? /* @__PURE__ */ E(d, { label: V.loadingTitle }) : /* @__PURE__ */ D("div", {
|
|
49
|
+
className: "ttw:flex ttw:flex-col ttw:pb-4",
|
|
50
|
+
children: [
|
|
51
|
+
H.seriesLink ? /* @__PURE__ */ D(r, {
|
|
52
|
+
type: "button",
|
|
53
|
+
variant: "link",
|
|
54
|
+
className: "ttw:mb-3 ttw:self-start ttw:px-0",
|
|
55
|
+
onClick: H.seriesLink.onOpen,
|
|
56
|
+
children: [/* @__PURE__ */ E(O, {
|
|
57
|
+
className: "ttw:size-4",
|
|
58
|
+
"aria-hidden": "true"
|
|
59
|
+
}), H.seriesLink.backLabel]
|
|
60
|
+
}) : null,
|
|
61
|
+
/* @__PURE__ */ E(y, {
|
|
62
|
+
panel: H,
|
|
63
|
+
labels: V,
|
|
64
|
+
actions: /* @__PURE__ */ E(v, {
|
|
65
|
+
details: M,
|
|
66
|
+
panel: H,
|
|
67
|
+
onActionClick: F,
|
|
68
|
+
disabledActions: R,
|
|
69
|
+
labels: V
|
|
70
|
+
})
|
|
71
|
+
}),
|
|
72
|
+
H.paymentHistory ? /* @__PURE__ */ E(u, {
|
|
73
|
+
layout: "sheet",
|
|
74
|
+
heading: V.paymentHistoryHeading,
|
|
75
|
+
divided: !0,
|
|
76
|
+
children: /* @__PURE__ */ E(_, {
|
|
77
|
+
paymentHistory: H.paymentHistory,
|
|
78
|
+
labels: V
|
|
79
|
+
})
|
|
80
|
+
}) : null,
|
|
81
|
+
b(H) ? /* @__PURE__ */ E(u, {
|
|
82
|
+
layout: "sheet",
|
|
83
|
+
heading: V.customerDetailsHeading,
|
|
84
|
+
divided: !0,
|
|
85
|
+
children: /* @__PURE__ */ E(l, { panel: H })
|
|
86
|
+
}) : null,
|
|
87
|
+
/* @__PURE__ */ D(e, {
|
|
88
|
+
type: "multiple",
|
|
89
|
+
value: I,
|
|
90
|
+
onValueChange: L,
|
|
91
|
+
className: "ttw:w-full",
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ D(n, {
|
|
94
|
+
value: o.billing,
|
|
95
|
+
className: s,
|
|
96
|
+
children: [/* @__PURE__ */ E(x, { heading: V.billingHeading }), /* @__PURE__ */ E(t, { children: /* @__PURE__ */ E(c, {
|
|
97
|
+
panel: H,
|
|
98
|
+
labels: V
|
|
99
|
+
}) })]
|
|
100
|
+
}),
|
|
101
|
+
H.lineItemsSection ? /* @__PURE__ */ D(n, {
|
|
102
|
+
value: o.lineItems,
|
|
103
|
+
className: s,
|
|
104
|
+
children: [/* @__PURE__ */ E(x, {
|
|
105
|
+
heading: V.lineItemsHeading,
|
|
106
|
+
countLabel: H.lineItemsSection.countLabel
|
|
107
|
+
}), /* @__PURE__ */ E(t, { children: /* @__PURE__ */ D("div", {
|
|
108
|
+
className: "ttw:flex ttw:flex-col",
|
|
109
|
+
children: [/* @__PURE__ */ E(h, {
|
|
110
|
+
details: M,
|
|
111
|
+
labels: V
|
|
112
|
+
}), /* @__PURE__ */ E(m, { totals: H.lineItemsSection.totals })]
|
|
113
|
+
}) })]
|
|
114
|
+
}) : null,
|
|
115
|
+
H.notes ? /* @__PURE__ */ D(n, {
|
|
116
|
+
value: o.notes,
|
|
117
|
+
className: s,
|
|
118
|
+
children: [/* @__PURE__ */ E(x, {
|
|
119
|
+
heading: V.notesHeading,
|
|
120
|
+
countLabel: H.notes.countLabel
|
|
121
|
+
}), /* @__PURE__ */ E(t, { children: /* @__PURE__ */ E(g, {
|
|
122
|
+
notes: H.notes,
|
|
123
|
+
labels: V
|
|
124
|
+
}) })]
|
|
125
|
+
}) : null,
|
|
126
|
+
/* @__PURE__ */ E(S, {
|
|
127
|
+
attachments: H.attachments,
|
|
128
|
+
labels: V
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ E(C, {
|
|
131
|
+
auditHistory: H.auditHistory,
|
|
132
|
+
labels: V
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
}),
|
|
136
|
+
W ? /* @__PURE__ */ E(u, {
|
|
137
|
+
layout: "sheet",
|
|
138
|
+
heading: W.scheduleTitle,
|
|
139
|
+
children: /* @__PURE__ */ E(T, {
|
|
140
|
+
rows: W.schedule,
|
|
141
|
+
labels: V
|
|
142
|
+
})
|
|
143
|
+
}) : null
|
|
144
|
+
]
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
export { A as ReceivableDetailsPanel, A as default };
|
|
@@ -1,47 +1,177 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Button as e, FullPageModal as t, TooltipProvider as n, Typography as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_DETAILS_PANEL_LABELS_EN as i } from "./index19.js";
|
|
3
|
+
import "./index34.js";
|
|
4
|
+
import { AttachmentsContent as a, AuditHistoryContent as o, BillingContent as s, CustomerContent as c, DetailsSection as l, DetailsSkeleton as u, HeaderActions as d, HeaderIconTooltip as f, LineItemTotals as p, LineItemsTable as m, NotesContent as h, PaymentHistoryContent as g, SummaryActions as _, SummaryCard as v, hasCustomerContent as y } from "./index36.js";
|
|
5
|
+
import { DetailsMessage as b } from "./index41.js";
|
|
6
|
+
import { ScheduledInvoicesTable as x } from "./index42.js";
|
|
7
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
8
|
+
import { ChevronLeft as w, Download as T, Minimize2 as E } from "lucide-react";
|
|
3
9
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
10
|
+
function D({ open: D, onOpenChange: O, details: k, message: A, isLoading: j, onActionClick: M, disabledActions: N, documentPreview: P, onCollapse: F, labels: I }) {
|
|
11
|
+
let L = {
|
|
12
|
+
...i,
|
|
13
|
+
...I
|
|
14
|
+
}, R = k?.panel, z = !j && !A && !!(k && R), B = R?.recurringSeries, V = F ? /* @__PURE__ */ S(f, {
|
|
15
|
+
label: L.collapseButton,
|
|
16
|
+
children: /* @__PURE__ */ S(e, {
|
|
17
|
+
type: "button",
|
|
18
|
+
variant: "ghost",
|
|
19
|
+
size: "icon",
|
|
20
|
+
"aria-label": L.collapseButton,
|
|
21
|
+
onClick: F,
|
|
22
|
+
children: /* @__PURE__ */ S(E, { className: "ttw:size-4 ttw:rotate-90" })
|
|
23
|
+
})
|
|
24
|
+
}) : null, H = z && k ? k.title : /* @__PURE__ */ S("span", {
|
|
25
|
+
className: "ttw:sr-only",
|
|
26
|
+
children: A && !j ? A.title : L.loadingTitle
|
|
27
|
+
}), U = z ? R?.subtitle ? R.subtitle : R?.hiddenDescription ? /* @__PURE__ */ S("span", {
|
|
28
|
+
className: "ttw:sr-only",
|
|
29
|
+
children: R.hiddenDescription
|
|
30
|
+
}) : void 0 : void 0, W = z ? /* @__PURE__ */ C("div", {
|
|
31
|
+
role: "region",
|
|
32
|
+
"aria-label": L.documentPaneRegion,
|
|
33
|
+
className: "ttw:flex ttw:h-full ttw:flex-col ttw:gap-3",
|
|
34
|
+
children: [k?.pdfUrl ? /* @__PURE__ */ S("div", {
|
|
35
|
+
className: "ttw:flex ttw:justify-end",
|
|
36
|
+
children: /* @__PURE__ */ S(e, {
|
|
37
|
+
asChild: !0,
|
|
38
|
+
variant: "ghost",
|
|
39
|
+
size: "sm",
|
|
40
|
+
children: /* @__PURE__ */ C("a", {
|
|
41
|
+
href: k.pdfUrl,
|
|
42
|
+
download: !0,
|
|
43
|
+
target: "_blank",
|
|
44
|
+
rel: "noreferrer",
|
|
45
|
+
children: [/* @__PURE__ */ S(T, {
|
|
46
|
+
className: "ttw:size-4",
|
|
47
|
+
"aria-hidden": "true"
|
|
48
|
+
}), L.downloadPdfButton]
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
}) : null, P ? /* @__PURE__ */ S("div", {
|
|
52
|
+
className: "ttw:h-[70vh] ttw:min-h-0 ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:lg:h-auto ttw:lg:flex-1",
|
|
53
|
+
children: P
|
|
54
|
+
}) : /* @__PURE__ */ S("div", {
|
|
55
|
+
className: "ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center ttw:rounded-lg ttw:border ttw:border-dashed ttw:border-border ttw:p-6 ttw:text-center",
|
|
56
|
+
children: /* @__PURE__ */ S(r, {
|
|
57
|
+
variant: "body2",
|
|
58
|
+
color: "muted",
|
|
59
|
+
children: L.pdfUnavailable
|
|
43
60
|
})
|
|
44
|
-
]
|
|
61
|
+
})]
|
|
62
|
+
}) : void 0;
|
|
63
|
+
return /* @__PURE__ */ S(t, {
|
|
64
|
+
open: D,
|
|
65
|
+
onOpenChange: O,
|
|
66
|
+
title: H,
|
|
67
|
+
description: U,
|
|
68
|
+
headerActions: z && k && R ? /* @__PURE__ */ S(d, {
|
|
69
|
+
details: k,
|
|
70
|
+
panel: R,
|
|
71
|
+
onActionClick: M,
|
|
72
|
+
disabledActions: N,
|
|
73
|
+
labels: L,
|
|
74
|
+
showPdfLink: !1,
|
|
75
|
+
leading: V
|
|
76
|
+
}) : V ? /* @__PURE__ */ S(n, {
|
|
77
|
+
delayDuration: 500,
|
|
78
|
+
children: V
|
|
79
|
+
}) : null,
|
|
80
|
+
preview: W,
|
|
81
|
+
labels: { close: L.closeButton },
|
|
82
|
+
children: A && !j ? /* @__PURE__ */ S(b, { ...A }) : !z || !k || !R ? /* @__PURE__ */ S(u, { label: L.loadingTitle }) : /* @__PURE__ */ C("div", {
|
|
83
|
+
className: "ttw:flex ttw:flex-col ttw:gap-8",
|
|
84
|
+
children: [
|
|
85
|
+
R.seriesLink ? /* @__PURE__ */ C(e, {
|
|
86
|
+
type: "button",
|
|
87
|
+
variant: "link",
|
|
88
|
+
className: "ttw:-mb-4 ttw:self-start ttw:px-0",
|
|
89
|
+
onClick: R.seriesLink.onOpen,
|
|
90
|
+
children: [/* @__PURE__ */ S(w, {
|
|
91
|
+
className: "ttw:size-4",
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}), R.seriesLink.backLabel]
|
|
94
|
+
}) : null,
|
|
95
|
+
/* @__PURE__ */ S(v, {
|
|
96
|
+
panel: R,
|
|
97
|
+
labels: L,
|
|
98
|
+
actions: /* @__PURE__ */ S(_, {
|
|
99
|
+
details: k,
|
|
100
|
+
panel: R,
|
|
101
|
+
onActionClick: M,
|
|
102
|
+
disabledActions: N,
|
|
103
|
+
labels: L
|
|
104
|
+
})
|
|
105
|
+
}),
|
|
106
|
+
y(R) ? /* @__PURE__ */ S(l, {
|
|
107
|
+
layout: "screen",
|
|
108
|
+
heading: L.customerDetailsHeading,
|
|
109
|
+
children: /* @__PURE__ */ S(c, { panel: R })
|
|
110
|
+
}) : null,
|
|
111
|
+
/* @__PURE__ */ S(l, {
|
|
112
|
+
layout: "screen",
|
|
113
|
+
heading: L.billingHeading,
|
|
114
|
+
children: /* @__PURE__ */ S(s, {
|
|
115
|
+
panel: R,
|
|
116
|
+
labels: L
|
|
117
|
+
})
|
|
118
|
+
}),
|
|
119
|
+
R.lineItemsSection ? /* @__PURE__ */ S(l, {
|
|
120
|
+
layout: "screen",
|
|
121
|
+
heading: L.lineItemsHeading,
|
|
122
|
+
countLabel: R.lineItemsSection.countLabel,
|
|
123
|
+
children: /* @__PURE__ */ C("div", {
|
|
124
|
+
className: "ttw:flex ttw:flex-col",
|
|
125
|
+
children: [/* @__PURE__ */ S(m, {
|
|
126
|
+
details: k,
|
|
127
|
+
labels: L
|
|
128
|
+
}), /* @__PURE__ */ S(p, { totals: R.lineItemsSection.totals })]
|
|
129
|
+
})
|
|
130
|
+
}) : null,
|
|
131
|
+
R.notes ? /* @__PURE__ */ S(l, {
|
|
132
|
+
layout: "screen",
|
|
133
|
+
heading: L.notesHeading,
|
|
134
|
+
children: /* @__PURE__ */ S(h, {
|
|
135
|
+
notes: R.notes,
|
|
136
|
+
labels: L
|
|
137
|
+
})
|
|
138
|
+
}) : null,
|
|
139
|
+
/* @__PURE__ */ S(l, {
|
|
140
|
+
layout: "screen",
|
|
141
|
+
heading: L.attachmentsHeading,
|
|
142
|
+
countLabel: R.attachments.countLabel,
|
|
143
|
+
children: /* @__PURE__ */ S(a, {
|
|
144
|
+
attachments: R.attachments,
|
|
145
|
+
labels: L
|
|
146
|
+
})
|
|
147
|
+
}),
|
|
148
|
+
B ? /* @__PURE__ */ S(l, {
|
|
149
|
+
layout: "screen",
|
|
150
|
+
heading: B.scheduleTitle,
|
|
151
|
+
children: /* @__PURE__ */ S(x, {
|
|
152
|
+
rows: B.schedule,
|
|
153
|
+
labels: L
|
|
154
|
+
})
|
|
155
|
+
}) : null,
|
|
156
|
+
R.paymentHistory ? /* @__PURE__ */ S(l, {
|
|
157
|
+
layout: "screen",
|
|
158
|
+
heading: L.paymentHistoryHeading,
|
|
159
|
+
children: /* @__PURE__ */ S(g, {
|
|
160
|
+
paymentHistory: R.paymentHistory,
|
|
161
|
+
labels: L
|
|
162
|
+
})
|
|
163
|
+
}) : null,
|
|
164
|
+
/* @__PURE__ */ S(l, {
|
|
165
|
+
layout: "screen",
|
|
166
|
+
heading: L.auditHistoryHeading,
|
|
167
|
+
countLabel: R.auditHistory.countLabel,
|
|
168
|
+
children: /* @__PURE__ */ S(o, {
|
|
169
|
+
auditHistory: R.auditHistory,
|
|
170
|
+
labels: L
|
|
171
|
+
})
|
|
172
|
+
})
|
|
173
|
+
]
|
|
174
|
+
})
|
|
45
175
|
});
|
|
46
176
|
}
|
|
47
|
-
export {
|
|
177
|
+
export { D as ReceivableDetailsScreen, D as default };
|
|
@@ -1,71 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
function l({ id: l, value: u, error: d, disabled: f, label: p, optionalSuffix: m, placeholder: h, description: g, onChange: _ }) {
|
|
5
|
-
return /* @__PURE__ */ s(e, { children: /* @__PURE__ */ c(t, { children: [
|
|
6
|
-
/* @__PURE__ */ c(i, {
|
|
7
|
-
htmlFor: l,
|
|
8
|
-
className: "ttw:text-nowrap",
|
|
9
|
-
children: [p, /* @__PURE__ */ s(o, {
|
|
10
|
-
variant: "body2",
|
|
11
|
-
component: "span",
|
|
12
|
-
color: "muted",
|
|
13
|
-
className: "ttw:leading-snug",
|
|
14
|
-
children: m
|
|
15
|
-
})]
|
|
16
|
-
}),
|
|
17
|
-
/* @__PURE__ */ s(a, {
|
|
18
|
-
id: l,
|
|
19
|
-
value: u,
|
|
20
|
-
disabled: f,
|
|
21
|
-
placeholder: h,
|
|
22
|
-
className: "ttw:h-26 ttw:resize-none",
|
|
23
|
-
"aria-invalid": !!d,
|
|
24
|
-
onChange: (e) => _(e.target.value)
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ s(n, { children: g }),
|
|
27
|
-
/* @__PURE__ */ s(r, { errors: d ? [{ message: d }] : [] })
|
|
28
|
-
] }) });
|
|
29
|
-
}
|
|
30
|
-
function u({ idPrefix: e, openingNote: t, closingNote: n, openingNoteError: r, closingNoteError: i, disabled: a, onOpeningNoteChange: u, onClosingNoteChange: d, labels: f }) {
|
|
31
|
-
return /* @__PURE__ */ c("div", {
|
|
32
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
|
|
33
|
-
children: [
|
|
34
|
-
/* @__PURE__ */ c("div", {
|
|
35
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
|
|
36
|
-
children: [/* @__PURE__ */ s(o, {
|
|
37
|
-
variant: "h4",
|
|
38
|
-
children: f.notesHeading
|
|
39
|
-
}), /* @__PURE__ */ s(o, {
|
|
40
|
-
variant: "body2",
|
|
41
|
-
color: "muted",
|
|
42
|
-
className: "ttw:font-medium",
|
|
43
|
-
children: f.notesDescription
|
|
44
|
-
})]
|
|
45
|
-
}),
|
|
46
|
-
/* @__PURE__ */ s(l, {
|
|
47
|
-
id: `${e}-opening-note`,
|
|
48
|
-
value: t,
|
|
49
|
-
error: r,
|
|
50
|
-
disabled: a,
|
|
51
|
-
label: f.openingNoteLabel,
|
|
52
|
-
optionalSuffix: f.optionalSuffix,
|
|
53
|
-
placeholder: f.openingNotePlaceholder,
|
|
54
|
-
description: f.openingNoteDescription,
|
|
55
|
-
onChange: u
|
|
56
|
-
}),
|
|
57
|
-
/* @__PURE__ */ s(l, {
|
|
58
|
-
id: `${e}-closing-note`,
|
|
59
|
-
value: n,
|
|
60
|
-
error: i,
|
|
61
|
-
disabled: a,
|
|
62
|
-
label: f.closingNoteLabel,
|
|
63
|
-
optionalSuffix: f.optionalSuffix,
|
|
64
|
-
placeholder: f.closingNotePlaceholder,
|
|
65
|
-
description: f.closingNoteDescription,
|
|
66
|
-
onChange: d
|
|
67
|
-
})
|
|
68
|
-
]
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
export { u as ReceivableNotesSection };
|
|
1
|
+
import "./index38.js";
|
|
2
|
+
import "./index43.js";
|
|
3
|
+
import "./index44.js";
|