@tesouro/embedded-components-react 0.11.122 → 0.11.124
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 +6 -3
- package/dist/index.css +0 -10
- package/dist/index.d.ts +33 -6
- package/dist/index.js +15 -14
- package/dist/lib/ReceivablesWidget.d.ts +29 -6
- package/dist/lib/ReceivablesWidget.js +3 -1
- package/dist/lib/WidgetSuite.d.ts +31 -4
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index4.js → lib/BalanceHistoryCard/BalanceHistoryCard.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index2.js → lib/BalanceHistoryCard/BalanceHistoryChart.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index3.js → lib/BalanceHistoryCard/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +342 -295
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +30 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +121 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +39 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +2 -205
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +11 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +11 -210
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +27 -159
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +203 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +210 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +154 -111
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +21 -195
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +116 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +3 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +197 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +8 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +73 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +36 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -85
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +33 -490
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +82 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +475 -426
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -226
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +46 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +69 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +445 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +208 -246
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +5 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +247 -222
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +125 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +23 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +229 -209
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +3 -47
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +248 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +53 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +3 -40
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuiteProvider.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/AccountsSection.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js +31 -34
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +0 -27
package/README.md
CHANGED
|
@@ -731,10 +731,13 @@ Lists, creates, edits and acts on an organization's invoices, including sending
|
|
|
731
731
|
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads at the first choice, or `10` when the list is empty. |
|
|
732
732
|
| `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create succeeds. Not called for a duplicate. |
|
|
733
733
|
| `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
|
|
734
|
-
| `onTemplateSettingsClick` | `() => void` | `undefined` | Shows the invoice settings button
|
|
735
|
-
| `headerStart` | `ReactNode` | `undefined` | Rendered
|
|
734
|
+
| `onTemplateSettingsClick` | `() => void` | `undefined` | Shows the invoice settings button on the tab row, for users holding `organization_settings:write:org`, and calls this when it is clicked. |
|
|
735
|
+
| `headerStart` | `ReactNode` | `undefined` | Rendered above the tab row. The widget renders no heading of its own, so pass your page title here. |
|
|
736
|
+
| `selectedTab` | `InvoicingTabId` | `undefined` | The active tab: `'invoices'`, `'recurring'`, `'customers'` or `'products'`. Omit to let the widget track it, starting on Invoices. |
|
|
737
|
+
| `onTabChange` | `(tab: InvoicingTabId) => void` | `undefined` | Called when the user picks a tab, so you can keep it in the URL. |
|
|
736
738
|
| `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
|
|
737
|
-
| `
|
|
739
|
+
| `tabLabels` | `Partial<InvoicingTabLabels>` | English labels | Tab names, the invoice settings button and Create recurring invoice. |
|
|
740
|
+
| `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Create invoice, table, empty, error and status badge copy. |
|
|
738
741
|
| `filterBarLabels` | `InvoicesFilterBarLabelOverrides` | English labels | Invoice filter bar copy: field names, search, amount bounds, the customer panel and Clear all. |
|
|
739
742
|
| `filterLabels` | `InvoicesFilterLabelOverrides` | English labels | Invoice filter copy built from state: date presets, status descriptions and chip wording. |
|
|
740
743
|
| `formLabels` | `Partial<ReceivableFormDialogLabels>` | English labels | Create/edit form copy, including the unsaved-changes prompt; the save and issue buttons are in `messageLabels`. |
|
package/dist/index.css
CHANGED
|
@@ -521,10 +521,6 @@
|
|
|
521
521
|
width: calc(var(--ttw-spacing) * 4);
|
|
522
522
|
height: calc(var(--ttw-spacing) * 4);
|
|
523
523
|
}
|
|
524
|
-
.ttw\:size-4\.5 {
|
|
525
|
-
width: calc(var(--ttw-spacing) * 4.5);
|
|
526
|
-
height: calc(var(--ttw-spacing) * 4.5);
|
|
527
|
-
}
|
|
528
524
|
.ttw\:size-5 {
|
|
529
525
|
width: calc(var(--ttw-spacing) * 5);
|
|
530
526
|
height: calc(var(--ttw-spacing) * 5);
|
|
@@ -911,9 +907,6 @@
|
|
|
911
907
|
.ttw\:w-10 {
|
|
912
908
|
width: calc(var(--ttw-spacing) * 10);
|
|
913
909
|
}
|
|
914
|
-
.ttw\:w-11 {
|
|
915
|
-
width: calc(var(--ttw-spacing) * 11);
|
|
916
|
-
}
|
|
917
910
|
.ttw\:w-12 {
|
|
918
911
|
width: calc(var(--ttw-spacing) * 12);
|
|
919
912
|
}
|
|
@@ -6068,9 +6061,6 @@
|
|
|
6068
6061
|
.ttw\:md\:w-auto {
|
|
6069
6062
|
width: auto;
|
|
6070
6063
|
}
|
|
6071
|
-
.ttw\:md\:grid-cols-2 {
|
|
6072
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
6073
|
-
}
|
|
6074
6064
|
.ttw\:md\:grid-cols-3 {
|
|
6075
6065
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
6076
6066
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4279,6 +4279,11 @@ interface InvoicesFilterBarLabels {
|
|
|
4279
4279
|
}
|
|
4280
4280
|
type InvoicesFilterBarLabelOverrides = PartialDeep<InvoicesFilterBarLabels>;
|
|
4281
4281
|
|
|
4282
|
+
interface InvoicingTabsLabels {
|
|
4283
|
+
/** The settings button's accessible name and tooltip. */
|
|
4284
|
+
settingsButton: string;
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4282
4287
|
interface ReceivableActionsModalLabels {
|
|
4283
4288
|
issueDescription: string;
|
|
4284
4289
|
toLabel: string;
|
|
@@ -4373,8 +4378,6 @@ interface ReceivableStatusBadgeLabels {
|
|
|
4373
4378
|
|
|
4374
4379
|
interface ReceivablesScreenLabels {
|
|
4375
4380
|
createInvoiceButton: string;
|
|
4376
|
-
/** The settings button's accessible name and tooltip. */
|
|
4377
|
-
settingsButton: string;
|
|
4378
4381
|
statusCardsAll: string;
|
|
4379
4382
|
columnDueDate: string;
|
|
4380
4383
|
columnStatus: string;
|
|
@@ -4996,19 +4999,39 @@ interface ReceivableMessageLabels {
|
|
|
4996
4999
|
previewLogoAltNoName: string;
|
|
4997
5000
|
}
|
|
4998
5001
|
|
|
5002
|
+
declare const InvoicingTab: {
|
|
5003
|
+
readonly Invoices: "invoices";
|
|
5004
|
+
readonly Recurring: "recurring";
|
|
5005
|
+
readonly Customers: "customers";
|
|
5006
|
+
readonly Products: "products";
|
|
5007
|
+
};
|
|
5008
|
+
type InvoicingTabId = (typeof InvoicingTab)[keyof typeof InvoicingTab];
|
|
5009
|
+
interface InvoicingTabLabels extends InvoicingTabsLabels {
|
|
5010
|
+
invoicesTab: string;
|
|
5011
|
+
recurringTab: string;
|
|
5012
|
+
customersTab: string;
|
|
5013
|
+
productsTab: string;
|
|
5014
|
+
createRecurringInvoiceButton: string;
|
|
5015
|
+
}
|
|
5016
|
+
|
|
4999
5017
|
interface ReceivablesWidgetOwnProps {
|
|
5000
5018
|
/** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
|
|
5001
5019
|
embeddedBankName?: string;
|
|
5002
|
-
/** Rendered
|
|
5020
|
+
/** Rendered above the tab row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
|
|
5003
5021
|
headerStart?: ReactNode;
|
|
5022
|
+
/** The active tab. Omit to let the widget track it, starting on Invoices. */
|
|
5023
|
+
selectedTab?: InvoicingTabId;
|
|
5024
|
+
/** Called when the user picks a tab, so the host can keep it in the URL. */
|
|
5025
|
+
onTabChange?: (tab: InvoicingTabId) => void;
|
|
5004
5026
|
initialView?: 'create';
|
|
5005
5027
|
/** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
|
|
5006
5028
|
initialCounterpartId?: string;
|
|
5007
5029
|
pageSizeOptions?: number[];
|
|
5008
5030
|
onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
|
|
5009
5031
|
onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
|
|
5010
|
-
/** Shows an invoice settings button
|
|
5032
|
+
/** Shows an invoice settings button on the tab row for users holding `organization_settings:write:org`. */
|
|
5011
5033
|
onTemplateSettingsClick?: () => void;
|
|
5034
|
+
tabLabels?: Partial<InvoicingTabLabels>;
|
|
5012
5035
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
5013
5036
|
filterBarLabels?: InvoicesFilterBarLabelOverrides;
|
|
5014
5037
|
filterLabels?: InvoicesFilterLabelOverrides;
|
|
@@ -5696,6 +5719,10 @@ type WidgetSuiteInvoicingLabels = WidgetLabelProps<ReceivablesWidgetProps>;
|
|
|
5696
5719
|
/** The widgets the Dashboard section holds, each taking its own copy. */
|
|
5697
5720
|
interface WidgetSuiteDashboardLabels {
|
|
5698
5721
|
balanceHistory?: WidgetSuiteBalanceHistoryLabels;
|
|
5722
|
+
/**
|
|
5723
|
+
* @deprecated The Dashboard section no longer renders Balances, so this
|
|
5724
|
+
* copy is ignored. Kept so integrators who pass it still compile.
|
|
5725
|
+
*/
|
|
5699
5726
|
balances?: WidgetSuiteBalancesLabels;
|
|
5700
5727
|
insights?: WidgetSuiteInsightsLabels;
|
|
5701
5728
|
}
|
|
@@ -6710,5 +6737,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
6710
6737
|
|
|
6711
6738
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
6712
6739
|
|
|
6713
|
-
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, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, 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 };
|
|
6714
|
-
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, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, 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, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, 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, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
|
6740
|
+
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, CustomersWidget, 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, ProductsWidget, RESULT_LABELS_EN, 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 };
|
|
6741
|
+
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, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, CustomersWidgetOwnProps, CustomersWidgetProps, 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, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, 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, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
package/dist/index.js
CHANGED
|
@@ -21,13 +21,13 @@ import { BillPayWidget as N } from "./libs/tesouro-embedded-components-react/bil
|
|
|
21
21
|
import { CardDetailsWidget as P } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js";
|
|
22
22
|
import { CreditCardsWidget as F } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CreditCardsWidget.js";
|
|
23
23
|
import { DebitCardsWidget as I } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/DebitCardsWidget.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
24
|
+
import { INSIGHTS_FEATURE_LABELS_EN as L } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/labels.js";
|
|
25
|
+
import { INSIGHTS_WIDGET_LABELS_EN as R } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
|
|
26
|
+
import { SINGLE_INSIGHT_LABELS_EN as z } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
|
|
27
|
+
import { InsightsWidget as B } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
28
|
+
import { ExpenseManagementWidget as V } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js";
|
|
29
|
+
import { InvoicingTab as H } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js";
|
|
30
|
+
import { ProductsWidget as U } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js";
|
|
31
31
|
import { ReceivablesWidget as W } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
32
32
|
import { SettingsSection as G } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/sections.js";
|
|
33
33
|
import { HELP_FAQ_EN as K } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
|
|
@@ -49,10 +49,11 @@ import { BANKING_COMPLIANCE_BANNER_LABELS_EN as se } from "./libs/tesouro-embedd
|
|
|
49
49
|
import { BankingComplianceBannerWidget as ce } from "./libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js";
|
|
50
50
|
import { CounterpartsWidget as le } from "./lib/CounterpartsWidgetPublic.js";
|
|
51
51
|
import { CustomersWidget as ue } from "./libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js";
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
|
|
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 { Q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ee as ADDITIONAL_OWNERS_LABELS_EN, ie as APPLICATION_STATUS_LABELS_EN, $ as AcceptDisclosuresWidget, de as BALANCES_WIDGET_LABELS_EN, se as BANKING_COMPLIANCE_BANNER_LABELS_EN, te as BUSINESS_DETAILS_LABELS_EN, fe as BalancesWidget, ae as BankAccountOnboardingWidget, M as BankAccountsWidget, ce as BankingComplianceBannerWidget, N as BillPayWidget, P as CardDetailsWidget, le as CounterpartsWidget, F as CreditCardsWidget, ue as CustomersWidget, I as DebitCardsWidget, h as ERROR_STATE_ID, V as ExpenseManagementWidget, K as HELP_FAQ_EN, L as INSIGHTS_FEATURE_LABELS_EN, R as INSIGHTS_WIDGET_LABELS_EN, B as InsightsWidget, H as InvoicingTab, J as LinkedAccountsWidget, me as OFFER_WIDGET_LABELS_EN, pe as OFFER_WIDGET_STATUS_LABELS_EN, he as OfferBenefitIcon, ge as OfferWidget, d as OnboardingSuppressionReason, ne as PERSONAL_DETAILS_LABELS_EN, U as ProductsWidget, re as RESULT_LABELS_EN, W as ReceivablesWidget, w as RefreshingRootWidgetProvider, x as RootWidgetProvider, z as SINGLE_INSIGHT_LABELS_EN, l as Scope, G as SettingsSection, q as SettingsWidget, e as THEME_TOKEN_NAMES, Y as TRANSFERS_FEATURE_LABELS_EN, X as TRANSFERS_WIDGET_LABELS_EN, Z as TransfersWidget, f as UIFramework, o as WIDGET_SUITE_DEFAULT_SECTIONS, a as WIDGET_SUITE_LABELS_EN, _e as WidgetProvider, oe 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 };
|
|
@@ -1033,6 +1033,11 @@ interface InvoicesFilterBarLabels {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
type InvoicesFilterBarLabelOverrides = PartialDeep<InvoicesFilterBarLabels>;
|
|
1035
1035
|
|
|
1036
|
+
interface InvoicingTabsLabels {
|
|
1037
|
+
/** The settings button's accessible name and tooltip. */
|
|
1038
|
+
settingsButton: string;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1036
1041
|
interface ReceivableActionsModalLabels {
|
|
1037
1042
|
issueDescription: string;
|
|
1038
1043
|
toLabel: string;
|
|
@@ -1120,8 +1125,6 @@ interface ReceivableStatusBadgeLabels {
|
|
|
1120
1125
|
|
|
1121
1126
|
interface ReceivablesScreenLabels {
|
|
1122
1127
|
createInvoiceButton: string;
|
|
1123
|
-
/** The settings button's accessible name and tooltip. */
|
|
1124
|
-
settingsButton: string;
|
|
1125
1128
|
statusCardsAll: string;
|
|
1126
1129
|
columnDueDate: string;
|
|
1127
1130
|
columnStatus: string;
|
|
@@ -1743,19 +1746,39 @@ interface ReceivableMessageLabels {
|
|
|
1743
1746
|
previewLogoAltNoName: string;
|
|
1744
1747
|
}
|
|
1745
1748
|
|
|
1749
|
+
declare const InvoicingTab: {
|
|
1750
|
+
readonly Invoices: "invoices";
|
|
1751
|
+
readonly Recurring: "recurring";
|
|
1752
|
+
readonly Customers: "customers";
|
|
1753
|
+
readonly Products: "products";
|
|
1754
|
+
};
|
|
1755
|
+
type InvoicingTabId = (typeof InvoicingTab)[keyof typeof InvoicingTab];
|
|
1756
|
+
interface InvoicingTabLabels extends InvoicingTabsLabels {
|
|
1757
|
+
invoicesTab: string;
|
|
1758
|
+
recurringTab: string;
|
|
1759
|
+
customersTab: string;
|
|
1760
|
+
productsTab: string;
|
|
1761
|
+
createRecurringInvoiceButton: string;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1746
1764
|
interface ReceivablesWidgetOwnProps {
|
|
1747
1765
|
/** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
|
|
1748
1766
|
embeddedBankName?: string;
|
|
1749
|
-
/** Rendered
|
|
1767
|
+
/** Rendered above the tab row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
|
|
1750
1768
|
headerStart?: ReactNode;
|
|
1769
|
+
/** The active tab. Omit to let the widget track it, starting on Invoices. */
|
|
1770
|
+
selectedTab?: InvoicingTabId;
|
|
1771
|
+
/** Called when the user picks a tab, so the host can keep it in the URL. */
|
|
1772
|
+
onTabChange?: (tab: InvoicingTabId) => void;
|
|
1751
1773
|
initialView?: 'create';
|
|
1752
1774
|
/** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
|
|
1753
1775
|
initialCounterpartId?: string;
|
|
1754
1776
|
pageSizeOptions?: number[];
|
|
1755
1777
|
onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
|
|
1756
1778
|
onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
|
|
1757
|
-
/** Shows an invoice settings button
|
|
1779
|
+
/** Shows an invoice settings button on the tab row for users holding `organization_settings:write:org`. */
|
|
1758
1780
|
onTemplateSettingsClick?: () => void;
|
|
1781
|
+
tabLabels?: Partial<InvoicingTabLabels>;
|
|
1759
1782
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
1760
1783
|
filterBarLabels?: InvoicesFilterBarLabelOverrides;
|
|
1761
1784
|
filterLabels?: InvoicesFilterLabelOverrides;
|
|
@@ -1778,5 +1801,5 @@ type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
|
1778
1801
|
|
|
1779
1802
|
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1780
1803
|
|
|
1781
|
-
export { ReceivablesWidget };
|
|
1782
|
-
export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps };
|
|
1804
|
+
export { InvoicingTab, ReceivablesWidget };
|
|
1805
|
+
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 };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { InvoicingTab as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js";
|
|
2
|
+
import { ReceivablesWidget as t } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
2
3
|
import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
|
|
4
|
+
export { e as InvoicingTab, t as ReceivablesWidget };
|
|
@@ -3186,6 +3186,11 @@ interface InvoicesFilterBarLabels {
|
|
|
3186
3186
|
}
|
|
3187
3187
|
type InvoicesFilterBarLabelOverrides = PartialDeep<InvoicesFilterBarLabels>;
|
|
3188
3188
|
|
|
3189
|
+
interface InvoicingTabsLabels {
|
|
3190
|
+
/** The settings button's accessible name and tooltip. */
|
|
3191
|
+
settingsButton: string;
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3189
3194
|
interface ReceivableActionsModalLabels {
|
|
3190
3195
|
issueDescription: string;
|
|
3191
3196
|
toLabel: string;
|
|
@@ -3273,8 +3278,6 @@ interface ReceivableStatusBadgeLabels {
|
|
|
3273
3278
|
|
|
3274
3279
|
interface ReceivablesScreenLabels {
|
|
3275
3280
|
createInvoiceButton: string;
|
|
3276
|
-
/** The settings button's accessible name and tooltip. */
|
|
3277
|
-
settingsButton: string;
|
|
3278
3281
|
statusCardsAll: string;
|
|
3279
3282
|
columnDueDate: string;
|
|
3280
3283
|
columnStatus: string;
|
|
@@ -3894,19 +3897,39 @@ interface ReceivableMessageLabels {
|
|
|
3894
3897
|
previewLogoAltNoName: string;
|
|
3895
3898
|
}
|
|
3896
3899
|
|
|
3900
|
+
declare const InvoicingTab: {
|
|
3901
|
+
readonly Invoices: "invoices";
|
|
3902
|
+
readonly Recurring: "recurring";
|
|
3903
|
+
readonly Customers: "customers";
|
|
3904
|
+
readonly Products: "products";
|
|
3905
|
+
};
|
|
3906
|
+
type InvoicingTabId = (typeof InvoicingTab)[keyof typeof InvoicingTab];
|
|
3907
|
+
interface InvoicingTabLabels extends InvoicingTabsLabels {
|
|
3908
|
+
invoicesTab: string;
|
|
3909
|
+
recurringTab: string;
|
|
3910
|
+
customersTab: string;
|
|
3911
|
+
productsTab: string;
|
|
3912
|
+
createRecurringInvoiceButton: string;
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3897
3915
|
interface ReceivablesWidgetOwnProps {
|
|
3898
3916
|
/** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
|
|
3899
3917
|
embeddedBankName?: string;
|
|
3900
|
-
/** Rendered
|
|
3918
|
+
/** Rendered above the tab row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
|
|
3901
3919
|
headerStart?: ReactNode;
|
|
3920
|
+
/** The active tab. Omit to let the widget track it, starting on Invoices. */
|
|
3921
|
+
selectedTab?: InvoicingTabId;
|
|
3922
|
+
/** Called when the user picks a tab, so the host can keep it in the URL. */
|
|
3923
|
+
onTabChange?: (tab: InvoicingTabId) => void;
|
|
3902
3924
|
initialView?: 'create';
|
|
3903
3925
|
/** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
|
|
3904
3926
|
initialCounterpartId?: string;
|
|
3905
3927
|
pageSizeOptions?: number[];
|
|
3906
3928
|
onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
|
|
3907
3929
|
onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
|
|
3908
|
-
/** Shows an invoice settings button
|
|
3930
|
+
/** Shows an invoice settings button on the tab row for users holding `organization_settings:write:org`. */
|
|
3909
3931
|
onTemplateSettingsClick?: () => void;
|
|
3932
|
+
tabLabels?: Partial<InvoicingTabLabels>;
|
|
3910
3933
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
3911
3934
|
filterBarLabels?: InvoicesFilterBarLabelOverrides;
|
|
3912
3935
|
filterLabels?: InvoicesFilterLabelOverrides;
|
|
@@ -4579,6 +4602,10 @@ type WidgetSuiteInvoicingLabels = WidgetLabelProps<ReceivablesWidgetProps>;
|
|
|
4579
4602
|
/** The widgets the Dashboard section holds, each taking its own copy. */
|
|
4580
4603
|
interface WidgetSuiteDashboardLabels {
|
|
4581
4604
|
balanceHistory?: WidgetSuiteBalanceHistoryLabels;
|
|
4605
|
+
/**
|
|
4606
|
+
* @deprecated The Dashboard section no longer renders Balances, so this
|
|
4607
|
+
* copy is ignored. Kept so integrators who pass it still compile.
|
|
4608
|
+
*/
|
|
4582
4609
|
balances?: WidgetSuiteBalancesLabels;
|
|
4583
4610
|
insights?: WidgetSuiteInsightsLabels;
|
|
4584
4611
|
}
|
|
@@ -14,7 +14,7 @@ import { useRefetchWidget as ee, useWidgetConfig as te, useWidgetError as ne, us
|
|
|
14
14
|
import { useLocalCalendarDay as ae } from "../../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
|
|
15
15
|
import "../../../../../shared/feature/dist/index.js";
|
|
16
16
|
import { BALANCE_HISTORY_RANGES as oe, BalanceHistoryRange as s, balanceHistoryFetchDates as c, isBalanceHistoryRange as l, isRangeOldEnough as se, localIsoDate as u } from "../balanceHistoryView/balanceHistoryRange.js";
|
|
17
|
-
import { BalanceHistoryCard as ce } from "../../../../ui/dist/
|
|
17
|
+
import { BalanceHistoryCard as ce } from "../../../../ui/dist/lib/BalanceHistoryCard/BalanceHistoryCard.js";
|
|
18
18
|
import "../../../../ui/dist/index.js";
|
|
19
19
|
import { BALANCE_HISTORY_WIDGET_LABELS_EN as d } from "./labels.js";
|
|
20
20
|
import { buildBalanceHistoryView as le, moneyFormatter as f, shortCalendarDate as ue } from "../balanceHistoryView/buildBalanceHistoryView.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BALANCE_HISTORY_CARD_LABELS_EN as e } from "../../../../ui/dist/
|
|
1
|
+
import { BALANCE_HISTORY_CARD_LABELS_EN as e } from "../../../../ui/dist/lib/BalanceHistoryCard/labels.js";
|
|
2
2
|
import "../../../../ui/dist/index.js";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js
|
|
4
4
|
var t = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BALANCE_HISTORY_CARD_LABELS_EN as e } from "./
|
|
2
|
-
import { BalanceHistoryCard as t } from "./
|
|
1
|
+
import { BALANCE_HISTORY_CARD_LABELS_EN as e } from "./lib/BalanceHistoryCard/labels.js";
|
|
2
|
+
import { BalanceHistoryCard as t } from "./lib/BalanceHistoryCard/BalanceHistoryCard.js";
|
|
3
3
|
export { e as BALANCE_HISTORY_CARD_LABELS_EN, t as BalanceHistoryCard };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Button as e, Combobox as t, DisplayAmount as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s, Skeleton as c, Tabs as l, TabsList as u, TabsTrigger as d } from "
|
|
2
|
-
import { WidgetFrame as f } from "
|
|
3
|
-
import { StatePanel as p } from "
|
|
4
|
-
import { ErrorState as m } from "
|
|
5
|
-
import { LoadingRegion as h } from "
|
|
6
|
-
import "
|
|
7
|
-
import { BALANCE_HISTORY_CARD_LABELS_EN as g } from "./
|
|
8
|
-
import { BalanceHistoryChart as _ } from "./
|
|
1
|
+
import { Button as e, Combobox as t, DisplayAmount as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s, Skeleton as c, Tabs as l, TabsList as u, TabsTrigger as d } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { WidgetFrame as f } from "../../../../../shared/ui/dist/lib/WidgetFrame/WidgetFrame.js";
|
|
3
|
+
import { StatePanel as p } from "../../../../../shared/ui/dist/lib/StatePanel/StatePanel.js";
|
|
4
|
+
import { ErrorState as m } from "../../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
5
|
+
import { LoadingRegion as h } from "../../../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
|
|
6
|
+
import "../../../../../shared/ui/dist/index.js";
|
|
7
|
+
import { BALANCE_HISTORY_CARD_LABELS_EN as g } from "./labels.js";
|
|
8
|
+
import { BalanceHistoryChart as _ } from "./BalanceHistoryChart.js";
|
|
9
9
|
import { useId as v } from "react";
|
|
10
10
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
11
11
|
import { ChartLineIcon as S } from "lucide-react";
|
|
12
|
-
// ../../libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/
|
|
12
|
+
// ../../libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/lib/BalanceHistoryCard/BalanceHistoryCard.js
|
|
13
13
|
var C = "ttw:h-56", ee = 10;
|
|
14
14
|
function w({ accountOptions: w, selectedAccount: T, onAccountChange: E, rangeOptions: D, selectedRange: O, onRangeChange: k, change: A, changeSpokenLabel: j, changeDescription: M, points: N, xDomain: P, xTicks: F, yDomain: I, yTicks: L, yTickLabel: R, markFirstPoint: z, emptyNotice: B, isLoading: V = !1, isError: H = !1, onRetry: U, labels: W, testIds: G, className: K, style: q }) {
|
|
15
15
|
let J = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { Area as n, AreaChart as r, CartesianGrid as i, ResponsiveContainer as a, Tooltip as o, XAxis as s, YAxis as c } from "recharts";
|
|
3
|
-
// ../../libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/
|
|
3
|
+
// ../../libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/lib/BalanceHistoryCard/BalanceHistoryChart.js
|
|
4
4
|
function l({ points: l, seriesName: u, tooltipSeparator: d, xDomain: f, xTicks: p, yDomain: m, yTicks: h, yTickLabel: g, markFirstPoint: _ = !1 }) {
|
|
5
5
|
let v = l.length - 1, y = new Map(p.map((e) => [e.value, e.label]));
|
|
6
6
|
return /* @__PURE__ */ e(a, {
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { InvoicingTab as e } from "./lib/ReceivablesWidget/tabs.js";
|
|
2
|
+
import { ReceivablesWidget as t } from "./lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
3
|
+
export { e as InvoicingTab, t as ReceivablesWidget };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { ReceivableAttachmentsSection as e } from "../../../../ui/dist/
|
|
5
|
+
import { ReceivableAttachmentsSection as e } from "../../../../ui/dist/index21.js";
|
|
6
6
|
import "../../../../ui/dist/index.js";
|
|
7
7
|
import { useRef as t, useState as n } from "react";
|
|
8
8
|
import { jsx as r } from "react/jsx-runtime";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { ReceivableCustomerSection as e } from "../../../../ui/dist/
|
|
5
|
+
import { ReceivableCustomerSection as e } from "../../../../ui/dist/index27.js";
|
|
6
6
|
import "../../../../ui/dist/index.js";
|
|
7
7
|
import { useReceivableCustomerPicker as t } from "./useReceivableCustomerPicker.js";
|
|
8
8
|
import { jsx as n } from "react/jsx-runtime";
|