@tesouro/embedded-components-react 0.11.140 → 0.11.167
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/NOTICE +24 -0
- package/README.md +15 -37
- package/dist/experimental/BalanceHistoryWidget.d.ts +0 -11
- package/dist/experimental/QuickViewWidget.d.ts +0 -11
- package/dist/experimental/RemoteCheckCapture.d.ts +0 -11
- package/dist/experimental/index.d.ts +0 -11
- package/dist/fixtures/index.d.ts +27 -1
- package/dist/index.css +6976 -6246
- package/dist/index.d.ts +64 -173
- package/dist/index.js +9 -10
- package/dist/lib/AcceptDisclosuresWidget.d.ts +0 -11
- package/dist/lib/BalancesWidget.d.ts +0 -11
- package/dist/lib/BankAccountOnboardingWidget.d.ts +0 -11
- package/dist/lib/BankAccountsWidget.d.ts +2 -11
- package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -11
- package/dist/lib/BillPayWidget.d.ts +0 -11
- package/dist/lib/CardDetailsWidget.d.ts +0 -11
- package/dist/lib/CounterpartsWidget.d.ts +1 -12
- package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -12
- package/dist/lib/CreditCardsWidget.d.ts +0 -11
- package/dist/lib/DebitCardsWidget.d.ts +0 -11
- package/dist/lib/ExpenseManagementWidget.d.ts +1 -12
- package/dist/lib/InsightsWidget.d.ts +0 -11
- package/dist/lib/LinkedAccountsWidget.d.ts +0 -11
- package/dist/lib/OfferWidget.d.ts +0 -11
- package/dist/lib/ReceivablesWidget.d.ts +60 -17
- package/dist/lib/ReceivablesWidget.js +3 -2
- package/dist/lib/SettingsWidget.d.ts +0 -11
- package/dist/lib/TransfersWidget.d.ts +0 -11
- package/dist/lib/WidgetProvider.d.ts +0 -11
- package/dist/lib/WidgetProviderPublic.d.ts +0 -11
- package/dist/lib/WidgetSuite.d.ts +60 -15
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +83 -82
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +84 -79
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +51 -46
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +1 -1
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useActivateCard.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useCardLock.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useEditCardNickname.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +66 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +351 -318
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +126 -133
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +63 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +78 -72
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +138 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +119 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +37 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +131 -81
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useLocalDayStart.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +440 -438
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +62 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +78 -86
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +180 -158
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useRecurringSeriesTable.js +132 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +153 -137
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +137 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +143 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductDelete.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +233 -211
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -42
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +5 -4
- 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/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/toasts.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js +33 -32
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +9 -8
- package/dist/node_modules/sonner/dist/index.js +620 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +6072 -6062
- package/dist/scenarios/index.d.ts +1 -3
- package/dist/scenarios/index.js +17 -20
- package/package.json +17 -4
- package/dist/lib/CustomersWidget.d.ts +0 -993
- package/dist/lib/CustomersWidget.js +0 -2
- package/dist/lib/ProductsWidget.d.ts +0 -893
- package/dist/lib/ProductsWidget.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js +0 -41
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/analytics/events.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/scenarios.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +0 -15
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
2
2
|
import { PartialDeep } from 'type-fest';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
type AuthToken = string | undefined;
|
|
@@ -332,16 +331,6 @@ type EmbeddedClient = Client;
|
|
|
332
331
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
333
332
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
334
333
|
|
|
335
|
-
declare module '@tanstack/react-table' {
|
|
336
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
337
|
-
/**
|
|
338
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
339
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
340
|
-
*/
|
|
341
|
-
fitContent?: boolean;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
334
|
interface LabelLabels {
|
|
346
335
|
/**
|
|
347
336
|
* How the field name and its requirement fragment compose. `{label}` is the
|
|
@@ -1000,7 +989,7 @@ type CounterpartsWidgetProps = WidgetProviderProps & CounterpartsWidgetOwnProps;
|
|
|
1000
989
|
*
|
|
1001
990
|
* The workspace-internal component additionally accepts a `passThrough` prop
|
|
1002
991
|
* that tells it to give up its own analytics identity when a composing widget
|
|
1003
|
-
* (`
|
|
992
|
+
* (`ReceivablesWidget`'s Customers tab, `BillPayWidget`'s Vendors tab) mounts it to
|
|
1004
993
|
* inherit the host's identity instead (EMBD-5384). That choice is set **only**
|
|
1005
994
|
* by those composing widgets, never by integrators: an integrator's own
|
|
1006
995
|
* standalone mount must always claim its own identity.
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { PartialDeep } from 'type-fest';
|
|
5
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
5
|
|
|
7
|
-
declare module '@tanstack/react-table' {
|
|
8
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
9
|
-
/**
|
|
10
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
11
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
12
|
-
*/
|
|
13
|
-
fitContent?: boolean;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
6
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
18
7
|
children?: ReactNode;
|
|
19
8
|
};
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { RowData } from '@tanstack/react-table';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
4
3
|
import { PartialDeep } from 'type-fest';
|
|
5
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
5
|
|
|
7
|
-
declare module '@tanstack/react-table' {
|
|
8
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
9
|
-
/**
|
|
10
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
11
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
12
|
-
*/
|
|
13
|
-
fitContent?: boolean;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
6
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
18
7
|
children?: ReactNode;
|
|
19
8
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, Ref } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
interface ExpensesHeaderLabels {
|
|
@@ -103,16 +102,6 @@ interface AccordionItemCardLabels {
|
|
|
103
102
|
location: string;
|
|
104
103
|
}
|
|
105
104
|
|
|
106
|
-
declare module '@tanstack/react-table' {
|
|
107
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
108
|
-
/**
|
|
109
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
110
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
111
|
-
*/
|
|
112
|
-
fitContent?: boolean;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
105
|
interface TransactionDetailsActionsLabels {
|
|
117
106
|
returnToExpenses: string;
|
|
118
107
|
cancel: string;
|
|
@@ -829,7 +818,7 @@ type ExpenseManagementWidgetProps = WidgetProviderProps & ExpenseManagementWidge
|
|
|
829
818
|
* the unmatched-receipts Action Item), and an Upload Receipts entry
|
|
830
819
|
* point — composed from `ExpensesScreen` rather than a monolithic UI
|
|
831
820
|
* component, following the `WidgetProvider` "Feature Component Pattern" the
|
|
832
|
-
* same way `
|
|
821
|
+
* same way `ReceivablesWidget` does.
|
|
833
822
|
*
|
|
834
823
|
* Team tab visibility matches legacy: `ExpenseReadOrg`, or a direct-reports
|
|
835
824
|
* probe for people-managers without org-wide read. The Team list, its count
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
interface InsightsWidgetLabels {
|
|
@@ -371,16 +370,6 @@ type EmbeddedClient = Client;
|
|
|
371
370
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
372
371
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
373
372
|
|
|
374
|
-
declare module '@tanstack/react-table' {
|
|
375
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
376
|
-
/**
|
|
377
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
378
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
379
|
-
*/
|
|
380
|
-
fitContent?: boolean;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
373
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
385
374
|
children?: ReactNode;
|
|
386
375
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
interface Labels {
|
|
@@ -417,16 +416,6 @@ type EmbeddedClient = Client;
|
|
|
417
416
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
418
417
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
419
418
|
|
|
420
|
-
declare module '@tanstack/react-table' {
|
|
421
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
422
|
-
/**
|
|
423
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
424
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
425
|
-
*/
|
|
426
|
-
fitContent?: boolean;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
419
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
431
420
|
children?: ReactNode;
|
|
432
421
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
3
|
import { PartialDeep } from 'type-fest';
|
|
4
|
-
import { RowData } from '@tanstack/react-table';
|
|
5
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
5
|
|
|
7
6
|
interface OfferWidgetLabels {
|
|
@@ -384,16 +383,6 @@ type EmbeddedClient = Client;
|
|
|
384
383
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
385
384
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
386
385
|
|
|
387
|
-
declare module '@tanstack/react-table' {
|
|
388
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
389
|
-
/**
|
|
390
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
391
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
392
|
-
*/
|
|
393
|
-
fitContent?: boolean;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
|
|
397
386
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
398
387
|
children?: ReactNode;
|
|
399
388
|
};
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
3
|
import { PartialDeep } from 'type-fest';
|
|
4
|
-
import { RowData } from '@tanstack/react-table';
|
|
5
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
6
5
|
|
|
7
|
-
declare module '@tanstack/react-table' {
|
|
8
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
9
|
-
/**
|
|
10
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
11
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
12
|
-
*/
|
|
13
|
-
fitContent?: boolean;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
6
|
interface LabelLabels {
|
|
18
7
|
/**
|
|
19
8
|
* How the field name and its requirement fragment compose. `{label}` is the
|
|
@@ -1132,6 +1121,7 @@ interface ReceivablesScreenLabels {
|
|
|
1132
1121
|
columnNumber: string;
|
|
1133
1122
|
columnCustomer: string;
|
|
1134
1123
|
columnIssueDate: string;
|
|
1124
|
+
columnBalanceDue: string;
|
|
1135
1125
|
columnAmount: string;
|
|
1136
1126
|
/**
|
|
1137
1127
|
* A focused row's accessible name. The row itself is the control that
|
|
@@ -1166,6 +1156,7 @@ interface UnsavedInvoiceDialogLabels {
|
|
|
1166
1156
|
}
|
|
1167
1157
|
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
1168
1158
|
createTitle: string;
|
|
1159
|
+
createRecurringTitle: string;
|
|
1169
1160
|
createDescription: string;
|
|
1170
1161
|
editTitle: string;
|
|
1171
1162
|
editDescription: string;
|
|
@@ -1356,6 +1347,28 @@ interface ReceivablePreviewLabels {
|
|
|
1356
1347
|
paymentQrCodeLabel: string;
|
|
1357
1348
|
}
|
|
1358
1349
|
|
|
1350
|
+
interface RecurringSeriesScreenLabels {
|
|
1351
|
+
createButton: string;
|
|
1352
|
+
columnCustomer: string;
|
|
1353
|
+
columnRepeats: string;
|
|
1354
|
+
columnNextInvoice: string;
|
|
1355
|
+
columnStatus: string;
|
|
1356
|
+
columnAmount: string;
|
|
1357
|
+
openRow: (customerLabel: string) => string;
|
|
1358
|
+
searchPlaceholder: string;
|
|
1359
|
+
searchLabel: string;
|
|
1360
|
+
emptyTitle: string;
|
|
1361
|
+
emptyDescription: string;
|
|
1362
|
+
filterEmptyTitle: string;
|
|
1363
|
+
filterEmptyAction: string;
|
|
1364
|
+
errorTitle: string;
|
|
1365
|
+
errorDescription: string;
|
|
1366
|
+
errorRetry: string;
|
|
1367
|
+
accessRestrictedTitle: string;
|
|
1368
|
+
accessRestrictedDescription: string;
|
|
1369
|
+
}
|
|
1370
|
+
type RecurringSeriesScreenLabelOverrides = Partial<RecurringSeriesScreenLabels>;
|
|
1371
|
+
|
|
1359
1372
|
declare const InvoicesDatePreset: {
|
|
1360
1373
|
readonly Today: "today";
|
|
1361
1374
|
readonly ThisWeek: "this_week";
|
|
@@ -1377,6 +1390,7 @@ interface InvoicesFilterLabels {
|
|
|
1377
1390
|
presetGroupCurrent: string;
|
|
1378
1391
|
presetGroupPast: string;
|
|
1379
1392
|
dateFieldNames: Record<InvoicesDateFilterField, string>;
|
|
1393
|
+
paidDateFieldName: string;
|
|
1380
1394
|
dateRange: (from: string, to: string) => string;
|
|
1381
1395
|
dateFrom: (from: string) => string;
|
|
1382
1396
|
dateTo: (to: string) => string;
|
|
@@ -1449,11 +1463,28 @@ interface ReceivableMessageLabels {
|
|
|
1449
1463
|
untitledDocument: string;
|
|
1450
1464
|
/** Shown in an invoice row's number and date cells while they have no value. */
|
|
1451
1465
|
pendingValue: string;
|
|
1452
|
-
/**
|
|
1453
|
-
|
|
1466
|
+
/** Repeats or Next invoice for a series with nothing to show there. */
|
|
1467
|
+
listSeriesNoValue: string;
|
|
1468
|
+
/** Repeats for a series that skips periods; `{interval}` is replaced. */
|
|
1469
|
+
listSeriesEveryDays: string;
|
|
1470
|
+
listSeriesEveryWeeks: string;
|
|
1471
|
+
listSeriesEveryMonths: string;
|
|
1472
|
+
listSeriesEveryQuarters: string;
|
|
1473
|
+
listSeriesEveryYears: string;
|
|
1474
|
+
/** A monthly series' Repeats; `{cadence}` and `{day}` are replaced, e.g. "Monthly, last day". */
|
|
1475
|
+
listSeriesMonthDay: string;
|
|
1476
|
+
listSeriesFirstDay: string;
|
|
1477
|
+
listSeriesLastDay: string;
|
|
1478
|
+
/** Next invoice for a series that will issue no more invoices. */
|
|
1479
|
+
listSeriesNoNextInvoice: string;
|
|
1480
|
+
listDueToday: string;
|
|
1481
|
+
listDueTomorrow: string;
|
|
1454
1482
|
/** `{days}` is replaced. */
|
|
1455
1483
|
listDayOverdue: string;
|
|
1456
1484
|
listDaysOverdue: string;
|
|
1485
|
+
/** An overdue due date's accessible name; `{overdue}` and `{date}` are replaced. */
|
|
1486
|
+
listOverdueAccessibleName: string;
|
|
1487
|
+
listRecurringBadge: string;
|
|
1457
1488
|
unknownCustomer: string;
|
|
1458
1489
|
notAvailable: string;
|
|
1459
1490
|
summaryUnpaid: string;
|
|
@@ -1757,6 +1788,14 @@ interface ReceivableMessageLabels {
|
|
|
1757
1788
|
previewLogoAltNoName: string;
|
|
1758
1789
|
}
|
|
1759
1790
|
|
|
1791
|
+
declare const ReceivableStatusCard: {
|
|
1792
|
+
readonly Unpaid: "unpaid";
|
|
1793
|
+
readonly Overdue: "overdue";
|
|
1794
|
+
readonly Paid: "paid";
|
|
1795
|
+
readonly Drafts: "drafts";
|
|
1796
|
+
};
|
|
1797
|
+
type ReceivableStatusCard = (typeof ReceivableStatusCard)[keyof typeof ReceivableStatusCard];
|
|
1798
|
+
|
|
1760
1799
|
declare const InvoicingTab: {
|
|
1761
1800
|
readonly Invoices: "invoices";
|
|
1762
1801
|
readonly Recurring: "recurring";
|
|
@@ -1769,7 +1808,6 @@ interface InvoicingTabLabels extends InvoicingTabsLabels {
|
|
|
1769
1808
|
recurringTab: string;
|
|
1770
1809
|
customersTab: string;
|
|
1771
1810
|
productsTab: string;
|
|
1772
|
-
createRecurringInvoiceButton: string;
|
|
1773
1811
|
}
|
|
1774
1812
|
|
|
1775
1813
|
interface ReceivablesWidgetOwnProps {
|
|
@@ -1781,16 +1819,21 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1781
1819
|
selectedTab?: InvoicingTabId;
|
|
1782
1820
|
/** Called when the user picks a tab, so the host can keep it in the URL. */
|
|
1783
1821
|
onTabChange?: (tab: InvoicingTabId) => void;
|
|
1822
|
+
/** The active summary card on the Invoices tab, or `null` for none. Applied on mount and whenever it changes; omit to let the widget track it. */
|
|
1823
|
+
selectedStatusCard?: ReceivableStatusCard | null;
|
|
1824
|
+
/** Called when the active summary card changes: a card click, or a Status filter change that matches or leaves a card. */
|
|
1825
|
+
onStatusCardChange?: (card: ReceivableStatusCard | null) => void;
|
|
1784
1826
|
initialView?: 'create';
|
|
1785
1827
|
/** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
|
|
1786
1828
|
initialCounterpartId?: string;
|
|
1787
1829
|
pageSizeOptions?: number[];
|
|
1788
1830
|
onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
|
|
1789
1831
|
onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
|
|
1790
|
-
/** Shows an invoice settings button on the
|
|
1832
|
+
/** Shows an invoice settings button at the top right, on the `headerStart` line, for users holding `organization_settings:write:org`. */
|
|
1791
1833
|
onTemplateSettingsClick?: () => void;
|
|
1792
1834
|
tabLabels?: Partial<InvoicingTabLabels>;
|
|
1793
1835
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
1836
|
+
seriesScreenLabels?: RecurringSeriesScreenLabelOverrides;
|
|
1794
1837
|
filterBarLabels?: InvoicesFilterBarLabelOverrides;
|
|
1795
1838
|
filterLabels?: InvoicesFilterLabelOverrides;
|
|
1796
1839
|
formLabels?: Partial<ReceivableFormDialogLabels>;
|
|
@@ -1812,5 +1855,5 @@ type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
|
1812
1855
|
|
|
1813
1856
|
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1814
1857
|
|
|
1815
|
-
export { InvoicingTab, ReceivablesWidget };
|
|
1816
|
-
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 };
|
|
1858
|
+
export { InvoicingTab, ReceivableStatusCard, ReceivablesWidget };
|
|
1859
|
+
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 };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InvoicingTab as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ReceivableStatusCard as t } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js";
|
|
3
|
+
import { ReceivablesWidget as n } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
3
4
|
import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
|
|
4
|
-
export { e as InvoicingTab, t as ReceivablesWidget };
|
|
5
|
+
export { e as InvoicingTab, t as ReceivableStatusCard, n as ReceivablesWidget };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode, ComponentType, AnchorHTMLAttributes, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
interface Labels {
|
|
@@ -384,16 +383,6 @@ type EmbeddedClient = Client;
|
|
|
384
383
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
385
384
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
386
385
|
|
|
387
|
-
declare module '@tanstack/react-table' {
|
|
388
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
389
|
-
/**
|
|
390
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
391
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
392
|
-
*/
|
|
393
|
-
fitContent?: boolean;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
|
|
397
386
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
398
387
|
children?: ReactNode;
|
|
399
388
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
|
|
6
5
|
type AuthToken = string | undefined;
|
|
@@ -332,16 +331,6 @@ type EmbeddedClient = Client;
|
|
|
332
331
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
333
332
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
334
333
|
|
|
335
|
-
declare module '@tanstack/react-table' {
|
|
336
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
337
|
-
/**
|
|
338
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
339
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
340
|
-
*/
|
|
341
|
-
fitContent?: boolean;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
334
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
346
335
|
children?: ReactNode;
|
|
347
336
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RowData } from '@tanstack/react-table';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo } from 'react';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
@@ -383,16 +382,6 @@ type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
|
383
382
|
*/
|
|
384
383
|
declare function cloneEmbeddedClient(source: EmbeddedClient): EmbeddedClient;
|
|
385
384
|
|
|
386
|
-
declare module '@tanstack/react-table' {
|
|
387
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
388
|
-
/**
|
|
389
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
390
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
391
|
-
*/
|
|
392
|
-
fitContent?: boolean;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
|
|
396
385
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
397
386
|
children?: ReactNode;
|
|
398
387
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, PropsWithChildren } from 'react';
|
|
2
|
-
import { RowData } from '@tanstack/react-table';
|
|
3
2
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
3
|
|
|
5
4
|
type AuthToken = string | undefined;
|
|
@@ -331,16 +330,6 @@ type EmbeddedClient = Client;
|
|
|
331
330
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
332
331
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
333
332
|
|
|
334
|
-
declare module '@tanstack/react-table' {
|
|
335
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
336
|
-
/**
|
|
337
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
338
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
339
|
-
*/
|
|
340
|
-
fitContent?: boolean;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
333
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
345
334
|
children?: ReactNode;
|
|
346
335
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, CSSProperties, Ref } from 'react';
|
|
3
|
-
import { RowData } from '@tanstack/react-table';
|
|
4
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
5
4
|
import { PartialDeep } from 'type-fest';
|
|
6
5
|
|
|
@@ -382,16 +381,6 @@ declare const OnboardingSuppressionReason: {
|
|
|
382
381
|
};
|
|
383
382
|
type OnboardingSuppressionReason = (typeof OnboardingSuppressionReason)[keyof typeof OnboardingSuppressionReason];
|
|
384
383
|
|
|
385
|
-
declare module '@tanstack/react-table' {
|
|
386
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
387
|
-
/**
|
|
388
|
-
* Shrinks the column to its content on one line, leaving the table's
|
|
389
|
-
* spare width to the columns without it: dates, statuses and amounts.
|
|
390
|
-
*/
|
|
391
|
-
fitContent?: boolean;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
384
|
interface LabelLabels {
|
|
396
385
|
/**
|
|
397
386
|
* How the field name and its requirement fragment compose. `{label}` is the
|
|
@@ -1686,6 +1675,7 @@ interface Labels$4 {
|
|
|
1686
1675
|
teamMembersErrorTitle: string;
|
|
1687
1676
|
teamMembersEmptyLabel: string;
|
|
1688
1677
|
teamMemberAccessTooltip: string;
|
|
1678
|
+
accountNumberEndingIn: string;
|
|
1689
1679
|
showAccountNumber: string;
|
|
1690
1680
|
hideAccountNumber: string;
|
|
1691
1681
|
copyAccountNumber: string;
|
|
@@ -1766,6 +1756,7 @@ interface Labels$3 {
|
|
|
1766
1756
|
copyBankName: string;
|
|
1767
1757
|
copyBankAddress: string;
|
|
1768
1758
|
copiedLabel: string;
|
|
1759
|
+
accountNumberEndingIn: string;
|
|
1769
1760
|
showAccountNumber: string;
|
|
1770
1761
|
hideAccountNumber: string;
|
|
1771
1762
|
loadingLabel: string;
|
|
@@ -3285,6 +3276,7 @@ interface ReceivablesScreenLabels {
|
|
|
3285
3276
|
columnNumber: string;
|
|
3286
3277
|
columnCustomer: string;
|
|
3287
3278
|
columnIssueDate: string;
|
|
3279
|
+
columnBalanceDue: string;
|
|
3288
3280
|
columnAmount: string;
|
|
3289
3281
|
/**
|
|
3290
3282
|
* A focused row's accessible name. The row itself is the control that
|
|
@@ -3319,6 +3311,7 @@ interface UnsavedInvoiceDialogLabels {
|
|
|
3319
3311
|
}
|
|
3320
3312
|
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
3321
3313
|
createTitle: string;
|
|
3314
|
+
createRecurringTitle: string;
|
|
3322
3315
|
createDescription: string;
|
|
3323
3316
|
editTitle: string;
|
|
3324
3317
|
editDescription: string;
|
|
@@ -3507,6 +3500,28 @@ interface ReceivablePreviewLabels {
|
|
|
3507
3500
|
paymentQrCodeLabel: string;
|
|
3508
3501
|
}
|
|
3509
3502
|
|
|
3503
|
+
interface RecurringSeriesScreenLabels {
|
|
3504
|
+
createButton: string;
|
|
3505
|
+
columnCustomer: string;
|
|
3506
|
+
columnRepeats: string;
|
|
3507
|
+
columnNextInvoice: string;
|
|
3508
|
+
columnStatus: string;
|
|
3509
|
+
columnAmount: string;
|
|
3510
|
+
openRow: (customerLabel: string) => string;
|
|
3511
|
+
searchPlaceholder: string;
|
|
3512
|
+
searchLabel: string;
|
|
3513
|
+
emptyTitle: string;
|
|
3514
|
+
emptyDescription: string;
|
|
3515
|
+
filterEmptyTitle: string;
|
|
3516
|
+
filterEmptyAction: string;
|
|
3517
|
+
errorTitle: string;
|
|
3518
|
+
errorDescription: string;
|
|
3519
|
+
errorRetry: string;
|
|
3520
|
+
accessRestrictedTitle: string;
|
|
3521
|
+
accessRestrictedDescription: string;
|
|
3522
|
+
}
|
|
3523
|
+
type RecurringSeriesScreenLabelOverrides = Partial<RecurringSeriesScreenLabels>;
|
|
3524
|
+
|
|
3510
3525
|
declare const InvoicesDatePreset: {
|
|
3511
3526
|
readonly Today: "today";
|
|
3512
3527
|
readonly ThisWeek: "this_week";
|
|
@@ -3528,6 +3543,7 @@ interface InvoicesFilterLabels {
|
|
|
3528
3543
|
presetGroupCurrent: string;
|
|
3529
3544
|
presetGroupPast: string;
|
|
3530
3545
|
dateFieldNames: Record<InvoicesDateFilterField, string>;
|
|
3546
|
+
paidDateFieldName: string;
|
|
3531
3547
|
dateRange: (from: string, to: string) => string;
|
|
3532
3548
|
dateFrom: (from: string) => string;
|
|
3533
3549
|
dateTo: (to: string) => string;
|
|
@@ -3600,11 +3616,28 @@ interface ReceivableMessageLabels {
|
|
|
3600
3616
|
untitledDocument: string;
|
|
3601
3617
|
/** Shown in an invoice row's number and date cells while they have no value. */
|
|
3602
3618
|
pendingValue: string;
|
|
3603
|
-
/**
|
|
3604
|
-
|
|
3619
|
+
/** Repeats or Next invoice for a series with nothing to show there. */
|
|
3620
|
+
listSeriesNoValue: string;
|
|
3621
|
+
/** Repeats for a series that skips periods; `{interval}` is replaced. */
|
|
3622
|
+
listSeriesEveryDays: string;
|
|
3623
|
+
listSeriesEveryWeeks: string;
|
|
3624
|
+
listSeriesEveryMonths: string;
|
|
3625
|
+
listSeriesEveryQuarters: string;
|
|
3626
|
+
listSeriesEveryYears: string;
|
|
3627
|
+
/** A monthly series' Repeats; `{cadence}` and `{day}` are replaced, e.g. "Monthly, last day". */
|
|
3628
|
+
listSeriesMonthDay: string;
|
|
3629
|
+
listSeriesFirstDay: string;
|
|
3630
|
+
listSeriesLastDay: string;
|
|
3631
|
+
/** Next invoice for a series that will issue no more invoices. */
|
|
3632
|
+
listSeriesNoNextInvoice: string;
|
|
3633
|
+
listDueToday: string;
|
|
3634
|
+
listDueTomorrow: string;
|
|
3605
3635
|
/** `{days}` is replaced. */
|
|
3606
3636
|
listDayOverdue: string;
|
|
3607
3637
|
listDaysOverdue: string;
|
|
3638
|
+
/** An overdue due date's accessible name; `{overdue}` and `{date}` are replaced. */
|
|
3639
|
+
listOverdueAccessibleName: string;
|
|
3640
|
+
listRecurringBadge: string;
|
|
3608
3641
|
unknownCustomer: string;
|
|
3609
3642
|
notAvailable: string;
|
|
3610
3643
|
summaryUnpaid: string;
|
|
@@ -3908,6 +3941,14 @@ interface ReceivableMessageLabels {
|
|
|
3908
3941
|
previewLogoAltNoName: string;
|
|
3909
3942
|
}
|
|
3910
3943
|
|
|
3944
|
+
declare const ReceivableStatusCard: {
|
|
3945
|
+
readonly Unpaid: "unpaid";
|
|
3946
|
+
readonly Overdue: "overdue";
|
|
3947
|
+
readonly Paid: "paid";
|
|
3948
|
+
readonly Drafts: "drafts";
|
|
3949
|
+
};
|
|
3950
|
+
type ReceivableStatusCard = (typeof ReceivableStatusCard)[keyof typeof ReceivableStatusCard];
|
|
3951
|
+
|
|
3911
3952
|
declare const InvoicingTab: {
|
|
3912
3953
|
readonly Invoices: "invoices";
|
|
3913
3954
|
readonly Recurring: "recurring";
|
|
@@ -3920,7 +3961,6 @@ interface InvoicingTabLabels extends InvoicingTabsLabels {
|
|
|
3920
3961
|
recurringTab: string;
|
|
3921
3962
|
customersTab: string;
|
|
3922
3963
|
productsTab: string;
|
|
3923
|
-
createRecurringInvoiceButton: string;
|
|
3924
3964
|
}
|
|
3925
3965
|
|
|
3926
3966
|
interface ReceivablesWidgetOwnProps {
|
|
@@ -3932,16 +3972,21 @@ interface ReceivablesWidgetOwnProps {
|
|
|
3932
3972
|
selectedTab?: InvoicingTabId;
|
|
3933
3973
|
/** Called when the user picks a tab, so the host can keep it in the URL. */
|
|
3934
3974
|
onTabChange?: (tab: InvoicingTabId) => void;
|
|
3975
|
+
/** The active summary card on the Invoices tab, or `null` for none. Applied on mount and whenever it changes; omit to let the widget track it. */
|
|
3976
|
+
selectedStatusCard?: ReceivableStatusCard | null;
|
|
3977
|
+
/** Called when the active summary card changes: a card click, or a Status filter change that matches or leaves a card. */
|
|
3978
|
+
onStatusCardChange?: (card: ReceivableStatusCard | null) => void;
|
|
3935
3979
|
initialView?: 'create';
|
|
3936
3980
|
/** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
|
|
3937
3981
|
initialCounterpartId?: string;
|
|
3938
3982
|
pageSizeOptions?: number[];
|
|
3939
3983
|
onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
|
|
3940
3984
|
onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
|
|
3941
|
-
/** Shows an invoice settings button on the
|
|
3985
|
+
/** Shows an invoice settings button at the top right, on the `headerStart` line, for users holding `organization_settings:write:org`. */
|
|
3942
3986
|
onTemplateSettingsClick?: () => void;
|
|
3943
3987
|
tabLabels?: Partial<InvoicingTabLabels>;
|
|
3944
3988
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
3989
|
+
seriesScreenLabels?: RecurringSeriesScreenLabelOverrides;
|
|
3945
3990
|
filterBarLabels?: InvoicesFilterBarLabelOverrides;
|
|
3946
3991
|
filterLabels?: InvoicesFilterLabelOverrides;
|
|
3947
3992
|
formLabels?: Partial<ReceivableFormDialogLabels>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../../
|
|
5
|
+
import { toast as e } from "../../../../../../../node_modules/sonner/dist/index.js";
|
|
6
6
|
import { personDisclosure as t } from "../../../../../shared/data-access/dist/lib/disclosures/personDisclosure.js";
|
|
7
7
|
import { useAcceptWidgetDisclosures as n } from "../../../../../shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
8
8
|
import { useDisclosuresQuery as r } from "../../../../../shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js";
|