@tesouro/embedded-components-react 0.7.45 → 0.7.47

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 (106) hide show
  1. package/dist/index.d.ts +33 -39
  2. package/dist/lib/CounterpartsWidget.d.ts +33 -22
  3. package/dist/lib/CounterpartsWidgetPublic.d.ts +33 -22
  4. package/dist/lib/CustomersWidget.d.ts +31 -22
  5. package/dist/lib/ReceivablesWidget.d.ts +3 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +12 -12
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +15 -15
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +40 -42
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +1 -3
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +9 -9
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +30 -30
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +3 -2
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +7 -6
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +3 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +9 -8
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +5 -4
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +3 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +40 -40
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +3 -2
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +8 -7
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +9 -13
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +7 -10
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +76 -11
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +1 -1
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +27 -9
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -76
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +30 -0
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +1 -1
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
  39. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +73 -77
  40. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +9 -26
  41. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +44 -44
  42. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +197 -208
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +9 -9
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -23
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +10 -24
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +53 -37
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +21 -53
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +8 -21
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +77 -8
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +31 -69
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +17 -38
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +40 -17
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +26 -38
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -27
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +8 -18
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +35 -9
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +14 -36
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -14
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +84 -23
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +487 -80
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +2 -494
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +48 -2
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +62 -38
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +438 -61
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +207 -431
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +20 -222
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +6 -21
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +265 -0
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +2 -265
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +131 -2
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +22 -125
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +235 -23
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +3 -240
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +249 -3
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +54 -242
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +221 -51
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +38 -222
  81. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +13 -13
  82. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +1 -1
  83. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +85 -84
  84. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +238 -241
  85. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +2 -0
  86. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +6 -5
  87. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +2 -0
  88. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +8 -0
  89. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index2.js +14 -0
  90. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +13 -0
  91. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +18 -0
  92. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index5.js +2 -0
  93. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index6.js +20 -0
  94. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +32 -0
  95. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index8.js +2 -0
  96. package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget → shared/document-status}/util/dist/lib/derivePayableStatus.js +23 -10
  97. package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +22 -0
  98. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  99. package/package.json +1 -1
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +0 -18
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -7
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -34
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
  105. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +0 -8
  106. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +0 -45
package/dist/index.d.ts CHANGED
@@ -4320,6 +4320,9 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$1;
4320
4320
  */
4321
4321
  declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
4322
4322
 
4323
+ /** Display statuses; overdue state is represented separately on the due date. */
4324
+ type BillBadgeStatus = 'draft' | 'ready_to_submit' | 'pending_approval' | 'ready_to_pay' | 'scheduled' | 'paid' | 'canceled' | 'rejected';
4325
+
4323
4326
  interface AddressFieldGroupLabels {
4324
4327
  line1: string;
4325
4328
  line2: string;
@@ -4337,6 +4340,8 @@ interface AchFieldGroupLabels {
4337
4340
  accountHolderName: string;
4338
4341
  routingNumber: string;
4339
4342
  accountNumber: string;
4343
+ routingNumberPlaceholder: string;
4344
+ accountNumberPlaceholder: string;
4340
4345
  /** The asterisk copy this group's labels carry. */
4341
4346
  fieldMarkers: LabelLabels;
4342
4347
  }
@@ -4411,6 +4416,8 @@ interface BankAccountFormSheetLabels {
4411
4416
  accountHolderNameLabel: string;
4412
4417
  accountNumberLabel: string;
4413
4418
  routingNumberLabel: string;
4419
+ accountNumberPlaceholder: string;
4420
+ routingNumberPlaceholder: string;
4414
4421
  helperText: string;
4415
4422
  cancelButton: string;
4416
4423
  saveButton: string;
@@ -4476,6 +4483,28 @@ interface CounterpartMessageLabels {
4476
4483
  deleteBankAccountFailed: string;
4477
4484
  }
4478
4485
 
4486
+ type BillStatusBadgeLabels = Record<BillBadgeStatus, string> & {
4487
+ unknown: string;
4488
+ };
4489
+
4490
+ interface ReceivableStatusBadgeLabels {
4491
+ draft: string;
4492
+ issuing: string;
4493
+ issued: string;
4494
+ failed: string;
4495
+ accepted: string;
4496
+ expired: string;
4497
+ declined: string;
4498
+ recurring: string;
4499
+ partially_paid: string;
4500
+ paid: string;
4501
+ overdue: string;
4502
+ uncollectible: string;
4503
+ canceled: string;
4504
+ deleted: string;
4505
+ unknown: string;
4506
+ }
4507
+
4479
4508
  interface NoPolicyBannerLabels {
4480
4509
  Title: string;
4481
4510
  Body: string;
@@ -4659,28 +4688,10 @@ interface CounterpartDetailsSheetLabels {
4659
4688
  routingNumberLabel: string;
4660
4689
  noPaymentMethods: string;
4661
4690
  editButton: string;
4662
- billStatusDraft: string;
4663
- billStatusReadyToSubmit: string;
4664
- billStatusPendingApproval: string;
4665
- billStatusReadyToPay: string;
4666
- billStatusPaid: string;
4667
- billStatusCanceled: string;
4668
- billStatusRejected: string;
4669
- receivableStatusDraft: string;
4670
- receivableStatusIssuing: string;
4671
- receivableStatusIssued: string;
4672
- receivableStatusFailed: string;
4673
- receivableStatusAccepted: string;
4674
- receivableStatusExpired: string;
4675
- receivableStatusDeclined: string;
4676
- receivableStatusRecurring: string;
4677
- receivableStatusPartiallyPaid: string;
4678
- receivableStatusPaid: string;
4679
- receivableStatusOverdue: string;
4680
- receivableStatusUncollectible: string;
4681
- receivableStatusCanceled: string;
4682
- receivableStatusDeleted: string;
4683
- receivableStatusUnknown: string;
4691
+ /** Overrides for the shared bill status badge in recent documents. */
4692
+ billStatusBadge: Partial<BillStatusBadgeLabels>;
4693
+ /** Overrides for the shared invoice status badge in recent documents. */
4694
+ invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
4684
4695
  optionalSuffix: string;
4685
4696
  editingCustomerDetailsHeading: string;
4686
4697
  editingVendorDetailsHeading: string;
@@ -5229,23 +5240,6 @@ interface ReceivableRecurrenceEmailDialogLabels {
5229
5240
  recurrenceEmailSave: string;
5230
5241
  }
5231
5242
 
5232
- interface ReceivableStatusBadgeLabels {
5233
- draft: string;
5234
- issuing: string;
5235
- issued: string;
5236
- failed: string;
5237
- accepted: string;
5238
- expired: string;
5239
- declined: string;
5240
- recurring: string;
5241
- partially_paid: string;
5242
- paid: string;
5243
- overdue: string;
5244
- uncollectible: string;
5245
- canceled: string;
5246
- deleted: string;
5247
- unknown: string;
5248
- }
5249
5243
  interface ReceivablesScreenLabels {
5250
5244
  createInvoiceButton: string;
5251
5245
  /** The settings button's accessible name and tooltip. */
@@ -674,6 +674,8 @@ interface AchFieldGroupLabels {
674
674
  accountHolderName: string;
675
675
  routingNumber: string;
676
676
  accountNumber: string;
677
+ routingNumberPlaceholder: string;
678
+ accountNumberPlaceholder: string;
677
679
  /** The asterisk copy this group's labels carry. */
678
680
  fieldMarkers: LabelLabels;
679
681
  }
@@ -748,6 +750,8 @@ interface BankAccountFormSheetLabels {
748
750
  accountHolderNameLabel: string;
749
751
  accountNumberLabel: string;
750
752
  routingNumberLabel: string;
753
+ accountNumberPlaceholder: string;
754
+ routingNumberPlaceholder: string;
751
755
  helperText: string;
752
756
  cancelButton: string;
753
757
  saveButton: string;
@@ -813,6 +817,31 @@ interface CounterpartMessageLabels {
813
817
  deleteBankAccountFailed: string;
814
818
  }
815
819
 
820
+ /** Display statuses; overdue state is represented separately on the due date. */
821
+ type BillBadgeStatus = 'draft' | 'ready_to_submit' | 'pending_approval' | 'ready_to_pay' | 'scheduled' | 'paid' | 'canceled' | 'rejected';
822
+
823
+ type BillStatusBadgeLabels = Record<BillBadgeStatus, string> & {
824
+ unknown: string;
825
+ };
826
+
827
+ interface ReceivableStatusBadgeLabels {
828
+ draft: string;
829
+ issuing: string;
830
+ issued: string;
831
+ failed: string;
832
+ accepted: string;
833
+ expired: string;
834
+ declined: string;
835
+ recurring: string;
836
+ partially_paid: string;
837
+ paid: string;
838
+ overdue: string;
839
+ uncollectible: string;
840
+ canceled: string;
841
+ deleted: string;
842
+ unknown: string;
843
+ }
844
+
816
845
  interface CounterpartsScreenLabels {
817
846
  /** Customer-mode create action. */
818
847
  createButton: string;
@@ -926,28 +955,10 @@ interface CounterpartDetailsSheetLabels {
926
955
  routingNumberLabel: string;
927
956
  noPaymentMethods: string;
928
957
  editButton: string;
929
- billStatusDraft: string;
930
- billStatusReadyToSubmit: string;
931
- billStatusPendingApproval: string;
932
- billStatusReadyToPay: string;
933
- billStatusPaid: string;
934
- billStatusCanceled: string;
935
- billStatusRejected: string;
936
- receivableStatusDraft: string;
937
- receivableStatusIssuing: string;
938
- receivableStatusIssued: string;
939
- receivableStatusFailed: string;
940
- receivableStatusAccepted: string;
941
- receivableStatusExpired: string;
942
- receivableStatusDeclined: string;
943
- receivableStatusRecurring: string;
944
- receivableStatusPartiallyPaid: string;
945
- receivableStatusPaid: string;
946
- receivableStatusOverdue: string;
947
- receivableStatusUncollectible: string;
948
- receivableStatusCanceled: string;
949
- receivableStatusDeleted: string;
950
- receivableStatusUnknown: string;
958
+ /** Overrides for the shared bill status badge in recent documents. */
959
+ billStatusBadge: Partial<BillStatusBadgeLabels>;
960
+ /** Overrides for the shared invoice status badge in recent documents. */
961
+ invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
951
962
  optionalSuffix: string;
952
963
  editingCustomerDetailsHeading: string;
953
964
  editingVendorDetailsHeading: string;
@@ -674,6 +674,8 @@ interface AchFieldGroupLabels {
674
674
  accountHolderName: string;
675
675
  routingNumber: string;
676
676
  accountNumber: string;
677
+ routingNumberPlaceholder: string;
678
+ accountNumberPlaceholder: string;
677
679
  /** The asterisk copy this group's labels carry. */
678
680
  fieldMarkers: LabelLabels;
679
681
  }
@@ -748,6 +750,8 @@ interface BankAccountFormSheetLabels {
748
750
  accountHolderNameLabel: string;
749
751
  accountNumberLabel: string;
750
752
  routingNumberLabel: string;
753
+ accountNumberPlaceholder: string;
754
+ routingNumberPlaceholder: string;
751
755
  helperText: string;
752
756
  cancelButton: string;
753
757
  saveButton: string;
@@ -813,6 +817,31 @@ interface CounterpartMessageLabels {
813
817
  deleteBankAccountFailed: string;
814
818
  }
815
819
 
820
+ /** Display statuses; overdue state is represented separately on the due date. */
821
+ type BillBadgeStatus = 'draft' | 'ready_to_submit' | 'pending_approval' | 'ready_to_pay' | 'scheduled' | 'paid' | 'canceled' | 'rejected';
822
+
823
+ type BillStatusBadgeLabels = Record<BillBadgeStatus, string> & {
824
+ unknown: string;
825
+ };
826
+
827
+ interface ReceivableStatusBadgeLabels {
828
+ draft: string;
829
+ issuing: string;
830
+ issued: string;
831
+ failed: string;
832
+ accepted: string;
833
+ expired: string;
834
+ declined: string;
835
+ recurring: string;
836
+ partially_paid: string;
837
+ paid: string;
838
+ overdue: string;
839
+ uncollectible: string;
840
+ canceled: string;
841
+ deleted: string;
842
+ unknown: string;
843
+ }
844
+
816
845
  interface CounterpartsScreenLabels {
817
846
  /** Customer-mode create action. */
818
847
  createButton: string;
@@ -926,28 +955,10 @@ interface CounterpartDetailsSheetLabels {
926
955
  routingNumberLabel: string;
927
956
  noPaymentMethods: string;
928
957
  editButton: string;
929
- billStatusDraft: string;
930
- billStatusReadyToSubmit: string;
931
- billStatusPendingApproval: string;
932
- billStatusReadyToPay: string;
933
- billStatusPaid: string;
934
- billStatusCanceled: string;
935
- billStatusRejected: string;
936
- receivableStatusDraft: string;
937
- receivableStatusIssuing: string;
938
- receivableStatusIssued: string;
939
- receivableStatusFailed: string;
940
- receivableStatusAccepted: string;
941
- receivableStatusExpired: string;
942
- receivableStatusDeclined: string;
943
- receivableStatusRecurring: string;
944
- receivableStatusPartiallyPaid: string;
945
- receivableStatusPaid: string;
946
- receivableStatusOverdue: string;
947
- receivableStatusUncollectible: string;
948
- receivableStatusCanceled: string;
949
- receivableStatusDeleted: string;
950
- receivableStatusUnknown: string;
958
+ /** Overrides for the shared bill status badge in recent documents. */
959
+ billStatusBadge: Partial<BillStatusBadgeLabels>;
960
+ /** Overrides for the shared invoice status badge in recent documents. */
961
+ invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
951
962
  optionalSuffix: string;
952
963
  editingCustomerDetailsHeading: string;
953
964
  editingVendorDetailsHeading: string;
@@ -675,6 +675,8 @@ interface AchFieldGroupLabels {
675
675
  accountHolderName: string;
676
676
  routingNumber: string;
677
677
  accountNumber: string;
678
+ routingNumberPlaceholder: string;
679
+ accountNumberPlaceholder: string;
678
680
  /** The asterisk copy this group's labels carry. */
679
681
  fieldMarkers: LabelLabels;
680
682
  }
@@ -803,6 +805,31 @@ interface CounterpartMessageLabels {
803
805
  deleteBankAccountFailed: string;
804
806
  }
805
807
 
808
+ /** Display statuses; overdue state is represented separately on the due date. */
809
+ type BillBadgeStatus = 'draft' | 'ready_to_submit' | 'pending_approval' | 'ready_to_pay' | 'scheduled' | 'paid' | 'canceled' | 'rejected';
810
+
811
+ type BillStatusBadgeLabels = Record<BillBadgeStatus, string> & {
812
+ unknown: string;
813
+ };
814
+
815
+ interface ReceivableStatusBadgeLabels {
816
+ draft: string;
817
+ issuing: string;
818
+ issued: string;
819
+ failed: string;
820
+ accepted: string;
821
+ expired: string;
822
+ declined: string;
823
+ recurring: string;
824
+ partially_paid: string;
825
+ paid: string;
826
+ overdue: string;
827
+ uncollectible: string;
828
+ canceled: string;
829
+ deleted: string;
830
+ unknown: string;
831
+ }
832
+
806
833
  interface CounterpartsScreenLabels {
807
834
  /** Customer-mode create action. */
808
835
  createButton: string;
@@ -916,28 +943,10 @@ interface CounterpartDetailsSheetLabels {
916
943
  routingNumberLabel: string;
917
944
  noPaymentMethods: string;
918
945
  editButton: string;
919
- billStatusDraft: string;
920
- billStatusReadyToSubmit: string;
921
- billStatusPendingApproval: string;
922
- billStatusReadyToPay: string;
923
- billStatusPaid: string;
924
- billStatusCanceled: string;
925
- billStatusRejected: string;
926
- receivableStatusDraft: string;
927
- receivableStatusIssuing: string;
928
- receivableStatusIssued: string;
929
- receivableStatusFailed: string;
930
- receivableStatusAccepted: string;
931
- receivableStatusExpired: string;
932
- receivableStatusDeclined: string;
933
- receivableStatusRecurring: string;
934
- receivableStatusPartiallyPaid: string;
935
- receivableStatusPaid: string;
936
- receivableStatusOverdue: string;
937
- receivableStatusUncollectible: string;
938
- receivableStatusCanceled: string;
939
- receivableStatusDeleted: string;
940
- receivableStatusUnknown: string;
946
+ /** Overrides for the shared bill status badge in recent documents. */
947
+ billStatusBadge: Partial<BillStatusBadgeLabels>;
948
+ /** Overrides for the shared invoice status badge in recent documents. */
949
+ invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
941
950
  optionalSuffix: string;
942
951
  editingCustomerDetailsHeading: string;
943
952
  editingVendorDetailsHeading: string;
@@ -763,6 +763,8 @@ interface AchFieldGroupLabels {
763
763
  accountHolderName: string;
764
764
  routingNumber: string;
765
765
  accountNumber: string;
766
+ routingNumberPlaceholder: string;
767
+ accountNumberPlaceholder: string;
766
768
  /** The asterisk copy this group's labels carry. */
767
769
  fieldMarkers: LabelLabels;
768
770
  }
@@ -1077,6 +1079,7 @@ interface ReceivableStatusBadgeLabels {
1077
1079
  deleted: string;
1078
1080
  unknown: string;
1079
1081
  }
1082
+
1080
1083
  interface ReceivablesScreenLabels {
1081
1084
  createInvoiceButton: string;
1082
1085
  /** The settings button's accessible name and tooltip. */
@@ -1,10 +1,10 @@
1
1
  import { formatCalendarDate as e } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
2
- import { derivePayableStatus as t } from "../../../util/dist/lib/derivePayableStatus.js";
3
- import { formatBillMoney as n } from "../../../util/dist/lib/formatBillMoney.js";
4
- import { resolveLineItemAmountMinorUnits as r } from "../../../util/dist/lib/resolveLineItemAmount.js";
5
- import { resolveLineItemQuantity as i } from "../../../util/dist/lib/resolveLineItemQuantity.js";
6
- import { resolveVendor as a, resolveVendorName as o } from "../../../util/dist/lib/resolveVendor.js";
7
- import { formatGlCodeLabel as s } from "./index13.js";
2
+ import { formatBillMoney as t } from "../../../util/dist/lib/formatBillMoney.js";
3
+ import { resolveLineItemAmountMinorUnits as n } from "../../../util/dist/lib/resolveLineItemAmount.js";
4
+ import { resolveLineItemQuantity as r } from "../../../util/dist/lib/resolveLineItemQuantity.js";
5
+ import { resolveVendor as i, resolveVendorName as a } from "../../../util/dist/lib/resolveVendor.js";
6
+ import { formatGlCodeLabel as o } from "./index13.js";
7
+ import { derivePayableStatus as s } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
8
8
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js
9
9
  function c(e) {
10
10
  return e.total_amount ?? e.amount_due ?? void 0;
@@ -13,13 +13,13 @@ function l(e) {
13
13
  return typeof e == "string" ? e : "";
14
14
  }
15
15
  function u({ payable: u, lineItems: f, ledgerAccounts: p, labels: m, hasScheduledPayment: h, now: g, rejection: _, achInstructions: v, achInstructionsReadable: y = !1 }) {
16
- let b = u.currency, x = (e) => n(e, b), S = t({
16
+ let b = u.currency, x = (e) => t(e, b), S = s({
17
17
  apiStatus: u.status,
18
18
  dueDate: u.due_date,
19
19
  scheduledPaymentDate: u.scheduled_payment_date,
20
20
  hasScheduledPayment: h,
21
21
  now: g
22
- }), C = a(u), w = o(u), T = e(u.issued_at) || m.notProvided, E = e(u.due_date) || m.notProvided, D = [{
22
+ }), C = i(u), w = a(u), T = e(u.issued_at) || m.notProvided, E = e(u.due_date) || m.notProvided, D = [{
23
23
  label: m.vendorRow,
24
24
  value: w || m.notProvided,
25
25
  secondaryValue: C?.email ?? void 0
@@ -45,14 +45,14 @@ function u({ payable: u, lineItems: f, ledgerAccounts: p, labels: m, hasSchedule
45
45
  label: m.poNumberRow,
46
46
  value: l(u.purchase_order_number) || m.notProvided
47
47
  }
48
- ], A = new Map(p.map((e) => [e.id, s(e)])), j = f.map((e) => {
49
- let t = x(e.unit_price), n = String(i(e));
48
+ ], A = new Map(p.map((e) => [e.id, o(e)])), j = f.map((e) => {
49
+ let t = x(e.unit_price), i = String(r(e));
50
50
  return {
51
51
  id: e.id,
52
52
  description: e.name ?? e.description ?? "",
53
53
  glCodeLabel: (e.ledger_account_id ? A.get(e.ledger_account_id) : void 0) || m.glCodeMissing,
54
- quantityLabel: t ? m.quantityValue(n, t) : m.quantityOnlyValue(n),
55
- amountLabel: x(r(e)) ?? ""
54
+ quantityLabel: t ? m.quantityValue(i, t) : m.quantityOnlyValue(i),
55
+ amountLabel: x(n(e)) ?? ""
56
56
  };
57
57
  }), M = [
58
58
  {
@@ -1,19 +1,19 @@
1
1
  import { formatCalendarDate as e } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
2
- import { derivePayableStatus as t } from "../../../util/dist/lib/derivePayableStatus.js";
3
- import { formatBillMoney as n } from "../../../util/dist/lib/formatBillMoney.js";
4
- import { resolveAmountDueMinorUnits as r } from "../../../util/dist/lib/resolveAmountDue.js";
5
- import { resolveLineItemAmountMinorUnits as i } from "../../../util/dist/lib/resolveLineItemAmount.js";
6
- import { resolveLineItemQuantity as a } from "../../../util/dist/lib/resolveLineItemQuantity.js";
7
- import { resolveVendor as o } from "../../../util/dist/lib/resolveVendor.js";
2
+ import { formatBillMoney as t } from "../../../util/dist/lib/formatBillMoney.js";
3
+ import { resolveAmountDueMinorUnits as n } from "../../../util/dist/lib/resolveAmountDue.js";
4
+ import { resolveLineItemAmountMinorUnits as r } from "../../../util/dist/lib/resolveLineItemAmount.js";
5
+ import { resolveLineItemQuantity as i } from "../../../util/dist/lib/resolveLineItemQuantity.js";
6
+ import { resolveVendor as a } from "../../../util/dist/lib/resolveVendor.js";
7
+ import { derivePayableStatus as o } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
8
8
  import { getPaidAtLabel as s, resolveInvoiceTotalMinorUnits as c } from "./index24.js";
9
9
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js
10
10
  function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable: f = !0, history: p, paymentHistory: m, approvalPolicy: h, labels: g, hasScheduledPayment: _, rejection: v, payableAchInstructions: y, payableAchInstructionsReadable: b = !1 }) {
11
- let x = l.currency, S = t({
11
+ let x = l.currency, S = o({
12
12
  apiStatus: l.status,
13
13
  dueDate: l.due_date,
14
14
  scheduledPaymentDate: l.scheduled_payment_date,
15
15
  hasScheduledPayment: _
16
- }), C = o(l), w = b ? y : void 0, T = w?.account_number, E = !!(w?.account_holder_name && w.routing_number && w.account_number), D = e(l.issued_at) || g.notProvided, O = e(l.due_date) || g.notProvided, k = new Map(d.map((e) => [e.value, e.label])), A = [
16
+ }), C = a(l), w = b ? y : void 0, T = w?.account_number, E = !!(w?.account_holder_name && w.routing_number && w.account_number), D = e(l.issued_at) || g.notProvided, O = e(l.due_date) || g.notProvided, k = new Map(d.map((e) => [e.value, e.label])), A = [
17
17
  {
18
18
  label: g.subtotalRow,
19
19
  minorUnits: l.subtotal
@@ -28,8 +28,8 @@ function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable:
28
28
  }
29
29
  ].map((e) => ({
30
30
  label: e.label,
31
- value: n(e.minorUnits, x)
32
- })).filter((e) => !!e.value), j = n(c(l), x);
31
+ value: t(e.minorUnits, x)
32
+ })).filter((e) => !!e.value), j = t(c(l), x);
33
33
  j && A.push({
34
34
  label: g.totalRow,
35
35
  value: j,
@@ -37,8 +37,8 @@ function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable:
37
37
  });
38
38
  let M = s(l);
39
39
  return {
40
- amountDue: n(r(l), x) ?? "",
41
- amountPaid: M ? n(l.amount_paid, x) : void 0,
40
+ amountDue: t(n(l), x) ?? "",
41
+ amountPaid: M ? t(l.amount_paid, x) : void 0,
42
42
  paidOnLabel: M ? g.paidOnLabel(M) : void 0,
43
43
  invoiceDateLabel: D,
44
44
  dueDateLabel: O,
@@ -66,13 +66,13 @@ function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable:
66
66
  }
67
67
  ],
68
68
  lineItems: u.map((e) => {
69
- let t = n(e.unit_price, x), r = String(a(e));
69
+ let n = t(e.unit_price, x), a = String(i(e));
70
70
  return {
71
71
  id: e.id,
72
72
  description: e.name ?? e.description ?? "",
73
73
  glCodeLabel: e.ledger_account_id ? k.get(e.ledger_account_id) ?? (f ? g.glCodeMissing : g.glCodeUnavailable) : g.glCodeMissing,
74
- qtyPriceLabel: t ? g.qtyPriceValue(r, t) : g.qtyOnlyValue(r),
75
- amount: n(i(e), x) ?? ""
74
+ qtyPriceLabel: n ? g.qtyPriceValue(a, n) : g.qtyOnlyValue(a),
75
+ amount: t(r(e), x) ?? ""
76
76
  };
77
77
  }),
78
78
  amountRows: A,
@@ -46,7 +46,7 @@ function c(e) {
46
46
  routingNumber: i(e?.bank_account?.routing_number),
47
47
  accountNumber: i(e?.bank_account?.account_number)
48
48
  }
49
- }, "create", void 0, "vendor"));
49
+ }, void 0, "vendor"));
50
50
  }
51
51
  function l(e, t, n) {
52
52
  let r = (e) => i(e) || void 0, { address: a } = e;
@@ -14,50 +14,50 @@ import "../../../../shared/counterpart-management/feature/dist/index.js";
14
14
  import { useMemo as c } from "react";
15
15
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
16
16
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js
17
- function d({ mode: d, values: f, errors: p, onChange: m, onAddressChange: h, sectionsToExpand: g, onAddressExpand: _, onCancel: v, onSave: y, isSaving: b = !1, search: x, paymentInstructions: S, labels: C }) {
18
- let w = c(() => s(C), [C]), T = c(() => t(), []), E = a(p ?? {}), D = i({
17
+ function d({ mode: d, values: f, errors: p, onChange: m, onAddressChange: h, onCancel: g, onSave: _, isSaving: v = !1, search: y, paymentInstructions: b, labels: x }) {
18
+ let S = c(() => s(x), [x]), C = c(() => t(), []), w = a(p ?? {}), T = i({
19
19
  ...p,
20
20
  form: void 0,
21
21
  bankAccount: void 0
22
- }) + i(S?.errors), O = x?.query.trim() ?? "", k = f.entityType === "individual" ? `${f.firstName} ${f.lastName}`.trim() : f.legalName, A = x && d === "create" ? /* @__PURE__ */ l(o, {
23
- ...x,
24
- onAddVendor: O && O !== k.trim() ? x.onAddVendor : void 0,
25
- selectedLabel: k,
26
- badge: w.newVendorBadge,
27
- helperText: w.unmatchedVendorHelper,
28
- resultsHeading: w.resultsHeading,
29
- addVendorDescription: w.addAsNewVendorDescription,
22
+ }) + i(b?.errors), E = y?.query.trim() ?? "", D = f.entityType === "individual" ? `${f.firstName} ${f.lastName}`.trim() : f.legalName, O = y && d === "create" ? /* @__PURE__ */ l(o, {
23
+ ...y,
24
+ onAddVendor: E && E !== D.trim() ? y.onAddVendor : void 0,
25
+ selectedLabel: D,
26
+ badge: S.newVendorBadge,
27
+ helperText: S.unmatchedVendorHelper,
28
+ resultsHeading: S.resultsHeading,
29
+ addVendorDescription: S.addAsNewVendorDescription,
30
30
  labels: {
31
- fieldLabel: w.vendorFieldLabel,
32
- addVendorAction: w.addAsNewVendor(O)
31
+ fieldLabel: S.vendorFieldLabel,
32
+ addVendorAction: S.addAsNewVendor(E)
33
33
  }
34
34
  }) : null;
35
35
  return /* @__PURE__ */ u("div", {
36
- ref: E,
36
+ ref: w,
37
37
  className: "ttw:flex ttw:flex-col ttw:gap-4",
38
- children: [A, /* @__PURE__ */ u("div", {
38
+ children: [O, /* @__PURE__ */ u("div", {
39
39
  className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:rounded-lg ttw:border ttw:border-primary ttw:bg-surface-subtle ttw:p-6 ttw:[&_[data-slot=input]]:bg-background ttw:[&_[data-slot=select-trigger]]:bg-background",
40
40
  children: [
41
41
  /* @__PURE__ */ u("div", {
42
42
  className: "ttw:flex ttw:items-baseline ttw:justify-between ttw:gap-2",
43
43
  children: [/* @__PURE__ */ l("p", {
44
44
  className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
45
- children: d === "edit" ? w.editTitle : w.createTitle
46
- }), D > 0 ? /* @__PURE__ */ l("p", {
45
+ children: d === "edit" ? S.editTitle : S.createTitle
46
+ }), T > 0 ? /* @__PURE__ */ l("p", {
47
47
  className: "ttw:text-sm ttw:text-destructive",
48
- children: w.fieldsNeedAttention(D)
48
+ children: S.fieldsNeedAttention(T)
49
49
  }) : null]
50
50
  }),
51
- x && d === "edit" ? /* @__PURE__ */ l(o, {
52
- ...x,
53
- labels: { fieldLabel: w.switchVendorFieldLabel }
51
+ y && d === "edit" ? /* @__PURE__ */ l(o, {
52
+ ...y,
53
+ labels: { fieldLabel: S.switchVendorFieldLabel }
54
54
  }) : null,
55
55
  /* @__PURE__ */ l(r, {
56
56
  mode: d,
57
57
  counterpartMode: "vendor",
58
58
  values: f,
59
59
  errors: p,
60
- stateOptions: T,
60
+ stateOptions: C,
61
61
  onChange: m,
62
62
  onAddressChange: h,
63
63
  sections: {
@@ -66,30 +66,28 @@ function d({ mode: d, values: f, errors: p, onChange: m, onAddressChange: h, sec
66
66
  addressHeading: !1,
67
67
  title: !1,
68
68
  taxId: !1,
69
- address: d !== "edit" || "collapsible",
69
+ address: !0,
70
70
  bankAccount: !1
71
71
  },
72
- sectionsToExpand: g,
73
- onAddressExpand: _,
74
- labels: { businessNameLabel: w.nameLabel }
72
+ labels: { businessNameLabel: S.nameLabel }
75
73
  }),
76
- S ? /* @__PURE__ */ u("div", {
74
+ b ? /* @__PURE__ */ u("div", {
77
75
  className: "ttw:flex ttw:flex-col ttw:gap-3",
78
76
  children: [/* @__PURE__ */ u("div", {
79
77
  className: "ttw:flex ttw:flex-col ttw:gap-1",
80
78
  children: [/* @__PURE__ */ l("p", {
81
79
  className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
82
- children: w.paymentInstructionsHeading
80
+ children: S.paymentInstructionsHeading
83
81
  }), /* @__PURE__ */ l("p", {
84
82
  className: "ttw:text-sm ttw:text-muted-foreground",
85
- children: S.isExtracted ? w.paymentInstructionsExtracted : w.paymentInstructionsDescription
83
+ children: b.isExtracted ? S.paymentInstructionsExtracted : S.paymentInstructionsDescription
86
84
  })]
87
85
  }), /* @__PURE__ */ l(n, {
88
86
  idPrefix: "vendor-inline-ach",
89
- values: S.values,
90
- errors: S.errors,
91
- onChange: S.onChange,
92
- labels: w.ach
87
+ values: b.values,
88
+ errors: b.errors,
89
+ onChange: b.onChange,
90
+ labels: S.ach
93
91
  })]
94
92
  }) : null,
95
93
  /* @__PURE__ */ u("div", {
@@ -97,17 +95,17 @@ function d({ mode: d, values: f, errors: p, onChange: m, onAddressChange: h, sec
97
95
  children: [/* @__PURE__ */ l(e, {
98
96
  type: "button",
99
97
  variant: "outline",
100
- onClick: v,
101
- "aria-label": w.cancelAriaLabel,
102
- disabled: b,
103
- children: w.cancel
104
- }), y ? /* @__PURE__ */ l(e, {
98
+ onClick: g,
99
+ "aria-label": S.cancelAriaLabel,
100
+ disabled: v,
101
+ children: S.cancel
102
+ }), _ ? /* @__PURE__ */ l(e, {
105
103
  type: "button",
106
- onClick: y,
107
- "aria-label": w.saveAriaLabel,
108
- loading: b,
109
- disabled: b,
110
- children: w.save
104
+ onClick: _,
105
+ "aria-label": S.saveAriaLabel,
106
+ loading: v,
107
+ disabled: v,
108
+ children: S.save
111
109
  }) : null]
112
110
  })
113
111
  ]
@@ -227,7 +227,7 @@ function g({ payableId: s, counterpartId: c, payableCounterpartId: g, payableCou
227
227
  let e = j.current, t = le({
228
228
  ...dt,
229
229
  bankAccount: e
230
- }, "create", C, "vendor");
230
+ }, C, "vendor");
231
231
  if (oe(t)) return He || !h(e, B ?? m) ? {
232
232
  ok: !0,
233
233
  counterpartRawData: _e(dt, e, _)
@@ -421,8 +421,6 @@ function g({ payableId: s, counterpartId: c, payableCounterpartId: g, payableCou
421
421
  errors: U.errors,
422
422
  onChange: At,
423
423
  onAddressChange: jt,
424
- sectionsToExpand: U.sectionsToExpand,
425
- onAddressExpand: U.expandAddress,
426
424
  onCancel: Tt,
427
425
  onSave: Dt,
428
426
  isSaving: Ft,