@tesouro/embedded-components-react 0.5.51 → 0.5.52
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.d.ts +42 -1
- package/dist/lib/CounterpartsWidget.d.ts +41 -0
- package/dist/lib/ReceivablesWidget.d.ts +40 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +18 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +91 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +113 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +148 -147
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +203 -174
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +22 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +97 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +57 -61
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +189 -188
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +1 -0
- 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 +54 -37
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +54 -41
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index6.js +88 -70
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +333 -282
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +3757 -3705
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -390,6 +390,36 @@ type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
|
390
390
|
*/
|
|
391
391
|
declare function cloneEmbeddedClient(source: EmbeddedClient): EmbeddedClient;
|
|
392
392
|
|
|
393
|
+
interface LabelLabels {
|
|
394
|
+
/**
|
|
395
|
+
* How the field name and its requirement fragment compose. `{label}` is the
|
|
396
|
+
* name, `{marker}` the asterisk or the note — reorder them freely, and note
|
|
397
|
+
* that the space between them is part of this string.
|
|
398
|
+
*/
|
|
399
|
+
composition: string;
|
|
400
|
+
/** In the label's own colour, deliberately not `destructive`. */
|
|
401
|
+
requiredMarker: string;
|
|
402
|
+
/**
|
|
403
|
+
* Screen-reader-only stand-in for the marker, for a control whose role does
|
|
404
|
+
* not take `aria-required` — a popover trigger is a `button`, which does
|
|
405
|
+
* not. Render it hidden and name it from the control's `aria-labelledby`.
|
|
406
|
+
*/
|
|
407
|
+
requiredAccessibleText: string;
|
|
408
|
+
optionalNote: string;
|
|
409
|
+
/** "This has no meaning here", as against `optionalNote`'s "may be blank". */
|
|
410
|
+
notApplicableNote: string;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
interface RequiredFieldsLegendLabels {
|
|
414
|
+
/**
|
|
415
|
+
* One string, so a translator can move the marker into whatever clause the
|
|
416
|
+
* language wants. `{marker}` is substituted with `marker`, rendered
|
|
417
|
+
* semi-bold; keep the placeholder when overriding.
|
|
418
|
+
*/
|
|
419
|
+
instruction: string;
|
|
420
|
+
marker: string;
|
|
421
|
+
}
|
|
422
|
+
|
|
393
423
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
394
424
|
children?: ReactNode;
|
|
395
425
|
};
|
|
@@ -3208,11 +3238,15 @@ interface AddressFieldGroupLabels {
|
|
|
3208
3238
|
country: string;
|
|
3209
3239
|
/** Fixed country display value (US-only locale in v1). */
|
|
3210
3240
|
countryValue: string;
|
|
3241
|
+
/** The asterisk and "(optional)" copy this group's labels carry. */
|
|
3242
|
+
fieldMarkers: LabelLabels;
|
|
3211
3243
|
}
|
|
3212
3244
|
interface AchFieldGroupLabels {
|
|
3213
3245
|
accountHolderName: string;
|
|
3214
3246
|
routingNumber: string;
|
|
3215
3247
|
accountNumber: string;
|
|
3248
|
+
/** The asterisk copy this group's labels carry. */
|
|
3249
|
+
fieldMarkers: LabelLabels;
|
|
3216
3250
|
}
|
|
3217
3251
|
interface CounterpartFormSheetLabels {
|
|
3218
3252
|
createTitleOrganization: string;
|
|
@@ -3266,6 +3300,10 @@ interface CounterpartFormSheetLabels {
|
|
|
3266
3300
|
saveButton: string;
|
|
3267
3301
|
address: AddressFieldGroupLabels;
|
|
3268
3302
|
ach: AchFieldGroupLabels;
|
|
3303
|
+
/** Seeds `address.fieldMarkers` and `ach.fieldMarkers` unless set per group. */
|
|
3304
|
+
fieldMarkers: LabelLabels;
|
|
3305
|
+
/** Rendered by the sheet only, not by the inline field group. */
|
|
3306
|
+
requiredFieldsLegend: RequiredFieldsLegendLabels;
|
|
3269
3307
|
}
|
|
3270
3308
|
interface BankAccountFormSheetLabels {
|
|
3271
3309
|
createTitle: string;
|
|
@@ -3291,6 +3329,9 @@ interface AddressFormSheetLabels {
|
|
|
3291
3329
|
cancelButton: string;
|
|
3292
3330
|
saveButton: string;
|
|
3293
3331
|
address: AddressFieldGroupLabels;
|
|
3332
|
+
/** Seeds `address.fieldMarkers` unless set on the group itself. */
|
|
3333
|
+
fieldMarkers: LabelLabels;
|
|
3334
|
+
requiredFieldsLegend: RequiredFieldsLegendLabels;
|
|
3294
3335
|
}
|
|
3295
3336
|
interface ConfirmDeleteDialogLabels {
|
|
3296
3337
|
confirmButton: string;
|
|
@@ -4109,7 +4150,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
4109
4150
|
paymentLabels?: Partial<ReceivablePaymentDialogLabels>;
|
|
4110
4151
|
actionLabels?: Partial<ReceivableActionDialogLabels>;
|
|
4111
4152
|
productFormLabels?: Partial<ProductFormSheetLabels>;
|
|
4112
|
-
counterpartFormLabels?:
|
|
4153
|
+
counterpartFormLabels?: PartialDeep<CounterpartFormSheetLabels>;
|
|
4113
4154
|
measureUnitsLabels?: Partial<MeasureUnitsManagerLabels>;
|
|
4114
4155
|
measureUnitDeleteLabels?: Partial<MeasureUnitDeleteDialogLabels>;
|
|
4115
4156
|
messageLabels?: Partial<ReceivableMessageLabels>;
|
|
@@ -332,6 +332,36 @@ type EmbeddedClient = Client;
|
|
|
332
332
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
333
333
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
334
334
|
|
|
335
|
+
interface LabelLabels {
|
|
336
|
+
/**
|
|
337
|
+
* How the field name and its requirement fragment compose. `{label}` is the
|
|
338
|
+
* name, `{marker}` the asterisk or the note — reorder them freely, and note
|
|
339
|
+
* that the space between them is part of this string.
|
|
340
|
+
*/
|
|
341
|
+
composition: string;
|
|
342
|
+
/** In the label's own colour, deliberately not `destructive`. */
|
|
343
|
+
requiredMarker: string;
|
|
344
|
+
/**
|
|
345
|
+
* Screen-reader-only stand-in for the marker, for a control whose role does
|
|
346
|
+
* not take `aria-required` — a popover trigger is a `button`, which does
|
|
347
|
+
* not. Render it hidden and name it from the control's `aria-labelledby`.
|
|
348
|
+
*/
|
|
349
|
+
requiredAccessibleText: string;
|
|
350
|
+
optionalNote: string;
|
|
351
|
+
/** "This has no meaning here", as against `optionalNote`'s "may be blank". */
|
|
352
|
+
notApplicableNote: string;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
interface RequiredFieldsLegendLabels {
|
|
356
|
+
/**
|
|
357
|
+
* One string, so a translator can move the marker into whatever clause the
|
|
358
|
+
* language wants. `{marker}` is substituted with `marker`, rendered
|
|
359
|
+
* semi-bold; keep the placeholder when overriding.
|
|
360
|
+
*/
|
|
361
|
+
instruction: string;
|
|
362
|
+
marker: string;
|
|
363
|
+
}
|
|
364
|
+
|
|
335
365
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
336
366
|
children?: ReactNode;
|
|
337
367
|
};
|
|
@@ -638,11 +668,15 @@ interface AddressFieldGroupLabels {
|
|
|
638
668
|
country: string;
|
|
639
669
|
/** Fixed country display value (US-only locale in v1). */
|
|
640
670
|
countryValue: string;
|
|
671
|
+
/** The asterisk and "(optional)" copy this group's labels carry. */
|
|
672
|
+
fieldMarkers: LabelLabels;
|
|
641
673
|
}
|
|
642
674
|
interface AchFieldGroupLabels {
|
|
643
675
|
accountHolderName: string;
|
|
644
676
|
routingNumber: string;
|
|
645
677
|
accountNumber: string;
|
|
678
|
+
/** The asterisk copy this group's labels carry. */
|
|
679
|
+
fieldMarkers: LabelLabels;
|
|
646
680
|
}
|
|
647
681
|
interface CounterpartFormSheetLabels {
|
|
648
682
|
createTitleOrganization: string;
|
|
@@ -696,6 +730,10 @@ interface CounterpartFormSheetLabels {
|
|
|
696
730
|
saveButton: string;
|
|
697
731
|
address: AddressFieldGroupLabels;
|
|
698
732
|
ach: AchFieldGroupLabels;
|
|
733
|
+
/** Seeds `address.fieldMarkers` and `ach.fieldMarkers` unless set per group. */
|
|
734
|
+
fieldMarkers: LabelLabels;
|
|
735
|
+
/** Rendered by the sheet only, not by the inline field group. */
|
|
736
|
+
requiredFieldsLegend: RequiredFieldsLegendLabels;
|
|
699
737
|
}
|
|
700
738
|
interface BankAccountFormSheetLabels {
|
|
701
739
|
createTitle: string;
|
|
@@ -721,6 +759,9 @@ interface AddressFormSheetLabels {
|
|
|
721
759
|
cancelButton: string;
|
|
722
760
|
saveButton: string;
|
|
723
761
|
address: AddressFieldGroupLabels;
|
|
762
|
+
/** Seeds `address.fieldMarkers` unless set on the group itself. */
|
|
763
|
+
fieldMarkers: LabelLabels;
|
|
764
|
+
requiredFieldsLegend: RequiredFieldsLegendLabels;
|
|
724
765
|
}
|
|
725
766
|
interface ConfirmDeleteDialogLabels {
|
|
726
767
|
confirmButton: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
+
import { PartialDeep } from 'type-fest';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
5
|
|
|
5
6
|
type ALIGN_DIALOG_TYPES = 'left' | 'right';
|
|
@@ -338,6 +339,36 @@ type EmbeddedClient = Client;
|
|
|
338
339
|
type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
|
|
339
340
|
type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
340
341
|
|
|
342
|
+
interface LabelLabels {
|
|
343
|
+
/**
|
|
344
|
+
* How the field name and its requirement fragment compose. `{label}` is the
|
|
345
|
+
* name, `{marker}` the asterisk or the note — reorder them freely, and note
|
|
346
|
+
* that the space between them is part of this string.
|
|
347
|
+
*/
|
|
348
|
+
composition: string;
|
|
349
|
+
/** In the label's own colour, deliberately not `destructive`. */
|
|
350
|
+
requiredMarker: string;
|
|
351
|
+
/**
|
|
352
|
+
* Screen-reader-only stand-in for the marker, for a control whose role does
|
|
353
|
+
* not take `aria-required` — a popover trigger is a `button`, which does
|
|
354
|
+
* not. Render it hidden and name it from the control's `aria-labelledby`.
|
|
355
|
+
*/
|
|
356
|
+
requiredAccessibleText: string;
|
|
357
|
+
optionalNote: string;
|
|
358
|
+
/** "This has no meaning here", as against `optionalNote`'s "may be blank". */
|
|
359
|
+
notApplicableNote: string;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
interface RequiredFieldsLegendLabels {
|
|
363
|
+
/**
|
|
364
|
+
* One string, so a translator can move the marker into whatever clause the
|
|
365
|
+
* language wants. `{marker}` is substituted with `marker`, rendered
|
|
366
|
+
* semi-bold; keep the placeholder when overriding.
|
|
367
|
+
*/
|
|
368
|
+
instruction: string;
|
|
369
|
+
marker: string;
|
|
370
|
+
}
|
|
371
|
+
|
|
341
372
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
342
373
|
children?: ReactNode;
|
|
343
374
|
};
|
|
@@ -647,11 +678,15 @@ interface AddressFieldGroupLabels {
|
|
|
647
678
|
country: string;
|
|
648
679
|
/** Fixed country display value (US-only locale in v1). */
|
|
649
680
|
countryValue: string;
|
|
681
|
+
/** The asterisk and "(optional)" copy this group's labels carry. */
|
|
682
|
+
fieldMarkers: LabelLabels;
|
|
650
683
|
}
|
|
651
684
|
interface AchFieldGroupLabels {
|
|
652
685
|
accountHolderName: string;
|
|
653
686
|
routingNumber: string;
|
|
654
687
|
accountNumber: string;
|
|
688
|
+
/** The asterisk copy this group's labels carry. */
|
|
689
|
+
fieldMarkers: LabelLabels;
|
|
655
690
|
}
|
|
656
691
|
interface CounterpartFormSheetLabels {
|
|
657
692
|
createTitleOrganization: string;
|
|
@@ -705,6 +740,10 @@ interface CounterpartFormSheetLabels {
|
|
|
705
740
|
saveButton: string;
|
|
706
741
|
address: AddressFieldGroupLabels;
|
|
707
742
|
ach: AchFieldGroupLabels;
|
|
743
|
+
/** Seeds `address.fieldMarkers` and `ach.fieldMarkers` unless set per group. */
|
|
744
|
+
fieldMarkers: LabelLabels;
|
|
745
|
+
/** Rendered by the sheet only, not by the inline field group. */
|
|
746
|
+
requiredFieldsLegend: RequiredFieldsLegendLabels;
|
|
708
747
|
}
|
|
709
748
|
|
|
710
749
|
/**
|
|
@@ -1051,7 +1090,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1051
1090
|
paymentLabels?: Partial<ReceivablePaymentDialogLabels>;
|
|
1052
1091
|
actionLabels?: Partial<ReceivableActionDialogLabels>;
|
|
1053
1092
|
productFormLabels?: Partial<ProductFormSheetLabels>;
|
|
1054
|
-
counterpartFormLabels?:
|
|
1093
|
+
counterpartFormLabels?: PartialDeep<CounterpartFormSheetLabels>;
|
|
1055
1094
|
measureUnitsLabels?: Partial<MeasureUnitsManagerLabels>;
|
|
1056
1095
|
measureUnitDeleteLabels?: Partial<MeasureUnitDeleteDialogLabels>;
|
|
1057
1096
|
messageLabels?: Partial<ReceivableMessageLabels>;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { MARK_AS_PAID_DIALOG_LABELS_EN as e } from "../../ui/dist/index101.js";
|
|
1
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "../../ui/dist/index101.js";
|
|
2
2
|
import "../../ui/dist/index.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js
|
|
4
|
-
var
|
|
4
|
+
var n = {
|
|
5
5
|
dueDateSuffix: (e) => `by ${e}`,
|
|
6
6
|
paidToast: "Bill marked as paid",
|
|
7
7
|
submitError: "Couldn't mark this bill as paid. Try again.",
|
|
8
8
|
dialog: e
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function r(e) {
|
|
11
11
|
return {
|
|
12
|
-
...
|
|
12
|
+
...n,
|
|
13
13
|
...e,
|
|
14
|
-
dialog:
|
|
15
|
-
...t.dialog,
|
|
16
|
-
...e?.dialog
|
|
17
|
-
}
|
|
14
|
+
dialog: t(e?.dialog)
|
|
18
15
|
};
|
|
19
16
|
}
|
|
20
17
|
//#endregion
|
|
21
|
-
export {
|
|
18
|
+
export { n as MARK_AS_PAID_FLOW_LABELS_EN, r as mergeMarkAsPaidFlowLabels };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/index98.js";
|
|
2
|
-
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t } from "../../ui/dist/index104.js";
|
|
2
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t, mergeSchedulePaymentDialogLabels as n } from "../../ui/dist/index104.js";
|
|
3
3
|
import "../../ui/dist/index.js";
|
|
4
|
-
import { SOURCE_ACCOUNT_LABELS_EN as
|
|
4
|
+
import { SOURCE_ACCOUNT_LABELS_EN as r } from "./index24.js";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js
|
|
6
|
-
var
|
|
6
|
+
var i = {
|
|
7
7
|
amountDue: "Amount due",
|
|
8
8
|
paymentAmount: "Payment amount",
|
|
9
9
|
dueDateSuffix: (e) => `by ${e}`,
|
|
@@ -22,23 +22,20 @@ var r = {
|
|
|
22
22
|
checkingPaymentInstructionsError: "Still checking this vendor's payment instructions. Try again in a moment.",
|
|
23
23
|
paymentInstructionsUnavailableError: "Couldn't check this vendor's payment instructions. Try again.",
|
|
24
24
|
missingVendorName: "Not provided",
|
|
25
|
-
...
|
|
25
|
+
...r,
|
|
26
26
|
scheduleDialog: t,
|
|
27
27
|
reviewDialog: e
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function a(e) {
|
|
30
30
|
return {
|
|
31
|
-
...
|
|
31
|
+
...i,
|
|
32
32
|
...e,
|
|
33
|
-
scheduleDialog:
|
|
34
|
-
...r.scheduleDialog,
|
|
35
|
-
...e?.scheduleDialog
|
|
36
|
-
},
|
|
33
|
+
scheduleDialog: n(e?.scheduleDialog),
|
|
37
34
|
reviewDialog: {
|
|
38
|
-
...
|
|
35
|
+
...i.reviewDialog,
|
|
39
36
|
...e?.reviewDialog
|
|
40
37
|
}
|
|
41
38
|
};
|
|
42
39
|
}
|
|
43
40
|
//#endregion
|
|
44
|
-
export {
|
|
41
|
+
export { i as PAY_BILL_FLOW_LABELS_EN, a as mergePayBillFlowLabels };
|
|
@@ -89,16 +89,16 @@ import "./index97.js";
|
|
|
89
89
|
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as v } from "./index98.js";
|
|
90
90
|
import { ReviewTransactionDialog as y } from "./index99.js";
|
|
91
91
|
import "./index100.js";
|
|
92
|
-
import { MARK_AS_PAID_DIALOG_LABELS_EN as b } from "./index101.js";
|
|
93
|
-
import { MarkAsPaidDialog as
|
|
92
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as b, mergeMarkAsPaidDialogLabels as x } from "./index101.js";
|
|
93
|
+
import { MarkAsPaidDialog as S } from "./index102.js";
|
|
94
94
|
import "./index103.js";
|
|
95
|
-
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as
|
|
96
|
-
import { SchedulePaymentDialog as
|
|
95
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as C, mergeSchedulePaymentDialogLabels as w } from "./index104.js";
|
|
96
|
+
import { SchedulePaymentDialog as T } from "./index106.js";
|
|
97
97
|
import "./index107.js";
|
|
98
98
|
import "./index108.js";
|
|
99
|
-
import { SourceDocumentPanel as
|
|
99
|
+
import { SourceDocumentPanel as E } from "./index109.js";
|
|
100
100
|
import "./index110.js";
|
|
101
|
-
import { UNSAVED_BILL_DIALOG_LABELS_EN as
|
|
102
|
-
import { UnsavedBillDialog as
|
|
101
|
+
import { UNSAVED_BILL_DIALOG_LABELS_EN as D } from "./index111.js";
|
|
102
|
+
import { UnsavedBillDialog as O } from "./index112.js";
|
|
103
103
|
import "./index113.js";
|
|
104
|
-
export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, u as BILL_REJECTED_BANNER_LABELS_EN, p as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, l as BillDuplicateNotice, r as BillPayWidgetUi, d as BillRejectedBanner, h as BillUploadStatusTray, f as BillsFilterField, m as BillsScreen, s as DISCARD_CHANGES_DIALOG_LABELS_EN, c as DiscardChangesDialog, g as DuplicateBillsDialog, _ as ExtractionNotice, b as MARK_AS_PAID_DIALOG_LABELS_EN,
|
|
104
|
+
export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, u as BILL_REJECTED_BANNER_LABELS_EN, p as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, l as BillDuplicateNotice, r as BillPayWidgetUi, d as BillRejectedBanner, h as BillUploadStatusTray, f as BillsFilterField, m as BillsScreen, s as DISCARD_CHANGES_DIALOG_LABELS_EN, c as DiscardChangesDialog, g as DuplicateBillsDialog, _ as ExtractionNotice, b as MARK_AS_PAID_DIALOG_LABELS_EN, S as MarkAsPaidDialog, v as REVIEW_TRANSACTION_DIALOG_LABELS_EN, y as ReviewTransactionDialog, C as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, T as SchedulePaymentDialog, E as SourceDocumentPanel, D as UNSAVED_BILL_DIALOG_LABELS_EN, O as UnsavedBillDialog, t as VendorSearchCombobox, x as mergeMarkAsPaidDialogLabels, w as mergeSchedulePaymentDialogLabels };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js
|
|
2
|
-
var
|
|
3
|
+
var r = {
|
|
3
4
|
title: "Mark this bill as paid",
|
|
4
5
|
description: "You can't undo this action.",
|
|
5
6
|
amountDue: "Amount due",
|
|
@@ -8,10 +9,23 @@ var e = {
|
|
|
8
9
|
paymentDatePlaceholder: "Select",
|
|
9
10
|
today: "Today",
|
|
10
11
|
comments: "Comments",
|
|
11
|
-
commentsOptionalSuffix: "(optional)",
|
|
12
12
|
commentsPlaceholder: "Additional context for this payment.",
|
|
13
13
|
cancelButton: "Cancel",
|
|
14
|
-
confirmButton: "Mark as paid"
|
|
14
|
+
confirmButton: "Mark as paid",
|
|
15
|
+
fieldMarkers: e,
|
|
16
|
+
requiredFieldsLegend: t
|
|
15
17
|
};
|
|
18
|
+
function i(e) {
|
|
19
|
+
let t = {
|
|
20
|
+
...r.fieldMarkers,
|
|
21
|
+
...e?.fieldMarkers
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
...r,
|
|
25
|
+
...e,
|
|
26
|
+
fieldMarkers: t,
|
|
27
|
+
requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
|
|
28
|
+
};
|
|
29
|
+
}
|
|
16
30
|
//#endregion
|
|
17
|
-
export {
|
|
31
|
+
export { r as MARK_AS_PAID_DIALOG_LABELS_EN, i as mergeMarkAsPaidDialogLabels };
|
|
@@ -1,120 +1,123 @@
|
|
|
1
|
-
import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as o, DialogHeader as s, DialogTitle as c,
|
|
2
|
-
import {
|
|
3
|
-
import { useId as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { CalendarIcon as
|
|
1
|
+
import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as o, DialogHeader as s, DialogTitle as c, FieldRequirement as l, Label as u, Popover as d, PopoverContent as f, PopoverTrigger as p, RequiredFieldsLegend as m, Textarea as h } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { mergeMarkAsPaidDialogLabels as g } from "./index101.js";
|
|
3
|
+
import { useId as _ } from "react";
|
|
4
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
5
|
+
import { CalendarIcon as b } from "lucide-react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onOpenChange: (e) => e ? void 0 : j(),
|
|
15
|
-
children: /* @__PURE__ */ _(i, {
|
|
16
|
-
"data-testid": M,
|
|
7
|
+
function x({ open: x, amountDue: S, dueDateSuffix: C, paymentAmount: w, selectedDate: T, selectedDateLabel: E, isToday: D, comment: O, isSubmitting: k, onDateChange: A, onCommentChange: j, onConfirm: M, onCancel: N, testId: P, confirmTestId: F, labels: I }) {
|
|
8
|
+
let L = g(I), R = _(), z = _(), B = _(), V = _();
|
|
9
|
+
return /* @__PURE__ */ v(r, {
|
|
10
|
+
open: x,
|
|
11
|
+
onOpenChange: (e) => e ? void 0 : N(),
|
|
12
|
+
children: /* @__PURE__ */ y(i, {
|
|
13
|
+
"data-testid": P,
|
|
17
14
|
className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
|
|
18
15
|
children: [
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(c, { children: L.title }), /* @__PURE__ */ v(a, { children: L.description })] }),
|
|
17
|
+
/* @__PURE__ */ y("div", {
|
|
21
18
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
22
19
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ y("div", {
|
|
24
21
|
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
25
|
-
children: [/* @__PURE__ */
|
|
22
|
+
children: [/* @__PURE__ */ v("p", {
|
|
26
23
|
className: "ttw:text-base ttw:text-muted-foreground",
|
|
27
|
-
children:
|
|
28
|
-
}), /* @__PURE__ */
|
|
24
|
+
children: L.amountDue
|
|
25
|
+
}), /* @__PURE__ */ y("div", {
|
|
29
26
|
className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
|
|
30
|
-
children: [/* @__PURE__ */
|
|
27
|
+
children: [/* @__PURE__ */ v("p", {
|
|
31
28
|
className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
|
|
32
|
-
children:
|
|
33
|
-
}),
|
|
29
|
+
children: S
|
|
30
|
+
}), C ? /* @__PURE__ */ v("p", {
|
|
34
31
|
className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
|
|
35
|
-
children:
|
|
32
|
+
children: C
|
|
36
33
|
}) : null]
|
|
37
34
|
})]
|
|
38
35
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ v(m, { labels: L.requiredFieldsLegend }),
|
|
37
|
+
/* @__PURE__ */ y("div", {
|
|
40
38
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
41
|
-
children: [/* @__PURE__ */
|
|
39
|
+
children: [/* @__PURE__ */ y("div", {
|
|
42
40
|
className: "ttw:grid ttw:gap-2.5",
|
|
43
|
-
children: [/* @__PURE__ */
|
|
41
|
+
children: [/* @__PURE__ */ v(u, { children: L.paymentAmount }), /* @__PURE__ */ v("div", {
|
|
44
42
|
"aria-disabled": !0,
|
|
45
43
|
className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
|
|
46
|
-
children:
|
|
44
|
+
children: w
|
|
47
45
|
})]
|
|
48
|
-
}), /* @__PURE__ */
|
|
46
|
+
}), /* @__PURE__ */ y("div", {
|
|
49
47
|
className: "ttw:grid ttw:gap-2.5",
|
|
50
|
-
children: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
children:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ v(u, {
|
|
50
|
+
id: R,
|
|
51
|
+
requirement: l.Required,
|
|
52
|
+
labels: L.fieldMarkers,
|
|
53
|
+
children: L.paymentDate
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ v("span", {
|
|
56
|
+
id: B,
|
|
57
|
+
className: "ttw:sr-only",
|
|
58
|
+
children: L.fieldMarkers.requiredAccessibleText
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ y(d, { children: [/* @__PURE__ */ v(p, {
|
|
61
|
+
asChild: !0,
|
|
62
|
+
children: /* @__PURE__ */ y(t, {
|
|
63
|
+
type: "button",
|
|
64
|
+
variant: "outline",
|
|
65
|
+
className: "ttw:justify-start ttw:gap-2",
|
|
66
|
+
"aria-labelledby": `${R} ${z} ${B}`,
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ v(b, { className: "ttw:size-4" }),
|
|
69
|
+
/* @__PURE__ */ v("span", {
|
|
70
|
+
id: z,
|
|
71
|
+
children: E ?? L.paymentDatePlaceholder
|
|
72
|
+
}),
|
|
73
|
+
D ? /* @__PURE__ */ v(e, {
|
|
74
|
+
variant: "secondary",
|
|
75
|
+
children: L.today
|
|
76
|
+
}) : null
|
|
77
|
+
]
|
|
78
|
+
})
|
|
79
|
+
}), /* @__PURE__ */ v(f, {
|
|
80
|
+
align: "start",
|
|
81
|
+
className: "ttw:w-auto ttw:p-0",
|
|
82
|
+
children: /* @__PURE__ */ v(n, {
|
|
83
|
+
mode: "single",
|
|
84
|
+
selected: T,
|
|
85
|
+
onSelect: A
|
|
86
|
+
})
|
|
87
|
+
})] })
|
|
88
|
+
]
|
|
81
89
|
})]
|
|
82
90
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ y("div", {
|
|
84
92
|
className: "ttw:grid ttw:gap-2.5",
|
|
85
|
-
children: [/* @__PURE__ */
|
|
86
|
-
htmlFor:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}), /* @__PURE__ */ g(p, {
|
|
96
|
-
id: R,
|
|
97
|
-
value: E,
|
|
98
|
-
placeholder: F.commentsPlaceholder,
|
|
99
|
-
onChange: (e) => k(e.target.value)
|
|
93
|
+
children: [/* @__PURE__ */ v(u, {
|
|
94
|
+
htmlFor: V,
|
|
95
|
+
requirement: l.Optional,
|
|
96
|
+
labels: L.fieldMarkers,
|
|
97
|
+
children: L.comments
|
|
98
|
+
}), /* @__PURE__ */ v(h, {
|
|
99
|
+
id: V,
|
|
100
|
+
value: O,
|
|
101
|
+
placeholder: L.commentsPlaceholder,
|
|
102
|
+
onChange: (e) => j(e.target.value)
|
|
100
103
|
})]
|
|
101
104
|
})
|
|
102
105
|
]
|
|
103
106
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ y(o, {
|
|
105
108
|
className: "ttw:pt-4 ttw:sm:gap-3",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ v(t, {
|
|
107
110
|
type: "button",
|
|
108
111
|
variant: "outline",
|
|
109
|
-
onClick:
|
|
110
|
-
children:
|
|
111
|
-
}), /* @__PURE__ */
|
|
112
|
+
onClick: N,
|
|
113
|
+
children: L.cancelButton
|
|
114
|
+
}), /* @__PURE__ */ v(t, {
|
|
112
115
|
type: "button",
|
|
113
|
-
"data-testid":
|
|
114
|
-
disabled: !
|
|
115
|
-
loading:
|
|
116
|
-
onClick:
|
|
117
|
-
children:
|
|
116
|
+
"data-testid": F,
|
|
117
|
+
disabled: !T,
|
|
118
|
+
loading: k,
|
|
119
|
+
onClick: M,
|
|
120
|
+
children: L.confirmButton
|
|
118
121
|
})]
|
|
119
122
|
})
|
|
120
123
|
]
|
|
@@ -122,4 +125,4 @@ function y({ open: y, amountDue: b, dueDateSuffix: x, paymentAmount: S, selected
|
|
|
122
125
|
});
|
|
123
126
|
}
|
|
124
127
|
//#endregion
|
|
125
|
-
export {
|
|
128
|
+
export { x as MarkAsPaidDialog, x as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js
|
|
2
|
-
var
|
|
3
|
+
var r = {
|
|
3
4
|
title: "Schedule payment",
|
|
4
5
|
hiddenDescription: "Choose the account to pay from and the payment date.",
|
|
5
6
|
payFrom: "Pay from",
|
|
@@ -12,7 +13,21 @@ var e = {
|
|
|
12
13
|
accountsError: "Couldn't load accounts. Try again.",
|
|
13
14
|
poweredByBank: (e) => `Powered by ${e}`,
|
|
14
15
|
cancelButton: "Cancel",
|
|
15
|
-
reviewButton: "Review payment"
|
|
16
|
+
reviewButton: "Review payment",
|
|
17
|
+
fieldMarkers: e,
|
|
18
|
+
requiredFieldsLegend: t
|
|
16
19
|
};
|
|
20
|
+
function i(e) {
|
|
21
|
+
let t = {
|
|
22
|
+
...r.fieldMarkers,
|
|
23
|
+
...e?.fieldMarkers
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
...r,
|
|
27
|
+
...e,
|
|
28
|
+
fieldMarkers: t,
|
|
29
|
+
requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
|
|
30
|
+
};
|
|
31
|
+
}
|
|
17
32
|
//#endregion
|
|
18
|
-
export {
|
|
33
|
+
export { r as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, i as mergeSchedulePaymentDialogLabels };
|