@tesouro/embedded-components-react 0.11.219 → 0.11.221
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 +11 -7
- package/dist/experimental/QuickViewWidget.d.ts +25 -13
- package/dist/experimental/index.d.ts +25 -13
- package/dist/index.css +394 -30
- package/dist/index.d.ts +24 -7
- package/dist/lib/AcceptDisclosuresWidget.d.ts +6 -2
- package/dist/lib/BankAccountsWidget.d.ts +4 -0
- package/dist/lib/BillPayWidget.d.ts +4 -3
- package/dist/lib/ExpenseManagementWidget.d.ts +7 -0
- package/dist/lib/ReceivablesWidget.d.ts +3 -2
- package/dist/lib/WidgetSuite.d.ts +13 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/resolveAcceptDisclosuresContent.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +27 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +61 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +28 -30
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +47 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +105 -97
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +66 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +73 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +42 -35
- package/dist/libs/tesouro-embedded-components-react/offer-widget/ui/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/feature/dist/lib/BillsQuickViewWidget/BillsQuickViewWidgetFeature.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index3.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/InvoicesQuickViewWidgetFeature.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +5 -6
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +119 -119
- 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/product-catalog/ui/dist/index9.js +86 -77
- package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/FdicLogo.js +76 -72
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +49 -43
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/createTheme.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +1 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +141 -124
- package/package.json +1 -1
|
@@ -1345,6 +1345,7 @@ interface ReceivablePreviewLabels {
|
|
|
1345
1345
|
noItems: string;
|
|
1346
1346
|
payOnline: string;
|
|
1347
1347
|
paymentQrCodeLabel: string;
|
|
1348
|
+
previewRegionLabel: string;
|
|
1348
1349
|
}
|
|
1349
1350
|
|
|
1350
1351
|
interface RecurringSeriesScreenLabels {
|
|
@@ -1820,7 +1821,7 @@ interface InvoicingTabLabels extends InvoicingTabsLabels {
|
|
|
1820
1821
|
interface ReceivablesWidgetOwnProps {
|
|
1821
1822
|
/** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
|
|
1822
1823
|
embeddedBankName?: string;
|
|
1823
|
-
/** Rendered above the tab row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
|
|
1824
|
+
/** Rendered above the tab row, and kept when an error or the disclosures gate replaces the tabs. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
|
|
1824
1825
|
headerStart?: ReactNode;
|
|
1825
1826
|
/** The active tab. Omit to let the widget track it, starting on Invoices. */
|
|
1826
1827
|
selectedTab?: InvoicingTabId;
|
|
@@ -1860,7 +1861,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1860
1861
|
|
|
1861
1862
|
type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
1862
1863
|
|
|
1863
|
-
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1864
|
+
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, headerStart, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1864
1865
|
|
|
1865
1866
|
export { InvoicingTab, ReceivableStatusCard, ReceivablesWidget };
|
|
1866
1867
|
export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, InvoicingTabId, InvoicingTabLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RecurringSeriesScreenLabelOverrides, RecurringSeriesScreenLabels };
|
|
@@ -1724,6 +1724,10 @@ interface Labels$3 {
|
|
|
1724
1724
|
statementColumn: string;
|
|
1725
1725
|
statementsActionsColumn: string;
|
|
1726
1726
|
viewStatementButton: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* The View button's accessible name. Starts with `viewStatementButton`'s
|
|
1729
|
+
* text so a voice-control user can say what they see (WCAG 2.5.3).
|
|
1730
|
+
*/
|
|
1727
1731
|
viewStatementButtonAriaLabel: string;
|
|
1728
1732
|
statementsRowsPerPageLabel: string;
|
|
1729
1733
|
statementsPreviousPageButton: string;
|
|
@@ -2677,6 +2681,11 @@ interface ExpensesTransactionsTableLabels {
|
|
|
2677
2681
|
interface ExpensesTransactionsFilterBarLabels {
|
|
2678
2682
|
searchPlaceholder: string;
|
|
2679
2683
|
searchAriaLabel: string;
|
|
2684
|
+
/**
|
|
2685
|
+
* Visible text of the filters button, followed by "(N)" when filters are
|
|
2686
|
+
* active; it is also the button's accessible name. Named for its old
|
|
2687
|
+
* aria-label role and kept so existing host overrides still apply.
|
|
2688
|
+
*/
|
|
2680
2689
|
filtersButtonAriaLabel: string;
|
|
2681
2690
|
clearAll: string;
|
|
2682
2691
|
dateRangeFieldLabel: string;
|
|
@@ -2703,6 +2712,8 @@ interface Labels$2 {
|
|
|
2703
2712
|
|
|
2704
2713
|
interface FileViewerLabels {
|
|
2705
2714
|
filePreview: string;
|
|
2715
|
+
/** Names the scrollable viewport that holds the zoomed file. */
|
|
2716
|
+
previewRegion: string;
|
|
2706
2717
|
zoomIn: string;
|
|
2707
2718
|
zoomOut: string;
|
|
2708
2719
|
moreActions: string;
|
|
@@ -3579,6 +3590,7 @@ interface ReceivablePreviewLabels {
|
|
|
3579
3590
|
noItems: string;
|
|
3580
3591
|
payOnline: string;
|
|
3581
3592
|
paymentQrCodeLabel: string;
|
|
3593
|
+
previewRegionLabel: string;
|
|
3582
3594
|
}
|
|
3583
3595
|
|
|
3584
3596
|
interface RecurringSeriesScreenLabels {
|
|
@@ -4054,7 +4066,7 @@ interface InvoicingTabLabels extends InvoicingTabsLabels {
|
|
|
4054
4066
|
interface ReceivablesWidgetOwnProps {
|
|
4055
4067
|
/** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
|
|
4056
4068
|
embeddedBankName?: string;
|
|
4057
|
-
/** Rendered above the tab row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
|
|
4069
|
+
/** Rendered above the tab row, and kept when an error or the disclosures gate replaces the tabs. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
|
|
4058
4070
|
headerStart?: ReactNode;
|
|
4059
4071
|
/** The active tab. Omit to let the widget track it, starting on Invoices. */
|
|
4060
4072
|
selectedTab?: InvoicingTabId;
|
|
@@ -109,8 +109,7 @@ function E({ displayedVersion: t, labelOverrides: r, content: i, labels: a, onAc
|
|
|
109
109
|
return /* @__PURE__ */ S(m, {
|
|
110
110
|
labels: {
|
|
111
111
|
...r,
|
|
112
|
-
title: i.title
|
|
113
|
-
agreementCheckboxAriaLabel: i.agreementCheckboxAriaLabel
|
|
112
|
+
title: i.title
|
|
114
113
|
},
|
|
115
114
|
providerAttribution: w(i.vspName, i.bankName, a),
|
|
116
115
|
agreementText: i.agreementText,
|
|
@@ -21,8 +21,7 @@ function i(t) {
|
|
|
21
21
|
label: e.title,
|
|
22
22
|
href: e.url
|
|
23
23
|
})),
|
|
24
|
-
agreementText: l
|
|
25
|
-
agreementCheckboxAriaLabel: c ? o.agreementCheckboxAriaLabel : o.noDocumentsAgreementCheckboxAriaLabel.replaceAll("{bankName}", a)
|
|
24
|
+
agreementText: l
|
|
26
25
|
};
|
|
27
26
|
}
|
|
28
27
|
export { i as resolveAcceptDisclosuresContent };
|
|
@@ -29,6 +29,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
|
|
|
29
29
|
}),
|
|
30
30
|
/* @__PURE__ */ v(n, {
|
|
31
31
|
id: "firstName",
|
|
32
|
+
autoComplete: "given-name",
|
|
32
33
|
value: r.firstName.value,
|
|
33
34
|
onChange: (e) => r.firstName.onValueChange(e.target.value),
|
|
34
35
|
onBlur: r.firstName.onBlur,
|
|
@@ -48,6 +49,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
|
|
|
48
49
|
}),
|
|
49
50
|
/* @__PURE__ */ v(n, {
|
|
50
51
|
id: "lastName",
|
|
52
|
+
autoComplete: "family-name",
|
|
51
53
|
value: r.lastName.value,
|
|
52
54
|
onChange: (e) => r.lastName.onValueChange(e.target.value),
|
|
53
55
|
onBlur: r.lastName.onBlur,
|
|
@@ -139,6 +141,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
|
|
|
139
141
|
}),
|
|
140
142
|
/* @__PURE__ */ v(n, {
|
|
141
143
|
id: "homeAddress",
|
|
144
|
+
autoComplete: "street-address",
|
|
142
145
|
value: r.homeAddress.value,
|
|
143
146
|
onChange: (e) => r.homeAddress.onValueChange(e.target.value),
|
|
144
147
|
onBlur: r.homeAddress.onBlur,
|
|
@@ -163,6 +166,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
|
|
|
163
166
|
}),
|
|
164
167
|
/* @__PURE__ */ v(n, {
|
|
165
168
|
id: "city",
|
|
169
|
+
autoComplete: "address-level2",
|
|
166
170
|
value: r.city.value,
|
|
167
171
|
onChange: (e) => r.city.onValueChange(e.target.value),
|
|
168
172
|
onBlur: r.city.onBlur,
|
|
@@ -214,6 +218,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
|
|
|
214
218
|
}),
|
|
215
219
|
/* @__PURE__ */ v(n, {
|
|
216
220
|
id: "zipCode",
|
|
221
|
+
autoComplete: "postal-code",
|
|
217
222
|
value: r.zipCode.value,
|
|
218
223
|
onChange: (e) => r.zipCode.onValueChange(e.target.value),
|
|
219
224
|
onBlur: r.zipCode.onBlur,
|
|
@@ -237,6 +242,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
|
|
|
237
242
|
}),
|
|
238
243
|
/* @__PURE__ */ v(n, {
|
|
239
244
|
id: "mobilePhoneNumber",
|
|
245
|
+
autoComplete: "mobile tel",
|
|
240
246
|
type: "tel",
|
|
241
247
|
value: r.mobilePhoneNumber.value,
|
|
242
248
|
onChange: (e) => r.mobilePhoneNumber.onValueChange(e.target.value),
|
|
@@ -257,6 +263,7 @@ function w({ fields: r, testIds: w, labels: T, isDisabled: E, ssnRevealed: D, ss
|
|
|
257
263
|
}),
|
|
258
264
|
/* @__PURE__ */ v(n, {
|
|
259
265
|
id: "workEmail",
|
|
266
|
+
autoComplete: "work email",
|
|
260
267
|
type: "email",
|
|
261
268
|
value: r.workEmail.value,
|
|
262
269
|
onChange: (e) => r.workEmail.onValueChange(e.target.value),
|
|
@@ -34,7 +34,7 @@ var e = {
|
|
|
34
34
|
statementColumn: "Statement",
|
|
35
35
|
statementsActionsColumn: "Actions",
|
|
36
36
|
viewStatementButton: "View",
|
|
37
|
-
viewStatementButtonAriaLabel: "
|
|
37
|
+
viewStatementButtonAriaLabel: "View {date} statement",
|
|
38
38
|
statementsRowsPerPageLabel: "Rows per page",
|
|
39
39
|
statementsPreviousPageButton: "Previous page",
|
|
40
40
|
statementsNextPageButton: "Next page",
|
|
@@ -6,7 +6,8 @@ import "react-pdf/dist/Page/TextLayer.css";
|
|
|
6
6
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js
|
|
7
7
|
var o = {
|
|
8
8
|
previewUnavailable: "Preview not available for this file type.",
|
|
9
|
-
openFile: "Open file"
|
|
9
|
+
openFile: "Open file",
|
|
10
|
+
previewRegion: "Attachment preview"
|
|
10
11
|
}, s = 720, c = 280, l = 1.3;
|
|
11
12
|
function u(e) {
|
|
12
13
|
return (e.trim().split(/\s+/)[0] ?? "").split("#")[0] ?? e;
|
|
@@ -75,6 +76,9 @@ function f({ url: a, labels: o }) {
|
|
|
75
76
|
let { Document: w, Page: T } = v;
|
|
76
77
|
return /* @__PURE__ */ i("div", {
|
|
77
78
|
ref: f,
|
|
79
|
+
role: "region",
|
|
80
|
+
"aria-label": o.previewRegion,
|
|
81
|
+
tabIndex: 0,
|
|
78
82
|
className: "ttw:flex ttw:h-full ttw:w-full ttw:justify-center ttw:overflow-auto ttw:bg-white",
|
|
79
83
|
children: /* @__PURE__ */ i(w, {
|
|
80
84
|
suspense: !1,
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js
CHANGED
|
@@ -40,16 +40,23 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
|
|
|
40
40
|
labels: v
|
|
41
41
|
}) : d.hasPaymentInstructions ? p?.onEditExisting ? /* @__PURE__ */ a("button", {
|
|
42
42
|
type: "button",
|
|
43
|
-
"aria-label": v.editPaymentInstructionsAction,
|
|
44
43
|
onClick: p.onEditExisting,
|
|
45
44
|
className: u,
|
|
46
|
-
children: [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ i("span", {
|
|
47
|
+
className: "ttw:sr-only",
|
|
48
|
+
children: v.editPaymentInstructionsAction
|
|
49
|
+
}),
|
|
50
|
+
" ",
|
|
51
|
+
/* @__PURE__ */ i("span", {
|
|
52
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
53
|
+
children: d.methodLabel
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ i(o, {
|
|
56
|
+
"aria-hidden": "true",
|
|
57
|
+
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
58
|
+
})
|
|
59
|
+
]
|
|
53
60
|
}) : /* @__PURE__ */ i("p", {
|
|
54
61
|
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
55
62
|
children: d.methodLabel
|
|
@@ -99,13 +106,20 @@ function d({ summary: d, onEdit: f, paymentInstructions: p, showPaymentInstructi
|
|
|
99
106
|
children: v.vendorLabel
|
|
100
107
|
}), f && !y ? /* @__PURE__ */ a("button", {
|
|
101
108
|
type: "button",
|
|
102
|
-
"aria-label": v.editAction,
|
|
103
109
|
onClick: f,
|
|
104
110
|
className: u,
|
|
105
|
-
children: [
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ i("span", {
|
|
113
|
+
className: "ttw:sr-only",
|
|
114
|
+
children: v.editAction
|
|
115
|
+
}),
|
|
116
|
+
" ",
|
|
117
|
+
b,
|
|
118
|
+
/* @__PURE__ */ i(o, {
|
|
119
|
+
"aria-hidden": "true",
|
|
120
|
+
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
|
|
121
|
+
})
|
|
122
|
+
]
|
|
109
123
|
}) : /* @__PURE__ */ i("div", {
|
|
110
124
|
className: "ttw:flex ttw:flex-1",
|
|
111
125
|
children: b
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js
CHANGED
|
@@ -147,6 +147,9 @@ function D({ open: D, onOpenChange: O, title: k, subtitle: A, notice: j, vendor:
|
|
|
147
147
|
] })
|
|
148
148
|
]
|
|
149
149
|
}), /* @__PURE__ */ C("div", {
|
|
150
|
+
role: "region",
|
|
151
|
+
"aria-label": Q.documentPaneRegion,
|
|
152
|
+
tabIndex: 0,
|
|
150
153
|
className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
|
|
151
154
|
children: L
|
|
152
155
|
})]
|
|
@@ -16,66 +16,66 @@ import "../../../../../shared/feature/dist/index.js";
|
|
|
16
16
|
import { BillPayWidgetAnalyticsEvent as c, WIDGET_NAME as l } from "../analytics/events.js";
|
|
17
17
|
import { BillQueue as u } from "../../../../bills-list/feature/dist/index5.js";
|
|
18
18
|
import { BillSummaryCard as d } from "../../../../bills-list/feature/dist/index10.js";
|
|
19
|
-
import {
|
|
19
|
+
import { BillPayWidgetHeaderUi as f, BillPayWidgetUi as p } from "../../../../ui/dist/index14.js";
|
|
20
20
|
import "../../../../ui/dist/index.js";
|
|
21
21
|
import "../../../../bills-list/feature/dist/index.js";
|
|
22
|
-
import { BillUploadWidget as
|
|
22
|
+
import { BillUploadWidget as m } from "../../../../bill-upload/feature/dist/index8.js";
|
|
23
23
|
import "../../../../bill-upload/feature/dist/index.js";
|
|
24
|
-
import { BillsTab as
|
|
25
|
-
import { BILL_PAY_WIDGET_LABELS_EN as
|
|
26
|
-
import { CounterpartsWidget as
|
|
24
|
+
import { BillsTab as h } from "./BillsTab.js";
|
|
25
|
+
import { BILL_PAY_WIDGET_LABELS_EN as g } from "./labels.js";
|
|
26
|
+
import { CounterpartsWidget as _ } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js";
|
|
27
27
|
import "../../../../../counterparts-widget/feature/dist/index.js";
|
|
28
|
-
import { useCallback as
|
|
29
|
-
import { Fragment as
|
|
28
|
+
import { useCallback as v, useEffect as ee, useMemo as y, useRef as b, useState as x } from "react";
|
|
29
|
+
import { Fragment as S, jsx as C, jsxs as te } from "react/jsx-runtime";
|
|
30
30
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js
|
|
31
|
-
var
|
|
31
|
+
var w = {
|
|
32
32
|
Bills: "bills",
|
|
33
33
|
Vendors: "vendors"
|
|
34
|
-
},
|
|
34
|
+
}, T = [w.Bills, w.Vendors];
|
|
35
35
|
function ne(e) {
|
|
36
|
-
return
|
|
36
|
+
return T.includes(e);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, [
|
|
43
|
-
let
|
|
38
|
+
function E({ labels: a, initialTab: l = w.Bills, selectedTab: u, onTabChange: d, initialView: f, poweredByBankName: E, onSettingsClick: D, settingsContainer: O, selectedSummaryCard: k, onSummaryCardChange: A, selectedBillsView: j, onBillsViewChange: M }) {
|
|
39
|
+
let N = i();
|
|
40
|
+
ee(() => {
|
|
41
|
+
N(c.Mounted);
|
|
42
|
+
}, [N]);
|
|
43
|
+
let P = y(() => e(g, a), [a]), { initResponse: F } = o(), re = t(F?.scopes, [n.PayableReadOrg]), I = t(F?.scopes, [n.PayableWriteOrg]), L = t(F?.scopes, [n.ApprovalPolicyWriteOrg]) && t(F?.scopes, [n.PayableWriteOrg]) && t(F?.scopes, [n.RoleReadOrg]) && t(F?.scopes, [n.UserReadOrg]), [R, z] = x(l), B = u ?? R, V = v((e) => {
|
|
44
44
|
ne(e) && (z(e), d?.(e));
|
|
45
|
-
}, [d]), [H, U] = x(null), [W, G] = x(), K =
|
|
46
|
-
V(
|
|
47
|
-
}, [V]), q = b(null), J =
|
|
48
|
-
V(
|
|
49
|
-
}, [V]),
|
|
50
|
-
|
|
45
|
+
}, [d]), [H, U] = x(null), [W, G] = x(), K = v((e) => {
|
|
46
|
+
V(w.Bills), G(e);
|
|
47
|
+
}, [V]), q = b(null), J = v((e) => q.current?.enqueue(e), []), [Y, X] = x(), Z = v((e) => {
|
|
48
|
+
V(w.Bills), X(e);
|
|
49
|
+
}, [V]), ie = s(), [ae, oe] = x(f === "create"), [se, Q] = x(!1);
|
|
50
|
+
ae && F && !ie && (oe(!1), I && B === w.Bills && Q(!0));
|
|
51
51
|
let $ = [{
|
|
52
|
-
id:
|
|
53
|
-
label:
|
|
54
|
-
content: /* @__PURE__ */
|
|
55
|
-
labels:
|
|
52
|
+
id: w.Bills,
|
|
53
|
+
label: P.tabs.bills,
|
|
54
|
+
content: /* @__PURE__ */ C(h, {
|
|
55
|
+
labels: P,
|
|
56
56
|
onEnqueueFiles: J,
|
|
57
57
|
openPayableId: W,
|
|
58
58
|
onOpenPayableHandled: () => G(void 0),
|
|
59
59
|
vendorIntent: Y,
|
|
60
60
|
onVendorIntentHandled: () => X(void 0),
|
|
61
|
-
openAddBill:
|
|
61
|
+
openAddBill: se,
|
|
62
62
|
onOpenAddBillHandled: () => Q(!1),
|
|
63
63
|
poweredByBankName: E,
|
|
64
64
|
headerActionContainer: H,
|
|
65
|
-
selectedSummaryCard:
|
|
66
|
-
onSummaryCardChange:
|
|
67
|
-
selectedQueue:
|
|
68
|
-
onQueueChange:
|
|
65
|
+
selectedSummaryCard: k,
|
|
66
|
+
onSummaryCardChange: A,
|
|
67
|
+
selectedQueue: j,
|
|
68
|
+
onQueueChange: M
|
|
69
69
|
})
|
|
70
70
|
}, {
|
|
71
|
-
id:
|
|
72
|
-
label:
|
|
73
|
-
content: /* @__PURE__ */
|
|
74
|
-
...
|
|
71
|
+
id: w.Vendors,
|
|
72
|
+
label: P.tabs.vendors,
|
|
73
|
+
content: /* @__PURE__ */ C(_, {
|
|
74
|
+
...P.vendors,
|
|
75
75
|
counterpartType: "vendor",
|
|
76
76
|
passThrough: !0,
|
|
77
77
|
headerActionContainer: H,
|
|
78
|
-
onViewAllDocuments:
|
|
78
|
+
onViewAllDocuments: re ? (e) => Z({
|
|
79
79
|
vendorId: e.id,
|
|
80
80
|
vendorName: e.name,
|
|
81
81
|
action: "viewBills"
|
|
@@ -86,26 +86,33 @@ function T({ labels: a, initialTab: l = C.Bills, selectedTab: u, onTabChange: d,
|
|
|
86
86
|
action: "createBill"
|
|
87
87
|
}) : void 0
|
|
88
88
|
})
|
|
89
|
-
}],
|
|
90
|
-
return /* @__PURE__ */ te(
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
labels:
|
|
89
|
+
}], ce = $.some((e) => e.id === B) ? B : T.find((e) => $.some((t) => t.id === e)) ?? $[0]?.id ?? "";
|
|
90
|
+
return /* @__PURE__ */ te(S, { children: [
|
|
91
|
+
/* @__PURE__ */ C(r, {}),
|
|
92
|
+
/* @__PURE__ */ C(p, {
|
|
93
|
+
labels: P.widget,
|
|
94
94
|
tabs: $,
|
|
95
|
-
selectedTabId:
|
|
95
|
+
selectedTabId: ce,
|
|
96
96
|
onTabChange: V,
|
|
97
97
|
onSettingsClick: D && L ? D : void 0,
|
|
98
|
+
settingsContainer: O,
|
|
98
99
|
actionContainerRef: U
|
|
99
100
|
}),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ C(m, {
|
|
101
102
|
ref: q,
|
|
102
103
|
onOpenBill: K,
|
|
103
|
-
labels:
|
|
104
|
+
labels: P.billUpload
|
|
104
105
|
})
|
|
105
106
|
] });
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
108
|
+
function D({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, uiFramework: s, errorFallback: c, onError: u, analytics: d, disclosuresAcceptance: p, providerLabels: m, headerStart: h, ...g }) {
|
|
109
|
+
let [_, v] = x(null);
|
|
110
|
+
return /* @__PURE__ */ C(a, {
|
|
111
|
+
header: h || g.labels?.widget?.description || g.onSettingsClick ? /* @__PURE__ */ C(f, {
|
|
112
|
+
labels: g.labels?.widget,
|
|
113
|
+
headerStart: h,
|
|
114
|
+
settingsContainerRef: v
|
|
115
|
+
}) : null,
|
|
109
116
|
widgetName: l,
|
|
110
117
|
baseUrl: e,
|
|
111
118
|
widgetToken: t,
|
|
@@ -117,10 +124,13 @@ function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
117
124
|
errorFallback: c,
|
|
118
125
|
onError: u,
|
|
119
126
|
analytics: d,
|
|
120
|
-
disclosuresAcceptance:
|
|
121
|
-
providerLabels:
|
|
122
|
-
children: /* @__PURE__ */
|
|
127
|
+
disclosuresAcceptance: p,
|
|
128
|
+
providerLabels: m,
|
|
129
|
+
children: /* @__PURE__ */ C(E, {
|
|
130
|
+
...g,
|
|
131
|
+
settingsContainer: _
|
|
132
|
+
})
|
|
123
133
|
});
|
|
124
134
|
}
|
|
125
|
-
var
|
|
126
|
-
export {
|
|
135
|
+
var O = D;
|
|
136
|
+
export { O as BillPayWidget, O as default, D as BillPayWidgetWithLabels, d as BillSummaryCard, u as BillsView };
|
|
@@ -10,12 +10,12 @@ import { groupBySectionHeading as a } from "./index10.js";
|
|
|
10
10
|
import { BillOverflowMenu as o } from "./index11.js";
|
|
11
11
|
import "./index12.js";
|
|
12
12
|
import "./index13.js";
|
|
13
|
-
import {
|
|
13
|
+
import { BillPayWidgetHeaderUi as s, BillPayWidgetUi as c } from "./index14.js";
|
|
14
14
|
import "./index15.js";
|
|
15
|
-
import { BILL_UPLOAD_DROPZONE_LABELS_EN as
|
|
16
|
-
import { BillUploadDropzone as
|
|
15
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as l } from "./index16.js";
|
|
16
|
+
import { BillUploadDropzone as u, getAcceptedBillUploadFiles as d } from "./index17.js";
|
|
17
17
|
import "./index19.js";
|
|
18
|
-
import { REVEALABLE_FIELD_LABELS_EN as
|
|
19
|
-
import { RevealableField as
|
|
18
|
+
import { REVEALABLE_FIELD_LABELS_EN as f } from "./index20.js";
|
|
19
|
+
import { RevealableField as p } from "./index21.js";
|
|
20
20
|
import "./index22.js";
|
|
21
|
-
export {
|
|
21
|
+
export { l as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, r as BillDuplicateIcon, i as BillDuplicateWarning, o as BillOverflowMenu, s as BillPayWidgetHeaderUi, c as BillPayWidgetUi, u as BillUploadDropzone, t as NO_BILL_ACTIONS, f as REVEALABLE_FIELD_LABELS_EN, p as RevealableField, d as getAcceptedBillUploadFiles, a as groupBySectionHeading };
|
|
@@ -4,55 +4,66 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { Button as e, Tabs as t, TabsContent as n, TabsList as r, TabsTrigger as i, Tooltip as a, TooltipContent as o, TooltipProvider as s, TooltipTrigger as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import { DEFAULT_LABELS as l } from "./index13.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { createPortal as u } from "react-dom";
|
|
8
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
+
import { SettingsIcon as p } from "lucide-react";
|
|
9
10
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js
|
|
10
|
-
function
|
|
11
|
-
let
|
|
11
|
+
function m({ labels: e, headerStart: t, settingsContainerRef: n }) {
|
|
12
|
+
let r = {
|
|
12
13
|
...l,
|
|
13
|
-
...
|
|
14
|
+
...e
|
|
14
15
|
};
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
className: "ttw:
|
|
17
|
-
children: [
|
|
18
|
-
className: "ttw:min-w-0",
|
|
19
|
-
children: /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ f("div", {
|
|
17
|
+
className: "ttw:mb-5 ttw:hidden ttw:items-start ttw:justify-between ttw:gap-4 ttw:has-[>:not(:empty)]:flex",
|
|
18
|
+
children: [/* @__PURE__ */ f("div", {
|
|
19
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-2",
|
|
20
|
+
children: [t, r.description ? /* @__PURE__ */ d("p", {
|
|
20
21
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
21
|
-
children:
|
|
22
|
+
children: r.description
|
|
23
|
+
}) : null]
|
|
24
|
+
}), /* @__PURE__ */ d("div", {
|
|
25
|
+
ref: n,
|
|
26
|
+
className: "ttw:flex ttw:items-center"
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function h({ labels: m, tabs: h, selectedTabId: g, onTabChange: _, onSettingsClick: v, settingsContainer: y, actionContainerRef: b }) {
|
|
31
|
+
let x = {
|
|
32
|
+
...l,
|
|
33
|
+
...m
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ f("section", {
|
|
36
|
+
className: "ttw:w-full",
|
|
37
|
+
children: [v && y ? u(/* @__PURE__ */ d(s, { children: /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(c, {
|
|
38
|
+
asChild: !0,
|
|
39
|
+
children: /* @__PURE__ */ d(e, {
|
|
40
|
+
type: "button",
|
|
41
|
+
variant: "ghost",
|
|
42
|
+
size: "icon",
|
|
43
|
+
"aria-label": x.settingsButton,
|
|
44
|
+
onClick: v,
|
|
45
|
+
children: /* @__PURE__ */ d(p, {
|
|
46
|
+
className: "ttw:size-5",
|
|
47
|
+
"aria-hidden": !0
|
|
48
|
+
})
|
|
22
49
|
})
|
|
23
|
-
}) : null, /* @__PURE__ */
|
|
24
|
-
value:
|
|
25
|
-
onValueChange:
|
|
50
|
+
}), /* @__PURE__ */ d(o, { children: x.settingsButton })] }) }), y) : null, /* @__PURE__ */ f(t, {
|
|
51
|
+
value: g,
|
|
52
|
+
onValueChange: _,
|
|
26
53
|
className: "ttw:w-full",
|
|
27
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ f("div", {
|
|
28
55
|
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
29
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ d(r, {
|
|
30
57
|
variant: "underline",
|
|
31
|
-
children:
|
|
58
|
+
children: h.map((e) => /* @__PURE__ */ d(i, {
|
|
32
59
|
value: e.id,
|
|
33
60
|
children: e.label
|
|
34
61
|
}, e.id))
|
|
35
62
|
}), /* @__PURE__ */ d("div", {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
asChild: !0,
|
|
39
|
-
children: /* @__PURE__ */ u(e, {
|
|
40
|
-
type: "button",
|
|
41
|
-
variant: "ghost",
|
|
42
|
-
size: "icon",
|
|
43
|
-
"aria-label": y.settingsButton,
|
|
44
|
-
onClick: _,
|
|
45
|
-
children: /* @__PURE__ */ u(f, {
|
|
46
|
-
className: "ttw:size-5",
|
|
47
|
-
"aria-hidden": !0
|
|
48
|
-
})
|
|
49
|
-
})
|
|
50
|
-
}), /* @__PURE__ */ u(o, { children: y.settingsButton })] }) }) : null, /* @__PURE__ */ u("div", {
|
|
51
|
-
ref: v,
|
|
52
|
-
className: "ttw:contents"
|
|
53
|
-
})]
|
|
63
|
+
ref: b,
|
|
64
|
+
className: "ttw:flex ttw:items-center ttw:gap-2"
|
|
54
65
|
})]
|
|
55
|
-
}),
|
|
66
|
+
}), h.map((e) => /* @__PURE__ */ d(n, {
|
|
56
67
|
value: e.id,
|
|
57
68
|
className: "ttw:mt-6",
|
|
58
69
|
children: e.content
|
|
@@ -60,4 +71,4 @@ function p({ labels: p, tabs: m, selectedTabId: h, onTabChange: g, onSettingsCli
|
|
|
60
71
|
})]
|
|
61
72
|
});
|
|
62
73
|
}
|
|
63
|
-
export {
|
|
74
|
+
export { m as BillPayWidgetHeaderUi, h as BillPayWidgetUi };
|
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { REVEALABLE_FIELD_LABELS_EN as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { Eye as
|
|
1
|
+
import { Button as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { REVEALABLE_FIELD_LABELS_EN as n } from "./index20.js";
|
|
3
|
+
import { useState as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { Eye as o, EyeOff as s } from "lucide-react";
|
|
6
6
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
...
|
|
10
|
-
...
|
|
11
|
-
}, [
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
className: "ttw:
|
|
14
|
-
children: [/* @__PURE__ */ i("
|
|
15
|
-
className: "ttw:
|
|
16
|
-
children:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
children: r(u ? o : a, { className: "ttw:size-4" })
|
|
30
|
-
}) : null]
|
|
7
|
+
function c({ field: c, labels: l }) {
|
|
8
|
+
let u = {
|
|
9
|
+
...n,
|
|
10
|
+
...l
|
|
11
|
+
}, [d, f] = r(!1), p = c.maskedValue && !d ? c.maskedValue : c.value;
|
|
12
|
+
return /* @__PURE__ */ a("div", {
|
|
13
|
+
className: t("ttw:relative ttw:min-w-0", c.maskedValue && "ttw:min-h-9 ttw:pr-12"),
|
|
14
|
+
children: [/* @__PURE__ */ i("dt", {
|
|
15
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
16
|
+
children: c.label
|
|
17
|
+
}), /* @__PURE__ */ a("dd", {
|
|
18
|
+
className: "ttw:break-words ttw:text-sm ttw:font-medium",
|
|
19
|
+
children: [p, c.maskedValue ? /* @__PURE__ */ i(e, {
|
|
20
|
+
type: "button",
|
|
21
|
+
variant: "ghost",
|
|
22
|
+
size: "icon",
|
|
23
|
+
className: "ttw:absolute ttw:top-0 ttw:right-0",
|
|
24
|
+
"aria-label": d ? u.hideValue : u.revealValue,
|
|
25
|
+
onClick: () => f((e) => !e),
|
|
26
|
+
children: i(d ? s : o, { className: "ttw:size-4" })
|
|
27
|
+
}) : null]
|
|
28
|
+
})]
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
|
-
export {
|
|
31
|
+
export { c as RevealableField, c as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js
|
|
2
2
|
var e = {
|
|
3
3
|
ReceiptPdfPreviewTitle: "Receipt PDF preview",
|
|
4
|
+
ReceiptPdfPreviewRegion: "Zoomable receipt preview",
|
|
4
5
|
FlowTitle: "Match receipts",
|
|
5
6
|
DropReceipts: "Drop to upload receipts",
|
|
6
7
|
DropReceiptRules: "PDF, PNG or JPG, 10 files at a time",
|