@tesouro/embedded-components-react 0.2.298 → 0.2.300
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/dist/index.css +6 -0
- package/dist/index.d.ts +107 -87
- package/dist/lib/CounterpartsWidget.d.ts +24 -4
- package/dist/lib/ReceivablesWidget.d.ts +20 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +31 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +122 -149
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +163 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +52 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +98 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index7.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +103 -50
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +126 -76
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +6 -173
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +173 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js +5 -57
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index14.js +24 -72
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +76 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +13 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +53 -110
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index6.js +115 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index7.js +53 -47
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +44 -504
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +480 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2939 -2975
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -4598,6 +4598,12 @@
|
|
|
4598
4598
|
.ttw\:has-\[\:checked\]\:border-primary:has(:is(:checked)) {
|
|
4599
4599
|
border-color: var(--ttw-primary);
|
|
4600
4600
|
}
|
|
4601
|
+
.ttw\:has-\[\:checked\]\:bg-primary\/10:has(:is(:checked)) {
|
|
4602
|
+
background-color: var(--ttw-primary);
|
|
4603
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4604
|
+
background-color: color-mix(in oklab, var(--ttw-primary) 10%, transparent);
|
|
4605
|
+
}
|
|
4606
|
+
}
|
|
4601
4607
|
.ttw\:has-\[\:disabled\]\:cursor-not-allowed:has(:is(:disabled)) {
|
|
4602
4608
|
cursor: not-allowed;
|
|
4603
4609
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode, ComponentType, AnchorHTMLAttributes, PropsWithChildren, Erro
|
|
|
3
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
4
|
import { SortingState, OnChangeFn } from '@tanstack/react-table';
|
|
5
5
|
|
|
6
|
-
type PartialDeep$
|
|
7
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$
|
|
6
|
+
type PartialDeep$6<T> = {
|
|
7
|
+
[K in keyof T]?: T[K] extends object ? PartialDeep$6<T[K]> : T[K];
|
|
8
8
|
};
|
|
9
9
|
interface AcceptDisclosuresWidgetLabels {
|
|
10
10
|
title: string;
|
|
@@ -115,7 +115,7 @@ interface AcceptDisclosuresWidgetProps$1 {
|
|
|
115
115
|
isAccepted?: boolean;
|
|
116
116
|
/** Inline error shown under Accept; omit or empty when there is no error. */
|
|
117
117
|
errorMessage?: string;
|
|
118
|
-
labels?: PartialDeep$
|
|
118
|
+
labels?: PartialDeep$6<AcceptDisclosuresWidgetLabels>;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
type AuthToken = string | undefined;
|
|
@@ -1659,6 +1659,108 @@ interface BankAccountsWidgetProps extends WidgetProviderProps {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
declare function BankAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: BankAccountsWidgetProps): React.JSX.Element;
|
|
1661
1661
|
|
|
1662
|
+
interface AddressFieldGroupLabels {
|
|
1663
|
+
line1: string;
|
|
1664
|
+
line2: string;
|
|
1665
|
+
city: string;
|
|
1666
|
+
state: string;
|
|
1667
|
+
statePlaceholder: string;
|
|
1668
|
+
postalCode: string;
|
|
1669
|
+
country: string;
|
|
1670
|
+
/** Fixed country display value (US-only locale in v1). */
|
|
1671
|
+
countryValue: string;
|
|
1672
|
+
}
|
|
1673
|
+
interface AchFieldGroupLabels {
|
|
1674
|
+
accountHolderName: string;
|
|
1675
|
+
routingNumber: string;
|
|
1676
|
+
accountNumber: string;
|
|
1677
|
+
}
|
|
1678
|
+
type PartialDeep$5<T> = {
|
|
1679
|
+
[K in keyof T]?: T[K] extends object ? PartialDeep$5<T[K]> : T[K];
|
|
1680
|
+
};
|
|
1681
|
+
interface CounterpartFormSheetLabels {
|
|
1682
|
+
createTitleOrganization: string;
|
|
1683
|
+
createTitleIndividual: string;
|
|
1684
|
+
editTitleOrganization: string;
|
|
1685
|
+
editTitleIndividual: string;
|
|
1686
|
+
createTitleCustomer: string;
|
|
1687
|
+
createTitleVendor: string;
|
|
1688
|
+
editTitleCustomer: string;
|
|
1689
|
+
editTitleVendor: string;
|
|
1690
|
+
createDescriptionCustomer: string;
|
|
1691
|
+
createDescriptionVendor: string;
|
|
1692
|
+
customerTypeHeading: string;
|
|
1693
|
+
vendorTypeHeading: string;
|
|
1694
|
+
businessTypeOption: string;
|
|
1695
|
+
businessTypeHint: string;
|
|
1696
|
+
personTypeOption: string;
|
|
1697
|
+
personTypeHint: string;
|
|
1698
|
+
profileHeading: string;
|
|
1699
|
+
addressHeading: string;
|
|
1700
|
+
customerAddressDescription: string;
|
|
1701
|
+
legalNameLabel: string;
|
|
1702
|
+
businessNameLabel: string;
|
|
1703
|
+
firstNameLabel: string;
|
|
1704
|
+
lastNameLabel: string;
|
|
1705
|
+
titleLabel: string;
|
|
1706
|
+
emailLabel: string;
|
|
1707
|
+
phoneLabel: string;
|
|
1708
|
+
taxIdLabel: string;
|
|
1709
|
+
customerTaxIdHelp: string;
|
|
1710
|
+
vendorTaxIdHelp: string;
|
|
1711
|
+
paymentRemindersLabel: string;
|
|
1712
|
+
paymentRemindersDescription: string;
|
|
1713
|
+
paymentMethodsHeading: string;
|
|
1714
|
+
paymentMethodsDescription: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* @deprecated Superseded by `ach.accountHolderName`. Kept, and still
|
|
1717
|
+
* mapped in, so a consumer already shipping an override for this
|
|
1718
|
+
* already-published flat key doesn't silently lose it — this package is
|
|
1719
|
+
* published standalone, so removing a public field outright is a breaking
|
|
1720
|
+
* change even when nothing internal still reads it directly.
|
|
1721
|
+
*/
|
|
1722
|
+
accountHolderNameLabel?: string;
|
|
1723
|
+
/** @deprecated Superseded by `ach.routingNumber`. See `accountHolderNameLabel`. */
|
|
1724
|
+
routingNumberLabel?: string;
|
|
1725
|
+
/** @deprecated Superseded by `ach.accountNumber`. See `accountHolderNameLabel`. */
|
|
1726
|
+
accountNumberLabel?: string;
|
|
1727
|
+
addAddress: string;
|
|
1728
|
+
cancelButton: string;
|
|
1729
|
+
createButton: string;
|
|
1730
|
+
saveButton: string;
|
|
1731
|
+
address: AddressFieldGroupLabels;
|
|
1732
|
+
ach: AchFieldGroupLabels;
|
|
1733
|
+
}
|
|
1734
|
+
interface BankAccountFormSheetLabels {
|
|
1735
|
+
createTitle: string;
|
|
1736
|
+
editTitle: string;
|
|
1737
|
+
nameLabel: string;
|
|
1738
|
+
accountHolderNameLabel: string;
|
|
1739
|
+
accountNumberLabel: string;
|
|
1740
|
+
routingNumberLabel: string;
|
|
1741
|
+
ibanLabel: string;
|
|
1742
|
+
bicLabel: string;
|
|
1743
|
+
sortCodeLabel: string;
|
|
1744
|
+
currencyLabel: string;
|
|
1745
|
+
currencyPlaceholder: string;
|
|
1746
|
+
countryLabel: string;
|
|
1747
|
+
countryValue: string;
|
|
1748
|
+
isDefaultLabel: string;
|
|
1749
|
+
cancelButton: string;
|
|
1750
|
+
createButton: string;
|
|
1751
|
+
saveButton: string;
|
|
1752
|
+
}
|
|
1753
|
+
interface AddressFormSheetLabels {
|
|
1754
|
+
title: string;
|
|
1755
|
+
cancelButton: string;
|
|
1756
|
+
saveButton: string;
|
|
1757
|
+
address: AddressFieldGroupLabels;
|
|
1758
|
+
}
|
|
1759
|
+
interface ConfirmDeleteDialogLabels {
|
|
1760
|
+
confirmButton: string;
|
|
1761
|
+
cancelButton: string;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1662
1764
|
/**
|
|
1663
1765
|
* Action handlers for custom payment flows in payable operations.
|
|
1664
1766
|
*
|
|
@@ -2398,89 +2500,6 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
2398
2500
|
*/
|
|
2399
2501
|
declare function CardsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: CardsWidgetProps): React.JSX.Element;
|
|
2400
2502
|
|
|
2401
|
-
interface AddressFieldGroupLabels {
|
|
2402
|
-
line1: string;
|
|
2403
|
-
line2: string;
|
|
2404
|
-
city: string;
|
|
2405
|
-
state: string;
|
|
2406
|
-
statePlaceholder: string;
|
|
2407
|
-
postalCode: string;
|
|
2408
|
-
country: string;
|
|
2409
|
-
/** Fixed country display value (US-only locale in v1). */
|
|
2410
|
-
countryValue: string;
|
|
2411
|
-
}
|
|
2412
|
-
interface CounterpartFormSheetLabels {
|
|
2413
|
-
createTitleOrganization: string;
|
|
2414
|
-
createTitleIndividual: string;
|
|
2415
|
-
editTitleOrganization: string;
|
|
2416
|
-
editTitleIndividual: string;
|
|
2417
|
-
createTitleCustomer: string;
|
|
2418
|
-
createTitleVendor: string;
|
|
2419
|
-
editTitleCustomer: string;
|
|
2420
|
-
editTitleVendor: string;
|
|
2421
|
-
createDescriptionCustomer: string;
|
|
2422
|
-
createDescriptionVendor: string;
|
|
2423
|
-
customerTypeHeading: string;
|
|
2424
|
-
vendorTypeHeading: string;
|
|
2425
|
-
businessTypeOption: string;
|
|
2426
|
-
businessTypeHint: string;
|
|
2427
|
-
personTypeOption: string;
|
|
2428
|
-
personTypeHint: string;
|
|
2429
|
-
profileHeading: string;
|
|
2430
|
-
addressHeading: string;
|
|
2431
|
-
customerAddressDescription: string;
|
|
2432
|
-
legalNameLabel: string;
|
|
2433
|
-
businessNameLabel: string;
|
|
2434
|
-
firstNameLabel: string;
|
|
2435
|
-
lastNameLabel: string;
|
|
2436
|
-
titleLabel: string;
|
|
2437
|
-
emailLabel: string;
|
|
2438
|
-
phoneLabel: string;
|
|
2439
|
-
taxIdLabel: string;
|
|
2440
|
-
customerTaxIdHelp: string;
|
|
2441
|
-
vendorTaxIdHelp: string;
|
|
2442
|
-
paymentRemindersLabel: string;
|
|
2443
|
-
paymentRemindersDescription: string;
|
|
2444
|
-
paymentMethodsHeading: string;
|
|
2445
|
-
paymentMethodsDescription: string;
|
|
2446
|
-
accountHolderNameLabel: string;
|
|
2447
|
-
routingNumberLabel: string;
|
|
2448
|
-
accountNumberLabel: string;
|
|
2449
|
-
cancelButton: string;
|
|
2450
|
-
createButton: string;
|
|
2451
|
-
saveButton: string;
|
|
2452
|
-
address: AddressFieldGroupLabels;
|
|
2453
|
-
}
|
|
2454
|
-
interface BankAccountFormSheetLabels {
|
|
2455
|
-
createTitle: string;
|
|
2456
|
-
editTitle: string;
|
|
2457
|
-
nameLabel: string;
|
|
2458
|
-
accountHolderNameLabel: string;
|
|
2459
|
-
accountNumberLabel: string;
|
|
2460
|
-
routingNumberLabel: string;
|
|
2461
|
-
ibanLabel: string;
|
|
2462
|
-
bicLabel: string;
|
|
2463
|
-
sortCodeLabel: string;
|
|
2464
|
-
currencyLabel: string;
|
|
2465
|
-
currencyPlaceholder: string;
|
|
2466
|
-
countryLabel: string;
|
|
2467
|
-
countryValue: string;
|
|
2468
|
-
isDefaultLabel: string;
|
|
2469
|
-
cancelButton: string;
|
|
2470
|
-
createButton: string;
|
|
2471
|
-
saveButton: string;
|
|
2472
|
-
}
|
|
2473
|
-
interface AddressFormSheetLabels {
|
|
2474
|
-
title: string;
|
|
2475
|
-
cancelButton: string;
|
|
2476
|
-
saveButton: string;
|
|
2477
|
-
address: AddressFieldGroupLabels;
|
|
2478
|
-
}
|
|
2479
|
-
interface ConfirmDeleteDialogLabels {
|
|
2480
|
-
confirmButton: string;
|
|
2481
|
-
cancelButton: string;
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
2503
|
/**
|
|
2485
2504
|
* Overridable validation / error messages produced by the counterparts feature
|
|
2486
2505
|
* layer and surfaced through each form's `errors` prop. Consumers override via
|
|
@@ -2499,6 +2518,7 @@ interface CounterpartMessageLabels {
|
|
|
2499
2518
|
bankAccountNameRequired: string;
|
|
2500
2519
|
bankAccountIdentifierRequired: string;
|
|
2501
2520
|
bankAccountCurrencyRequired: string;
|
|
2521
|
+
accountHolderNameRequired: string;
|
|
2502
2522
|
routingNumberInvalid: string;
|
|
2503
2523
|
accountNumberInvalid: string;
|
|
2504
2524
|
vatIdValueRequired: string;
|
|
@@ -2639,7 +2659,7 @@ interface CounterpartsWidgetOwnProps {
|
|
|
2639
2659
|
*/
|
|
2640
2660
|
onViewAllDocuments?: () => void;
|
|
2641
2661
|
screenLabels?: Partial<CounterpartsScreenLabels>;
|
|
2642
|
-
formLabels?:
|
|
2662
|
+
formLabels?: PartialDeep$5<CounterpartFormSheetLabels>;
|
|
2643
2663
|
detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
|
|
2644
2664
|
bankAccountLabels?: Partial<BankAccountFormSheetLabels>;
|
|
2645
2665
|
addressLabels?: Partial<AddressFormSheetLabels>;
|
|
@@ -609,6 +609,14 @@ interface AddressFieldGroupLabels {
|
|
|
609
609
|
/** Fixed country display value (US-only locale in v1). */
|
|
610
610
|
countryValue: string;
|
|
611
611
|
}
|
|
612
|
+
interface AchFieldGroupLabels {
|
|
613
|
+
accountHolderName: string;
|
|
614
|
+
routingNumber: string;
|
|
615
|
+
accountNumber: string;
|
|
616
|
+
}
|
|
617
|
+
type PartialDeep<T> = {
|
|
618
|
+
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
619
|
+
};
|
|
612
620
|
interface CounterpartFormSheetLabels {
|
|
613
621
|
createTitleOrganization: string;
|
|
614
622
|
createTitleIndividual: string;
|
|
@@ -643,13 +651,24 @@ interface CounterpartFormSheetLabels {
|
|
|
643
651
|
paymentRemindersDescription: string;
|
|
644
652
|
paymentMethodsHeading: string;
|
|
645
653
|
paymentMethodsDescription: string;
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
654
|
+
/**
|
|
655
|
+
* @deprecated Superseded by `ach.accountHolderName`. Kept, and still
|
|
656
|
+
* mapped in, so a consumer already shipping an override for this
|
|
657
|
+
* already-published flat key doesn't silently lose it — this package is
|
|
658
|
+
* published standalone, so removing a public field outright is a breaking
|
|
659
|
+
* change even when nothing internal still reads it directly.
|
|
660
|
+
*/
|
|
661
|
+
accountHolderNameLabel?: string;
|
|
662
|
+
/** @deprecated Superseded by `ach.routingNumber`. See `accountHolderNameLabel`. */
|
|
663
|
+
routingNumberLabel?: string;
|
|
664
|
+
/** @deprecated Superseded by `ach.accountNumber`. See `accountHolderNameLabel`. */
|
|
665
|
+
accountNumberLabel?: string;
|
|
666
|
+
addAddress: string;
|
|
649
667
|
cancelButton: string;
|
|
650
668
|
createButton: string;
|
|
651
669
|
saveButton: string;
|
|
652
670
|
address: AddressFieldGroupLabels;
|
|
671
|
+
ach: AchFieldGroupLabels;
|
|
653
672
|
}
|
|
654
673
|
interface BankAccountFormSheetLabels {
|
|
655
674
|
createTitle: string;
|
|
@@ -699,6 +718,7 @@ interface CounterpartMessageLabels {
|
|
|
699
718
|
bankAccountNameRequired: string;
|
|
700
719
|
bankAccountIdentifierRequired: string;
|
|
701
720
|
bankAccountCurrencyRequired: string;
|
|
721
|
+
accountHolderNameRequired: string;
|
|
702
722
|
routingNumberInvalid: string;
|
|
703
723
|
accountNumberInvalid: string;
|
|
704
724
|
vatIdValueRequired: string;
|
|
@@ -839,7 +859,7 @@ interface CounterpartsWidgetOwnProps {
|
|
|
839
859
|
*/
|
|
840
860
|
onViewAllDocuments?: () => void;
|
|
841
861
|
screenLabels?: Partial<CounterpartsScreenLabels>;
|
|
842
|
-
formLabels?:
|
|
862
|
+
formLabels?: PartialDeep<CounterpartFormSheetLabels>;
|
|
843
863
|
detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
|
|
844
864
|
bankAccountLabels?: Partial<BankAccountFormSheetLabels>;
|
|
845
865
|
addressLabels?: Partial<AddressFormSheetLabels>;
|
|
@@ -616,6 +616,11 @@ interface AddressFieldGroupLabels {
|
|
|
616
616
|
/** Fixed country display value (US-only locale in v1). */
|
|
617
617
|
countryValue: string;
|
|
618
618
|
}
|
|
619
|
+
interface AchFieldGroupLabels {
|
|
620
|
+
accountHolderName: string;
|
|
621
|
+
routingNumber: string;
|
|
622
|
+
accountNumber: string;
|
|
623
|
+
}
|
|
619
624
|
interface CounterpartFormSheetLabels {
|
|
620
625
|
createTitleOrganization: string;
|
|
621
626
|
createTitleIndividual: string;
|
|
@@ -650,13 +655,24 @@ interface CounterpartFormSheetLabels {
|
|
|
650
655
|
paymentRemindersDescription: string;
|
|
651
656
|
paymentMethodsHeading: string;
|
|
652
657
|
paymentMethodsDescription: string;
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
658
|
+
/**
|
|
659
|
+
* @deprecated Superseded by `ach.accountHolderName`. Kept, and still
|
|
660
|
+
* mapped in, so a consumer already shipping an override for this
|
|
661
|
+
* already-published flat key doesn't silently lose it — this package is
|
|
662
|
+
* published standalone, so removing a public field outright is a breaking
|
|
663
|
+
* change even when nothing internal still reads it directly.
|
|
664
|
+
*/
|
|
665
|
+
accountHolderNameLabel?: string;
|
|
666
|
+
/** @deprecated Superseded by `ach.routingNumber`. See `accountHolderNameLabel`. */
|
|
667
|
+
routingNumberLabel?: string;
|
|
668
|
+
/** @deprecated Superseded by `ach.accountNumber`. See `accountHolderNameLabel`. */
|
|
669
|
+
accountNumberLabel?: string;
|
|
670
|
+
addAddress: string;
|
|
656
671
|
cancelButton: string;
|
|
657
672
|
createButton: string;
|
|
658
673
|
saveButton: string;
|
|
659
674
|
address: AddressFieldGroupLabels;
|
|
675
|
+
ach: AchFieldGroupLabels;
|
|
660
676
|
}
|
|
661
677
|
|
|
662
678
|
/**
|
|
@@ -677,6 +693,7 @@ interface CounterpartMessageLabels {
|
|
|
677
693
|
bankAccountNameRequired: string;
|
|
678
694
|
bankAccountIdentifierRequired: string;
|
|
679
695
|
bankAccountCurrencyRequired: string;
|
|
696
|
+
accountHolderNameRequired: string;
|
|
680
697
|
routingNumberInvalid: string;
|
|
681
698
|
accountNumberInvalid: string;
|
|
682
699
|
vatIdValueRequired: string;
|
|
@@ -32,44 +32,48 @@ function g({ open: g, onOpenChange: _, payableId: v, readOnly: y, copy: b }) {
|
|
|
32
32
|
}, [w, I]);
|
|
33
33
|
let L = d((e) => {
|
|
34
34
|
T(!0), C(e);
|
|
35
|
-
}, []), R =
|
|
35
|
+
}, []), R = l({
|
|
36
|
+
payableId: A,
|
|
37
|
+
counterpartId: S,
|
|
38
|
+
payableCounterpartId: I,
|
|
39
|
+
onCounterpartChange: L,
|
|
40
|
+
requiredError: F.errors?.vendor
|
|
41
|
+
}), z = i({
|
|
36
42
|
payableId: v,
|
|
37
43
|
form: F,
|
|
38
44
|
counterpartId: S,
|
|
45
|
+
clearCounterpart: !!(A && w) && !S,
|
|
46
|
+
prepareVendorForSave: R.savePaymentInstructions,
|
|
39
47
|
onPayableCreated: k,
|
|
40
48
|
onSaved: k,
|
|
41
49
|
onDraftSaved: () => _(!1),
|
|
42
50
|
onFinalized: () => _(!1)
|
|
43
|
-
}),
|
|
51
|
+
}), B = !!(z.isSavingDraft || z.isFinalizing), V = p(() => (N.data?.data ?? []).map((e) => ({
|
|
44
52
|
value: e.id,
|
|
45
53
|
label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
|
|
46
|
-
})), [N.data]),
|
|
47
|
-
|
|
54
|
+
})), [N.data]), H = P?.source_of_payable_data === "ocr", U = P?.counterpart_raw_data?.name, W = d(() => {
|
|
55
|
+
let e = F.isDirty || R.hasUnsavedVendorChanges;
|
|
56
|
+
!y && e && !window.confirm(x.discardConfirm) || _(!1);
|
|
48
57
|
}, [
|
|
49
58
|
x.discardConfirm,
|
|
50
59
|
F.isDirty,
|
|
51
60
|
_,
|
|
52
|
-
y
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
y,
|
|
62
|
+
R.hasUnsavedVendorChanges
|
|
63
|
+
]), G = d((e) => {
|
|
64
|
+
if (!B) return e ? _(!0) : W();
|
|
55
65
|
}, [
|
|
56
|
-
|
|
57
|
-
|
|
66
|
+
W,
|
|
67
|
+
B,
|
|
58
68
|
_
|
|
59
|
-
])
|
|
60
|
-
payableId: A,
|
|
61
|
-
counterpartId: S,
|
|
62
|
-
payableCounterpartId: I,
|
|
63
|
-
onCounterpartChange: L,
|
|
64
|
-
requiredError: F.errors?.vendor
|
|
65
|
-
});
|
|
69
|
+
]);
|
|
66
70
|
return /* @__PURE__ */ h(o, {
|
|
67
71
|
open: g,
|
|
68
|
-
onOpenChange:
|
|
69
|
-
title: y ? x.readOnlyTitle :
|
|
70
|
-
notice:
|
|
72
|
+
onOpenChange: G,
|
|
73
|
+
title: y ? x.readOnlyTitle : H && U ? x.extractedTitle(U) : x.newTitle,
|
|
74
|
+
notice: H && !E ? /* @__PURE__ */ h(s, { onDismiss: () => D(!0) }) : void 0,
|
|
71
75
|
vendor: {
|
|
72
|
-
...
|
|
76
|
+
...R,
|
|
73
77
|
testId: u.vendorSection
|
|
74
78
|
},
|
|
75
79
|
values: F.values,
|
|
@@ -77,7 +81,7 @@ function g({ open: g, onOpenChange: _, payableId: v, readOnly: y, copy: b }) {
|
|
|
77
81
|
onChange: F.onChange,
|
|
78
82
|
lineItems: {
|
|
79
83
|
items: F.lineItemRows,
|
|
80
|
-
glCodeOptions:
|
|
84
|
+
glCodeOptions: V,
|
|
81
85
|
discount: F.discount,
|
|
82
86
|
onDiscountChange: F.onDiscountChange,
|
|
83
87
|
tax: F.tax,
|
|
@@ -101,12 +105,12 @@ function g({ open: g, onOpenChange: _, payableId: v, readOnly: y, copy: b }) {
|
|
|
101
105
|
}),
|
|
102
106
|
readOnly: y,
|
|
103
107
|
isLineItemsLoading: M.isResolving,
|
|
104
|
-
isSaving:
|
|
105
|
-
isSavingDraft:
|
|
106
|
-
isFinalizing:
|
|
107
|
-
onCancel:
|
|
108
|
-
onSaveDraft:
|
|
109
|
-
onFinalize:
|
|
108
|
+
isSaving: B,
|
|
109
|
+
isSavingDraft: z.isSavingDraft,
|
|
110
|
+
isFinalizing: z.isFinalizing,
|
|
111
|
+
onCancel: W,
|
|
112
|
+
onSaveDraft: z.saveDraft,
|
|
113
|
+
onFinalize: z.finalize,
|
|
110
114
|
testId: u.dialog
|
|
111
115
|
});
|
|
112
116
|
}
|
|
@@ -17,6 +17,8 @@ var e = {
|
|
|
17
17
|
accountHolder: "Account holder",
|
|
18
18
|
routingNumber: "Routing number",
|
|
19
19
|
accountNumber: "Account number",
|
|
20
|
+
paymentMethodLoading: "Loading payment method...",
|
|
21
|
+
paymentMethodUnavailable: "We could not load payment methods. Try again.",
|
|
20
22
|
searchFailed: "We could not load vendors. Try again.",
|
|
21
23
|
vendorDetailsFailed: "We could not load this vendor. Try again."
|
|
22
24
|
}, n = {
|