@tesouro/embedded-components-react 0.5.235 → 0.5.236

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.
Files changed (77) hide show
  1. package/README.md +3 -0
  2. package/dist/index.d.ts +110 -1
  3. package/dist/index.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +110 -1
  5. package/dist/lib/ReceivablesWidget.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +3 -3
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +210 -208
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +98 -40
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +159 -39
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +53 -77
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +99 -132
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +40 -341
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index37.js +43 -0
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index38.js +92 -0
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index39.js +146 -0
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index40.js +354 -0
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +28 -24
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -37
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +9 -214
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +27 -159
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +233 -14
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +34 -22
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +214 -2
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +153 -87
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +16 -3
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +22 -21
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +2 -51
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +30 -15
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +90 -14
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +3 -10
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +20 -69
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +51 -33
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +16 -17
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +8 -14
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +70 -30
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +33 -14
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +17 -25
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +12 -83
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +9 -121
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +28 -401
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +16 -2
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +22 -42
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +80 -65
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +383 -473
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +2 -106
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +48 -0
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +72 -2
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +498 -4
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +106 -1
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +141 -93
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -28
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +4 -236
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +0 -2
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +90 -239
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +24 -89
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +231 -54
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -353
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +249 -0
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +93 -0
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +3 -40
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +59 -0
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +353 -0
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +18 -2
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +121 -9
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +100 -27
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +38 -233
  75. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  76. package/package.json +1 -1
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +0 -100
package/README.md CHANGED
@@ -509,12 +509,15 @@ Lists, creates, edits and acts on an organization's invoices, quotes and credit
509
509
  | -------------------------- | ---------------------------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
510
510
  | `defaultTab` | `ReceivablesWidgetTab` | `'invoices'` | Initial tab; if omitted or disabled, the widget starts on the first enabled tab. |
511
511
  | `enabledTabs` | `ReceivablesWidgetTab[]` | `['invoices', 'quotes', 'credit_notes']` | Tabs visible to the user. Duplicate or unknown values are ignored. |
512
+ | `initialCounterpartId` | `string` | `undefined` | Opens the invoice list filtered to this customer, with a chip naming them. Clear all removes it. |
512
513
  | `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads with a page size of `10`. |
513
514
  | `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create or clone succeeds. |
514
515
  | `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
515
516
  | `onTemplateSettingsClick` | `() => void` | `undefined` | Shows a template settings action in the header and calls this handler when clicked. |
516
517
  | `embeddedBankName` | `string` | `undefined` | Sponsor bank name shown as "Powered by {embeddedBankName}" next to embedded accounts in the invoice payment-account picker. Omitted when unset. |
517
518
  | `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Table, tab, filter, empty, error, action and status badge copy. |
519
+ | `filterBarLabels` | `InvoicesFilterBarLabelOverrides` | English labels | Invoice filter bar copy: field names, search, amount bounds, the customer panel and Clear all. |
520
+ | `filterLabels` | `InvoicesFilterLabelOverrides` | English labels | Invoice filter copy built from state: date presets, status descriptions and chip wording. |
518
521
  | `formLabels` | `Partial<ReceivableFormSheetLabels>` | English labels | Create/edit form copy; the save and issue buttons are in `messageLabels`. |
519
522
  | `detailsLabels` | `ReceivableDetailsPanelLabelOverrides` | English labels | Details panel copy. Status badge copy comes from `screenLabels.statusBadge`. |
520
523
  | `auditHistoryLabels` | `Partial<ReceivableAuditHistoryLabels>` | English labels | Audit history row copy. Document and status names follow `messageLabels` and `screenLabels.statusBadge` unless overridden here. |
package/dist/index.d.ts CHANGED
@@ -521,6 +521,50 @@ interface RequiredFieldsLegendLabels {
521
521
  marker: string;
522
522
  }
523
523
 
524
+ interface FilterMenuButtonLabels {
525
+ /** Button text, followed by "(N)" when `activeCount` is set. */
526
+ filters: string;
527
+ }
528
+
529
+ interface FilterTagLabels {
530
+ /**
531
+ * Accessible name for the editable tag body. `{label}` is substituted with
532
+ * the tag's own text; keep the placeholder when overriding.
533
+ */
534
+ edit: string;
535
+ /** Accessible name for the × dismiss button. `{label}` is substituted. */
536
+ remove: string;
537
+ }
538
+
539
+ interface DateRangePickerLabels {
540
+ /**
541
+ * Name of the preset field, rendered before the select (a `:` is appended by
542
+ * the component). Owners showing more than one date field pass the one that
543
+ * names theirs, e.g. "Due date range".
544
+ */
545
+ fieldLabel: string;
546
+ /** Select placeholder shown while the range matches no preset. */
547
+ presetPlaceholder: string;
548
+ }
549
+
550
+ interface AmountFilterLabels {
551
+ /**
552
+ * Rendered next to the min input. Owners pass the wording that matches their
553
+ * bound semantics — "No less than" for inclusive, "Greater than" for not.
554
+ */
555
+ min: string;
556
+ /** Rendered next to the max input. See {@link min}. */
557
+ max: string;
558
+ /** Amount-mode radio options. */
559
+ modeAny: string;
560
+ modeExact: string;
561
+ modeRange: string;
562
+ /** Flow-direction radio options, shown only when `showFlowDirection`. */
563
+ flowAny: string;
564
+ flowIn: string;
565
+ flowOut: string;
566
+ }
567
+
524
568
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
525
569
  children?: ReactNode;
526
570
  };
@@ -4900,6 +4944,34 @@ interface ProductMessageLabels {
4900
4944
  updateMeasureUnitError: string;
4901
4945
  }
4902
4946
 
4947
+ declare const InvoicesFilterField: {
4948
+ readonly DueDate: "dueDate";
4949
+ readonly CreatedAt: "createdAt";
4950
+ readonly IssueDate: "issueDate";
4951
+ readonly Status: "status";
4952
+ readonly Amount: "amount";
4953
+ readonly Customer: "customer";
4954
+ };
4955
+ type InvoicesFilterField = (typeof InvoicesFilterField)[keyof typeof InvoicesFilterField];
4956
+ type InvoicesDateFilterField = typeof InvoicesFilterField.DueDate | typeof InvoicesFilterField.CreatedAt | typeof InvoicesFilterField.IssueDate;
4957
+
4958
+ interface InvoicesFilterBarLabels {
4959
+ fields: Record<InvoicesFilterField, string>;
4960
+ searchPlaceholder: string;
4961
+ searchLabel: string;
4962
+ amountMin: string;
4963
+ amountMax: string;
4964
+ customerNameHeading: string;
4965
+ customerSearchPlaceholder: string;
4966
+ customerSearchHint: string;
4967
+ clearAll: string;
4968
+ filterMenuButton: FilterMenuButtonLabels;
4969
+ filterTag: FilterTagLabels;
4970
+ amountFilter: Omit<AmountFilterLabels, 'min' | 'max'>;
4971
+ dateRangePicker: Omit<DateRangePickerLabels, 'fieldLabel'>;
4972
+ }
4973
+ type InvoicesFilterBarLabelOverrides = PartialDeep<InvoicesFilterBarLabels>;
4974
+
4903
4975
  interface ReceivableActionsModalLabels {
4904
4976
  issueDescription: string;
4905
4977
  toLabel: string;
@@ -5199,6 +5271,39 @@ interface ReceivableActionDialogLabels {
5199
5271
  type ReceivableDocumentType = ReceivableDocumentKind;
5200
5272
  type ReceivablesWidgetTab = 'invoices' | 'quotes' | 'credit_notes';
5201
5273
 
5274
+ declare const InvoicesDatePreset: {
5275
+ readonly Today: "today";
5276
+ readonly ThisWeek: "this_week";
5277
+ readonly ThisMonth: "this_month";
5278
+ readonly ThisQuarter: "this_quarter";
5279
+ readonly ThisYear: "this_year";
5280
+ readonly Yesterday: "yesterday";
5281
+ readonly LastWeek: "last_week";
5282
+ readonly LastMonth: "last_month";
5283
+ readonly Last30Days: "last_30_days";
5284
+ readonly Last90Days: "last_90_days";
5285
+ readonly LastQuarter: "last_quarter";
5286
+ readonly LastYear: "last_year";
5287
+ };
5288
+ type InvoicesDatePreset = (typeof InvoicesDatePreset)[keyof typeof InvoicesDatePreset];
5289
+
5290
+ interface InvoicesFilterLabels {
5291
+ presets: Record<InvoicesDatePreset, string>;
5292
+ presetGroupCurrent: string;
5293
+ presetGroupPast: string;
5294
+ dateFieldNames: Record<InvoicesDateFilterField, string>;
5295
+ customRange: string;
5296
+ /** Shown under a status option; a status with no entry shows none. */
5297
+ statusDescriptions: Partial<Record<string, string>>;
5298
+ dateChip: (fieldLabel: string, range: string) => string;
5299
+ statusChip: (value: string) => string;
5300
+ moreSelected: (first: string, count: number) => string;
5301
+ customerChip: (name: string) => string;
5302
+ amountChip: string;
5303
+ searchChip: (value: string) => string;
5304
+ }
5305
+ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
5306
+
5202
5307
  interface ReceivableMessageLabels {
5203
5308
  customerRequired: string;
5204
5309
  customerAddressRequired: string;
@@ -5507,11 +5612,15 @@ interface ReceivablesWidgetOwnProps {
5507
5612
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
5508
5613
  embeddedBankName?: string;
5509
5614
  enabledTabs?: ReceivablesWidgetTab[];
5615
+ /** Opens the invoice list filtered to this customer. */
5616
+ initialCounterpartId?: string;
5510
5617
  pageSizeOptions?: number[];
5511
5618
  onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
5512
5619
  onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
5513
5620
  onTemplateSettingsClick?: () => void;
5514
5621
  screenLabels?: ReceivablesScreenLabelOverrides;
5622
+ filterBarLabels?: InvoicesFilterBarLabelOverrides;
5623
+ filterLabels?: InvoicesFilterLabelOverrides;
5515
5624
  formLabels?: Partial<ReceivableFormSheetLabels>;
5516
5625
  detailsLabels?: ReceivableDetailsPanelLabelOverrides;
5517
5626
  auditHistoryLabels?: Partial<ReceivableAuditHistoryLabels>;
@@ -5958,4 +6067,4 @@ interface GapCoverageAlertProps {
5958
6067
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
5959
6068
 
5960
6069
  export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MARKETING_WIDGET_STATUS_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
5961
- 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, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
6070
+ 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, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import { InsightsWidget as L } from "./libs/tesouro-embedded-components-react/in
27
27
  import { UploadReceiptWidget as R } from "./libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index2.js";
28
28
  import { ExpenseManagementWidget as z } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js";
29
29
  import { InvoicingWidget as B } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js";
30
- import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js";
30
+ import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index40.js";
31
31
  import { SettingsSection as H } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
32
32
  import { HELP_FAQ_EN as U } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
33
33
  import { SettingsWidget as W } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
@@ -369,6 +369,50 @@ interface RequiredFieldsLegendLabels {
369
369
  marker: string;
370
370
  }
371
371
 
372
+ interface FilterMenuButtonLabels {
373
+ /** Button text, followed by "(N)" when `activeCount` is set. */
374
+ filters: string;
375
+ }
376
+
377
+ interface FilterTagLabels {
378
+ /**
379
+ * Accessible name for the editable tag body. `{label}` is substituted with
380
+ * the tag's own text; keep the placeholder when overriding.
381
+ */
382
+ edit: string;
383
+ /** Accessible name for the × dismiss button. `{label}` is substituted. */
384
+ remove: string;
385
+ }
386
+
387
+ interface DateRangePickerLabels {
388
+ /**
389
+ * Name of the preset field, rendered before the select (a `:` is appended by
390
+ * the component). Owners showing more than one date field pass the one that
391
+ * names theirs, e.g. "Due date range".
392
+ */
393
+ fieldLabel: string;
394
+ /** Select placeholder shown while the range matches no preset. */
395
+ presetPlaceholder: string;
396
+ }
397
+
398
+ interface AmountFilterLabels {
399
+ /**
400
+ * Rendered next to the min input. Owners pass the wording that matches their
401
+ * bound semantics — "No less than" for inclusive, "Greater than" for not.
402
+ */
403
+ min: string;
404
+ /** Rendered next to the max input. See {@link min}. */
405
+ max: string;
406
+ /** Amount-mode radio options. */
407
+ modeAny: string;
408
+ modeExact: string;
409
+ modeRange: string;
410
+ /** Flow-direction radio options, shown only when `showFlowDirection`. */
411
+ flowAny: string;
412
+ flowIn: string;
413
+ flowOut: string;
414
+ }
415
+
372
416
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
373
417
  children?: ReactNode;
374
418
  };
@@ -909,6 +953,34 @@ interface ProductMessageLabels {
909
953
  updateMeasureUnitError: string;
910
954
  }
911
955
 
956
+ declare const InvoicesFilterField: {
957
+ readonly DueDate: "dueDate";
958
+ readonly CreatedAt: "createdAt";
959
+ readonly IssueDate: "issueDate";
960
+ readonly Status: "status";
961
+ readonly Amount: "amount";
962
+ readonly Customer: "customer";
963
+ };
964
+ type InvoicesFilterField = (typeof InvoicesFilterField)[keyof typeof InvoicesFilterField];
965
+ type InvoicesDateFilterField = typeof InvoicesFilterField.DueDate | typeof InvoicesFilterField.CreatedAt | typeof InvoicesFilterField.IssueDate;
966
+
967
+ interface InvoicesFilterBarLabels {
968
+ fields: Record<InvoicesFilterField, string>;
969
+ searchPlaceholder: string;
970
+ searchLabel: string;
971
+ amountMin: string;
972
+ amountMax: string;
973
+ customerNameHeading: string;
974
+ customerSearchPlaceholder: string;
975
+ customerSearchHint: string;
976
+ clearAll: string;
977
+ filterMenuButton: FilterMenuButtonLabels;
978
+ filterTag: FilterTagLabels;
979
+ amountFilter: Omit<AmountFilterLabels, 'min' | 'max'>;
980
+ dateRangePicker: Omit<DateRangePickerLabels, 'fieldLabel'>;
981
+ }
982
+ type InvoicesFilterBarLabelOverrides = PartialDeep<InvoicesFilterBarLabels>;
983
+
912
984
  interface ReceivableActionsModalLabels {
913
985
  issueDescription: string;
914
986
  toLabel: string;
@@ -1208,6 +1280,39 @@ interface ReceivableActionDialogLabels {
1208
1280
  type ReceivableDocumentType = ReceivableDocumentKind;
1209
1281
  type ReceivablesWidgetTab = 'invoices' | 'quotes' | 'credit_notes';
1210
1282
 
1283
+ declare const InvoicesDatePreset: {
1284
+ readonly Today: "today";
1285
+ readonly ThisWeek: "this_week";
1286
+ readonly ThisMonth: "this_month";
1287
+ readonly ThisQuarter: "this_quarter";
1288
+ readonly ThisYear: "this_year";
1289
+ readonly Yesterday: "yesterday";
1290
+ readonly LastWeek: "last_week";
1291
+ readonly LastMonth: "last_month";
1292
+ readonly Last30Days: "last_30_days";
1293
+ readonly Last90Days: "last_90_days";
1294
+ readonly LastQuarter: "last_quarter";
1295
+ readonly LastYear: "last_year";
1296
+ };
1297
+ type InvoicesDatePreset = (typeof InvoicesDatePreset)[keyof typeof InvoicesDatePreset];
1298
+
1299
+ interface InvoicesFilterLabels {
1300
+ presets: Record<InvoicesDatePreset, string>;
1301
+ presetGroupCurrent: string;
1302
+ presetGroupPast: string;
1303
+ dateFieldNames: Record<InvoicesDateFilterField, string>;
1304
+ customRange: string;
1305
+ /** Shown under a status option; a status with no entry shows none. */
1306
+ statusDescriptions: Partial<Record<string, string>>;
1307
+ dateChip: (fieldLabel: string, range: string) => string;
1308
+ statusChip: (value: string) => string;
1309
+ moreSelected: (first: string, count: number) => string;
1310
+ customerChip: (name: string) => string;
1311
+ amountChip: string;
1312
+ searchChip: (value: string) => string;
1313
+ }
1314
+ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
1315
+
1211
1316
  interface ReceivableMessageLabels {
1212
1317
  customerRequired: string;
1213
1318
  customerAddressRequired: string;
@@ -1516,11 +1621,15 @@ interface ReceivablesWidgetOwnProps {
1516
1621
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
1517
1622
  embeddedBankName?: string;
1518
1623
  enabledTabs?: ReceivablesWidgetTab[];
1624
+ /** Opens the invoice list filtered to this customer. */
1625
+ initialCounterpartId?: string;
1519
1626
  pageSizeOptions?: number[];
1520
1627
  onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
1521
1628
  onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
1522
1629
  onTemplateSettingsClick?: () => void;
1523
1630
  screenLabels?: ReceivablesScreenLabelOverrides;
1631
+ filterBarLabels?: InvoicesFilterBarLabelOverrides;
1632
+ filterLabels?: InvoicesFilterLabelOverrides;
1524
1633
  formLabels?: Partial<ReceivableFormSheetLabels>;
1525
1634
  detailsLabels?: ReceivableDetailsPanelLabelOverrides;
1526
1635
  auditHistoryLabels?: Partial<ReceivableAuditHistoryLabels>;
@@ -1541,4 +1650,4 @@ type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
1541
1650
  declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
1542
1651
 
1543
1652
  export { ReceivablesWidget };
1544
- export type { CounterpartFormSheetLabels, CounterpartMessageLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
1653
+ export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
@@ -1,3 +1,3 @@
1
- import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js";
1
+ import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index40.js";
2
2
  import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
3
3
  export { e as ReceivablesWidget };
@@ -1,3 +1,3 @@
1
1
  import { InvoicingWidget as e } from "./index3.js";
2
- import { ReceivablesWidget as t } from "./index36.js";
2
+ import { ReceivablesWidget as t } from "./index40.js";
3
3
  export { e as InvoicingWidget, t as ReceivablesWidget };
@@ -1,4 +1,4 @@
1
- import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as e, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as t } from "../../ui/dist/index15.js";
1
+ import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as e, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as t } from "../../ui/dist/index19.js";
2
2
  import "../../ui/dist/index.js";
3
3
  import { addDays as n, addYears as r, format as i, isValid as a, max as o, min as s, parseISO as c, subYears as l } from "date-fns";
4
4
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js
@@ -3,7 +3,7 @@ import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
3
3
  import "../../../shared/data-access/dist/index.js";
4
4
  import { getCounterpartEmail as n } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
5
5
  import "../../../shared/counterpart-management/feature/dist/index.js";
6
- import { RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as r } from "../../ui/dist/index15.js";
6
+ import { RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as r } from "../../ui/dist/index19.js";
7
7
  import "../../ui/dist/index.js";
8
8
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js
9
9
  var i = 1e4, a = 864e5;
@@ -16,11 +16,11 @@ function r({ counterpartId: r, billingAddressId: i, billingCountry: a }) {
16
16
  counterpart_country: a,
17
17
  counterpart_type: c?.type,
18
18
  enabled: !!(r && i)
19
- }), u = !!l.data?.entity?.tax_id?.required;
19
+ }), u = !!l.data?.entity?.tax_id?.required, d = !!r && !c && (s.isLoading || s.isFetching);
20
20
  return {
21
21
  counterpart: c,
22
- isCounterpartLoading: !!r && (s.isLoading || s.isFetching),
23
- isLoading: o.isLoading || o.isFetching || l.isLoading || l.isFetching || !!r && (s.isLoading || s.isFetching),
22
+ isCounterpartLoading: d,
23
+ isLoading: o.isLoading || l.isLoading || d,
24
24
  isTaxIdMissing: u && !o.data?.tax_id
25
25
  };
26
26
  }
@@ -1,4 +1,4 @@
1
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as e } from "../../ui/dist/index9.js";
1
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as e } from "../../ui/dist/index13.js";
2
2
  import "../../ui/dist/index.js";
3
3
  import { formatDate as t, formatMoney as n, getDocumentTypeLabel as r } from "./index13.js";
4
4
  import { RECEIVABLE_MESSAGE_LABELS_EN as i } from "./index14.js";
@@ -1,5 +1,5 @@
1
1
  import { minorExponentForCurrency as e } from "../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
2
- import "../../ui/dist/index15.js";
2
+ import "../../ui/dist/index19.js";
3
3
  import "../../ui/dist/index.js";
4
4
  import { isBlankLineItem as t, keepsSavedTaxRates as n, lineItemTaxRateMinorUnits as r, parseQuantity as i, priceInputToMinorUnits as a, taxRateToMinorUnits as o } from "./index6.js";
5
5
  import { formatTermDate as s, resolveIssueDate as c, termDueDate as l } from "./index10.js";
@@ -9,7 +9,7 @@ import "../../../shared/data-access/dist/index.js";
9
9
  import { useWidgetConfig as ee } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
10
  import { useOrganizationUserNames as r } from "../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
11
11
  import "../../../shared/feature/dist/index.js";
12
- import { RECEIVABLE_DETAILS_SECTION as i } from "../../ui/dist/index21.js";
12
+ import { RECEIVABLE_DETAILS_SECTION as i } from "../../ui/dist/index25.js";
13
13
  import "../../ui/dist/index.js";
14
14
  import { useAllReceivableHistoryQuery as a } from "../../data-access/dist/index3.js";
15
15
  import { usePaymentAccountsQuery as o } from "../../data-access/dist/index4.js";