@tesouro/embedded-components-react 0.7.17 → 0.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/dist/index.css +3 -0
- package/dist/index.d.ts +50 -7
- package/dist/lib/CounterpartsWidget.d.ts +49 -6
- package/dist/lib/CounterpartsWidgetPublic.d.ts +49 -6
- package/dist/lib/CustomersWidget.d.ts +49 -6
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +18 -13
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +146 -137
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsSheetView.js +56 -55
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +108 -77
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +181 -25
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +50 -7
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +127 -596
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index5.js +66 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +210 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +520 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +10 -7
- 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/useReceivablesTable.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +141 -125
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -325,19 +325,19 @@ Manages an organization's customers or vendors: a searchable list with money col
|
|
|
325
325
|
|
|
326
326
|
#### Props
|
|
327
327
|
|
|
328
|
-
| Prop | Type | Default | Description
|
|
329
|
-
| -------------------- | ------------------------------------------------ | ------------------- |
|
|
330
|
-
| `counterpartType` | `'customer' \| 'vendor'` | **Required** | Selects the customer or vendor surface.
|
|
331
|
-
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table.
|
|
332
|
-
| `onViewAllDocuments` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Shows a "View all" action by the details sheet's recent bills/invoices and passes the counterpart's `id` and `name`. Hidden when omitted.
|
|
333
|
-
| `onCreateDocument` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Runs the details sheet's "Send a payment" (vendor) or "Issue an invoice" (customer) button.
|
|
334
|
-
| `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search/filter, empty, error and access-restricted copy.
|
|
335
|
-
| `formLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Create/edit form copy.
|
|
336
|
-
| `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy.
|
|
337
|
-
| `bankAccountLabels` | `PartialDeep<BankAccountFormSheetLabels>` | English labels | Vendor payment-method form copy.
|
|
338
|
-
| `addressLabels` | `PartialDeep<AddressFormSheetLabels>` | English labels | Address form copy.
|
|
339
|
-
| `deleteLabels` | `Partial<ConfirmDeleteDialogLabels>` | English labels | Delete-dialog copy.
|
|
340
|
-
| `messageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Validation, API failure and delete-prompt messages.
|
|
328
|
+
| Prop | Type | Default | Description |
|
|
329
|
+
| -------------------- | ------------------------------------------------ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
330
|
+
| `counterpartType` | `'customer' \| 'vendor'` | **Required** | Selects the customer or vendor surface. |
|
|
331
|
+
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table. |
|
|
332
|
+
| `onViewAllDocuments` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Shows a "View all" action by the details sheet's recent bills/invoices and passes the counterpart's `id` and `name`. Hidden when omitted. |
|
|
333
|
+
| `onCreateDocument` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Runs the details sheet's "Send a payment" (vendor) or "Issue an invoice" (customer) button. Hidden when omitted; you check the scopes it needs. |
|
|
334
|
+
| `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search/filter, empty, error and access-restricted copy. |
|
|
335
|
+
| `formLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Create/edit form copy. |
|
|
336
|
+
| `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy. |
|
|
337
|
+
| `bankAccountLabels` | `PartialDeep<BankAccountFormSheetLabels>` | English labels | Vendor payment-method form copy. |
|
|
338
|
+
| `addressLabels` | `PartialDeep<AddressFormSheetLabels>` | English labels | Address form copy. |
|
|
339
|
+
| `deleteLabels` | `Partial<ConfirmDeleteDialogLabels>` | English labels | Delete-dialog copy. |
|
|
340
|
+
| `messageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Validation, API failure and delete-prompt messages. |
|
|
341
341
|
|
|
342
342
|
### CustomersWidget
|
|
343
343
|
|
|
@@ -349,7 +349,7 @@ Manages an organization's customers: a searchable list with money columns, a det
|
|
|
349
349
|
| -------------------- | --------------------------------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
350
350
|
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table. |
|
|
351
351
|
| `onViewAllDocuments` | `(customer: CounterpartActionTarget) => void` | `undefined` | Shows a "View all" action on the details sheet's recent invoices and passes the customer's `id` and `name`; omit to hide it. |
|
|
352
|
-
| `onCreateDocument` | `(customer: CounterpartActionTarget) => void` | `undefined` | Handles "Issue an invoice" with the customer's `id` and `name`; omit
|
|
352
|
+
| `onCreateDocument` | `(customer: CounterpartActionTarget) => void` | `undefined` | Handles "Issue an invoice" with the customer's `id` and `name`; omit to hide the button. You check invoice scopes. |
|
|
353
353
|
| `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search, filter, empty and error copy. |
|
|
354
354
|
| `formLabels` | `Partial<CounterpartFormSheetLabels>` | English labels | Create/edit customer form copy. |
|
|
355
355
|
| `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy. |
|
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4580,8 +4580,10 @@ interface CounterpartsScreenLabels {
|
|
|
4580
4580
|
interface CounterpartDetailsSheetLabels {
|
|
4581
4581
|
hiddenDescription: string;
|
|
4582
4582
|
loadingTitle: string;
|
|
4583
|
-
|
|
4584
|
-
|
|
4583
|
+
notFoundCustomerTitle: string;
|
|
4584
|
+
notFoundVendorTitle: string;
|
|
4585
|
+
notFoundCustomerDescription: string;
|
|
4586
|
+
notFoundVendorDescription: string;
|
|
4585
4587
|
openActionsMenu: string;
|
|
4586
4588
|
closeAction: string;
|
|
4587
4589
|
deleteCustomerAction: string;
|
|
@@ -4611,8 +4613,6 @@ interface CounterpartDetailsSheetLabels {
|
|
|
4611
4613
|
paymentMethodTitle: string;
|
|
4612
4614
|
customerDetailsHeading: string;
|
|
4613
4615
|
vendorDetailsHeading: string;
|
|
4614
|
-
customerDetailsDescription: string;
|
|
4615
|
-
vendorDetailsDescription: string;
|
|
4616
4616
|
rowType: string;
|
|
4617
4617
|
rowName: string;
|
|
4618
4618
|
rowEmail: string;
|
|
@@ -4627,7 +4627,6 @@ interface CounterpartDetailsSheetLabels {
|
|
|
4627
4627
|
addressHeading: string;
|
|
4628
4628
|
/** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
|
|
4629
4629
|
customerAddressHeading: string;
|
|
4630
|
-
customerAddressDescription: string;
|
|
4631
4630
|
addAddressAction: string;
|
|
4632
4631
|
editAddressAction: string;
|
|
4633
4632
|
noAddress: string;
|
|
@@ -4642,6 +4641,50 @@ interface CounterpartDetailsSheetLabels {
|
|
|
4642
4641
|
routingNumberLabel: string;
|
|
4643
4642
|
noPaymentMethods: string;
|
|
4644
4643
|
editButton: string;
|
|
4644
|
+
billStatusDraft: string;
|
|
4645
|
+
billStatusReadyToSubmit: string;
|
|
4646
|
+
billStatusPendingApproval: string;
|
|
4647
|
+
billStatusReadyToPay: string;
|
|
4648
|
+
billStatusPaid: string;
|
|
4649
|
+
billStatusCanceled: string;
|
|
4650
|
+
billStatusRejected: string;
|
|
4651
|
+
receivableStatusDraft: string;
|
|
4652
|
+
receivableStatusIssuing: string;
|
|
4653
|
+
receivableStatusIssued: string;
|
|
4654
|
+
receivableStatusFailed: string;
|
|
4655
|
+
receivableStatusAccepted: string;
|
|
4656
|
+
receivableStatusExpired: string;
|
|
4657
|
+
receivableStatusDeclined: string;
|
|
4658
|
+
receivableStatusRecurring: string;
|
|
4659
|
+
receivableStatusPartiallyPaid: string;
|
|
4660
|
+
receivableStatusPaid: string;
|
|
4661
|
+
receivableStatusOverdue: string;
|
|
4662
|
+
receivableStatusUncollectible: string;
|
|
4663
|
+
receivableStatusCanceled: string;
|
|
4664
|
+
receivableStatusDeleted: string;
|
|
4665
|
+
receivableStatusUnknown: string;
|
|
4666
|
+
optionalSuffix: string;
|
|
4667
|
+
editingCustomerDetailsHeading: string;
|
|
4668
|
+
editingVendorDetailsHeading: string;
|
|
4669
|
+
firstNameLabel: string;
|
|
4670
|
+
lastNameLabel: string;
|
|
4671
|
+
businessNameLabel: string;
|
|
4672
|
+
remindersCheckboxLabel: string;
|
|
4673
|
+
remindersCheckboxDescription: string;
|
|
4674
|
+
taxIdSsnPlaceholder: string;
|
|
4675
|
+
taxIdEinPlaceholder: string;
|
|
4676
|
+
editingAddressHeading: string;
|
|
4677
|
+
addingAddressHeading: string;
|
|
4678
|
+
streetAddressLabel: string;
|
|
4679
|
+
addressLine2Label: string;
|
|
4680
|
+
cityLabel: string;
|
|
4681
|
+
stateLabel: string;
|
|
4682
|
+
statePlaceholder: string;
|
|
4683
|
+
postalCodeLabel: string;
|
|
4684
|
+
countryLabel: string;
|
|
4685
|
+
countryUnitedStates: string;
|
|
4686
|
+
cancelButton: string;
|
|
4687
|
+
saveButton: string;
|
|
4645
4688
|
}
|
|
4646
4689
|
|
|
4647
4690
|
/** Whether this widget is showing customers (receivables) or vendors (payables). */
|
|
@@ -4667,7 +4710,7 @@ interface CounterpartsWidgetOwnProps {
|
|
|
4667
4710
|
onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
|
|
4668
4711
|
/**
|
|
4669
4712
|
* Opens the host's create flow for this counterpart, behind the "Send a
|
|
4670
|
-
* payment" / "Issue an invoice" button, which
|
|
4713
|
+
* payment" / "Issue an invoice" button, which is hidden while unwired.
|
|
4671
4714
|
* The destination's own scope is the host's to check.
|
|
4672
4715
|
*/
|
|
4673
4716
|
onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
|
|
@@ -4735,7 +4778,7 @@ interface CustomersWidgetOwnProps {
|
|
|
4735
4778
|
onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
|
|
4736
4779
|
/**
|
|
4737
4780
|
* Opens the host's create-invoice flow for this customer, behind the
|
|
4738
|
-
* "Issue an invoice" button, which
|
|
4781
|
+
* "Issue an invoice" button, which is hidden while unwired.
|
|
4739
4782
|
*/
|
|
4740
4783
|
onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
|
|
4741
4784
|
screenLabels?: Partial<CounterpartsScreenLabels>;
|
|
@@ -853,8 +853,10 @@ interface CounterpartsScreenLabels {
|
|
|
853
853
|
interface CounterpartDetailsSheetLabels {
|
|
854
854
|
hiddenDescription: string;
|
|
855
855
|
loadingTitle: string;
|
|
856
|
-
|
|
857
|
-
|
|
856
|
+
notFoundCustomerTitle: string;
|
|
857
|
+
notFoundVendorTitle: string;
|
|
858
|
+
notFoundCustomerDescription: string;
|
|
859
|
+
notFoundVendorDescription: string;
|
|
858
860
|
openActionsMenu: string;
|
|
859
861
|
closeAction: string;
|
|
860
862
|
deleteCustomerAction: string;
|
|
@@ -884,8 +886,6 @@ interface CounterpartDetailsSheetLabels {
|
|
|
884
886
|
paymentMethodTitle: string;
|
|
885
887
|
customerDetailsHeading: string;
|
|
886
888
|
vendorDetailsHeading: string;
|
|
887
|
-
customerDetailsDescription: string;
|
|
888
|
-
vendorDetailsDescription: string;
|
|
889
889
|
rowType: string;
|
|
890
890
|
rowName: string;
|
|
891
891
|
rowEmail: string;
|
|
@@ -900,7 +900,6 @@ interface CounterpartDetailsSheetLabels {
|
|
|
900
900
|
addressHeading: string;
|
|
901
901
|
/** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
|
|
902
902
|
customerAddressHeading: string;
|
|
903
|
-
customerAddressDescription: string;
|
|
904
903
|
addAddressAction: string;
|
|
905
904
|
editAddressAction: string;
|
|
906
905
|
noAddress: string;
|
|
@@ -915,6 +914,50 @@ interface CounterpartDetailsSheetLabels {
|
|
|
915
914
|
routingNumberLabel: string;
|
|
916
915
|
noPaymentMethods: string;
|
|
917
916
|
editButton: string;
|
|
917
|
+
billStatusDraft: string;
|
|
918
|
+
billStatusReadyToSubmit: string;
|
|
919
|
+
billStatusPendingApproval: string;
|
|
920
|
+
billStatusReadyToPay: string;
|
|
921
|
+
billStatusPaid: string;
|
|
922
|
+
billStatusCanceled: string;
|
|
923
|
+
billStatusRejected: string;
|
|
924
|
+
receivableStatusDraft: string;
|
|
925
|
+
receivableStatusIssuing: string;
|
|
926
|
+
receivableStatusIssued: string;
|
|
927
|
+
receivableStatusFailed: string;
|
|
928
|
+
receivableStatusAccepted: string;
|
|
929
|
+
receivableStatusExpired: string;
|
|
930
|
+
receivableStatusDeclined: string;
|
|
931
|
+
receivableStatusRecurring: string;
|
|
932
|
+
receivableStatusPartiallyPaid: string;
|
|
933
|
+
receivableStatusPaid: string;
|
|
934
|
+
receivableStatusOverdue: string;
|
|
935
|
+
receivableStatusUncollectible: string;
|
|
936
|
+
receivableStatusCanceled: string;
|
|
937
|
+
receivableStatusDeleted: string;
|
|
938
|
+
receivableStatusUnknown: string;
|
|
939
|
+
optionalSuffix: string;
|
|
940
|
+
editingCustomerDetailsHeading: string;
|
|
941
|
+
editingVendorDetailsHeading: string;
|
|
942
|
+
firstNameLabel: string;
|
|
943
|
+
lastNameLabel: string;
|
|
944
|
+
businessNameLabel: string;
|
|
945
|
+
remindersCheckboxLabel: string;
|
|
946
|
+
remindersCheckboxDescription: string;
|
|
947
|
+
taxIdSsnPlaceholder: string;
|
|
948
|
+
taxIdEinPlaceholder: string;
|
|
949
|
+
editingAddressHeading: string;
|
|
950
|
+
addingAddressHeading: string;
|
|
951
|
+
streetAddressLabel: string;
|
|
952
|
+
addressLine2Label: string;
|
|
953
|
+
cityLabel: string;
|
|
954
|
+
stateLabel: string;
|
|
955
|
+
statePlaceholder: string;
|
|
956
|
+
postalCodeLabel: string;
|
|
957
|
+
countryLabel: string;
|
|
958
|
+
countryUnitedStates: string;
|
|
959
|
+
cancelButton: string;
|
|
960
|
+
saveButton: string;
|
|
918
961
|
}
|
|
919
962
|
|
|
920
963
|
/** Whether this widget is showing customers (receivables) or vendors (payables). */
|
|
@@ -940,7 +983,7 @@ interface CounterpartsWidgetOwnProps {
|
|
|
940
983
|
onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
|
|
941
984
|
/**
|
|
942
985
|
* Opens the host's create flow for this counterpart, behind the "Send a
|
|
943
|
-
* payment" / "Issue an invoice" button, which
|
|
986
|
+
* payment" / "Issue an invoice" button, which is hidden while unwired.
|
|
944
987
|
* The destination's own scope is the host's to check.
|
|
945
988
|
*/
|
|
946
989
|
onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
|
|
@@ -853,8 +853,10 @@ interface CounterpartsScreenLabels {
|
|
|
853
853
|
interface CounterpartDetailsSheetLabels {
|
|
854
854
|
hiddenDescription: string;
|
|
855
855
|
loadingTitle: string;
|
|
856
|
-
|
|
857
|
-
|
|
856
|
+
notFoundCustomerTitle: string;
|
|
857
|
+
notFoundVendorTitle: string;
|
|
858
|
+
notFoundCustomerDescription: string;
|
|
859
|
+
notFoundVendorDescription: string;
|
|
858
860
|
openActionsMenu: string;
|
|
859
861
|
closeAction: string;
|
|
860
862
|
deleteCustomerAction: string;
|
|
@@ -884,8 +886,6 @@ interface CounterpartDetailsSheetLabels {
|
|
|
884
886
|
paymentMethodTitle: string;
|
|
885
887
|
customerDetailsHeading: string;
|
|
886
888
|
vendorDetailsHeading: string;
|
|
887
|
-
customerDetailsDescription: string;
|
|
888
|
-
vendorDetailsDescription: string;
|
|
889
889
|
rowType: string;
|
|
890
890
|
rowName: string;
|
|
891
891
|
rowEmail: string;
|
|
@@ -900,7 +900,6 @@ interface CounterpartDetailsSheetLabels {
|
|
|
900
900
|
addressHeading: string;
|
|
901
901
|
/** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
|
|
902
902
|
customerAddressHeading: string;
|
|
903
|
-
customerAddressDescription: string;
|
|
904
903
|
addAddressAction: string;
|
|
905
904
|
editAddressAction: string;
|
|
906
905
|
noAddress: string;
|
|
@@ -915,6 +914,50 @@ interface CounterpartDetailsSheetLabels {
|
|
|
915
914
|
routingNumberLabel: string;
|
|
916
915
|
noPaymentMethods: string;
|
|
917
916
|
editButton: string;
|
|
917
|
+
billStatusDraft: string;
|
|
918
|
+
billStatusReadyToSubmit: string;
|
|
919
|
+
billStatusPendingApproval: string;
|
|
920
|
+
billStatusReadyToPay: string;
|
|
921
|
+
billStatusPaid: string;
|
|
922
|
+
billStatusCanceled: string;
|
|
923
|
+
billStatusRejected: string;
|
|
924
|
+
receivableStatusDraft: string;
|
|
925
|
+
receivableStatusIssuing: string;
|
|
926
|
+
receivableStatusIssued: string;
|
|
927
|
+
receivableStatusFailed: string;
|
|
928
|
+
receivableStatusAccepted: string;
|
|
929
|
+
receivableStatusExpired: string;
|
|
930
|
+
receivableStatusDeclined: string;
|
|
931
|
+
receivableStatusRecurring: string;
|
|
932
|
+
receivableStatusPartiallyPaid: string;
|
|
933
|
+
receivableStatusPaid: string;
|
|
934
|
+
receivableStatusOverdue: string;
|
|
935
|
+
receivableStatusUncollectible: string;
|
|
936
|
+
receivableStatusCanceled: string;
|
|
937
|
+
receivableStatusDeleted: string;
|
|
938
|
+
receivableStatusUnknown: string;
|
|
939
|
+
optionalSuffix: string;
|
|
940
|
+
editingCustomerDetailsHeading: string;
|
|
941
|
+
editingVendorDetailsHeading: string;
|
|
942
|
+
firstNameLabel: string;
|
|
943
|
+
lastNameLabel: string;
|
|
944
|
+
businessNameLabel: string;
|
|
945
|
+
remindersCheckboxLabel: string;
|
|
946
|
+
remindersCheckboxDescription: string;
|
|
947
|
+
taxIdSsnPlaceholder: string;
|
|
948
|
+
taxIdEinPlaceholder: string;
|
|
949
|
+
editingAddressHeading: string;
|
|
950
|
+
addingAddressHeading: string;
|
|
951
|
+
streetAddressLabel: string;
|
|
952
|
+
addressLine2Label: string;
|
|
953
|
+
cityLabel: string;
|
|
954
|
+
stateLabel: string;
|
|
955
|
+
statePlaceholder: string;
|
|
956
|
+
postalCodeLabel: string;
|
|
957
|
+
countryLabel: string;
|
|
958
|
+
countryUnitedStates: string;
|
|
959
|
+
cancelButton: string;
|
|
960
|
+
saveButton: string;
|
|
918
961
|
}
|
|
919
962
|
|
|
920
963
|
/** Whether this widget is showing customers (receivables) or vendors (payables). */
|
|
@@ -940,7 +983,7 @@ interface CounterpartsWidgetOwnProps {
|
|
|
940
983
|
onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
|
|
941
984
|
/**
|
|
942
985
|
* Opens the host's create flow for this counterpart, behind the "Send a
|
|
943
|
-
* payment" / "Issue an invoice" button, which
|
|
986
|
+
* payment" / "Issue an invoice" button, which is hidden while unwired.
|
|
944
987
|
* The destination's own scope is the host's to check.
|
|
945
988
|
*/
|
|
946
989
|
onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
|
|
@@ -834,8 +834,10 @@ interface CounterpartsScreenLabels {
|
|
|
834
834
|
interface CounterpartDetailsSheetLabels {
|
|
835
835
|
hiddenDescription: string;
|
|
836
836
|
loadingTitle: string;
|
|
837
|
-
|
|
838
|
-
|
|
837
|
+
notFoundCustomerTitle: string;
|
|
838
|
+
notFoundVendorTitle: string;
|
|
839
|
+
notFoundCustomerDescription: string;
|
|
840
|
+
notFoundVendorDescription: string;
|
|
839
841
|
openActionsMenu: string;
|
|
840
842
|
closeAction: string;
|
|
841
843
|
deleteCustomerAction: string;
|
|
@@ -865,8 +867,6 @@ interface CounterpartDetailsSheetLabels {
|
|
|
865
867
|
paymentMethodTitle: string;
|
|
866
868
|
customerDetailsHeading: string;
|
|
867
869
|
vendorDetailsHeading: string;
|
|
868
|
-
customerDetailsDescription: string;
|
|
869
|
-
vendorDetailsDescription: string;
|
|
870
870
|
rowType: string;
|
|
871
871
|
rowName: string;
|
|
872
872
|
rowEmail: string;
|
|
@@ -881,7 +881,6 @@ interface CounterpartDetailsSheetLabels {
|
|
|
881
881
|
addressHeading: string;
|
|
882
882
|
/** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
|
|
883
883
|
customerAddressHeading: string;
|
|
884
|
-
customerAddressDescription: string;
|
|
885
884
|
addAddressAction: string;
|
|
886
885
|
editAddressAction: string;
|
|
887
886
|
noAddress: string;
|
|
@@ -896,6 +895,50 @@ interface CounterpartDetailsSheetLabels {
|
|
|
896
895
|
routingNumberLabel: string;
|
|
897
896
|
noPaymentMethods: string;
|
|
898
897
|
editButton: string;
|
|
898
|
+
billStatusDraft: string;
|
|
899
|
+
billStatusReadyToSubmit: string;
|
|
900
|
+
billStatusPendingApproval: string;
|
|
901
|
+
billStatusReadyToPay: string;
|
|
902
|
+
billStatusPaid: string;
|
|
903
|
+
billStatusCanceled: string;
|
|
904
|
+
billStatusRejected: string;
|
|
905
|
+
receivableStatusDraft: string;
|
|
906
|
+
receivableStatusIssuing: string;
|
|
907
|
+
receivableStatusIssued: string;
|
|
908
|
+
receivableStatusFailed: string;
|
|
909
|
+
receivableStatusAccepted: string;
|
|
910
|
+
receivableStatusExpired: string;
|
|
911
|
+
receivableStatusDeclined: string;
|
|
912
|
+
receivableStatusRecurring: string;
|
|
913
|
+
receivableStatusPartiallyPaid: string;
|
|
914
|
+
receivableStatusPaid: string;
|
|
915
|
+
receivableStatusOverdue: string;
|
|
916
|
+
receivableStatusUncollectible: string;
|
|
917
|
+
receivableStatusCanceled: string;
|
|
918
|
+
receivableStatusDeleted: string;
|
|
919
|
+
receivableStatusUnknown: string;
|
|
920
|
+
optionalSuffix: string;
|
|
921
|
+
editingCustomerDetailsHeading: string;
|
|
922
|
+
editingVendorDetailsHeading: string;
|
|
923
|
+
firstNameLabel: string;
|
|
924
|
+
lastNameLabel: string;
|
|
925
|
+
businessNameLabel: string;
|
|
926
|
+
remindersCheckboxLabel: string;
|
|
927
|
+
remindersCheckboxDescription: string;
|
|
928
|
+
taxIdSsnPlaceholder: string;
|
|
929
|
+
taxIdEinPlaceholder: string;
|
|
930
|
+
editingAddressHeading: string;
|
|
931
|
+
addingAddressHeading: string;
|
|
932
|
+
streetAddressLabel: string;
|
|
933
|
+
addressLine2Label: string;
|
|
934
|
+
cityLabel: string;
|
|
935
|
+
stateLabel: string;
|
|
936
|
+
statePlaceholder: string;
|
|
937
|
+
postalCodeLabel: string;
|
|
938
|
+
countryLabel: string;
|
|
939
|
+
countryUnitedStates: string;
|
|
940
|
+
cancelButton: string;
|
|
941
|
+
saveButton: string;
|
|
899
942
|
}
|
|
900
943
|
|
|
901
944
|
/**
|
|
@@ -922,7 +965,7 @@ interface CustomersWidgetOwnProps {
|
|
|
922
965
|
onViewAllDocuments?: (counterpart: CounterpartActionTarget) => void;
|
|
923
966
|
/**
|
|
924
967
|
* Opens the host's create-invoice flow for this customer, behind the
|
|
925
|
-
* "Issue an invoice" button, which
|
|
968
|
+
* "Issue an invoice" button, which is hidden while unwired.
|
|
926
969
|
*/
|
|
927
970
|
onCreateDocument?: (counterpart: CounterpartActionTarget) => void;
|
|
928
971
|
screenLabels?: Partial<CounterpartsScreenLabels>;
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js
CHANGED
|
@@ -21,7 +21,8 @@ var o = [
|
|
|
21
21
|
"issued",
|
|
22
22
|
"overdue",
|
|
23
23
|
"partially_paid",
|
|
24
|
-
"paid"
|
|
24
|
+
"paid",
|
|
25
|
+
"uncollectible"
|
|
25
26
|
];
|
|
26
27
|
function c({ counterpartId: t, enabled: s }) {
|
|
27
28
|
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = r(), p = !!(l && u && t) && (s === !0 || s === void 0), m = e({
|
|
@@ -7,37 +7,42 @@ import "../../../../../shared/feature/dist/index.js";
|
|
|
7
7
|
import { getCounterpartPermissions as t } from "./permissions.js";
|
|
8
8
|
import { useCounterpartDetailsSheetView as n } from "./useCounterpartDetailsSheetView.js";
|
|
9
9
|
import { COUNTERPART_DETAILS_SHEET_LABELS_EN as r } from "../../../../ui/dist/index2.js";
|
|
10
|
-
import { CounterpartDetailsSheet as i } from "../../../../ui/dist/
|
|
10
|
+
import { CounterpartDetailsSheet as i } from "../../../../ui/dist/index7.js";
|
|
11
11
|
import "../../../../ui/dist/index.js";
|
|
12
12
|
import { useMemo as a } from "react";
|
|
13
13
|
import { jsx as o } from "react/jsx-runtime";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js
|
|
15
|
-
function s({ counterpartId: s, counterpartType: c, onClose: l,
|
|
16
|
-
let { initResponse:
|
|
15
|
+
function s({ counterpartId: s, counterpartType: c, onClose: l, onViewAllDocuments: u, onCreateDocument: d, labels: f }) {
|
|
16
|
+
let { initResponse: p } = e(), m = t(p?.scopes).canRead, h = a(() => ({
|
|
17
17
|
...r,
|
|
18
|
-
...
|
|
19
|
-
}), [
|
|
18
|
+
...f
|
|
19
|
+
}), [f]), { details: g, detailsSheetView: _ } = n({
|
|
20
20
|
selectedId: s,
|
|
21
21
|
isCustomer: c === "customer",
|
|
22
|
-
enabled:
|
|
23
|
-
detailsText:
|
|
24
|
-
})
|
|
22
|
+
enabled: m,
|
|
23
|
+
detailsText: h
|
|
24
|
+
}), v = s && _ ? {
|
|
25
|
+
id: s,
|
|
26
|
+
name: _.name
|
|
27
|
+
} : void 0;
|
|
25
28
|
return /* @__PURE__ */ o(i, {
|
|
26
|
-
open:
|
|
29
|
+
open: m && s !== void 0,
|
|
27
30
|
onOpenChange: (e) => {
|
|
28
31
|
e || l();
|
|
29
32
|
},
|
|
30
33
|
privacyResetKey: s,
|
|
31
34
|
mode: c,
|
|
32
|
-
counterpart:
|
|
33
|
-
isLoading:
|
|
34
|
-
isError:
|
|
35
|
+
counterpart: _,
|
|
36
|
+
isLoading: g.isLoading,
|
|
37
|
+
isError: g.isError,
|
|
35
38
|
canEdit: !1,
|
|
36
39
|
canDelete: !1,
|
|
37
40
|
onEdit: () => void 0,
|
|
38
41
|
onDelete: () => void 0,
|
|
39
42
|
onClose: l,
|
|
40
|
-
|
|
43
|
+
onViewAllDocuments: u && v ? () => u(v) : void 0,
|
|
44
|
+
onCreateDocument: d && v ? () => d(v) : void 0,
|
|
45
|
+
labels: f
|
|
41
46
|
});
|
|
42
47
|
}
|
|
43
48
|
//#endregion
|