@tesouro/embedded-components-react 0.11.189 → 0.11.190
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 +12 -8
- package/dist/index.d.ts +16 -1
- package/dist/index.js +40 -39
- package/dist/lib/BillPayWidget.d.ts +16 -1
- package/dist/lib/BillPayWidget.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +180 -180
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +62 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +101 -58
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +169 -138
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +227 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +208 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +212 -212
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index9.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +43 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +66 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -498,16 +498,20 @@ A bill pay widget with Tesouro widget auth and theming: a Bills tab for uploadin
|
|
|
498
498
|
|
|
499
499
|
The right end of the tab row holds the active tab's main action: Add bill on Bills and Add vendor on Vendors. While the vendor list is empty, Add vendor shows only in its empty state.
|
|
500
500
|
|
|
501
|
+
Above the bills list, the Total unpaid, Overdue, Scheduled and Not submitted cards act as quick filters. Clicking one switches to All bills, narrows the list to the bills that card totals, shows that as a filter chip and selects the card. Clicking it again, removing the chip or Clear all deselects it, and only one card is selected at a time. Picking another view, such as Assigned to me, also deselects it. Pass `selectedSummaryCard` and `onSummaryCardChange` to keep the card in your URL, for example to link straight to overdue bills.
|
|
502
|
+
|
|
501
503
|
#### Props
|
|
502
504
|
|
|
503
|
-
| Prop
|
|
504
|
-
|
|
|
505
|
-
| `initialTab`
|
|
506
|
-
| `selectedTab`
|
|
507
|
-
| `onTabChange`
|
|
508
|
-
| `initialView`
|
|
509
|
-
| `poweredByBankName`
|
|
510
|
-
| `onSettingsClick`
|
|
505
|
+
| Prop | Type | Default | Description |
|
|
506
|
+
| --------------------- | ----------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
507
|
+
| `initialTab` | `'bills' \| 'vendors'` | `'bills'` | Tab to open on initial mount when `selectedTab` is omitted. |
|
|
508
|
+
| `selectedTab` | `BillPayWidgetTabId` | `undefined` | The active tab: `'bills'` or `'vendors'`. Omit to let the widget track it, starting on `initialTab`. |
|
|
509
|
+
| `onTabChange` | `(tab: BillPayWidgetTabId) => void` | `undefined` | Called when the active tab changes, from a tab click or a vendor's "View all" or "Add a bill" opening the Bills tab, so you can keep it in the URL. |
|
|
510
|
+
| `initialView` | `'create'` | `undefined` | Opens the Bills tab's "Add a bill" dialog once on arrival, when the user can create bills. Closing it does not reopen it. Ignored when the widget opens on Vendors. |
|
|
511
|
+
| `poweredByBankName` | `string` | `undefined` | Bank shown as "Powered by {bank}" next to the source account when paying a bill. Omit it to hide the badge. |
|
|
512
|
+
| `onSettingsClick` | `() => void` | `undefined` | Opens your bill pay settings surface from a cog on the tab row, beside the active tab's add button. The cog renders only when this is supplied and the user's scopes reach that surface. |
|
|
513
|
+
| `selectedSummaryCard` | `BillSummaryCard \| null` | `undefined` | The active summary card on the Bills tab: `'total_unpaid'`, `'overdue'`, `'scheduled'` or `'not_submitted'`, or `null` for none. Applied on mount and whenever it changes. Omit to let the widget track it, starting with none. |
|
|
514
|
+
| `onSummaryCardChange` | `(card: BillSummaryCard \| null) => void` | `undefined` | Called when the reader selects or deselects a summary card, so you can keep it in the URL. |
|
|
511
515
|
|
|
512
516
|
### CreditCardsWidget
|
|
513
517
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6215,6 +6215,14 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$1;
|
|
|
6215
6215
|
*/
|
|
6216
6216
|
declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
|
|
6217
6217
|
|
|
6218
|
+
declare const BillSummaryCard: {
|
|
6219
|
+
readonly TotalUnpaid: "total_unpaid";
|
|
6220
|
+
readonly Overdue: "overdue";
|
|
6221
|
+
readonly Scheduled: "scheduled";
|
|
6222
|
+
readonly NotSubmitted: "not_submitted";
|
|
6223
|
+
};
|
|
6224
|
+
type BillSummaryCard = (typeof BillSummaryCard)[keyof typeof BillSummaryCard];
|
|
6225
|
+
|
|
6218
6226
|
interface CounterpartsScreenLabels {
|
|
6219
6227
|
/** Customer-mode create action. */
|
|
6220
6228
|
createButton: string;
|
|
@@ -6402,6 +6410,13 @@ interface BillPayWidgetProps extends WidgetProviderProps {
|
|
|
6402
6410
|
* reach it.
|
|
6403
6411
|
*/
|
|
6404
6412
|
onSettingsClick?: () => void;
|
|
6413
|
+
/**
|
|
6414
|
+
* The active summary card on the Bills tab, or `null` for none. Applied on
|
|
6415
|
+
* mount and whenever it changes. Omit to let the widget track it.
|
|
6416
|
+
*/
|
|
6417
|
+
selectedSummaryCard?: BillSummaryCard | null;
|
|
6418
|
+
/** Called when the reader selects or deselects a summary card, so you can keep it in the URL. */
|
|
6419
|
+
onSummaryCardChange?: (card: BillSummaryCard | null) => void;
|
|
6405
6420
|
}
|
|
6406
6421
|
declare const BillPayWidget: (props: BillPayWidgetProps) => ReactElement;
|
|
6407
6422
|
|
|
@@ -6666,5 +6681,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
6666
6681
|
|
|
6667
6682
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
6668
6683
|
|
|
6669
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, InvoicingTab, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, RESULT_LABELS_EN, ReceivableStatusCard, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, THEME_TOKEN_NAMES, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, configureCsp, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
6684
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, BillSummaryCard, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, InvoicingTab, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, RESULT_LABELS_EN, ReceivableStatusCard, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, THEME_TOKEN_NAMES, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, configureCsp, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
6670
6685
|
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BillPayWidgetTabId, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, InvoicingTabId, InvoicingTabLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RecurringSeriesScreenLabelOverrides, RecurringSeriesScreenLabels, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteComplianceBannerLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
package/dist/index.js
CHANGED
|
@@ -17,42 +17,43 @@ import { useWidgetToken as C } from "./libs/tesouro-embedded-components-react/sh
|
|
|
17
17
|
import { RefreshingRootWidgetProvider as w } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
|
|
18
18
|
import { useDisclosuresAcceptanceSurface as T, useOwnWidgetConfig as E, useRefetchWidget as D, useWidgetConfig as O, useWidgetError as k, useWidgetInitStaleForToken as A, useWidgetLoading as j } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
19
19
|
import { BankAccountsWidget as M } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
|
|
20
|
+
import { BillSummaryCard as N } from "./libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js";
|
|
21
|
+
import { BillPayWidget as P } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
|
|
22
|
+
import { CardDetailsWidget as F } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js";
|
|
23
|
+
import { CreditCardsWidget as I } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CreditCardsWidget.js";
|
|
24
|
+
import { DebitCardsWidget as L } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/DebitCardsWidget.js";
|
|
25
|
+
import { INSIGHTS_FEATURE_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/labels.js";
|
|
26
|
+
import { INSIGHTS_WIDGET_LABELS_EN as z } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
|
|
27
|
+
import { SINGLE_INSIGHT_LABELS_EN as B } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
|
|
28
|
+
import { InsightsWidget as V } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
29
|
+
import { ExpenseManagementWidget as H } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js";
|
|
30
|
+
import { InvoicingTab as U } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js";
|
|
31
|
+
import { ReceivableStatusCard as W } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js";
|
|
32
|
+
import { ReceivablesWidget as G } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
33
|
+
import { SettingsSection as K } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/sections.js";
|
|
34
|
+
import { HELP_FAQ_EN as q } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
|
|
35
|
+
import { SettingsWidget as J } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js";
|
|
36
|
+
import { LinkedAccountsWidget as Y } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js";
|
|
37
|
+
import { DEFAULT_FEATURE_LABELS as X } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js";
|
|
38
|
+
import { TRANSFERS_WIDGET_LABELS_EN as Z } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
|
|
39
|
+
import { TransfersWidget as Q } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js";
|
|
40
|
+
import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as $ } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
|
|
41
|
+
import { AcceptDisclosuresWidget as ee } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
|
|
42
|
+
import { BANKING_COMPLIANCE_BANNER_LABELS_EN as te } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js";
|
|
43
|
+
import { BankingComplianceBannerWidget as ne } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
|
|
44
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as re } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
|
|
45
|
+
import { BUSINESS_DETAILS_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
|
|
46
|
+
import { PERSONAL_DETAILS_LABELS_EN as ae } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js";
|
|
47
|
+
import { RESULT_LABELS_EN as oe } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js";
|
|
48
|
+
import { APPLICATION_STATUS_LABELS_EN as se } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
|
|
49
|
+
import { BankAccountOnboardingWidget as ce } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
|
|
50
|
+
import { WidgetSuite as le } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
|
|
51
|
+
import { CounterpartsWidget as ue } from "./lib/CounterpartsWidgetPublic.js";
|
|
52
|
+
import { BALANCES_WIDGET_LABELS_EN as de } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
|
|
53
|
+
import { BalancesWidget as fe } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetFeature.js";
|
|
54
|
+
import { OFFER_WIDGET_STATUS_LABELS_EN as pe } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/labels.js";
|
|
55
|
+
import { OFFER_WIDGET_LABELS_EN as me } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index2.js";
|
|
56
|
+
import { OfferBenefitIcon as he } from "./libs/tesouro-embedded-components-react/offer-widget/ui/dist/index3.js";
|
|
57
|
+
import { OfferWidget as ge } from "./libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js";
|
|
58
|
+
import { WidgetProvider as _e } from "./lib/WidgetProviderPublic.js";
|
|
59
|
+
export { $ as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, re as ADDITIONAL_OWNERS_LABELS_EN, se as APPLICATION_STATUS_LABELS_EN, ee as AcceptDisclosuresWidget, de as BALANCES_WIDGET_LABELS_EN, te as BANKING_COMPLIANCE_BANNER_LABELS_EN, ie as BUSINESS_DETAILS_LABELS_EN, fe as BalancesWidget, ce as BankAccountOnboardingWidget, M as BankAccountsWidget, ne as BankingComplianceBannerWidget, P as BillPayWidget, N as BillSummaryCard, F as CardDetailsWidget, ue as CounterpartsWidget, I as CreditCardsWidget, L as DebitCardsWidget, h as ERROR_STATE_ID, H as ExpenseManagementWidget, q as HELP_FAQ_EN, R as INSIGHTS_FEATURE_LABELS_EN, z as INSIGHTS_WIDGET_LABELS_EN, V as InsightsWidget, U as InvoicingTab, Y as LinkedAccountsWidget, me as OFFER_WIDGET_LABELS_EN, pe as OFFER_WIDGET_STATUS_LABELS_EN, he as OfferBenefitIcon, ge as OfferWidget, d as OnboardingSuppressionReason, ae as PERSONAL_DETAILS_LABELS_EN, oe as RESULT_LABELS_EN, W as ReceivableStatusCard, G as ReceivablesWidget, w as RefreshingRootWidgetProvider, x as RootWidgetProvider, B as SINGLE_INSIGHT_LABELS_EN, l as Scope, K as SettingsSection, J as SettingsWidget, e as THEME_TOKEN_NAMES, X as TRANSFERS_FEATURE_LABELS_EN, Z as TRANSFERS_WIDGET_LABELS_EN, Q as TransfersWidget, f as UIFramework, o as WIDGET_SUITE_DEFAULT_SECTIONS, a as WIDGET_SUITE_LABELS_EN, _e as WidgetProvider, le as WidgetSuite, s as WidgetSuiteSectionId, S as WidgetTokenRefreshProvider, c as cloneEmbeddedClient, i as configureCsp, t as createTheme, g as getGlobalWidgetConfig, y as getGlobalWidgetInitState, u as isScope, p as registerDesignSystemEnsurer, m as registerUIRenderers, _ as setGlobalWidgetConfig, b as subscribeToGlobalWidgetInitState, n as themeIssues, r as themeToCss, v as updateGlobalWidgetConfig, T as useDisclosuresAcceptanceSurface, E as useOwnWidgetConfig, D as useRefetchWidget, O as useWidgetConfig, k as useWidgetError, A as useWidgetInitStaleForToken, j as useWidgetLoading, C as useWidgetToken };
|
|
@@ -595,6 +595,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
595
595
|
providerLabels?: Partial<WidgetProviderLabels>;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
+
declare const BillSummaryCard: {
|
|
599
|
+
readonly TotalUnpaid: "total_unpaid";
|
|
600
|
+
readonly Overdue: "overdue";
|
|
601
|
+
readonly Scheduled: "scheduled";
|
|
602
|
+
readonly NotSubmitted: "not_submitted";
|
|
603
|
+
};
|
|
604
|
+
type BillSummaryCard = (typeof BillSummaryCard)[keyof typeof BillSummaryCard];
|
|
605
|
+
|
|
598
606
|
declare const TabId: {
|
|
599
607
|
readonly Bills: "bills";
|
|
600
608
|
readonly Vendors: "vendors";
|
|
@@ -625,8 +633,15 @@ interface BillPayWidgetProps extends WidgetProviderProps {
|
|
|
625
633
|
* reach it.
|
|
626
634
|
*/
|
|
627
635
|
onSettingsClick?: () => void;
|
|
636
|
+
/**
|
|
637
|
+
* The active summary card on the Bills tab, or `null` for none. Applied on
|
|
638
|
+
* mount and whenever it changes. Omit to let the widget track it.
|
|
639
|
+
*/
|
|
640
|
+
selectedSummaryCard?: BillSummaryCard | null;
|
|
641
|
+
/** Called when the reader selects or deselects a summary card, so you can keep it in the URL. */
|
|
642
|
+
onSummaryCardChange?: (card: BillSummaryCard | null) => void;
|
|
628
643
|
}
|
|
629
644
|
declare const BillPayWidget: (props: BillPayWidgetProps) => ReactElement;
|
|
630
645
|
|
|
631
|
-
export { BillPayWidget };
|
|
646
|
+
export { BillPayWidget, BillSummaryCard };
|
|
632
647
|
export type { BillPayWidgetProps, BillPayWidgetTabId };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { BillSummaryCard as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js";
|
|
2
|
+
import { BillPayWidget as t } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js";
|
|
2
3
|
import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
|
|
4
|
+
export { t as BillPayWidget, e as BillSummaryCard };
|
|
@@ -6,8 +6,8 @@ import { resolveLineItemAmountMinorUnits as r } from "../../../util/dist/lib/res
|
|
|
6
6
|
import { resolveLineItemQuantity as i } from "../../../util/dist/lib/resolveLineItemQuantity.js";
|
|
7
7
|
import { resolveVendor as a, resolveVendorName as o } from "../../../util/dist/lib/resolveVendor.js";
|
|
8
8
|
import "../../../util/dist/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { derivePayableStatus as s } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
|
|
10
|
+
import { formatGlCodeLabel as c } from "./index16.js";
|
|
11
11
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js
|
|
12
12
|
function l(e) {
|
|
13
13
|
return e.total_amount ?? e.amount_due ?? void 0;
|
|
@@ -16,7 +16,7 @@ function u(e) {
|
|
|
16
16
|
return typeof e == "string" ? e : "";
|
|
17
17
|
}
|
|
18
18
|
function d({ payable: d, lineItems: p, ledgerAccounts: m, labels: h, hasScheduledPayment: g, now: _, today: v, rejection: y, achInstructions: b, achInstructionsReadable: x = !1 }) {
|
|
19
|
-
let S = d.currency, C = (e) => t(e, S), w =
|
|
19
|
+
let S = d.currency, C = (e) => t(e, S), w = s({
|
|
20
20
|
apiStatus: d.status,
|
|
21
21
|
dueDate: d.due_date,
|
|
22
22
|
scheduledPaymentDate: d.scheduled_payment_date,
|
|
@@ -55,7 +55,7 @@ function d({ payable: d, lineItems: p, ledgerAccounts: m, labels: h, hasSchedule
|
|
|
55
55
|
label: h.poNumberRow,
|
|
56
56
|
value: u(d.purchase_order_number) || h.notProvided
|
|
57
57
|
}
|
|
58
|
-
], N = new Map(m.map((e) => [e.id,
|
|
58
|
+
], N = new Map(m.map((e) => [e.id, c(e)])), P = p.map((e) => {
|
|
59
59
|
let t = C(e.unit_price), n = String(i(e));
|
|
60
60
|
return {
|
|
61
61
|
id: e.id,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, PAYMENT_HISTORY_LABELS_EN as r, SCHEDULED_RELATIVE_DAY_LABELS_EN as i, SCHEDULED_STATUS_BADGE_LABEL_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o, mergeBillDetailActionsLabels as s, mergePaymentHistoryMethodLabels as c } from "../../../util/dist/lib/billDetailLabels.js";
|
|
2
2
|
import { BILL_DUE_DATE_LABELS_EN as l } from "../../../util/dist/lib/resolveBillDueDate.js";
|
|
3
3
|
import "../../../util/dist/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import { PAYABLE_AUDIT_HISTORY_LABELS_EN as d } from "./index30.js";
|
|
6
|
-
import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as f } from "./index31.js";
|
|
7
|
-
import { ACH_FIELD_GROUP_LABELS_EN as p } from "../../../../shared/counterpart-management/ui/dist/index2.js";
|
|
4
|
+
import { ACH_FIELD_GROUP_LABELS_EN as u } from "../../../../shared/counterpart-management/ui/dist/index2.js";
|
|
8
5
|
import "../../../../shared/counterpart-management/ui/dist/index.js";
|
|
6
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as d } from "./index10.js";
|
|
7
|
+
import { PAYABLE_AUDIT_HISTORY_LABELS_EN as f } from "./index30.js";
|
|
8
|
+
import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as p } from "./index31.js";
|
|
9
9
|
import { BILL_REJECTED_BANNER_LABELS_EN as m } from "../../ui/dist/index39.js";
|
|
10
10
|
import { DISCARD_CHANGES_DIALOG_LABELS_EN as h } from "../../ui/dist/index42.js";
|
|
11
11
|
import { UNSAVED_BILL_DIALOG_LABELS_EN as g } from "../../ui/dist/index51.js";
|
|
@@ -51,7 +51,7 @@ var _ = {
|
|
|
51
51
|
deleteFailed: "We could not remove that document. Try again.",
|
|
52
52
|
noDocument: "No document attached to this bill.",
|
|
53
53
|
pendingDeletionNotice: "This document will be removed when you save this bill.",
|
|
54
|
-
preview:
|
|
54
|
+
preview: p
|
|
55
55
|
}, b = {
|
|
56
56
|
...r,
|
|
57
57
|
notProvided: "Not provided",
|
|
@@ -90,8 +90,8 @@ var _ = {
|
|
|
90
90
|
awaitingApprovalUnknownNotice: t,
|
|
91
91
|
actions: n,
|
|
92
92
|
detail: b,
|
|
93
|
-
history:
|
|
94
|
-
approvalPolicyCopy:
|
|
93
|
+
history: f,
|
|
94
|
+
approvalPolicyCopy: d,
|
|
95
95
|
deleteDraft: {
|
|
96
96
|
menuItem: "Delete draft",
|
|
97
97
|
dialog: {
|
|
@@ -182,7 +182,7 @@ var C = {
|
|
|
182
182
|
paymentInstructionsHeading: "Payment instructions",
|
|
183
183
|
paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
|
|
184
184
|
paymentInstructionsExtracted: "We read these from the bill. Check them before saving.",
|
|
185
|
-
ach:
|
|
185
|
+
ach: u
|
|
186
186
|
};
|
|
187
187
|
function w(e) {
|
|
188
188
|
return {
|
|
@@ -8,10 +8,10 @@ import "../../../../shared/util/dist/index.js";
|
|
|
8
8
|
import { AchFieldGroup as n } from "../../../../shared/counterpart-management/ui/dist/index5.js";
|
|
9
9
|
import { CounterpartFormFields as r, countErrors as i, useFocusFirstInvalidField as a } from "../../../../shared/counterpart-management/ui/dist/index10.js";
|
|
10
10
|
import "../../../../shared/counterpart-management/ui/dist/index.js";
|
|
11
|
+
import "../../../../shared/counterpart-management/feature/dist/index.js";
|
|
11
12
|
import { VendorSearchCombobox as o } from "../../ui/dist/index24.js";
|
|
12
13
|
import "../../ui/dist/index.js";
|
|
13
14
|
import { mergeVendorInlineFormLabels as s } from "./index32.js";
|
|
14
|
-
import "../../../../shared/counterpart-management/feature/dist/index.js";
|
|
15
15
|
import { useMemo as c } from "react";
|
|
16
16
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
17
17
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js
|