@tesouro/embedded-components-react 0.5.51 → 0.5.52
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/index.d.ts +42 -1
- package/dist/lib/CounterpartsWidget.d.ts +41 -0
- package/dist/lib/ReceivablesWidget.d.ts +40 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +18 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +91 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +113 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +148 -147
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +203 -174
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +22 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +97 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +57 -61
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +189 -188
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +54 -37
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +54 -41
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index6.js +88 -70
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +333 -282
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +3757 -3705
- package/package.json +1 -1
|
@@ -1,260 +1,261 @@
|
|
|
1
|
-
import { Badge as e, Button as t,
|
|
2
|
-
import { ErrorState as
|
|
1
|
+
import { Badge as e, Button as t, RequiredFieldsLegend as n, Skeleton as r, Typography as i, cn as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as o } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
3
|
import "../../../shared/ui/dist/index.js";
|
|
4
|
-
import { ApprovalPolicyCard as
|
|
4
|
+
import { ApprovalPolicyCard as s } from "./index13.js";
|
|
5
5
|
import "./index14.js";
|
|
6
|
-
import { BillRejectionNotice as
|
|
7
|
-
import { BADGE_TONE_CLASS_NAME as
|
|
8
|
-
import { BillStatusBadge as
|
|
6
|
+
import { BillRejectionNotice as c } from "./index17.js";
|
|
7
|
+
import { BADGE_TONE_CLASS_NAME as l } from "./index15.js";
|
|
8
|
+
import { BillStatusBadge as u } from "./index19.js";
|
|
9
9
|
import "./index20.js";
|
|
10
|
-
import { DueDateValue as
|
|
10
|
+
import { DueDateValue as d } from "./index22.js";
|
|
11
11
|
import "./index23.js";
|
|
12
|
-
import { PaymentHistoryList as
|
|
12
|
+
import { PaymentHistoryList as f } from "./index24.js";
|
|
13
13
|
import "./index25.js";
|
|
14
|
-
import { VendorSummaryCard as
|
|
14
|
+
import { VendorSummaryCard as p } from "./index28.js";
|
|
15
15
|
import "./index29.js";
|
|
16
|
-
import { mergeBillDetailBodyLabels as
|
|
17
|
-
import { BillActionButtons as
|
|
18
|
-
import { useMemo as
|
|
19
|
-
import { jsx as
|
|
20
|
-
import { AlertTriangle as
|
|
16
|
+
import { mergeBillDetailBodyLabels as m } from "./index30.js";
|
|
17
|
+
import { BillActionButtons as h, NO_BILL_ACTIONS as g } from "./index16.js";
|
|
18
|
+
import { useMemo as _ } from "react";
|
|
19
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
20
|
+
import { AlertTriangle as b } from "lucide-react";
|
|
21
21
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
let
|
|
25
|
-
...
|
|
26
|
-
payToHeading:
|
|
27
|
-
vendorLabel:
|
|
28
|
-
achBankAccountLabel:
|
|
29
|
-
}), [
|
|
30
|
-
...
|
|
31
|
-
...
|
|
32
|
-
}), [
|
|
33
|
-
if (
|
|
34
|
-
title:
|
|
35
|
-
description:
|
|
22
|
+
var x = "ttw:text-base ttw:font-semibold", S = "ttw:px-3 ttw:py-2", C = "ttw:py-2 ttw:pr-3", w = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", T = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground";
|
|
23
|
+
function E({ view: E, actions: D = g, scheduledSummary: O, scheduledStatusLabel: k, showApprovalOverrideNotice: A, awaitingApprovalNotice: j, payTo: M, hideMissingPaymentInstructions: N, paymentHistoryError: P, paymentHistoryLoading: F, isLoading: I, isError: L, labels: R }) {
|
|
24
|
+
let z = _(() => m(R), [R]), B = _(() => ({
|
|
25
|
+
...z.payToCard,
|
|
26
|
+
payToHeading: E?.paidOnLabel ? z.payToHeadingPaid : z.payToHeading,
|
|
27
|
+
vendorLabel: z.vendorRow,
|
|
28
|
+
achBankAccountLabel: z.paymentInstructionsRow
|
|
29
|
+
}), [z, E?.paidOnLabel]), V = _(() => ({
|
|
30
|
+
...z.statusBadge,
|
|
31
|
+
...k ? { scheduled: k } : void 0
|
|
32
|
+
}), [z.statusBadge, k]);
|
|
33
|
+
if (L) return /* @__PURE__ */ v(o, {
|
|
34
|
+
title: z.errorTitle,
|
|
35
|
+
description: z.errorDescription
|
|
36
36
|
});
|
|
37
|
-
if (
|
|
37
|
+
if (I || !E) return /* @__PURE__ */ y("div", {
|
|
38
38
|
"aria-hidden": !0,
|
|
39
39
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ v(r, { className: "ttw:h-40 ttw:w-full" }),
|
|
42
|
+
/* @__PURE__ */ v(r, { className: "ttw:h-32 ttw:w-full" }),
|
|
43
|
+
/* @__PURE__ */ v(r, { className: "ttw:h-24 ttw:w-full" })
|
|
44
44
|
]
|
|
45
45
|
});
|
|
46
|
-
let
|
|
47
|
-
return /* @__PURE__ */
|
|
46
|
+
let H = N ? void 0 : M?.paymentInstructions, U = E.payTo.hasPaymentInstructions ? void 0 : H;
|
|
47
|
+
return /* @__PURE__ */ y("div", {
|
|
48
48
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
49
49
|
children: [
|
|
50
|
-
|
|
50
|
+
U ? /* @__PURE__ */ y("div", {
|
|
51
51
|
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",
|
|
52
52
|
children: [
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ v(b, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
|
|
54
|
+
/* @__PURE__ */ v("p", {
|
|
55
55
|
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
56
|
-
children:
|
|
56
|
+
children: z.missingPaymentInstructionsBanner
|
|
57
57
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ v(t, {
|
|
59
59
|
type: "button",
|
|
60
60
|
variant: "outline",
|
|
61
61
|
size: "sm",
|
|
62
|
-
onClick:
|
|
63
|
-
children:
|
|
62
|
+
onClick: U.onOpen,
|
|
63
|
+
children: z.addPaymentInstructions
|
|
64
64
|
})
|
|
65
65
|
]
|
|
66
66
|
}) : null,
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ y("section", {
|
|
68
68
|
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
|
|
69
69
|
children: [
|
|
70
|
-
|
|
70
|
+
E.paidOnLabel ? /* @__PURE__ */ y("div", {
|
|
71
71
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
72
|
-
children: [/* @__PURE__ */
|
|
72
|
+
children: [/* @__PURE__ */ y("div", {
|
|
73
73
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ v("span", {
|
|
75
75
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
76
|
-
children:
|
|
77
|
-
}), /* @__PURE__ */
|
|
76
|
+
children: z.amountDueHeading
|
|
77
|
+
}), /* @__PURE__ */ v("span", {
|
|
78
78
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
79
|
-
children:
|
|
79
|
+
children: E.amountDue
|
|
80
80
|
})]
|
|
81
|
-
}), /* @__PURE__ */
|
|
81
|
+
}), /* @__PURE__ */ y("div", {
|
|
82
82
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
83
|
-
children: [/* @__PURE__ */
|
|
83
|
+
children: [/* @__PURE__ */ v("span", {
|
|
84
84
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
85
|
-
children:
|
|
86
|
-
}), /* @__PURE__ */
|
|
85
|
+
children: z.amountPaidHeading
|
|
86
|
+
}), /* @__PURE__ */ v("span", {
|
|
87
87
|
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
88
|
-
children:
|
|
88
|
+
children: E.amountPaid
|
|
89
89
|
})]
|
|
90
90
|
})]
|
|
91
|
-
}) : /* @__PURE__ */
|
|
91
|
+
}) : /* @__PURE__ */ y("div", {
|
|
92
92
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ v("span", {
|
|
94
94
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
95
|
-
children:
|
|
96
|
-
}), /* @__PURE__ */
|
|
95
|
+
children: z.amountDueHeading
|
|
96
|
+
}), /* @__PURE__ */ v("span", {
|
|
97
97
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
98
|
-
children:
|
|
98
|
+
children: E.amountDue
|
|
99
99
|
})]
|
|
100
100
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ v("div", { children: E.paidOnLabel ? /* @__PURE__ */ v(e, {
|
|
102
102
|
variant: "outline",
|
|
103
103
|
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
104
|
-
children:
|
|
105
|
-
}) :
|
|
104
|
+
children: E.paidOnLabel
|
|
105
|
+
}) : O ? /* @__PURE__ */ v(e, {
|
|
106
106
|
variant: "outline",
|
|
107
|
-
className:
|
|
108
|
-
children:
|
|
109
|
-
}) : /* @__PURE__ */
|
|
110
|
-
status:
|
|
111
|
-
tone:
|
|
112
|
-
labels:
|
|
107
|
+
className: l.committed,
|
|
108
|
+
children: O
|
|
109
|
+
}) : /* @__PURE__ */ v(u, {
|
|
110
|
+
status: E.status,
|
|
111
|
+
tone: E.statusTone,
|
|
112
|
+
labels: V
|
|
113
113
|
}) }),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ y("div", {
|
|
115
115
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
116
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ y("div", {
|
|
117
117
|
className: "ttw:flex ttw:flex-col",
|
|
118
|
-
children: [/* @__PURE__ */
|
|
118
|
+
children: [/* @__PURE__ */ v("span", {
|
|
119
119
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
120
|
-
children:
|
|
121
|
-
}), /* @__PURE__ */
|
|
120
|
+
children: z.invoiceDateLabel
|
|
121
|
+
}), /* @__PURE__ */ v("span", {
|
|
122
122
|
className: "ttw:text-sm ttw:font-medium",
|
|
123
|
-
children:
|
|
123
|
+
children: E.invoiceDateLabel
|
|
124
124
|
})]
|
|
125
|
-
}), /* @__PURE__ */
|
|
125
|
+
}), /* @__PURE__ */ y("div", {
|
|
126
126
|
className: "ttw:flex ttw:flex-col",
|
|
127
|
-
children: [/* @__PURE__ */
|
|
127
|
+
children: [/* @__PURE__ */ v("span", {
|
|
128
128
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
129
|
-
children:
|
|
130
|
-
}), /* @__PURE__ */
|
|
129
|
+
children: z.dueDateLabel
|
|
130
|
+
}), /* @__PURE__ */ v(d, {
|
|
131
131
|
className: "ttw:text-sm ttw:font-medium",
|
|
132
|
-
value:
|
|
133
|
-
tone:
|
|
134
|
-
labels:
|
|
132
|
+
value: E.dueDateLabel,
|
|
133
|
+
tone: E.dueDateTone,
|
|
134
|
+
labels: z.dueDate
|
|
135
135
|
})]
|
|
136
136
|
})]
|
|
137
137
|
}),
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
E.rejection ? /* @__PURE__ */ v(c, { ...E.rejection }) : null,
|
|
139
|
+
A ? /* @__PURE__ */ v(i, {
|
|
140
140
|
variant: "caption",
|
|
141
141
|
color: "muted",
|
|
142
|
-
children:
|
|
143
|
-
}) :
|
|
142
|
+
children: z.approvalOverrideNotice
|
|
143
|
+
}) : j ? /* @__PURE__ */ v(i, {
|
|
144
144
|
variant: "caption",
|
|
145
145
|
color: "muted",
|
|
146
|
-
children:
|
|
146
|
+
children: j
|
|
147
147
|
}) : null,
|
|
148
|
-
!
|
|
148
|
+
!O && D.row.length ? /* @__PURE__ */ v("div", {
|
|
149
149
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
150
|
-
children: /* @__PURE__ */
|
|
150
|
+
children: /* @__PURE__ */ v(h, { actions: D.row })
|
|
151
151
|
}) : null
|
|
152
152
|
]
|
|
153
153
|
}),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
H?.isOpen && !N ? /* @__PURE__ */ v(n, { labels: z.requiredFieldsLegend }) : null,
|
|
155
|
+
M?.editForm ?? /* @__PURE__ */ v(p, {
|
|
156
|
+
summary: E.payTo,
|
|
157
|
+
onEdit: M?.onEdit,
|
|
158
|
+
paymentInstructions: H,
|
|
159
|
+
labels: B
|
|
159
160
|
}),
|
|
160
|
-
|
|
161
|
+
E.paymentHistory.length || P || F ? /* @__PURE__ */ y("section", {
|
|
161
162
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
162
|
-
children: [/* @__PURE__ */
|
|
163
|
-
className:
|
|
164
|
-
children:
|
|
165
|
-
}),
|
|
163
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
164
|
+
className: x,
|
|
165
|
+
children: z.paymentHistoryHeading
|
|
166
|
+
}), P ? /* @__PURE__ */ v("p", {
|
|
166
167
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
167
|
-
children:
|
|
168
|
-
}) :
|
|
168
|
+
children: z.paymentHistoryErrorDescription
|
|
169
|
+
}) : F ? /* @__PURE__ */ v(r, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ v(f, { records: E.paymentHistory })]
|
|
169
170
|
}) : null,
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ y("section", {
|
|
171
172
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
173
|
-
className:
|
|
174
|
-
children:
|
|
175
|
-
}), /* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
174
|
+
className: x,
|
|
175
|
+
children: z.invoiceDetailsHeading
|
|
176
|
+
}), /* @__PURE__ */ v("dl", {
|
|
176
177
|
className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
177
|
-
children:
|
|
178
|
-
className:
|
|
179
|
-
children: [/* @__PURE__ */
|
|
180
|
-
className:
|
|
178
|
+
children: E.invoiceFields.map((e) => /* @__PURE__ */ y("div", {
|
|
179
|
+
className: w,
|
|
180
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
181
|
+
className: T,
|
|
181
182
|
children: e.label
|
|
182
|
-
}), /* @__PURE__ */
|
|
183
|
+
}), /* @__PURE__ */ v("dd", {
|
|
183
184
|
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
184
185
|
children: e.value
|
|
185
186
|
})]
|
|
186
187
|
}, e.label))
|
|
187
188
|
})]
|
|
188
189
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ v("section", { children: /* @__PURE__ */ y("table", {
|
|
190
191
|
className: "ttw:w-full ttw:text-sm",
|
|
191
|
-
children: [/* @__PURE__ */
|
|
192
|
+
children: [/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ y("tr", {
|
|
192
193
|
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
193
194
|
children: [
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
className:
|
|
196
|
-
children:
|
|
195
|
+
/* @__PURE__ */ v("th", {
|
|
196
|
+
className: a(C, "ttw:text-left ttw:font-normal"),
|
|
197
|
+
children: z.descriptionAndGlCodeColumn
|
|
197
198
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
className:
|
|
200
|
-
children:
|
|
199
|
+
/* @__PURE__ */ v("th", {
|
|
200
|
+
className: a(S, "ttw:text-right ttw:font-normal"),
|
|
201
|
+
children: z.qtyPriceColumn
|
|
201
202
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
className:
|
|
204
|
-
children:
|
|
203
|
+
/* @__PURE__ */ v("th", {
|
|
204
|
+
className: a(S, "ttw:text-right ttw:font-normal"),
|
|
205
|
+
children: z.amountColumn
|
|
205
206
|
})
|
|
206
207
|
]
|
|
207
|
-
}) }), /* @__PURE__ */
|
|
208
|
+
}) }), /* @__PURE__ */ y("tbody", { children: [E.lineItems.map((e) => /* @__PURE__ */ y("tr", {
|
|
208
209
|
className: "ttw:border-b ttw:border-border",
|
|
209
210
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
className:
|
|
212
|
-
children: /* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ v("td", {
|
|
212
|
+
className: C,
|
|
213
|
+
children: /* @__PURE__ */ y("div", {
|
|
213
214
|
className: "ttw:flex ttw:flex-col",
|
|
214
|
-
children: [/* @__PURE__ */
|
|
215
|
+
children: [/* @__PURE__ */ v("span", { children: e.description }), /* @__PURE__ */ v("span", {
|
|
215
216
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
216
217
|
children: e.glCodeLabel
|
|
217
218
|
})]
|
|
218
219
|
})
|
|
219
220
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
className:
|
|
221
|
+
/* @__PURE__ */ v("td", {
|
|
222
|
+
className: a(S, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
|
|
222
223
|
children: e.qtyPriceLabel
|
|
223
224
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
className:
|
|
225
|
+
/* @__PURE__ */ v("td", {
|
|
226
|
+
className: a(S, "ttw:text-right ttw:whitespace-nowrap"),
|
|
226
227
|
children: e.amount
|
|
227
228
|
})
|
|
228
229
|
]
|
|
229
|
-
}, e.id)),
|
|
230
|
-
className:
|
|
231
|
-
children: [/* @__PURE__ */
|
|
230
|
+
}, e.id)), E.amountRows.map((e) => /* @__PURE__ */ y("tr", {
|
|
231
|
+
className: a(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
|
|
232
|
+
children: [/* @__PURE__ */ v("td", {
|
|
232
233
|
colSpan: 2,
|
|
233
|
-
className:
|
|
234
|
+
className: C,
|
|
234
235
|
children: e.label
|
|
235
|
-
}), /* @__PURE__ */
|
|
236
|
-
className:
|
|
236
|
+
}), /* @__PURE__ */ v("td", {
|
|
237
|
+
className: a(S, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
|
|
237
238
|
children: e.value
|
|
238
239
|
})]
|
|
239
240
|
}, e.label))] })]
|
|
240
241
|
}) }),
|
|
241
|
-
|
|
242
|
-
view:
|
|
243
|
-
labels:
|
|
242
|
+
E.approvalPolicy ? /* @__PURE__ */ v(s, {
|
|
243
|
+
view: E.approvalPolicy,
|
|
244
|
+
labels: z.approvalPolicy
|
|
244
245
|
}) : null,
|
|
245
|
-
|
|
246
|
+
E.history.length ? /* @__PURE__ */ y("section", {
|
|
246
247
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
247
|
-
children: [/* @__PURE__ */
|
|
248
|
-
className:
|
|
249
|
-
children:
|
|
250
|
-
}), /* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
249
|
+
className: x,
|
|
250
|
+
children: z.historyHeading
|
|
251
|
+
}), /* @__PURE__ */ v("ul", {
|
|
251
252
|
className: "ttw:flex ttw:flex-col",
|
|
252
|
-
children:
|
|
253
|
+
children: E.history.map((e) => /* @__PURE__ */ y("li", {
|
|
253
254
|
className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
|
|
254
|
-
children: [/* @__PURE__ */
|
|
255
|
+
children: [/* @__PURE__ */ v("span", {
|
|
255
256
|
className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
|
|
256
257
|
children: e.dateLabel
|
|
257
|
-
}), /* @__PURE__ */
|
|
258
|
+
}), /* @__PURE__ */ v("span", { children: e.description })]
|
|
258
259
|
}, e.id))
|
|
259
260
|
})]
|
|
260
261
|
}) : null
|
|
@@ -262,4 +263,4 @@ function T({ view: T, actions: E = h, scheduledSummary: D, scheduledStatusLabel:
|
|
|
262
263
|
});
|
|
263
264
|
}
|
|
264
265
|
//#endregion
|
|
265
|
-
export {
|
|
266
|
+
export { E as BillDetailBody, E as default };
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
import { LABEL_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js
|
|
2
|
-
var
|
|
3
|
+
var t = {
|
|
3
4
|
invoiceNumber: "Invoice number",
|
|
4
5
|
invoiceDate: "Invoice date",
|
|
5
6
|
dueDate: "Due date",
|
|
6
|
-
poNumber: "PO number
|
|
7
|
+
poNumber: "PO number",
|
|
8
|
+
fieldMarkers: e
|
|
7
9
|
};
|
|
10
|
+
function n(e) {
|
|
11
|
+
return {
|
|
12
|
+
...t,
|
|
13
|
+
...e,
|
|
14
|
+
fieldMarkers: {
|
|
15
|
+
...t.fieldMarkers,
|
|
16
|
+
...e?.fieldMarkers
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
8
20
|
//#endregion
|
|
9
|
-
export {
|
|
21
|
+
export { t as BILL_FORM_FIELDS_LABELS_EN, n as mergeBillFormFieldsLabels };
|
|
@@ -1,51 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useId as
|
|
4
|
-
import { jsx as
|
|
1
|
+
import { FieldRequirement as e, Input as t, Label as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { mergeBillFormFieldsLabels as r } from "./index33.js";
|
|
3
|
+
import { useId as i } from "react";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
var s = 255, c = {
|
|
7
|
+
invoiceDate: e.Required,
|
|
8
|
+
dueDate: e.Required,
|
|
9
|
+
invoiceNumber: e.Required,
|
|
10
|
+
poNumber: e.Optional
|
|
11
|
+
};
|
|
12
|
+
function l({ values: l, errors: u, onChange: d, disabled: f, testId: p, labels: m }) {
|
|
13
|
+
let h = r(m), g = i(), _ = (r, i, p) => {
|
|
14
|
+
let m = `${g}-${r}`, _ = `${m}-error`, v = u?.[r], y = c[r];
|
|
15
|
+
return /* @__PURE__ */ o("div", {
|
|
14
16
|
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
15
17
|
children: [
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
htmlFor:
|
|
18
|
-
|
|
18
|
+
/* @__PURE__ */ a(n, {
|
|
19
|
+
htmlFor: m,
|
|
20
|
+
requirement: y,
|
|
21
|
+
labels: h.fieldMarkers,
|
|
22
|
+
children: i
|
|
19
23
|
}),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
id:
|
|
22
|
-
type:
|
|
23
|
-
value:
|
|
24
|
-
disabled:
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"aria-
|
|
28
|
-
|
|
24
|
+
/* @__PURE__ */ a(t, {
|
|
25
|
+
id: m,
|
|
26
|
+
type: p,
|
|
27
|
+
value: l[r],
|
|
28
|
+
disabled: f,
|
|
29
|
+
"aria-required": y === e.Required || void 0,
|
|
30
|
+
maxLength: r === "poNumber" ? s : void 0,
|
|
31
|
+
"aria-invalid": v ? !0 : void 0,
|
|
32
|
+
"aria-describedby": v ? _ : void 0,
|
|
33
|
+
onChange: (e) => d({ [r]: e.target.value })
|
|
29
34
|
}),
|
|
30
|
-
|
|
31
|
-
id:
|
|
35
|
+
v ? /* @__PURE__ */ a("p", {
|
|
36
|
+
id: _,
|
|
32
37
|
className: "ttw:text-sm ttw:text-destructive",
|
|
33
|
-
children:
|
|
38
|
+
children: v
|
|
34
39
|
}) : null
|
|
35
40
|
]
|
|
36
41
|
});
|
|
37
42
|
};
|
|
38
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ o("div", {
|
|
39
44
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
40
|
-
"data-testid":
|
|
41
|
-
children: [/* @__PURE__ */
|
|
45
|
+
"data-testid": p,
|
|
46
|
+
children: [/* @__PURE__ */ o("div", {
|
|
42
47
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
43
|
-
children: [
|
|
44
|
-
}), /* @__PURE__ */
|
|
48
|
+
children: [_("invoiceDate", h.invoiceDate, "date"), _("dueDate", h.dueDate, "date")]
|
|
49
|
+
}), /* @__PURE__ */ o("div", {
|
|
45
50
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
46
|
-
children: [
|
|
51
|
+
children: [_("invoiceNumber", h.invoiceNumber), _("poNumber", h.poNumber)]
|
|
47
52
|
})]
|
|
48
53
|
});
|
|
49
54
|
}
|
|
50
55
|
//#endregion
|
|
51
|
-
export {
|
|
56
|
+
export { l as BillFormFields, l as default };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { LABEL_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js
|
|
2
|
-
var
|
|
3
|
+
var t = {
|
|
3
4
|
heading: "Line items",
|
|
4
5
|
helpText: "Enter a single amount for this payment, or split it into line items to assign a GL code to each one.",
|
|
5
6
|
description: "Description",
|
|
6
7
|
descriptionPlaceholder: "e.g., Office supplies",
|
|
7
|
-
glCode: "GL code
|
|
8
|
+
glCode: "GL code",
|
|
8
9
|
glCodePlaceholder: "Select",
|
|
9
10
|
glCodeClear: "Clear GL code",
|
|
10
11
|
quantity: "Quantity",
|
|
@@ -17,7 +18,18 @@ var e = {
|
|
|
17
18
|
addLineItem: "+ Add line item",
|
|
18
19
|
increaseQuantity: (e) => `Increase quantity — line item ${e}`,
|
|
19
20
|
decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
|
|
20
|
-
removeLineItem: (e) => `Remove line item ${e}
|
|
21
|
+
removeLineItem: (e) => `Remove line item ${e}`,
|
|
22
|
+
fieldMarkers: e
|
|
21
23
|
};
|
|
24
|
+
function n(e) {
|
|
25
|
+
return {
|
|
26
|
+
...t,
|
|
27
|
+
...e,
|
|
28
|
+
fieldMarkers: {
|
|
29
|
+
...t.fieldMarkers,
|
|
30
|
+
...e?.fieldMarkers
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
22
34
|
//#endregion
|
|
23
|
-
export {
|
|
35
|
+
export { t as LINE_ITEMS_SECTION_LABELS_EN, n as mergeLineItemsSectionLabels };
|