@tesouro/embedded-components-react 0.5.135 → 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.
Files changed (21) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +2 -0
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -16
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +26 -129
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +145 -204
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +214 -4
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +4 -7
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +5 -111
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +113 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +0 -26
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +27 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +2 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +93 -79
  16. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +4 -4
  17. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +21 -12
  18. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
  19. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  21. 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 ee, TabsList as te, TabsTrigger as ne, Tooltip as s, TooltipContent as c, TooltipProvider as l, TooltipTrigger as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
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 re } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
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 ie } from "./index3.js";
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 ae } from "./index19.js";
9
+ import { BillStatusBadge as oe } from "./index19.js";
10
10
  import "./index20.js";
11
- import { DueDateValue as p } from "./index22.js";
11
+ import { DueDateValue as se } from "./index22.js";
12
12
  import "./index23.js";
13
- import { MissingValue as m } from "./index31.js";
13
+ import { MissingValue as p } from "./index31.js";
14
14
  import "./index32.js";
15
- import { NoValue as oe } from "./index34.js";
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 se } from "./index79.js";
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 ce } from "react";
22
- import { Fragment as le, jsx as y, jsxs as b } from "react/jsx-runtime";
23
- import { PaperclipIcon as ue, PlusIcon as de, SearchIcon as fe, SettingsIcon as pe, UploadIcon as me } from "lucide-react";
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 he = [
25
+ var ge = [
26
26
  10,
27
27
  25,
28
28
  50,
29
29
  100
30
- ], ge = 240, _e = {
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
- }, ve = {
33
+ }, x = {
34
34
  default: "",
35
35
  warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
36
- }, x = 40, ye = [
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
- ], S = [
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 C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe, pageSize: Se, onPageSizeChange: Ce, pageSizeOptions: we = he, pageInfo: Te, hasNextPage: Ee, hasPrevPage: E, onNextPage: D, onPrevPage: De, filterTabs: O, selectedFilterTabId: k, onFilterTabChange: Oe, searchValue: ke, onSearchChange: Ae, filters: A, visibleColumns: j = S, cellTestIds: M, isSearchActive: N, showAddPanelWhenEmpty: je, 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 }) {
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]), [Me, Y] = ce(!1), X = !!R, Z = (e) => Array.from(e.dataTransfer.types).includes("Files"), Ne = (e) => {
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
- }, Pe = (e) => {
95
+ }, Ie = (e) => {
92
96
  X && Z(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Y(!0));
93
- }, Fe = (e) => {
97
+ }, Le = (e) => {
94
98
  !e.currentTarget.contains(e.relatedTarget) && X && Y(!1);
95
- }, Ie = (e) => {
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 = ie(t, g, z !== 1);
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(m, { labels: J.missingValue }), r) => function({ row: i }) {
108
- let a = r && i.original[r] ? /* @__PURE__ */ y(m, { labels: J.missingValue }) : n;
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(p, {
119
- value: e.original.dueDateLabel || /* @__PURE__ */ y(m, { labels: J.missingValue }),
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(m, { labels: J.missingValue }), r) => function({ row: i }) {
125
- let a = r && i.original[r] ? /* @__PURE__ */ y(m, { labels: J.missingValue }) : n;
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(oe, { labels: J.noValue }), o = (e) => function() {
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: ge,
145
+ minSize: _e,
142
146
  header: e(J.columnVendor),
143
- cell: ({ row: e }) => /* @__PURE__ */ b("span", {
144
- className: ve[e.original.rowTone ?? "default"],
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: x,
156
- minSize: x,
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(ue, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
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(ae, {
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]), Le = v(() => ye.filter((e) => j.includes(e)).map((e) => Q[e]), [Q, j]), Re = !!(F && R) && !w && !T && !N && C.length === 0 && je === !0, $ = /* @__PURE__ */ b("div", {
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(fe, { 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, {
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: ke,
250
- onChange: (e) => Ae(e.target.value)
263
+ value: k,
264
+ onChange: (e) => Me(e.target.value)
251
265
  })]
252
- }), ze = A ? /* @__PURE__ */ y(se, {
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: k,
276
- onValueChange: Oe,
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(te, {
294
+ children: [/* @__PURE__ */ y(ne, {
281
295
  "aria-label": J.filterTabsLabel,
282
- children: O.map((e) => /* @__PURE__ */ b(ne, {
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(le, { children: [" ", /* @__PURE__ */ y("span", {
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(pe, { className: "ttw:size-4" })
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(de, { className: "ttw:size-4" }), J.createButton]
317
+ children: [/* @__PURE__ */ y(fe, { className: "ttw:size-4" }), J.createButton]
304
318
  }) : null]
305
319
  })]
306
320
  }), (() => {
307
- let e = T ? /* @__PURE__ */ y(re, {
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
- }) : Re && F && R ? /* @__PURE__ */ y("div", {
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: Ne,
336
- onDragOver: Pe,
337
- onDragLeave: Fe,
338
- onDrop: Ie,
349
+ onDragEnter: Fe,
350
+ onDragOver: Ie,
351
+ onDragLeave: Le,
352
+ onDrop: Re,
339
353
  children: [/* @__PURE__ */ y(r, {
340
- columns: Le,
341
- data: C,
354
+ columns: ze,
355
+ data: w,
342
356
  getRowId: (e) => e.rowKey,
343
357
  animatesNewRows: !0,
344
- isLoading: w,
345
- sorting: be,
346
- onSortingChange: xe,
347
- pageSize: Se,
348
- onPageSizeChange: Ce,
349
- pageSizeOptions: we,
350
- pageInfo: Te,
351
- hasNextPage: Ee,
352
- hasPrevPage: E,
353
- onNextPage: D,
354
- onPrevPage: De,
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.missingValue.missing),
357
- rowClassName: (e) => _e[e.rowTone ?? "default"],
358
- filterComponent: ze,
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
- }), Me ? /* @__PURE__ */ y("div", {
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(me, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
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 O.map((t) => /* @__PURE__ */ y(ee, {
394
+ return D.map((t) => /* @__PURE__ */ y(te, {
381
395
  value: t.id,
382
- children: t.id === k ? e : null
396
+ children: t.id === O ? e : null
383
397
  }, t.id));
384
398
  })()]
385
399
  })]
386
400
  });
387
401
  }
388
402
  //#endregion
389
- export { C as BillsScreen, C as default, S as DEFAULT_BILL_COLUMNS };
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, useCounterpartsQuery as t, useCreateCounterpartMutation as n, useDeleteCounterpartMutation as r, useUpdateCounterpartMutation as i } from "./index3.js";
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 a, useCreateCounterpartBankAccountMutation as o, useDeleteCounterpartBankAccountMutation as s, useMakeCounterpartBankAccountDefaultMutation as c, useUpdateCounterpartBankAccountMutation as l } from "./index5.js";
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 u, useCounterpartAddressesQuery as d, useCreateCounterpartAddressMutation as f, useUpdateCounterpartAddressMutation as p } from "./index7.js";
7
- export { u as useCounterpartAddressesForRowsQuery, d as useCounterpartAddressesQuery, a as useCounterpartBankAccountsQuery, e as useCounterpartQuery, t as useCounterpartsQuery, f as useCreateCounterpartAddressMutation, o as useCreateCounterpartBankAccountMutation, n as useCreateCounterpartMutation, s as useDeleteCounterpartBankAccountMutation, r as useDeleteCounterpartMutation, c as useMakeCounterpartBankAccountDefaultMutation, p as useUpdateCounterpartAddressMutation, l as useUpdateCounterpartBankAccountMutation, i as useUpdateCounterpartMutation };
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 { useMutation as d, useQuery as f } from "@tanstack/react-query";
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 p({ enabled: e, ...t } = {}) {
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 f({
22
+ return p({
22
23
  ...a(d, l, { carryWithinOrg: !0 }),
23
24
  enabled: u
24
25
  });
25
26
  }
26
- function m(e) {
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 f({
33
+ return p({
33
34
  ...a(u, o),
34
35
  enabled: l
35
36
  });
36
37
  }
37
- function h() {
38
+ function g() {
38
39
  let { client: e, organizationId: t } = s();
39
- return d({
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 g() {
58
+ function _() {
58
59
  let { client: e, organizationId: n } = s();
59
- return d({
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 d({
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 { m as useCounterpartQuery, p as useCounterpartsQuery, h as useCreateCounterpartMutation, _ as useDeleteCounterpartMutation, g as useUpdateCounterpartMutation };
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 { useCounterpartsQuery as e } from "../../data-access/dist/index3.js";
3
- import { useCreateCounterpartBankAccountMutation as t, useUpdateCounterpartBankAccountMutation as n } from "../../data-access/dist/index5.js";
4
- import { useCounterpartAddressesForRowsQuery as r, useCounterpartAddressesQuery as i } from "../../data-access/dist/index7.js";
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 a, CounterpartFormSheet as o, useFocusFirstInvalidField as s } from "../../ui/dist/index9.js";
8
- import { BankAccountFormSheet as c } from "../../ui/dist/index11.js";
9
- import { AddressFormSheet as l } from "../../ui/dist/index13.js";
10
- import { ConfirmDeleteDialog as u } from "../../ui/dist/index14.js";
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 d } from "./lib/labels.js";
13
- import { buildAnalyticsMap as f, buildCounterpartRows as p, counterpartFormBankAccountToCreatePayload as m, counterpartFormBankAccountToUpdatePayload as h, formatCounterpartDate as g, formatMoney as _, getAchInstructions as v, getCounterpartEmail as y, getCounterpartName as b, getPayableAchInstructions as x, hasSelectedText as S, isAchCompatibleBankAccount as C, resolveCounterpartBankAccountWrite as w, validateAchFormValues as T } from "./lib/helpers.js";
14
- import { useAddressForm as E } from "./lib/useAddressForm.js";
15
- import { useCounterpartDetails as D } from "./lib/useCounterpartDetails.js";
16
- import { usePayableAchInstructions as O } from "./lib/usePayableAchInstructions.js";
17
- import { useCounterpartForm as k } from "./lib/useCounterpartForm.js";
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 A } from "./lib/CounterpartSelector.js";
20
- import { useDeleteController as j } from "./lib/useDeleteController.js";
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 M } from "./lib/subEntityForms.js";
23
- export { l as AddressFormSheet, c as BankAccountFormSheet, d as COUNTERPART_MESSAGE_LABELS_EN, u as ConfirmDeleteDialog, a as CounterpartFormFields, o as CounterpartFormSheet, A as CounterpartSelector, f as buildAnalyticsMap, p as buildCounterpartRows, m as counterpartFormBankAccountToCreatePayload, h as counterpartFormBankAccountToUpdatePayload, g as formatCounterpartDate, _ as formatMoney, v as getAchInstructions, y as getCounterpartEmail, b as getCounterpartName, x as getPayableAchInstructions, S as hasSelectedText, C as isAchCompatibleBankAccount, w as resolveCounterpartBankAccountWrite, E as useAddressForm, M as useBankAccountForm, r as useCounterpartAddressesForRowsQuery, i as useCounterpartAddressesQuery, D as useCounterpartDetails, k as useCounterpartForm, e as useCounterpartsQuery, t as useCreateCounterpartBankAccountMutation, j as useDeleteController, s as useFocusFirstInvalidField, O as usePayableAchInstructions, n as useUpdateCounterpartBankAccountMutation, T as validateAchFormValues };
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 };
@@ -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.135", n = "579c0ea73b8eb959fe81898d3c74e3544898e929", r = Object.freeze({
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/index89.js";
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.135",
3
+ "version": "0.5.138",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {