@tesouro/embedded-components-react 0.11.185 → 0.11.187

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 (44) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +3 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index6.js +31 -4
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index7.js +5 -0
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +4 -4
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +143 -12
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +33 -83
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +15 -48
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +76 -254
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +48 -34
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +241 -438
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +29 -298
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +460 -4
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +327 -4
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +3 -37
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +5 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +38 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js +1 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +30 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +7 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index10.js +2 -200
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +38 -3
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index12.js +10 -2
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index13.js +196 -11
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index14.js +1 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +9 -15
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +2 -54
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index19.js +20 -16
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +2 -460
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +54 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js +17 -0
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +463 -0
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index24.js +3 -0
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index8.js +5 -36
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index9.js +28 -10
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/queryKeys.js +8 -5
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +11 -9
  42. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  43. package/dist/packages/shared-ui-shadcn/dist/index.js +3623 -3539
  44. package/package.json +1 -1
@@ -1,460 +1,2 @@
1
- import { Button as e, ContextMenuItem as t, DataTable as n, DataTableSortableHeader as r, Input as i, Separator as a, Skeleton as ee, Tabs as o, TabsContent as te, TabsList as s, TabsTrigger as ne, Tooltip as re, TooltipContent as ie, TooltipProvider as ae, TooltipTrigger as oe } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { EmptyState as c } from "../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
- import { ErrorState as se } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
- import { DateDisclosure as ce } from "../../../../shared/ui/dist/lib/DateDisclosure/DateDisclosure.js";
5
- import { DueDateText as le } from "../../../../shared/ui/dist/lib/DueDateText/DueDateText.js";
6
- import { AttentionStrip as ue } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionStrip.js";
7
- import { AttentionViewBar as de } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionViewBar.js";
8
- import "../../../../shared/ui/dist/index.js";
9
- import { BillStatusBadge as fe } from "../../../../shared/document-status/ui/dist/index4.js";
10
- import "../../../../shared/document-status/ui/dist/index.js";
11
- import { BillDuplicateIcon as l } from "../../../ui/dist/index6.js";
12
- import { BillOverflowMenu as pe } from "../../../ui/dist/index11.js";
13
- import { getAcceptedBillUploadFiles as me } from "../../../ui/dist/index17.js";
14
- import "../../../ui/dist/index.js";
15
- import { AddBillPanel as he } from "./index3.js";
16
- import "./index4.js";
17
- import { BillsFilterBar as ge } from "./index10.js";
18
- import "./index11.js";
19
- import { MissingValue as u } from "./index13.js";
20
- import "./index14.js";
21
- import { NoValue as _e } from "./index16.js";
22
- import "./index17.js";
23
- import { BILLS_SCREEN_LABELS_EN as d, BILLS_SCREEN_UPLOAD_ACCEPT as f } from "./index18.js";
24
- import { BillColumn as p } from "./index19.js";
25
- import { Fragment as ve, useMemo as m, useState as ye } from "react";
26
- import { createPortal as be } from "react-dom";
27
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
28
- import { PaperclipIcon as xe, SearchIcon as Se, UploadIcon as Ce } from "lucide-react";
29
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js
30
- var we = [
31
- 10,
32
- 25,
33
- 50,
34
- 100
35
- ], Te = 240;
36
- function Ee(e, t) {
37
- return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.missingValue.missing;
38
- }
39
- var v = 40, De = 56, Oe = [
40
- p.Vendor,
41
- p.InvoiceNumber,
42
- p.Attachment,
43
- p.IssueDate,
44
- p.DueDate,
45
- p.ScheduledDate,
46
- p.PaidDate,
47
- p.Status,
48
- p.AmountDue,
49
- p.AmountScheduled,
50
- p.AmountPaid,
51
- p.TotalAmount,
52
- p.AddedOn
53
- ], y = [
54
- p.Vendor,
55
- p.Attachment,
56
- p.DueDate,
57
- p.Status,
58
- p.AmountDue,
59
- p.AddedOn
60
- ];
61
- function b({ rows: b, isLoading: x, isError: S, sorting: ke, onSortingChange: Ae, pageSize: je, onPageSizeChange: Me, pageSizeOptions: C = we, pageInfo: Ne, hasNextPage: w, hasPrevPage: T, onNextPage: Pe, onPrevPage: Fe, filterTabs: E, selectedFilterTabId: D, onFilterTabChange: Ie, searchValue: Le, onSearchChange: Re, filters: O, visibleColumns: k = y, keepsColumnOrder: A = !1, isSortable: j = !0, cellTestIds: M, isSearchActive: N, showAddPanelWhenEmpty: ze, emptyState: P, onCreateClick: F, headerActionContainer: I, onRetry: L, onFilesSelected: R, maxFiles: z, onEnterManually: B, uploadStatus: V, uploadErrorMessage: H, emailAddress: U, onCopyEmail: W, labels: G, attentionStrip: K, attentionView: q }) {
62
- let J = m(() => ({
63
- ...d,
64
- ...G,
65
- statusBadge: {
66
- ...d.statusBadge,
67
- ...G?.statusBadge
68
- },
69
- addBill: {
70
- ...d.addBill,
71
- ...G?.addBill,
72
- dropzone: {
73
- ...d.addBill.dropzone,
74
- ...G?.addBill?.dropzone
75
- }
76
- },
77
- sortableHeader: {
78
- ...d.sortableHeader,
79
- ...G?.sortableHeader
80
- },
81
- missingValue: {
82
- ...d.missingValue,
83
- ...G?.missingValue
84
- },
85
- noValue: {
86
- ...d.noValue,
87
- ...G?.noValue
88
- }
89
- }), [G]), Be = b.some((e) => e.menu?.items.length), [Ve, Y] = ye(!1), X = !!R, He = (e) => Array.from(e.dataTransfer.types).includes("Files"), Ue = (e) => {
90
- X && He(e) && (e.preventDefault(), Y(!0));
91
- }, We = (e) => {
92
- X && He(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Y(!0));
93
- }, Ge = (e) => {
94
- !e.currentTarget.contains(e.relatedTarget) && X && Y(!1);
95
- }, Ke = (e) => {
96
- if (!X) return;
97
- e.preventDefault(), Y(!1);
98
- let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = me(t, f, z !== 1);
99
- n.length && R?.(n);
100
- }, Z = m(() => {
101
- let e = (e) => j ? function({ column: t }) {
102
- return /* @__PURE__ */ g(r, {
103
- column: t,
104
- title: e,
105
- labels: J.sortableHeader
106
- });
107
- } : e, t = (e, t, n = /* @__PURE__ */ g(u, { labels: J.missingValue }), r) => function({ row: i }) {
108
- let a = r && i.original[r] ? /* @__PURE__ */ g(u, { labels: J.missingValue }) : n;
109
- return /* @__PURE__ */ g("span", {
110
- className: "ttw:whitespace-nowrap",
111
- "data-testid": M?.[t],
112
- children: i.original[e] || a
113
- });
114
- }, n = t("invoiceNumberLabel", p.InvoiceNumber), i = function({ row: e }) {
115
- return /* @__PURE__ */ g("span", {
116
- className: "ttw:whitespace-nowrap",
117
- "data-testid": M?.[p.DueDate],
118
- children: /* @__PURE__ */ g(le, {
119
- label: e.original.dueDateLabel || /* @__PURE__ */ g(u, { labels: J.missingValue }),
120
- overdueLabel: e.original.dueDateOverdueLabel,
121
- accessibleLabel: e.original.dueDateAccessibleLabel
122
- })
123
- });
124
- }, a = (e, t, n = /* @__PURE__ */ g(u, { labels: J.missingValue }), r) => function({ row: i }) {
125
- let a = r && i.original[r] ? /* @__PURE__ */ g(u, { labels: J.missingValue }) : n;
126
- return /* @__PURE__ */ g("div", {
127
- className: "ttw:text-right ttw:whitespace-nowrap",
128
- "data-testid": M?.[t],
129
- children: i.original[e] || a
130
- });
131
- }, o = /* @__PURE__ */ g(_e, { labels: J.noValue });
132
- function te({ row: e }) {
133
- let t = e.original.scheduledDateIsGap ? /* @__PURE__ */ g(u, { labels: J.missingValue }) : o, n = e.original.scheduledDateLabel, r = e.original.scheduledDateExact;
134
- return /* @__PURE__ */ g("span", {
135
- className: "ttw:whitespace-nowrap",
136
- "data-testid": M?.[p.ScheduledDate],
137
- children: n && r ? /* @__PURE__ */ g(ce, {
138
- date: r,
139
- children: n
140
- }) : n || t
141
- });
142
- }
143
- let s = (e) => function() {
144
- return /* @__PURE__ */ g("div", {
145
- className: "ttw:text-right",
146
- children: e
147
- });
148
- };
149
- return {
150
- [p.Vendor]: {
151
- accessorKey: "vendorLabel",
152
- enableSorting: j,
153
- minSize: Te,
154
- header: e(J.columnVendor),
155
- cell: ({ row: e }) => {
156
- let t = e.original.rowNote ? /* @__PURE__ */ g("span", {
157
- className: "ttw:sr-only",
158
- children: ` ${e.original.rowNote}`
159
- }) : null;
160
- return !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ _("div", {
161
- "data-testid": M?.[p.Vendor],
162
- children: [/* @__PURE__ */ g(ee, {
163
- className: "ttw:h-4 ttw:w-32",
164
- "aria-hidden": !0
165
- }), t]
166
- }) : /* @__PURE__ */ _("span", {
167
- className: "ttw:inline-flex ttw:items-center ttw:gap-2",
168
- "data-testid": M?.[p.Vendor],
169
- children: [e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ g(_e, { labels: { none: J.vendorUnavailable } }) : /* @__PURE__ */ g(u, { labels: J.missingValue })), t]
170
- });
171
- }
172
- },
173
- [p.InvoiceNumber]: {
174
- accessorKey: "invoiceNumberLabel",
175
- enableSorting: !1,
176
- header: () => J.columnInvoiceNumber,
177
- cell: (e) => e.row.original.marker === "duplicate" ? /* @__PURE__ */ _("span", {
178
- className: "ttw:relative",
179
- children: [/* @__PURE__ */ g(l, { className: "ttw:absolute ttw:top-1/2 ttw:right-full ttw:mr-1 ttw:-translate-y-1/2 ttw:text-warning" }), n(e)]
180
- }) : n(e)
181
- },
182
- [p.Attachment]: {
183
- accessorKey: "attachment",
184
- enableSorting: !1,
185
- size: v,
186
- minSize: v,
187
- header: () => /* @__PURE__ */ g("span", {
188
- className: "ttw:sr-only",
189
- children: J.columnAttachment
190
- }),
191
- cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ g("div", {
192
- className: "ttw:flex ttw:justify-center",
193
- "data-testid": M?.[p.Attachment],
194
- children: /* @__PURE__ */ g(ae, { children: /* @__PURE__ */ _(re, { children: [/* @__PURE__ */ g(oe, {
195
- type: "button",
196
- className: "ttw:inline-flex ttw:cursor-default",
197
- "aria-label": e.original.attachment.label,
198
- onClick: (e) => e.stopPropagation(),
199
- children: /* @__PURE__ */ g(xe, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
200
- }), /* @__PURE__ */ g(ie, { children: e.original.attachment.label })] }) })
201
- }) : null
202
- },
203
- [p.IssueDate]: {
204
- accessorKey: "issueDateLabel",
205
- enableSorting: j,
206
- header: e(J.columnIssueDate),
207
- cell: t("issueDateLabel", p.IssueDate)
208
- },
209
- [p.DueDate]: {
210
- accessorKey: "dueDateLabel",
211
- enableSorting: j,
212
- header: e(J.columnDueDate),
213
- cell: i
214
- },
215
- [p.ScheduledDate]: {
216
- accessorKey: "scheduledDateLabel",
217
- enableSorting: j,
218
- header: e(J.columnScheduledDate),
219
- cell: te
220
- },
221
- [p.PaidDate]: {
222
- accessorKey: "paidDateLabel",
223
- enableSorting: !1,
224
- header: J.columnPaidDate,
225
- cell: t("paidDateLabel", p.PaidDate)
226
- },
227
- [p.Status]: {
228
- accessorKey: "status",
229
- enableSorting: !1,
230
- header: J.columnStatus,
231
- cell: ({ row: e }) => /* @__PURE__ */ g("div", {
232
- className: "ttw:flex ttw:items-center ttw:gap-1",
233
- "data-testid": M?.[p.Status],
234
- children: /* @__PURE__ */ g(fe, {
235
- status: e.original.status,
236
- tone: e.original.statusTone,
237
- labels: J.statusBadge
238
- })
239
- })
240
- },
241
- [p.AmountDue]: {
242
- accessorKey: "amountDueLabel",
243
- enableSorting: !1,
244
- header: s(J.columnAmountDue),
245
- cell: a("amountDueLabel", p.AmountDue)
246
- },
247
- [p.AmountScheduled]: {
248
- accessorKey: "amountScheduledLabel",
249
- enableSorting: !1,
250
- header: s(J.columnAmountScheduled),
251
- cell: a("amountScheduledLabel", p.AmountScheduled)
252
- },
253
- [p.AmountPaid]: {
254
- accessorKey: "amountPaidLabel",
255
- enableSorting: !1,
256
- header: s(J.columnAmountPaid),
257
- cell: a("amountPaidLabel", p.AmountPaid, o, "amountPaidIsGap")
258
- },
259
- [p.TotalAmount]: {
260
- accessorKey: "totalAmountLabel",
261
- enableSorting: !1,
262
- header: s(J.columnTotalAmount),
263
- cell: a("totalAmountLabel", p.TotalAmount)
264
- },
265
- [p.AddedOn]: {
266
- accessorKey: "addedOnLabel",
267
- enableSorting: j,
268
- header: e(J.columnAddedOn),
269
- cell: t("addedOnLabel", p.AddedOn)
270
- }
271
- };
272
- }, [
273
- J,
274
- M,
275
- j
276
- ]), qe = m(() => [...(A ? k : Oe.filter((e) => k.includes(e))).map((e) => Z[e]), ...Be ? [{
277
- id: "actions",
278
- enableSorting: !1,
279
- size: De,
280
- header: () => /* @__PURE__ */ g("span", {
281
- className: "ttw:sr-only",
282
- children: J.columnActions
283
- }),
284
- cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ g("div", {
285
- className: "ttw:flex ttw:justify-end",
286
- children: /* @__PURE__ */ g(pe, {
287
- actions: e.original.menu.items.map((e) => ({
288
- ...e,
289
- variant: "ghost"
290
- })),
291
- triggerLabel: e.original.menu.triggerLabel,
292
- placement: "table"
293
- })
294
- }) : null
295
- }] : []], [
296
- Z,
297
- Be,
298
- A,
299
- J,
300
- k
301
- ]), Je = !!(F && R) && !x && !S && !N && b.length === 0 && ze === !0, Q = F ? /* @__PURE__ */ g(e, {
302
- onClick: F,
303
- children: J.createButton
304
- }) : null, Ye = /* @__PURE__ */ _("div", {
305
- className: "ttw:relative ttw:w-80",
306
- children: [/* @__PURE__ */ g(Se, { 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__ */ g(i, {
307
- className: "ttw:pl-9",
308
- type: "search",
309
- "aria-label": J.searchLabel,
310
- placeholder: J.searchPlaceholder,
311
- value: Le,
312
- onChange: (e) => Re(e.target.value)
313
- })]
314
- }), Xe = q ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(de, { ...q }), /* @__PURE__ */ g("div", {
315
- className: "ttw:ml-auto",
316
- children: Ye
317
- })] }) : Ye, Ze = O ? /* @__PURE__ */ g(ge, {
318
- ...O,
319
- className: "ttw:px-4",
320
- searchSlot: Xe
321
- }) : /* @__PURE__ */ g("div", {
322
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
323
- children: Xe
324
- }), $ = S ? /* @__PURE__ */ g(se, {
325
- title: J.errorTitle,
326
- description: J.errorDescription,
327
- retryLabel: L ? J.errorRetry : void 0,
328
- onRetry: L
329
- }) : Je && F && R ? /* @__PURE__ */ g("div", {
330
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
331
- children: U && W ? /* @__PURE__ */ g(he, {
332
- emailAddress: U,
333
- onCopyEmail: W,
334
- onFilesSelected: R,
335
- accept: f,
336
- maxFiles: z,
337
- uploadStatus: V,
338
- uploadErrorMessage: H,
339
- onEnterManually: B ?? F,
340
- labels: J.addBill
341
- }) : /* @__PURE__ */ g(he, {
342
- onFilesSelected: R,
343
- accept: f,
344
- maxFiles: z,
345
- uploadStatus: V,
346
- uploadErrorMessage: H,
347
- onEnterManually: B ?? F,
348
- labels: J.addBill
349
- })
350
- }) : /* @__PURE__ */ _("div", {
351
- className: "ttw:relative",
352
- onDragEnter: Ue,
353
- onDragOver: We,
354
- onDragLeave: Ge,
355
- onDrop: Ke,
356
- children: [/* @__PURE__ */ g(n, {
357
- columns: qe,
358
- data: b,
359
- getRowId: (e) => e.rowKey,
360
- animatesNewRows: !0,
361
- isLoading: x,
362
- sorting: ke,
363
- onSortingChange: Ae,
364
- pageSize: je,
365
- onPageSizeChange: Me,
366
- pageSizeOptions: C,
367
- showPagination: C.length > 1 || w || T,
368
- pageInfo: Ne,
369
- hasNextPage: w,
370
- hasPrevPage: T,
371
- onNextPage: Pe,
372
- onPrevPage: Fe,
373
- onRowClick: (e) => e.onOpen(),
374
- rowAriaLabel: (e) => J.openRow(e.vendorLabel || Ee(e.vendorLookup, J)),
375
- rowGroup: (e) => e.group ? {
376
- key: e.group.key,
377
- label: e.group.label,
378
- tone: "warning",
379
- icon: /* @__PURE__ */ g(l, {}),
380
- title: e.group.title,
381
- meta: e.group.meta,
382
- collapse: e.group.collapse
383
- } : void 0,
384
- rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ g(h, { children: e.menu.items.map((e) => {
385
- let n = e.icon;
386
- return /* @__PURE__ */ _(t, {
387
- disabled: e.disabled,
388
- onClick: e.onSelect,
389
- children: [n ? /* @__PURE__ */ g(n, { className: "ttw:size-4" }) : null, e.label]
390
- }, e.id);
391
- }) }) : void 0,
392
- filterComponent: Ze,
393
- children: N ? /* @__PURE__ */ g(c, {
394
- title: J.filteredEmptyTitle,
395
- description: J.filteredEmptyDescription
396
- }) : P ? /* @__PURE__ */ g(c, {
397
- title: P.title,
398
- description: P.description
399
- }) : void 0
400
- }), Ve ? /* @__PURE__ */ g("div", {
401
- 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]",
402
- children: /* @__PURE__ */ _("div", {
403
- 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",
404
- children: [/* @__PURE__ */ g(Ce, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
405
- className: "ttw:text-sm ttw:font-medium",
406
- children: J.tableDropzoneTitle
407
- }), /* @__PURE__ */ g("p", {
408
- className: "ttw:text-xs ttw:text-muted-foreground",
409
- children: z === void 0 ? J.addBill.dropzone.fileTypesHint : `${J.addBill.dropzone.fileTypesHint} · ${J.addBill.dropzone.fileCountHint(z)}`
410
- })] })]
411
- })
412
- }) : null]
413
- });
414
- return /* @__PURE__ */ _("div", {
415
- role: "presentation",
416
- className: "ttw:flex ttw:flex-col ttw:gap-3",
417
- onKeyDown: (e) => {
418
- q && e.key === "Escape" && !e.defaultPrevented && (e.target.closest("[role=\"menu\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"listbox\"], input, textarea, select") || q.onBack());
419
- },
420
- children: [
421
- K ? /* @__PURE__ */ g(ue, { ...K }) : null,
422
- q ? /* @__PURE__ */ _("div", {
423
- className: "ttw:flex ttw:flex-col ttw:gap-4",
424
- children: [I === void 0 && Q ? /* @__PURE__ */ g("div", {
425
- className: "ttw:flex ttw:justify-end",
426
- children: Q
427
- }) : null, $]
428
- }) : /* @__PURE__ */ _(o, {
429
- value: D,
430
- onValueChange: Ie,
431
- className: "ttw:flex ttw:flex-col ttw:gap-4",
432
- children: [/* @__PURE__ */ _("div", {
433
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
434
- children: [/* @__PURE__ */ g(s, {
435
- variant: "pills",
436
- "aria-label": J.filterTabsLabel,
437
- children: E.map((e) => /* @__PURE__ */ _(ve, { children: [e.startsGroup ? /* @__PURE__ */ g(a, {
438
- orientation: "vertical",
439
- className: "ttw:mx-1 ttw:data-[orientation=vertical]:h-4"
440
- }) : null, /* @__PURE__ */ g(ne, {
441
- value: e.id,
442
- count: e.badge,
443
- countTone: e.tone,
444
- className: "ttw:min-w-28",
445
- children: /* @__PURE__ */ g("span", {
446
- className: e.tone === "warning" ? "ttw:text-warning-foreground" : void 0,
447
- children: e.label
448
- })
449
- })] }, e.id))
450
- }), I === void 0 ? Q : null]
451
- }), E.map((e) => /* @__PURE__ */ g(te, {
452
- value: e.id,
453
- children: e.id === D ? $ : null
454
- }, e.id))]
455
- }),
456
- I && Q ? be(Q, I) : null
457
- ]
458
- });
459
- }
460
- export { b as BillsScreen, b as default, y as DEFAULT_BILL_COLUMNS };
1
+ import "./index18.js";
2
+ import "./index19.js";
@@ -1,3 +1,55 @@
1
- import "./index18.js";
2
- import "./index19.js";
1
+ import { DATA_TABLE_LABELS_EN as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../../../shared/document-status/ui/dist/index2.js";
3
+ import "../../../../shared/document-status/ui/dist/index.js";
4
+ import { ADD_BILL_PANEL_LABELS_EN as n } from "./index2.js";
5
+ import "./index4.js";
6
+ import { MISSING_VALUE_LABELS_EN as r } from "./index15.js";
7
+ import "./index17.js";
8
+ import { NO_VALUE_LABELS_EN as i } from "./index18.js";
3
9
  import "./index20.js";
10
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js
11
+ var a = ".pdf,.png,.jpg,.jpeg,.doc,.docx", o = {
12
+ ...n,
13
+ dropzone: {
14
+ ...n.dropzone,
15
+ fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
16
+ }
17
+ }, s = {
18
+ createButton: "Add bill",
19
+ columnVendor: "Vendor",
20
+ columnInvoiceNumber: "Invoice number",
21
+ columnAttachment: "Attachment",
22
+ columnIssueDate: "Issue date",
23
+ columnDueDate: "Due date",
24
+ columnScheduledDate: "Scheduled date",
25
+ columnPaidDate: "Paid date",
26
+ columnAmountDue: "Amount due",
27
+ columnAmountScheduled: "Amount scheduled",
28
+ columnAmountPaid: "Amount paid",
29
+ columnTotalAmount: "Total amount",
30
+ columnStatus: "Status",
31
+ columnAddedOn: "Added on",
32
+ columnActions: "Actions",
33
+ openRow: (e) => `View bill — ${e}`,
34
+ vendorResolving: "Loading vendor",
35
+ vendorUnavailable: "Vendor unavailable",
36
+ searchPlaceholder: "Search by vendor name",
37
+ searchLabel: "Search bills by vendor name",
38
+ filterTabsLabel: "Filter bills by status",
39
+ filteredEmptyTitle: "No bills match",
40
+ filteredEmptyDescription: "Try a different search or status filter.",
41
+ errorTitle: "Couldn't load bills",
42
+ errorDescription: "Something went wrong. Try again.",
43
+ errorRetry: "Retry",
44
+ tableDropzoneTitle: "Drop your files here",
45
+ statusBadge: t,
46
+ addBill: o,
47
+ sortableHeader: {
48
+ sortedAscending: e.sortedAscending,
49
+ sortedDescending: e.sortedDescending,
50
+ notSorted: e.notSorted
51
+ },
52
+ missingValue: r,
53
+ noValue: i
54
+ };
55
+ export { s as BILLS_SCREEN_LABELS_EN, a as BILLS_SCREEN_UPLOAD_ACCEPT };
@@ -0,0 +1,17 @@
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js
2
+ var e = {
3
+ Vendor: "vendor",
4
+ InvoiceNumber: "invoiceNumber",
5
+ Attachment: "attachment",
6
+ IssueDate: "issueDate",
7
+ DueDate: "dueDate",
8
+ ScheduledDate: "scheduledDate",
9
+ PaidDate: "paidDate",
10
+ Status: "status",
11
+ AmountDue: "amountDue",
12
+ AmountScheduled: "amountScheduled",
13
+ AmountPaid: "amountPaid",
14
+ TotalAmount: "totalAmount",
15
+ AddedOn: "addedOn"
16
+ };
17
+ export { e as BillColumn };