@tesouro/embedded-components-react 0.5.136 → 0.5.138
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.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +26 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +145 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +214 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +5 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +113 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +93 -79
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,43 @@
|
|
|
1
|
-
import { Alert as e, AlertTitle as t, Button as n, DataTable as r, DataTableSortableHeader as i, Input as a, Tabs as o, TabsContent as
|
|
1
|
+
import { Alert as e, AlertTitle as t, Button as n, DataTable as r, DataTableSortableHeader as i, Input as a, Skeleton as ee, Tabs as o, TabsContent as te, TabsList as ne, TabsTrigger as re, Tooltip as s, TooltipContent as c, TooltipProvider as l, TooltipTrigger as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { EmptyState as d } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
-
import { ErrorState as
|
|
3
|
+
import { ErrorState as ie } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
4
|
import "../../../shared/ui/dist/index.js";
|
|
5
|
-
import { getAcceptedBillUploadFiles as
|
|
5
|
+
import { getAcceptedBillUploadFiles as ae } from "./index3.js";
|
|
6
6
|
import "./index5.js";
|
|
7
7
|
import { AddBillPanel as f } from "./index7.js";
|
|
8
8
|
import "./index8.js";
|
|
9
|
-
import { BillStatusBadge as
|
|
9
|
+
import { BillStatusBadge as oe } from "./index19.js";
|
|
10
10
|
import "./index20.js";
|
|
11
|
-
import { DueDateValue as
|
|
11
|
+
import { DueDateValue as se } from "./index22.js";
|
|
12
12
|
import "./index23.js";
|
|
13
|
-
import { MissingValue as
|
|
13
|
+
import { MissingValue as p } from "./index31.js";
|
|
14
14
|
import "./index32.js";
|
|
15
|
-
import { NoValue as
|
|
15
|
+
import { NoValue as m } from "./index34.js";
|
|
16
16
|
import "./index35.js";
|
|
17
17
|
import { BILLS_SCREEN_LABELS_EN as h, BILLS_SCREEN_UPLOAD_ACCEPT as g } from "./index36.js";
|
|
18
|
-
import { BillsFilterBar as
|
|
18
|
+
import { BillsFilterBar as ce } from "./index79.js";
|
|
19
19
|
import "./index80.js";
|
|
20
20
|
import { BillColumn as _ } from "./index81.js";
|
|
21
|
-
import { useMemo as v, useState as
|
|
22
|
-
import { Fragment as
|
|
23
|
-
import { PaperclipIcon as
|
|
21
|
+
import { useMemo as v, useState as le } from "react";
|
|
22
|
+
import { Fragment as ue, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
23
|
+
import { PaperclipIcon as de, PlusIcon as fe, SearchIcon as pe, SettingsIcon as me, UploadIcon as he } from "lucide-react";
|
|
24
24
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js
|
|
25
|
-
var
|
|
25
|
+
var ge = [
|
|
26
26
|
10,
|
|
27
27
|
25,
|
|
28
28
|
50,
|
|
29
29
|
100
|
|
30
|
-
],
|
|
30
|
+
], _e = 240, ve = {
|
|
31
31
|
default: "",
|
|
32
32
|
warning: "ttw:bg-amber-50 ttw:hover:bg-amber-100 ttw:border-l-4! ttw:border-l-amber-600!"
|
|
33
|
-
},
|
|
33
|
+
}, x = {
|
|
34
34
|
default: "",
|
|
35
35
|
warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
|
|
36
|
-
}
|
|
36
|
+
};
|
|
37
|
+
function ye(e, t) {
|
|
38
|
+
return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.missingValue.missing;
|
|
39
|
+
}
|
|
40
|
+
var S = 40, be = [
|
|
37
41
|
_.Vendor,
|
|
38
42
|
_.Attachment,
|
|
39
43
|
_.IssueDate,
|
|
@@ -46,7 +50,7 @@ var he = [
|
|
|
46
50
|
_.AmountPaid,
|
|
47
51
|
_.TotalAmount,
|
|
48
52
|
_.AddedOn
|
|
49
|
-
],
|
|
53
|
+
], C = [
|
|
50
54
|
_.Vendor,
|
|
51
55
|
_.Attachment,
|
|
52
56
|
_.DueDate,
|
|
@@ -54,7 +58,7 @@ var he = [
|
|
|
54
58
|
_.AmountDue,
|
|
55
59
|
_.AddedOn
|
|
56
60
|
];
|
|
57
|
-
function
|
|
61
|
+
function w({ rows: w, isLoading: T, isError: E, sorting: xe, onSortingChange: Se, pageSize: Ce, onPageSizeChange: we, pageSizeOptions: Te = ge, pageInfo: Ee, hasNextPage: De, hasPrevPage: Oe, onNextPage: ke, onPrevPage: Ae, filterTabs: D, selectedFilterTabId: O, onFilterTabChange: je, searchValue: k, onSearchChange: Me, filters: A, visibleColumns: j = C, cellTestIds: M, isSearchActive: N, showAddPanelWhenEmpty: Ne, emptyState: P, onCreateClick: F, onSettingsClick: I, onRetry: L, onFilesSelected: R, maxFiles: z, onEnterManually: B, uploadStatus: V, uploadErrorMessage: H, emailAddress: U, onCopyEmail: W, labels: G, duplicateWarning: K, onReviewDuplicates: q }) {
|
|
58
62
|
let J = v(() => ({
|
|
59
63
|
...h,
|
|
60
64
|
...G,
|
|
@@ -86,16 +90,16 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
86
90
|
...h.dueDate,
|
|
87
91
|
...G?.dueDate
|
|
88
92
|
}
|
|
89
|
-
}), [G]), [
|
|
93
|
+
}), [G]), [Pe, Y] = le(!1), X = !!R, Z = (e) => Array.from(e.dataTransfer.types).includes("Files"), Fe = (e) => {
|
|
90
94
|
X && Z(e) && (e.preventDefault(), Y(!0));
|
|
91
|
-
},
|
|
95
|
+
}, Ie = (e) => {
|
|
92
96
|
X && Z(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Y(!0));
|
|
93
|
-
},
|
|
97
|
+
}, Le = (e) => {
|
|
94
98
|
!e.currentTarget.contains(e.relatedTarget) && X && Y(!1);
|
|
95
|
-
},
|
|
99
|
+
}, Re = (e) => {
|
|
96
100
|
if (!X) return;
|
|
97
101
|
e.preventDefault(), Y(!1);
|
|
98
|
-
let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n =
|
|
102
|
+
let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = ae(t, g, z !== 1);
|
|
99
103
|
n.length && R?.(n);
|
|
100
104
|
}, Q = v(() => {
|
|
101
105
|
let e = (e) => function({ column: t }) {
|
|
@@ -104,8 +108,8 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
104
108
|
title: e,
|
|
105
109
|
labels: J.sortableHeader
|
|
106
110
|
});
|
|
107
|
-
}, t = (e, t, n = /* @__PURE__ */ y(
|
|
108
|
-
let a = r && i.original[r] ? /* @__PURE__ */ y(
|
|
111
|
+
}, t = (e, t, n = /* @__PURE__ */ y(p, { labels: J.missingValue }), r) => function({ row: i }) {
|
|
112
|
+
let a = r && i.original[r] ? /* @__PURE__ */ y(p, { labels: J.missingValue }) : n;
|
|
109
113
|
return /* @__PURE__ */ y("span", {
|
|
110
114
|
className: "ttw:whitespace-nowrap",
|
|
111
115
|
"data-testid": M?.[t],
|
|
@@ -115,20 +119,20 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
115
119
|
return /* @__PURE__ */ y("span", {
|
|
116
120
|
className: "ttw:whitespace-nowrap",
|
|
117
121
|
"data-testid": M?.[_.DueDate],
|
|
118
|
-
children: /* @__PURE__ */ y(
|
|
119
|
-
value: e.original.dueDateLabel || /* @__PURE__ */ y(
|
|
122
|
+
children: /* @__PURE__ */ y(se, {
|
|
123
|
+
value: e.original.dueDateLabel || /* @__PURE__ */ y(p, { labels: J.missingValue }),
|
|
120
124
|
tone: e.original.dueDateTone,
|
|
121
125
|
labels: J.dueDate
|
|
122
126
|
})
|
|
123
127
|
});
|
|
124
|
-
}, r = (e, t, n = /* @__PURE__ */ y(
|
|
125
|
-
let a = r && i.original[r] ? /* @__PURE__ */ y(
|
|
128
|
+
}, r = (e, t, n = /* @__PURE__ */ y(p, { labels: J.missingValue }), r) => function({ row: i }) {
|
|
129
|
+
let a = r && i.original[r] ? /* @__PURE__ */ y(p, { labels: J.missingValue }) : n;
|
|
126
130
|
return /* @__PURE__ */ y("div", {
|
|
127
131
|
className: "ttw:text-right ttw:whitespace-nowrap",
|
|
128
132
|
"data-testid": M?.[t],
|
|
129
133
|
children: i.original[e] || a
|
|
130
134
|
});
|
|
131
|
-
}, a = /* @__PURE__ */ y(
|
|
135
|
+
}, a = /* @__PURE__ */ y(m, { labels: J.noValue }), o = (e) => function() {
|
|
132
136
|
return /* @__PURE__ */ y("div", {
|
|
133
137
|
className: "ttw:text-right",
|
|
134
138
|
children: e
|
|
@@ -138,22 +142,32 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
138
142
|
[_.Vendor]: {
|
|
139
143
|
accessorKey: "vendorLabel",
|
|
140
144
|
enableSorting: !0,
|
|
141
|
-
minSize:
|
|
145
|
+
minSize: _e,
|
|
142
146
|
header: e(J.columnVendor),
|
|
143
|
-
cell: ({ row: e }) =>
|
|
144
|
-
|
|
145
|
-
"data-testid": M?.[_.Vendor],
|
|
146
|
-
children: [e.original.vendorLabel || /* @__PURE__ */ y(m, { labels: J.missingValue }), e.original.rowNote ? /* @__PURE__ */ y("span", {
|
|
147
|
+
cell: ({ row: e }) => {
|
|
148
|
+
let t = e.original.rowNote ? /* @__PURE__ */ y("span", {
|
|
147
149
|
className: "ttw:sr-only",
|
|
148
150
|
children: ` ${e.original.rowNote}`
|
|
149
|
-
}) : null
|
|
150
|
-
|
|
151
|
+
}) : null;
|
|
152
|
+
return !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ b("div", {
|
|
153
|
+
className: x[e.original.rowTone ?? "default"],
|
|
154
|
+
"data-testid": M?.[_.Vendor],
|
|
155
|
+
children: [/* @__PURE__ */ y(ee, {
|
|
156
|
+
className: "ttw:h-4 ttw:w-32",
|
|
157
|
+
"aria-hidden": !0
|
|
158
|
+
}), t]
|
|
159
|
+
}) : /* @__PURE__ */ b("span", {
|
|
160
|
+
className: x[e.original.rowTone ?? "default"],
|
|
161
|
+
"data-testid": M?.[_.Vendor],
|
|
162
|
+
children: [e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ y(m, { labels: { none: J.vendorUnavailable } }) : /* @__PURE__ */ y(p, { labels: J.missingValue })), t]
|
|
163
|
+
});
|
|
164
|
+
}
|
|
151
165
|
},
|
|
152
166
|
[_.Attachment]: {
|
|
153
167
|
accessorKey: "attachment",
|
|
154
168
|
enableSorting: !1,
|
|
155
|
-
size:
|
|
156
|
-
minSize:
|
|
169
|
+
size: S,
|
|
170
|
+
minSize: S,
|
|
157
171
|
header: () => /* @__PURE__ */ y("span", {
|
|
158
172
|
className: "ttw:sr-only",
|
|
159
173
|
children: J.columnAttachment
|
|
@@ -166,7 +180,7 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
166
180
|
className: "ttw:inline-flex ttw:cursor-default",
|
|
167
181
|
"aria-label": e.original.attachment.label,
|
|
168
182
|
onClick: (e) => e.stopPropagation(),
|
|
169
|
-
children: /* @__PURE__ */ y(
|
|
183
|
+
children: /* @__PURE__ */ y(de, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
|
|
170
184
|
}), /* @__PURE__ */ y(c, { children: e.original.attachment.label })] }) })
|
|
171
185
|
}) : null
|
|
172
186
|
},
|
|
@@ -201,7 +215,7 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
201
215
|
cell: ({ row: e }) => /* @__PURE__ */ y("div", {
|
|
202
216
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
203
217
|
"data-testid": M?.[_.Status],
|
|
204
|
-
children: /* @__PURE__ */ y(
|
|
218
|
+
children: /* @__PURE__ */ y(oe, {
|
|
205
219
|
status: e.original.status,
|
|
206
220
|
tone: e.original.statusTone,
|
|
207
221
|
labels: J.statusBadge
|
|
@@ -239,17 +253,17 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
239
253
|
cell: t("addedOnLabel", _.AddedOn)
|
|
240
254
|
}
|
|
241
255
|
};
|
|
242
|
-
}, [J, M]),
|
|
256
|
+
}, [J, M]), ze = v(() => be.filter((e) => j.includes(e)).map((e) => Q[e]), [Q, j]), Be = !!(F && R) && !T && !E && !N && w.length === 0 && Ne === !0, $ = /* @__PURE__ */ b("div", {
|
|
243
257
|
className: "ttw:relative ttw:w-80",
|
|
244
|
-
children: [/* @__PURE__ */ y(
|
|
258
|
+
children: [/* @__PURE__ */ y(pe, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ y(a, {
|
|
245
259
|
className: "ttw:pl-9",
|
|
246
260
|
type: "search",
|
|
247
261
|
"aria-label": J.searchLabel,
|
|
248
262
|
placeholder: J.searchPlaceholder,
|
|
249
|
-
value:
|
|
250
|
-
onChange: (e) =>
|
|
263
|
+
value: k,
|
|
264
|
+
onChange: (e) => Me(e.target.value)
|
|
251
265
|
})]
|
|
252
|
-
}),
|
|
266
|
+
}), Ve = A ? /* @__PURE__ */ y(ce, {
|
|
253
267
|
...A,
|
|
254
268
|
className: "ttw:px-4",
|
|
255
269
|
searchSlot: $
|
|
@@ -272,17 +286,17 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
272
286
|
children: J.duplicateBillsReviewButton
|
|
273
287
|
}) : null]
|
|
274
288
|
}) : null, /* @__PURE__ */ b(o, {
|
|
275
|
-
value:
|
|
276
|
-
onValueChange:
|
|
289
|
+
value: O,
|
|
290
|
+
onValueChange: je,
|
|
277
291
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
278
292
|
children: [/* @__PURE__ */ b("div", {
|
|
279
293
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
280
|
-
children: [/* @__PURE__ */ y(
|
|
294
|
+
children: [/* @__PURE__ */ y(ne, {
|
|
281
295
|
"aria-label": J.filterTabsLabel,
|
|
282
|
-
children:
|
|
296
|
+
children: D.map((e) => /* @__PURE__ */ b(re, {
|
|
283
297
|
value: e.id,
|
|
284
298
|
className: "ttw:group/tab ttw:min-w-28 ttw:gap-2",
|
|
285
|
-
children: [e.label, e.badge ? /* @__PURE__ */ b(
|
|
299
|
+
children: [e.label, e.badge ? /* @__PURE__ */ b(ue, { children: [" ", /* @__PURE__ */ y("span", {
|
|
286
300
|
className: "ttw:inline-flex ttw:h-5 ttw:min-w-5 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-background ttw:px-1 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:group-data-[state=active]/tab:bg-muted",
|
|
287
301
|
children: e.badge
|
|
288
302
|
})] }) : null]
|
|
@@ -296,20 +310,20 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
296
310
|
size: "icon",
|
|
297
311
|
"aria-label": J.settingsButton,
|
|
298
312
|
onClick: I,
|
|
299
|
-
children: /* @__PURE__ */ y(
|
|
313
|
+
children: /* @__PURE__ */ y(me, { className: "ttw:size-4" })
|
|
300
314
|
})
|
|
301
315
|
}), /* @__PURE__ */ y(c, { children: J.settingsButton })] }) }) : null, F ? /* @__PURE__ */ b(n, {
|
|
302
316
|
onClick: F,
|
|
303
|
-
children: [/* @__PURE__ */ y(
|
|
317
|
+
children: [/* @__PURE__ */ y(fe, { className: "ttw:size-4" }), J.createButton]
|
|
304
318
|
}) : null]
|
|
305
319
|
})]
|
|
306
320
|
}), (() => {
|
|
307
|
-
let e =
|
|
321
|
+
let e = E ? /* @__PURE__ */ y(ie, {
|
|
308
322
|
title: J.errorTitle,
|
|
309
323
|
description: J.errorDescription,
|
|
310
324
|
retryLabel: L ? J.errorRetry : void 0,
|
|
311
325
|
onRetry: L
|
|
312
|
-
}) :
|
|
326
|
+
}) : Be && F && R ? /* @__PURE__ */ y("div", {
|
|
313
327
|
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
314
328
|
children: U && W ? /* @__PURE__ */ y(f, {
|
|
315
329
|
emailAddress: U,
|
|
@@ -332,30 +346,30 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
332
346
|
})
|
|
333
347
|
}) : /* @__PURE__ */ b("div", {
|
|
334
348
|
className: "ttw:relative",
|
|
335
|
-
onDragEnter:
|
|
336
|
-
onDragOver:
|
|
337
|
-
onDragLeave:
|
|
338
|
-
onDrop:
|
|
349
|
+
onDragEnter: Fe,
|
|
350
|
+
onDragOver: Ie,
|
|
351
|
+
onDragLeave: Le,
|
|
352
|
+
onDrop: Re,
|
|
339
353
|
children: [/* @__PURE__ */ y(r, {
|
|
340
|
-
columns:
|
|
341
|
-
data:
|
|
354
|
+
columns: ze,
|
|
355
|
+
data: w,
|
|
342
356
|
getRowId: (e) => e.rowKey,
|
|
343
357
|
animatesNewRows: !0,
|
|
344
|
-
isLoading:
|
|
345
|
-
sorting:
|
|
346
|
-
onSortingChange:
|
|
347
|
-
pageSize:
|
|
348
|
-
onPageSizeChange:
|
|
349
|
-
pageSizeOptions:
|
|
350
|
-
pageInfo:
|
|
351
|
-
hasNextPage:
|
|
352
|
-
hasPrevPage:
|
|
353
|
-
onNextPage:
|
|
354
|
-
onPrevPage:
|
|
358
|
+
isLoading: T,
|
|
359
|
+
sorting: xe,
|
|
360
|
+
onSortingChange: Se,
|
|
361
|
+
pageSize: Ce,
|
|
362
|
+
onPageSizeChange: we,
|
|
363
|
+
pageSizeOptions: Te,
|
|
364
|
+
pageInfo: Ee,
|
|
365
|
+
hasNextPage: De,
|
|
366
|
+
hasPrevPage: Oe,
|
|
367
|
+
onNextPage: ke,
|
|
368
|
+
onPrevPage: Ae,
|
|
355
369
|
onRowClick: (e) => e.onOpen(),
|
|
356
|
-
rowAriaLabel: (e) => J.openRow(e.vendorLabel || J
|
|
357
|
-
rowClassName: (e) =>
|
|
358
|
-
filterComponent:
|
|
370
|
+
rowAriaLabel: (e) => J.openRow(e.vendorLabel || ye(e.vendorLookup, J)),
|
|
371
|
+
rowClassName: (e) => ve[e.rowTone ?? "default"],
|
|
372
|
+
filterComponent: Ve,
|
|
359
373
|
children: N ? /* @__PURE__ */ y(d, {
|
|
360
374
|
title: J.filteredEmptyTitle,
|
|
361
375
|
description: J.filteredEmptyDescription
|
|
@@ -363,11 +377,11 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
363
377
|
title: P.title,
|
|
364
378
|
description: P.description
|
|
365
379
|
}) : void 0
|
|
366
|
-
}),
|
|
380
|
+
}), Pe ? /* @__PURE__ */ y("div", {
|
|
367
381
|
className: "ttw:pointer-events-none ttw:absolute ttw:inset-0 ttw:z-20 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-xl ttw:border-2 ttw:border-dashed ttw:border-primary ttw:bg-background/85 ttw:backdrop-blur-[1px]",
|
|
368
382
|
children: /* @__PURE__ */ b("div", {
|
|
369
383
|
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-lg ttw:border ttw:bg-card ttw:px-4 ttw:py-3 ttw:shadow-sm",
|
|
370
|
-
children: [/* @__PURE__ */ y(
|
|
384
|
+
children: [/* @__PURE__ */ y(he, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
371
385
|
className: "ttw:text-sm ttw:font-medium",
|
|
372
386
|
children: J.tableDropzoneTitle
|
|
373
387
|
}), /* @__PURE__ */ y("p", {
|
|
@@ -377,13 +391,13 @@ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe
|
|
|
377
391
|
})
|
|
378
392
|
}) : null]
|
|
379
393
|
});
|
|
380
|
-
return
|
|
394
|
+
return D.map((t) => /* @__PURE__ */ y(te, {
|
|
381
395
|
value: t.id,
|
|
382
|
-
children: t.id ===
|
|
396
|
+
children: t.id === O ? e : null
|
|
383
397
|
}, t.id));
|
|
384
398
|
})()]
|
|
385
399
|
})]
|
|
386
400
|
});
|
|
387
401
|
}
|
|
388
402
|
//#endregion
|
|
389
|
-
export {
|
|
403
|
+
export { w as BillsScreen, w as default, C as DEFAULT_BILL_COLUMNS };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./index2.js";
|
|
2
|
-
import { useCounterpartQuery as e,
|
|
2
|
+
import { useCounterpartQuery as e, useCounterpartsByIdsQuery as t, useCounterpartsQuery as n, useCreateCounterpartMutation as r, useDeleteCounterpartMutation as i, useUpdateCounterpartMutation as a } from "./index3.js";
|
|
3
3
|
import "./index4.js";
|
|
4
|
-
import { useCounterpartBankAccountsQuery as
|
|
4
|
+
import { useCounterpartBankAccountsQuery as o, useCreateCounterpartBankAccountMutation as s, useDeleteCounterpartBankAccountMutation as c, useMakeCounterpartBankAccountDefaultMutation as l, useUpdateCounterpartBankAccountMutation as u } from "./index5.js";
|
|
5
5
|
import "./index6.js";
|
|
6
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
7
|
-
export {
|
|
6
|
+
import { useCounterpartAddressesForRowsQuery as d, useCounterpartAddressesQuery as f, useCreateCounterpartAddressMutation as p, useUpdateCounterpartAddressMutation as m } from "./index7.js";
|
|
7
|
+
export { d as useCounterpartAddressesForRowsQuery, f as useCounterpartAddressesQuery, o as useCounterpartBankAccountsQuery, e as useCounterpartQuery, t as useCounterpartsByIdsQuery, n as useCounterpartsQuery, p as useCreateCounterpartAddressMutation, s as useCreateCounterpartBankAccountMutation, r as useCreateCounterpartMutation, c as useDeleteCounterpartBankAccountMutation, i as useDeleteCounterpartMutation, l as useMakeCounterpartBankAccountDefaultMutation, m as useUpdateCounterpartAddressMutation, u as useUpdateCounterpartBankAccountMutation, a as useUpdateCounterpartMutation };
|
|
@@ -10,33 +10,34 @@ import { useEmbedApi as s } from "../../../data-access/dist/lib/EmbedApiContext.
|
|
|
10
10
|
import { organizationHeaders as c } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
11
11
|
import "../../../data-access/dist/index.js";
|
|
12
12
|
import { counterpartInvalidationKey as l, counterpartsInvalidationKey as u } from "./index2.js";
|
|
13
|
-
import {
|
|
13
|
+
import { useMemo as d } from "react";
|
|
14
|
+
import { useMutation as f, useQuery as p } from "@tanstack/react-query";
|
|
14
15
|
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js
|
|
15
|
-
function
|
|
16
|
+
function m({ enabled: e, ...t } = {}) {
|
|
16
17
|
let { client: n, organizationId: r, widgetToken: o, authEpoch: l } = s(), u = !!(r && o) && (e === !0 || e === void 0), d = i({
|
|
17
18
|
query: t,
|
|
18
19
|
client: n,
|
|
19
20
|
headers: c(r)
|
|
20
21
|
});
|
|
21
|
-
return
|
|
22
|
+
return p({
|
|
22
23
|
...a(d, l, { carryWithinOrg: !0 }),
|
|
23
24
|
enabled: u
|
|
24
25
|
});
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function h(e) {
|
|
27
28
|
let { client: t, organizationId: n, widgetToken: i, authEpoch: o } = s(), l = !!(n && i && e), u = r({
|
|
28
29
|
client: t,
|
|
29
30
|
headers: c(n),
|
|
30
31
|
path: { counterpart_id: e ?? "" }
|
|
31
32
|
});
|
|
32
|
-
return
|
|
33
|
+
return p({
|
|
33
34
|
...a(u, o),
|
|
34
35
|
enabled: l
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function g() {
|
|
38
39
|
let { client: e, organizationId: t } = s();
|
|
39
|
-
return
|
|
40
|
+
return f({
|
|
40
41
|
mutationFn: async ({ body: r }) => {
|
|
41
42
|
let { data: i } = await n({
|
|
42
43
|
client: e,
|
|
@@ -54,9 +55,9 @@ function h() {
|
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function _() {
|
|
58
59
|
let { client: e, organizationId: n } = s();
|
|
59
|
-
return
|
|
60
|
+
return f({
|
|
60
61
|
mutationFn: async ({ path: r, body: i }) => {
|
|
61
62
|
let { data: a } = await t({
|
|
62
63
|
client: e,
|
|
@@ -79,9 +80,9 @@ function g() {
|
|
|
79
80
|
}
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function v() {
|
|
83
84
|
let { client: t, organizationId: n } = s();
|
|
84
|
-
return
|
|
85
|
+
return f({
|
|
85
86
|
mutationFn: async ({ path: r }) => {
|
|
86
87
|
await e({
|
|
87
88
|
client: t,
|
|
@@ -98,5 +99,13 @@ function _() {
|
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
101
|
}
|
|
102
|
+
function y({ counterpartIds: e, enabled: t }) {
|
|
103
|
+
let n = d(() => [...new Set(e)].sort().slice(0, 100), [e]);
|
|
104
|
+
return m({
|
|
105
|
+
enabled: (t === !0 || t === void 0) && n.length > 0,
|
|
106
|
+
id__in: n,
|
|
107
|
+
limit: 100
|
|
108
|
+
});
|
|
109
|
+
}
|
|
101
110
|
//#endregion
|
|
102
|
-
export {
|
|
111
|
+
export { h as useCounterpartQuery, y as useCounterpartsByIdsQuery, m as useCounterpartsQuery, g as useCreateCounterpartMutation, v as useDeleteCounterpartMutation, _ as useUpdateCounterpartMutation };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "../../../util/dist/lib/apiErrors.js";
|
|
2
|
-
import {
|
|
3
|
-
import { useCreateCounterpartBankAccountMutation as
|
|
4
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
2
|
+
import { useCounterpartsByIdsQuery as e, useCounterpartsQuery as t } from "../../data-access/dist/index3.js";
|
|
3
|
+
import { useCreateCounterpartBankAccountMutation as n, useUpdateCounterpartBankAccountMutation as r } from "../../data-access/dist/index5.js";
|
|
4
|
+
import { useCounterpartAddressesForRowsQuery as i, useCounterpartAddressesQuery as a } from "../../data-access/dist/index7.js";
|
|
5
5
|
import "../../data-access/dist/index.js";
|
|
6
6
|
import "../../ui/dist/index5.js";
|
|
7
|
-
import { CounterpartFormFields as
|
|
8
|
-
import { BankAccountFormSheet as
|
|
9
|
-
import { AddressFormSheet as
|
|
10
|
-
import { ConfirmDeleteDialog as
|
|
7
|
+
import { CounterpartFormFields as o, CounterpartFormSheet as s, useFocusFirstInvalidField as c } from "../../ui/dist/index9.js";
|
|
8
|
+
import { BankAccountFormSheet as l } from "../../ui/dist/index11.js";
|
|
9
|
+
import { AddressFormSheet as u } from "../../ui/dist/index13.js";
|
|
10
|
+
import { ConfirmDeleteDialog as d } from "../../ui/dist/index14.js";
|
|
11
11
|
import "../../ui/dist/index.js";
|
|
12
|
-
import { COUNTERPART_MESSAGE_LABELS_EN as
|
|
13
|
-
import { buildAnalyticsMap as
|
|
14
|
-
import { useAddressForm as
|
|
15
|
-
import { useCounterpartDetails as
|
|
16
|
-
import { usePayableAchInstructions as
|
|
17
|
-
import { useCounterpartForm as
|
|
12
|
+
import { COUNTERPART_MESSAGE_LABELS_EN as f } from "./lib/labels.js";
|
|
13
|
+
import { buildAnalyticsMap as p, buildCounterpartRows as m, counterpartFormBankAccountToCreatePayload as h, counterpartFormBankAccountToUpdatePayload as g, formatCounterpartDate as _, formatMoney as v, getAchInstructions as y, getCounterpartEmail as b, getCounterpartName as x, getPayableAchInstructions as S, hasSelectedText as C, isAchCompatibleBankAccount as w, resolveCounterpartBankAccountWrite as T, validateAchFormValues as E } from "./lib/helpers.js";
|
|
14
|
+
import { useAddressForm as D } from "./lib/useAddressForm.js";
|
|
15
|
+
import { useCounterpartDetails as O } from "./lib/useCounterpartDetails.js";
|
|
16
|
+
import { usePayableAchInstructions as k } from "./lib/usePayableAchInstructions.js";
|
|
17
|
+
import { useCounterpartForm as A } from "./lib/useCounterpartForm.js";
|
|
18
18
|
import "./lib/useCounterpartSelector.js";
|
|
19
|
-
import { CounterpartSelector as
|
|
20
|
-
import { useDeleteController as
|
|
19
|
+
import { CounterpartSelector as j } from "./lib/CounterpartSelector.js";
|
|
20
|
+
import { useDeleteController as M } from "./lib/useDeleteController.js";
|
|
21
21
|
import "./lib/useSubEntityForm.js";
|
|
22
|
-
import { useBankAccountForm as
|
|
23
|
-
export {
|
|
22
|
+
import { useBankAccountForm as N } from "./lib/subEntityForms.js";
|
|
23
|
+
export { u as AddressFormSheet, l as BankAccountFormSheet, f as COUNTERPART_MESSAGE_LABELS_EN, d as ConfirmDeleteDialog, o as CounterpartFormFields, s as CounterpartFormSheet, j as CounterpartSelector, p as buildAnalyticsMap, m as buildCounterpartRows, h as counterpartFormBankAccountToCreatePayload, g as counterpartFormBankAccountToUpdatePayload, _ as formatCounterpartDate, v as formatMoney, y as getAchInstructions, b as getCounterpartEmail, x as getCounterpartName, S as getPayableAchInstructions, C as hasSelectedText, w as isAchCompatibleBankAccount, T as resolveCounterpartBankAccountWrite, D as useAddressForm, N as useBankAccountForm, i as useCounterpartAddressesForRowsQuery, a as useCounterpartAddressesQuery, O as useCounterpartDetails, A as useCounterpartForm, e as useCounterpartsByIdsQuery, t as useCounterpartsQuery, n as useCreateCounterpartBankAccountMutation, M as useDeleteController, c as useFocusFirstInvalidField, k as usePayableAchInstructions, r as useUpdateCounterpartBankAccountMutation, E as validateAchFormValues };
|
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.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.138", n = "84bec65f4671dd905a611ce9752c7f7dd67c8595", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -7,7 +7,7 @@ import "../../../shared/data-access/dist/index.js";
|
|
|
7
7
|
import { Implementation as t } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
8
8
|
import { useWidgetConfig as n } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
9
|
import "../../../shared/feature/dist/index.js";
|
|
10
|
-
import { BillPayWidget as r } from "../../../bill-pay-widget/feature/dist/
|
|
10
|
+
import { BillPayWidget as r } from "../../../bill-pay-widget/feature/dist/index90.js";
|
|
11
11
|
import "../../../bill-pay-widget/feature/dist/index.js";
|
|
12
12
|
import { jsx as i } from "react/jsx-runtime";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js
|