@tesouro/embedded-components-react 0.3.5 → 0.3.9
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 +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +93 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +23 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +36 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +22 -20
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js +27 -20
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/cardFaceSurface.js +2 -2
- 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
|
@@ -1,8 +1,20 @@
|
|
|
1
|
+
import { BillColumn as e } from "../../ui/dist/index59.js";
|
|
2
|
+
import "../../ui/dist/index.js";
|
|
1
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js
|
|
2
|
-
var
|
|
4
|
+
var t = {
|
|
3
5
|
root: "bill-pay-bills-tab",
|
|
4
6
|
uploadTray: "bill-pay-upload-tray",
|
|
5
7
|
detailsSheet: "bill-pay-details-sheet"
|
|
8
|
+
}, n = {
|
|
9
|
+
[e.Vendor]: "bill-pay-bills-cell-vendor",
|
|
10
|
+
[e.DueDate]: "bill-pay-bills-cell-due-date",
|
|
11
|
+
[e.ScheduledDate]: "bill-pay-bills-cell-scheduled-date",
|
|
12
|
+
[e.PaidDate]: "bill-pay-bills-cell-paid-date",
|
|
13
|
+
[e.Status]: "bill-pay-bills-cell-status",
|
|
14
|
+
[e.AmountDue]: "bill-pay-bills-cell-amount-due",
|
|
15
|
+
[e.AmountScheduled]: "bill-pay-bills-cell-amount-scheduled",
|
|
16
|
+
[e.AmountPaid]: "bill-pay-bills-cell-amount-paid",
|
|
17
|
+
[e.AddedOn]: "bill-pay-bills-cell-added-on"
|
|
6
18
|
};
|
|
7
19
|
//#endregion
|
|
8
|
-
export {
|
|
20
|
+
export { t as billsTabTestIds, n as billsTableCellTestIds };
|
|
@@ -18,160 +18,161 @@ import { BillDetailsContainer as s } from "./index43.js";
|
|
|
18
18
|
import "./index44.js";
|
|
19
19
|
import "./index50.js";
|
|
20
20
|
import "./index51.js";
|
|
21
|
-
import { DuplicateBillsContainer as
|
|
21
|
+
import { DuplicateBillsContainer as c } from "./index54.js";
|
|
22
22
|
import "./index55.js";
|
|
23
|
-
import { BILL_QUEUE_ORDER as
|
|
24
|
-
import { BILLS_TAB_LABELS_EN as
|
|
25
|
-
import { billsTabTestIds as
|
|
26
|
-
import { useBillsTable as
|
|
27
|
-
import { copyTextToClipboard as
|
|
28
|
-
import { useCallback as
|
|
23
|
+
import { BILL_QUEUE_ORDER as l, BillQueue as u } from "./index56.js";
|
|
24
|
+
import { BILLS_TAB_LABELS_EN as d } from "./index58.js";
|
|
25
|
+
import { billsTabTestIds as f, billsTableCellTestIds as p } from "./index59.js";
|
|
26
|
+
import { useBillsTable as ee } from "./index60.js";
|
|
27
|
+
import { copyTextToClipboard as te } from "./index57.js";
|
|
28
|
+
import { useCallback as ne, useEffect as m, useMemo as h, useState as g } from "react";
|
|
29
29
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
30
30
|
import { CalendarClockIcon as y, CheckIcon as b, FilePenIcon as x, ListIcon as S, LoaderCircleIcon as C } from "lucide-react";
|
|
31
31
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js
|
|
32
32
|
var w = "bills@business-banking.app", T = {
|
|
33
|
-
[
|
|
33
|
+
[u.Drafts]: /* @__PURE__ */ _(x, {
|
|
34
34
|
className: "ttw:size-4",
|
|
35
35
|
"aria-hidden": !0
|
|
36
36
|
}),
|
|
37
|
-
[
|
|
37
|
+
[u.Pending]: /* @__PURE__ */ _(C, {
|
|
38
38
|
className: "ttw:size-4",
|
|
39
39
|
"aria-hidden": !0
|
|
40
40
|
}),
|
|
41
|
-
[
|
|
41
|
+
[u.Scheduled]: /* @__PURE__ */ _(y, {
|
|
42
42
|
className: "ttw:size-4",
|
|
43
43
|
"aria-hidden": !0
|
|
44
44
|
}),
|
|
45
|
-
[
|
|
45
|
+
[u.Paid]: /* @__PURE__ */ _(b, {
|
|
46
46
|
className: "ttw:size-4",
|
|
47
47
|
"aria-hidden": !0
|
|
48
48
|
}),
|
|
49
|
-
[
|
|
49
|
+
[u.All]: /* @__PURE__ */ _(S, {
|
|
50
50
|
className: "ttw:size-4",
|
|
51
51
|
"aria-hidden": !0
|
|
52
52
|
})
|
|
53
53
|
};
|
|
54
|
-
function E({ labels:
|
|
54
|
+
function E({ labels: u, onEnqueueFiles: y, openPayableId: b, onOpenPayableHandled: x, poweredByBankName: S, duplicateBills: C }) {
|
|
55
55
|
let E = h(() => ({
|
|
56
|
+
...d,
|
|
56
57
|
...u,
|
|
57
|
-
...l,
|
|
58
58
|
queues: {
|
|
59
|
-
...
|
|
60
|
-
...
|
|
59
|
+
...d.queues,
|
|
60
|
+
...u?.queues
|
|
61
61
|
},
|
|
62
|
-
queueEmptyStates:
|
|
62
|
+
queueEmptyStates: l.reduce((e, t) => ({
|
|
63
63
|
...e,
|
|
64
64
|
[t]: {
|
|
65
|
-
...
|
|
66
|
-
...
|
|
65
|
+
...d.queueEmptyStates[t],
|
|
66
|
+
...u?.queueEmptyStates?.[t]
|
|
67
67
|
}
|
|
68
68
|
}), {})
|
|
69
|
-
}), [
|
|
70
|
-
if (t &&
|
|
71
|
-
|
|
69
|
+
}), [u]), [D, O] = g(!1), [k, A] = g(), [j, M] = g(!1), [N, P] = g(), [F, I] = g(!1), [L, R] = g(!1), [z, B] = g(!1), { initResponse: V } = r(), H = t(V?.scopes, [n.PayableReadOrg]), U = t(V?.scopes, [n.PayableWriteOrg]), W = !V || H, G = !V || U, K = ne((e, t) => {
|
|
70
|
+
if (t && G) {
|
|
71
|
+
A(e), M(!0);
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
}, [
|
|
76
|
-
enabled:
|
|
77
|
-
onOpenBill:
|
|
78
|
-
duplicateBillIds:
|
|
74
|
+
P(e), I(!0);
|
|
75
|
+
}, [G]), q = h(() => (C ?? []).filter((e) => e.isPossibleDuplicate).map((e) => e.id), [C]), J = ee({
|
|
76
|
+
enabled: W,
|
|
77
|
+
onOpenBill: K,
|
|
78
|
+
duplicateBillIds: q,
|
|
79
79
|
duplicateBadgeLabel: E.duplicateBadge
|
|
80
|
-
}),
|
|
80
|
+
}), Y = (e) => !!(e && q.includes(e)), X = q.length, re = X === 0 ? void 0 : X === 1 ? E.duplicateWarningOne : E.duplicateWarningMany(X), ie = h(() => l.map((e) => ({
|
|
81
81
|
id: e,
|
|
82
82
|
label: E.queues[e],
|
|
83
83
|
icon: T[e]
|
|
84
|
-
})), [E.queues]),
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
},
|
|
84
|
+
})), [E.queues]), ae = (e) => {
|
|
85
|
+
B(!1), P(e), I(!0);
|
|
86
|
+
}, oe = () => {
|
|
87
|
+
I(!1), R(!0);
|
|
88
|
+
}, se = h(() => ({
|
|
89
89
|
createButton: E.createButton,
|
|
90
90
|
addBill: { heading: E.nonEmptyHeading }
|
|
91
91
|
}), [E.createButton, E.nonEmptyHeading]), Z = () => {
|
|
92
|
-
|
|
92
|
+
O(!1), A(void 0), M(!0);
|
|
93
93
|
}, Q = (e) => {
|
|
94
|
-
|
|
94
|
+
O(!1), y?.(e);
|
|
95
95
|
}, $ = async () => {
|
|
96
|
-
await
|
|
96
|
+
await te(w) ? e.success(E.emailCopiedToast) : e.error(E.emailCopyFailedToast);
|
|
97
97
|
};
|
|
98
98
|
return m(() => {
|
|
99
|
-
b && (
|
|
99
|
+
b && (A(b), M(!0), x?.());
|
|
100
100
|
}, [x, b]), /* @__PURE__ */ v("div", {
|
|
101
|
-
"data-testid":
|
|
101
|
+
"data-testid": f.root,
|
|
102
102
|
children: [
|
|
103
103
|
/* @__PURE__ */ _(a, {
|
|
104
|
-
rows:
|
|
105
|
-
isLoading:
|
|
106
|
-
isError:
|
|
107
|
-
onRetry:
|
|
108
|
-
sorting:
|
|
109
|
-
onSortingChange:
|
|
110
|
-
pageSize:
|
|
111
|
-
onPageSizeChange:
|
|
112
|
-
hasNextPage:
|
|
113
|
-
hasPrevPage:
|
|
114
|
-
onNextPage:
|
|
115
|
-
onPrevPage:
|
|
116
|
-
filterTabs:
|
|
117
|
-
selectedFilterTabId:
|
|
118
|
-
onFilterTabChange:
|
|
119
|
-
searchValue:
|
|
120
|
-
onSearchChange:
|
|
121
|
-
visibleColumns:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
104
|
+
rows: J.rows,
|
|
105
|
+
isLoading: J.isLoading || !V,
|
|
106
|
+
isError: J.isError,
|
|
107
|
+
onRetry: J.onRetry,
|
|
108
|
+
sorting: J.sorting,
|
|
109
|
+
onSortingChange: J.onSortingChange,
|
|
110
|
+
pageSize: J.pageSize,
|
|
111
|
+
onPageSizeChange: J.onPageSizeChange,
|
|
112
|
+
hasNextPage: J.hasNextPage,
|
|
113
|
+
hasPrevPage: J.hasPrevPage,
|
|
114
|
+
onNextPage: J.onNextPage,
|
|
115
|
+
onPrevPage: J.onPrevPage,
|
|
116
|
+
filterTabs: ie,
|
|
117
|
+
selectedFilterTabId: J.selectedFilterTabId,
|
|
118
|
+
onFilterTabChange: J.onFilterTabChange,
|
|
119
|
+
searchValue: J.searchValue,
|
|
120
|
+
onSearchChange: J.onSearchChange,
|
|
121
|
+
visibleColumns: J.visibleColumns,
|
|
122
|
+
cellTestIds: p,
|
|
123
|
+
isSearchActive: J.isSearchActive,
|
|
124
|
+
showAddPanelWhenEmpty: J.showAddPanelWhenEmpty,
|
|
125
|
+
emptyState: E.queueEmptyStates[J.selectedFilterTabId],
|
|
126
|
+
onCreateClick: G ? () => O(!0) : void 0,
|
|
127
|
+
onEnterManually: G ? Z : void 0,
|
|
128
|
+
onFilesSelected: G ? Q : void 0,
|
|
128
129
|
maxFiles: 10,
|
|
129
130
|
emailAddress: w,
|
|
130
131
|
onCopyEmail: $,
|
|
131
|
-
duplicateWarning:
|
|
132
|
-
onReviewDuplicates: () =>
|
|
133
|
-
labels:
|
|
132
|
+
duplicateWarning: re,
|
|
133
|
+
onReviewDuplicates: () => B(!0),
|
|
134
|
+
labels: se
|
|
134
135
|
}),
|
|
135
|
-
|
|
136
|
-
open:
|
|
137
|
-
onOpenChange:
|
|
136
|
+
z ? /* @__PURE__ */ _(c, {
|
|
137
|
+
open: z,
|
|
138
|
+
onOpenChange: B,
|
|
138
139
|
bills: C,
|
|
139
|
-
canManageDuplicates:
|
|
140
|
-
onOpenBill:
|
|
140
|
+
canManageDuplicates: G,
|
|
141
|
+
onOpenBill: ae
|
|
141
142
|
}) : null,
|
|
142
|
-
|
|
143
|
-
open:
|
|
144
|
-
onOpenChange:
|
|
143
|
+
G ? /* @__PURE__ */ _(i, {
|
|
144
|
+
open: D,
|
|
145
|
+
onOpenChange: O,
|
|
145
146
|
onFilesSelected: Q,
|
|
146
147
|
maxFiles: 10,
|
|
147
148
|
onEnterManually: Z,
|
|
148
149
|
emailAddress: w,
|
|
149
150
|
onCopyEmail: $,
|
|
150
|
-
labels: { heading:
|
|
151
|
+
labels: { heading: J.hasAnyBills ? E.nonEmptyHeading : E.emptyHeading }
|
|
151
152
|
}) : null,
|
|
152
|
-
|
|
153
|
-
open:
|
|
154
|
-
onOpenChange:
|
|
155
|
-
payableId:
|
|
156
|
-
isPossibleDuplicate:
|
|
153
|
+
j ? /* @__PURE__ */ _(o, {
|
|
154
|
+
open: j,
|
|
155
|
+
onOpenChange: M,
|
|
156
|
+
payableId: k,
|
|
157
|
+
isPossibleDuplicate: Y(k)
|
|
157
158
|
}) : null,
|
|
158
|
-
|
|
159
|
-
open:
|
|
160
|
-
onOpenChange:
|
|
161
|
-
payableId:
|
|
162
|
-
onClose: () =>
|
|
163
|
-
onExpand:
|
|
164
|
-
isPossibleDuplicate:
|
|
165
|
-
testId:
|
|
159
|
+
F ? /* @__PURE__ */ _(s, {
|
|
160
|
+
open: F,
|
|
161
|
+
onOpenChange: I,
|
|
162
|
+
payableId: N,
|
|
163
|
+
onClose: () => I(!1),
|
|
164
|
+
onExpand: oe,
|
|
165
|
+
isPossibleDuplicate: Y(N),
|
|
166
|
+
testId: f.detailsSheet,
|
|
166
167
|
poweredByBankName: S
|
|
167
168
|
}) : null,
|
|
168
|
-
|
|
169
|
-
open:
|
|
170
|
-
onOpenChange:
|
|
171
|
-
payableId:
|
|
169
|
+
L ? /* @__PURE__ */ _(o, {
|
|
170
|
+
open: L,
|
|
171
|
+
onOpenChange: R,
|
|
172
|
+
payableId: N,
|
|
172
173
|
readOnly: !0,
|
|
173
174
|
poweredByBankName: S,
|
|
174
|
-
isPossibleDuplicate:
|
|
175
|
+
isPossibleDuplicate: Y(N)
|
|
175
176
|
}) : null
|
|
176
177
|
]
|
|
177
178
|
});
|
|
@@ -2,24 +2,34 @@ import { Dialog as e, DialogContent as t, DialogDescription as n, DialogHeader a
|
|
|
2
2
|
import { AddBillPanel as a } from "./index7.js";
|
|
3
3
|
import "./index8.js";
|
|
4
4
|
import { ADD_BILL_DIALOG_LABELS_EN as o } from "./index9.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useMemo as s } from "react";
|
|
6
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js
|
|
7
|
-
function
|
|
8
|
-
let
|
|
8
|
+
function u({ open: u, onOpenChange: d, dialogLabels: f, ...p }) {
|
|
9
|
+
let m = {
|
|
9
10
|
...o,
|
|
10
|
-
...
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
...f
|
|
12
|
+
}, h = s(() => ({
|
|
13
|
+
...p.labels,
|
|
14
|
+
dropzone: {
|
|
15
|
+
fileInput: m.dropzoneFileInput,
|
|
16
|
+
...p.labels?.dropzone
|
|
17
|
+
}
|
|
18
|
+
}), [p.labels, m.dropzoneFileInput]);
|
|
19
|
+
return /* @__PURE__ */ c(e, {
|
|
20
|
+
open: u,
|
|
21
|
+
onOpenChange: d,
|
|
22
|
+
children: /* @__PURE__ */ l(t, {
|
|
16
23
|
className: "ttw:sm:max-w-2xl",
|
|
17
|
-
children: [/* @__PURE__ */
|
|
24
|
+
children: [/* @__PURE__ */ l(r, {
|
|
18
25
|
className: "ttw:sr-only",
|
|
19
|
-
children: [/* @__PURE__ */
|
|
20
|
-
}), /* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ c(i, { children: m.dialogTitle }), /* @__PURE__ */ c(n, { children: m.dialogDescription })]
|
|
27
|
+
}), /* @__PURE__ */ c(a, {
|
|
28
|
+
...p,
|
|
29
|
+
labels: h
|
|
30
|
+
})]
|
|
21
31
|
})
|
|
22
32
|
});
|
|
23
33
|
}
|
|
24
34
|
//#endregion
|
|
25
|
-
export {
|
|
35
|
+
export { u as AddBillDialog, u as default };
|
|
@@ -38,7 +38,7 @@ var ae = [
|
|
|
38
38
|
p.AmountDue,
|
|
39
39
|
p.AddedOn
|
|
40
40
|
];
|
|
41
|
-
function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce, pageSize: le, onPageSizeChange: ue, pageSizeOptions: T = ae, pageInfo:
|
|
41
|
+
function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce, pageSize: le, onPageSizeChange: ue, pageSizeOptions: T = ae, pageInfo: de, hasNextPage: E, hasPrevPage: D, onNextPage: O, onPrevPage: k, filterTabs: A, selectedFilterTabId: j, onFilterTabChange: M, searchValue: N, onSearchChange: P, visibleColumns: F = x, cellTestIds: I, isSearchActive: L, showAddPanelWhenEmpty: R, emptyState: z, onCreateClick: B, onRetry: V, onFilesSelected: H, maxFiles: U, onEnterManually: W, uploadStatus: G, uploadErrorMessage: K, emailAddress: q, onCopyEmail: J, labels: Y, duplicateWarning: X, onReviewDuplicates: Z }) {
|
|
42
42
|
let Q = m(() => ({
|
|
43
43
|
...d,
|
|
44
44
|
...Y,
|
|
@@ -69,12 +69,16 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
69
69
|
title: e,
|
|
70
70
|
labels: Q.sortableHeader
|
|
71
71
|
});
|
|
72
|
-
}, t = (e) => function({ row:
|
|
73
|
-
return
|
|
74
|
-
|
|
72
|
+
}, t = (e, t) => function({ row: n }) {
|
|
73
|
+
return /* @__PURE__ */ h("span", {
|
|
74
|
+
"data-testid": I?.[t],
|
|
75
|
+
children: n.original[e] || /* @__PURE__ */ h(u, { labels: Q.missingValue })
|
|
76
|
+
});
|
|
77
|
+
}, n = (e, t) => function({ row: n }) {
|
|
75
78
|
return /* @__PURE__ */ h("div", {
|
|
76
79
|
className: "ttw:text-right",
|
|
77
|
-
|
|
80
|
+
"data-testid": I?.[t],
|
|
81
|
+
children: n.original[e] || /* @__PURE__ */ h(u, { labels: Q.missingValue })
|
|
78
82
|
});
|
|
79
83
|
}, r = (e) => function() {
|
|
80
84
|
return /* @__PURE__ */ h("div", {
|
|
@@ -87,25 +91,25 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
87
91
|
accessorKey: "vendorLabel",
|
|
88
92
|
enableSorting: !0,
|
|
89
93
|
header: e(Q.columnVendor),
|
|
90
|
-
cell: t("vendorLabel")
|
|
94
|
+
cell: t("vendorLabel", p.Vendor)
|
|
91
95
|
},
|
|
92
96
|
[p.DueDate]: {
|
|
93
97
|
accessorKey: "dueDateLabel",
|
|
94
98
|
enableSorting: !0,
|
|
95
99
|
header: e(Q.columnDueDate),
|
|
96
|
-
cell: t("dueDateLabel")
|
|
100
|
+
cell: t("dueDateLabel", p.DueDate)
|
|
97
101
|
},
|
|
98
102
|
[p.ScheduledDate]: {
|
|
99
103
|
accessorKey: "scheduledDateLabel",
|
|
100
104
|
enableSorting: !0,
|
|
101
105
|
header: e(Q.columnScheduledDate),
|
|
102
|
-
cell: t("scheduledDateLabel")
|
|
106
|
+
cell: t("scheduledDateLabel", p.ScheduledDate)
|
|
103
107
|
},
|
|
104
108
|
[p.PaidDate]: {
|
|
105
109
|
accessorKey: "paidDateLabel",
|
|
106
110
|
enableSorting: !1,
|
|
107
111
|
header: Q.columnPaidDate,
|
|
108
|
-
cell: t("paidDateLabel")
|
|
112
|
+
cell: t("paidDateLabel", p.PaidDate)
|
|
109
113
|
},
|
|
110
114
|
[p.Status]: {
|
|
111
115
|
accessorKey: "status",
|
|
@@ -113,6 +117,7 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
113
117
|
header: Q.columnStatus,
|
|
114
118
|
cell: ({ row: e }) => /* @__PURE__ */ g("div", {
|
|
115
119
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
120
|
+
"data-testid": I?.[p.Status],
|
|
116
121
|
children: [/* @__PURE__ */ h(re, {
|
|
117
122
|
status: e.original.status,
|
|
118
123
|
tone: e.original.statusTone,
|
|
@@ -124,28 +129,28 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
124
129
|
accessorKey: "amountDueLabel",
|
|
125
130
|
enableSorting: !1,
|
|
126
131
|
header: r(Q.columnAmountDue),
|
|
127
|
-
cell: n("amountDueLabel")
|
|
132
|
+
cell: n("amountDueLabel", p.AmountDue)
|
|
128
133
|
},
|
|
129
134
|
[p.AmountScheduled]: {
|
|
130
135
|
accessorKey: "amountScheduledLabel",
|
|
131
136
|
enableSorting: !1,
|
|
132
137
|
header: r(Q.columnAmountScheduled),
|
|
133
|
-
cell: n("amountScheduledLabel")
|
|
138
|
+
cell: n("amountScheduledLabel", p.AmountScheduled)
|
|
134
139
|
},
|
|
135
140
|
[p.AmountPaid]: {
|
|
136
141
|
accessorKey: "amountPaidLabel",
|
|
137
142
|
enableSorting: !1,
|
|
138
143
|
header: r(Q.columnAmountPaid),
|
|
139
|
-
cell: n("amountPaidLabel")
|
|
144
|
+
cell: n("amountPaidLabel", p.AmountPaid)
|
|
140
145
|
},
|
|
141
146
|
[p.AddedOn]: {
|
|
142
147
|
accessorKey: "addedOnLabel",
|
|
143
148
|
enableSorting: !0,
|
|
144
149
|
header: e(Q.columnAddedOn),
|
|
145
|
-
cell: t("addedOnLabel")
|
|
150
|
+
cell: t("addedOnLabel", p.AddedOn)
|
|
146
151
|
}
|
|
147
152
|
};
|
|
148
|
-
}, [Q]),
|
|
153
|
+
}, [Q, I]), fe = m(() => [...oe.filter((e) => F.includes(e)).map((e) => $[e]), {
|
|
149
154
|
id: "actions",
|
|
150
155
|
enableSorting: !1,
|
|
151
156
|
header: () => /* @__PURE__ */ h("span", {
|
|
@@ -167,8 +172,8 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
167
172
|
}], [
|
|
168
173
|
$,
|
|
169
174
|
Q,
|
|
170
|
-
|
|
171
|
-
]),
|
|
175
|
+
F
|
|
176
|
+
]), pe = !!(B && H) && !C && !w && !L && S.length === 0 && R === !0, me = /* @__PURE__ */ h("div", {
|
|
172
177
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
173
178
|
children: /* @__PURE__ */ g("div", {
|
|
174
179
|
className: "ttw:relative ttw:w-80",
|
|
@@ -177,8 +182,8 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
177
182
|
type: "search",
|
|
178
183
|
"aria-label": Q.searchLabel,
|
|
179
184
|
placeholder: Q.searchPlaceholder,
|
|
180
|
-
value:
|
|
181
|
-
onChange: (e) =>
|
|
185
|
+
value: N,
|
|
186
|
+
onChange: (e) => P(e.target.value)
|
|
182
187
|
})]
|
|
183
188
|
})
|
|
184
189
|
});
|
|
@@ -201,14 +206,14 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
201
206
|
}) : null
|
|
202
207
|
]
|
|
203
208
|
}) : null, /* @__PURE__ */ g(ee, {
|
|
204
|
-
value:
|
|
205
|
-
onValueChange:
|
|
209
|
+
value: j,
|
|
210
|
+
onValueChange: M,
|
|
206
211
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
207
212
|
children: [/* @__PURE__ */ g("div", {
|
|
208
213
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
209
214
|
children: [/* @__PURE__ */ h(ne, {
|
|
210
215
|
"aria-label": Q.filterTabsLabel,
|
|
211
|
-
children:
|
|
216
|
+
children: A.map((e) => /* @__PURE__ */ g(o, {
|
|
212
217
|
value: e.id,
|
|
213
218
|
className: "ttw:min-w-28",
|
|
214
219
|
children: [e.icon, e.label]
|
|
@@ -223,7 +228,7 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
223
228
|
description: Q.errorDescription,
|
|
224
229
|
retryLabel: V ? Q.errorRetry : void 0,
|
|
225
230
|
onRetry: V
|
|
226
|
-
}) :
|
|
231
|
+
}) : pe && B && H ? /* @__PURE__ */ h("div", {
|
|
227
232
|
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
228
233
|
children: q && J ? /* @__PURE__ */ h(l, {
|
|
229
234
|
emailAddress: q,
|
|
@@ -245,7 +250,7 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
245
250
|
labels: Q.addBill
|
|
246
251
|
})
|
|
247
252
|
}) : /* @__PURE__ */ h(r, {
|
|
248
|
-
columns:
|
|
253
|
+
columns: fe,
|
|
249
254
|
data: S,
|
|
250
255
|
isLoading: C,
|
|
251
256
|
sorting: se,
|
|
@@ -253,13 +258,13 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
253
258
|
pageSize: le,
|
|
254
259
|
onPageSizeChange: ue,
|
|
255
260
|
pageSizeOptions: T,
|
|
256
|
-
pageInfo:
|
|
257
|
-
hasNextPage:
|
|
258
|
-
hasPrevPage:
|
|
259
|
-
onNextPage:
|
|
260
|
-
onPrevPage:
|
|
261
|
+
pageInfo: de,
|
|
262
|
+
hasNextPage: E,
|
|
263
|
+
hasPrevPage: D,
|
|
264
|
+
onNextPage: O,
|
|
265
|
+
onPrevPage: k,
|
|
261
266
|
onRowClick: (e) => e.onOpen(),
|
|
262
|
-
filterComponent:
|
|
267
|
+
filterComponent: me,
|
|
263
268
|
children: L ? /* @__PURE__ */ h(s, {
|
|
264
269
|
title: Q.filteredEmptyTitle,
|
|
265
270
|
description: Q.filteredEmptyDescription
|
|
@@ -268,9 +273,9 @@ function S({ rows: S, isLoading: C, isError: w, sorting: se, onSortingChange: ce
|
|
|
268
273
|
description: z.description
|
|
269
274
|
}) : void 0
|
|
270
275
|
});
|
|
271
|
-
return
|
|
276
|
+
return A.map((t) => /* @__PURE__ */ h(te, {
|
|
272
277
|
value: t.id,
|
|
273
|
-
children: t.id ===
|
|
278
|
+
children: t.id === j ? e : null
|
|
274
279
|
}, t.id));
|
|
275
280
|
})()]
|
|
276
281
|
})]
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js
|
|
2
2
|
var e = {
|
|
3
3
|
dialogTitle: "Add a bill",
|
|
4
|
-
dialogDescription: "Upload a bill to scan its details automatically, or enter it manually."
|
|
4
|
+
dialogDescription: "Upload a bill to scan its details automatically, or enter it manually.",
|
|
5
|
+
dropzoneFileInput: "Choose a file to upload for this new bill"
|
|
5
6
|
};
|
|
6
7
|
//#endregion
|
|
7
8
|
export { e as ADD_BILL_DIALOG_LABELS_EN };
|
|
@@ -19,13 +19,14 @@ import { useMemo as h } from "react";
|
|
|
19
19
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
20
20
|
import { CreditCardIcon as v, EyeIcon as y, EyeOffIcon as b, PowerIcon as x } from "lucide-react";
|
|
21
21
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js
|
|
22
|
-
function S({ labels: S, state: C, nickname: w, statusLabel: T, statusTone: E, formFactorLabel: D, cardMenu: O, onClose: k, bankLogoSrc: A, bankLogoAlt: j, cardholderName: M, maskedCardNumber: N, programLabel: P,
|
|
23
|
-
let J = h(() => f(S), [S]), Y = !!
|
|
22
|
+
function S({ labels: S, state: C, nickname: w, statusLabel: T, statusTone: E, formFactorLabel: D, cardMenu: O, onClose: k, bankLogoSrc: A, bankLogoAlt: j, cardholderName: M, maskedCardNumber: N, programLabel: P, cardFaceStatusLabel: F, billingAddress: I, allowedCategories: L, onCopy: R, onActivate: z, onViewCard: B, onHideCard: V, revealState: H = "hidden", revealedCardNumber: U, revealedExpirationDate: W, revealedSecurityCode: G, onRetry: K, className: q }) {
|
|
23
|
+
let J = h(() => f(S), [S]), Y = !!L?.length, X = H === "revealed", Z = X ? V : B, Q = /* @__PURE__ */ g(u, {
|
|
24
24
|
bankLogoSrc: A,
|
|
25
25
|
bankLogoAlt: j ?? J.cardFace.bankLogoAlt,
|
|
26
26
|
cardholderName: M ?? "",
|
|
27
27
|
maskedCardNumber: N ?? "",
|
|
28
|
-
programLabel: P ?? ""
|
|
28
|
+
programLabel: P ?? "",
|
|
29
|
+
statusLabel: F
|
|
29
30
|
});
|
|
30
31
|
return /* @__PURE__ */ _("div", {
|
|
31
32
|
"data-testid": s.panel,
|
|
@@ -62,7 +63,7 @@ function S({ labels: S, state: C, nickname: w, statusLabel: T, statusTone: E, fo
|
|
|
62
63
|
className: "ttw:flex ttw:items-center ttw:justify-center ttw:bg-muted ttw:px-4 ttw:py-5",
|
|
63
64
|
children: /* @__PURE__ */ _("div", {
|
|
64
65
|
className: r("ttw:flex ttw:flex-col ttw:gap-4", l),
|
|
65
|
-
children: [
|
|
66
|
+
children: [B ? /* @__PURE__ */ g(m, {
|
|
66
67
|
isFlipped: X,
|
|
67
68
|
front: Q,
|
|
68
69
|
back: /* @__PURE__ */ g(p, {
|
|
@@ -70,26 +71,27 @@ function S({ labels: S, state: C, nickname: w, statusLabel: T, statusTone: E, fo
|
|
|
70
71
|
cardNumber: U,
|
|
71
72
|
expirationDate: W,
|
|
72
73
|
securityCode: G,
|
|
73
|
-
onCopy:
|
|
74
|
+
onCopy: R
|
|
74
75
|
})
|
|
75
|
-
}) : Q,
|
|
76
|
+
}) : Q, z || B ? /* @__PURE__ */ _("div", {
|
|
76
77
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
77
78
|
children: [
|
|
78
|
-
|
|
79
|
+
z ? /* @__PURE__ */ _(t, {
|
|
79
80
|
type: "button",
|
|
80
|
-
|
|
81
|
+
className: "ttw:self-center",
|
|
82
|
+
onClick: z,
|
|
81
83
|
children: [/* @__PURE__ */ g(x, {
|
|
82
84
|
className: "ttw:size-4",
|
|
83
85
|
"aria-hidden": "true"
|
|
84
86
|
}), J.actions.activateCard]
|
|
85
87
|
}) : null,
|
|
86
|
-
|
|
88
|
+
B ? /* @__PURE__ */ g("div", {
|
|
87
89
|
className: "ttw:flex ttw:gap-2",
|
|
88
90
|
children: /* @__PURE__ */ _(t, {
|
|
89
91
|
type: "button",
|
|
90
92
|
variant: "outline",
|
|
91
93
|
className: "ttw:flex-1",
|
|
92
|
-
disabled:
|
|
94
|
+
disabled: !Z,
|
|
93
95
|
loading: H === "revealing",
|
|
94
96
|
onClick: Z,
|
|
95
97
|
children: [g(X ? b : y, {
|
|
@@ -107,30 +109,30 @@ function S({ labels: S, state: C, nickname: w, statusLabel: T, statusTone: E, fo
|
|
|
107
109
|
children: [
|
|
108
110
|
/* @__PURE__ */ g(d, {
|
|
109
111
|
label: J.fields.cardholder,
|
|
110
|
-
copyAriaLabel: M &&
|
|
111
|
-
onCopy: M &&
|
|
112
|
+
copyAriaLabel: M && R ? J.fields.copyCardholderAriaLabel : void 0,
|
|
113
|
+
onCopy: M && R ? () => R(M) : void 0,
|
|
112
114
|
children: M ?? J.fields.emptyValue
|
|
113
115
|
}),
|
|
114
116
|
/* @__PURE__ */ g(d, {
|
|
115
117
|
label: J.fields.nickname,
|
|
116
|
-
copyAriaLabel: w &&
|
|
117
|
-
onCopy: w &&
|
|
118
|
-
isLast: !
|
|
118
|
+
copyAriaLabel: w && R ? J.fields.copyNicknameAriaLabel : void 0,
|
|
119
|
+
onCopy: w && R ? () => R(w) : void 0,
|
|
120
|
+
isLast: !I && !Y,
|
|
119
121
|
children: w ?? J.fields.emptyValue
|
|
120
122
|
}),
|
|
121
|
-
|
|
123
|
+
I ? /* @__PURE__ */ g(d, {
|
|
122
124
|
label: J.fields.billingAddress,
|
|
123
|
-
copyAriaLabel:
|
|
124
|
-
onCopy:
|
|
125
|
+
copyAriaLabel: R ? J.fields.copyBillingAddressAriaLabel : void 0,
|
|
126
|
+
onCopy: R ? () => R(I) : void 0,
|
|
125
127
|
isLast: !Y,
|
|
126
|
-
children:
|
|
128
|
+
children: I
|
|
127
129
|
}) : null,
|
|
128
130
|
Y ? /* @__PURE__ */ g(d, {
|
|
129
131
|
label: J.fields.allowedCategories,
|
|
130
132
|
isLast: !0,
|
|
131
133
|
children: /* @__PURE__ */ g("div", {
|
|
132
134
|
className: "ttw:flex ttw:flex-wrap ttw:gap-2",
|
|
133
|
-
children:
|
|
135
|
+
children: L?.map((t) => /* @__PURE__ */ g(e, {
|
|
134
136
|
variant: "secondary",
|
|
135
137
|
children: t
|
|
136
138
|
}, t))
|
|
@@ -1,38 +1,45 @@
|
|
|
1
1
|
import { cn as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { cardDetailsWidgetUiTestIds as t } from "./testIds.js";
|
|
3
|
-
import {
|
|
4
|
-
import { CardFaceGlow as
|
|
5
|
-
import { jsx as
|
|
3
|
+
import { CARD_FACE_STATUS_PILL_CLASS_NAME as n, CARD_FACE_SURFACE_CLASS_NAME as r } from "./cardFaceSurface.js";
|
|
4
|
+
import { CardFaceGlow as i } from "./CardFaceGlow.js";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
function s({ bankLogoSrc: s, bankLogoAlt: c, cardholderName: l, maskedCardNumber: u, programLabel: d, statusLabel: f, className: p }) {
|
|
8
|
+
return /* @__PURE__ */ o("div", {
|
|
9
9
|
"data-testid": t.cardFace,
|
|
10
|
-
className: e(
|
|
10
|
+
className: e(r, "ttw:justify-between", p),
|
|
11
11
|
children: [
|
|
12
|
-
/* @__PURE__ */ i
|
|
13
|
-
|
|
14
|
-
src:
|
|
15
|
-
alt:
|
|
12
|
+
/* @__PURE__ */ a(i, {}),
|
|
13
|
+
s ? /* @__PURE__ */ a("img", {
|
|
14
|
+
src: s,
|
|
15
|
+
alt: c,
|
|
16
16
|
className: "ttw:relative ttw:h-8 ttw:w-auto ttw:max-w-[60%] ttw:object-contain ttw:object-left"
|
|
17
|
-
}) : /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */ a("div", {
|
|
17
|
+
}) : /* @__PURE__ */ a("span", { className: "ttw:relative ttw:h-8" }),
|
|
18
|
+
f ? /* @__PURE__ */ a("div", {
|
|
19
|
+
className: "ttw:pointer-events-none ttw:absolute ttw:inset-0 ttw:flex ttw:items-center ttw:justify-center",
|
|
20
|
+
children: /* @__PURE__ */ a("span", {
|
|
21
|
+
className: n,
|
|
22
|
+
children: f
|
|
23
|
+
})
|
|
24
|
+
}) : null,
|
|
25
|
+
/* @__PURE__ */ o("div", {
|
|
19
26
|
className: "ttw:relative ttw:flex ttw:items-end ttw:justify-between ttw:gap-3",
|
|
20
|
-
children: [/* @__PURE__ */
|
|
27
|
+
children: [/* @__PURE__ */ o("div", {
|
|
21
28
|
className: "ttw:min-w-0",
|
|
22
|
-
children: [/* @__PURE__ */
|
|
29
|
+
children: [/* @__PURE__ */ a("p", {
|
|
23
30
|
className: "ttw:truncate ttw:text-base ttw:font-medium ttw:text-white",
|
|
24
|
-
children: c
|
|
25
|
-
}), /* @__PURE__ */ i("p", {
|
|
26
|
-
className: "ttw:mt-1 ttw:truncate ttw:text-lg ttw:tracking-wide ttw:text-white/90",
|
|
27
31
|
children: l
|
|
32
|
+
}), /* @__PURE__ */ a("p", {
|
|
33
|
+
className: "ttw:mt-1 ttw:truncate ttw:text-lg ttw:tracking-wide ttw:text-white/90",
|
|
34
|
+
children: u
|
|
28
35
|
})]
|
|
29
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ a("p", {
|
|
30
37
|
className: "ttw:shrink-0 ttw:text-[10px] ttw:font-medium ttw:text-white/90",
|
|
31
|
-
children:
|
|
38
|
+
children: d
|
|
32
39
|
})]
|
|
33
40
|
})
|
|
34
41
|
]
|
|
35
42
|
});
|
|
36
43
|
}
|
|
37
44
|
//#endregion
|
|
38
|
-
export {
|
|
45
|
+
export { s as CardFace };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/cardFaceSurface.js
|
|
2
|
-
var e = "ttw:w-[300px]", t = "ttw:h-[190px]", n = `ttw:relative ttw:flex ${t} ${e} ttw:flex-col ttw:overflow-hidden ttw:rounded-xl ttw:bg-[#101317] ttw:p-4
|
|
2
|
+
var e = "ttw:w-[300px]", t = "ttw:h-[190px]", n = `ttw:relative ttw:flex ${t} ${e} ttw:flex-col ttw:overflow-hidden ttw:rounded-xl ttw:bg-[#101317] ttw:p-4`, r = "ttw:rounded-full ttw:bg-white/90 ttw:px-4 ttw:py-2 ttw:text-sm ttw:font-medium ttw:text-[#101317]";
|
|
3
3
|
//#endregion
|
|
4
|
-
export { t as CARD_FACE_HEIGHT_CLASS_NAME, n as CARD_FACE_SURFACE_CLASS_NAME, e as CARD_FACE_WIDTH_CLASS_NAME };
|
|
4
|
+
export { t as CARD_FACE_HEIGHT_CLASS_NAME, r as CARD_FACE_STATUS_PILL_CLASS_NAME, n as CARD_FACE_SURFACE_CLASS_NAME, e as CARD_FACE_WIDTH_CLASS_NAME };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.3.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.3.9", n = "ac355552a0e1fc75bf6f82e8ba0067fbbf500666", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|