@tesouro/embedded-components-react 0.5.75 → 0.5.76
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.css +0 -8
- 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 +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +140 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +46 -140
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +114 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +163 -112
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -164
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +21 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +376 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +12 -381
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +84 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +54 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +223 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +37 -223
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +245 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +571 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -572
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +247 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +123 -241
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +211 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +98 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -100
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +12 -269
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +97 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +76 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +277 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +16 -369
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +15 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +32 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +374 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +87 -188
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +10 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +88 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +167 -161
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -5
- 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/auditHistory/buildPayableAuditHistory.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1391 -1369
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -27
|
@@ -1,18 +1,100 @@
|
|
|
1
|
+
import { AUDIT_HISTORY_LABELS_EN as e, DATA_TABLE_LABELS_EN as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ADD_BILL_PANEL_LABELS_EN as n } from "./index6.js";
|
|
3
|
+
import "./index8.js";
|
|
4
|
+
import { APPROVAL_POLICY_CARD_LABELS_EN as r } from "./index12.js";
|
|
5
|
+
import "./index14.js";
|
|
6
|
+
import { BILL_STATUS_BADGE_LABELS_EN as i } from "./index18.js";
|
|
7
|
+
import "./index20.js";
|
|
8
|
+
import { DUE_DATE_VALUE_LABELS_EN as a } from "./index21.js";
|
|
9
|
+
import "./index23.js";
|
|
10
|
+
import { MISSING_VALUE_LABELS_EN as o } from "./index30.js";
|
|
11
|
+
import "./index32.js";
|
|
12
|
+
import { NO_VALUE_LABELS_EN as s } from "./index33.js";
|
|
13
|
+
import "./index35.js";
|
|
1
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
var c = {
|
|
16
|
+
...e,
|
|
17
|
+
error: "Couldn't load audit history.",
|
|
18
|
+
namesError: "Some names could not be loaded."
|
|
19
|
+
}, l = {
|
|
20
|
+
loadingTitle: "Loading bill…",
|
|
21
|
+
hiddenDescription: "Bill details",
|
|
22
|
+
errorTitle: "Couldn't load this bill",
|
|
23
|
+
errorDescription: "Something went wrong. Try again.",
|
|
24
|
+
amountDueHeading: "Amount due",
|
|
25
|
+
amountPaidHeading: "Amount paid",
|
|
26
|
+
invoiceDateLabel: "Invoice date",
|
|
27
|
+
dueDateLabel: "Due date",
|
|
28
|
+
approvalOverrideNotice: "You can approve or reject this bill from the menu in the top right, bypassing any remaining approvers.",
|
|
29
|
+
payToHeading: "Pay to",
|
|
30
|
+
payToHeadingPaid: "Paid to",
|
|
31
|
+
paymentHistoryHeading: "Payment history",
|
|
32
|
+
paymentHistoryErrorDescription: "Couldn't load payment history.",
|
|
33
|
+
invoiceDetailsHeading: "Invoice details",
|
|
34
|
+
lineItemsHeading: "Line items",
|
|
35
|
+
lineItemsQuantityHeading: "Qty/Price",
|
|
36
|
+
lineItemsAmountHeading: "Amount",
|
|
37
|
+
editButton: "Edit bill",
|
|
38
|
+
payButton: "Pay",
|
|
39
|
+
markAsPaidButton: "Mark as paid",
|
|
40
|
+
rejectButton: "Reject",
|
|
41
|
+
approveButton: "Approve",
|
|
42
|
+
cancelButton: "Cancel bill",
|
|
43
|
+
cancelScheduledPaymentButton: "Cancel scheduled payment",
|
|
44
|
+
reopenButton: "Reopen bill",
|
|
45
|
+
forceApproveButton: "Approve",
|
|
46
|
+
forceRejectButton: "Reject",
|
|
47
|
+
policyOverridesGroup: "Policy overrides",
|
|
48
|
+
overflowMenuTrigger: "Bill actions",
|
|
49
|
+
expandButton: "Open full screen",
|
|
50
|
+
closeButton: "Close",
|
|
51
|
+
statusBadge: i,
|
|
52
|
+
approvalPolicy: r,
|
|
53
|
+
dueDate: a,
|
|
54
|
+
auditHistory: c
|
|
55
|
+
}, u = ".pdf,.png,.jpg,.jpeg,.doc,.docx", d = {
|
|
56
|
+
...n,
|
|
57
|
+
dropzone: {
|
|
58
|
+
...n.dropzone,
|
|
59
|
+
fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
|
|
14
60
|
}
|
|
15
|
-
|
|
16
|
-
|
|
61
|
+
}, f = {
|
|
62
|
+
createButton: "Add bill",
|
|
63
|
+
settingsButton: "Bill pay settings",
|
|
64
|
+
columnVendor: "Vendor",
|
|
65
|
+
columnAttachment: "Attachment",
|
|
66
|
+
columnIssueDate: "Issue date",
|
|
67
|
+
columnDueDate: "Due date",
|
|
68
|
+
columnScheduledDate: "Scheduled date",
|
|
69
|
+
columnPaidDate: "Paid date",
|
|
70
|
+
columnAmountDue: "Amount due",
|
|
71
|
+
columnAmountScheduled: "Amount scheduled",
|
|
72
|
+
columnAmountPaid: "Amount paid",
|
|
73
|
+
columnTotalAmount: "Total amount",
|
|
74
|
+
columnStatus: "Status",
|
|
75
|
+
columnAddedOn: "Added on",
|
|
76
|
+
columnActions: "Actions",
|
|
77
|
+
openRow: (e) => `View bill — ${e}`,
|
|
78
|
+
duplicateBillsReviewButton: "Review duplicates",
|
|
79
|
+
searchPlaceholder: "Search by vendor name",
|
|
80
|
+
searchLabel: "Search bills by vendor name",
|
|
81
|
+
filterTabsLabel: "Filter bills by status",
|
|
82
|
+
filteredEmptyTitle: "No bills match",
|
|
83
|
+
filteredEmptyDescription: "Try a different search or status filter.",
|
|
84
|
+
errorTitle: "Couldn't load bills",
|
|
85
|
+
errorDescription: "Something went wrong. Try again.",
|
|
86
|
+
errorRetry: "Retry",
|
|
87
|
+
tableDropzoneTitle: "Drop your files here",
|
|
88
|
+
statusBadge: i,
|
|
89
|
+
addBill: d,
|
|
90
|
+
sortableHeader: {
|
|
91
|
+
sortedAscending: t.sortedAscending,
|
|
92
|
+
sortedDescending: t.sortedDescending,
|
|
93
|
+
notSorted: t.notSorted
|
|
94
|
+
},
|
|
95
|
+
missingValue: o,
|
|
96
|
+
noValue: s,
|
|
97
|
+
dueDate: a
|
|
98
|
+
};
|
|
17
99
|
//#endregion
|
|
18
|
-
export {
|
|
100
|
+
export { f as BILLS_SCREEN_LABELS_EN, u as BILLS_SCREEN_UPLOAD_ACCEPT, c as BILL_AUDIT_HISTORY_SECTION_LABELS_EN, l as BILL_DETAILS_SHEET_LABELS_EN };
|
|
@@ -1,50 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
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 "./index18.js";
|
|
5
|
+
import "./index20.js";
|
|
6
|
+
import { DUE_DATE_VALUE_LABELS_EN as i } from "./index21.js";
|
|
7
|
+
import "./index23.js";
|
|
8
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as a } from "./index27.js";
|
|
9
|
+
import "./index29.js";
|
|
10
|
+
import { BILL_AUDIT_HISTORY_SECTION_LABELS_EN as o } from "./index36.js";
|
|
6
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
+
};
|
|
48
77
|
}
|
|
49
78
|
//#endregion
|
|
50
|
-
export {
|
|
79
|
+
export { s as BILL_DETAIL_BODY_LABELS_EN, c as mergeBillDetailBodyLabels };
|
|
@@ -1,2 +1,277 @@
|
|
|
1
|
-
import "
|
|
2
|
-
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 "./index17.js";
|
|
7
|
+
import { BADGE_TONE_CLASS_NAME as u } from "./index15.js";
|
|
8
|
+
import { BillStatusBadge as d } from "./index19.js";
|
|
9
|
+
import "./index20.js";
|
|
10
|
+
import { DueDateValue as f } from "./index22.js";
|
|
11
|
+
import "./index23.js";
|
|
12
|
+
import { PaymentHistoryList as p } from "./index24.js";
|
|
13
|
+
import "./index25.js";
|
|
14
|
+
import { VendorSummaryCard as m } from "./index28.js";
|
|
15
|
+
import "./index29.js";
|
|
16
|
+
import { mergeBillDetailBodyLabels as h } from "./index37.js";
|
|
17
|
+
import { BillActionButtons as g, NO_BILL_ACTIONS as _ } from "./index16.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";
|
|
21
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js
|
|
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, scheduledStatusLabel: A, showApprovalOverrideNotice: j, awaitingApprovalNotice: M, payTo: N, hideMissingPaymentInstructions: P, paymentHistoryError: F, paymentHistoryLoading: I, historyError: L, historyLoading: R, historyNamesError: z, isLoading: B, isError: V, labels: H }) {
|
|
24
|
+
let U = v(() => h(H), [H]), W = v(() => ({
|
|
25
|
+
...U.payToCard,
|
|
26
|
+
payToHeading: D?.paidOnLabel ? U.payToHeadingPaid : U.payToHeading,
|
|
27
|
+
vendorLabel: U.vendorRow,
|
|
28
|
+
achBankAccountLabel: U.paymentInstructionsRow
|
|
29
|
+
}), [U, D?.paidOnLabel]), G = v(() => ({
|
|
30
|
+
...U.statusBadge,
|
|
31
|
+
...A ? { scheduled: A } : void 0
|
|
32
|
+
}), [U.statusBadge, A]);
|
|
33
|
+
if (V) return /* @__PURE__ */ y(s, {
|
|
34
|
+
title: U.errorTitle,
|
|
35
|
+
description: U.errorDescription
|
|
36
|
+
});
|
|
37
|
+
if (B || !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 K = P ? void 0 : N?.paymentInstructions, q = D.payTo.hasPaymentInstructions ? void 0 : K;
|
|
47
|
+
return /* @__PURE__ */ b("div", {
|
|
48
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
49
|
+
children: [
|
|
50
|
+
q ? /* @__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: U.missingPaymentInstructionsBanner
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ y(n, {
|
|
59
|
+
type: "button",
|
|
60
|
+
variant: "outline",
|
|
61
|
+
size: "sm",
|
|
62
|
+
onClick: q.onOpen,
|
|
63
|
+
children: U.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: U.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: U.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: U.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(t, {
|
|
106
|
+
variant: "outline",
|
|
107
|
+
className: u.committed,
|
|
108
|
+
children: k
|
|
109
|
+
}) : /* @__PURE__ */ y(d, {
|
|
110
|
+
status: D.status,
|
|
111
|
+
tone: D.statusTone,
|
|
112
|
+
labels: G
|
|
113
|
+
}) }),
|
|
114
|
+
/* @__PURE__ */ b("div", {
|
|
115
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
116
|
+
children: [/* @__PURE__ */ b("div", {
|
|
117
|
+
className: "ttw:flex ttw:flex-col",
|
|
118
|
+
children: [/* @__PURE__ */ y("span", {
|
|
119
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
120
|
+
children: U.invoiceDateLabel
|
|
121
|
+
}), /* @__PURE__ */ y("span", {
|
|
122
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
123
|
+
children: D.invoiceDateLabel
|
|
124
|
+
})]
|
|
125
|
+
}), /* @__PURE__ */ b("div", {
|
|
126
|
+
className: "ttw:flex ttw:flex-col",
|
|
127
|
+
children: [/* @__PURE__ */ y("span", {
|
|
128
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
129
|
+
children: U.dueDateLabel
|
|
130
|
+
}), /* @__PURE__ */ y(f, {
|
|
131
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
132
|
+
value: D.dueDateLabel,
|
|
133
|
+
tone: D.dueDateTone,
|
|
134
|
+
labels: U.dueDate
|
|
135
|
+
})]
|
|
136
|
+
})]
|
|
137
|
+
}),
|
|
138
|
+
D.rejection ? /* @__PURE__ */ y(l, { ...D.rejection }) : null,
|
|
139
|
+
j ? /* @__PURE__ */ y(a, {
|
|
140
|
+
variant: "caption",
|
|
141
|
+
color: "muted",
|
|
142
|
+
children: U.approvalOverrideNotice
|
|
143
|
+
}) : M ? /* @__PURE__ */ y(a, {
|
|
144
|
+
variant: "caption",
|
|
145
|
+
color: "muted",
|
|
146
|
+
children: M
|
|
147
|
+
}) : null,
|
|
148
|
+
!k && O.row.length ? /* @__PURE__ */ y("div", {
|
|
149
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
150
|
+
children: /* @__PURE__ */ y(g, { actions: O.row })
|
|
151
|
+
}) : null
|
|
152
|
+
]
|
|
153
|
+
}),
|
|
154
|
+
K?.isOpen && !P ? /* @__PURE__ */ y(r, { labels: U.requiredFieldsLegend }) : null,
|
|
155
|
+
N?.editForm ? /* @__PURE__ */ b("div", {
|
|
156
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
157
|
+
children: [N.editForm, /* @__PURE__ */ y(m, {
|
|
158
|
+
summary: D.payTo,
|
|
159
|
+
paymentInstructions: K,
|
|
160
|
+
labels: W
|
|
161
|
+
})]
|
|
162
|
+
}) : /* @__PURE__ */ y(m, {
|
|
163
|
+
summary: D.payTo,
|
|
164
|
+
onEdit: N?.onEdit,
|
|
165
|
+
paymentInstructions: K,
|
|
166
|
+
labels: W
|
|
167
|
+
}),
|
|
168
|
+
D.paymentHistory.length || F || I ? /* @__PURE__ */ b("section", {
|
|
169
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
170
|
+
children: [/* @__PURE__ */ y("h3", {
|
|
171
|
+
className: S,
|
|
172
|
+
children: U.paymentHistoryHeading
|
|
173
|
+
}), F ? /* @__PURE__ */ y("p", {
|
|
174
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
175
|
+
children: U.paymentHistoryErrorDescription
|
|
176
|
+
}) : I ? /* @__PURE__ */ y(i, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ y(p, { records: D.paymentHistory })]
|
|
177
|
+
}) : null,
|
|
178
|
+
/* @__PURE__ */ b("section", {
|
|
179
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
180
|
+
children: [/* @__PURE__ */ y("h3", {
|
|
181
|
+
className: S,
|
|
182
|
+
children: U.invoiceDetailsHeading
|
|
183
|
+
}), /* @__PURE__ */ y("dl", {
|
|
184
|
+
className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
185
|
+
children: D.invoiceFields.map((e) => /* @__PURE__ */ b("div", {
|
|
186
|
+
className: T,
|
|
187
|
+
children: [/* @__PURE__ */ y("dt", {
|
|
188
|
+
className: E,
|
|
189
|
+
children: e.label
|
|
190
|
+
}), /* @__PURE__ */ y("dd", {
|
|
191
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
192
|
+
children: e.value
|
|
193
|
+
})]
|
|
194
|
+
}, e.label))
|
|
195
|
+
})]
|
|
196
|
+
}),
|
|
197
|
+
/* @__PURE__ */ y("section", { children: /* @__PURE__ */ b("table", {
|
|
198
|
+
className: "ttw:w-full ttw:text-sm",
|
|
199
|
+
children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", {
|
|
200
|
+
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ y("th", {
|
|
203
|
+
className: o(w, "ttw:text-left ttw:font-normal"),
|
|
204
|
+
children: U.descriptionAndGlCodeColumn
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ y("th", {
|
|
207
|
+
className: o(C, "ttw:text-right ttw:font-normal"),
|
|
208
|
+
children: U.qtyPriceColumn
|
|
209
|
+
}),
|
|
210
|
+
/* @__PURE__ */ y("th", {
|
|
211
|
+
className: o(C, "ttw:text-right ttw:font-normal"),
|
|
212
|
+
children: U.amountColumn
|
|
213
|
+
})
|
|
214
|
+
]
|
|
215
|
+
}) }), /* @__PURE__ */ b("tbody", { children: [D.lineItems.map((e) => /* @__PURE__ */ b("tr", {
|
|
216
|
+
className: "ttw:border-b ttw:border-border",
|
|
217
|
+
children: [
|
|
218
|
+
/* @__PURE__ */ y("td", {
|
|
219
|
+
className: w,
|
|
220
|
+
children: /* @__PURE__ */ b("div", {
|
|
221
|
+
className: "ttw:flex ttw:flex-col",
|
|
222
|
+
children: [/* @__PURE__ */ y("span", { children: e.description }), /* @__PURE__ */ y("span", {
|
|
223
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
224
|
+
children: e.glCodeLabel
|
|
225
|
+
})]
|
|
226
|
+
})
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ y("td", {
|
|
229
|
+
className: o(C, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
|
|
230
|
+
children: e.qtyPriceLabel
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ y("td", {
|
|
233
|
+
className: o(C, "ttw:text-right ttw:whitespace-nowrap"),
|
|
234
|
+
children: e.amount
|
|
235
|
+
})
|
|
236
|
+
]
|
|
237
|
+
}, e.id)), D.amountRows.map((e) => /* @__PURE__ */ b("tr", {
|
|
238
|
+
className: o(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
|
|
239
|
+
children: [/* @__PURE__ */ y("td", {
|
|
240
|
+
colSpan: 2,
|
|
241
|
+
className: w,
|
|
242
|
+
children: e.label
|
|
243
|
+
}), /* @__PURE__ */ y("td", {
|
|
244
|
+
className: o(C, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
|
|
245
|
+
children: e.value
|
|
246
|
+
})]
|
|
247
|
+
}, e.label))] })]
|
|
248
|
+
}) }),
|
|
249
|
+
D.approvalPolicy ? /* @__PURE__ */ y(c, {
|
|
250
|
+
view: D.approvalPolicy,
|
|
251
|
+
labels: U.approvalPolicy
|
|
252
|
+
}) : null,
|
|
253
|
+
/* @__PURE__ */ b("section", {
|
|
254
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
255
|
+
children: [
|
|
256
|
+
/* @__PURE__ */ y("h3", {
|
|
257
|
+
className: S,
|
|
258
|
+
children: U.history.heading
|
|
259
|
+
}),
|
|
260
|
+
z ? /* @__PURE__ */ y(a, {
|
|
261
|
+
variant: "caption",
|
|
262
|
+
color: "muted",
|
|
263
|
+
children: U.history.namesError
|
|
264
|
+
}) : null,
|
|
265
|
+
/* @__PURE__ */ y(e, {
|
|
266
|
+
rows: D.history,
|
|
267
|
+
isLoading: R,
|
|
268
|
+
isError: L,
|
|
269
|
+
labels: U.history
|
|
270
|
+
})
|
|
271
|
+
]
|
|
272
|
+
})
|
|
273
|
+
]
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
//#endregion
|
|
277
|
+
export { D as BillDetailBody, D as default };
|
|
@@ -1,35 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
var t = {
|
|
4
|
-
heading: "Line items",
|
|
5
|
-
helpText: "Enter a single amount for this payment, or split it into line items to assign a GL code to each one.",
|
|
6
|
-
description: "Description",
|
|
7
|
-
descriptionPlaceholder: "e.g., Office supplies",
|
|
8
|
-
glCode: "GL code",
|
|
9
|
-
glCodePlaceholder: "Select",
|
|
10
|
-
glCodeClear: "Clear GL code",
|
|
11
|
-
quantity: "Quantity",
|
|
12
|
-
price: "Price",
|
|
13
|
-
amount: "Amount",
|
|
14
|
-
currencySymbol: "$",
|
|
15
|
-
discount: "Discounts",
|
|
16
|
-
tax: "Tax",
|
|
17
|
-
totalAmount: "Total amount",
|
|
18
|
-
addLineItem: "+ Add line item",
|
|
19
|
-
increaseQuantity: (e) => `Increase quantity — line item ${e}`,
|
|
20
|
-
decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
|
|
21
|
-
removeLineItem: (e) => `Remove line item ${e}`,
|
|
22
|
-
fieldMarkers: e
|
|
23
|
-
};
|
|
24
|
-
function n(e) {
|
|
25
|
-
return {
|
|
26
|
-
...t,
|
|
27
|
-
...e,
|
|
28
|
-
fieldMarkers: {
|
|
29
|
-
...t.fieldMarkers,
|
|
30
|
-
...e?.fieldMarkers
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
export { t as LINE_ITEMS_SECTION_LABELS_EN, n as mergeLineItemsSectionLabels };
|
|
1
|
+
import "./index37.js";
|
|
2
|
+
import "./index38.js";
|