@tesouro/embedded-components-react 0.11.65 → 0.11.68
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 +28 -28
- package/dist/index.css +6 -27
- package/dist/index.d.ts +29 -41
- package/dist/lib/CardDetailsWidget.d.ts +1 -1
- package/dist/lib/CounterpartsWidget.d.ts +26 -39
- package/dist/lib/CounterpartsWidgetPublic.d.ts +26 -39
- package/dist/lib/CreditCardsWidget.d.ts +2 -2
- package/dist/lib/CustomersWidget.d.ts +26 -39
- package/dist/lib/DebitCardsWidget.d.ts +2 -2
- package/dist/lib/ReceivablesWidget.d.ts +14 -4
- package/dist/lib/WidgetSuite.d.ts +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/cardDetailsView.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +37 -39
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +72 -73
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsPanel.js +93 -110
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +52 -52
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +72 -107
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsSheetView.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +112 -145
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +13 -16
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +3 -122
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +5 -5
- 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 +44 -65
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +157 -134
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index5.js +362 -55
- 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/feature/dist/lib/helpers.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +2 -66
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +48 -46
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +138 -149
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +21 -27
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index3.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +30 -63
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +0 -211
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +0 -509
package/README.md
CHANGED
|
@@ -507,7 +507,7 @@ Lists an organization's **credit** cards one page at a time, with a "Show my car
|
|
|
507
507
|
| `defaultSelectedCardId` | `string \| null` | `undefined` | Initial selection when uncontrolled. Ignored when `selectedCardId` is supplied. |
|
|
508
508
|
| `onSelectedCardIdChange` | `(cardId: string \| null) => void` | `undefined` | Fires whenever the open card changes, including on close (`null`). Supplying it does **not** change what renders. |
|
|
509
509
|
| `cardDetailsLabels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Label overrides forwarded into the details panel. |
|
|
510
|
-
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides the details panel's status
|
|
510
|
+
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides the details panel's status and form-factor copy. |
|
|
511
511
|
| `cardDetailsActivateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the copy of the Activate card form the details panel opens. |
|
|
512
512
|
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the details panel's card face. Omit it and the face renders no logo. |
|
|
513
513
|
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. |
|
|
@@ -532,7 +532,7 @@ Lists an organization's **debit** cards one page at a time, with a "Show my card
|
|
|
532
532
|
| `defaultSelectedCardId` | `string \| null` | `undefined` | Initial selection when uncontrolled. Ignored when `selectedCardId` is supplied. |
|
|
533
533
|
| `onSelectedCardIdChange` | `(cardId: string \| null) => void` | `undefined` | Fires whenever the open card changes, including on close (`null`). Supplying it does **not** change what renders. |
|
|
534
534
|
| `cardDetailsLabels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Label overrides forwarded into the details panel. |
|
|
535
|
-
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides the details panel's status
|
|
535
|
+
| `cardDetailsFeatureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides the details panel's status and form-factor copy. |
|
|
536
536
|
| `cardDetailsActivateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the copy of the Activate card form the details panel opens. |
|
|
537
537
|
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the details panel's card face, ignored when `cardArtSrc` is set. Omit both and the face renders no logo. |
|
|
538
538
|
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. |
|
|
@@ -546,21 +546,21 @@ Lists an organization's **debit** cards one page at a time, with a "Show my card
|
|
|
546
546
|
|
|
547
547
|
### CardDetailsWidget
|
|
548
548
|
|
|
549
|
-
Details for one credit or debit card: status, form factor,
|
|
549
|
+
Details for one credit or debit card: status, form factor, masked number, and cardholder on the card face, nickname in the heading, and one copy action for the full billing address. It renders panel content rather than its own drawer, so it fits on a page of your own or inside chrome you already have.
|
|
550
550
|
|
|
551
551
|
#### Props
|
|
552
552
|
|
|
553
|
-
| Prop | Type | Default | Description
|
|
554
|
-
| ---------------- | --------------------------------------- | -------------- |
|
|
555
|
-
| `cardId` | `string` | **Required** | Id of the card to show.
|
|
556
|
-
| `cardProgram` | `'credit' \| 'debit'` | **Required** | Which issuing program `cardId` belongs to.
|
|
557
|
-
| `onClose` | `() => void` | `undefined` | Called by the panel's close control and the activation **Done** button. Omit it and the panel renders no close control, and Done returns to the details.
|
|
558
|
-
| `labels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Overrides the panel's copy. See the exported `CardDetailsWidgetLabels` type for every key.
|
|
559
|
-
| `activateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the Activate card form's copy, including its result screen. See the exported `ActivateCardPanelLabels` type for every key.
|
|
560
|
-
| `featureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides status
|
|
561
|
-
| `cardArtSrc` | `string` | `undefined` | Full plastic art for the card face (the same asset you pass `CreateCardWidget`). Takes priority over `bankLogoSrc`.
|
|
562
|
-
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the card face; ignored when `cardArtSrc` is set. The widget ships no bank artwork, so omit it and no logo shows.
|
|
563
|
-
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. Falls back to `labels.cardFace.bankLogoAlt`.
|
|
553
|
+
| Prop | Type | Default | Description |
|
|
554
|
+
| ---------------- | --------------------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
555
|
+
| `cardId` | `string` | **Required** | Id of the card to show. |
|
|
556
|
+
| `cardProgram` | `'credit' \| 'debit'` | **Required** | Which issuing program `cardId` belongs to. |
|
|
557
|
+
| `onClose` | `() => void` | `undefined` | Called by the panel's close control and the activation **Done** button. Omit it and the panel renders no close control, and Done returns to the details. |
|
|
558
|
+
| `labels` | `PartialDeep<CardDetailsWidgetLabels>` | English labels | Overrides the panel's copy. See the exported `CardDetailsWidgetLabels` type for every key. |
|
|
559
|
+
| `activateLabels` | `PartialDeep<ActivateCardPanelLabels>` | English labels | Overrides the Activate card form's copy, including its result screen. See the exported `ActivateCardPanelLabels` type for every key. |
|
|
560
|
+
| `featureLabels` | `PartialDeep<CardDetailsFeatureLabels>` | English labels | Overrides status and form-factor wording, toasts, and the refused-reveal sentence. Copy buttons confirm themselves; `copySuccessToast` is no longer shown. See `CardDetailsFeatureLabels`. |
|
|
561
|
+
| `cardArtSrc` | `string` | `undefined` | Full plastic art for the card face (the same asset you pass `CreateCardWidget`). Takes priority over `bankLogoSrc`. |
|
|
562
|
+
| `bankLogoSrc` | `string` | `undefined` | Bank logo for the card face; ignored when `cardArtSrc` is set. The widget ships no bank artwork, so omit it and no logo shows. |
|
|
563
|
+
| `bankLogoAlt` | `string` | `undefined` | Alt text for `bankLogoSrc`. Falls back to `labels.cardFace.bankLogoAlt`. |
|
|
564
564
|
|
|
565
565
|
### CounterpartsWidget
|
|
566
566
|
|
|
@@ -568,19 +568,19 @@ Manages an organization's customers or vendors: a searchable list with money col
|
|
|
568
568
|
|
|
569
569
|
#### Props
|
|
570
570
|
|
|
571
|
-
| Prop | Type | Default | Description
|
|
572
|
-
| -------------------- | ------------------------------------------------ | ------------------- |
|
|
573
|
-
| `counterpartType` | `'customer' \| 'vendor'` | **Required** | Selects the customer or vendor surface.
|
|
574
|
-
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table. The list opens at the first one.
|
|
575
|
-
| `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.
|
|
576
|
-
| `onCreateDocument` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Runs the details sheet's "
|
|
577
|
-
| `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search/filter, empty, error and access-restricted copy.
|
|
578
|
-
| `formLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Create/edit form copy.
|
|
579
|
-
| `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy.
|
|
580
|
-
| `bankAccountLabels` | `PartialDeep<BankAccountFormSheetLabels>` | English labels | Vendor payment-method form copy.
|
|
581
|
-
| `addressLabels` | `PartialDeep<AddressFormSheetLabels>` | English labels |
|
|
582
|
-
| `deleteLabels` | `Partial<ConfirmDeleteDialogLabels>` | English labels | Delete-dialog copy.
|
|
583
|
-
| `messageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Validation, API failure and delete-prompt messages.
|
|
571
|
+
| Prop | Type | Default | Description |
|
|
572
|
+
| -------------------- | ------------------------------------------------ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
573
|
+
| `counterpartType` | `'customer' \| 'vendor'` | **Required** | Selects the customer or vendor surface. |
|
|
574
|
+
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Page-size choices shown by the table. The list opens at the first one. |
|
|
575
|
+
| `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. |
|
|
576
|
+
| `onCreateDocument` | `(counterpart: CounterpartActionTarget) => void` | `undefined` | Runs the details sheet's "Add a bill" (vendor) or "Issue an invoice" (customer) button. Hidden when omitted; you check the scopes it needs. |
|
|
577
|
+
| `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search/filter, empty, error and access-restricted copy. |
|
|
578
|
+
| `formLabels` | `PartialDeep<CounterpartFormSheetLabels>` | English labels | Create/edit form copy. |
|
|
579
|
+
| `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy. |
|
|
580
|
+
| `bankAccountLabels` | `PartialDeep<BankAccountFormSheetLabels>` | English labels | Vendor payment-method form copy. |
|
|
581
|
+
| `addressLabels` | `PartialDeep<AddressFormSheetLabels>` | English labels | Deprecated and unused: the address is edited in the record form, so relabel it through `formLabels.address`. |
|
|
582
|
+
| `deleteLabels` | `Partial<ConfirmDeleteDialogLabels>` | English labels | Delete-dialog copy. |
|
|
583
|
+
| `messageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Validation, API failure and delete-prompt messages. |
|
|
584
584
|
|
|
585
585
|
### CustomersWidget
|
|
586
586
|
|
|
@@ -596,7 +596,7 @@ Manages an organization's customers: a searchable list with money columns, a det
|
|
|
596
596
|
| `screenLabels` | `Partial<CounterpartsScreenLabels>` | English labels | Table, search, filter, empty and error copy. |
|
|
597
597
|
| `formLabels` | `Partial<CounterpartFormSheetLabels>` | English labels | Create/edit customer form copy. |
|
|
598
598
|
| `detailsLabels` | `Partial<CounterpartDetailsSheetLabels>` | English labels | Details sheet copy. |
|
|
599
|
-
| `addressLabels` | `PartialDeep<AddressFormSheetLabels>` | English labels |
|
|
599
|
+
| `addressLabels` | `PartialDeep<AddressFormSheetLabels>` | English labels | Deprecated and unused: the address is edited with the rest of the customer, so relabel it through `formLabels.address`. |
|
|
600
600
|
| `deleteLabels` | `Partial<ConfirmDeleteDialogLabels>` | English labels | Delete-dialog copy. |
|
|
601
601
|
| `messageLabels` | `Partial<CounterpartMessageLabels>` | English labels | Validation, API failure and delete-prompt copy. |
|
|
602
602
|
|
package/dist/index.css
CHANGED
|
@@ -1027,9 +1027,6 @@
|
|
|
1027
1027
|
.ttw\:w-56 {
|
|
1028
1028
|
width: calc(var(--ttw-spacing) * 56);
|
|
1029
1029
|
}
|
|
1030
|
-
.ttw\:w-60 {
|
|
1031
|
-
width: calc(var(--ttw-spacing) * 60);
|
|
1032
|
-
}
|
|
1033
1030
|
.ttw\:w-64 {
|
|
1034
1031
|
width: calc(var(--ttw-spacing) * 64);
|
|
1035
1032
|
}
|
|
@@ -1111,9 +1108,6 @@
|
|
|
1111
1108
|
.ttw\:w-\[480px\] {
|
|
1112
1109
|
width: 480px;
|
|
1113
1110
|
}
|
|
1114
|
-
.ttw\:w-\[600px\] {
|
|
1115
|
-
width: 600px;
|
|
1116
|
-
}
|
|
1117
1111
|
.ttw\:w-\[616px\] {
|
|
1118
1112
|
width: 616px;
|
|
1119
1113
|
}
|
|
@@ -1402,9 +1396,6 @@
|
|
|
1402
1396
|
.ttw\:flex-1\/2 {
|
|
1403
1397
|
flex: calc(1/2 * 100%);
|
|
1404
1398
|
}
|
|
1405
|
-
.ttw\:flex-auto {
|
|
1406
|
-
flex: auto;
|
|
1407
|
-
}
|
|
1408
1399
|
.ttw\:flex-shrink-0 {
|
|
1409
1400
|
flex-shrink: 0;
|
|
1410
1401
|
}
|
|
@@ -1598,9 +1589,6 @@
|
|
|
1598
1589
|
.ttw\:grid-cols-\[50\%_1fr\] {
|
|
1599
1590
|
grid-template-columns: 50% 1fr;
|
|
1600
1591
|
}
|
|
1601
|
-
.ttw\:grid-cols-\[180px_1fr\] {
|
|
1602
|
-
grid-template-columns: 180px 1fr;
|
|
1603
|
-
}
|
|
1604
1592
|
.ttw\:grid-cols-\[max-content_1fr\] {
|
|
1605
1593
|
grid-template-columns: max-content 1fr;
|
|
1606
1594
|
}
|
|
@@ -1773,6 +1761,9 @@
|
|
|
1773
1761
|
.ttw\:gap-x-6 {
|
|
1774
1762
|
column-gap: calc(var(--ttw-spacing) * 6);
|
|
1775
1763
|
}
|
|
1764
|
+
.ttw\:gap-x-8 {
|
|
1765
|
+
column-gap: calc(var(--ttw-spacing) * 8);
|
|
1766
|
+
}
|
|
1776
1767
|
.ttw\:gap-x-12 {
|
|
1777
1768
|
column-gap: calc(var(--ttw-spacing) * 12);
|
|
1778
1769
|
}
|
|
@@ -1850,9 +1841,6 @@
|
|
|
1850
1841
|
.ttw\:rounded-\[4px\] {
|
|
1851
1842
|
border-radius: 4px;
|
|
1852
1843
|
}
|
|
1853
|
-
.ttw\:rounded-\[10px\] {
|
|
1854
|
-
border-radius: 10px;
|
|
1855
|
-
}
|
|
1856
1844
|
.ttw\:rounded-\[14px\] {
|
|
1857
1845
|
border-radius: 14px;
|
|
1858
1846
|
}
|
|
@@ -3876,6 +3864,9 @@
|
|
|
3876
3864
|
.ttw\:py-4 {
|
|
3877
3865
|
padding-block: calc(var(--ttw-spacing) * 4);
|
|
3878
3866
|
}
|
|
3867
|
+
.ttw\:py-5 {
|
|
3868
|
+
padding-block: calc(var(--ttw-spacing) * 5);
|
|
3869
|
+
}
|
|
3879
3870
|
.ttw\:py-6 {
|
|
3880
3871
|
padding-block: calc(var(--ttw-spacing) * 6);
|
|
3881
3872
|
}
|
|
@@ -3981,9 +3972,6 @@
|
|
|
3981
3972
|
.ttw\:pb-4 {
|
|
3982
3973
|
padding-bottom: calc(var(--ttw-spacing) * 4);
|
|
3983
3974
|
}
|
|
3984
|
-
.ttw\:pb-5 {
|
|
3985
|
-
padding-bottom: calc(var(--ttw-spacing) * 5);
|
|
3986
|
-
}
|
|
3987
3975
|
.ttw\:pb-6 {
|
|
3988
3976
|
padding-bottom: calc(var(--ttw-spacing) * 6);
|
|
3989
3977
|
}
|
|
@@ -4123,9 +4111,6 @@
|
|
|
4123
4111
|
.ttw\:text-\[2\.25rem\] {
|
|
4124
4112
|
font-size: 2.25rem;
|
|
4125
4113
|
}
|
|
4126
|
-
.ttw\:text-\[2rem\] {
|
|
4127
|
-
font-size: 2rem;
|
|
4128
|
-
}
|
|
4129
4114
|
.ttw\:text-\[9px\] {
|
|
4130
4115
|
font-size: 9px;
|
|
4131
4116
|
}
|
|
@@ -6345,18 +6330,12 @@
|
|
|
6345
6330
|
.ttw\:sm\:max-w-150 {
|
|
6346
6331
|
max-width: calc(var(--ttw-spacing) * 150);
|
|
6347
6332
|
}
|
|
6348
|
-
.ttw\:sm\:max-w-160 {
|
|
6349
|
-
max-width: calc(var(--ttw-spacing) * 160);
|
|
6350
|
-
}
|
|
6351
6333
|
.ttw\:sm\:max-w-178 {
|
|
6352
6334
|
max-width: calc(var(--ttw-spacing) * 178);
|
|
6353
6335
|
}
|
|
6354
6336
|
.ttw\:sm\:max-w-\[423px\] {
|
|
6355
6337
|
max-width: 423px;
|
|
6356
6338
|
}
|
|
6357
|
-
.ttw\:sm\:max-w-\[600px\] {
|
|
6358
|
-
max-width: 600px;
|
|
6359
|
-
}
|
|
6360
6339
|
.ttw\:sm\:max-w-screen {
|
|
6361
6340
|
max-width: 100vw;
|
|
6362
6341
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2917,7 +2917,7 @@ interface CardDetailsFeatureLabels {
|
|
|
2917
2917
|
* refused for this session, which asking an admin for a role will not fix.
|
|
2918
2918
|
*/
|
|
2919
2919
|
revealNotPermittedDescription: string;
|
|
2920
|
-
/**
|
|
2920
|
+
/** @deprecated Unused: the card face no longer shows program wording. */
|
|
2921
2921
|
programLabels: Record<CardProgram, string>;
|
|
2922
2922
|
/** Status badge wording, keyed on the generated card status. */
|
|
2923
2923
|
statusLabels: Record<CardStatus, string>;
|
|
@@ -3321,7 +3321,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
3321
3321
|
cardDetailsLabels?: CardDetailsWidgetProps['labels'];
|
|
3322
3322
|
/**
|
|
3323
3323
|
* Overrides for the copy the panel's *feature* layer resolves — its status
|
|
3324
|
-
* vocabulary, form-factor wording
|
|
3324
|
+
* vocabulary, form-factor wording and toasts.
|
|
3325
3325
|
*
|
|
3326
3326
|
* Distinct from `featureLabels`, which covers the list's own vocabulary.
|
|
3327
3327
|
* Without this prop the panel is unreachable for that copy, so a host that
|
|
@@ -4975,23 +4975,33 @@ interface CounterpartMessageLabels {
|
|
|
4975
4975
|
accountNumberInvalid: string;
|
|
4976
4976
|
/** Shown for a non-field-specific submit failure. */
|
|
4977
4977
|
genericError: string;
|
|
4978
|
-
/**
|
|
4978
|
+
/** @deprecated Unused; the list labels its own warning. */
|
|
4979
4979
|
amountsUnavailable: string;
|
|
4980
4980
|
/** Delete confirmation title; `{name}` is replaced with the entity name. */
|
|
4981
4981
|
deleteTitle: string;
|
|
4982
|
-
/** Delete confirmation title for a bank account; `{account}` is display-ready. */
|
|
4983
4982
|
deleteBankAccountTitle: string;
|
|
4983
|
+
deleteBankAccountConfirm: string;
|
|
4984
4984
|
deleteCounterpartMessage: string;
|
|
4985
4985
|
deleteBankAccountMessage: string;
|
|
4986
|
-
/**
|
|
4986
|
+
/** @deprecated No longer shown. Use `customerAdded` / `vendorAdded`. */
|
|
4987
4987
|
createSucceeded: string;
|
|
4988
|
-
/**
|
|
4988
|
+
/** @deprecated No longer shown. Use `customerUpdated` / `vendorUpdated`. */
|
|
4989
4989
|
updateSucceeded: string;
|
|
4990
|
+
customerAdded: string;
|
|
4991
|
+
vendorAdded: string;
|
|
4992
|
+
customerUpdated: string;
|
|
4993
|
+
vendorUpdated: string;
|
|
4990
4994
|
addressAdded: string;
|
|
4991
4995
|
addressUpdated: string;
|
|
4992
4996
|
bankAccountAdded: string;
|
|
4993
4997
|
bankAccountUpdated: string;
|
|
4998
|
+
/**
|
|
4999
|
+
* @deprecated Used only when the delete controller gets no `counterpartType`;
|
|
5000
|
+
* users never see the word "counterpart". Use `customerDeleted` / `vendorDeleted`.
|
|
5001
|
+
*/
|
|
4994
5002
|
counterpartDeleted: string;
|
|
5003
|
+
customerDeleted: string;
|
|
5004
|
+
vendorDeleted: string;
|
|
4995
5005
|
bankAccountDeleted: string;
|
|
4996
5006
|
/** Error toast when a counterpart delete fails without an API message. */
|
|
4997
5007
|
deleteCounterpartFailed: string;
|
|
@@ -5097,8 +5107,8 @@ interface CounterpartsScreenLabels {
|
|
|
5097
5107
|
/** Vendor-mode create action. */
|
|
5098
5108
|
vendorsCreateButton: string;
|
|
5099
5109
|
columnName: string;
|
|
5100
|
-
sortByName: string;
|
|
5101
5110
|
columnBilledAmount: string;
|
|
5111
|
+
columnInvoicedAmount: string;
|
|
5102
5112
|
columnReceivedAmount: string;
|
|
5103
5113
|
columnAmountDue: string;
|
|
5104
5114
|
columnTotalPaidToDate: string;
|
|
@@ -5113,15 +5123,14 @@ interface CounterpartsScreenLabels {
|
|
|
5113
5123
|
unnamedCounterpart: string;
|
|
5114
5124
|
searchPlaceholder: string;
|
|
5115
5125
|
searchLabel: string;
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5126
|
+
entityFilterLabel: string;
|
|
5127
|
+
entityFilterAll: string;
|
|
5128
|
+
entityFilterOrganization: string;
|
|
5129
|
+
entityFilterIndividual: string;
|
|
5119
5130
|
filterChipRemove: string;
|
|
5120
5131
|
typeChip: (value: string) => string;
|
|
5121
5132
|
searchChip: (value: string) => string;
|
|
5122
5133
|
clearAllFilters: string;
|
|
5123
|
-
entityFilterOrganization: string;
|
|
5124
|
-
entityFilterIndividual: string;
|
|
5125
5134
|
customersEmptyTitle: string;
|
|
5126
5135
|
customersEmptyDescription: string;
|
|
5127
5136
|
customersEmptyAction: string;
|
|
@@ -5139,14 +5148,16 @@ interface CounterpartsScreenLabels {
|
|
|
5139
5148
|
errorRetry: string;
|
|
5140
5149
|
accessRestrictedTitle: string;
|
|
5141
5150
|
accessRestrictedDescription: string;
|
|
5151
|
+
amountsUnavailable: string;
|
|
5152
|
+
amountsRetry: string;
|
|
5142
5153
|
}
|
|
5143
5154
|
interface CounterpartDetailsSheetLabels {
|
|
5144
|
-
hiddenDescription: string;
|
|
5145
5155
|
loadingTitle: string;
|
|
5146
5156
|
notFoundCustomerTitle: string;
|
|
5147
5157
|
notFoundVendorTitle: string;
|
|
5148
5158
|
notFoundCustomerDescription: string;
|
|
5149
5159
|
notFoundVendorDescription: string;
|
|
5160
|
+
reloadFailed: string;
|
|
5150
5161
|
openActionsMenu: string;
|
|
5151
5162
|
closeAction: string;
|
|
5152
5163
|
deleteCustomerAction: string;
|
|
@@ -5154,10 +5165,12 @@ interface CounterpartDetailsSheetLabels {
|
|
|
5154
5165
|
summaryAmountDue: string;
|
|
5155
5166
|
summaryBalanceDue: string;
|
|
5156
5167
|
summaryBilled: string;
|
|
5168
|
+
summaryInvoiced: string;
|
|
5157
5169
|
summaryReceived: string;
|
|
5158
5170
|
summaryPaid: string;
|
|
5159
5171
|
summaryRejected: string;
|
|
5160
5172
|
overdueTag: string;
|
|
5173
|
+
/** Vendor footer action ("Add a bill"); the key predates the copy. */
|
|
5161
5174
|
sendPaymentAction: string;
|
|
5162
5175
|
issueInvoiceAction: string;
|
|
5163
5176
|
recentCustomerDocumentsHeading: string;
|
|
@@ -5188,15 +5201,12 @@ interface CounterpartDetailsSheetLabels {
|
|
|
5188
5201
|
customerTaxIdHelp: string;
|
|
5189
5202
|
vendorTaxIdHelp: string;
|
|
5190
5203
|
addressHeading: string;
|
|
5191
|
-
/** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
|
|
5192
|
-
customerAddressHeading: string;
|
|
5193
|
-
addAddressAction: string;
|
|
5194
|
-
editAddressAction: string;
|
|
5195
5204
|
noAddress: string;
|
|
5196
5205
|
paymentMethodsHeading: string;
|
|
5197
5206
|
paymentMethodsDescription: string;
|
|
5198
5207
|
addPaymentMethodAction: string;
|
|
5199
5208
|
editPaymentMethodAction: string;
|
|
5209
|
+
paymentMethodActionsMenu: string;
|
|
5200
5210
|
deletePaymentMethodAction: string;
|
|
5201
5211
|
incompletePaymentMethod: string;
|
|
5202
5212
|
accountHolderLabel: string;
|
|
@@ -5204,32 +5214,8 @@ interface CounterpartDetailsSheetLabels {
|
|
|
5204
5214
|
routingNumberLabel: string;
|
|
5205
5215
|
noPaymentMethods: string;
|
|
5206
5216
|
editButton: string;
|
|
5207
|
-
/** Overrides for the shared bill status badge in recent documents. */
|
|
5208
5217
|
billStatusBadge: Partial<BillStatusBadgeLabels>;
|
|
5209
|
-
/** Overrides for the shared invoice status badge in recent documents. */
|
|
5210
5218
|
invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
|
|
5211
|
-
optionalSuffix: string;
|
|
5212
|
-
editingCustomerDetailsHeading: string;
|
|
5213
|
-
editingVendorDetailsHeading: string;
|
|
5214
|
-
firstNameLabel: string;
|
|
5215
|
-
lastNameLabel: string;
|
|
5216
|
-
businessNameLabel: string;
|
|
5217
|
-
remindersCheckboxLabel: string;
|
|
5218
|
-
remindersCheckboxDescription: string;
|
|
5219
|
-
taxIdSsnPlaceholder: string;
|
|
5220
|
-
taxIdEinPlaceholder: string;
|
|
5221
|
-
editingAddressHeading: string;
|
|
5222
|
-
addingAddressHeading: string;
|
|
5223
|
-
streetAddressLabel: string;
|
|
5224
|
-
addressLine2Label: string;
|
|
5225
|
-
cityLabel: string;
|
|
5226
|
-
stateLabel: string;
|
|
5227
|
-
statePlaceholder: string;
|
|
5228
|
-
postalCodeLabel: string;
|
|
5229
|
-
countryLabel: string;
|
|
5230
|
-
countryUnitedStates: string;
|
|
5231
|
-
cancelButton: string;
|
|
5232
|
-
saveButton: string;
|
|
5233
5219
|
}
|
|
5234
5220
|
|
|
5235
5221
|
/** Whether this widget is showing customers (receivables) or vendors (payables). */
|
|
@@ -5263,6 +5249,7 @@ interface CounterpartsWidgetOwnProps {
|
|
|
5263
5249
|
formLabels?: PartialDeep<CounterpartFormSheetLabels>;
|
|
5264
5250
|
detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
|
|
5265
5251
|
bankAccountLabels?: PartialDeep<BankAccountFormSheetLabels>;
|
|
5252
|
+
/** @deprecated Unused; relabel the address through `formLabels.address`. */
|
|
5266
5253
|
addressLabels?: PartialDeep<AddressFormSheetLabels>;
|
|
5267
5254
|
deleteLabels?: Partial<ConfirmDeleteDialogLabels>;
|
|
5268
5255
|
/** Overrides for validation / error / delete-prompt messages. */
|
|
@@ -5338,6 +5325,7 @@ interface CustomersWidgetOwnProps {
|
|
|
5338
5325
|
screenLabels?: Partial<CounterpartsScreenLabels>;
|
|
5339
5326
|
formLabels?: PartialDeep<CounterpartFormSheetLabels>;
|
|
5340
5327
|
detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
|
|
5328
|
+
/** @deprecated Unused; relabel the address through `formLabels.address`. */
|
|
5341
5329
|
addressLabels?: PartialDeep<AddressFormSheetLabels>;
|
|
5342
5330
|
deleteLabels?: Partial<ConfirmDeleteDialogLabels>;
|
|
5343
5331
|
/** Overrides for validation / error / delete-prompt messages. */
|
|
@@ -874,7 +874,7 @@ interface CardDetailsFeatureLabels {
|
|
|
874
874
|
* refused for this session, which asking an admin for a role will not fix.
|
|
875
875
|
*/
|
|
876
876
|
revealNotPermittedDescription: string;
|
|
877
|
-
/**
|
|
877
|
+
/** @deprecated Unused: the card face no longer shows program wording. */
|
|
878
878
|
programLabels: Record<CardProgram, string>;
|
|
879
879
|
/** Status badge wording, keyed on the generated card status. */
|
|
880
880
|
statusLabels: Record<CardStatus, string>;
|
|
@@ -779,23 +779,33 @@ interface CounterpartMessageLabels {
|
|
|
779
779
|
accountNumberInvalid: string;
|
|
780
780
|
/** Shown for a non-field-specific submit failure. */
|
|
781
781
|
genericError: string;
|
|
782
|
-
/**
|
|
782
|
+
/** @deprecated Unused; the list labels its own warning. */
|
|
783
783
|
amountsUnavailable: string;
|
|
784
784
|
/** Delete confirmation title; `{name}` is replaced with the entity name. */
|
|
785
785
|
deleteTitle: string;
|
|
786
|
-
/** Delete confirmation title for a bank account; `{account}` is display-ready. */
|
|
787
786
|
deleteBankAccountTitle: string;
|
|
787
|
+
deleteBankAccountConfirm: string;
|
|
788
788
|
deleteCounterpartMessage: string;
|
|
789
789
|
deleteBankAccountMessage: string;
|
|
790
|
-
/**
|
|
790
|
+
/** @deprecated No longer shown. Use `customerAdded` / `vendorAdded`. */
|
|
791
791
|
createSucceeded: string;
|
|
792
|
-
/**
|
|
792
|
+
/** @deprecated No longer shown. Use `customerUpdated` / `vendorUpdated`. */
|
|
793
793
|
updateSucceeded: string;
|
|
794
|
+
customerAdded: string;
|
|
795
|
+
vendorAdded: string;
|
|
796
|
+
customerUpdated: string;
|
|
797
|
+
vendorUpdated: string;
|
|
794
798
|
addressAdded: string;
|
|
795
799
|
addressUpdated: string;
|
|
796
800
|
bankAccountAdded: string;
|
|
797
801
|
bankAccountUpdated: string;
|
|
802
|
+
/**
|
|
803
|
+
* @deprecated Used only when the delete controller gets no `counterpartType`;
|
|
804
|
+
* users never see the word "counterpart". Use `customerDeleted` / `vendorDeleted`.
|
|
805
|
+
*/
|
|
798
806
|
counterpartDeleted: string;
|
|
807
|
+
customerDeleted: string;
|
|
808
|
+
vendorDeleted: string;
|
|
799
809
|
bankAccountDeleted: string;
|
|
800
810
|
/** Error toast when a counterpart delete fails without an API message. */
|
|
801
811
|
deleteCounterpartFailed: string;
|
|
@@ -834,8 +844,8 @@ interface CounterpartsScreenLabels {
|
|
|
834
844
|
/** Vendor-mode create action. */
|
|
835
845
|
vendorsCreateButton: string;
|
|
836
846
|
columnName: string;
|
|
837
|
-
sortByName: string;
|
|
838
847
|
columnBilledAmount: string;
|
|
848
|
+
columnInvoicedAmount: string;
|
|
839
849
|
columnReceivedAmount: string;
|
|
840
850
|
columnAmountDue: string;
|
|
841
851
|
columnTotalPaidToDate: string;
|
|
@@ -850,15 +860,14 @@ interface CounterpartsScreenLabels {
|
|
|
850
860
|
unnamedCounterpart: string;
|
|
851
861
|
searchPlaceholder: string;
|
|
852
862
|
searchLabel: string;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
863
|
+
entityFilterLabel: string;
|
|
864
|
+
entityFilterAll: string;
|
|
865
|
+
entityFilterOrganization: string;
|
|
866
|
+
entityFilterIndividual: string;
|
|
856
867
|
filterChipRemove: string;
|
|
857
868
|
typeChip: (value: string) => string;
|
|
858
869
|
searchChip: (value: string) => string;
|
|
859
870
|
clearAllFilters: string;
|
|
860
|
-
entityFilterOrganization: string;
|
|
861
|
-
entityFilterIndividual: string;
|
|
862
871
|
customersEmptyTitle: string;
|
|
863
872
|
customersEmptyDescription: string;
|
|
864
873
|
customersEmptyAction: string;
|
|
@@ -876,14 +885,16 @@ interface CounterpartsScreenLabels {
|
|
|
876
885
|
errorRetry: string;
|
|
877
886
|
accessRestrictedTitle: string;
|
|
878
887
|
accessRestrictedDescription: string;
|
|
888
|
+
amountsUnavailable: string;
|
|
889
|
+
amountsRetry: string;
|
|
879
890
|
}
|
|
880
891
|
interface CounterpartDetailsSheetLabels {
|
|
881
|
-
hiddenDescription: string;
|
|
882
892
|
loadingTitle: string;
|
|
883
893
|
notFoundCustomerTitle: string;
|
|
884
894
|
notFoundVendorTitle: string;
|
|
885
895
|
notFoundCustomerDescription: string;
|
|
886
896
|
notFoundVendorDescription: string;
|
|
897
|
+
reloadFailed: string;
|
|
887
898
|
openActionsMenu: string;
|
|
888
899
|
closeAction: string;
|
|
889
900
|
deleteCustomerAction: string;
|
|
@@ -891,10 +902,12 @@ interface CounterpartDetailsSheetLabels {
|
|
|
891
902
|
summaryAmountDue: string;
|
|
892
903
|
summaryBalanceDue: string;
|
|
893
904
|
summaryBilled: string;
|
|
905
|
+
summaryInvoiced: string;
|
|
894
906
|
summaryReceived: string;
|
|
895
907
|
summaryPaid: string;
|
|
896
908
|
summaryRejected: string;
|
|
897
909
|
overdueTag: string;
|
|
910
|
+
/** Vendor footer action ("Add a bill"); the key predates the copy. */
|
|
898
911
|
sendPaymentAction: string;
|
|
899
912
|
issueInvoiceAction: string;
|
|
900
913
|
recentCustomerDocumentsHeading: string;
|
|
@@ -925,15 +938,12 @@ interface CounterpartDetailsSheetLabels {
|
|
|
925
938
|
customerTaxIdHelp: string;
|
|
926
939
|
vendorTaxIdHelp: string;
|
|
927
940
|
addressHeading: string;
|
|
928
|
-
/** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
|
|
929
|
-
customerAddressHeading: string;
|
|
930
|
-
addAddressAction: string;
|
|
931
|
-
editAddressAction: string;
|
|
932
941
|
noAddress: string;
|
|
933
942
|
paymentMethodsHeading: string;
|
|
934
943
|
paymentMethodsDescription: string;
|
|
935
944
|
addPaymentMethodAction: string;
|
|
936
945
|
editPaymentMethodAction: string;
|
|
946
|
+
paymentMethodActionsMenu: string;
|
|
937
947
|
deletePaymentMethodAction: string;
|
|
938
948
|
incompletePaymentMethod: string;
|
|
939
949
|
accountHolderLabel: string;
|
|
@@ -941,32 +951,8 @@ interface CounterpartDetailsSheetLabels {
|
|
|
941
951
|
routingNumberLabel: string;
|
|
942
952
|
noPaymentMethods: string;
|
|
943
953
|
editButton: string;
|
|
944
|
-
/** Overrides for the shared bill status badge in recent documents. */
|
|
945
954
|
billStatusBadge: Partial<BillStatusBadgeLabels>;
|
|
946
|
-
/** Overrides for the shared invoice status badge in recent documents. */
|
|
947
955
|
invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
|
|
948
|
-
optionalSuffix: string;
|
|
949
|
-
editingCustomerDetailsHeading: string;
|
|
950
|
-
editingVendorDetailsHeading: string;
|
|
951
|
-
firstNameLabel: string;
|
|
952
|
-
lastNameLabel: string;
|
|
953
|
-
businessNameLabel: string;
|
|
954
|
-
remindersCheckboxLabel: string;
|
|
955
|
-
remindersCheckboxDescription: string;
|
|
956
|
-
taxIdSsnPlaceholder: string;
|
|
957
|
-
taxIdEinPlaceholder: string;
|
|
958
|
-
editingAddressHeading: string;
|
|
959
|
-
addingAddressHeading: string;
|
|
960
|
-
streetAddressLabel: string;
|
|
961
|
-
addressLine2Label: string;
|
|
962
|
-
cityLabel: string;
|
|
963
|
-
stateLabel: string;
|
|
964
|
-
statePlaceholder: string;
|
|
965
|
-
postalCodeLabel: string;
|
|
966
|
-
countryLabel: string;
|
|
967
|
-
countryUnitedStates: string;
|
|
968
|
-
cancelButton: string;
|
|
969
|
-
saveButton: string;
|
|
970
956
|
}
|
|
971
957
|
|
|
972
958
|
/** Whether this widget is showing customers (receivables) or vendors (payables). */
|
|
@@ -1000,6 +986,7 @@ interface CounterpartsWidgetOwnProps {
|
|
|
1000
986
|
formLabels?: PartialDeep<CounterpartFormSheetLabels>;
|
|
1001
987
|
detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
|
|
1002
988
|
bankAccountLabels?: PartialDeep<BankAccountFormSheetLabels>;
|
|
989
|
+
/** @deprecated Unused; relabel the address through `formLabels.address`. */
|
|
1003
990
|
addressLabels?: PartialDeep<AddressFormSheetLabels>;
|
|
1004
991
|
deleteLabels?: Partial<ConfirmDeleteDialogLabels>;
|
|
1005
992
|
/** Overrides for validation / error / delete-prompt messages. */
|