@tesouro/embedded-components-react 0.11.234 → 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 +53 -2
- package/dist/index.css +30 -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/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +4584 -4551
- 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,70 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { jsx as
|
|
1
|
+
import { EmptyState as e } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
2
|
+
import "../../../shared/ui/dist/index.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { SearchX as n } from "lucide-react";
|
|
4
5
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
className: "ttw:w-full",
|
|
13
|
-
children: [/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ a("tr", { children: [
|
|
14
|
-
/* @__PURE__ */ i("th", {
|
|
15
|
-
scope: "col",
|
|
16
|
-
className: n(o, "ttw:pl-0"),
|
|
17
|
-
children: l.scheduleIssueDateColumn
|
|
6
|
+
function r({ title: r, description: i }) {
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
className: "ttw:flex ttw:min-h-full ttw:items-center ttw:justify-center",
|
|
9
|
+
children: /* @__PURE__ */ t(e, {
|
|
10
|
+
icon: /* @__PURE__ */ t(n, {
|
|
11
|
+
className: "ttw:size-5",
|
|
12
|
+
"aria-hidden": "true"
|
|
18
13
|
}),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
children: l.scheduleAmountColumn
|
|
23
|
-
}),
|
|
24
|
-
/* @__PURE__ */ i("th", {
|
|
25
|
-
scope: "col",
|
|
26
|
-
className: o,
|
|
27
|
-
children: l.scheduleStatusColumn
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ i("th", {
|
|
30
|
-
scope: "col",
|
|
31
|
-
className: o,
|
|
32
|
-
children: l.scheduleNumberColumn
|
|
33
|
-
})
|
|
34
|
-
] }) }), /* @__PURE__ */ i("tbody", { children: c.map((t) => {
|
|
35
|
-
let { onOpen: o } = t;
|
|
36
|
-
return /* @__PURE__ */ a("tr", {
|
|
37
|
-
className: "ttw:border-t ttw:border-border",
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ i("td", {
|
|
40
|
-
className: n(s, "ttw:pl-0"),
|
|
41
|
-
children: t.issueDateLabel
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ i("td", {
|
|
44
|
-
className: s,
|
|
45
|
-
children: t.amountLabel
|
|
46
|
-
}),
|
|
47
|
-
/* @__PURE__ */ i("td", {
|
|
48
|
-
className: "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left",
|
|
49
|
-
children: /* @__PURE__ */ i(r, {
|
|
50
|
-
label: t.chip.label,
|
|
51
|
-
color: t.chip.color
|
|
52
|
-
})
|
|
53
|
-
}),
|
|
54
|
-
/* @__PURE__ */ i("td", {
|
|
55
|
-
className: s,
|
|
56
|
-
children: o ? /* @__PURE__ */ i(e, {
|
|
57
|
-
type: "button",
|
|
58
|
-
variant: "link",
|
|
59
|
-
className: "ttw:h-auto ttw:px-0",
|
|
60
|
-
"aria-label": t.openLabel,
|
|
61
|
-
onClick: o,
|
|
62
|
-
children: t.numberLabel
|
|
63
|
-
}) : t.numberLabel
|
|
64
|
-
})
|
|
65
|
-
]
|
|
66
|
-
}, t.id);
|
|
67
|
-
}) })]
|
|
14
|
+
title: r,
|
|
15
|
+
description: i
|
|
16
|
+
})
|
|
68
17
|
});
|
|
69
18
|
}
|
|
70
|
-
export {
|
|
19
|
+
export { r as DetailsMessage };
|
|
@@ -1,395 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import { RECEIVABLE_DETAILS_PANEL_LABELS_EN as m } from "./index19.js";
|
|
5
|
-
import { StatusBadge as h } from "./index30.js";
|
|
6
|
-
import { RECEIVABLE_DETAILS_SECTION as g } from "./index34.js";
|
|
7
|
-
import { AmountCell as _ } from "./index31.js";
|
|
8
|
-
import { ACTION_LABEL_KEY as v, preventTooltipFocusOpen as y, sectionItemClass as b } from "./index32.js";
|
|
9
|
-
import { SectionTrigger as x } from "./index33.js";
|
|
10
|
-
import { AttachmentsItem as S } from "./index35.js";
|
|
11
|
-
import { AuditHistoryItem as C } from "./index36.js";
|
|
12
|
-
import { CustomerNameRow as w } from "./index37.js";
|
|
13
|
-
import { DetailsMessage as T } from "./index38.js";
|
|
14
|
-
import { InfoRow as E } from "./index39.js";
|
|
15
|
-
import { OverflowMenu as D } from "./index40.js";
|
|
16
|
-
import { ScheduledInvoicesTable as O } from "./index41.js";
|
|
17
|
-
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
18
|
-
import { ChevronLeft as j, EyeIcon as M } from "lucide-react";
|
|
1
|
+
import { Button as e, Typography as t, cn as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { StatusBadge as r } from "./index30.js";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
19
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
disabled: U?.includes(e),
|
|
68
|
-
onClick: () => B(e, L),
|
|
69
|
-
children: J(e)
|
|
70
|
-
}, e)),
|
|
71
|
-
L.pdfUrl ? /* @__PURE__ */ A(s, { children: [/* @__PURE__ */ k(u, {
|
|
72
|
-
asChild: !0,
|
|
73
|
-
onFocus: y,
|
|
74
|
-
children: /* @__PURE__ */ k(i, {
|
|
75
|
-
asChild: !0,
|
|
76
|
-
variant: "ghost",
|
|
77
|
-
size: "icon",
|
|
78
|
-
children: /* @__PURE__ */ k("a", {
|
|
79
|
-
href: L.pdfUrl,
|
|
80
|
-
target: "_blank",
|
|
81
|
-
rel: "noreferrer",
|
|
82
|
-
"aria-label": G.viewPdfButton,
|
|
83
|
-
children: /* @__PURE__ */ k(M, { className: "ttw:size-4" })
|
|
84
|
-
})
|
|
85
|
-
})
|
|
86
|
-
}), /* @__PURE__ */ k(c, { children: G.viewPdfButton })] }) : null,
|
|
87
|
-
K.overflowActions.length > 0 ? /* @__PURE__ */ k(D, {
|
|
88
|
-
actions: K.overflowActions,
|
|
89
|
-
triggerLabel: G.moreActionsLabel,
|
|
90
|
-
getActionLabel: J,
|
|
91
|
-
onSelect: (e) => B(e, L),
|
|
92
|
-
disabledActions: U
|
|
93
|
-
}) : null
|
|
94
|
-
]
|
|
95
|
-
}) : void 0, re = q && L ? L.title : /* @__PURE__ */ k("span", {
|
|
96
|
-
className: "ttw:sr-only",
|
|
97
|
-
children: R && !z ? R.title : G.loadingTitle
|
|
98
|
-
});
|
|
99
|
-
return /* @__PURE__ */ k(ee, {
|
|
100
|
-
open: F,
|
|
101
|
-
onOpenChange: I,
|
|
102
|
-
title: re,
|
|
103
|
-
description: q ? K?.subtitle ?? K?.hiddenDescription : void 0,
|
|
104
|
-
descriptionHidden: q && !K?.subtitle && !!K?.hiddenDescription,
|
|
105
|
-
headerActions: ne,
|
|
106
|
-
labels: { close: G.closeButton },
|
|
107
|
-
children: R && !z ? /* @__PURE__ */ k(T, { ...R }) : !q || !L || !K ? /* @__PURE__ */ k(P, { label: G.loadingTitle }) : /* @__PURE__ */ A("div", {
|
|
108
|
-
className: "ttw:flex ttw:flex-col ttw:pb-4",
|
|
109
|
-
children: [
|
|
110
|
-
K.seriesLink ? /* @__PURE__ */ A(i, {
|
|
111
|
-
type: "button",
|
|
112
|
-
variant: "link",
|
|
113
|
-
className: "ttw:mb-3 ttw:self-start ttw:px-0",
|
|
114
|
-
onClick: K.seriesLink.onOpen,
|
|
115
|
-
children: [/* @__PURE__ */ k(j, {
|
|
116
|
-
className: "ttw:size-4",
|
|
117
|
-
"aria-hidden": "true"
|
|
118
|
-
}), K.seriesLink.backLabel]
|
|
119
|
-
}) : null,
|
|
120
|
-
Y ? /* @__PURE__ */ A("div", {
|
|
121
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ A("div", {
|
|
124
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
125
|
-
children: [/* @__PURE__ */ k(d, {
|
|
126
|
-
variant: "caption",
|
|
127
|
-
color: "muted",
|
|
128
|
-
children: G.recurringAmountCaption
|
|
129
|
-
}), /* @__PURE__ */ A("div", {
|
|
130
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-baseline ttw:gap-x-1.5",
|
|
131
|
-
children: [/* @__PURE__ */ k(a, {
|
|
132
|
-
component: "span",
|
|
133
|
-
children: Y.amountLabel
|
|
134
|
-
}), /* @__PURE__ */ k(d, {
|
|
135
|
-
component: "span",
|
|
136
|
-
variant: "body2",
|
|
137
|
-
color: "muted",
|
|
138
|
-
children: Y.amountPeriodLabel
|
|
139
|
-
})]
|
|
140
|
-
})]
|
|
141
|
-
}),
|
|
142
|
-
/* @__PURE__ */ A("div", {
|
|
143
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
144
|
-
children: [/* @__PURE__ */ k(r, {
|
|
145
|
-
tone: "neutral",
|
|
146
|
-
children: G.recurringBadge
|
|
147
|
-
}), /* @__PURE__ */ k(h, {
|
|
148
|
-
label: Y.statusLabel,
|
|
149
|
-
color: Y.statusColor
|
|
150
|
-
})]
|
|
151
|
-
}),
|
|
152
|
-
/* @__PURE__ */ A("div", {
|
|
153
|
-
className: "ttw:flex ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2",
|
|
154
|
-
children: [/* @__PURE__ */ k(N, {
|
|
155
|
-
caption: G.startsOnCaption,
|
|
156
|
-
value: Y.startsOnLabel
|
|
157
|
-
}), /* @__PURE__ */ k(N, {
|
|
158
|
-
caption: G.endsOnCaption,
|
|
159
|
-
value: Y.endsOnLabel
|
|
160
|
-
})]
|
|
5
|
+
var o = "ttw:h-10 ttw:px-2 ttw:text-left ttw:text-sm ttw:font-medium ttw:leading-5", s = "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left ttw:text-sm ttw:font-normal ttw:leading-5";
|
|
6
|
+
function c({ rows: c, labels: l }) {
|
|
7
|
+
return c.length === 0 ? /* @__PURE__ */ i(t, {
|
|
8
|
+
variant: "body2",
|
|
9
|
+
color: "muted",
|
|
10
|
+
children: l.scheduleEmpty
|
|
11
|
+
}) : /* @__PURE__ */ a("table", {
|
|
12
|
+
className: "ttw:w-full",
|
|
13
|
+
children: [/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ a("tr", { children: [
|
|
14
|
+
/* @__PURE__ */ i("th", {
|
|
15
|
+
scope: "col",
|
|
16
|
+
className: n(o, "ttw:pl-0"),
|
|
17
|
+
children: l.scheduleIssueDateColumn
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ i("th", {
|
|
20
|
+
scope: "col",
|
|
21
|
+
className: o,
|
|
22
|
+
children: l.scheduleAmountColumn
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ i("th", {
|
|
25
|
+
scope: "col",
|
|
26
|
+
className: o,
|
|
27
|
+
children: l.scheduleStatusColumn
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ i("th", {
|
|
30
|
+
scope: "col",
|
|
31
|
+
className: o,
|
|
32
|
+
children: l.scheduleNumberColumn
|
|
33
|
+
})
|
|
34
|
+
] }) }), /* @__PURE__ */ i("tbody", { children: c.map((t) => {
|
|
35
|
+
let { onOpen: o } = t;
|
|
36
|
+
return /* @__PURE__ */ a("tr", {
|
|
37
|
+
className: "ttw:border-t ttw:border-border",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ i("td", {
|
|
40
|
+
className: n(s, "ttw:pl-0"),
|
|
41
|
+
children: t.issueDateLabel
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ i("td", {
|
|
44
|
+
className: s,
|
|
45
|
+
children: t.amountLabel
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ i("td", {
|
|
48
|
+
className: "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left",
|
|
49
|
+
children: /* @__PURE__ */ i(r, {
|
|
50
|
+
label: t.chip.label,
|
|
51
|
+
color: t.chip.color
|
|
161
52
|
})
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
children: G.recurringBadge
|
|
178
|
-
}) : null]
|
|
179
|
-
}),
|
|
180
|
-
/* @__PURE__ */ A("div", {
|
|
181
|
-
className: "ttw:flex ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2",
|
|
182
|
-
children: [/* @__PURE__ */ k(N, {
|
|
183
|
-
caption: G.invoiceDateCaption,
|
|
184
|
-
value: K.issueDateLabel
|
|
185
|
-
}), /* @__PURE__ */ k(N, {
|
|
186
|
-
caption: K.dueDateCaption,
|
|
187
|
-
value: K.dueDateLabel
|
|
188
|
-
})]
|
|
189
|
-
}),
|
|
190
|
-
te
|
|
191
|
-
]
|
|
192
|
-
}),
|
|
193
|
-
K.paymentHistory ? /* @__PURE__ */ A("section", {
|
|
194
|
-
"aria-label": G.paymentHistoryHeading,
|
|
195
|
-
className: "ttw:border-b ttw:border-border ttw:py-4",
|
|
196
|
-
children: [/* @__PURE__ */ k(d, {
|
|
197
|
-
component: "h3",
|
|
198
|
-
variant: "body2",
|
|
199
|
-
className: "ttw:mb-3 ttw:font-medium",
|
|
200
|
-
children: G.paymentHistoryHeading
|
|
201
|
-
}), K.paymentHistory.isLoading ? /* @__PURE__ */ A(p, {
|
|
202
|
-
isLoading: !0,
|
|
203
|
-
loadingLabel: G.paymentHistoryLoading,
|
|
204
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
205
|
-
children: [/* @__PURE__ */ k(o, { className: "ttw:h-4 ttw:w-full" }), /* @__PURE__ */ k(o, { className: "ttw:h-4 ttw:w-2/3" })]
|
|
206
|
-
}) : K.paymentHistory.rows.length === 0 ? /* @__PURE__ */ k(d, {
|
|
207
|
-
variant: "body2",
|
|
208
|
-
color: "muted",
|
|
209
|
-
children: G.paymentHistoryEmpty
|
|
210
|
-
}) : /* @__PURE__ */ A("div", {
|
|
211
|
-
className: "ttw:flex ttw:flex-col",
|
|
212
|
-
children: [K.paymentHistory.rows.map((e) => /* @__PURE__ */ A("div", {
|
|
213
|
-
className: "ttw:flex ttw:justify-between ttw:border-b ttw:border-border ttw:py-2",
|
|
214
|
-
children: [/* @__PURE__ */ k(d, {
|
|
215
|
-
component: "span",
|
|
216
|
-
variant: "body2",
|
|
217
|
-
children: e.dateLabel
|
|
218
|
-
}), /* @__PURE__ */ k(d, {
|
|
219
|
-
component: "span",
|
|
220
|
-
variant: "body2",
|
|
221
|
-
className: "ttw:tabular-nums",
|
|
222
|
-
children: e.amountLabel
|
|
223
|
-
})]
|
|
224
|
-
}, e.id)), /* @__PURE__ */ A("div", {
|
|
225
|
-
className: "ttw:flex ttw:justify-between ttw:py-2 ttw:font-medium",
|
|
226
|
-
children: [/* @__PURE__ */ k(d, {
|
|
227
|
-
component: "span",
|
|
228
|
-
variant: "body2",
|
|
229
|
-
children: G.paymentHistoryTotalLabel
|
|
230
|
-
}), /* @__PURE__ */ k(d, {
|
|
231
|
-
component: "span",
|
|
232
|
-
variant: "body2",
|
|
233
|
-
className: "ttw:tabular-nums",
|
|
234
|
-
children: K.paymentHistory.totalLabel
|
|
235
|
-
})]
|
|
236
|
-
})]
|
|
237
|
-
})]
|
|
238
|
-
}) : null,
|
|
239
|
-
K.customerName || K.customerContact.length > 0 ? /* @__PURE__ */ A("section", {
|
|
240
|
-
"aria-label": G.customerDetailsHeading,
|
|
241
|
-
className: "ttw:border-b ttw:border-border ttw:py-4",
|
|
242
|
-
children: [/* @__PURE__ */ k(d, {
|
|
243
|
-
component: "h3",
|
|
244
|
-
variant: "body2",
|
|
245
|
-
className: "ttw:mb-3 ttw:font-medium",
|
|
246
|
-
children: G.customerDetailsHeading
|
|
247
|
-
}), /* @__PURE__ */ A("div", {
|
|
248
|
-
className: "ttw:flex ttw:flex-col",
|
|
249
|
-
children: [K.customerName ? /* @__PURE__ */ k(w, { ...K.customerName }) : null, K.customerContact.map((e) => /* @__PURE__ */ k(E, { ...e }, e.label))]
|
|
250
|
-
})]
|
|
251
|
-
}) : null,
|
|
252
|
-
/* @__PURE__ */ A(e, {
|
|
253
|
-
type: "multiple",
|
|
254
|
-
value: V,
|
|
255
|
-
onValueChange: H,
|
|
256
|
-
className: "ttw:w-full",
|
|
257
|
-
children: [
|
|
258
|
-
/* @__PURE__ */ A(n, {
|
|
259
|
-
value: g.billing,
|
|
260
|
-
className: b,
|
|
261
|
-
children: [/* @__PURE__ */ k(x, { heading: G.billingHeading }), /* @__PURE__ */ k(t, { children: /* @__PURE__ */ A("div", {
|
|
262
|
-
className: "ttw:flex ttw:flex-col",
|
|
263
|
-
children: [K.billingItems.map((e) => /* @__PURE__ */ k(E, { ...e }, e.label)), K.seriesLink ? /* @__PURE__ */ A("div", {
|
|
264
|
-
className: "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
|
|
265
|
-
children: [/* @__PURE__ */ k(d, {
|
|
266
|
-
component: "span",
|
|
267
|
-
variant: "body2",
|
|
268
|
-
color: "muted",
|
|
269
|
-
className: "ttw:w-40 ttw:shrink-0",
|
|
270
|
-
children: G.recurringSeriesRowLabel
|
|
271
|
-
}), /* @__PURE__ */ k(i, {
|
|
272
|
-
type: "button",
|
|
273
|
-
variant: "link",
|
|
274
|
-
className: "ttw:h-auto ttw:px-0 ttw:text-left",
|
|
275
|
-
onClick: K.seriesLink.onOpen,
|
|
276
|
-
children: K.seriesLink.title
|
|
277
|
-
})]
|
|
278
|
-
}) : null]
|
|
279
|
-
}) })]
|
|
280
|
-
}),
|
|
281
|
-
K.lineItemsSection ? /* @__PURE__ */ A(n, {
|
|
282
|
-
value: g.lineItems,
|
|
283
|
-
className: b,
|
|
284
|
-
children: [/* @__PURE__ */ k(x, {
|
|
285
|
-
heading: G.lineItemsHeading,
|
|
286
|
-
countLabel: K.lineItemsSection.countLabel
|
|
287
|
-
}), /* @__PURE__ */ k(t, { children: /* @__PURE__ */ A("div", {
|
|
288
|
-
className: "ttw:flex ttw:flex-col",
|
|
289
|
-
children: [L.lineItems.length === 0 ? /* @__PURE__ */ k(d, {
|
|
290
|
-
variant: "body2",
|
|
291
|
-
color: "muted",
|
|
292
|
-
className: "ttw:py-3",
|
|
293
|
-
children: G.noLineItems
|
|
294
|
-
}) : L.lineItems.map((e) => /* @__PURE__ */ A("div", {
|
|
295
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:py-3",
|
|
296
|
-
children: [/* @__PURE__ */ A("div", {
|
|
297
|
-
className: "ttw:flex ttw:flex-col",
|
|
298
|
-
children: [/* @__PURE__ */ k(d, {
|
|
299
|
-
component: "span",
|
|
300
|
-
variant: "body2",
|
|
301
|
-
className: "ttw:font-medium",
|
|
302
|
-
children: e.name
|
|
303
|
-
}), /* @__PURE__ */ A(d, {
|
|
304
|
-
component: "span",
|
|
305
|
-
variant: "body2",
|
|
306
|
-
color: "muted",
|
|
307
|
-
children: [
|
|
308
|
-
e.quantityLabel,
|
|
309
|
-
" ",
|
|
310
|
-
G.lineItemMultiplier,
|
|
311
|
-
" ",
|
|
312
|
-
e.unitPriceLabel,
|
|
313
|
-
" ",
|
|
314
|
-
G.lineItemEaLabel
|
|
315
|
-
]
|
|
316
|
-
})]
|
|
317
|
-
}), /* @__PURE__ */ k(d, {
|
|
318
|
-
component: "span",
|
|
319
|
-
variant: "body2",
|
|
320
|
-
className: "ttw:tabular-nums",
|
|
321
|
-
children: e.totalLabel
|
|
322
|
-
})]
|
|
323
|
-
}, e.id)), K.lineItemsSection.totals.length > 0 ? /* @__PURE__ */ k("div", {
|
|
324
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:py-3",
|
|
325
|
-
children: K.lineItemsSection.totals.map((e) => /* @__PURE__ */ A("div", {
|
|
326
|
-
className: f("ttw:flex ttw:justify-between", e.emphasis && "ttw:font-medium"),
|
|
327
|
-
children: [/* @__PURE__ */ k(d, {
|
|
328
|
-
component: "span",
|
|
329
|
-
variant: "body2",
|
|
330
|
-
children: e.label
|
|
331
|
-
}), /* @__PURE__ */ k(d, {
|
|
332
|
-
component: "span",
|
|
333
|
-
variant: "body2",
|
|
334
|
-
className: "ttw:tabular-nums",
|
|
335
|
-
children: e.value
|
|
336
|
-
})]
|
|
337
|
-
}, e.label))
|
|
338
|
-
}) : null]
|
|
339
|
-
}) })]
|
|
340
|
-
}) : null,
|
|
341
|
-
K.notes ? /* @__PURE__ */ A(n, {
|
|
342
|
-
value: g.notes,
|
|
343
|
-
className: b,
|
|
344
|
-
children: [/* @__PURE__ */ k(x, {
|
|
345
|
-
heading: G.notesHeading,
|
|
346
|
-
countLabel: K.notes.countLabel
|
|
347
|
-
}), /* @__PURE__ */ k(t, { children: /* @__PURE__ */ A("div", {
|
|
348
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
349
|
-
children: [K.notes.opening ? /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k(d, {
|
|
350
|
-
variant: "body2",
|
|
351
|
-
className: "ttw:mb-1 ttw:font-medium",
|
|
352
|
-
children: G.notesOpeningLabel
|
|
353
|
-
}), /* @__PURE__ */ k(d, {
|
|
354
|
-
variant: "body2",
|
|
355
|
-
color: "muted",
|
|
356
|
-
children: K.notes.opening
|
|
357
|
-
})] }) : null, K.notes.closing ? /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k(d, {
|
|
358
|
-
variant: "body2",
|
|
359
|
-
className: "ttw:mb-1 ttw:font-medium",
|
|
360
|
-
children: G.notesClosingLabel
|
|
361
|
-
}), /* @__PURE__ */ k(d, {
|
|
362
|
-
variant: "body2",
|
|
363
|
-
color: "muted",
|
|
364
|
-
children: K.notes.closing
|
|
365
|
-
})] }) : null]
|
|
366
|
-
}) })]
|
|
367
|
-
}) : null,
|
|
368
|
-
/* @__PURE__ */ k(S, {
|
|
369
|
-
attachments: K.attachments,
|
|
370
|
-
labels: G
|
|
371
|
-
}),
|
|
372
|
-
/* @__PURE__ */ k(C, {
|
|
373
|
-
auditHistory: K.auditHistory,
|
|
374
|
-
labels: G
|
|
375
|
-
})
|
|
376
|
-
]
|
|
377
|
-
}),
|
|
378
|
-
Y ? /* @__PURE__ */ A("section", {
|
|
379
|
-
"aria-label": Y.scheduleTitle,
|
|
380
|
-
className: "ttw:py-4",
|
|
381
|
-
children: [/* @__PURE__ */ k(d, {
|
|
382
|
-
component: "h3",
|
|
383
|
-
variant: "body2",
|
|
384
|
-
className: "ttw:mb-3 ttw:font-medium",
|
|
385
|
-
children: Y.scheduleTitle
|
|
386
|
-
}), /* @__PURE__ */ k(O, {
|
|
387
|
-
rows: Y.schedule,
|
|
388
|
-
labels: G
|
|
389
|
-
})]
|
|
390
|
-
}) : null
|
|
391
|
-
]
|
|
392
|
-
})
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ i("td", {
|
|
55
|
+
className: s,
|
|
56
|
+
children: o ? /* @__PURE__ */ i(e, {
|
|
57
|
+
type: "button",
|
|
58
|
+
variant: "link",
|
|
59
|
+
className: "ttw:h-auto ttw:px-0",
|
|
60
|
+
"aria-label": t.openLabel,
|
|
61
|
+
onClick: o,
|
|
62
|
+
children: t.numberLabel
|
|
63
|
+
}) : t.numberLabel
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
}, t.id);
|
|
67
|
+
}) })]
|
|
393
68
|
});
|
|
394
69
|
}
|
|
395
|
-
export {
|
|
70
|
+
export { c as ScheduledInvoicesTable };
|