@tesouro/embedded-components-react 0.5.139 → 0.5.142

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 (169) 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 +11 -11
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +9 -24
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +21 -37
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +21 -14
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +41 -8
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +16 -4
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +8 -98
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -83
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -3
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +78 -135
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -45
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +139 -109
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +44 -186
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +108 -72
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +188 -29
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -83
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -406
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +88 -12
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +403 -77
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +13 -80
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +77 -221
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -41
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +212 -234
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +44 -21
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +234 -557
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +23 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +581 -40
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -251
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +45 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +261 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -46
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +4 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +44 -6
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -13
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +6 -127
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +13 -3
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +126 -3
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -127
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +3 -8
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +124 -7
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +8 -46
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +8 -21
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +51 -20
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -28
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +19 -83
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +28 -47
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +76 -252
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +48 -33
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +249 -142
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +27 -206
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +160 -4
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +217 -5
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +3 -112
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +7 -1
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +104 -18
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +1 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +27 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +48 -48
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +12 -2
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +102 -27
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -128
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +31 -2
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +125 -30
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +2 -10
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +29 -177
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +10 -2
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +178 -11
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -108
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +14 -2
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +106 -8
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -52
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -2
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +26 -16
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +14 -19
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -11
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +19 -14
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +14 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +16 -2
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +26 -28
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -31
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +27 -117
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +19 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +123 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -16
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +4 -2
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -2
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -22
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +4 -2
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -99
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -79
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +97 -273
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +79 -2
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +273 -18
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -56
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +21 -2
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -14
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -50
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +18 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +47 -32
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -374
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +35 -2
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +369 -18
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -96
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +23 -2
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +93 -29
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +1 -51
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +31 -1
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +49 -53
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -13
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +53 -194
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -2
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +195 -2
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -41
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +4 -2
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +37 -15
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -88
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +19 -2
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +78 -308
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -9
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +311 -27
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +9 -2
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +33 -2
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +1 -0
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -8
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -39
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +37 -2
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -36
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +4 -2
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -37
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -12
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +37 -199
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +12 -3
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +199 -15
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -402
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +13 -6
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +413 -6
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +8 -91
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +9 -0
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +93 -2
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -28
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +118 -87
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -2
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +92 -5
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -30
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -2
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +28 -5
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -34
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +7 -2
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -10
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +1 -105
  164. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +855 -831
  165. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  166. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/relativeCalendarDay.js +12 -0
  167. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  168. package/package.json +1 -1
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -125
@@ -1,403 +1,3 @@
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
- import { EmptyState as d } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
- import { ErrorState as ie } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
- import "../../../shared/ui/dist/index.js";
5
- import { getAcceptedBillUploadFiles as ae } from "./index3.js";
6
- import "./index5.js";
7
- import { AddBillPanel as f } from "./index7.js";
8
- import "./index8.js";
9
- import { BillStatusBadge as oe } from "./index19.js";
10
- import "./index20.js";
11
- import { DueDateValue as se } from "./index22.js";
12
- import "./index23.js";
13
- import { MissingValue as p } from "./index31.js";
14
- import "./index32.js";
15
- import { NoValue as m } from "./index34.js";
16
- import "./index35.js";
17
- import { BILLS_SCREEN_LABELS_EN as h, BILLS_SCREEN_UPLOAD_ACCEPT as g } from "./index36.js";
18
- import { BillsFilterBar as ce } from "./index79.js";
1
+ import "./index79.js";
19
2
  import "./index80.js";
20
- import { BillColumn as _ } from "./index81.js";
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
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js
25
- var ge = [
26
- 10,
27
- 25,
28
- 50,
29
- 100
30
- ], _e = 240, ve = {
31
- default: "",
32
- warning: "ttw:bg-amber-50 ttw:hover:bg-amber-100 ttw:border-l-4! ttw:border-l-amber-600!"
33
- }, x = {
34
- default: "",
35
- warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
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 = [
41
- _.Vendor,
42
- _.Attachment,
43
- _.IssueDate,
44
- _.DueDate,
45
- _.ScheduledDate,
46
- _.PaidDate,
47
- _.Status,
48
- _.AmountDue,
49
- _.AmountScheduled,
50
- _.AmountPaid,
51
- _.TotalAmount,
52
- _.AddedOn
53
- ], C = [
54
- _.Vendor,
55
- _.Attachment,
56
- _.DueDate,
57
- _.Status,
58
- _.AmountDue,
59
- _.AddedOn
60
- ];
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 }) {
62
- let J = v(() => ({
63
- ...h,
64
- ...G,
65
- statusBadge: {
66
- ...h.statusBadge,
67
- ...G?.statusBadge
68
- },
69
- addBill: {
70
- ...h.addBill,
71
- ...G?.addBill,
72
- dropzone: {
73
- ...h.addBill.dropzone,
74
- ...G?.addBill?.dropzone
75
- }
76
- },
77
- sortableHeader: {
78
- ...h.sortableHeader,
79
- ...G?.sortableHeader
80
- },
81
- missingValue: {
82
- ...h.missingValue,
83
- ...G?.missingValue
84
- },
85
- noValue: {
86
- ...h.noValue,
87
- ...G?.noValue
88
- },
89
- dueDate: {
90
- ...h.dueDate,
91
- ...G?.dueDate
92
- }
93
- }), [G]), [Pe, Y] = le(!1), X = !!R, Z = (e) => Array.from(e.dataTransfer.types).includes("Files"), Fe = (e) => {
94
- X && Z(e) && (e.preventDefault(), Y(!0));
95
- }, Ie = (e) => {
96
- X && Z(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Y(!0));
97
- }, Le = (e) => {
98
- !e.currentTarget.contains(e.relatedTarget) && X && Y(!1);
99
- }, Re = (e) => {
100
- if (!X) return;
101
- e.preventDefault(), Y(!1);
102
- let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = ae(t, g, z !== 1);
103
- n.length && R?.(n);
104
- }, Q = v(() => {
105
- let e = (e) => function({ column: t }) {
106
- return /* @__PURE__ */ y(i, {
107
- column: t,
108
- title: e,
109
- labels: J.sortableHeader
110
- });
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;
113
- return /* @__PURE__ */ y("span", {
114
- className: "ttw:whitespace-nowrap",
115
- "data-testid": M?.[t],
116
- children: i.original[e] || a
117
- });
118
- }, n = function({ row: e }) {
119
- return /* @__PURE__ */ y("span", {
120
- className: "ttw:whitespace-nowrap",
121
- "data-testid": M?.[_.DueDate],
122
- children: /* @__PURE__ */ y(se, {
123
- value: e.original.dueDateLabel || /* @__PURE__ */ y(p, { labels: J.missingValue }),
124
- tone: e.original.dueDateTone,
125
- labels: J.dueDate
126
- })
127
- });
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;
130
- return /* @__PURE__ */ y("div", {
131
- className: "ttw:text-right ttw:whitespace-nowrap",
132
- "data-testid": M?.[t],
133
- children: i.original[e] || a
134
- });
135
- }, a = /* @__PURE__ */ y(m, { labels: J.noValue }), o = (e) => function() {
136
- return /* @__PURE__ */ y("div", {
137
- className: "ttw:text-right",
138
- children: e
139
- });
140
- };
141
- return {
142
- [_.Vendor]: {
143
- accessorKey: "vendorLabel",
144
- enableSorting: !0,
145
- minSize: _e,
146
- header: e(J.columnVendor),
147
- cell: ({ row: e }) => {
148
- let t = e.original.rowNote ? /* @__PURE__ */ y("span", {
149
- className: "ttw:sr-only",
150
- children: ` ${e.original.rowNote}`
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
- }
165
- },
166
- [_.Attachment]: {
167
- accessorKey: "attachment",
168
- enableSorting: !1,
169
- size: S,
170
- minSize: S,
171
- header: () => /* @__PURE__ */ y("span", {
172
- className: "ttw:sr-only",
173
- children: J.columnAttachment
174
- }),
175
- cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ y("div", {
176
- className: "ttw:flex ttw:justify-center",
177
- "data-testid": M?.[_.Attachment],
178
- children: /* @__PURE__ */ y(l, { children: /* @__PURE__ */ b(s, { children: [/* @__PURE__ */ y(u, {
179
- type: "button",
180
- className: "ttw:inline-flex ttw:cursor-default",
181
- "aria-label": e.original.attachment.label,
182
- onClick: (e) => e.stopPropagation(),
183
- children: /* @__PURE__ */ y(de, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
184
- }), /* @__PURE__ */ y(c, { children: e.original.attachment.label })] }) })
185
- }) : null
186
- },
187
- [_.IssueDate]: {
188
- accessorKey: "issueDateLabel",
189
- enableSorting: !0,
190
- header: e(J.columnIssueDate),
191
- cell: t("issueDateLabel", _.IssueDate)
192
- },
193
- [_.DueDate]: {
194
- accessorKey: "dueDateLabel",
195
- enableSorting: !0,
196
- header: e(J.columnDueDate),
197
- cell: n
198
- },
199
- [_.ScheduledDate]: {
200
- accessorKey: "scheduledDateLabel",
201
- enableSorting: !0,
202
- header: e(J.columnScheduledDate),
203
- cell: t("scheduledDateLabel", _.ScheduledDate, a, "scheduledDateIsGap")
204
- },
205
- [_.PaidDate]: {
206
- accessorKey: "paidDateLabel",
207
- enableSorting: !1,
208
- header: J.columnPaidDate,
209
- cell: t("paidDateLabel", _.PaidDate)
210
- },
211
- [_.Status]: {
212
- accessorKey: "status",
213
- enableSorting: !1,
214
- header: J.columnStatus,
215
- cell: ({ row: e }) => /* @__PURE__ */ y("div", {
216
- className: "ttw:flex ttw:items-center ttw:gap-1",
217
- "data-testid": M?.[_.Status],
218
- children: /* @__PURE__ */ y(oe, {
219
- status: e.original.status,
220
- tone: e.original.statusTone,
221
- labels: J.statusBadge
222
- })
223
- })
224
- },
225
- [_.AmountDue]: {
226
- accessorKey: "amountDueLabel",
227
- enableSorting: !1,
228
- header: o(J.columnAmountDue),
229
- cell: r("amountDueLabel", _.AmountDue)
230
- },
231
- [_.AmountScheduled]: {
232
- accessorKey: "amountScheduledLabel",
233
- enableSorting: !1,
234
- header: o(J.columnAmountScheduled),
235
- cell: r("amountScheduledLabel", _.AmountScheduled)
236
- },
237
- [_.AmountPaid]: {
238
- accessorKey: "amountPaidLabel",
239
- enableSorting: !1,
240
- header: o(J.columnAmountPaid),
241
- cell: r("amountPaidLabel", _.AmountPaid, a, "amountPaidIsGap")
242
- },
243
- [_.TotalAmount]: {
244
- accessorKey: "totalAmountLabel",
245
- enableSorting: !1,
246
- header: o(J.columnTotalAmount),
247
- cell: r("totalAmountLabel", _.TotalAmount)
248
- },
249
- [_.AddedOn]: {
250
- accessorKey: "addedOnLabel",
251
- enableSorting: !0,
252
- header: e(J.columnAddedOn),
253
- cell: t("addedOnLabel", _.AddedOn)
254
- }
255
- };
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", {
257
- className: "ttw:relative ttw:w-80",
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, {
259
- className: "ttw:pl-9",
260
- type: "search",
261
- "aria-label": J.searchLabel,
262
- placeholder: J.searchPlaceholder,
263
- value: k,
264
- onChange: (e) => Me(e.target.value)
265
- })]
266
- }), Ve = A ? /* @__PURE__ */ y(ce, {
267
- ...A,
268
- className: "ttw:px-4",
269
- searchSlot: $
270
- }) : /* @__PURE__ */ y("div", {
271
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
272
- children: $
273
- });
274
- return /* @__PURE__ */ b("div", {
275
- className: "ttw:flex ttw:flex-col ttw:gap-3",
276
- children: [K ? /* @__PURE__ */ b(e, {
277
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-none ttw:border-0 ttw:border-l-4 ttw:border-l-amber-600 ttw:bg-amber-50 ttw:py-2 ttw:text-amber-700",
278
- children: [/* @__PURE__ */ y(t, {
279
- className: "ttw:flex-1 ttw:font-semibold",
280
- children: K
281
- }), q ? /* @__PURE__ */ y(n, {
282
- type: "button",
283
- variant: "outline",
284
- className: "ttw:text-foreground",
285
- onClick: q,
286
- children: J.duplicateBillsReviewButton
287
- }) : null]
288
- }) : null, /* @__PURE__ */ b(o, {
289
- value: O,
290
- onValueChange: je,
291
- className: "ttw:flex ttw:flex-col ttw:gap-4",
292
- children: [/* @__PURE__ */ b("div", {
293
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
294
- children: [/* @__PURE__ */ y(ne, {
295
- "aria-label": J.filterTabsLabel,
296
- children: D.map((e) => /* @__PURE__ */ b(re, {
297
- value: e.id,
298
- className: "ttw:group/tab ttw:min-w-28 ttw:gap-2",
299
- children: [e.label, e.badge ? /* @__PURE__ */ b(ue, { children: [" ", /* @__PURE__ */ y("span", {
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",
301
- children: e.badge
302
- })] }) : null]
303
- }, e.id))
304
- }), /* @__PURE__ */ b("div", {
305
- className: "ttw:flex ttw:items-center ttw:gap-2",
306
- children: [I ? /* @__PURE__ */ y(l, { children: /* @__PURE__ */ b(s, { children: [/* @__PURE__ */ y(u, {
307
- asChild: !0,
308
- children: /* @__PURE__ */ y(n, {
309
- variant: "outline",
310
- size: "icon",
311
- "aria-label": J.settingsButton,
312
- onClick: I,
313
- children: /* @__PURE__ */ y(me, { className: "ttw:size-4" })
314
- })
315
- }), /* @__PURE__ */ y(c, { children: J.settingsButton })] }) }) : null, F ? /* @__PURE__ */ b(n, {
316
- onClick: F,
317
- children: [/* @__PURE__ */ y(fe, { className: "ttw:size-4" }), J.createButton]
318
- }) : null]
319
- })]
320
- }), (() => {
321
- let e = E ? /* @__PURE__ */ y(ie, {
322
- title: J.errorTitle,
323
- description: J.errorDescription,
324
- retryLabel: L ? J.errorRetry : void 0,
325
- onRetry: L
326
- }) : Be && F && R ? /* @__PURE__ */ y("div", {
327
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
328
- children: U && W ? /* @__PURE__ */ y(f, {
329
- emailAddress: U,
330
- onCopyEmail: W,
331
- onFilesSelected: R,
332
- accept: g,
333
- maxFiles: z,
334
- uploadStatus: V,
335
- uploadErrorMessage: H,
336
- onEnterManually: B ?? F,
337
- labels: J.addBill
338
- }) : /* @__PURE__ */ y(f, {
339
- onFilesSelected: R,
340
- accept: g,
341
- maxFiles: z,
342
- uploadStatus: V,
343
- uploadErrorMessage: H,
344
- onEnterManually: B ?? F,
345
- labels: J.addBill
346
- })
347
- }) : /* @__PURE__ */ b("div", {
348
- className: "ttw:relative",
349
- onDragEnter: Fe,
350
- onDragOver: Ie,
351
- onDragLeave: Le,
352
- onDrop: Re,
353
- children: [/* @__PURE__ */ y(r, {
354
- columns: ze,
355
- data: w,
356
- getRowId: (e) => e.rowKey,
357
- animatesNewRows: !0,
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,
369
- onRowClick: (e) => e.onOpen(),
370
- rowAriaLabel: (e) => J.openRow(e.vendorLabel || ye(e.vendorLookup, J)),
371
- rowClassName: (e) => ve[e.rowTone ?? "default"],
372
- filterComponent: Ve,
373
- children: N ? /* @__PURE__ */ y(d, {
374
- title: J.filteredEmptyTitle,
375
- description: J.filteredEmptyDescription
376
- }) : P ? /* @__PURE__ */ y(d, {
377
- title: P.title,
378
- description: P.description
379
- }) : void 0
380
- }), Pe ? /* @__PURE__ */ y("div", {
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]",
382
- children: /* @__PURE__ */ b("div", {
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",
384
- children: [/* @__PURE__ */ y(he, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
385
- className: "ttw:text-sm ttw:font-medium",
386
- children: J.tableDropzoneTitle
387
- }), /* @__PURE__ */ y("p", {
388
- className: "ttw:text-xs ttw:text-muted-foreground",
389
- children: z === void 0 ? J.addBill.dropzone.fileTypesHint : `${J.addBill.dropzone.fileTypesHint} · ${J.addBill.dropzone.fileCountHint(z)}`
390
- })] })]
391
- })
392
- }) : null]
393
- });
394
- return D.map((t) => /* @__PURE__ */ y(te, {
395
- value: t.id,
396
- children: t.id === O ? e : null
397
- }, t.id));
398
- })()]
399
- })]
400
- });
401
- }
402
- //#endregion
403
- export { w as BillsScreen, w as default, C as DEFAULT_BILL_COLUMNS };
3
+ import "./index81.js";
@@ -1,10 +1,17 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js
2
2
  var e = {
3
- collapse: "Collapse upload status",
4
- expand: "Expand upload status",
5
- close: "Close upload status",
6
- statusLabel: (e) => e === "uploading" ? "Uploading" : e === "ready" ? "Ready" : e === "duplicate" ? "Possible duplicate" : "Failed",
7
- openItem: (e) => `Open ${e}`
3
+ Vendor: "vendor",
4
+ Attachment: "attachment",
5
+ IssueDate: "issueDate",
6
+ DueDate: "dueDate",
7
+ ScheduledDate: "scheduledDate",
8
+ PaidDate: "paidDate",
9
+ Status: "status",
10
+ AmountDue: "amountDue",
11
+ AmountScheduled: "amountScheduled",
12
+ AmountPaid: "amountPaid",
13
+ TotalAmount: "totalAmount",
14
+ AddedOn: "addedOn"
8
15
  };
9
16
  //#endregion
10
- export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
17
+ export { e as BillColumn };