@tesouro/embedded-components-react 0.4.14 → 0.4.16
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/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +47 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +20 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +75 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +64 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +141 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +93 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +83 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +235 -218
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +8 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +26 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +19 -306
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +154 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +60 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +251 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +7 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +15 -337
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +21 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +340 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +10 -97
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +99 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +11 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +52 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +181 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +5 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +92 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +1 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +83 -291
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +292 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +10 -199
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +201 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +3 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +15 -345
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +345 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +6 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +2 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +124 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +26 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +10 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +15 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +7 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +11 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index3.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +63 -65
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListDetailsSheet.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +37 -37
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +0 -2
|
@@ -1,2 +1,252 @@
|
|
|
1
|
+
import { Badge as e, Button as t, Skeleton as n, cn as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as i } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
|
+
import "../../../shared/ui/dist/index.js";
|
|
4
|
+
import { ApprovalPolicyCard as a } from "./index13.js";
|
|
5
|
+
import "./index14.js";
|
|
6
|
+
import { BillStatusBadge as o } from "./index18.js";
|
|
7
|
+
import "./index19.js";
|
|
8
|
+
import { DueDateValue as s } from "./index21.js";
|
|
9
|
+
import "./index22.js";
|
|
10
|
+
import { PaymentHistoryList as c } from "./index23.js";
|
|
11
|
+
import "./index24.js";
|
|
12
|
+
import { VendorSummaryCard as l } from "./index27.js";
|
|
1
13
|
import "./index28.js";
|
|
2
|
-
import "./index29.js";
|
|
14
|
+
import { mergeBillDetailBodyLabels as u } from "./index29.js";
|
|
15
|
+
import { BillActionButtons as d, NO_BILL_ACTIONS as f } from "./index15.js";
|
|
16
|
+
import { useMemo as p } from "react";
|
|
17
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
18
|
+
import { AlertTriangle as g } from "lucide-react";
|
|
19
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js
|
|
20
|
+
var _ = "ttw:text-base ttw:font-semibold", v = "ttw:px-3 ttw:py-2", y = "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
|
|
21
|
+
function b({ view: b, actions: x = f, scheduledSummary: S, paymentInstructionsForm: C, onEditPaymentInstructions: w, paymentHistoryError: T, paymentHistoryLoading: E, isLoading: D, isError: O, labels: k }) {
|
|
22
|
+
let A = p(() => u(k), [k]), j = p(() => ({
|
|
23
|
+
...A.payToCard,
|
|
24
|
+
payToHeading: b?.paidOnLabel ? A.payToHeadingPaid : A.payToHeading
|
|
25
|
+
}), [A, b?.paidOnLabel]);
|
|
26
|
+
if (O) return /* @__PURE__ */ m(i, {
|
|
27
|
+
title: A.errorTitle,
|
|
28
|
+
description: A.errorDescription
|
|
29
|
+
});
|
|
30
|
+
if (D || !b) return /* @__PURE__ */ h("div", {
|
|
31
|
+
"aria-hidden": !0,
|
|
32
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ m(n, { className: "ttw:h-40 ttw:w-full" }),
|
|
35
|
+
/* @__PURE__ */ m(n, { className: "ttw:h-32 ttw:w-full" }),
|
|
36
|
+
/* @__PURE__ */ m(n, { className: "ttw:h-24 ttw:w-full" })
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
let M = b.payTo.fields.length === 0 && C;
|
|
40
|
+
return /* @__PURE__ */ h("div", {
|
|
41
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
42
|
+
children: [
|
|
43
|
+
M ? /* @__PURE__ */ h("div", {
|
|
44
|
+
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-md ttw:border ttw:border-amber-200 ttw:bg-amber-50 ttw:px-3 ttw:py-2.5",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ m(g, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
|
|
47
|
+
/* @__PURE__ */ m("p", {
|
|
48
|
+
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
49
|
+
children: A.missingPaymentInstructionsBanner
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ m(t, {
|
|
52
|
+
type: "button",
|
|
53
|
+
variant: "outline",
|
|
54
|
+
size: "sm",
|
|
55
|
+
onClick: C.onOpen,
|
|
56
|
+
children: A.addPaymentInstructions
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
}) : null,
|
|
60
|
+
/* @__PURE__ */ h("section", {
|
|
61
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
62
|
+
children: [
|
|
63
|
+
b.paidOnLabel ? /* @__PURE__ */ h("div", {
|
|
64
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
65
|
+
children: [/* @__PURE__ */ h("div", {
|
|
66
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
67
|
+
children: [/* @__PURE__ */ m("span", {
|
|
68
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
69
|
+
children: A.amountDueHeading
|
|
70
|
+
}), /* @__PURE__ */ m("span", {
|
|
71
|
+
className: "ttw:text-3xl ttw:font-semibold",
|
|
72
|
+
children: b.amountDue
|
|
73
|
+
})]
|
|
74
|
+
}), /* @__PURE__ */ h("div", {
|
|
75
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
76
|
+
children: [/* @__PURE__ */ m("span", {
|
|
77
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
78
|
+
children: A.amountPaidHeading
|
|
79
|
+
}), /* @__PURE__ */ m("span", {
|
|
80
|
+
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
81
|
+
children: b.amountPaid
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
84
|
+
}) : /* @__PURE__ */ h("div", {
|
|
85
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
86
|
+
children: [/* @__PURE__ */ m("span", {
|
|
87
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
88
|
+
children: A.amountDueHeading
|
|
89
|
+
}), /* @__PURE__ */ m("span", {
|
|
90
|
+
className: "ttw:text-3xl ttw:font-semibold",
|
|
91
|
+
children: b.amountDue
|
|
92
|
+
})]
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ m("div", { children: b.paidOnLabel ? /* @__PURE__ */ m(e, {
|
|
95
|
+
variant: "outline",
|
|
96
|
+
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
97
|
+
children: b.paidOnLabel
|
|
98
|
+
}) : /* @__PURE__ */ m(o, {
|
|
99
|
+
status: b.status,
|
|
100
|
+
tone: b.statusTone,
|
|
101
|
+
labels: A.statusBadge
|
|
102
|
+
}) }),
|
|
103
|
+
/* @__PURE__ */ h("div", {
|
|
104
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
105
|
+
children: [/* @__PURE__ */ h("div", {
|
|
106
|
+
className: "ttw:flex ttw:flex-col",
|
|
107
|
+
children: [/* @__PURE__ */ m("span", {
|
|
108
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
109
|
+
children: A.invoiceDateLabel
|
|
110
|
+
}), /* @__PURE__ */ m("span", {
|
|
111
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
112
|
+
children: b.invoiceDateLabel
|
|
113
|
+
})]
|
|
114
|
+
}), /* @__PURE__ */ h("div", {
|
|
115
|
+
className: "ttw:flex ttw:flex-col",
|
|
116
|
+
children: [/* @__PURE__ */ m("span", {
|
|
117
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
118
|
+
children: A.dueDateLabel
|
|
119
|
+
}), /* @__PURE__ */ m(s, {
|
|
120
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
121
|
+
value: b.dueDateLabel,
|
|
122
|
+
tone: b.dueDateTone,
|
|
123
|
+
labels: A.dueDate
|
|
124
|
+
})]
|
|
125
|
+
})]
|
|
126
|
+
}),
|
|
127
|
+
S ? /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(e, {
|
|
128
|
+
variant: "outline",
|
|
129
|
+
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
130
|
+
children: S
|
|
131
|
+
}) }) : x.row.length ? /* @__PURE__ */ m("div", {
|
|
132
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
133
|
+
children: /* @__PURE__ */ m(d, { actions: x.row })
|
|
134
|
+
}) : null
|
|
135
|
+
]
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ m(l, {
|
|
138
|
+
summary: b.payTo,
|
|
139
|
+
onEdit: w,
|
|
140
|
+
instructionsCollapsed: !0,
|
|
141
|
+
paymentInstructions: C ? {
|
|
142
|
+
isOpen: C.isOpen,
|
|
143
|
+
values: C.values,
|
|
144
|
+
errors: C.errors,
|
|
145
|
+
isSaving: C.isSaving,
|
|
146
|
+
onOpen: C.onOpen,
|
|
147
|
+
onChange: C.onChange,
|
|
148
|
+
onSave: C.onSave,
|
|
149
|
+
onCancel: C.onCancel
|
|
150
|
+
} : void 0,
|
|
151
|
+
labels: j
|
|
152
|
+
}),
|
|
153
|
+
b.paymentHistory.length || T || E ? /* @__PURE__ */ h("section", {
|
|
154
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
155
|
+
children: [/* @__PURE__ */ m("h3", {
|
|
156
|
+
className: _,
|
|
157
|
+
children: A.paymentHistoryHeading
|
|
158
|
+
}), T ? /* @__PURE__ */ m("p", {
|
|
159
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
160
|
+
children: A.paymentHistoryErrorDescription
|
|
161
|
+
}) : E ? /* @__PURE__ */ m(n, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ m(c, { records: b.paymentHistory })]
|
|
162
|
+
}) : null,
|
|
163
|
+
/* @__PURE__ */ m("dl", {
|
|
164
|
+
className: "ttw:flex ttw:flex-col",
|
|
165
|
+
children: b.invoiceFields.map((e) => /* @__PURE__ */ h("div", {
|
|
166
|
+
className: y,
|
|
167
|
+
children: [/* @__PURE__ */ m("dt", {
|
|
168
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
169
|
+
children: e.label
|
|
170
|
+
}), /* @__PURE__ */ m("dd", {
|
|
171
|
+
className: "ttw:text-right ttw:text-sm ttw:font-medium",
|
|
172
|
+
children: e.value
|
|
173
|
+
})]
|
|
174
|
+
}, e.label))
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ m("section", { children: /* @__PURE__ */ h("table", {
|
|
177
|
+
className: "ttw:w-full ttw:text-sm",
|
|
178
|
+
children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
|
|
179
|
+
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ m("th", {
|
|
182
|
+
className: r(v, "ttw:text-left ttw:font-normal"),
|
|
183
|
+
children: A.descriptionAndGlCodeColumn
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ m("th", {
|
|
186
|
+
className: r(v, "ttw:text-right ttw:font-normal"),
|
|
187
|
+
children: A.qtyPriceColumn
|
|
188
|
+
}),
|
|
189
|
+
/* @__PURE__ */ m("th", {
|
|
190
|
+
className: r(v, "ttw:text-right ttw:font-normal"),
|
|
191
|
+
children: A.amountColumn
|
|
192
|
+
})
|
|
193
|
+
]
|
|
194
|
+
}) }), /* @__PURE__ */ h("tbody", { children: [b.lineItems.map((e) => /* @__PURE__ */ h("tr", {
|
|
195
|
+
className: "ttw:border-b ttw:border-border",
|
|
196
|
+
children: [
|
|
197
|
+
/* @__PURE__ */ m("td", {
|
|
198
|
+
className: v,
|
|
199
|
+
children: /* @__PURE__ */ h("div", {
|
|
200
|
+
className: "ttw:flex ttw:flex-col",
|
|
201
|
+
children: [/* @__PURE__ */ m("span", { children: e.description }), /* @__PURE__ */ m("span", {
|
|
202
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
203
|
+
children: e.glCodeLabel
|
|
204
|
+
})]
|
|
205
|
+
})
|
|
206
|
+
}),
|
|
207
|
+
/* @__PURE__ */ m("td", {
|
|
208
|
+
className: r(v, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
|
|
209
|
+
children: e.qtyPriceLabel
|
|
210
|
+
}),
|
|
211
|
+
/* @__PURE__ */ m("td", {
|
|
212
|
+
className: r(v, "ttw:text-right ttw:whitespace-nowrap"),
|
|
213
|
+
children: e.amount
|
|
214
|
+
})
|
|
215
|
+
]
|
|
216
|
+
}, e.id)), b.amountRows.map((e) => /* @__PURE__ */ h("tr", {
|
|
217
|
+
className: r(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
|
|
218
|
+
children: [/* @__PURE__ */ m("td", {
|
|
219
|
+
colSpan: 2,
|
|
220
|
+
className: v,
|
|
221
|
+
children: e.label
|
|
222
|
+
}), /* @__PURE__ */ m("td", {
|
|
223
|
+
className: r(v, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
|
|
224
|
+
children: e.value
|
|
225
|
+
})]
|
|
226
|
+
}, e.label))] })]
|
|
227
|
+
}) }),
|
|
228
|
+
b.approvalPolicy ? /* @__PURE__ */ m(a, {
|
|
229
|
+
view: b.approvalPolicy,
|
|
230
|
+
labels: A.approvalPolicy
|
|
231
|
+
}) : null,
|
|
232
|
+
b.history.length ? /* @__PURE__ */ h("section", {
|
|
233
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
234
|
+
children: [/* @__PURE__ */ m("h3", {
|
|
235
|
+
className: _,
|
|
236
|
+
children: A.historyHeading
|
|
237
|
+
}), /* @__PURE__ */ m("ul", {
|
|
238
|
+
className: "ttw:flex ttw:flex-col",
|
|
239
|
+
children: b.history.map((e) => /* @__PURE__ */ h("li", {
|
|
240
|
+
className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
|
|
241
|
+
children: [/* @__PURE__ */ m("span", {
|
|
242
|
+
className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
|
|
243
|
+
children: e.dateLabel
|
|
244
|
+
}), /* @__PURE__ */ m("span", { children: e.description })]
|
|
245
|
+
}, e.id))
|
|
246
|
+
})]
|
|
247
|
+
}) : null
|
|
248
|
+
]
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
export { b as BillDetailBody, b as default };
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let t = [];
|
|
4
|
-
for (let n of e) {
|
|
5
|
-
let e = t.at(-1);
|
|
6
|
-
if (e && e.heading === n.sectionHeading) {
|
|
7
|
-
e.items = [...e.items, n];
|
|
8
|
-
continue;
|
|
9
|
-
}
|
|
10
|
-
t.push({
|
|
11
|
-
heading: n.sectionHeading,
|
|
12
|
-
items: [n]
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
return t;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { e as groupBySectionHeading };
|
|
1
|
+
import "./index29.js";
|
|
2
|
+
import "./index30.js";
|
|
@@ -1,50 +1,9 @@
|
|
|
1
|
-
import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuGroup as r, DropdownMenuItem as i, DropdownMenuLabel as a, DropdownMenuSeparator as o, DropdownMenuTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { groupBySectionHeading as c } from "./index31.js";
|
|
3
|
-
import { Fragment as l, useId as u } from "react";
|
|
4
|
-
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
5
|
-
import { MoreHorizontalIcon as p, MoreVerticalIcon as m } from "lucide-react";
|
|
6
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
children: /* @__PURE__ */ d(e, {
|
|
14
|
-
type: "button",
|
|
15
|
-
variant: b ? "ghost" : "outline",
|
|
16
|
-
size: "icon",
|
|
17
|
-
"aria-label": g,
|
|
18
|
-
"data-testid": v,
|
|
19
|
-
children: /* @__PURE__ */ d(x, { className: "ttw:size-4" })
|
|
20
|
-
})
|
|
21
|
-
}), /* @__PURE__ */ d(n, {
|
|
22
|
-
align: "end",
|
|
23
|
-
children: S.map((e, t) => {
|
|
24
|
-
let n = e.items.map((e) => {
|
|
25
|
-
let t = e.icon;
|
|
26
|
-
return /* @__PURE__ */ f(i, {
|
|
27
|
-
disabled: e.disabled,
|
|
28
|
-
onClick: e.onSelect,
|
|
29
|
-
children: [t ? /* @__PURE__ */ d(t, { className: "ttw:size-4" }) : null, e.label]
|
|
30
|
-
}, e.id);
|
|
31
|
-
});
|
|
32
|
-
if (!e.heading) return /* @__PURE__ */ d(l, { children: n }, e.items[0]?.id);
|
|
33
|
-
let s = `${y}-${t}`;
|
|
34
|
-
return /* @__PURE__ */ f(l, { children: [
|
|
35
|
-
t > 0 ? /* @__PURE__ */ d(o, {}) : null,
|
|
36
|
-
/* @__PURE__ */ d(a, {
|
|
37
|
-
id: s,
|
|
38
|
-
className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
|
|
39
|
-
children: e.heading
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ d(r, {
|
|
42
|
-
"aria-labelledby": s,
|
|
43
|
-
children: n
|
|
44
|
-
})
|
|
45
|
-
] }, e.items[0]?.id);
|
|
46
|
-
})
|
|
47
|
-
})] });
|
|
48
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
invoiceNumber: "Invoice number",
|
|
4
|
+
invoiceDate: "Invoice date",
|
|
5
|
+
dueDate: "Due date",
|
|
6
|
+
poNumber: "PO number (optional)"
|
|
7
|
+
};
|
|
49
8
|
//#endregion
|
|
50
|
-
export {
|
|
9
|
+
export { e as BILL_FORM_FIELDS_LABELS_EN };
|
|
@@ -1,2 +1,49 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./index32.js";
|
|
1
|
+
import { Input as e, Label as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index32.js";
|
|
3
|
+
import { useId as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js
|
|
6
|
+
function o({ values: o, errors: s, onChange: c, disabled: l, testId: u, labels: d }) {
|
|
7
|
+
let f = {
|
|
8
|
+
...n,
|
|
9
|
+
...d
|
|
10
|
+
}, p = r(), m = (n, r, u) => {
|
|
11
|
+
let d = `${p}-${n}`, f = `${d}-error`, m = s?.[n];
|
|
12
|
+
return /* @__PURE__ */ a("div", {
|
|
13
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ i(t, {
|
|
16
|
+
htmlFor: d,
|
|
17
|
+
children: r
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ i(e, {
|
|
20
|
+
id: d,
|
|
21
|
+
type: u,
|
|
22
|
+
value: o[n],
|
|
23
|
+
disabled: l,
|
|
24
|
+
"aria-invalid": m ? !0 : void 0,
|
|
25
|
+
"aria-describedby": m ? f : void 0,
|
|
26
|
+
onChange: (e) => c({ [n]: e.target.value })
|
|
27
|
+
}),
|
|
28
|
+
m ? /* @__PURE__ */ i("p", {
|
|
29
|
+
id: f,
|
|
30
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
31
|
+
children: m
|
|
32
|
+
}) : null
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ a("div", {
|
|
37
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
38
|
+
"data-testid": u,
|
|
39
|
+
children: [/* @__PURE__ */ a("div", {
|
|
40
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
41
|
+
children: [m("invoiceDate", f.invoiceDate, "date"), m("dueDate", f.dueDate, "date")]
|
|
42
|
+
}), /* @__PURE__ */ a("div", {
|
|
43
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
44
|
+
children: [m("invoiceNumber", f.invoiceNumber), m("poNumber", f.poNumber)]
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { o as BillFormFields, o as default };
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
heading: "Line items",
|
|
4
|
-
helpText: "Enter a single amount for this payment, or split it into line items to assign a GL code to each one.",
|
|
5
|
-
description: "Description",
|
|
6
|
-
descriptionPlaceholder: "e.g., Office supplies",
|
|
7
|
-
glCode: "GL code (optional)",
|
|
8
|
-
glCodePlaceholder: "Select",
|
|
9
|
-
glCodeClear: "Clear GL code",
|
|
10
|
-
quantity: "Quantity",
|
|
11
|
-
price: "Price",
|
|
12
|
-
amount: "Amount",
|
|
13
|
-
currencySymbol: "$",
|
|
14
|
-
discount: "Discounts",
|
|
15
|
-
tax: "Tax",
|
|
16
|
-
totalAmount: "Total amount",
|
|
17
|
-
addLineItem: "+ Add line item",
|
|
18
|
-
increaseQuantity: (e) => `Increase quantity — line item ${e}`,
|
|
19
|
-
decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
|
|
20
|
-
removeLineItem: (e) => `Remove line item ${e}`
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { e as LINE_ITEMS_SECTION_LABELS_EN };
|
|
1
|
+
import "./index32.js";
|
|
2
|
+
import "./index33.js";
|