@tesouro/embedded-components-react 0.11.250 → 0.11.254
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 +9 -344
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +35 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +3 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +47 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +87 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +238 -248
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +15 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +199 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js +150 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +2 -150
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +75 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +272 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -279
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js +51 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index20.js +369 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index21.js +2 -373
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +124 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +2 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js +51 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js +1 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +10 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +35 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js +133 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +52 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -315
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +158 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -162
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.js +27 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +2 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +119 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +9 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +76 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js +126 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index15.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +32 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +28 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +72 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +53 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +13 -14
- 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/feature/dist/lib/document/documentPreview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js +55 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +1322 -1312
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index53.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +0 -5
|
@@ -1,44 +1,25 @@
|
|
|
1
|
-
import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n,
|
|
2
|
-
import { BILL_DUE_DATE_LABELS_EN as
|
|
1
|
+
import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, SCHEDULED_RELATIVE_DAY_LABELS_EN as r, SCHEDULED_SUMMARY_LABEL_EN as i } from "../../../util/dist/lib/billDetailLabels.js";
|
|
2
|
+
import { BILL_DUE_DATE_LABELS_EN as a } from "../../../util/dist/lib/resolveBillDueDate.js";
|
|
3
3
|
import "../../../util/dist/index.js";
|
|
4
|
-
import { APPROVAL_POLICY_RULE_COPY_EN as
|
|
5
|
-
import { PAYABLE_AUDIT_HISTORY_LABELS_EN as
|
|
6
|
-
import { BILL_DETAILS_SHEET_LABELS_EN as
|
|
4
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as o } from "./index10.js";
|
|
5
|
+
import { PAYABLE_AUDIT_HISTORY_LABELS_EN as s } from "./index30.js";
|
|
6
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as c } from "../../ui/dist/index32.js";
|
|
7
7
|
import "../../ui/dist/index.js";
|
|
8
|
+
import { BILL_DETAIL_VIEW_LABELS_EN as l } from "./index31.js";
|
|
8
9
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js
|
|
9
|
-
var
|
|
10
|
+
var u = {
|
|
11
|
+
...l,
|
|
10
12
|
subtitle: "Accounts payable",
|
|
11
|
-
vendorRow: "Vendor",
|
|
12
|
-
bankAccountRow: "ACH bank account",
|
|
13
|
-
bankAccountValue: (e) => `Account ending in ${e}`,
|
|
14
|
-
...r,
|
|
15
|
-
invoiceNumberRow: "Number",
|
|
16
|
-
issueDateRow: "Issue date",
|
|
17
|
-
dueDateRow: "Due date",
|
|
18
|
-
poNumberRow: "PO number",
|
|
19
|
-
notProvided: "Not provided",
|
|
20
|
-
glCodeMissing: "GL code not specified",
|
|
21
|
-
quantityValue: (e, t) => `${e} x ${t}`,
|
|
22
|
-
quantityOnlyValue: (e) => e,
|
|
23
|
-
subtotalRow: "Subtotal",
|
|
24
|
-
discountsRow: "Discounts",
|
|
25
|
-
taxRow: "Tax",
|
|
26
|
-
totalRow: "Total",
|
|
27
13
|
actionError: n.actionError,
|
|
28
14
|
actionSuccess: n.actionSuccess,
|
|
29
|
-
scheduledRelativeDay:
|
|
30
|
-
dueDate:
|
|
31
|
-
scheduledSummary:
|
|
32
|
-
scheduledStatusBadge: a,
|
|
15
|
+
scheduledRelativeDay: r,
|
|
16
|
+
dueDate: a,
|
|
17
|
+
scheduledSummary: i,
|
|
33
18
|
awaitingApprovalNotice: e,
|
|
34
19
|
awaitingApprovalUnknownNotice: t,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
rejectedOn: (e) => `Rejected on ${e}`,
|
|
38
|
-
rejectionMessage: (e) => `"${e}"`,
|
|
39
|
-
sheet: u,
|
|
40
|
-
history: l,
|
|
20
|
+
sheet: c,
|
|
21
|
+
history: s,
|
|
41
22
|
decisionDialog: n.decisionDialog,
|
|
42
|
-
approvalPolicyCopy:
|
|
23
|
+
approvalPolicyCopy: o
|
|
43
24
|
};
|
|
44
|
-
export {
|
|
25
|
+
export { u as BILL_DETAILS_LABELS_EN };
|
|
@@ -12,234 +12,231 @@ import { useLocalCalendarDay as r } from "../../../../shared/feature/dist/lib/ca
|
|
|
12
12
|
import "../../../../shared/feature/dist/index.js";
|
|
13
13
|
import { mergeDecisionDialogCopy as i, mergePaymentHistoryMethodLabels as a } from "../../../util/dist/lib/billDetailLabels.js";
|
|
14
14
|
import { hasSuspectedPayableDuplicate as o } from "../../../util/dist/lib/payableDuplicates.js";
|
|
15
|
+
import { resolveVendorName as s } from "../../../util/dist/lib/resolveVendor.js";
|
|
15
16
|
import "../../../util/dist/index.js";
|
|
16
|
-
import { BillDecisionDialog as
|
|
17
|
+
import { BillDecisionDialog as c } from "../../../ui/dist/index4.js";
|
|
17
18
|
import "../../../ui/dist/index.js";
|
|
18
|
-
import { usePayableAchInstructions as
|
|
19
|
+
import { usePayableAchInstructions as l } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
19
20
|
import "../../../../shared/counterpart-management/feature/dist/index.js";
|
|
20
|
-
import {
|
|
21
|
-
import { BillDetailsSheet as
|
|
22
|
-
import { BillDuplicateNotice as
|
|
21
|
+
import { mergeBillDetailsSheetLabels as u } from "../../ui/dist/index32.js";
|
|
22
|
+
import { BillDetailsSheet as d } from "../../ui/dist/index33.js";
|
|
23
|
+
import { BillDuplicateNotice as f } from "../../ui/dist/index36.js";
|
|
23
24
|
import "../../ui/dist/index.js";
|
|
24
|
-
import { useAllPayableLineItemsQuery as
|
|
25
|
-
import { usePayableQuery as
|
|
25
|
+
import { useAllPayableLineItemsQuery as p } from "../../data-access/dist/index6.js";
|
|
26
|
+
import { usePayableQuery as m } from "../../data-access/dist/index24.js";
|
|
26
27
|
import "../../data-access/dist/index.js";
|
|
27
|
-
import { buildPaymentHistory as
|
|
28
|
-
import { canOverrideApprovalPolicy as
|
|
29
|
-
import { useApprovalPolicyCardView as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
28
|
+
import { buildPaymentHistory as h } from "./index2.js";
|
|
29
|
+
import { canOverrideApprovalPolicy as ne, canReadCounterpartBankAccounts as re } from "./index5.js";
|
|
30
|
+
import { useApprovalPolicyCardView as ie } from "./index15.js";
|
|
31
|
+
import { formatGlCodeLabel as ae } from "./index16.js";
|
|
32
|
+
import { resolveApprovalNotices as oe } from "./index17.js";
|
|
33
|
+
import { useBillRejectionNotice as se } from "./index20.js";
|
|
34
|
+
import { useCurrentApprovalRequestId as ce } from "./index21.js";
|
|
35
|
+
import { usePayableAuditHistory as le } from "./index22.js";
|
|
36
|
+
import { usePayableDetailActions as ue } from "./index23.js";
|
|
37
|
+
import { useScheduledDateLabel as de } from "./index24.js";
|
|
38
|
+
import { useScheduledPayment as fe } from "./index25.js";
|
|
39
|
+
import { buildBillDetailView as pe } from "./index28.js";
|
|
40
|
+
import { BILL_DETAILS_LABELS_EN as g } from "./index46.js";
|
|
41
|
+
import { useMemo as _, useRef as me, useState as he } from "react";
|
|
42
|
+
import { Fragment as ge, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
40
43
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js
|
|
41
|
-
function
|
|
42
|
-
let
|
|
43
|
-
...
|
|
44
|
-
...
|
|
45
|
-
sheet:
|
|
46
|
-
|
|
47
|
-
...O?.sheet,
|
|
48
|
-
statusBadge: {
|
|
49
|
-
..._.sheet.statusBadge,
|
|
50
|
-
...O?.sheet?.statusBadge
|
|
51
|
-
},
|
|
52
|
-
approvalPolicy: {
|
|
53
|
-
..._.sheet.approvalPolicy,
|
|
54
|
-
...O?.sheet?.approvalPolicy
|
|
55
|
-
},
|
|
56
|
-
auditHistory: {
|
|
57
|
-
..._.sheet.auditHistory,
|
|
58
|
-
...O?.sheet?.auditHistory
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
decisionDialog: i(_.decisionDialog, O?.decisionDialog),
|
|
44
|
+
function b({ open: b, onOpenChange: x, payableId: S, onClose: C, onExpand: w, onEdit: T, testId: E, labels: D, renderPaymentFlows: O }) {
|
|
45
|
+
let k = _(() => ({
|
|
46
|
+
...g,
|
|
47
|
+
...D,
|
|
48
|
+
sheet: u(D?.sheet),
|
|
49
|
+
decisionDialog: i(g.decisionDialog, D?.decisionDialog),
|
|
62
50
|
approvalPolicyCopy: {
|
|
63
|
-
...
|
|
64
|
-
...
|
|
51
|
+
...g.approvalPolicyCopy,
|
|
52
|
+
...D?.approvalPolicyCopy
|
|
65
53
|
},
|
|
66
54
|
history: {
|
|
67
|
-
...
|
|
68
|
-
...
|
|
55
|
+
...g.history,
|
|
56
|
+
...D?.history
|
|
69
57
|
},
|
|
70
58
|
scheduledRelativeDay: {
|
|
71
|
-
...
|
|
72
|
-
...
|
|
59
|
+
...g.scheduledRelativeDay,
|
|
60
|
+
...D?.scheduledRelativeDay
|
|
73
61
|
},
|
|
74
62
|
dueDate: {
|
|
75
|
-
...
|
|
76
|
-
...
|
|
63
|
+
...g.dueDate,
|
|
64
|
+
...D?.dueDate
|
|
77
65
|
},
|
|
78
66
|
actionSuccess: {
|
|
79
|
-
...
|
|
80
|
-
...
|
|
67
|
+
...g.actionSuccess,
|
|
68
|
+
...D?.actionSuccess
|
|
81
69
|
},
|
|
82
|
-
paymentHistoryMethodLabels: a(
|
|
83
|
-
}), [
|
|
84
|
-
payableId:
|
|
85
|
-
status:
|
|
86
|
-
}),
|
|
87
|
-
payableId:
|
|
88
|
-
payableStatus:
|
|
89
|
-
payableUpdatedAt:
|
|
90
|
-
enabled:
|
|
91
|
-
userNames:
|
|
92
|
-
labels:
|
|
93
|
-
}),
|
|
94
|
-
payableId:
|
|
95
|
-
approvalPolicyId:
|
|
96
|
-
status:
|
|
97
|
-
updatedAt:
|
|
98
|
-
payableFetchedAt:
|
|
99
|
-
copy:
|
|
100
|
-
}),
|
|
101
|
-
status:
|
|
102
|
-
scopes:
|
|
103
|
-
arePendingApproversUnknown:
|
|
104
|
-
hasApprovalPolicy: !!
|
|
105
|
-
hasWaitingRequest:
|
|
106
|
-
}),
|
|
107
|
-
isCapabilityUnknown:
|
|
108
|
-
canApproveNow: !!
|
|
109
|
-
canOverridePolicy:
|
|
110
|
-
status:
|
|
111
|
-
hasApprovalPolicy: !!
|
|
112
|
-
pendingApproverNames:
|
|
113
|
-
labels:
|
|
114
|
-
}),
|
|
115
|
-
payableId:
|
|
116
|
-
scheduledPaymentDate:
|
|
117
|
-
}),
|
|
118
|
-
counterpartId:
|
|
119
|
-
currency:
|
|
120
|
-
currentBankAccountId:
|
|
121
|
-
enabled:
|
|
122
|
-
}), { actions:
|
|
123
|
-
payableId:
|
|
124
|
-
status:
|
|
125
|
-
currentApprovalRequestId:
|
|
126
|
-
hasScheduledPayment:
|
|
127
|
-
scheduledPaymentIntentId:
|
|
128
|
-
isScheduledPaymentUnknown:
|
|
129
|
-
isPayabilityUnknown:
|
|
130
|
-
hasApprovalPolicy: !!
|
|
131
|
-
hasWaitingRequest:
|
|
132
|
-
pendingApprovers:
|
|
133
|
-
arePendingApproversUnknown:
|
|
70
|
+
paymentHistoryMethodLabels: a(D?.paymentHistoryMethodLabels)
|
|
71
|
+
}), [D]), A = m(S, { pollWhilePolicyAssignmentUnsettled: !0 }), j = p(S), M = ee(), { initResponse: N } = te(), P = A.data, F = me(null), [I, L] = he(!1), R = ce({
|
|
72
|
+
payableId: S,
|
|
73
|
+
status: P?.status
|
|
74
|
+
}), _e = P?.status === "rejected", ve = e(N?.scopes, [t.ApprovalRequestReadOrg]), ye = _e && ve, z = e(N?.scopes, [t.UserReadOrg]), { userNames: B, isError: be, isResolving: xe } = n({ enabled: z }), V = se({
|
|
75
|
+
payableId: S,
|
|
76
|
+
payableStatus: P?.status,
|
|
77
|
+
payableUpdatedAt: P?.updated_at,
|
|
78
|
+
enabled: ye,
|
|
79
|
+
userNames: B,
|
|
80
|
+
labels: k
|
|
81
|
+
}), H = ie({
|
|
82
|
+
payableId: S,
|
|
83
|
+
approvalPolicyId: P?.approval_policy_id,
|
|
84
|
+
status: P?.status,
|
|
85
|
+
updatedAt: P?.updated_at,
|
|
86
|
+
payableFetchedAt: A.dataUpdatedAt,
|
|
87
|
+
copy: k.approvalPolicyCopy
|
|
88
|
+
}), Se = ne({
|
|
89
|
+
status: P?.status,
|
|
90
|
+
scopes: N?.scopes,
|
|
91
|
+
arePendingApproversUnknown: H.isLoading,
|
|
92
|
+
hasApprovalPolicy: !!P?.approval_policy_id,
|
|
93
|
+
hasWaitingRequest: R.hasWaitingRequest
|
|
94
|
+
}), U = oe({
|
|
95
|
+
isCapabilityUnknown: R.isLoading || H.isLoading,
|
|
96
|
+
canApproveNow: !!R.id,
|
|
97
|
+
canOverridePolicy: Se,
|
|
98
|
+
status: P?.status,
|
|
99
|
+
hasApprovalPolicy: !!P?.approval_policy_id,
|
|
100
|
+
pendingApproverNames: H.pendingApprovers.flatMap((e) => e.names),
|
|
101
|
+
labels: k
|
|
102
|
+
}), W = fe({
|
|
103
|
+
payableId: S,
|
|
104
|
+
scheduledPaymentDate: P?.scheduled_payment_date
|
|
105
|
+
}), G = re(N?.scopes), K = l({
|
|
106
|
+
counterpartId: P?.counterpart_id,
|
|
107
|
+
currency: P?.currency,
|
|
108
|
+
currentBankAccountId: P?.counterpart_bank_account_id,
|
|
109
|
+
enabled: G
|
|
110
|
+
}), { actions: Ce, decisionDialog: we } = ue({
|
|
111
|
+
payableId: P ? S : void 0,
|
|
112
|
+
status: P?.status,
|
|
113
|
+
currentApprovalRequestId: R.id,
|
|
114
|
+
hasScheduledPayment: W.hasScheduledPayment,
|
|
115
|
+
scheduledPaymentIntentId: W.scheduledPaymentIntentId,
|
|
116
|
+
isScheduledPaymentUnknown: W.isResolving,
|
|
117
|
+
isPayabilityUnknown: K.isLoading,
|
|
118
|
+
hasApprovalPolicy: !!P?.approval_policy_id,
|
|
119
|
+
hasWaitingRequest: R.hasWaitingRequest,
|
|
120
|
+
pendingApprovers: H.pendingApprovers,
|
|
121
|
+
arePendingApproversUnknown: H.isLoading,
|
|
134
122
|
labels: {
|
|
135
|
-
edit:
|
|
136
|
-
payBill:
|
|
137
|
-
markAsPaid:
|
|
138
|
-
reject:
|
|
139
|
-
approve:
|
|
140
|
-
cancel:
|
|
141
|
-
cancelScheduledPayment:
|
|
142
|
-
reopen:
|
|
143
|
-
forceApprove:
|
|
144
|
-
forceReject:
|
|
145
|
-
policyOverridesHeading:
|
|
146
|
-
decisionDialog:
|
|
147
|
-
actionError:
|
|
148
|
-
actionSuccess:
|
|
123
|
+
edit: k.sheet.editButton,
|
|
124
|
+
payBill: k.sheet.payButton,
|
|
125
|
+
markAsPaid: k.sheet.markAsPaidButton,
|
|
126
|
+
reject: k.sheet.rejectButton,
|
|
127
|
+
approve: k.sheet.approveButton,
|
|
128
|
+
cancel: k.sheet.cancelButton,
|
|
129
|
+
cancelScheduledPayment: k.sheet.cancelScheduledPaymentButton,
|
|
130
|
+
reopen: k.sheet.reopenButton,
|
|
131
|
+
forceApprove: k.sheet.forceApproveButton,
|
|
132
|
+
forceReject: k.sheet.forceRejectButton,
|
|
133
|
+
policyOverridesHeading: k.sheet.policyOverridesGroup,
|
|
134
|
+
decisionDialog: k.decisionDialog,
|
|
135
|
+
actionError: k.actionError,
|
|
136
|
+
actionSuccess: k.actionSuccess
|
|
149
137
|
},
|
|
150
|
-
isMarkAsPaidPending:
|
|
151
|
-
onMarkAsPaidSelect: () =>
|
|
152
|
-
onPayBillSelect: () =>
|
|
153
|
-
onEditSelect:
|
|
138
|
+
isMarkAsPaidPending: I,
|
|
139
|
+
onMarkAsPaidSelect: () => F.current?.openMarkAsPaid(),
|
|
140
|
+
onPayBillSelect: () => F.current?.openPayBill(),
|
|
141
|
+
onEditSelect: T,
|
|
154
142
|
onActionSucceeded: (e) => {
|
|
155
|
-
e === "reopen" &&
|
|
143
|
+
e === "reopen" && T?.();
|
|
156
144
|
}
|
|
157
|
-
}),
|
|
158
|
-
hasScheduledPayment:
|
|
159
|
-
scheduledDate:
|
|
160
|
-
labels:
|
|
161
|
-
}),
|
|
162
|
-
payableId:
|
|
163
|
-
userNames:
|
|
164
|
-
isRosterError:
|
|
165
|
-
labels:
|
|
166
|
-
}),
|
|
167
|
-
records:
|
|
168
|
-
events:
|
|
169
|
-
currencyCode:
|
|
170
|
-
labels:
|
|
145
|
+
}), q = de({
|
|
146
|
+
hasScheduledPayment: W.hasScheduledPayment,
|
|
147
|
+
scheduledDate: W.scheduledDate,
|
|
148
|
+
labels: k.scheduledRelativeDay
|
|
149
|
+
}), Te = q ? k.scheduledSummary(q.label) : void 0, J = o(P) ? /* @__PURE__ */ v(f, { onOpenFullScreen: w }) : void 0, { historyQuery: Y, rows: X, namesError: Ee } = le({
|
|
150
|
+
payableId: S,
|
|
151
|
+
userNames: B,
|
|
152
|
+
isRosterError: z && be,
|
|
153
|
+
labels: k.history
|
|
154
|
+
}), Z = _(() => h({
|
|
155
|
+
records: W.paymentRecords,
|
|
156
|
+
events: Y.data?.data ?? [],
|
|
157
|
+
currencyCode: P?.currency,
|
|
158
|
+
labels: k
|
|
171
159
|
}), [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
]),
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
160
|
+
W.paymentRecords,
|
|
161
|
+
Y.data,
|
|
162
|
+
P?.currency,
|
|
163
|
+
k
|
|
164
|
+
]), Q = r(), $ = _(() => (M.data?.data ?? []).map((e) => ({
|
|
165
|
+
value: e.id,
|
|
166
|
+
label: ae(e)
|
|
167
|
+
})), [M.data]), De = _(() => P ? pe({
|
|
168
|
+
payable: P,
|
|
169
|
+
lineItems: j.lineItems,
|
|
170
|
+
glCodeOptions: $,
|
|
171
|
+
history: X,
|
|
172
|
+
paymentHistory: Z,
|
|
173
|
+
approvalPolicy: H.view,
|
|
174
|
+
labels: k,
|
|
175
|
+
dueDateLabels: k.dueDate,
|
|
176
|
+
today: Q,
|
|
177
|
+
hasScheduledPayment: W.hasScheduledPayment,
|
|
178
|
+
rejection: V,
|
|
179
|
+
payableAchInstructions: K.achInstructions,
|
|
180
|
+
payableAchInstructionsReadable: G && !K.isLoading && !K.isError
|
|
186
181
|
}) : void 0, [
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
N.data,
|
|
190
|
-
A,
|
|
191
|
-
q.hasScheduledPayment,
|
|
182
|
+
P,
|
|
183
|
+
j.lineItems,
|
|
192
184
|
$,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
185
|
+
X,
|
|
186
|
+
Z,
|
|
187
|
+
H.view,
|
|
188
|
+
k,
|
|
189
|
+
Q,
|
|
190
|
+
W.hasScheduledPayment,
|
|
191
|
+
V,
|
|
192
|
+
K.achInstructions,
|
|
193
|
+
K.isError,
|
|
194
|
+
K.isLoading,
|
|
195
|
+
G
|
|
196
|
+
]), Oe = A.isLoading || j.isResolving || M.isResolving || K.isLoading, ke = A.isError || j.isError || M.isError;
|
|
197
|
+
return /* @__PURE__ */ y(ge, { children: [
|
|
198
|
+
/* @__PURE__ */ v(d, {
|
|
199
|
+
open: b,
|
|
200
|
+
onOpenChange: x,
|
|
201
|
+
title: s(P),
|
|
202
|
+
subtitle: k.subtitle,
|
|
203
|
+
view: De,
|
|
204
|
+
actions: Ce,
|
|
205
|
+
showApprovalOverrideNotice: U.showApprovalOverrideNotice,
|
|
206
|
+
awaitingApprovalNotice: U.awaitingApprovalNotice,
|
|
207
|
+
statusDetail: Te,
|
|
208
|
+
statusDetailDate: q?.absoluteLabel,
|
|
209
|
+
historyError: Y.isError,
|
|
210
|
+
historyLoading: Y.isLoading || xe,
|
|
211
|
+
historyNamesError: Ee,
|
|
212
|
+
paymentHistoryError: W.isError || Y.isError,
|
|
213
|
+
paymentHistoryLoading: W.isResolving || Y.isLoading,
|
|
214
|
+
isLoading: Oe,
|
|
215
|
+
isError: ke,
|
|
216
|
+
notice: J,
|
|
217
|
+
onClose: C,
|
|
218
|
+
onExpand: w,
|
|
219
|
+
testId: E,
|
|
220
|
+
labels: k.sheet
|
|
224
221
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
...
|
|
227
|
-
labels: { cancelButton:
|
|
228
|
-
testId:
|
|
229
|
-
confirmTestId:
|
|
230
|
-
reasonTestId:
|
|
231
|
-
reasonFieldId:
|
|
222
|
+
/* @__PURE__ */ v(c, {
|
|
223
|
+
...we,
|
|
224
|
+
labels: { cancelButton: k.decisionDialog.cancelButton },
|
|
225
|
+
testId: E ? `${E}-decision-dialog` : void 0,
|
|
226
|
+
confirmTestId: E ? `${E}-decision-confirm` : void 0,
|
|
227
|
+
reasonTestId: E ? `${E}-decision-reason` : void 0,
|
|
228
|
+
reasonFieldId: E ? `${E}-decision-reason-field` : void 0
|
|
232
229
|
}),
|
|
233
|
-
|
|
234
|
-
ref:
|
|
235
|
-
payable:
|
|
236
|
-
payableId:
|
|
230
|
+
O?.({
|
|
231
|
+
ref: F,
|
|
232
|
+
payable: P,
|
|
233
|
+
payableId: S,
|
|
237
234
|
isPayBillEnabled: !0,
|
|
238
|
-
hasScheduledPayment:
|
|
239
|
-
onMissingAchInstructions:
|
|
240
|
-
onMarkAsPaidPendingChange:
|
|
241
|
-
testId:
|
|
235
|
+
hasScheduledPayment: W.hasScheduledPayment,
|
|
236
|
+
onMissingAchInstructions: w,
|
|
237
|
+
onMarkAsPaidPendingChange: L,
|
|
238
|
+
testId: E
|
|
242
239
|
})
|
|
243
240
|
] });
|
|
244
241
|
}
|
|
245
|
-
export {
|
|
242
|
+
export { b as BillDetailsContainer, b as default };
|
|
@@ -17,18 +17,18 @@ function u({ status: u, scopes: d, canDecideApprovalRequest: f, hasScheduledPaym
|
|
|
17
17
|
if (y && n(u) && T && D.push({
|
|
18
18
|
id: "edit",
|
|
19
19
|
label: b.edit,
|
|
20
|
-
variant: "
|
|
21
|
-
surface: "
|
|
20
|
+
variant: "ghost",
|
|
21
|
+
surface: "header"
|
|
22
22
|
}), u === "approve_in_progress" && f && (D.push({
|
|
23
|
+
id: "reject",
|
|
24
|
+
label: b.reject,
|
|
25
|
+
variant: "outline",
|
|
26
|
+
surface: "row"
|
|
27
|
+
}), D.push({
|
|
23
28
|
id: "approve",
|
|
24
29
|
label: b.approve,
|
|
25
30
|
variant: "default",
|
|
26
31
|
surface: "row"
|
|
27
|
-
}), D.push({
|
|
28
|
-
id: "reject",
|
|
29
|
-
label: b.reject,
|
|
30
|
-
variant: "ghost",
|
|
31
|
-
surface: "row"
|
|
32
32
|
})), l({
|
|
33
33
|
status: u,
|
|
34
34
|
scopes: d,
|
|
@@ -64,24 +64,26 @@ function u({ status: u, scopes: d, canDecideApprovalRequest: f, hasScheduledPaym
|
|
|
64
64
|
label: b.payBill,
|
|
65
65
|
variant: "default",
|
|
66
66
|
surface: "row"
|
|
67
|
-
}), u === "new" && T && D.push({
|
|
68
|
-
id: "cancel",
|
|
69
|
-
label: b.cancel,
|
|
70
|
-
variant: "ghost",
|
|
71
|
-
surface: "menu",
|
|
72
|
-
icon: r
|
|
73
67
|
}), (u === "rejected" || u === "waiting_to_be_paid" && !p) && T && D.push({
|
|
74
68
|
id: "reopen",
|
|
75
69
|
label: b.reopen,
|
|
76
70
|
variant: "ghost",
|
|
77
71
|
surface: "menu",
|
|
78
72
|
icon: a
|
|
73
|
+
}), u === "new" && T && D.push({
|
|
74
|
+
id: "cancel",
|
|
75
|
+
label: b.cancel,
|
|
76
|
+
variant: "ghost",
|
|
77
|
+
surface: "menu",
|
|
78
|
+
icon: r,
|
|
79
|
+
destructive: !0
|
|
79
80
|
}), u === "waiting_to_be_paid" && p && m && E && D.push({
|
|
80
81
|
id: "cancelScheduledPayment",
|
|
81
82
|
label: b.cancelScheduledPayment,
|
|
82
83
|
variant: "ghost",
|
|
83
84
|
surface: "menu",
|
|
84
|
-
icon: i
|
|
85
|
+
icon: i,
|
|
86
|
+
destructive: !0
|
|
85
87
|
}), D;
|
|
86
88
|
}
|
|
87
89
|
export { l as canOverrideApprovalPolicy, c as canReadCounterpartBankAccounts, u as getBillDetailActions };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "./index2.js";
|
|
2
2
|
import "./index3.js";
|
|
3
3
|
import "./index4.js";
|
|
4
|
+
import "./index5.js";
|
|
4
5
|
import "./index6.js";
|
|
5
6
|
import "./index7.js";
|
|
6
7
|
import "./index8.js";
|
|
7
|
-
import "./
|
|
8
|
+
import "./index10.js";
|
|
8
9
|
import "./index11.js";
|
|
9
10
|
import "./index12.js";
|
|
10
11
|
import "./index13.js";
|
|
@@ -17,34 +18,33 @@ import "./index19.js";
|
|
|
17
18
|
import "./index20.js";
|
|
18
19
|
import "./index21.js";
|
|
19
20
|
import "./index22.js";
|
|
20
|
-
import "./index23.js";
|
|
21
|
-
import
|
|
21
|
+
import { VendorSearchCombobox as e } from "./index23.js";
|
|
22
|
+
import "./index24.js";
|
|
22
23
|
import "./index25.js";
|
|
23
24
|
import "./index26.js";
|
|
24
25
|
import "./index27.js";
|
|
25
26
|
import "./index28.js";
|
|
26
|
-
import "./
|
|
27
|
-
import
|
|
28
|
-
import "./index32.js";
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
27
|
+
import { BillDialogScreen as t } from "./index30.js";
|
|
28
|
+
import "./index31.js";
|
|
29
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as n, mergeBillDetailsSheetLabels as r } from "./index32.js";
|
|
30
|
+
import { BillDetailsSheet as i } from "./index33.js";
|
|
31
|
+
import "./index34.js";
|
|
31
32
|
import "./index35.js";
|
|
32
|
-
import "./index36.js";
|
|
33
|
-
import
|
|
34
|
-
import "./index38.js";
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import "./index41.js";
|
|
38
|
-
import {
|
|
39
|
-
import
|
|
33
|
+
import { BillDuplicateNotice as a } from "./index36.js";
|
|
34
|
+
import "./index37.js";
|
|
35
|
+
import { BILL_REJECTED_BANNER_LABELS_EN as o } from "./index38.js";
|
|
36
|
+
import { BillRejectedBanner as s } from "./index39.js";
|
|
37
|
+
import "./index40.js";
|
|
38
|
+
import { DISCARD_CHANGES_DIALOG_LABELS_EN as c } from "./index41.js";
|
|
39
|
+
import { DiscardChangesDialog as l } from "./index42.js";
|
|
40
|
+
import "./index43.js";
|
|
40
41
|
import "./index44.js";
|
|
41
|
-
import "./index45.js";
|
|
42
|
-
import
|
|
42
|
+
import { ExtractionNotice as u } from "./index45.js";
|
|
43
|
+
import "./index46.js";
|
|
43
44
|
import "./index47.js";
|
|
44
|
-
import "./index48.js";
|
|
45
|
-
import
|
|
46
|
-
import "./index50.js";
|
|
47
|
-
import {
|
|
48
|
-
import
|
|
49
|
-
|
|
50
|
-
export { n as BILL_DETAILS_SHEET_LABELS_EN, a as BILL_REJECTED_BANNER_LABELS_EN, r as BillDetailsSheet, t as BillDialogScreen, i as BillDuplicateNotice, o as BillRejectedBanner, s as DISCARD_CHANGES_DIALOG_LABELS_EN, c as DiscardChangesDialog, l as ExtractionNotice, u as SourceDocumentPanel, d as UNSAVED_BILL_DIALOG_LABELS_EN, f as UnsavedBillDialog, e as VendorSearchCombobox };
|
|
45
|
+
import { SourceDocumentPanel as d } from "./index48.js";
|
|
46
|
+
import "./index49.js";
|
|
47
|
+
import { UNSAVED_BILL_DIALOG_LABELS_EN as f } from "./index50.js";
|
|
48
|
+
import { UnsavedBillDialog as p } from "./index51.js";
|
|
49
|
+
import "./index52.js";
|
|
50
|
+
export { n as BILL_DETAILS_SHEET_LABELS_EN, o as BILL_REJECTED_BANNER_LABELS_EN, i as BillDetailsSheet, t as BillDialogScreen, a as BillDuplicateNotice, s as BillRejectedBanner, c as DISCARD_CHANGES_DIALOG_LABELS_EN, l as DiscardChangesDialog, u as ExtractionNotice, d as SourceDocumentPanel, f as UNSAVED_BILL_DIALOG_LABELS_EN, p as UnsavedBillDialog, e as VendorSearchCombobox, r as mergeBillDetailsSheetLabels };
|