@tesouro/embedded-components-react 0.3.31 → 0.3.33
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 +11 -10
- package/dist/index.d.ts +38 -0
- package/dist/index.js +2 -2
- package/dist/lib/CardsWidget.d.ts +36 -0
- package/dist/lib/CreateCardWidget.d.ts +38 -0
- package/dist/lib/CreateCardWidget.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +38 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +83 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index3.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index6.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index7.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index4.js +35 -30
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index5.js +52 -10
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index6.js +12 -31
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +25 -248
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index8.js +389 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/CardControlRow.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/CardControls.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/lib/CreateCardWidget/CardControls/MerchantCategoriesControl.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +53 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +224 -206
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +174 -146
- 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
|
@@ -290,20 +290,21 @@ Read-only details for one credit **or** debit card — status, form factor, prog
|
|
|
290
290
|
|
|
291
291
|
Issues a new **debit** card for an enrolled team member: cardholder, format
|
|
292
292
|
(virtual / physical), funding bank account, and — for physical cards — a mailing
|
|
293
|
-
destination.
|
|
293
|
+
destination. Optional spend limit and per-transaction maximum are applied after
|
|
294
|
+
issuance. Loading, success, and error feedback use both full-screen views and
|
|
294
295
|
sonner toasts.
|
|
295
296
|
|
|
296
297
|
#### Props
|
|
297
298
|
|
|
298
|
-
| Prop | Type
|
|
299
|
-
| --------------- |
|
|
300
|
-
| `cardArtSrc` | `string`
|
|
301
|
-
| `labels` | `PartialDeep<CreateCardWidgetLabels>`
|
|
302
|
-
| `featureLabels` | toast / untitled-funding overrides
|
|
303
|
-
| `className` | `string`
|
|
304
|
-
| `onClose` | `() => void`
|
|
305
|
-
| `onCancel` | `() => void`
|
|
306
|
-
| `onViewCard` | `(cardId: string) => void`
|
|
299
|
+
| Prop | Type | Default | Description |
|
|
300
|
+
| --------------- | ---------------------------------------------------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
301
|
+
| `cardArtSrc` | `string` | **Required** | Static card plastic image URL (no name overlays). |
|
|
302
|
+
| `labels` | `PartialDeep<CreateCardWidgetLabels>` | English labels | Overrides presentational copy (header, setup, mailing, card controls, preparing, success, footer). Nested groups merge per group. |
|
|
303
|
+
| `featureLabels` | toast / untitled-funding / velocity-control-name overrides | English labels | Overrides mutation toast strings (including spend-control and admin-access warnings), the funding-account fallback name, and API velocity-control `name`s. |
|
|
304
|
+
| `className` | `string` | — | Optional class on the presentational root. |
|
|
305
|
+
| `onClose` | `() => void` | — | Header close control. Omit and no close control is rendered. |
|
|
306
|
+
| `onCancel` | `() => void` | — | Called when Cancel is pressed (also invokes `onClose` when both are set). |
|
|
307
|
+
| `onViewCard` | `(cardId: string) => void` | — | Called with the new debit card id after a successful create when the user presses **View card**. |
|
|
307
308
|
|
|
308
309
|
### CounterpartsWidget
|
|
309
310
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2396,11 +2396,23 @@ interface CreateCardFeatureLabels {
|
|
|
2396
2396
|
creating: string;
|
|
2397
2397
|
success: string;
|
|
2398
2398
|
error: string;
|
|
2399
|
+
/**
|
|
2400
|
+
* Card issued but a follow-up velocity-control POST failed. The card
|
|
2401
|
+
* already exists; this must not read as a create failure.
|
|
2402
|
+
*/
|
|
2403
|
+
controlsWarning: string;
|
|
2399
2404
|
/**
|
|
2400
2405
|
* Card issued but granting company admins access to it failed. The card
|
|
2401
2406
|
* already exists; this must not read as a create failure.
|
|
2402
2407
|
*/
|
|
2403
2408
|
companyAdminAccessWarning: string;
|
|
2409
|
+
/**
|
|
2410
|
+
* Card issued, but BOTH the velocity-control POST(s) and the company-admin
|
|
2411
|
+
* access grant failed. Distinct from the two single-failure warnings above
|
|
2412
|
+
* so an issuer who hits both is told about both, not just whichever this
|
|
2413
|
+
* code checks first.
|
|
2414
|
+
*/
|
|
2415
|
+
controlsAndAccessWarning: string;
|
|
2404
2416
|
/**
|
|
2405
2417
|
* The roster of users to grant access to a new card failed to load.
|
|
2406
2418
|
* Shown with a retry action; Create stays disabled until it resolves so
|
|
@@ -2410,6 +2422,28 @@ interface CreateCardFeatureLabels {
|
|
|
2410
2422
|
retry: string;
|
|
2411
2423
|
};
|
|
2412
2424
|
untitledFundingAccount: string;
|
|
2425
|
+
/**
|
|
2426
|
+
* API-required `name` on a velocity control. Not shown in this widget;
|
|
2427
|
+
* may surface on a later controls list.
|
|
2428
|
+
*/
|
|
2429
|
+
velocityControlNames: {
|
|
2430
|
+
spendLimit: string;
|
|
2431
|
+
perTransactionMaximum: string;
|
|
2432
|
+
};
|
|
2433
|
+
/**
|
|
2434
|
+
* Spend-limit reset-period tab labels and notices. Owned here (not UI
|
|
2435
|
+
* labels) because the feature layer decides what each opaque period value
|
|
2436
|
+
* means.
|
|
2437
|
+
*/
|
|
2438
|
+
spendLimit: {
|
|
2439
|
+
periodOneTime: string;
|
|
2440
|
+
periodDaily: string;
|
|
2441
|
+
periodMonthly: string;
|
|
2442
|
+
oneTimeWarningTitle: string;
|
|
2443
|
+
oneTimeWarningDescription: string;
|
|
2444
|
+
dailyResetNotice: string;
|
|
2445
|
+
monthlyResetNotice: string;
|
|
2446
|
+
};
|
|
2413
2447
|
/**
|
|
2414
2448
|
* Success-screen copy chosen from the create response's `cardStatus`.
|
|
2415
2449
|
* Active/ready wording lives on the UI defaults; these cover statuses that
|
|
@@ -2426,6 +2460,8 @@ declare const CREATE_CARD_FEATURE_LABELS_EN: CreateCardFeatureLabels;
|
|
|
2426
2460
|
declare function resolveCreateCardFeatureLabels(overrides?: Partial<{
|
|
2427
2461
|
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
2428
2462
|
untitledFundingAccount: string;
|
|
2463
|
+
velocityControlNames: Partial<CreateCardFeatureLabels['velocityControlNames']>;
|
|
2464
|
+
spendLimit: Partial<CreateCardFeatureLabels['spendLimit']>;
|
|
2429
2465
|
success: Partial<CreateCardFeatureLabels['success']>;
|
|
2430
2466
|
}>): CreateCardFeatureLabels;
|
|
2431
2467
|
|
|
@@ -2436,6 +2472,8 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
2436
2472
|
featureLabels?: Partial<{
|
|
2437
2473
|
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
2438
2474
|
untitledFundingAccount: string;
|
|
2475
|
+
velocityControlNames: Partial<CreateCardFeatureLabels['velocityControlNames']>;
|
|
2476
|
+
spendLimit: Partial<CreateCardFeatureLabels['spendLimit']>;
|
|
2439
2477
|
success: Partial<CreateCardFeatureLabels['success']>;
|
|
2440
2478
|
}>;
|
|
2441
2479
|
className?: string;
|
package/dist/index.js
CHANGED
|
@@ -20,8 +20,8 @@ import { BillPayWidget as T } from "./libs/tesouro-embedded-components-react/bil
|
|
|
20
20
|
import "./lib/BillPayWidget.js";
|
|
21
21
|
import { CardDetailsWidget as E } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js";
|
|
22
22
|
import { CardFormatValue as D } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index3.js";
|
|
23
|
-
import { CREATE_CARD_FEATURE_LABELS_EN as O, resolveCreateCardFeatureLabels as k } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/
|
|
24
|
-
import { CreateCardWidget as A } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/
|
|
23
|
+
import { CREATE_CARD_FEATURE_LABELS_EN as O, resolveCreateCardFeatureLabels as k } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index5.js";
|
|
24
|
+
import { CreateCardWidget as A } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index8.js";
|
|
25
25
|
import { CardsWidget as j } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js";
|
|
26
26
|
import "./lib/CardsWidget.js";
|
|
27
27
|
import "./lib/CardDetailsWidget.js";
|
|
@@ -997,11 +997,23 @@ interface CreateCardFeatureLabels {
|
|
|
997
997
|
creating: string;
|
|
998
998
|
success: string;
|
|
999
999
|
error: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* Card issued but a follow-up velocity-control POST failed. The card
|
|
1002
|
+
* already exists; this must not read as a create failure.
|
|
1003
|
+
*/
|
|
1004
|
+
controlsWarning: string;
|
|
1000
1005
|
/**
|
|
1001
1006
|
* Card issued but granting company admins access to it failed. The card
|
|
1002
1007
|
* already exists; this must not read as a create failure.
|
|
1003
1008
|
*/
|
|
1004
1009
|
companyAdminAccessWarning: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* Card issued, but BOTH the velocity-control POST(s) and the company-admin
|
|
1012
|
+
* access grant failed. Distinct from the two single-failure warnings above
|
|
1013
|
+
* so an issuer who hits both is told about both, not just whichever this
|
|
1014
|
+
* code checks first.
|
|
1015
|
+
*/
|
|
1016
|
+
controlsAndAccessWarning: string;
|
|
1005
1017
|
/**
|
|
1006
1018
|
* The roster of users to grant access to a new card failed to load.
|
|
1007
1019
|
* Shown with a retry action; Create stays disabled until it resolves so
|
|
@@ -1011,6 +1023,28 @@ interface CreateCardFeatureLabels {
|
|
|
1011
1023
|
retry: string;
|
|
1012
1024
|
};
|
|
1013
1025
|
untitledFundingAccount: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* API-required `name` on a velocity control. Not shown in this widget;
|
|
1028
|
+
* may surface on a later controls list.
|
|
1029
|
+
*/
|
|
1030
|
+
velocityControlNames: {
|
|
1031
|
+
spendLimit: string;
|
|
1032
|
+
perTransactionMaximum: string;
|
|
1033
|
+
};
|
|
1034
|
+
/**
|
|
1035
|
+
* Spend-limit reset-period tab labels and notices. Owned here (not UI
|
|
1036
|
+
* labels) because the feature layer decides what each opaque period value
|
|
1037
|
+
* means.
|
|
1038
|
+
*/
|
|
1039
|
+
spendLimit: {
|
|
1040
|
+
periodOneTime: string;
|
|
1041
|
+
periodDaily: string;
|
|
1042
|
+
periodMonthly: string;
|
|
1043
|
+
oneTimeWarningTitle: string;
|
|
1044
|
+
oneTimeWarningDescription: string;
|
|
1045
|
+
dailyResetNotice: string;
|
|
1046
|
+
monthlyResetNotice: string;
|
|
1047
|
+
};
|
|
1014
1048
|
/**
|
|
1015
1049
|
* Success-screen copy chosen from the create response's `cardStatus`.
|
|
1016
1050
|
* Active/ready wording lives on the UI defaults; these cover statuses that
|
|
@@ -1031,6 +1065,8 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
1031
1065
|
featureLabels?: Partial<{
|
|
1032
1066
|
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
1033
1067
|
untitledFundingAccount: string;
|
|
1068
|
+
velocityControlNames: Partial<CreateCardFeatureLabels['velocityControlNames']>;
|
|
1069
|
+
spendLimit: Partial<CreateCardFeatureLabels['spendLimit']>;
|
|
1034
1070
|
success: Partial<CreateCardFeatureLabels['success']>;
|
|
1035
1071
|
}>;
|
|
1036
1072
|
className?: string;
|
|
@@ -720,11 +720,23 @@ interface CreateCardFeatureLabels {
|
|
|
720
720
|
creating: string;
|
|
721
721
|
success: string;
|
|
722
722
|
error: string;
|
|
723
|
+
/**
|
|
724
|
+
* Card issued but a follow-up velocity-control POST failed. The card
|
|
725
|
+
* already exists; this must not read as a create failure.
|
|
726
|
+
*/
|
|
727
|
+
controlsWarning: string;
|
|
723
728
|
/**
|
|
724
729
|
* Card issued but granting company admins access to it failed. The card
|
|
725
730
|
* already exists; this must not read as a create failure.
|
|
726
731
|
*/
|
|
727
732
|
companyAdminAccessWarning: string;
|
|
733
|
+
/**
|
|
734
|
+
* Card issued, but BOTH the velocity-control POST(s) and the company-admin
|
|
735
|
+
* access grant failed. Distinct from the two single-failure warnings above
|
|
736
|
+
* so an issuer who hits both is told about both, not just whichever this
|
|
737
|
+
* code checks first.
|
|
738
|
+
*/
|
|
739
|
+
controlsAndAccessWarning: string;
|
|
728
740
|
/**
|
|
729
741
|
* The roster of users to grant access to a new card failed to load.
|
|
730
742
|
* Shown with a retry action; Create stays disabled until it resolves so
|
|
@@ -734,6 +746,28 @@ interface CreateCardFeatureLabels {
|
|
|
734
746
|
retry: string;
|
|
735
747
|
};
|
|
736
748
|
untitledFundingAccount: string;
|
|
749
|
+
/**
|
|
750
|
+
* API-required `name` on a velocity control. Not shown in this widget;
|
|
751
|
+
* may surface on a later controls list.
|
|
752
|
+
*/
|
|
753
|
+
velocityControlNames: {
|
|
754
|
+
spendLimit: string;
|
|
755
|
+
perTransactionMaximum: string;
|
|
756
|
+
};
|
|
757
|
+
/**
|
|
758
|
+
* Spend-limit reset-period tab labels and notices. Owned here (not UI
|
|
759
|
+
* labels) because the feature layer decides what each opaque period value
|
|
760
|
+
* means.
|
|
761
|
+
*/
|
|
762
|
+
spendLimit: {
|
|
763
|
+
periodOneTime: string;
|
|
764
|
+
periodDaily: string;
|
|
765
|
+
periodMonthly: string;
|
|
766
|
+
oneTimeWarningTitle: string;
|
|
767
|
+
oneTimeWarningDescription: string;
|
|
768
|
+
dailyResetNotice: string;
|
|
769
|
+
monthlyResetNotice: string;
|
|
770
|
+
};
|
|
737
771
|
/**
|
|
738
772
|
* Success-screen copy chosen from the create response's `cardStatus`.
|
|
739
773
|
* Active/ready wording lives on the UI defaults; these cover statuses that
|
|
@@ -750,6 +784,8 @@ declare const CREATE_CARD_FEATURE_LABELS_EN: CreateCardFeatureLabels;
|
|
|
750
784
|
declare function resolveCreateCardFeatureLabels(overrides?: Partial<{
|
|
751
785
|
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
752
786
|
untitledFundingAccount: string;
|
|
787
|
+
velocityControlNames: Partial<CreateCardFeatureLabels['velocityControlNames']>;
|
|
788
|
+
spendLimit: Partial<CreateCardFeatureLabels['spendLimit']>;
|
|
753
789
|
success: Partial<CreateCardFeatureLabels['success']>;
|
|
754
790
|
}>): CreateCardFeatureLabels;
|
|
755
791
|
|
|
@@ -760,6 +796,8 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
760
796
|
featureLabels?: Partial<{
|
|
761
797
|
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
762
798
|
untitledFundingAccount: string;
|
|
799
|
+
velocityControlNames: Partial<CreateCardFeatureLabels['velocityControlNames']>;
|
|
800
|
+
spendLimit: Partial<CreateCardFeatureLabels['spendLimit']>;
|
|
763
801
|
success: Partial<CreateCardFeatureLabels['success']>;
|
|
764
802
|
}>;
|
|
765
803
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardFormatValue as e } from "../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index3.js";
|
|
2
|
-
import { CREATE_CARD_FEATURE_LABELS_EN as t, resolveCreateCardFeatureLabels as n } from "../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/
|
|
3
|
-
import { CreateCardWidget as r } from "../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/
|
|
2
|
+
import { CREATE_CARD_FEATURE_LABELS_EN as t, resolveCreateCardFeatureLabels as n } from "../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index5.js";
|
|
3
|
+
import { CreateCardWidget as r } from "../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index8.js";
|
|
4
4
|
import "../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index.js";
|
|
5
5
|
export { t as CREATE_CARD_FEATURE_LABELS_EN, e as CardFormatValue, r as CreateCardWidget, n as resolveCreateCardFeatureLabels };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { UNSAVED_BILL_DIALOG_LABELS_EN as e } from "../../ui/dist/index95.js";
|
|
2
|
+
import "../../ui/dist/index.js";
|
|
3
|
+
import { PAY_BILL_FLOW_LABELS_EN as t, mergePayBillFlowLabels as n } from "./index11.js";
|
|
4
|
+
import { MARK_AS_PAID_FLOW_LABELS_EN as r, mergeMarkAsPaidFlowLabels as i } from "./index2.js";
|
|
3
5
|
import "./index5.js";
|
|
4
|
-
import { APPROVAL_POLICY_RULE_COPY_EN as
|
|
5
|
-
import { BILL_DETAIL_ACTIONS_LABELS_EN as
|
|
6
|
-
import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as
|
|
6
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as a } from "./index15.js";
|
|
7
|
+
import { BILL_DETAIL_ACTIONS_LABELS_EN as o, SCHEDULED_SUMMARY_LABEL_EN as s, mergeBillDetailActionsLabels as c } from "./index29.js";
|
|
8
|
+
import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as l } from "./index30.js";
|
|
7
9
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js
|
|
8
|
-
var
|
|
10
|
+
var u = {
|
|
9
11
|
unmappedValidationError: (e, t) => `${e}: ${t}`,
|
|
10
12
|
unknownValidationField: "(unknown field)",
|
|
11
13
|
requiredField: "This field is required.",
|
|
@@ -17,7 +19,7 @@ var l = {
|
|
|
17
19
|
unusableQuantity: "Enter a quantity greater than 0.",
|
|
18
20
|
lineItemsNeedAttention: "Check the highlighted line items before saving.",
|
|
19
21
|
totalsNeedAttention: "Enter valid amounts for discount, tax, and total."
|
|
20
|
-
},
|
|
22
|
+
}, d = {
|
|
21
23
|
achMethod: "via ACH bank transfer",
|
|
22
24
|
noMethod: "No payment method on file",
|
|
23
25
|
accountHolder: "Account holder",
|
|
@@ -27,13 +29,13 @@ var l = {
|
|
|
27
29
|
paymentMethodUnavailable: "We could not load payment methods. Try again.",
|
|
28
30
|
searchFailed: "We could not load vendors. Try again.",
|
|
29
31
|
vendorDetailsFailed: "We could not load this vendor. Try again."
|
|
30
|
-
},
|
|
32
|
+
}, f = {
|
|
31
33
|
attachFailed: "We could not attach that file. Try again.",
|
|
32
34
|
deleteFailed: "We could not remove that document. Try again.",
|
|
33
35
|
noDocument: "No document attached to this bill.",
|
|
34
36
|
pendingDeletionNotice: "This document will be removed when you save this bill.",
|
|
35
|
-
preview:
|
|
36
|
-
},
|
|
37
|
+
preview: l
|
|
38
|
+
}, p = {
|
|
37
39
|
notProvided: "Not provided",
|
|
38
40
|
paymentInstructionsValue: (e) => `Account ending in ${e}`,
|
|
39
41
|
invoiceDateRow: "Invoice date",
|
|
@@ -47,7 +49,7 @@ var l = {
|
|
|
47
49
|
totalRow: "Total",
|
|
48
50
|
paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
|
|
49
51
|
paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again."
|
|
50
|
-
},
|
|
52
|
+
}, m = {
|
|
51
53
|
dateLabel: (e) => new Date(e).toLocaleString("en-US", {
|
|
52
54
|
month: "short",
|
|
53
55
|
day: "numeric",
|
|
@@ -71,20 +73,20 @@ var l = {
|
|
|
71
73
|
markedAsPartiallyPaid: "Marked as partially paid",
|
|
72
74
|
paymentReverted: "Payment reverted",
|
|
73
75
|
statusChanged: (e) => `Status changed to ${e}`
|
|
74
|
-
},
|
|
76
|
+
}, h = {
|
|
75
77
|
newTitle: "New bill",
|
|
76
78
|
extractedTitle: (e) => `Bill from ${e}`,
|
|
77
79
|
viewTitle: (e) => `Bill from ${e}`,
|
|
78
80
|
readOnlyTitle: "Bill details",
|
|
79
81
|
addedOn: (e) => `Added on ${e}`,
|
|
80
|
-
|
|
81
|
-
scheduledSummary:
|
|
82
|
-
actions:
|
|
83
|
-
detail:
|
|
84
|
-
history:
|
|
85
|
-
payBill:
|
|
86
|
-
markAsPaid:
|
|
87
|
-
approvalPolicyCopy:
|
|
82
|
+
unsavedChanges: e,
|
|
83
|
+
scheduledSummary: s,
|
|
84
|
+
actions: o,
|
|
85
|
+
detail: p,
|
|
86
|
+
history: m,
|
|
87
|
+
payBill: t,
|
|
88
|
+
markAsPaid: r,
|
|
89
|
+
approvalPolicyCopy: a,
|
|
88
90
|
deleteDraft: {
|
|
89
91
|
menuItem: "Delete draft",
|
|
90
92
|
dialog: {
|
|
@@ -95,31 +97,35 @@ var l = {
|
|
|
95
97
|
error: "Couldn't delete this draft. Try again."
|
|
96
98
|
}
|
|
97
99
|
};
|
|
98
|
-
function
|
|
100
|
+
function g(e) {
|
|
99
101
|
return {
|
|
100
|
-
...
|
|
102
|
+
...h,
|
|
101
103
|
...e,
|
|
102
|
-
actions:
|
|
104
|
+
actions: c(e?.actions),
|
|
103
105
|
detail: {
|
|
104
|
-
...
|
|
106
|
+
...h.detail,
|
|
105
107
|
...e?.detail
|
|
106
108
|
},
|
|
107
109
|
history: {
|
|
108
|
-
...
|
|
110
|
+
...h.history,
|
|
109
111
|
...e?.history
|
|
110
112
|
},
|
|
111
|
-
payBill:
|
|
112
|
-
markAsPaid:
|
|
113
|
+
payBill: n(e?.payBill),
|
|
114
|
+
markAsPaid: i(e?.markAsPaid),
|
|
115
|
+
unsavedChanges: {
|
|
116
|
+
...h.unsavedChanges,
|
|
117
|
+
...e?.unsavedChanges
|
|
118
|
+
},
|
|
113
119
|
approvalPolicyCopy: {
|
|
114
|
-
...
|
|
120
|
+
...h.approvalPolicyCopy,
|
|
115
121
|
...e?.approvalPolicyCopy
|
|
116
122
|
},
|
|
117
123
|
deleteDraft: {
|
|
118
|
-
...
|
|
124
|
+
...h.deleteDraft,
|
|
119
125
|
...e?.deleteDraft,
|
|
120
126
|
dialog: (() => {
|
|
121
127
|
let t = {
|
|
122
|
-
...
|
|
128
|
+
...h.deleteDraft.dialog,
|
|
123
129
|
...e?.deleteDraft?.dialog
|
|
124
130
|
};
|
|
125
131
|
return delete t.reason, t;
|
|
@@ -127,7 +133,7 @@ function h(e) {
|
|
|
127
133
|
}
|
|
128
134
|
};
|
|
129
135
|
}
|
|
130
|
-
var
|
|
136
|
+
var _ = {
|
|
131
137
|
createTitle: "New vendor",
|
|
132
138
|
editTitle: "Edit vendor",
|
|
133
139
|
close: "Close the vendor form",
|
|
@@ -146,4 +152,4 @@ var g = {
|
|
|
146
152
|
save: "Save vendor"
|
|
147
153
|
};
|
|
148
154
|
//#endregion
|
|
149
|
-
export {
|
|
155
|
+
export { u as BILL_CREATE_MESSAGE_LABELS_EN, h as BILL_CREATE_SCREEN_LABELS_EN, p as BILL_DETAIL_VIEW_LABELS_EN, m as BILL_HISTORY_LABELS_EN, f as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, _ as VENDOR_INLINE_FORM_LABELS_EN, d as VENDOR_SECTION_PROPS_LABELS_EN, g as mergeBillCreateScreenCopy };
|
|
@@ -104,9 +104,10 @@ function x({ payableId: _, form: v, counterpartId: x, clearCounterpart: S, prepa
|
|
|
104
104
|
let t = await C?.();
|
|
105
105
|
if (t && !t.ok) return;
|
|
106
106
|
let n = await Y(t?.counterpartBankAccountId);
|
|
107
|
-
v.setErrors(void 0), w?.(n), E?.(n), e.success(k.draftSaved);
|
|
107
|
+
return v.setErrors(void 0), w?.(n), E?.(n), e.success(k.draftSaved), n;
|
|
108
108
|
} catch {
|
|
109
109
|
v.setErrors({ form: k.saveFailed });
|
|
110
|
+
return;
|
|
110
111
|
} finally {
|
|
111
112
|
B(void 0), V.current = !1;
|
|
112
113
|
}
|
|
@@ -9,7 +9,10 @@ var e = {
|
|
|
9
9
|
decisionConfirm: "bill-pay-bill-decision-confirm",
|
|
10
10
|
decisionReason: "bill-pay-bill-decision-reason",
|
|
11
11
|
deleteDraftDialog: "bill-pay-bill-delete-draft-dialog",
|
|
12
|
-
deleteDraftConfirm: "bill-pay-bill-delete-draft-confirm"
|
|
12
|
+
deleteDraftConfirm: "bill-pay-bill-delete-draft-confirm",
|
|
13
|
+
unsavedDialog: "bill-pay-bill-unsaved-dialog",
|
|
14
|
+
unsavedSaveDraft: "bill-pay-bill-unsaved-save-draft",
|
|
15
|
+
unsavedDiscard: "bill-pay-bill-unsaved-discard"
|
|
13
16
|
};
|
|
14
17
|
//#endregion
|
|
15
18
|
export { e as billCreateTestIds };
|