@tesouro/embedded-components-react 0.11.8 → 0.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.d.ts +7 -0
- package/dist/index.css +12 -49
- package/dist/index.d.ts +7 -0
- package/dist/lib/WidgetProvider.d.ts +7 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +99 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +110 -100
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +45 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +259 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +190 -165
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +151 -143
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +77 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +1 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupCollapse.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +48 -45
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +119 -116
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useTokenRefreshRef.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/client.js +11 -8
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/expectedApiNotFound.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/interceptor.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetTokenManager.js +65 -53
- package/dist/packages/shared-ui-shadcn/dist/index.js +1637 -1507
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -28
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
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 s, TabsList as c, TabsTrigger as te, Tooltip as
|
|
2
|
-
import { EmptyState as
|
|
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 s, TabsList as c, TabsTrigger as te, Tooltip as ne, TooltipContent as l, TooltipProvider as u, TooltipTrigger as d } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as f } from "../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
3
|
import { ErrorState as re } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
4
|
import "../../../../shared/ui/dist/index.js";
|
|
5
5
|
import { BillStatusBadge as ie } from "../../../../shared/document-status/ui/dist/index4.js";
|
|
6
6
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { BillDuplicateIcon as ae } from "../../../ui/dist/index6.js";
|
|
8
|
+
import { BillDuplicateWarning as oe } from "../../../ui/dist/index8.js";
|
|
9
|
+
import { BillOverflowMenu as se } from "../../../ui/dist/index11.js";
|
|
10
|
+
import { getAcceptedBillUploadFiles as ce } from "../../../ui/dist/index17.js";
|
|
11
|
+
import { DateDisclosure as le } from "../../../ui/dist/index20.js";
|
|
12
|
+
import { DueDateValue as ue } from "../../../ui/dist/index22.js";
|
|
12
13
|
import "../../../ui/dist/index.js";
|
|
13
|
-
import { AddBillPanel as
|
|
14
|
+
import { AddBillPanel as p } from "./index3.js";
|
|
14
15
|
import "./index4.js";
|
|
15
|
-
import { BillsFilterBar as
|
|
16
|
+
import { BillsFilterBar as de } from "./index10.js";
|
|
16
17
|
import "./index11.js";
|
|
17
|
-
import { MissingValue as
|
|
18
|
+
import { MissingValue as m } from "./index13.js";
|
|
18
19
|
import "./index14.js";
|
|
19
|
-
import { NoValue as
|
|
20
|
+
import { NoValue as h } from "./index16.js";
|
|
20
21
|
import "./index17.js";
|
|
21
22
|
import { BILLS_SCREEN_LABELS_EN as g, BILLS_SCREEN_UPLOAD_ACCEPT as _ } from "./index18.js";
|
|
22
23
|
import { BillColumn as v } from "./index19.js";
|
|
@@ -29,17 +30,11 @@ var be = [
|
|
|
29
30
|
25,
|
|
30
31
|
50,
|
|
31
32
|
100
|
|
32
|
-
], xe = 240
|
|
33
|
-
|
|
34
|
-
warning: "ttw:bg-warning-subtle ttw:hover:bg-warning/20 ttw:border-l-4! ttw:border-l-warning!"
|
|
35
|
-
}, S = {
|
|
36
|
-
default: "",
|
|
37
|
-
warning: "ttw:-ml-1 ttw:font-semibold ttw:text-warning-foreground"
|
|
38
|
-
};
|
|
39
|
-
function Ce(e, t) {
|
|
33
|
+
], xe = 240;
|
|
34
|
+
function Se(e, t) {
|
|
40
35
|
return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.missingValue.missing;
|
|
41
36
|
}
|
|
42
|
-
var
|
|
37
|
+
var Ce = 40, we = 56, Te = [
|
|
43
38
|
v.Vendor,
|
|
44
39
|
v.InvoiceNumber,
|
|
45
40
|
v.Attachment,
|
|
@@ -53,7 +48,7 @@ var C = 40, we = [
|
|
|
53
48
|
v.AmountPaid,
|
|
54
49
|
v.TotalAmount,
|
|
55
50
|
v.AddedOn
|
|
56
|
-
],
|
|
51
|
+
], S = [
|
|
57
52
|
v.Vendor,
|
|
58
53
|
v.Attachment,
|
|
59
54
|
v.DueDate,
|
|
@@ -61,87 +56,87 @@ var C = 40, we = [
|
|
|
61
56
|
v.AmountDue,
|
|
62
57
|
v.AddedOn
|
|
63
58
|
];
|
|
64
|
-
function
|
|
59
|
+
function C({ rows: C, isLoading: w, isError: T, sorting: Ee, onSortingChange: De, pageSize: Oe, onPageSizeChange: ke, pageSizeOptions: E = be, pageInfo: Ae, hasNextPage: D, hasPrevPage: O, onNextPage: je, onPrevPage: Me, filterTabs: k, selectedFilterTabId: A, onFilterTabChange: Ne, searchValue: Pe, onSearchChange: Fe, filters: j, visibleColumns: M = S, keepsColumnOrder: N = !1, isSortable: P = !0, cellTestIds: F, isSearchActive: I, showAddPanelWhenEmpty: Ie, emptyState: L, onCreateClick: R, onSettingsClick: z, onRetry: B, onFilesSelected: V, maxFiles: H, onEnterManually: U, uploadStatus: W, uploadErrorMessage: G, emailAddress: K, onCopyEmail: q, labels: J, duplicateWarning: Le, duplicateReviewControl: Y }) {
|
|
65
60
|
let X = y(() => ({
|
|
66
61
|
...g,
|
|
67
|
-
...
|
|
62
|
+
...J,
|
|
68
63
|
statusBadge: {
|
|
69
64
|
...g.statusBadge,
|
|
70
|
-
...
|
|
65
|
+
...J?.statusBadge
|
|
71
66
|
},
|
|
72
67
|
addBill: {
|
|
73
68
|
...g.addBill,
|
|
74
|
-
...
|
|
69
|
+
...J?.addBill,
|
|
75
70
|
dropzone: {
|
|
76
71
|
...g.addBill.dropzone,
|
|
77
|
-
...
|
|
72
|
+
...J?.addBill?.dropzone
|
|
78
73
|
}
|
|
79
74
|
},
|
|
80
75
|
sortableHeader: {
|
|
81
76
|
...g.sortableHeader,
|
|
82
|
-
...
|
|
77
|
+
...J?.sortableHeader
|
|
83
78
|
},
|
|
84
79
|
missingValue: {
|
|
85
80
|
...g.missingValue,
|
|
86
|
-
...
|
|
81
|
+
...J?.missingValue
|
|
87
82
|
},
|
|
88
83
|
noValue: {
|
|
89
84
|
...g.noValue,
|
|
90
|
-
...
|
|
85
|
+
...J?.noValue
|
|
91
86
|
},
|
|
92
87
|
dueDate: {
|
|
93
88
|
...g.dueDate,
|
|
94
|
-
...
|
|
89
|
+
...J?.dueDate
|
|
95
90
|
}
|
|
96
|
-
}), [
|
|
97
|
-
|
|
98
|
-
}, Be = (e) => {
|
|
99
|
-
$ && Re(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Q(!0));
|
|
100
|
-
}, Ve = (e) => {
|
|
101
|
-
!e.currentTarget.contains(e.relatedTarget) && $ && Q(!1);
|
|
91
|
+
}), [J]), Re = C.some((e) => e.menu?.items.length), [ze, Z] = pe(!1), Q = !!V, Be = (e) => Array.from(e.dataTransfer.types).includes("Files"), Ve = (e) => {
|
|
92
|
+
Q && Be(e) && (e.preventDefault(), Z(!0));
|
|
102
93
|
}, He = (e) => {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
94
|
+
Q && Be(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Z(!0));
|
|
95
|
+
}, Ue = (e) => {
|
|
96
|
+
!e.currentTarget.contains(e.relatedTarget) && Q && Z(!1);
|
|
97
|
+
}, We = (e) => {
|
|
98
|
+
if (!Q) return;
|
|
99
|
+
e.preventDefault(), Z(!1);
|
|
100
|
+
let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = ce(t, _, H !== 1);
|
|
101
|
+
n.length && V?.(n);
|
|
102
|
+
}, Ge = y(() => {
|
|
103
|
+
let e = (e) => P ? function({ column: t }) {
|
|
109
104
|
return /* @__PURE__ */ b(r, {
|
|
110
105
|
column: t,
|
|
111
106
|
title: e,
|
|
112
107
|
labels: X.sortableHeader
|
|
113
108
|
});
|
|
114
|
-
}, t = (e, t, n = /* @__PURE__ */ b(
|
|
115
|
-
let a = r && i.original[r] ? /* @__PURE__ */ b(
|
|
109
|
+
} : e, t = (e, t, n = /* @__PURE__ */ b(m, { labels: X.missingValue }), r) => function({ row: i }) {
|
|
110
|
+
let a = r && i.original[r] ? /* @__PURE__ */ b(m, { labels: X.missingValue }) : n;
|
|
116
111
|
return /* @__PURE__ */ b("span", {
|
|
117
112
|
className: "ttw:whitespace-nowrap",
|
|
118
|
-
"data-testid":
|
|
113
|
+
"data-testid": F?.[t],
|
|
119
114
|
children: i.original[e] || a
|
|
120
115
|
});
|
|
121
116
|
}, n = t("invoiceNumberLabel", v.InvoiceNumber), i = function({ row: e }) {
|
|
122
117
|
return /* @__PURE__ */ b("span", {
|
|
123
118
|
className: "ttw:whitespace-nowrap",
|
|
124
|
-
"data-testid":
|
|
125
|
-
children: /* @__PURE__ */ b(
|
|
126
|
-
value: e.original.dueDateLabel || /* @__PURE__ */ b(
|
|
119
|
+
"data-testid": F?.[v.DueDate],
|
|
120
|
+
children: /* @__PURE__ */ b(ue, {
|
|
121
|
+
value: e.original.dueDateLabel || /* @__PURE__ */ b(m, { labels: X.missingValue }),
|
|
127
122
|
tone: e.original.dueDateTone,
|
|
128
123
|
labels: X.dueDate
|
|
129
124
|
})
|
|
130
125
|
});
|
|
131
|
-
}, a = (e, t, n = /* @__PURE__ */ b(
|
|
132
|
-
let a = r && i.original[r] ? /* @__PURE__ */ b(
|
|
126
|
+
}, a = (e, t, n = /* @__PURE__ */ b(m, { labels: X.missingValue }), r) => function({ row: i }) {
|
|
127
|
+
let a = r && i.original[r] ? /* @__PURE__ */ b(m, { labels: X.missingValue }) : n;
|
|
133
128
|
return /* @__PURE__ */ b("div", {
|
|
134
129
|
className: "ttw:text-right ttw:whitespace-nowrap",
|
|
135
|
-
"data-testid":
|
|
130
|
+
"data-testid": F?.[t],
|
|
136
131
|
children: i.original[e] || a
|
|
137
132
|
});
|
|
138
|
-
}, o = /* @__PURE__ */ b(
|
|
133
|
+
}, o = /* @__PURE__ */ b(h, { labels: X.noValue });
|
|
139
134
|
function s({ row: e }) {
|
|
140
|
-
let t = e.original.scheduledDateIsGap ? /* @__PURE__ */ b(
|
|
135
|
+
let t = e.original.scheduledDateIsGap ? /* @__PURE__ */ b(m, { labels: X.missingValue }) : o, n = e.original.scheduledDateLabel, r = e.original.scheduledDateExact;
|
|
141
136
|
return /* @__PURE__ */ b("span", {
|
|
142
137
|
className: "ttw:whitespace-nowrap",
|
|
143
|
-
"data-testid":
|
|
144
|
-
children: n && r ? /* @__PURE__ */ b(
|
|
138
|
+
"data-testid": F?.[v.ScheduledDate],
|
|
139
|
+
children: n && r ? /* @__PURE__ */ b(le, {
|
|
145
140
|
date: r,
|
|
146
141
|
children: n
|
|
147
142
|
}) : n || t
|
|
@@ -156,7 +151,7 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
156
151
|
return {
|
|
157
152
|
[v.Vendor]: {
|
|
158
153
|
accessorKey: "vendorLabel",
|
|
159
|
-
enableSorting:
|
|
154
|
+
enableSorting: P,
|
|
160
155
|
minSize: xe,
|
|
161
156
|
header: e(X.columnVendor),
|
|
162
157
|
cell: ({ row: e }) => {
|
|
@@ -164,19 +159,16 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
164
159
|
className: "ttw:sr-only",
|
|
165
160
|
children: ` ${e.original.rowNote}`
|
|
166
161
|
}) : null;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
"data-testid": P?.[v.Vendor],
|
|
162
|
+
return !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ x("div", {
|
|
163
|
+
"data-testid": F?.[v.Vendor],
|
|
170
164
|
children: [/* @__PURE__ */ b(ee, {
|
|
171
165
|
className: "ttw:h-4 ttw:w-32",
|
|
172
166
|
"aria-hidden": !0
|
|
173
167
|
}), t]
|
|
174
|
-
})
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"data-testid": P?.[v.Vendor],
|
|
179
|
-
children: [n || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ b(de, { labels: { none: X.vendorUnavailable } }) : /* @__PURE__ */ b(h, { labels: X.missingValue })), t]
|
|
168
|
+
}) : /* @__PURE__ */ x("span", {
|
|
169
|
+
className: "ttw:inline-flex ttw:items-center ttw:gap-2",
|
|
170
|
+
"data-testid": F?.[v.Vendor],
|
|
171
|
+
children: [e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ b(h, { labels: { none: X.vendorUnavailable } }) : /* @__PURE__ */ b(m, { labels: X.missingValue })), t]
|
|
180
172
|
});
|
|
181
173
|
}
|
|
182
174
|
},
|
|
@@ -184,44 +176,47 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
184
176
|
accessorKey: "invoiceNumberLabel",
|
|
185
177
|
enableSorting: !1,
|
|
186
178
|
header: () => X.columnInvoiceNumber,
|
|
187
|
-
cell: (e) => e.row.original.
|
|
179
|
+
cell: (e) => e.row.original.marker === "duplicate" ? /* @__PURE__ */ x("span", {
|
|
180
|
+
className: "ttw:relative",
|
|
181
|
+
children: [/* @__PURE__ */ b(ae, { className: "ttw:absolute ttw:top-1/2 ttw:right-full ttw:mr-1 ttw:-translate-y-1/2 ttw:text-warning" }), n(e)]
|
|
182
|
+
}) : n(e)
|
|
188
183
|
},
|
|
189
184
|
[v.Attachment]: {
|
|
190
185
|
accessorKey: "attachment",
|
|
191
186
|
enableSorting: !1,
|
|
192
|
-
size:
|
|
193
|
-
minSize:
|
|
187
|
+
size: Ce,
|
|
188
|
+
minSize: Ce,
|
|
194
189
|
header: () => /* @__PURE__ */ b("span", {
|
|
195
190
|
className: "ttw:sr-only",
|
|
196
191
|
children: X.columnAttachment
|
|
197
192
|
}),
|
|
198
193
|
cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ b("div", {
|
|
199
194
|
className: "ttw:flex ttw:justify-center",
|
|
200
|
-
"data-testid":
|
|
201
|
-
children: /* @__PURE__ */ b(
|
|
195
|
+
"data-testid": F?.[v.Attachment],
|
|
196
|
+
children: /* @__PURE__ */ b(u, { children: /* @__PURE__ */ x(ne, { children: [/* @__PURE__ */ b(d, {
|
|
202
197
|
type: "button",
|
|
203
198
|
className: "ttw:inline-flex ttw:cursor-default",
|
|
204
199
|
"aria-label": e.original.attachment.label,
|
|
205
200
|
onClick: (e) => e.stopPropagation(),
|
|
206
201
|
children: /* @__PURE__ */ b(he, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
|
|
207
|
-
}), /* @__PURE__ */ b(
|
|
202
|
+
}), /* @__PURE__ */ b(l, { children: e.original.attachment.label })] }) })
|
|
208
203
|
}) : null
|
|
209
204
|
},
|
|
210
205
|
[v.IssueDate]: {
|
|
211
206
|
accessorKey: "issueDateLabel",
|
|
212
|
-
enableSorting:
|
|
207
|
+
enableSorting: P,
|
|
213
208
|
header: e(X.columnIssueDate),
|
|
214
209
|
cell: t("issueDateLabel", v.IssueDate)
|
|
215
210
|
},
|
|
216
211
|
[v.DueDate]: {
|
|
217
212
|
accessorKey: "dueDateLabel",
|
|
218
|
-
enableSorting:
|
|
213
|
+
enableSorting: P,
|
|
219
214
|
header: e(X.columnDueDate),
|
|
220
215
|
cell: i
|
|
221
216
|
},
|
|
222
217
|
[v.ScheduledDate]: {
|
|
223
218
|
accessorKey: "scheduledDateLabel",
|
|
224
|
-
enableSorting:
|
|
219
|
+
enableSorting: P,
|
|
225
220
|
header: e(X.columnScheduledDate),
|
|
226
221
|
cell: s
|
|
227
222
|
},
|
|
@@ -237,7 +232,7 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
237
232
|
header: X.columnStatus,
|
|
238
233
|
cell: ({ row: e }) => /* @__PURE__ */ b("div", {
|
|
239
234
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
240
|
-
"data-testid":
|
|
235
|
+
"data-testid": F?.[v.Status],
|
|
241
236
|
children: /* @__PURE__ */ b(ie, {
|
|
242
237
|
status: e.original.status,
|
|
243
238
|
tone: e.original.statusTone,
|
|
@@ -271,21 +266,26 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
271
266
|
},
|
|
272
267
|
[v.AddedOn]: {
|
|
273
268
|
accessorKey: "addedOnLabel",
|
|
274
|
-
enableSorting:
|
|
269
|
+
enableSorting: P,
|
|
275
270
|
header: e(X.columnAddedOn),
|
|
276
271
|
cell: t("addedOnLabel", v.AddedOn)
|
|
277
272
|
}
|
|
278
273
|
};
|
|
279
|
-
}, [
|
|
274
|
+
}, [
|
|
275
|
+
X,
|
|
276
|
+
F,
|
|
277
|
+
P
|
|
278
|
+
]), Ke = y(() => [...(N ? M : Te.filter((e) => M.includes(e))).map((e) => Ge[e]), ...Re ? [{
|
|
280
279
|
id: "actions",
|
|
281
280
|
enableSorting: !1,
|
|
281
|
+
size: we,
|
|
282
282
|
header: () => /* @__PURE__ */ b("span", {
|
|
283
283
|
className: "ttw:sr-only",
|
|
284
284
|
children: X.columnActions
|
|
285
285
|
}),
|
|
286
286
|
cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ b("div", {
|
|
287
287
|
className: "ttw:flex ttw:justify-end",
|
|
288
|
-
children: /* @__PURE__ */ b(
|
|
288
|
+
children: /* @__PURE__ */ b(se, {
|
|
289
289
|
actions: e.original.menu.items.map((e) => ({
|
|
290
290
|
...e,
|
|
291
291
|
variant: "ghost"
|
|
@@ -295,11 +295,12 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
295
295
|
})
|
|
296
296
|
}) : null
|
|
297
297
|
}] : []], [
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
Ge,
|
|
299
|
+
Re,
|
|
300
|
+
N,
|
|
300
301
|
X,
|
|
301
|
-
|
|
302
|
-
]),
|
|
302
|
+
M
|
|
303
|
+
]), qe = !!(R && V) && !w && !T && !I && C.length === 0 && Ie === !0, $ = /* @__PURE__ */ x("div", {
|
|
303
304
|
className: "ttw:relative ttw:w-80",
|
|
304
305
|
children: [/* @__PURE__ */ b(_e, { 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__ */ b(i, {
|
|
305
306
|
className: "ttw:pl-9",
|
|
@@ -309,18 +310,18 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
309
310
|
value: Pe,
|
|
310
311
|
onChange: (e) => Fe(e.target.value)
|
|
311
312
|
})]
|
|
312
|
-
}),
|
|
313
|
-
...
|
|
313
|
+
}), Je = j ? /* @__PURE__ */ b(de, {
|
|
314
|
+
...j,
|
|
314
315
|
className: "ttw:px-4",
|
|
315
|
-
searchSlot:
|
|
316
|
+
searchSlot: $
|
|
316
317
|
}) : /* @__PURE__ */ b("div", {
|
|
317
318
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
318
|
-
children:
|
|
319
|
+
children: $
|
|
319
320
|
});
|
|
320
321
|
return /* @__PURE__ */ x("div", {
|
|
321
322
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
322
|
-
children: [
|
|
323
|
-
message:
|
|
323
|
+
children: [Le ? /* @__PURE__ */ b(oe, {
|
|
324
|
+
message: Le,
|
|
324
325
|
children: Y ? /* @__PURE__ */ b(e, {
|
|
325
326
|
type: "button",
|
|
326
327
|
variant: "outline",
|
|
@@ -330,7 +331,7 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
330
331
|
children: Y.reviewLabel
|
|
331
332
|
}) : null
|
|
332
333
|
}) : null, /* @__PURE__ */ x(o, {
|
|
333
|
-
value:
|
|
334
|
+
value: A,
|
|
334
335
|
onValueChange: Ne,
|
|
335
336
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
336
337
|
children: [/* @__PURE__ */ x("div", {
|
|
@@ -338,7 +339,7 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
338
339
|
children: [/* @__PURE__ */ b(c, {
|
|
339
340
|
variant: "pills",
|
|
340
341
|
"aria-label": X.filterTabsLabel,
|
|
341
|
-
children:
|
|
342
|
+
children: k.map((e) => /* @__PURE__ */ x(fe, { children: [e.startsGroup ? /* @__PURE__ */ b(a, {
|
|
342
343
|
orientation: "vertical",
|
|
343
344
|
className: "ttw:mx-1 ttw:data-[orientation=vertical]:h-4"
|
|
344
345
|
}) : null, /* @__PURE__ */ b(te, {
|
|
@@ -353,74 +354,81 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
353
354
|
})] }, e.id))
|
|
354
355
|
}), /* @__PURE__ */ x("div", {
|
|
355
356
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
356
|
-
children: [
|
|
357
|
+
children: [z ? /* @__PURE__ */ b(u, { children: /* @__PURE__ */ x(ne, { children: [/* @__PURE__ */ b(d, {
|
|
357
358
|
asChild: !0,
|
|
358
359
|
children: /* @__PURE__ */ b(e, {
|
|
359
360
|
variant: "outline",
|
|
360
361
|
size: "icon",
|
|
361
362
|
"aria-label": X.settingsButton,
|
|
362
|
-
onClick:
|
|
363
|
+
onClick: z,
|
|
363
364
|
children: /* @__PURE__ */ b(ve, { className: "ttw:size-4" })
|
|
364
365
|
})
|
|
365
|
-
}), /* @__PURE__ */ b(
|
|
366
|
-
onClick:
|
|
366
|
+
}), /* @__PURE__ */ b(l, { children: X.settingsButton })] }) }) : null, R ? /* @__PURE__ */ x(e, {
|
|
367
|
+
onClick: R,
|
|
367
368
|
children: [/* @__PURE__ */ b(ge, { className: "ttw:size-4" }), X.createButton]
|
|
368
369
|
}) : null]
|
|
369
370
|
})]
|
|
370
371
|
}), (() => {
|
|
371
|
-
let e =
|
|
372
|
+
let e = T ? /* @__PURE__ */ b(re, {
|
|
372
373
|
title: X.errorTitle,
|
|
373
374
|
description: X.errorDescription,
|
|
374
|
-
retryLabel:
|
|
375
|
-
onRetry:
|
|
376
|
-
}) :
|
|
375
|
+
retryLabel: B ? X.errorRetry : void 0,
|
|
376
|
+
onRetry: B
|
|
377
|
+
}) : qe && R && V ? /* @__PURE__ */ b("div", {
|
|
377
378
|
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
378
|
-
children:
|
|
379
|
-
emailAddress:
|
|
380
|
-
onCopyEmail:
|
|
381
|
-
onFilesSelected:
|
|
379
|
+
children: K && q ? /* @__PURE__ */ b(p, {
|
|
380
|
+
emailAddress: K,
|
|
381
|
+
onCopyEmail: q,
|
|
382
|
+
onFilesSelected: V,
|
|
382
383
|
accept: _,
|
|
383
|
-
maxFiles:
|
|
384
|
-
uploadStatus:
|
|
385
|
-
uploadErrorMessage:
|
|
386
|
-
onEnterManually:
|
|
384
|
+
maxFiles: H,
|
|
385
|
+
uploadStatus: W,
|
|
386
|
+
uploadErrorMessage: G,
|
|
387
|
+
onEnterManually: U ?? R,
|
|
387
388
|
labels: X.addBill
|
|
388
|
-
}) : /* @__PURE__ */ b(
|
|
389
|
-
onFilesSelected:
|
|
389
|
+
}) : /* @__PURE__ */ b(p, {
|
|
390
|
+
onFilesSelected: V,
|
|
390
391
|
accept: _,
|
|
391
|
-
maxFiles:
|
|
392
|
-
uploadStatus:
|
|
393
|
-
uploadErrorMessage:
|
|
394
|
-
onEnterManually:
|
|
392
|
+
maxFiles: H,
|
|
393
|
+
uploadStatus: W,
|
|
394
|
+
uploadErrorMessage: G,
|
|
395
|
+
onEnterManually: U ?? R,
|
|
395
396
|
labels: X.addBill
|
|
396
397
|
})
|
|
397
398
|
}) : /* @__PURE__ */ x("div", {
|
|
398
399
|
className: "ttw:relative",
|
|
399
|
-
onDragEnter:
|
|
400
|
-
onDragOver:
|
|
401
|
-
onDragLeave:
|
|
402
|
-
onDrop:
|
|
400
|
+
onDragEnter: Ve,
|
|
401
|
+
onDragOver: He,
|
|
402
|
+
onDragLeave: Ue,
|
|
403
|
+
onDrop: We,
|
|
403
404
|
children: [/* @__PURE__ */ b(n, {
|
|
404
|
-
columns:
|
|
405
|
-
data:
|
|
405
|
+
columns: Ke,
|
|
406
|
+
data: C,
|
|
406
407
|
getRowId: (e) => e.rowKey,
|
|
407
408
|
animatesNewRows: !0,
|
|
408
|
-
isLoading:
|
|
409
|
-
sorting:
|
|
410
|
-
onSortingChange:
|
|
411
|
-
pageSize:
|
|
412
|
-
onPageSizeChange:
|
|
413
|
-
pageSizeOptions:
|
|
414
|
-
showPagination:
|
|
415
|
-
pageInfo:
|
|
416
|
-
hasNextPage:
|
|
417
|
-
hasPrevPage:
|
|
418
|
-
onNextPage:
|
|
419
|
-
onPrevPage:
|
|
409
|
+
isLoading: w,
|
|
410
|
+
sorting: Ee,
|
|
411
|
+
onSortingChange: De,
|
|
412
|
+
pageSize: Oe,
|
|
413
|
+
onPageSizeChange: ke,
|
|
414
|
+
pageSizeOptions: E,
|
|
415
|
+
showPagination: E.length > 1 || D || O,
|
|
416
|
+
pageInfo: Ae,
|
|
417
|
+
hasNextPage: D,
|
|
418
|
+
hasPrevPage: O,
|
|
419
|
+
onNextPage: je,
|
|
420
|
+
onPrevPage: Me,
|
|
420
421
|
onRowClick: (e) => e.onOpen(),
|
|
421
|
-
rowAriaLabel: (e) => X.openRow(e.vendorLabel ||
|
|
422
|
-
|
|
423
|
-
|
|
422
|
+
rowAriaLabel: (e) => X.openRow(e.vendorLabel || Se(e.vendorLookup, X)),
|
|
423
|
+
rowGroup: (e) => e.group ? {
|
|
424
|
+
key: e.group.key,
|
|
425
|
+
label: e.group.label,
|
|
426
|
+
tone: "warning",
|
|
427
|
+
icon: /* @__PURE__ */ b(ae, {}),
|
|
428
|
+
title: e.group.title,
|
|
429
|
+
meta: e.group.meta,
|
|
430
|
+
collapse: e.group.collapse
|
|
431
|
+
} : void 0,
|
|
424
432
|
rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ b(me, { children: e.menu.items.map((e) => {
|
|
425
433
|
let n = e.icon;
|
|
426
434
|
return /* @__PURE__ */ x(t, {
|
|
@@ -429,15 +437,15 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
429
437
|
children: [n ? /* @__PURE__ */ b(n, { className: "ttw:size-4" }) : null, e.label]
|
|
430
438
|
}, e.id);
|
|
431
439
|
}) }) : void 0,
|
|
432
|
-
filterComponent:
|
|
433
|
-
children:
|
|
440
|
+
filterComponent: Je,
|
|
441
|
+
children: I ? /* @__PURE__ */ b(f, {
|
|
434
442
|
title: X.filteredEmptyTitle,
|
|
435
443
|
description: X.filteredEmptyDescription
|
|
436
|
-
}) :
|
|
437
|
-
title:
|
|
438
|
-
description:
|
|
444
|
+
}) : L ? /* @__PURE__ */ b(f, {
|
|
445
|
+
title: L.title,
|
|
446
|
+
description: L.description
|
|
439
447
|
}) : void 0
|
|
440
|
-
}),
|
|
448
|
+
}), ze ? /* @__PURE__ */ b("div", {
|
|
441
449
|
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]",
|
|
442
450
|
children: /* @__PURE__ */ x("div", {
|
|
443
451
|
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",
|
|
@@ -446,17 +454,17 @@ function T({ rows: T, isLoading: E, isError: D, sorting: Te, onSortingChange: Ee
|
|
|
446
454
|
children: X.tableDropzoneTitle
|
|
447
455
|
}), /* @__PURE__ */ b("p", {
|
|
448
456
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
449
|
-
children:
|
|
457
|
+
children: H === void 0 ? X.addBill.dropzone.fileTypesHint : `${X.addBill.dropzone.fileTypesHint} · ${X.addBill.dropzone.fileCountHint(H)}`
|
|
450
458
|
})] })]
|
|
451
459
|
})
|
|
452
460
|
}) : null]
|
|
453
461
|
});
|
|
454
|
-
return
|
|
462
|
+
return k.map((t) => /* @__PURE__ */ b(s, {
|
|
455
463
|
value: t.id,
|
|
456
|
-
children: t.id ===
|
|
464
|
+
children: t.id === A ? e : null
|
|
457
465
|
}, t.id));
|
|
458
466
|
})()]
|
|
459
467
|
})]
|
|
460
468
|
});
|
|
461
469
|
}
|
|
462
|
-
export {
|
|
470
|
+
export { C as BillsScreen, C as default, S as DEFAULT_BILL_COLUMNS };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button as e, Typography as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BillUploadDropzone as n } from "../../../ui/dist/
|
|
2
|
+
import { BillUploadDropzone as n } from "../../../ui/dist/index17.js";
|
|
3
3
|
import "../../../ui/dist/index.js";
|
|
4
4
|
import { ADD_BILL_PANEL_LABELS_EN as r } from "./index2.js";
|
|
5
5
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ import { WidgetProvider as a } from "../../../../../shared/feature/dist/lib/Widg
|
|
|
14
14
|
import { useWidgetConfig as o } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
15
15
|
import "../../../../../shared/feature/dist/index.js";
|
|
16
16
|
import { BillPayWidgetAnalyticsEvent as s, WIDGET_NAME as c } from "../analytics/events.js";
|
|
17
|
-
import { BillPayWidgetUi as l } from "../../../../ui/dist/
|
|
17
|
+
import { BillPayWidgetUi as l } from "../../../../ui/dist/index14.js";
|
|
18
18
|
import "../../../../ui/dist/index.js";
|
|
19
19
|
import { BillUploadWidget as u } from "../../../../bill-upload/feature/dist/index8.js";
|
|
20
20
|
import "../../../../bill-upload/feature/dist/index.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/
|
|
1
|
+
import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/index24.js";
|
|
2
2
|
import "../../../ui/dist/index.js";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js
|
|
4
4
|
var t = {
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, cn as s } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { RevealableField as c } from "../../../ui/dist/
|
|
2
|
+
import { RevealableField as c } from "../../../ui/dist/index25.js";
|
|
3
3
|
import "../../../ui/dist/index.js";
|
|
4
4
|
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index5.js";
|
|
5
5
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
@@ -2,22 +2,24 @@ import { BillActionButtons as e, NO_BILL_ACTIONS as t } from "./index2.js";
|
|
|
2
2
|
import "./index3.js";
|
|
3
3
|
import { BillDecisionDialog as n } from "./index4.js";
|
|
4
4
|
import "./index5.js";
|
|
5
|
-
import {
|
|
5
|
+
import { BillDuplicateIcon as r } from "./index6.js";
|
|
6
6
|
import "./index7.js";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import "./index10.js";
|
|
10
|
-
import "./index11.js";
|
|
11
|
-
import
|
|
7
|
+
import { BillDuplicateWarning as i } from "./index8.js";
|
|
8
|
+
import "./index9.js";
|
|
9
|
+
import { groupBySectionHeading as a } from "./index10.js";
|
|
10
|
+
import { BillOverflowMenu as o } from "./index11.js";
|
|
11
|
+
import "./index12.js";
|
|
12
12
|
import "./index13.js";
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import "./
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import "./index21.js";
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import "./index24.js";
|
|
23
|
-
|
|
13
|
+
import { BillPayWidgetUi as s } from "./index14.js";
|
|
14
|
+
import "./index15.js";
|
|
15
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as c } from "./index16.js";
|
|
16
|
+
import { BillUploadDropzone as l, getAcceptedBillUploadFiles as u } from "./index17.js";
|
|
17
|
+
import "./index19.js";
|
|
18
|
+
import { DateDisclosure as d } from "./index20.js";
|
|
19
|
+
import { DUE_DATE_VALUE_LABELS_EN as f } from "./index21.js";
|
|
20
|
+
import { DueDateValue as p } from "./index22.js";
|
|
21
|
+
import "./index23.js";
|
|
22
|
+
import { REVEALABLE_FIELD_LABELS_EN as m } from "./index24.js";
|
|
23
|
+
import { RevealableField as h } from "./index25.js";
|
|
24
|
+
import "./index26.js";
|
|
25
|
+
export { c as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, r as BillDuplicateIcon, i as BillDuplicateWarning, o as BillOverflowMenu, s as BillPayWidgetUi, l as BillUploadDropzone, f as DUE_DATE_VALUE_LABELS_EN, d as DateDisclosure, p as DueDateValue, t as NO_BILL_ACTIONS, m as REVEALABLE_FIELD_LABELS_EN, h as RevealableField, u as getAcceptedBillUploadFiles, a as groupBySectionHeading };
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = [];
|
|
4
|
+
for (let n of e) {
|
|
5
|
+
let e = t.at(-1);
|
|
6
|
+
e && e.heading === n.sectionHeading ? e.items = [...e.items, n] : t.push({
|
|
7
|
+
heading: n.sectionHeading,
|
|
8
|
+
items: [n]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
export { e as groupBySectionHeading };
|