@tesouro/embedded-components-react 0.5.13 → 0.5.16
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/README.md +1 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/lib/SettingsWidget.d.ts +3 -0
- package/dist/lib/WidgetSuite.d.ts +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +17 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +92 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +301 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +34 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +186 -339
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +354 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +87 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +90 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +57 -49
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/data-access/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/index.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/collectDisclosureDocuments.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/testIds.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/analytics/events.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index2.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/ui/dist/index3.js +80 -0
- 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/index83.js +0 -28
package/README.md
CHANGED
|
@@ -530,6 +530,7 @@ A composite settings widget that combines Monite document settings, tags, GL cod
|
|
|
530
530
|
| `accountingContent` | `ReactNode` | Chart of accounts widget | Replaces accounting content. |
|
|
531
531
|
| `tagsContent` | `ReactNode` | Monite tags | Replaces tags content. |
|
|
532
532
|
| `expenseContent` | `ReactNode` | Expense policies and requirements | Replaces expense content. |
|
|
533
|
+
| `legalContent` | `ReactNode` | Bank disclosures widget | Replaces the Legal section content. |
|
|
533
534
|
| `profileContactUrl` | `string` | `undefined` | Forwarded to the Profile section's widget — where its "to change this information, contact your bank" line links. Left unset, the card shows the plain unlinked sentence instead; the bank name comes from widget init. |
|
|
534
535
|
| `selectedSection` | `SettingsWidgetSectionId` | `undefined` | The section to show. Leave unset to let the widget own the selection; supply it (with `onSelectedSectionChange`) to drive navigation from a route or search param. A section the user's scopes hide falls back to the first visible one. |
|
|
535
536
|
| `defaultSelectedSection` | `SettingsWidgetSectionId` | First visible section | The section to open on, for a host that wants a deep link without owning the selection. Read once per mount and ignored when `selectedSection` is supplied. Scopes arrive with widget init, so a section this names opens as soon as it becomes visible; one the user's scopes never grant leaves the first visible section on screen. |
|
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2514,6 +2514,7 @@ interface FeatureLabels$2 {
|
|
|
2514
2514
|
accountingSection: string;
|
|
2515
2515
|
tagsSection: string;
|
|
2516
2516
|
expenseSection: string;
|
|
2517
|
+
legalSection: string;
|
|
2517
2518
|
helpSection: string;
|
|
2518
2519
|
expenseApprovalsTab: string;
|
|
2519
2520
|
expenseRequirementsTab: string;
|
|
@@ -2532,6 +2533,7 @@ declare const SettingsSection: {
|
|
|
2532
2533
|
readonly BillPay: "bill-pay";
|
|
2533
2534
|
readonly Accounting: "accounting";
|
|
2534
2535
|
readonly Tags: "tags";
|
|
2536
|
+
readonly Legal: "legal";
|
|
2535
2537
|
readonly Help: "help";
|
|
2536
2538
|
};
|
|
2537
2539
|
type SettingsSection = (typeof SettingsSection)[keyof typeof SettingsSection];
|
|
@@ -2610,6 +2612,7 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
2610
2612
|
accountingContent?: ReactNode;
|
|
2611
2613
|
tagsContent?: ReactNode;
|
|
2612
2614
|
invoiceContent?: ReactNode;
|
|
2615
|
+
legalContent?: ReactNode;
|
|
2613
2616
|
}
|
|
2614
2617
|
declare function SettingsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, finopsThemeColors, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: SettingsWidgetProps): React.JSX.Element;
|
|
2615
2618
|
|
|
@@ -696,6 +696,7 @@ interface FeatureLabels {
|
|
|
696
696
|
accountingSection: string;
|
|
697
697
|
tagsSection: string;
|
|
698
698
|
expenseSection: string;
|
|
699
|
+
legalSection: string;
|
|
699
700
|
helpSection: string;
|
|
700
701
|
expenseApprovalsTab: string;
|
|
701
702
|
expenseRequirementsTab: string;
|
|
@@ -714,6 +715,7 @@ declare const SettingsSection: {
|
|
|
714
715
|
readonly BillPay: "bill-pay";
|
|
715
716
|
readonly Accounting: "accounting";
|
|
716
717
|
readonly Tags: "tags";
|
|
718
|
+
readonly Legal: "legal";
|
|
717
719
|
readonly Help: "help";
|
|
718
720
|
};
|
|
719
721
|
type SettingsSection = (typeof SettingsSection)[keyof typeof SettingsSection];
|
|
@@ -792,6 +794,7 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
792
794
|
accountingContent?: ReactNode;
|
|
793
795
|
tagsContent?: ReactNode;
|
|
794
796
|
invoiceContent?: ReactNode;
|
|
797
|
+
legalContent?: ReactNode;
|
|
795
798
|
}
|
|
796
799
|
declare function SettingsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, finopsThemeColors, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: SettingsWidgetProps): React.JSX.Element;
|
|
797
800
|
|
|
@@ -1739,6 +1739,7 @@ interface FeatureLabels$1 {
|
|
|
1739
1739
|
accountingSection: string;
|
|
1740
1740
|
tagsSection: string;
|
|
1741
1741
|
expenseSection: string;
|
|
1742
|
+
legalSection: string;
|
|
1742
1743
|
helpSection: string;
|
|
1743
1744
|
expenseApprovalsTab: string;
|
|
1744
1745
|
expenseRequirementsTab: string;
|
|
@@ -1757,6 +1758,7 @@ declare const SettingsSection: {
|
|
|
1757
1758
|
readonly BillPay: "bill-pay";
|
|
1758
1759
|
readonly Accounting: "accounting";
|
|
1759
1760
|
readonly Tags: "tags";
|
|
1761
|
+
readonly Legal: "legal";
|
|
1760
1762
|
readonly Help: "help";
|
|
1761
1763
|
};
|
|
1762
1764
|
type SettingsSection = (typeof SettingsSection)[keyof typeof SettingsSection];
|
|
@@ -1835,6 +1837,7 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
1835
1837
|
accountingContent?: ReactNode;
|
|
1836
1838
|
tagsContent?: ReactNode;
|
|
1837
1839
|
invoiceContent?: ReactNode;
|
|
1840
|
+
legalContent?: ReactNode;
|
|
1838
1841
|
}
|
|
1839
1842
|
|
|
1840
1843
|
interface TransfersWidgetLabels {
|
|
@@ -9,7 +9,7 @@ import { DuplicateVerdict as n, useApplyDuplicateVerdictsMutation as r } from ".
|
|
|
9
9
|
import "../../data-access/dist/index.js";
|
|
10
10
|
import { useDuplicateBills as i } from "./index10.js";
|
|
11
11
|
import { useDuplicateBillsSelection as a } from "./index11.js";
|
|
12
|
-
import { DuplicateBillsDialog as o } from "../../ui/dist/
|
|
12
|
+
import { DuplicateBillsDialog as o } from "../../ui/dist/index87.js";
|
|
13
13
|
import "../../ui/dist/index.js";
|
|
14
14
|
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
15
15
|
import { jsx as u } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MARK_AS_PAID_DIALOG_LABELS_EN as e } from "../../ui/dist/
|
|
1
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as e } from "../../ui/dist/index98.js";
|
|
2
2
|
import "../../ui/dist/index.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js
|
|
4
4
|
var t = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/
|
|
2
|
-
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t } from "../../ui/dist/
|
|
1
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/index95.js";
|
|
2
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t } from "../../ui/dist/index101.js";
|
|
3
3
|
import "../../ui/dist/index.js";
|
|
4
4
|
import { SOURCE_ACCOUNT_LABELS_EN as n } from "./index24.js";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { useWidgetConfig as e } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
6
6
|
import "../../../shared/feature/dist/index.js";
|
|
7
7
|
import { resolveVendor as t } from "./index8.js";
|
|
8
|
-
import { ReviewTransactionDialog as n } from "../../ui/dist/
|
|
9
|
-
import { SchedulePaymentDialog as r } from "../../ui/dist/
|
|
8
|
+
import { ReviewTransactionDialog as n } from "../../ui/dist/index96.js";
|
|
9
|
+
import { SchedulePaymentDialog as r } from "../../ui/dist/index103.js";
|
|
10
10
|
import "../../ui/dist/index.js";
|
|
11
11
|
import { canReadCounterpartBankAccounts as i } from "./index20.js";
|
|
12
12
|
import { resolveAmountDueMinorUnits as a } from "./index21.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BILL_REJECTED_BANNER_LABELS_EN as e } from "../../ui/dist/
|
|
2
|
-
import { UNSAVED_BILL_DIALOG_LABELS_EN as t } from "../../ui/dist/
|
|
1
|
+
import { BILL_REJECTED_BANNER_LABELS_EN as e } from "../../ui/dist/index71.js";
|
|
2
|
+
import { UNSAVED_BILL_DIALOG_LABELS_EN as t } from "../../ui/dist/index108.js";
|
|
3
3
|
import "../../ui/dist/index.js";
|
|
4
4
|
import { PAY_BILL_FLOW_LABELS_EN as n, mergePayBillFlowLabels as r } from "./index25.js";
|
|
5
5
|
import { MARK_AS_PAID_FLOW_LABELS_EN as i, mergeMarkAsPaidFlowLabels as a } from "./index15.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { useAttachPayableFileMutation as e } from "../../data-access/dist/index13.js";
|
|
6
6
|
import "../../data-access/dist/index.js";
|
|
7
|
-
import { SourceDocumentPanel as t } from "../../ui/dist/
|
|
7
|
+
import { SourceDocumentPanel as t } from "../../ui/dist/index106.js";
|
|
8
8
|
import "../../ui/dist/index.js";
|
|
9
9
|
import { createSourceDocumentPreview as n } from "./index46.js";
|
|
10
10
|
import { SOURCE_DOCUMENT_CONTAINER_LABELS_EN as r } from "./index47.js";
|
|
@@ -19,11 +19,11 @@ import { hasUnpaidBalance as ce } from "./index7.js";
|
|
|
19
19
|
import { resolveVendor as le } from "./index8.js";
|
|
20
20
|
import { BillCreateScreen as ue } from "../../ui/dist/index50.js";
|
|
21
21
|
import { BillDecisionDialog as n } from "../../ui/dist/index56.js";
|
|
22
|
-
import { BillDuplicateNotice as de } from "../../ui/dist/
|
|
23
|
-
import { BillRejectedBanner as fe } from "../../ui/dist/
|
|
24
|
-
import { ExtractionNotice as pe } from "../../ui/dist/
|
|
25
|
-
import { MarkAsPaidDialog as me } from "../../ui/dist/
|
|
26
|
-
import { UnsavedBillDialog as he } from "../../ui/dist/
|
|
22
|
+
import { BillDuplicateNotice as de } from "../../ui/dist/index69.js";
|
|
23
|
+
import { BillRejectedBanner as fe } from "../../ui/dist/index72.js";
|
|
24
|
+
import { ExtractionNotice as pe } from "../../ui/dist/index90.js";
|
|
25
|
+
import { MarkAsPaidDialog as me } from "../../ui/dist/index99.js";
|
|
26
|
+
import { UnsavedBillDialog as he } from "../../ui/dist/index109.js";
|
|
27
27
|
import "../../ui/dist/index.js";
|
|
28
28
|
import { usePayableDuplicateReview as ge } from "./index13.js";
|
|
29
29
|
import "./index14.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/
|
|
1
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/index64.js";
|
|
2
2
|
import "../../ui/dist/index.js";
|
|
3
3
|
import { MARK_AS_PAID_FLOW_LABELS_EN as t } from "./index15.js";
|
|
4
4
|
import "./index18.js";
|
|
@@ -15,9 +15,9 @@ import { useAllPayableLineItemsQuery as r } from "../../data-access/dist/index10
|
|
|
15
15
|
import { usePayableQuery as i } from "../../data-access/dist/index17.js";
|
|
16
16
|
import "../../data-access/dist/index.js";
|
|
17
17
|
import { BillDecisionDialog as a } from "../../ui/dist/index56.js";
|
|
18
|
-
import { BillDetailsSheet as o } from "../../ui/dist/
|
|
19
|
-
import { BillDuplicateNotice as s } from "../../ui/dist/
|
|
20
|
-
import { MarkAsPaidDialog as c } from "../../ui/dist/
|
|
18
|
+
import { BillDetailsSheet as o } from "../../ui/dist/index65.js";
|
|
19
|
+
import { BillDuplicateNotice as s } from "../../ui/dist/index69.js";
|
|
20
|
+
import { MarkAsPaidDialog as c } from "../../ui/dist/index99.js";
|
|
21
21
|
import "../../ui/dist/index.js";
|
|
22
22
|
import { usePayableDuplicateReview as l } from "./index13.js";
|
|
23
23
|
import "./index14.js";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { formatMoneyExact as e } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
6
6
|
import { useCounterpartsQuery as t } from "../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
7
7
|
import "../../data-access/dist/index.js";
|
|
8
|
-
import { BillsFilterField as n } from "../../ui/dist/
|
|
8
|
+
import { BillsFilterField as n } from "../../ui/dist/index75.js";
|
|
9
9
|
import "../../ui/dist/index.js";
|
|
10
10
|
import { getCounterpartName as r } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
11
11
|
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
@@ -47,18 +47,20 @@ function C({ enabled: C = !0, canReadVendors: w = !0, isVendorFilterPaused: T =
|
|
|
47
47
|
apiStatus: r.status,
|
|
48
48
|
dueDate: r.due_date,
|
|
49
49
|
scheduledPaymentDate: r.scheduled_payment_date
|
|
50
|
-
}),
|
|
50
|
+
}), l = r.amount_due ?? r.total_amount, u = r.status === "partially_paid" || r.status === "paid", d = (e) => e == null ? "" : t(e / 100, { currencyCode: r.currency ?? "USD" });
|
|
51
51
|
return {
|
|
52
52
|
vendorLabel: o(r),
|
|
53
53
|
issueDateLabel: e(r.issued_at),
|
|
54
54
|
dueDateLabel: e(r.due_date),
|
|
55
55
|
dueDateTone: i.isOverdue ? "danger" : "default",
|
|
56
56
|
scheduledDateLabel: e(r.scheduled_payment_date),
|
|
57
|
+
scheduledDateIsGap: A === c.Scheduled,
|
|
57
58
|
paidDateLabel: e(r.paid_at?.slice(0, 10)),
|
|
58
|
-
amountDueLabel: l
|
|
59
|
-
amountPaidLabel:
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
amountDueLabel: d(l),
|
|
60
|
+
amountPaidLabel: u ? d(r.amount_paid) : "",
|
|
61
|
+
amountPaidIsGap: A === c.Paid,
|
|
62
|
+
amountScheduledLabel: d(r.amount_to_pay ?? l),
|
|
63
|
+
totalAmountLabel: d(r.total_amount),
|
|
62
64
|
attachment: r.file_id ? { label: k } : void 0,
|
|
63
65
|
status: i.status,
|
|
64
66
|
statusTone: i.tone,
|
|
@@ -73,7 +75,8 @@ function C({ enabled: C = !0, canReadVendors: w = !0, isVendorFilterPaused: T =
|
|
|
73
75
|
K.data?.data,
|
|
74
76
|
O,
|
|
75
77
|
k,
|
|
76
|
-
D
|
|
78
|
+
D,
|
|
79
|
+
A
|
|
77
80
|
]), Z = _((e) => {
|
|
78
81
|
let t = e;
|
|
79
82
|
j(t), N((e) => {
|
|
@@ -11,7 +11,7 @@ import { useWidgetConfig as ee, useWidgetInitStaleForToken as r } from "../../..
|
|
|
11
11
|
import "../../../shared/feature/dist/index.js";
|
|
12
12
|
import { useDuplicateBillsCount as i } from "./index10.js";
|
|
13
13
|
import { AddBillDialog as a } from "../../ui/dist/index10.js";
|
|
14
|
-
import { BillsScreen as o } from "../../ui/dist/
|
|
14
|
+
import { BillsScreen as o } from "../../ui/dist/index79.js";
|
|
15
15
|
import "../../ui/dist/index.js";
|
|
16
16
|
import { DuplicateBillsContainer as te } from "./index12.js";
|
|
17
17
|
import "./index14.js";
|
|
@@ -12,7 +12,7 @@ import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProv
|
|
|
12
12
|
import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
13
|
import "../../../shared/feature/dist/index.js";
|
|
14
14
|
import { BillPayWidgetUi as o } from "../../ui/dist/index53.js";
|
|
15
|
-
import { BillUploadStatusTray as s } from "../../ui/dist/
|
|
15
|
+
import { BillUploadStatusTray as s } from "../../ui/dist/index82.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";
|
|
@@ -49,47 +49,50 @@ import "./index57.js";
|
|
|
49
49
|
import "./index58.js";
|
|
50
50
|
import "./index59.js";
|
|
51
51
|
import "./index60.js";
|
|
52
|
-
import
|
|
53
|
-
import
|
|
52
|
+
import "./index61.js";
|
|
53
|
+
import "./index62.js";
|
|
54
54
|
import "./index63.js";
|
|
55
|
-
import "./index64.js";
|
|
56
|
-
import "./index65.js";
|
|
57
|
-
import
|
|
55
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index64.js";
|
|
56
|
+
import { BillDetailsSheet as o } from "./index65.js";
|
|
57
|
+
import "./index66.js";
|
|
58
58
|
import "./index67.js";
|
|
59
|
-
import
|
|
60
|
-
import {
|
|
59
|
+
import "./index68.js";
|
|
60
|
+
import { BillDuplicateNotice as s } from "./index69.js";
|
|
61
61
|
import "./index70.js";
|
|
62
|
-
import "./index71.js";
|
|
63
|
-
import {
|
|
62
|
+
import { BILL_REJECTED_BANNER_LABELS_EN as c } from "./index71.js";
|
|
63
|
+
import { BillRejectedBanner as l } from "./index72.js";
|
|
64
64
|
import "./index73.js";
|
|
65
65
|
import "./index74.js";
|
|
66
|
-
import {
|
|
67
|
-
import
|
|
66
|
+
import { BillsFilterField as u } from "./index75.js";
|
|
67
|
+
import "./index76.js";
|
|
68
68
|
import "./index77.js";
|
|
69
|
-
import {
|
|
70
|
-
import "./
|
|
71
|
-
import "./
|
|
72
|
-
import {
|
|
73
|
-
import "./
|
|
69
|
+
import { BillColumn as d } from "./index78.js";
|
|
70
|
+
import { BillsScreen as f } from "./index79.js";
|
|
71
|
+
import "./index80.js";
|
|
72
|
+
import { BillUploadStatusTray as p } from "./index82.js";
|
|
73
|
+
import "./index84.js";
|
|
74
74
|
import "./index86.js";
|
|
75
|
-
import {
|
|
75
|
+
import { DuplicateBillsDialog as m } from "./index87.js";
|
|
76
76
|
import "./index88.js";
|
|
77
77
|
import "./index89.js";
|
|
78
|
-
import "./index90.js";
|
|
78
|
+
import { ExtractionNotice as h } from "./index90.js";
|
|
79
79
|
import "./index91.js";
|
|
80
|
-
import
|
|
81
|
-
import
|
|
80
|
+
import "./index92.js";
|
|
81
|
+
import "./index93.js";
|
|
82
82
|
import "./index94.js";
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
83
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as g } from "./index95.js";
|
|
84
|
+
import { ReviewTransactionDialog as _ } from "./index96.js";
|
|
85
85
|
import "./index97.js";
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import "./
|
|
89
|
-
import "./
|
|
90
|
-
import {
|
|
86
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as v } from "./index98.js";
|
|
87
|
+
import { MarkAsPaidDialog as y } from "./index99.js";
|
|
88
|
+
import "./index100.js";
|
|
89
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as b } from "./index101.js";
|
|
90
|
+
import { SchedulePaymentDialog as x } from "./index103.js";
|
|
91
91
|
import "./index104.js";
|
|
92
|
-
import
|
|
93
|
-
import {
|
|
92
|
+
import "./index105.js";
|
|
93
|
+
import { SourceDocumentPanel as S } from "./index106.js";
|
|
94
94
|
import "./index107.js";
|
|
95
|
+
import { UNSAVED_BILL_DIALOG_LABELS_EN as C } from "./index108.js";
|
|
96
|
+
import { UnsavedBillDialog as w } from "./index109.js";
|
|
97
|
+
import "./index110.js";
|
|
95
98
|
export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, c as BILL_REJECTED_BANNER_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, d as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, s as BillDuplicateNotice, r as BillPayWidgetUi, l as BillRejectedBanner, p as BillUploadStatusTray, u as BillsFilterField, f as BillsScreen, m as DuplicateBillsDialog, h as ExtractionNotice, v as MARK_AS_PAID_DIALOG_LABELS_EN, y as MarkAsPaidDialog, g as REVIEW_TRANSACTION_DIALOG_LABELS_EN, _ as ReviewTransactionDialog, b as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, x as SchedulePaymentDialog, S as SourceDocumentPanel, C as UNSAVED_BILL_DIALOG_LABELS_EN, w as UnsavedBillDialog };
|
|
@@ -1,170 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { TONE_TEXT_CLASS as y } from "./index99.js";
|
|
4
|
-
import { useId as b } from "react";
|
|
5
|
-
import { Fragment as te, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
6
|
-
import { CalendarIcon as C } from "lucide-react";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js
|
|
8
|
-
var w = {
|
|
9
|
-
sufficient: y.muted,
|
|
10
|
-
warning: y.warning,
|
|
11
|
-
error: y.error
|
|
12
|
-
};
|
|
13
|
-
function T({ open: y, onOpenChange: T, amountDueLabel: E, amountDue: D, dueDateSuffix: O, paymentAmountLabel: k, paymentAmount: A, selectedDate: j, selectedDateLabel: M, calendarDisabled: N, isToday: P, selectedAccountId: F, accounts: I, poweredByBankName: L, funds: R, isAccountsLoading: z, isAccountsError: B, isSubmitting: V, onDateChange: H, onAccountChange: U, onReview: W, onCancel: G, testId: K, labels: q }) {
|
|
14
|
-
let J = {
|
|
15
|
-
...v,
|
|
16
|
-
...q
|
|
17
|
-
}, Y = b(), X = b(), Z = b(), Q = z || B || I.length === 0, $ = I.find((e) => e.id === F);
|
|
18
|
-
return /* @__PURE__ */ x(r, {
|
|
19
|
-
open: y,
|
|
20
|
-
onOpenChange: (e) => e ? T(e) : G(),
|
|
21
|
-
children: /* @__PURE__ */ S(i, {
|
|
22
|
-
"data-testid": K,
|
|
23
|
-
className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
|
|
24
|
-
children: [
|
|
25
|
-
/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: J.title }), /* @__PURE__ */ x(a, {
|
|
26
|
-
className: "ttw:sr-only",
|
|
27
|
-
children: J.hiddenDescription
|
|
28
|
-
})] }),
|
|
29
|
-
/* @__PURE__ */ S("div", {
|
|
30
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ S("div", {
|
|
33
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
34
|
-
children: [/* @__PURE__ */ x("p", {
|
|
35
|
-
className: "ttw:text-base ttw:text-muted-foreground",
|
|
36
|
-
children: E
|
|
37
|
-
}), /* @__PURE__ */ S("div", {
|
|
38
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
|
|
39
|
-
children: [/* @__PURE__ */ x("p", {
|
|
40
|
-
className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
|
|
41
|
-
children: D
|
|
42
|
-
}), O ? /* @__PURE__ */ x("p", {
|
|
43
|
-
className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
|
|
44
|
-
children: O
|
|
45
|
-
}) : null]
|
|
46
|
-
})]
|
|
47
|
-
}),
|
|
48
|
-
/* @__PURE__ */ S("div", {
|
|
49
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
50
|
-
children: [/* @__PURE__ */ S("div", {
|
|
51
|
-
className: "ttw:grid ttw:gap-2.5",
|
|
52
|
-
children: [/* @__PURE__ */ x(c, { children: k }), /* @__PURE__ */ x("div", {
|
|
53
|
-
"aria-disabled": !0,
|
|
54
|
-
className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
|
|
55
|
-
children: A
|
|
56
|
-
})]
|
|
57
|
-
}), /* @__PURE__ */ S("div", {
|
|
58
|
-
className: "ttw:grid ttw:gap-2.5",
|
|
59
|
-
children: [/* @__PURE__ */ x(c, {
|
|
60
|
-
id: Y,
|
|
61
|
-
children: J.paymentDate
|
|
62
|
-
}), /* @__PURE__ */ S(l, { children: [/* @__PURE__ */ x(d, {
|
|
63
|
-
asChild: !0,
|
|
64
|
-
children: /* @__PURE__ */ S(t, {
|
|
65
|
-
type: "button",
|
|
66
|
-
variant: "outline",
|
|
67
|
-
className: "ttw:justify-start ttw:gap-2",
|
|
68
|
-
"aria-labelledby": `${Y} ${X}`,
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ x(C, { className: "ttw:size-4" }),
|
|
71
|
-
/* @__PURE__ */ x("span", {
|
|
72
|
-
id: X,
|
|
73
|
-
children: M ?? J.paymentDatePlaceholder
|
|
74
|
-
}),
|
|
75
|
-
P ? /* @__PURE__ */ x(e, {
|
|
76
|
-
variant: "secondary",
|
|
77
|
-
children: J.today
|
|
78
|
-
}) : null
|
|
79
|
-
]
|
|
80
|
-
})
|
|
81
|
-
}), /* @__PURE__ */ x(u, {
|
|
82
|
-
align: "start",
|
|
83
|
-
className: "ttw:w-auto ttw:p-0",
|
|
84
|
-
children: /* @__PURE__ */ x(n, {
|
|
85
|
-
mode: "single",
|
|
86
|
-
selected: j,
|
|
87
|
-
onSelect: H,
|
|
88
|
-
disabled: N
|
|
89
|
-
})
|
|
90
|
-
})] })]
|
|
91
|
-
})]
|
|
92
|
-
}),
|
|
93
|
-
/* @__PURE__ */ S("div", {
|
|
94
|
-
className: "ttw:grid ttw:gap-2.5",
|
|
95
|
-
children: [
|
|
96
|
-
/* @__PURE__ */ x(c, {
|
|
97
|
-
id: Z,
|
|
98
|
-
children: J.payFrom
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ S(f, {
|
|
101
|
-
value: F,
|
|
102
|
-
disabled: Q,
|
|
103
|
-
onValueChange: U,
|
|
104
|
-
children: [/* @__PURE__ */ x(h, {
|
|
105
|
-
className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
|
|
106
|
-
"aria-labelledby": Z,
|
|
107
|
-
children: /* @__PURE__ */ x(g, {
|
|
108
|
-
placeholder: J.payFromPlaceholder,
|
|
109
|
-
children: $ ? /* @__PURE__ */ S(te, { children: [/* @__PURE__ */ S("span", {
|
|
110
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
|
|
111
|
-
children: [/* @__PURE__ */ x("span", {
|
|
112
|
-
className: "ttw:truncate",
|
|
113
|
-
children: $.primaryLabel
|
|
114
|
-
}), $.secondaryLabel ? /* @__PURE__ */ x("span", {
|
|
115
|
-
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
116
|
-
children: $.secondaryLabel
|
|
117
|
-
}) : null]
|
|
118
|
-
}), L ? /* @__PURE__ */ x(e, {
|
|
119
|
-
variant: "secondary",
|
|
120
|
-
className: "ttw:shrink-0",
|
|
121
|
-
children: J.poweredByBank(L)
|
|
122
|
-
}) : null] }) : null
|
|
123
|
-
})
|
|
124
|
-
}), /* @__PURE__ */ x(p, { children: I.map((e) => /* @__PURE__ */ x(m, {
|
|
125
|
-
value: e.id,
|
|
126
|
-
children: /* @__PURE__ */ S("span", {
|
|
127
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
|
|
128
|
-
children: [/* @__PURE__ */ x("span", {
|
|
129
|
-
className: "ttw:truncate",
|
|
130
|
-
children: e.primaryLabel
|
|
131
|
-
}), e.secondaryLabel ? /* @__PURE__ */ x("span", {
|
|
132
|
-
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
133
|
-
children: e.secondaryLabel
|
|
134
|
-
}) : null]
|
|
135
|
-
})
|
|
136
|
-
}, e.id)) })]
|
|
137
|
-
}),
|
|
138
|
-
Q ? /* @__PURE__ */ x("p", {
|
|
139
|
-
className: _("ttw:text-sm", B ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
|
|
140
|
-
role: B ? "alert" : void 0,
|
|
141
|
-
children: z ? J.loadingAccounts : B ? J.accountsError : J.noAccounts
|
|
142
|
-
}) : null
|
|
143
|
-
]
|
|
144
|
-
}),
|
|
145
|
-
R.message ? /* @__PURE__ */ x("p", {
|
|
146
|
-
className: _("ttw:text-sm", w[R.state]),
|
|
147
|
-
children: R.message
|
|
148
|
-
}) : null
|
|
149
|
-
]
|
|
150
|
-
}),
|
|
151
|
-
/* @__PURE__ */ S(ee, {
|
|
152
|
-
className: "ttw:pt-4 ttw:sm:gap-3",
|
|
153
|
-
children: [/* @__PURE__ */ x(t, {
|
|
154
|
-
type: "button",
|
|
155
|
-
variant: "outline",
|
|
156
|
-
onClick: G,
|
|
157
|
-
children: J.cancelButton
|
|
158
|
-
}), /* @__PURE__ */ x(t, {
|
|
159
|
-
type: "button",
|
|
160
|
-
loading: V,
|
|
161
|
-
onClick: W,
|
|
162
|
-
children: J.reviewButton
|
|
163
|
-
})]
|
|
164
|
-
})
|
|
165
|
-
]
|
|
166
|
-
})
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
//#endregion
|
|
170
|
-
export { T as SchedulePaymentDialog, T as default };
|
|
1
|
+
import "./index98.js";
|
|
2
|
+
import "./index99.js";
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js
|
|
2
|
+
var e = {
|
|
3
|
+
title: "Schedule payment",
|
|
4
|
+
hiddenDescription: "Choose the account to pay from and the payment date.",
|
|
5
|
+
payFrom: "Pay from",
|
|
6
|
+
payFromPlaceholder: "Select an account",
|
|
7
|
+
paymentDate: "Payment date",
|
|
8
|
+
paymentDatePlaceholder: "Choose a date",
|
|
9
|
+
today: "Today",
|
|
10
|
+
noAccounts: "No accounts available",
|
|
11
|
+
loadingAccounts: "Loading accounts",
|
|
12
|
+
accountsError: "Couldn't load accounts. Try again.",
|
|
13
|
+
poweredByBank: (e) => `Powered by ${e}`,
|
|
14
|
+
cancelButton: "Cancel",
|
|
15
|
+
reviewButton: "Review payment"
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { e as SCHEDULE_PAYMENT_DIALOG_LABELS_EN };
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "./index2.js";
|
|
2
|
-
import "./index5.js";
|
|
3
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
delete: "Delete the scanned attachment",
|
|
11
|
-
dropzone: e
|
|
2
|
+
var e = {
|
|
3
|
+
neutral: "ttw:text-foreground",
|
|
4
|
+
muted: "ttw:text-muted-foreground",
|
|
5
|
+
success: "ttw:text-emerald-700",
|
|
6
|
+
warning: "ttw:text-amber-700",
|
|
7
|
+
error: "ttw:text-destructive"
|
|
12
8
|
};
|
|
13
9
|
//#endregion
|
|
14
|
-
export {
|
|
10
|
+
export { e as TONE_TEXT_CLASS };
|