@tesouro/embedded-components-react 0.5.141 → 0.5.144
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.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- 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/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +21 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +8 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +78 -135
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +139 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +44 -186
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +108 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +188 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -406
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +403 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +13 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +77 -221
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +212 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +44 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +234 -557
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +581 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +45 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +261 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +6 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +126 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +19 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +76 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +48 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +249 -142
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +27 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +160 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +217 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +3 -112
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +104 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +102 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +125 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +29 -177
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +178 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +106 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +27 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +123 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -99
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +97 -273
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +273 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +47 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -374
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +369 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +93 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +53 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +195 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +78 -308
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +311 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +37 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +37 -199
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +199 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -402
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +413 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +8 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +118 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +92 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +1 -105
- 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/util/dist/lib/relativeCalendarDay.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -125
|
@@ -1,2 +1,79 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./
|
|
1
|
+
import { REQUIRED_FIELDS_LEGEND_LABELS_EN as e, mergeRequiredFieldsLegendLabels as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { APPROVAL_POLICY_CARD_LABELS_EN as n } from "./index12.js";
|
|
3
|
+
import "./index14.js";
|
|
4
|
+
import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index20.js";
|
|
5
|
+
import "./index22.js";
|
|
6
|
+
import { DUE_DATE_VALUE_LABELS_EN as i } from "./index23.js";
|
|
7
|
+
import "./index25.js";
|
|
8
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as a } from "./index29.js";
|
|
9
|
+
import "./index31.js";
|
|
10
|
+
import { BILL_AUDIT_HISTORY_SECTION_LABELS_EN as o } from "./index38.js";
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js
|
|
12
|
+
var s = {
|
|
13
|
+
errorTitle: "Couldn't load this bill",
|
|
14
|
+
errorDescription: "Something went wrong. Try again.",
|
|
15
|
+
amountDueHeading: "Amount due",
|
|
16
|
+
amountPaidHeading: "Amount paid",
|
|
17
|
+
invoiceDateLabel: "Invoice date",
|
|
18
|
+
dueDateLabel: "Due date",
|
|
19
|
+
approvalOverrideNotice: "You can approve or reject this bill from the menu in the top right, bypassing any remaining approvers.",
|
|
20
|
+
payToHeading: "Pay to",
|
|
21
|
+
payToHeadingPaid: "Paid to",
|
|
22
|
+
vendorRow: "Vendor",
|
|
23
|
+
paymentInstructionsRow: "ACH bank account",
|
|
24
|
+
invoiceDetailsHeading: "Invoice details",
|
|
25
|
+
addPaymentInstructions: "Add payment instructions",
|
|
26
|
+
missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
|
|
27
|
+
descriptionAndGlCodeColumn: "Description and GL code",
|
|
28
|
+
qtyPriceColumn: "Qty/Price",
|
|
29
|
+
amountColumn: "Amount",
|
|
30
|
+
paymentHistoryHeading: "Payment history",
|
|
31
|
+
paymentHistoryErrorDescription: "Couldn't load payment history.",
|
|
32
|
+
history: o,
|
|
33
|
+
statusBadge: r,
|
|
34
|
+
approvalPolicy: n,
|
|
35
|
+
dueDate: i,
|
|
36
|
+
payToCard: {
|
|
37
|
+
...a,
|
|
38
|
+
editAction: "Edit vendor"
|
|
39
|
+
},
|
|
40
|
+
requiredFieldsLegend: e
|
|
41
|
+
};
|
|
42
|
+
function c(e) {
|
|
43
|
+
let n = {
|
|
44
|
+
...s.payToCard.ach.fieldMarkers,
|
|
45
|
+
...e?.payToCard?.ach?.fieldMarkers
|
|
46
|
+
};
|
|
47
|
+
return {
|
|
48
|
+
...s,
|
|
49
|
+
...e,
|
|
50
|
+
statusBadge: {
|
|
51
|
+
...s.statusBadge,
|
|
52
|
+
...e?.statusBadge
|
|
53
|
+
},
|
|
54
|
+
approvalPolicy: {
|
|
55
|
+
...s.approvalPolicy,
|
|
56
|
+
...e?.approvalPolicy
|
|
57
|
+
},
|
|
58
|
+
dueDate: {
|
|
59
|
+
...s.dueDate,
|
|
60
|
+
...e?.dueDate
|
|
61
|
+
},
|
|
62
|
+
payToCard: {
|
|
63
|
+
...s.payToCard,
|
|
64
|
+
...e?.payToCard,
|
|
65
|
+
ach: {
|
|
66
|
+
...s.payToCard.ach,
|
|
67
|
+
...e?.payToCard?.ach,
|
|
68
|
+
fieldMarkers: n
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
history: {
|
|
72
|
+
...s.history,
|
|
73
|
+
...e?.history
|
|
74
|
+
},
|
|
75
|
+
requiredFieldsLegend: t(n, e?.requiredFieldsLegend)
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { s as BILL_DETAIL_BODY_LABELS_EN, c as mergeBillDetailBodyLabels };
|
|
@@ -1,21 +1,276 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuditHistoryList as e, Badge as t, Button as n, RequiredFieldsLegend as r, Skeleton as i, Typography as a, cn as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as s } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
|
+
import "../../../shared/ui/dist/index.js";
|
|
4
|
+
import { ApprovalPolicyCard as c } from "./index13.js";
|
|
5
|
+
import "./index14.js";
|
|
6
|
+
import { BillRejectionNotice as l } from "./index19.js";
|
|
7
|
+
import { BillStatusBadge as u } from "./index21.js";
|
|
8
|
+
import "./index22.js";
|
|
9
|
+
import { DueDateValue as d } from "./index24.js";
|
|
10
|
+
import "./index25.js";
|
|
11
|
+
import { PaymentHistoryList as f } from "./index26.js";
|
|
12
|
+
import "./index27.js";
|
|
13
|
+
import { VendorSummaryCard as p } from "./index30.js";
|
|
14
|
+
import "./index31.js";
|
|
15
|
+
import { mergeBillDetailBodyLabels as m } from "./index39.js";
|
|
16
|
+
import { ScheduledSummaryBadge as h } from "./index17.js";
|
|
17
|
+
import { BillActionButtons as g, NO_BILL_ACTIONS as _ } from "./index18.js";
|
|
18
|
+
import { useMemo as v } from "react";
|
|
19
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
20
|
+
import { AlertTriangle as x } from "lucide-react";
|
|
2
21
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
...
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
var S = "ttw:text-base ttw:font-semibold", C = "ttw:px-3 ttw:py-2", w = "ttw:py-2 ttw:pr-3", T = "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5", E = "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground";
|
|
23
|
+
function D({ view: D, actions: O = _, scheduledSummary: k, scheduledSummaryDate: A, scheduledStatusLabel: j, showApprovalOverrideNotice: M, awaitingApprovalNotice: N, payTo: P, hideMissingPaymentInstructions: F, paymentHistoryError: I, paymentHistoryLoading: L, historyError: R, historyLoading: z, historyNamesError: B, isLoading: V, isError: H, labels: U }) {
|
|
24
|
+
let W = v(() => m(U), [U]), G = v(() => ({
|
|
25
|
+
...W.payToCard,
|
|
26
|
+
payToHeading: D?.paidOnLabel ? W.payToHeadingPaid : W.payToHeading,
|
|
27
|
+
vendorLabel: W.vendorRow,
|
|
28
|
+
achBankAccountLabel: W.paymentInstructionsRow
|
|
29
|
+
}), [W, D?.paidOnLabel]), K = v(() => ({
|
|
30
|
+
...W.statusBadge,
|
|
31
|
+
...j ? { scheduled: j } : void 0
|
|
32
|
+
}), [W.statusBadge, j]);
|
|
33
|
+
if (H) return /* @__PURE__ */ y(s, {
|
|
34
|
+
title: W.errorTitle,
|
|
35
|
+
description: W.errorDescription
|
|
36
|
+
});
|
|
37
|
+
if (V || !D) return /* @__PURE__ */ b("div", {
|
|
38
|
+
"aria-hidden": !0,
|
|
39
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ y(i, { className: "ttw:h-40 ttw:w-full" }),
|
|
42
|
+
/* @__PURE__ */ y(i, { className: "ttw:h-32 ttw:w-full" }),
|
|
43
|
+
/* @__PURE__ */ y(i, { className: "ttw:h-24 ttw:w-full" })
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
let q = F ? void 0 : P?.paymentInstructions, J = D.payTo.hasPaymentInstructions ? void 0 : q;
|
|
47
|
+
return /* @__PURE__ */ b("div", {
|
|
48
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
49
|
+
children: [
|
|
50
|
+
J ? /* @__PURE__ */ b("div", {
|
|
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
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ y(x, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
|
|
54
|
+
/* @__PURE__ */ y("p", {
|
|
55
|
+
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
56
|
+
children: W.missingPaymentInstructionsBanner
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ y(n, {
|
|
59
|
+
type: "button",
|
|
60
|
+
variant: "outline",
|
|
61
|
+
size: "sm",
|
|
62
|
+
onClick: J.onOpen,
|
|
63
|
+
children: W.addPaymentInstructions
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
}) : null,
|
|
67
|
+
/* @__PURE__ */ b("section", {
|
|
68
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
|
|
69
|
+
children: [
|
|
70
|
+
D.paidOnLabel ? /* @__PURE__ */ b("div", {
|
|
71
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
72
|
+
children: [/* @__PURE__ */ b("div", {
|
|
73
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
74
|
+
children: [/* @__PURE__ */ y("span", {
|
|
75
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
76
|
+
children: W.amountDueHeading
|
|
77
|
+
}), /* @__PURE__ */ y("span", {
|
|
78
|
+
className: "ttw:text-3xl ttw:font-semibold",
|
|
79
|
+
children: D.amountDue
|
|
80
|
+
})]
|
|
81
|
+
}), /* @__PURE__ */ b("div", {
|
|
82
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
83
|
+
children: [/* @__PURE__ */ y("span", {
|
|
84
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
85
|
+
children: W.amountPaidHeading
|
|
86
|
+
}), /* @__PURE__ */ y("span", {
|
|
87
|
+
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
88
|
+
children: D.amountPaid
|
|
89
|
+
})]
|
|
90
|
+
})]
|
|
91
|
+
}) : /* @__PURE__ */ b("div", {
|
|
92
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
93
|
+
children: [/* @__PURE__ */ y("span", {
|
|
94
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
95
|
+
children: W.amountDueHeading
|
|
96
|
+
}), /* @__PURE__ */ y("span", {
|
|
97
|
+
className: "ttw:text-3xl ttw:font-semibold",
|
|
98
|
+
children: D.amountDue
|
|
99
|
+
})]
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ y("div", { children: D.paidOnLabel ? /* @__PURE__ */ y(t, {
|
|
102
|
+
variant: "outline",
|
|
103
|
+
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
104
|
+
children: D.paidOnLabel
|
|
105
|
+
}) : k ? /* @__PURE__ */ y(h, {
|
|
106
|
+
summary: k,
|
|
107
|
+
date: A
|
|
108
|
+
}) : /* @__PURE__ */ y(u, {
|
|
109
|
+
status: D.status,
|
|
110
|
+
tone: D.statusTone,
|
|
111
|
+
labels: K
|
|
112
|
+
}) }),
|
|
113
|
+
/* @__PURE__ */ b("div", {
|
|
114
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
115
|
+
children: [/* @__PURE__ */ b("div", {
|
|
116
|
+
className: "ttw:flex ttw:flex-col",
|
|
117
|
+
children: [/* @__PURE__ */ y("span", {
|
|
118
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
119
|
+
children: W.invoiceDateLabel
|
|
120
|
+
}), /* @__PURE__ */ y("span", {
|
|
121
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
122
|
+
children: D.invoiceDateLabel
|
|
123
|
+
})]
|
|
124
|
+
}), /* @__PURE__ */ b("div", {
|
|
125
|
+
className: "ttw:flex ttw:flex-col",
|
|
126
|
+
children: [/* @__PURE__ */ y("span", {
|
|
127
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
128
|
+
children: W.dueDateLabel
|
|
129
|
+
}), /* @__PURE__ */ y(d, {
|
|
130
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
131
|
+
value: D.dueDateLabel,
|
|
132
|
+
tone: D.dueDateTone,
|
|
133
|
+
labels: W.dueDate
|
|
134
|
+
})]
|
|
135
|
+
})]
|
|
136
|
+
}),
|
|
137
|
+
D.rejection ? /* @__PURE__ */ y(l, { ...D.rejection }) : null,
|
|
138
|
+
M ? /* @__PURE__ */ y(a, {
|
|
139
|
+
variant: "caption",
|
|
140
|
+
color: "muted",
|
|
141
|
+
children: W.approvalOverrideNotice
|
|
142
|
+
}) : N ? /* @__PURE__ */ y(a, {
|
|
143
|
+
variant: "caption",
|
|
144
|
+
color: "muted",
|
|
145
|
+
children: N
|
|
146
|
+
}) : null,
|
|
147
|
+
!k && O.row.length ? /* @__PURE__ */ y("div", {
|
|
148
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
149
|
+
children: /* @__PURE__ */ y(g, { actions: O.row })
|
|
150
|
+
}) : null
|
|
151
|
+
]
|
|
152
|
+
}),
|
|
153
|
+
q?.isOpen && !F ? /* @__PURE__ */ y(r, { labels: W.requiredFieldsLegend }) : null,
|
|
154
|
+
P?.editForm ? /* @__PURE__ */ b("div", {
|
|
155
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
156
|
+
children: [P.editForm, /* @__PURE__ */ y(p, {
|
|
157
|
+
summary: D.payTo,
|
|
158
|
+
paymentInstructions: q,
|
|
159
|
+
labels: G
|
|
160
|
+
})]
|
|
161
|
+
}) : /* @__PURE__ */ y(p, {
|
|
162
|
+
summary: D.payTo,
|
|
163
|
+
onEdit: P?.onEdit,
|
|
164
|
+
paymentInstructions: q,
|
|
165
|
+
labels: G
|
|
166
|
+
}),
|
|
167
|
+
D.paymentHistory.length || I || L ? /* @__PURE__ */ b("section", {
|
|
168
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
169
|
+
children: [/* @__PURE__ */ y("h3", {
|
|
170
|
+
className: S,
|
|
171
|
+
children: W.paymentHistoryHeading
|
|
172
|
+
}), I ? /* @__PURE__ */ y("p", {
|
|
173
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
174
|
+
children: W.paymentHistoryErrorDescription
|
|
175
|
+
}) : L ? /* @__PURE__ */ y(i, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ y(f, { records: D.paymentHistory })]
|
|
176
|
+
}) : null,
|
|
177
|
+
/* @__PURE__ */ b("section", {
|
|
178
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
179
|
+
children: [/* @__PURE__ */ y("h3", {
|
|
180
|
+
className: S,
|
|
181
|
+
children: W.invoiceDetailsHeading
|
|
182
|
+
}), /* @__PURE__ */ y("dl", {
|
|
183
|
+
className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
184
|
+
children: D.invoiceFields.map((e) => /* @__PURE__ */ b("div", {
|
|
185
|
+
className: T,
|
|
186
|
+
children: [/* @__PURE__ */ y("dt", {
|
|
187
|
+
className: E,
|
|
188
|
+
children: e.label
|
|
189
|
+
}), /* @__PURE__ */ y("dd", {
|
|
190
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
191
|
+
children: e.value
|
|
192
|
+
})]
|
|
193
|
+
}, e.label))
|
|
194
|
+
})]
|
|
195
|
+
}),
|
|
196
|
+
/* @__PURE__ */ y("section", { children: /* @__PURE__ */ b("table", {
|
|
197
|
+
className: "ttw:w-full ttw:text-sm",
|
|
198
|
+
children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", {
|
|
199
|
+
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
200
|
+
children: [
|
|
201
|
+
/* @__PURE__ */ y("th", {
|
|
202
|
+
className: o(w, "ttw:text-left ttw:font-normal"),
|
|
203
|
+
children: W.descriptionAndGlCodeColumn
|
|
204
|
+
}),
|
|
205
|
+
/* @__PURE__ */ y("th", {
|
|
206
|
+
className: o(C, "ttw:text-right ttw:font-normal"),
|
|
207
|
+
children: W.qtyPriceColumn
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ y("th", {
|
|
210
|
+
className: o(C, "ttw:text-right ttw:font-normal"),
|
|
211
|
+
children: W.amountColumn
|
|
212
|
+
})
|
|
213
|
+
]
|
|
214
|
+
}) }), /* @__PURE__ */ b("tbody", { children: [D.lineItems.map((e) => /* @__PURE__ */ b("tr", {
|
|
215
|
+
className: "ttw:border-b ttw:border-border",
|
|
216
|
+
children: [
|
|
217
|
+
/* @__PURE__ */ y("td", {
|
|
218
|
+
className: w,
|
|
219
|
+
children: /* @__PURE__ */ b("div", {
|
|
220
|
+
className: "ttw:flex ttw:flex-col",
|
|
221
|
+
children: [/* @__PURE__ */ y("span", { children: e.description }), /* @__PURE__ */ y("span", {
|
|
222
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
223
|
+
children: e.glCodeLabel
|
|
224
|
+
})]
|
|
225
|
+
})
|
|
226
|
+
}),
|
|
227
|
+
/* @__PURE__ */ y("td", {
|
|
228
|
+
className: o(C, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
|
|
229
|
+
children: e.qtyPriceLabel
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ y("td", {
|
|
232
|
+
className: o(C, "ttw:text-right ttw:whitespace-nowrap"),
|
|
233
|
+
children: e.amount
|
|
234
|
+
})
|
|
235
|
+
]
|
|
236
|
+
}, e.id)), D.amountRows.map((e) => /* @__PURE__ */ b("tr", {
|
|
237
|
+
className: o(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
|
|
238
|
+
children: [/* @__PURE__ */ y("td", {
|
|
239
|
+
colSpan: 2,
|
|
240
|
+
className: w,
|
|
241
|
+
children: e.label
|
|
242
|
+
}), /* @__PURE__ */ y("td", {
|
|
243
|
+
className: o(C, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
|
|
244
|
+
children: e.value
|
|
245
|
+
})]
|
|
246
|
+
}, e.label))] })]
|
|
247
|
+
}) }),
|
|
248
|
+
D.approvalPolicy ? /* @__PURE__ */ y(c, {
|
|
249
|
+
view: D.approvalPolicy,
|
|
250
|
+
labels: W.approvalPolicy
|
|
251
|
+
}) : null,
|
|
252
|
+
/* @__PURE__ */ b("section", {
|
|
253
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
254
|
+
children: [
|
|
255
|
+
/* @__PURE__ */ y("h3", {
|
|
256
|
+
className: S,
|
|
257
|
+
children: W.history.heading
|
|
258
|
+
}),
|
|
259
|
+
B ? /* @__PURE__ */ y(a, {
|
|
260
|
+
variant: "caption",
|
|
261
|
+
color: "muted",
|
|
262
|
+
children: W.history.namesError
|
|
263
|
+
}) : null,
|
|
264
|
+
/* @__PURE__ */ y(e, {
|
|
265
|
+
rows: D.history,
|
|
266
|
+
isLoading: z,
|
|
267
|
+
isError: R,
|
|
268
|
+
labels: W.history
|
|
269
|
+
})
|
|
270
|
+
]
|
|
271
|
+
})
|
|
272
|
+
]
|
|
273
|
+
});
|
|
19
274
|
}
|
|
20
275
|
//#endregion
|
|
21
|
-
export {
|
|
276
|
+
export { D as BillDetailBody, D as default };
|
|
@@ -1,56 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { useId as i } from "react";
|
|
4
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js
|
|
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", {
|
|
16
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
17
|
-
children: [
|
|
18
|
-
/* @__PURE__ */ a(n, {
|
|
19
|
-
htmlFor: m,
|
|
20
|
-
requirement: y,
|
|
21
|
-
labels: h.fieldMarkers,
|
|
22
|
-
children: i
|
|
23
|
-
}),
|
|
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 })
|
|
34
|
-
}),
|
|
35
|
-
v ? /* @__PURE__ */ a("p", {
|
|
36
|
-
id: _,
|
|
37
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
38
|
-
children: v
|
|
39
|
-
}) : null
|
|
40
|
-
]
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
return /* @__PURE__ */ o("div", {
|
|
44
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
45
|
-
"data-testid": p,
|
|
46
|
-
children: [/* @__PURE__ */ o("div", {
|
|
47
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
48
|
-
children: [_("invoiceDate", h.invoiceDate, "date"), _("dueDate", h.dueDate, "date")]
|
|
49
|
-
}), /* @__PURE__ */ o("div", {
|
|
50
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
51
|
-
children: [_("invoiceNumber", h.invoiceNumber), _("poNumber", h.poNumber)]
|
|
52
|
-
})]
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
//#endregion
|
|
56
|
-
export { l as BillFormFields, l as default };
|
|
1
|
+
import "./index39.js";
|
|
2
|
+
import "./index40.js";
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
1
|
+
import { LABEL_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js
|
|
3
|
+
var t = {
|
|
4
|
+
invoiceNumber: "Invoice number",
|
|
5
|
+
invoiceDate: "Invoice date",
|
|
6
|
+
dueDate: "Due date",
|
|
7
|
+
poNumber: "PO number",
|
|
8
|
+
fieldMarkers: e
|
|
9
|
+
};
|
|
10
|
+
function n(e) {
|
|
11
|
+
return {
|
|
12
|
+
...t,
|
|
13
|
+
...e,
|
|
14
|
+
fieldMarkers: {
|
|
15
|
+
...t.fieldMarkers,
|
|
16
|
+
...e?.fieldMarkers
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { t as BILL_FORM_FIELDS_LABELS_EN, n as mergeBillFormFieldsLabels };
|
|
@@ -1,18 +1,56 @@
|
|
|
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 "./index42.js";
|
|
3
|
+
import { useId as i } from "react";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
1
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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", {
|
|
16
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ a(n, {
|
|
19
|
+
htmlFor: m,
|
|
20
|
+
requirement: y,
|
|
21
|
+
labels: h.fieldMarkers,
|
|
22
|
+
children: i
|
|
23
|
+
}),
|
|
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 })
|
|
34
|
+
}),
|
|
35
|
+
v ? /* @__PURE__ */ a("p", {
|
|
36
|
+
id: _,
|
|
37
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
38
|
+
children: v
|
|
39
|
+
}) : null
|
|
40
|
+
]
|
|
13
41
|
});
|
|
14
|
-
}
|
|
15
|
-
return
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ o("div", {
|
|
44
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
45
|
+
"data-testid": p,
|
|
46
|
+
children: [/* @__PURE__ */ o("div", {
|
|
47
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
48
|
+
children: [_("invoiceDate", h.invoiceDate, "date"), _("dueDate", h.dueDate, "date")]
|
|
49
|
+
}), /* @__PURE__ */ o("div", {
|
|
50
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
51
|
+
children: [_("invoiceNumber", h.invoiceNumber), _("poNumber", h.poNumber)]
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
16
54
|
}
|
|
17
55
|
//#endregion
|
|
18
|
-
export {
|
|
56
|
+
export { l as BillFormFields, l as default };
|
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js
|
|
7
|
-
function h({ actions: h, triggerLabel: g, placement: _ = "row", testId: v }) {
|
|
8
|
-
let y = u();
|
|
9
|
-
if (!h.length) return null;
|
|
10
|
-
let b = _ === "header", x = b ? p : m, S = c(h);
|
|
11
|
-
return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ d(s, {
|
|
12
|
-
asChild: !0,
|
|
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
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
export { h as BillOverflowMenu, h as default };
|
|
1
|
+
import "./index42.js";
|
|
2
|
+
import "./index43.js";
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js
|
|
2
|
+
function e(e) {
|
|
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 };
|