@tesouro/embedded-components-react 0.5.132 → 0.5.134
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 +8 -0
- package/dist/index.d.ts +31 -0
- package/dist/lib/BankAccountsWidget.d.ts +13 -0
- package/dist/lib/CounterpartsWidget.d.ts +6 -0
- package/dist/lib/ProductsWidget.d.ts +6 -0
- package/dist/lib/ReceivablesWidget.d.ts +6 -0
- package/dist/lib/WidgetSuite.d.ts +13 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +17 -35
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index6.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index7.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index5.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index8.js +226 -139
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +110 -95
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index4.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +219 -241
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +34 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +203 -192
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +168 -144
- 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 +3270 -3265
- package/package.json +1 -1
|
@@ -2,169 +2,184 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Button as e, Skeleton as t, Tabs as
|
|
6
|
-
import { InlineErrorAlert as
|
|
5
|
+
import { Button as e, Skeleton as t, Tabs as ee, TabsContent as n, TabsList as r, TabsTrigger as i, Tooltip as a, TooltipContent as o, TooltipProvider as s, TooltipTrigger as c, Typography as l } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { InlineErrorAlert as u } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
7
7
|
import "../../../../shared/ui/dist/index.js";
|
|
8
|
-
import { DEFAULT_LABELS as
|
|
9
|
-
import { AccountDetailsPanel as
|
|
10
|
-
import { AccountActionsMenu as
|
|
11
|
-
import { ExportTransactionsDialog as
|
|
12
|
-
import { StatementsPanel as
|
|
13
|
-
import { TransactionsTable as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import { ChevronLeftIcon as
|
|
8
|
+
import { DEFAULT_LABELS as te } from "./index7.js";
|
|
9
|
+
import { AccountDetailsPanel as ne } from "./index2.js";
|
|
10
|
+
import { AccountActionsMenu as re, EditAccountDialog as ie } from "./index3.js";
|
|
11
|
+
import { ExportTransactionsDialog as ae } from "./index4.js";
|
|
12
|
+
import { StatementsPanel as oe } from "./index5.js";
|
|
13
|
+
import { TransactionsTable as se } from "./index6.js";
|
|
14
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
15
|
+
import { ChevronLeftIcon as m, HelpCircleIcon as h } from "lucide-react";
|
|
16
16
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js
|
|
17
|
-
function
|
|
17
|
+
function g({ labels: g, title: _, bankDisplayName: v, bankLogoSrc: y, bankLogoAlt: b, balanceLabel: x, balanceTestId: S, isBankingTaglineVisible: C, activeTab: w, transactionRows: T, statementRows: E, isStatementsLoading: D, isStatementsError: O, onStatementsRetry: k, isStatementsPaginationVisible: A, statementsPageSize: j, statementsPageSizeOptions: M, statementsRangeLabel: N = "", isStatementsPreviousPageDisabled: P, isStatementsNextPageDisabled: F, onStatementsPageSizeChange: I, onStatementsPreviousPageClick: L, onStatementsNextPageClick: R, showExport: z, isExportOpen: B, exportStartDate: V, exportEndDate: H, isExportDownloading: U, isExportDownloadDisabled: W, disabledExportStartDates: G, disabledExportEndDates: K, accountNumberLabel: ce, maskedAccountNumberLabel: le, accountNumberTestId: ue, routingNumberLabel: de, bankAddressLabel: fe, wireAccountNumberLabel: pe, domesticWireIntroLabel: me, domesticWireNoteLabel: he, thingsToKnowBodyLabel: ge, supportTeamHref: _e, isAccountNumberVisible: q, isAccountNumberCopied: ve, isRoutingNumberCopied: ye, isDomesticWireExpanded: be, isLoading: J, isError: Y, isEditOpen: xe, isEditDisabled: Se, isEditError: Ce, isSubmitting: we, editForm: Te, canEdit: Ee, onBack: De, onTabChange: Oe, onToggleAccountNumberVisibility: ke, onCopyAccountNumber: X, onCopyRoutingNumber: Z, onCopyBankName: Ae, onCopyBankAddress: je, onDomesticWireExpandedChange: Me, onEditOpenChange: Ne, onEditFormChange: Pe, onEditSubmit: Fe, onEditNicknameClick: Ie, onExportOpenChange: Q, onExportStartDateChange: Le, onExportEndDateChange: Re, onExportDownload: ze }) {
|
|
18
18
|
let $ = {
|
|
19
|
-
...
|
|
20
|
-
...
|
|
21
|
-
},
|
|
19
|
+
...te,
|
|
20
|
+
...g
|
|
21
|
+
}, Be = /* @__PURE__ */ p(e, {
|
|
22
22
|
type: "button",
|
|
23
23
|
variant: "ghost",
|
|
24
24
|
className: "ttw:h-auto ttw:justify-start ttw:gap-1 ttw:px-0 ttw:py-1 ttw:has-[>svg]:px-0 ttw:text-sm ttw:font-medium ttw:leading-5 ttw:text-primary ttw:hover:bg-transparent",
|
|
25
|
-
onClick:
|
|
26
|
-
children: [/* @__PURE__ */ m
|
|
25
|
+
onClick: De,
|
|
26
|
+
children: [/* @__PURE__ */ f(m, { className: "ttw:size-4" }), $.backToAccounts]
|
|
27
27
|
});
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ p("section", {
|
|
29
29
|
className: "ttw:w-full ttw:space-y-4",
|
|
30
30
|
children: [
|
|
31
|
-
!J && !Y ? /* @__PURE__ */
|
|
31
|
+
!J && !Y ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(ie, {
|
|
32
32
|
labels: $,
|
|
33
|
-
open:
|
|
34
|
-
form:
|
|
35
|
-
isSubmitting:
|
|
36
|
-
isError:
|
|
37
|
-
onOpenChange:
|
|
38
|
-
onFormChange:
|
|
39
|
-
onSubmit:
|
|
40
|
-
}), /* @__PURE__ */
|
|
33
|
+
open: xe,
|
|
34
|
+
form: Te,
|
|
35
|
+
isSubmitting: we,
|
|
36
|
+
isError: Ce,
|
|
37
|
+
onOpenChange: Ne,
|
|
38
|
+
onFormChange: Pe,
|
|
39
|
+
onSubmit: Fe
|
|
40
|
+
}), /* @__PURE__ */ f(ae, {
|
|
41
41
|
labels: $,
|
|
42
|
-
open:
|
|
43
|
-
startDate:
|
|
44
|
-
endDate:
|
|
45
|
-
isDownloading:
|
|
46
|
-
isDownloadDisabled:
|
|
47
|
-
disabledStartDates:
|
|
48
|
-
disabledEndDates:
|
|
42
|
+
open: B,
|
|
43
|
+
startDate: V,
|
|
44
|
+
endDate: H,
|
|
45
|
+
isDownloading: U,
|
|
46
|
+
isDownloadDisabled: W,
|
|
47
|
+
disabledStartDates: G,
|
|
48
|
+
disabledEndDates: K,
|
|
49
49
|
onOpenChange: Q,
|
|
50
|
-
onStartDateChange:
|
|
51
|
-
onEndDateChange:
|
|
52
|
-
onDownload:
|
|
50
|
+
onStartDateChange: Le,
|
|
51
|
+
onEndDateChange: Re,
|
|
52
|
+
onDownload: ze
|
|
53
53
|
})] }) : null,
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ p("div", {
|
|
55
55
|
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-4",
|
|
56
|
-
children: [
|
|
56
|
+
children: [Be, !J && !Y ? /* @__PURE__ */ f(re, {
|
|
57
57
|
labels: $,
|
|
58
|
-
canEdit:
|
|
59
|
-
onEditNickname:
|
|
58
|
+
canEdit: Ee,
|
|
59
|
+
onEditNickname: Ie
|
|
60
60
|
}) : null]
|
|
61
61
|
}),
|
|
62
|
-
J ? /* @__PURE__ */
|
|
62
|
+
J ? /* @__PURE__ */ p("div", {
|
|
63
63
|
className: "ttw:space-y-4",
|
|
64
64
|
"aria-label": $.loadingLabel,
|
|
65
|
-
children: [/* @__PURE__ */
|
|
66
|
-
}) : Y ? /* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ f(t, { className: "ttw:h-10 ttw:w-64" }), /* @__PURE__ */ f(t, { className: "ttw:h-64 ttw:w-full ttw:rounded-xl" })]
|
|
66
|
+
}) : Y ? /* @__PURE__ */ f(u, { children: $.errorTitle }) : /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p("div", {
|
|
67
67
|
className: "ttw:space-y-4",
|
|
68
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ p("div", {
|
|
69
69
|
className: "ttw:space-y-0.5",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ f(l, {
|
|
71
71
|
variant: "h2",
|
|
72
72
|
className: "ttw:leading-9 ttw:tracking-[-0.75px]",
|
|
73
|
-
children:
|
|
74
|
-
}),
|
|
73
|
+
children: _
|
|
74
|
+
}), C && v ? /* @__PURE__ */ p("div", {
|
|
75
75
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-1",
|
|
76
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ f(l, {
|
|
77
77
|
component: "span",
|
|
78
78
|
variant: "body2",
|
|
79
79
|
color: "muted",
|
|
80
80
|
className: "ttw:text-sm ttw:font-normal ttw:leading-5",
|
|
81
81
|
children: $.bankingTaglinePrefix
|
|
82
|
-
}),
|
|
83
|
-
src:
|
|
84
|
-
alt:
|
|
82
|
+
}), y ? /* @__PURE__ */ f("img", {
|
|
83
|
+
src: y,
|
|
84
|
+
alt: b ?? v,
|
|
85
85
|
className: "ttw:block ttw:h-auto ttw:max-w-[120px]"
|
|
86
|
-
}) : /* @__PURE__ */
|
|
86
|
+
}) : /* @__PURE__ */ f(l, {
|
|
87
87
|
component: "span",
|
|
88
88
|
variant: "body2",
|
|
89
89
|
color: "muted",
|
|
90
90
|
className: "ttw:text-sm ttw:font-normal ttw:leading-5",
|
|
91
|
-
children:
|
|
91
|
+
children: v
|
|
92
92
|
})]
|
|
93
93
|
}) : null]
|
|
94
|
-
}), /* @__PURE__ */
|
|
94
|
+
}), /* @__PURE__ */ p("div", {
|
|
95
95
|
className: "ttw:space-y-1.5",
|
|
96
|
-
children: [/* @__PURE__ */
|
|
96
|
+
children: [/* @__PURE__ */ p("div", {
|
|
97
97
|
className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-muted-foreground",
|
|
98
|
-
children: [/* @__PURE__ */
|
|
98
|
+
children: [/* @__PURE__ */ f("span", { children: $.availableBalanceLabel }), /* @__PURE__ */ f(s, { children: /* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(c, {
|
|
99
99
|
type: "button",
|
|
100
100
|
className: "ttw:inline-flex ttw:cursor-help",
|
|
101
101
|
"aria-label": $.availableBalanceTooltip,
|
|
102
|
-
children: /* @__PURE__ */
|
|
103
|
-
}), /* @__PURE__ */
|
|
104
|
-
}), /* @__PURE__ */
|
|
105
|
-
"data-testid":
|
|
102
|
+
children: /* @__PURE__ */ f(h, { className: "ttw:size-4" })
|
|
103
|
+
}), /* @__PURE__ */ f(o, { children: $.availableBalanceTooltip })] }) })]
|
|
104
|
+
}), /* @__PURE__ */ f("p", {
|
|
105
|
+
"data-testid": S,
|
|
106
106
|
className: "ttw:text-4xl ttw:font-bold ttw:text-primary",
|
|
107
|
-
children:
|
|
107
|
+
children: x
|
|
108
108
|
})]
|
|
109
109
|
})]
|
|
110
|
-
}), /* @__PURE__ */
|
|
111
|
-
value:
|
|
112
|
-
onValueChange: (e) =>
|
|
110
|
+
}), /* @__PURE__ */ p(ee, {
|
|
111
|
+
value: w,
|
|
112
|
+
onValueChange: (e) => Oe(e),
|
|
113
113
|
className: "ttw:gap-4",
|
|
114
114
|
children: [
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ p(r, { children: [
|
|
116
|
+
/* @__PURE__ */ f(i, {
|
|
117
117
|
value: "transactions",
|
|
118
118
|
children: $.transactionsTab
|
|
119
119
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ f(i, {
|
|
121
121
|
value: "statements",
|
|
122
122
|
children: $.statementsTab
|
|
123
123
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ f(i, {
|
|
125
125
|
value: "details",
|
|
126
126
|
children: $.detailsTab
|
|
127
127
|
})
|
|
128
128
|
] }),
|
|
129
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ f(n, {
|
|
130
130
|
value: "transactions",
|
|
131
|
-
children: /* @__PURE__ */
|
|
131
|
+
children: /* @__PURE__ */ f(se, {
|
|
132
132
|
labels: $,
|
|
133
|
-
rows:
|
|
134
|
-
showExport:
|
|
133
|
+
rows: T,
|
|
134
|
+
showExport: z,
|
|
135
135
|
onExportClick: () => Q(!0)
|
|
136
136
|
})
|
|
137
137
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ f(n, {
|
|
139
139
|
value: "statements",
|
|
140
|
-
children: /* @__PURE__ */
|
|
140
|
+
children: /* @__PURE__ */ f(oe, {
|
|
141
|
+
labels: $,
|
|
142
|
+
rows: E,
|
|
143
|
+
isLoading: D,
|
|
144
|
+
isError: O,
|
|
145
|
+
onRetry: k,
|
|
146
|
+
isPaginationVisible: A,
|
|
147
|
+
pageSize: j,
|
|
148
|
+
pageSizeOptions: M,
|
|
149
|
+
rangeLabel: N,
|
|
150
|
+
isPreviousPageDisabled: P,
|
|
151
|
+
isNextPageDisabled: F,
|
|
152
|
+
onPageSizeChange: I,
|
|
153
|
+
onPreviousPageClick: L,
|
|
154
|
+
onNextPageClick: R
|
|
155
|
+
})
|
|
141
156
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ f(n, {
|
|
143
158
|
value: "details",
|
|
144
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ f(ne, {
|
|
145
160
|
labels: $,
|
|
146
|
-
routingNumberLabel:
|
|
147
|
-
accountNumberDisplayLabel:
|
|
148
|
-
accountNumberTestId:
|
|
149
|
-
wireAccountNumberLabel:
|
|
150
|
-
bankNameLabel:
|
|
151
|
-
bankAddressLabel:
|
|
152
|
-
domesticWireIntroLabel:
|
|
153
|
-
domesticWireNoteLabel:
|
|
154
|
-
thingsToKnowBodyLabel:
|
|
155
|
-
supportTeamHref:
|
|
156
|
-
isAccountNumberVisible:
|
|
157
|
-
isAccountNumberCopied:
|
|
158
|
-
isRoutingNumberCopied:
|
|
159
|
-
isDomesticWireExpanded:
|
|
160
|
-
onDomesticWireExpandedChange:
|
|
161
|
-
onToggleAccountNumberVisibility:
|
|
161
|
+
routingNumberLabel: de,
|
|
162
|
+
accountNumberDisplayLabel: q ? ce : le,
|
|
163
|
+
accountNumberTestId: ue,
|
|
164
|
+
wireAccountNumberLabel: pe,
|
|
165
|
+
bankNameLabel: v,
|
|
166
|
+
bankAddressLabel: fe,
|
|
167
|
+
domesticWireIntroLabel: me,
|
|
168
|
+
domesticWireNoteLabel: he,
|
|
169
|
+
thingsToKnowBodyLabel: ge,
|
|
170
|
+
supportTeamHref: _e,
|
|
171
|
+
isAccountNumberVisible: q,
|
|
172
|
+
isAccountNumberCopied: ve,
|
|
173
|
+
isRoutingNumberCopied: ye,
|
|
174
|
+
isDomesticWireExpanded: be,
|
|
175
|
+
onDomesticWireExpandedChange: Me,
|
|
176
|
+
onToggleAccountNumberVisibility: ke,
|
|
162
177
|
onCopyAccountNumber: X,
|
|
163
178
|
onCopyRoutingNumber: Z,
|
|
164
179
|
onCopyWireAccountNumber: X,
|
|
165
180
|
onCopyWireRoutingNumber: Z,
|
|
166
|
-
onCopyBankName:
|
|
167
|
-
onCopyBankAddress:
|
|
181
|
+
onCopyBankName: Ae,
|
|
182
|
+
onCopyBankAddress: je
|
|
168
183
|
})
|
|
169
184
|
})
|
|
170
185
|
]
|
|
@@ -173,4 +188,4 @@ function v({ labels: v, title: y, bankDisplayName: b, bankLogoSrc: x, bankLogoAl
|
|
|
173
188
|
});
|
|
174
189
|
}
|
|
175
190
|
//#endregion
|
|
176
|
-
export {
|
|
191
|
+
export { g as AccountDetailsWidgetUi };
|
package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index4.js
CHANGED
|
@@ -7,7 +7,8 @@ var e = {
|
|
|
7
7
|
copyRoutingNumberToast: "Routing number copied to clipboard",
|
|
8
8
|
exportLoadingToast: "Exporting CSV...",
|
|
9
9
|
exportSuccessToast: "Transactions have been exported",
|
|
10
|
-
exportErrorToast: "Unable to export transactions"
|
|
10
|
+
exportErrorToast: "Unable to export transactions",
|
|
11
|
+
viewStatementErrorToast: "Unable to open statement"
|
|
11
12
|
};
|
|
12
13
|
//#endregion
|
|
13
14
|
export { e as DEFAULT_FEATURE_LABELS };
|
|
@@ -73,7 +73,6 @@ var c = {
|
|
|
73
73
|
columnTotalAmount: "Total amount",
|
|
74
74
|
columnStatus: "Status",
|
|
75
75
|
columnAddedOn: "Added on",
|
|
76
|
-
columnActions: "Actions",
|
|
77
76
|
openRow: (e) => `View bill — ${e}`,
|
|
78
77
|
duplicateBillsReviewButton: "Review duplicates",
|
|
79
78
|
searchPlaceholder: "Search by vendor name",
|