@tesouro/embedded-components-react 0.3.23 → 0.3.25
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/index10.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +47 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +108 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.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/index69.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +23 -266
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +46 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +273 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +45 -282
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +273 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +113 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +95 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +53 -137
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +138 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +37 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +11 -253
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +82 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +264 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +9 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +3 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +188 -301
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +317 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +91 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +14 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +109 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +163 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +108 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +27 -27
- 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/index71.js +0 -113
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { DuplicateBillsDialog as e } from "../../ui/dist/
|
|
5
|
+
import { DuplicateBillsDialog as e } from "../../ui/dist/index74.js";
|
|
6
6
|
import "../../ui/dist/index.js";
|
|
7
7
|
import { DUPLICATE_BILLS_LABELS_EN as t } from "./index57.js";
|
|
8
8
|
import { useDuplicateBillsSelection as n } from "./index58.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { formatMoneyExact as e } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
6
|
-
import { BillsFilterField as t } from "../../ui/dist/
|
|
6
|
+
import { BillsFilterField as t } from "../../ui/dist/index63.js";
|
|
7
7
|
import "../../ui/dist/index.js";
|
|
8
8
|
import "../../data-access/dist/index.js";
|
|
9
9
|
import { getCounterpartName as n } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
@@ -50,6 +50,7 @@ function x({ enabled: x = !0, canReadVendors: S = !0, isVendorFilterPaused: C =
|
|
|
50
50
|
vendorLabel: n(r),
|
|
51
51
|
issueDateLabel: e(r.issued_at),
|
|
52
52
|
dueDateLabel: e(r.due_date),
|
|
53
|
+
dueDateTone: i.isOverdue ? "danger" : "default",
|
|
53
54
|
scheduledDateLabel: e(r.scheduled_payment_date),
|
|
54
55
|
paidDateLabel: e(r.paid_at?.slice(0, 10)),
|
|
55
56
|
amountDueLabel: s(o),
|
|
@@ -10,7 +10,7 @@ import "../../../shared/ui/dist/index.js";
|
|
|
10
10
|
import { useWidgetConfig as ee, useWidgetInitStaleForToken as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
11
|
import "../../../shared/feature/dist/index.js";
|
|
12
12
|
import { AddBillDialog as i } from "../../ui/dist/index10.js";
|
|
13
|
-
import { BillsScreen as a } from "../../ui/dist/
|
|
13
|
+
import { BillsScreen as a } from "../../ui/dist/index67.js";
|
|
14
14
|
import "../../ui/dist/index.js";
|
|
15
15
|
import { BillCreateDialog as o } from "./index44.js";
|
|
16
16
|
import "./index45.js";
|
|
@@ -11,8 +11,8 @@ import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analyti
|
|
|
11
11
|
import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
12
12
|
import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
13
|
import "../../../shared/feature/dist/index.js";
|
|
14
|
-
import { BillPayWidgetUi as o } from "../../ui/dist/
|
|
15
|
-
import { BillUploadStatusTray as s } from "../../ui/dist/
|
|
14
|
+
import { BillPayWidgetUi as o } from "../../ui/dist/index47.js";
|
|
15
|
+
import { BillUploadStatusTray as s } from "../../ui/dist/index70.js";
|
|
16
16
|
import "../../ui/dist/index.js";
|
|
17
17
|
import { ApprovalPoliciesSettings as c } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
18
18
|
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
@@ -27,56 +27,59 @@ import "./index30.js";
|
|
|
27
27
|
import "./index31.js";
|
|
28
28
|
import "./index32.js";
|
|
29
29
|
import "./index33.js";
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
30
|
+
import "./index34.js";
|
|
31
|
+
import "./index35.js";
|
|
32
|
+
import "./index36.js";
|
|
33
33
|
import "./index40.js";
|
|
34
|
-
import
|
|
34
|
+
import "./index41.js";
|
|
35
35
|
import "./index42.js";
|
|
36
36
|
import "./index43.js";
|
|
37
|
-
import {
|
|
37
|
+
import { BillCreateScreen as n } from "./index44.js";
|
|
38
38
|
import "./index45.js";
|
|
39
39
|
import "./index46.js";
|
|
40
|
-
import {
|
|
40
|
+
import { BillPayWidgetUi as r } from "./index47.js";
|
|
41
41
|
import "./index48.js";
|
|
42
42
|
import "./index49.js";
|
|
43
|
-
import "./index50.js";
|
|
43
|
+
import { BillDecisionDialog as i } from "./index50.js";
|
|
44
44
|
import "./index51.js";
|
|
45
|
-
import
|
|
46
|
-
import
|
|
45
|
+
import "./index52.js";
|
|
46
|
+
import "./index53.js";
|
|
47
47
|
import "./index54.js";
|
|
48
|
-
import "./index55.js";
|
|
49
|
-
import "./index56.js";
|
|
50
|
-
import
|
|
48
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index55.js";
|
|
49
|
+
import { BillDetailsSheet as o } from "./index56.js";
|
|
50
|
+
import "./index57.js";
|
|
51
51
|
import "./index58.js";
|
|
52
52
|
import "./index59.js";
|
|
53
|
-
import {
|
|
53
|
+
import { BillDuplicateNotice as s } from "./index60.js";
|
|
54
54
|
import "./index61.js";
|
|
55
55
|
import "./index62.js";
|
|
56
|
-
import {
|
|
57
|
-
import
|
|
56
|
+
import { BillsFilterField as c } from "./index63.js";
|
|
57
|
+
import "./index64.js";
|
|
58
58
|
import "./index65.js";
|
|
59
|
-
import {
|
|
60
|
-
import "./
|
|
61
|
-
import "./
|
|
62
|
-
import {
|
|
59
|
+
import { BillColumn as l } from "./index66.js";
|
|
60
|
+
import { BillsScreen as u } from "./index67.js";
|
|
61
|
+
import "./index68.js";
|
|
62
|
+
import { BillUploadStatusTray as d } from "./index70.js";
|
|
63
63
|
import "./index72.js";
|
|
64
64
|
import "./index73.js";
|
|
65
|
-
import {
|
|
65
|
+
import { DuplicateBillsDialog as f } from "./index74.js";
|
|
66
66
|
import "./index75.js";
|
|
67
67
|
import "./index76.js";
|
|
68
|
-
import "./index77.js";
|
|
68
|
+
import { ExtractionNotice as p } from "./index77.js";
|
|
69
69
|
import "./index78.js";
|
|
70
|
-
import
|
|
71
|
-
import
|
|
70
|
+
import "./index79.js";
|
|
71
|
+
import "./index80.js";
|
|
72
72
|
import "./index81.js";
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
73
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as m } from "./index82.js";
|
|
74
|
+
import { ReviewTransactionDialog as h } from "./index83.js";
|
|
75
75
|
import "./index84.js";
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import "./
|
|
79
|
-
import "./
|
|
80
|
-
import {
|
|
76
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as g } from "./index85.js";
|
|
77
|
+
import { MarkAsPaidDialog as _ } from "./index86.js";
|
|
78
|
+
import "./index87.js";
|
|
79
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index88.js";
|
|
80
|
+
import { SchedulePaymentDialog as y } from "./index90.js";
|
|
81
81
|
import "./index91.js";
|
|
82
|
+
import "./index92.js";
|
|
83
|
+
import { SourceDocumentPanel as b } from "./index93.js";
|
|
84
|
+
import "./index94.js";
|
|
82
85
|
export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, l as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, s as BillDuplicateNotice, r as BillPayWidgetUi, d as BillUploadStatusTray, c as BillsFilterField, u as BillsScreen, f as DuplicateBillsDialog, p as ExtractionNotice, g as MARK_AS_PAID_DIALOG_LABELS_EN, _ as MarkAsPaidDialog, m as REVIEW_TRANSACTION_DIALOG_LABELS_EN, h as ReviewTransactionDialog, v as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, y as SchedulePaymentDialog, b as SourceDocumentPanel };
|
|
@@ -1,42 +1,4 @@
|
|
|
1
|
-
import { APPROVAL_POLICY_CARD_LABELS_EN as e } from "./index12.js";
|
|
2
|
-
import "./index14.js";
|
|
3
|
-
import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index18.js";
|
|
4
|
-
import "./index21.js";
|
|
5
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js
|
|
6
|
-
var
|
|
7
|
-
errorTitle: "Couldn't load this bill",
|
|
8
|
-
errorDescription: "Something went wrong. Try again.",
|
|
9
|
-
amountDueHeading: "Amount due",
|
|
10
|
-
invoiceDateLabel: "Invoice date",
|
|
11
|
-
dueDateLabel: "Due date",
|
|
12
|
-
payToHeading: "Pay to",
|
|
13
|
-
vendorRow: "Vendor",
|
|
14
|
-
paymentInstructionsRow: "Payment instructions",
|
|
15
|
-
addPaymentInstructions: "Add payment instructions",
|
|
16
|
-
missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
|
|
17
|
-
paymentInstructionsCancel: "Cancel",
|
|
18
|
-
paymentInstructionsSave: "Save",
|
|
19
|
-
descriptionAndGlCodeColumn: "Description and GL code",
|
|
20
|
-
qtyPriceColumn: "Qty/Price",
|
|
21
|
-
amountColumn: "Amount",
|
|
22
|
-
historyHeading: "Audit history",
|
|
23
|
-
overflowMenuTriggerLabel: "Bill actions",
|
|
24
|
-
statusBadge: t,
|
|
25
|
-
approvalPolicy: e
|
|
26
|
-
};
|
|
27
|
-
function r(e) {
|
|
28
|
-
return {
|
|
29
|
-
...n,
|
|
30
|
-
...e,
|
|
31
|
-
statusBadge: {
|
|
32
|
-
...n.statusBadge,
|
|
33
|
-
...e?.statusBadge
|
|
34
|
-
},
|
|
35
|
-
approvalPolicy: {
|
|
36
|
-
...n.approvalPolicy,
|
|
37
|
-
...e?.approvalPolicy
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
2
|
+
var e = { overdue: "Overdue" };
|
|
41
3
|
//#endregion
|
|
42
|
-
export {
|
|
4
|
+
export { e as DUE_DATE_VALUE_LABELS_EN };
|
|
@@ -1,273 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "./index14.js";
|
|
6
|
-
import { BillOverflowMenu as o } from "./index16.js";
|
|
7
|
-
import "./index17.js";
|
|
8
|
-
import { BillStatusBadge as s } from "./index20.js";
|
|
9
|
-
import "./index21.js";
|
|
10
|
-
import { mergeBillDetailBodyLabels as c } from "./index22.js";
|
|
11
|
-
import { BillActionButtons as l, NO_BILL_ACTIONS as u, hasBillActions as d } from "./index15.js";
|
|
12
|
-
import { AchFieldGroup as f } from "../../../shared/counterpart-management/ui/dist/index5.js";
|
|
13
|
-
import "../../../shared/counterpart-management/ui/dist/index.js";
|
|
14
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
15
|
-
import { AlertTriangle as h, ChevronRight as g } from "lucide-react";
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { DUE_DATE_VALUE_LABELS_EN as t } from "./index22.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { AlertTriangleIcon as i } from "lucide-react";
|
|
16
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (w || !b) return /* @__PURE__ */ m("div", {
|
|
25
|
-
"aria-hidden": !0,
|
|
26
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ p(n, { className: "ttw:h-40 ttw:w-full" }),
|
|
29
|
-
/* @__PURE__ */ p(n, { className: "ttw:h-32 ttw:w-full" }),
|
|
30
|
-
/* @__PURE__ */ p(n, { className: "ttw:h-24 ttw:w-full" })
|
|
31
|
-
]
|
|
32
|
-
});
|
|
33
|
-
let O = !b.payTo.paymentInstructionsLabel && C;
|
|
34
|
-
return /* @__PURE__ */ m("div", {
|
|
35
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
6
|
+
function a({ value: a, tone: o = "default", labels: s, className: c }) {
|
|
7
|
+
let l = {
|
|
8
|
+
...t,
|
|
9
|
+
...s
|
|
10
|
+
};
|
|
11
|
+
return o === "danger" ? /* @__PURE__ */ r("span", {
|
|
12
|
+
className: e("ttw:inline-flex ttw:items-center ttw:gap-1 ttw:font-medium ttw:text-destructive", c),
|
|
36
13
|
children: [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/* @__PURE__ */ p(h, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
|
|
41
|
-
/* @__PURE__ */ p("p", {
|
|
42
|
-
className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
|
|
43
|
-
children: D.missingPaymentInstructionsBanner
|
|
44
|
-
}),
|
|
45
|
-
/* @__PURE__ */ p(t, {
|
|
46
|
-
type: "button",
|
|
47
|
-
variant: "outline",
|
|
48
|
-
size: "sm",
|
|
49
|
-
onClick: C.onOpen,
|
|
50
|
-
children: D.addPaymentInstructions
|
|
51
|
-
})
|
|
52
|
-
]
|
|
53
|
-
}) : null,
|
|
54
|
-
/* @__PURE__ */ m("section", {
|
|
55
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ m("div", {
|
|
58
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
59
|
-
children: [/* @__PURE__ */ p("span", {
|
|
60
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
61
|
-
children: D.amountDueHeading
|
|
62
|
-
}), /* @__PURE__ */ p("span", {
|
|
63
|
-
className: "ttw:text-3xl ttw:font-semibold",
|
|
64
|
-
children: b.amountDue
|
|
65
|
-
})]
|
|
66
|
-
}),
|
|
67
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(s, {
|
|
68
|
-
status: b.status,
|
|
69
|
-
tone: b.statusTone,
|
|
70
|
-
labels: D.statusBadge
|
|
71
|
-
}) }),
|
|
72
|
-
/* @__PURE__ */ m("div", {
|
|
73
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
74
|
-
children: [/* @__PURE__ */ m("div", {
|
|
75
|
-
className: "ttw:flex ttw:flex-col",
|
|
76
|
-
children: [/* @__PURE__ */ p("span", {
|
|
77
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
78
|
-
children: D.invoiceDateLabel
|
|
79
|
-
}), /* @__PURE__ */ p("span", {
|
|
80
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
81
|
-
children: b.invoiceDateLabel
|
|
82
|
-
})]
|
|
83
|
-
}), /* @__PURE__ */ m("div", {
|
|
84
|
-
className: "ttw:flex ttw:flex-col",
|
|
85
|
-
children: [/* @__PURE__ */ p("span", {
|
|
86
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
87
|
-
children: D.dueDateLabel
|
|
88
|
-
}), /* @__PURE__ */ p("span", {
|
|
89
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
90
|
-
children: b.dueDateLabel
|
|
91
|
-
})]
|
|
92
|
-
})]
|
|
93
|
-
}),
|
|
94
|
-
S ? /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(e, {
|
|
95
|
-
variant: "outline",
|
|
96
|
-
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
97
|
-
children: S
|
|
98
|
-
}) }) : d(x) ? /* @__PURE__ */ m("div", {
|
|
99
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
100
|
-
children: [/* @__PURE__ */ p(l, { actions: x.row }), /* @__PURE__ */ p(o, {
|
|
101
|
-
actions: x.menu,
|
|
102
|
-
triggerLabel: D.overflowMenuTriggerLabel
|
|
103
|
-
})]
|
|
104
|
-
}) : null
|
|
105
|
-
]
|
|
106
|
-
}),
|
|
107
|
-
/* @__PURE__ */ m("section", {
|
|
108
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
109
|
-
children: [
|
|
110
|
-
/* @__PURE__ */ p("h3", {
|
|
111
|
-
className: _,
|
|
112
|
-
children: D.payToHeading
|
|
113
|
-
}),
|
|
114
|
-
/* @__PURE__ */ m("div", {
|
|
115
|
-
className: y,
|
|
116
|
-
children: [/* @__PURE__ */ p("span", {
|
|
117
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
118
|
-
children: D.vendorRow
|
|
119
|
-
}), /* @__PURE__ */ m("div", {
|
|
120
|
-
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-right",
|
|
121
|
-
children: [/* @__PURE__ */ m("div", {
|
|
122
|
-
className: "ttw:flex ttw:flex-col",
|
|
123
|
-
children: [/* @__PURE__ */ p("span", {
|
|
124
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-primary",
|
|
125
|
-
children: b.payTo.name
|
|
126
|
-
}), b.payTo.email ? /* @__PURE__ */ p("span", {
|
|
127
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
128
|
-
children: b.payTo.email
|
|
129
|
-
}) : null]
|
|
130
|
-
}), /* @__PURE__ */ p(g, {
|
|
131
|
-
"aria-hidden": !0,
|
|
132
|
-
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
133
|
-
})]
|
|
134
|
-
})]
|
|
135
|
-
}),
|
|
136
|
-
/* @__PURE__ */ m("div", {
|
|
137
|
-
className: y,
|
|
138
|
-
children: [/* @__PURE__ */ p("span", {
|
|
139
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
140
|
-
children: D.paymentInstructionsRow
|
|
141
|
-
}), /* @__PURE__ */ m("div", {
|
|
142
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
143
|
-
children: [b.payTo.paymentInstructionsLabel ? /* @__PURE__ */ p("span", {
|
|
144
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
145
|
-
children: b.payTo.paymentInstructionsLabel
|
|
146
|
-
}) : C ? /* @__PURE__ */ p("button", {
|
|
147
|
-
type: "button",
|
|
148
|
-
onClick: C.onOpen,
|
|
149
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
|
|
150
|
-
children: D.addPaymentInstructions
|
|
151
|
-
}) : /* @__PURE__ */ p("span", {
|
|
152
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
|
|
153
|
-
children: D.addPaymentInstructions
|
|
154
|
-
}), /* @__PURE__ */ p(g, {
|
|
155
|
-
"aria-hidden": !0,
|
|
156
|
-
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
157
|
-
})]
|
|
158
|
-
})]
|
|
159
|
-
}),
|
|
160
|
-
C?.isOpen ? /* @__PURE__ */ m("div", {
|
|
161
|
-
className: "ttw:mt-2 ttw:rounded-lg ttw:border ttw:border-border ttw:p-4",
|
|
162
|
-
children: [/* @__PURE__ */ p(f, {
|
|
163
|
-
idPrefix: "bill-detail-payment-instructions",
|
|
164
|
-
values: C.values,
|
|
165
|
-
errors: C.errors,
|
|
166
|
-
onChange: C.onChange
|
|
167
|
-
}), /* @__PURE__ */ m("div", {
|
|
168
|
-
className: "ttw:mt-4 ttw:flex ttw:justify-end ttw:gap-2",
|
|
169
|
-
children: [/* @__PURE__ */ p(t, {
|
|
170
|
-
type: "button",
|
|
171
|
-
variant: "ghost",
|
|
172
|
-
onClick: C.onCancel,
|
|
173
|
-
children: D.paymentInstructionsCancel
|
|
174
|
-
}), /* @__PURE__ */ p(t, {
|
|
175
|
-
type: "button",
|
|
176
|
-
loading: C.isSaving,
|
|
177
|
-
onClick: C.onSave,
|
|
178
|
-
children: D.paymentInstructionsSave
|
|
179
|
-
})]
|
|
180
|
-
})]
|
|
181
|
-
}) : null
|
|
182
|
-
]
|
|
183
|
-
}),
|
|
184
|
-
/* @__PURE__ */ p("dl", {
|
|
185
|
-
className: "ttw:flex ttw:flex-col",
|
|
186
|
-
children: b.invoiceFields.map((e) => /* @__PURE__ */ m("div", {
|
|
187
|
-
className: y,
|
|
188
|
-
children: [/* @__PURE__ */ p("dt", {
|
|
189
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
190
|
-
children: e.label
|
|
191
|
-
}), /* @__PURE__ */ p("dd", {
|
|
192
|
-
className: "ttw:text-right ttw:text-sm ttw:font-medium",
|
|
193
|
-
children: e.value
|
|
194
|
-
})]
|
|
195
|
-
}, e.label))
|
|
14
|
+
/* @__PURE__ */ n(i, {
|
|
15
|
+
"aria-hidden": !0,
|
|
16
|
+
className: "ttw:size-3.5 ttw:shrink-0"
|
|
196
17
|
}),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
/* @__PURE__ */ p("th", {
|
|
203
|
-
className: r(v, "ttw:text-left ttw:font-normal"),
|
|
204
|
-
children: D.descriptionAndGlCodeColumn
|
|
205
|
-
}),
|
|
206
|
-
/* @__PURE__ */ p("th", {
|
|
207
|
-
className: r(v, "ttw:text-right ttw:font-normal"),
|
|
208
|
-
children: D.qtyPriceColumn
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ p("th", {
|
|
211
|
-
className: r(v, "ttw:text-right ttw:font-normal"),
|
|
212
|
-
children: D.amountColumn
|
|
213
|
-
})
|
|
214
|
-
]
|
|
215
|
-
}) }), /* @__PURE__ */ m("tbody", { children: [b.lineItems.map((e) => /* @__PURE__ */ m("tr", {
|
|
216
|
-
className: "ttw:border-b ttw:border-border",
|
|
217
|
-
children: [
|
|
218
|
-
/* @__PURE__ */ p("td", {
|
|
219
|
-
className: v,
|
|
220
|
-
children: /* @__PURE__ */ m("div", {
|
|
221
|
-
className: "ttw:flex ttw:flex-col",
|
|
222
|
-
children: [/* @__PURE__ */ p("span", { children: e.description }), /* @__PURE__ */ p("span", {
|
|
223
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
224
|
-
children: e.glCodeLabel
|
|
225
|
-
})]
|
|
226
|
-
})
|
|
227
|
-
}),
|
|
228
|
-
/* @__PURE__ */ p("td", {
|
|
229
|
-
className: r(v, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
|
|
230
|
-
children: e.qtyPriceLabel
|
|
231
|
-
}),
|
|
232
|
-
/* @__PURE__ */ p("td", {
|
|
233
|
-
className: r(v, "ttw:text-right ttw:whitespace-nowrap"),
|
|
234
|
-
children: e.amount
|
|
235
|
-
})
|
|
236
|
-
]
|
|
237
|
-
}, e.id)), b.amountRows.map((e) => /* @__PURE__ */ m("tr", {
|
|
238
|
-
className: r(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
|
|
239
|
-
children: [/* @__PURE__ */ p("td", {
|
|
240
|
-
colSpan: 2,
|
|
241
|
-
className: v,
|
|
242
|
-
children: e.label
|
|
243
|
-
}), /* @__PURE__ */ p("td", {
|
|
244
|
-
className: r(v, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
|
|
245
|
-
children: e.value
|
|
246
|
-
})]
|
|
247
|
-
}, e.label))] })]
|
|
248
|
-
}) }),
|
|
249
|
-
b.approvalPolicy ? /* @__PURE__ */ p(a, {
|
|
250
|
-
view: b.approvalPolicy,
|
|
251
|
-
labels: D.approvalPolicy
|
|
252
|
-
}) : null,
|
|
253
|
-
b.history.length ? /* @__PURE__ */ m("section", {
|
|
254
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
255
|
-
children: [/* @__PURE__ */ p("h3", {
|
|
256
|
-
className: _,
|
|
257
|
-
children: D.historyHeading
|
|
258
|
-
}), /* @__PURE__ */ p("ul", {
|
|
259
|
-
className: "ttw:flex ttw:flex-col",
|
|
260
|
-
children: b.history.map((e) => /* @__PURE__ */ m("li", {
|
|
261
|
-
className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
|
|
262
|
-
children: [/* @__PURE__ */ p("span", {
|
|
263
|
-
className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
|
|
264
|
-
children: e.dateLabel
|
|
265
|
-
}), /* @__PURE__ */ p("span", { children: e.description })]
|
|
266
|
-
}, e.id))
|
|
267
|
-
})]
|
|
268
|
-
}) : null
|
|
18
|
+
a,
|
|
19
|
+
/* @__PURE__ */ n("span", {
|
|
20
|
+
className: "ttw:sr-only",
|
|
21
|
+
children: l.overdue
|
|
22
|
+
})
|
|
269
23
|
]
|
|
24
|
+
}) : /* @__PURE__ */ n("span", {
|
|
25
|
+
className: c,
|
|
26
|
+
children: a
|
|
270
27
|
});
|
|
271
28
|
}
|
|
272
29
|
//#endregion
|
|
273
|
-
export {
|
|
30
|
+
export { a as DueDateValue, a as default };
|
|
@@ -1,9 +1,49 @@
|
|
|
1
|
+
import { APPROVAL_POLICY_CARD_LABELS_EN as e } from "./index12.js";
|
|
2
|
+
import "./index14.js";
|
|
3
|
+
import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index18.js";
|
|
4
|
+
import "./index21.js";
|
|
5
|
+
import { DUE_DATE_VALUE_LABELS_EN as n } from "./index22.js";
|
|
6
|
+
import "./index24.js";
|
|
1
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
var r = {
|
|
9
|
+
errorTitle: "Couldn't load this bill",
|
|
10
|
+
errorDescription: "Something went wrong. Try again.",
|
|
11
|
+
amountDueHeading: "Amount due",
|
|
12
|
+
invoiceDateLabel: "Invoice date",
|
|
13
|
+
dueDateLabel: "Due date",
|
|
14
|
+
payToHeading: "Pay to",
|
|
15
|
+
vendorRow: "Vendor",
|
|
16
|
+
paymentInstructionsRow: "Payment instructions",
|
|
17
|
+
addPaymentInstructions: "Add payment instructions",
|
|
18
|
+
missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
|
|
19
|
+
paymentInstructionsCancel: "Cancel",
|
|
20
|
+
paymentInstructionsSave: "Save",
|
|
21
|
+
descriptionAndGlCodeColumn: "Description and GL code",
|
|
22
|
+
qtyPriceColumn: "Qty/Price",
|
|
23
|
+
amountColumn: "Amount",
|
|
24
|
+
historyHeading: "Audit history",
|
|
25
|
+
overflowMenuTriggerLabel: "Bill actions",
|
|
26
|
+
statusBadge: t,
|
|
27
|
+
approvalPolicy: e,
|
|
28
|
+
dueDate: n
|
|
7
29
|
};
|
|
30
|
+
function i(e) {
|
|
31
|
+
return {
|
|
32
|
+
...r,
|
|
33
|
+
...e,
|
|
34
|
+
statusBadge: {
|
|
35
|
+
...r.statusBadge,
|
|
36
|
+
...e?.statusBadge
|
|
37
|
+
},
|
|
38
|
+
approvalPolicy: {
|
|
39
|
+
...r.approvalPolicy,
|
|
40
|
+
...e?.approvalPolicy
|
|
41
|
+
},
|
|
42
|
+
dueDate: {
|
|
43
|
+
...r.dueDate,
|
|
44
|
+
...e?.dueDate
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
8
48
|
//#endregion
|
|
9
|
-
export {
|
|
49
|
+
export { r as BILL_DETAIL_BODY_LABELS_EN, i as mergeBillDetailBodyLabels };
|