@tesouro/embedded-components-react 0.11.226 → 0.11.230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +1 -1
- 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/bills-list/data-access/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index8.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index9.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +19 -185
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +186 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +35 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +15 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +76 -294
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +51 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +277 -456
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +29 -326
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +524 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +359 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +4 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index23.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +221 -200
- 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/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.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 +14 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +1 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +73 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +77 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +0 -6
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js
CHANGED
|
@@ -3,29 +3,29 @@ import { EmptyState as s } from "../../../../shared/ui/dist/lib/EmptyState/Empty
|
|
|
3
3
|
import { ErrorState as ie } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
4
|
import { HintDisclosure as ae } from "../../../../shared/ui/dist/lib/HintDisclosure/HintDisclosure.js";
|
|
5
5
|
import { EmptyValue as c } from "../../../../shared/ui/dist/lib/EmptyValue/EmptyValue.js";
|
|
6
|
-
import { RowStatusIcon as
|
|
7
|
-
import { DueDateText as
|
|
8
|
-
import { AttentionStrip as
|
|
9
|
-
import { AttentionViewBar as
|
|
6
|
+
import { RowStatusIcon as l } from "../../../../shared/ui/dist/lib/RowStatusIcon/RowStatusIcon.js";
|
|
7
|
+
import { DueDateText as oe } from "../../../../shared/ui/dist/lib/DueDateText/DueDateText.js";
|
|
8
|
+
import { AttentionStrip as se } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionStrip.js";
|
|
9
|
+
import { AttentionViewBar as ce } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionViewBar.js";
|
|
10
10
|
import "../../../../shared/ui/dist/index.js";
|
|
11
|
-
import { BillDuplicateIcon as
|
|
12
|
-
import { BillOverflowMenu as
|
|
13
|
-
import { getAcceptedBillUploadFiles as
|
|
11
|
+
import { BillDuplicateIcon as le } from "../../../ui/dist/index6.js";
|
|
12
|
+
import { BillOverflowMenu as ue } from "../../../ui/dist/index13.js";
|
|
13
|
+
import { getAcceptedBillUploadFiles as de } from "../../../ui/dist/index19.js";
|
|
14
14
|
import "../../../ui/dist/index.js";
|
|
15
|
-
import { AddBillPanel as
|
|
15
|
+
import { AddBillPanel as u } from "./index3.js";
|
|
16
16
|
import "./index4.js";
|
|
17
|
-
import { BillSummaryCards as
|
|
17
|
+
import { BillSummaryCards as fe } from "./index9.js";
|
|
18
18
|
import "./index10.js";
|
|
19
|
-
import { BillsFilterBar as
|
|
19
|
+
import { BillsFilterBar as pe } from "./index13.js";
|
|
20
20
|
import "./index14.js";
|
|
21
|
-
import { BillStatusBadge as
|
|
21
|
+
import { BillStatusBadge as me } from "../../../../shared/document-status/ui/dist/index4.js";
|
|
22
22
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
23
|
-
import { BILLS_SCREEN_LABELS_EN as
|
|
24
|
-
import { BillColumn as
|
|
25
|
-
import { Fragment as
|
|
26
|
-
import { createPortal as
|
|
27
|
-
import { Fragment as
|
|
28
|
-
import { FileQuestionIcon as be, SearchIcon as xe, UploadIcon as Se } from "lucide-react";
|
|
23
|
+
import { BILLS_SCREEN_LABELS_EN as d, BILLS_SCREEN_UPLOAD_ACCEPT as f } from "./index15.js";
|
|
24
|
+
import { BillColumn as p } from "./index16.js";
|
|
25
|
+
import { Fragment as he, useMemo as m, useState as ge } from "react";
|
|
26
|
+
import { createPortal as _e } from "react-dom";
|
|
27
|
+
import { Fragment as ve, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
28
|
+
import { CircleAlertIcon as ye, FileQuestionIcon as be, SearchIcon as xe, UploadIcon as Se } from "lucide-react";
|
|
29
29
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js
|
|
30
30
|
var Ce = [
|
|
31
31
|
10,
|
|
@@ -36,178 +36,199 @@ var Ce = [
|
|
|
36
36
|
function Te(e, t) {
|
|
37
37
|
return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.emptyValue.notEntered;
|
|
38
38
|
}
|
|
39
|
-
var Ee = 56,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
var Ee = 56, _ = [
|
|
40
|
+
p.Vendor,
|
|
41
|
+
p.InvoiceNumber,
|
|
42
|
+
p.TotalAmount,
|
|
43
|
+
p.AmountDue,
|
|
44
|
+
p.Status,
|
|
45
|
+
p.DueDate,
|
|
46
|
+
p.AddedOn
|
|
47
47
|
];
|
|
48
|
-
function
|
|
49
|
-
let
|
|
50
|
-
...
|
|
51
|
-
...
|
|
48
|
+
function v({ rows: v, isLoading: y, isError: b, sorting: De, onSortingChange: Oe, pageSize: ke, onPageSizeChange: Ae, pageSizeOptions: x = Ce, pageInfo: je, hasNextPage: S, hasPrevPage: C, onNextPage: Me, onPrevPage: Ne, filterTabs: w, selectedFilterTabId: T, onFilterTabChange: Pe, searchValue: Fe, onSearchChange: Ie, filters: E, visibleColumns: D = _, keepsColumnOrder: O = !1, isSortable: k = !0, cellTestIds: A, isSearchActive: j, showAddPanelWhenEmpty: Le, emptyState: M, onCreateClick: N, headerActionContainer: P, onRetry: F, onFilesSelected: I, maxFiles: L, onEnterManually: R, uploadStatus: z, uploadErrorMessage: B, emailAddress: V, onCopyEmail: H, labels: U, summaryCards: W, attentionStrip: G, attentionView: K }) {
|
|
49
|
+
let q = m(() => ({
|
|
50
|
+
...d,
|
|
51
|
+
...U,
|
|
52
52
|
statusBadge: {
|
|
53
|
-
...
|
|
54
|
-
...
|
|
53
|
+
...d.statusBadge,
|
|
54
|
+
...U?.statusBadge
|
|
55
55
|
},
|
|
56
56
|
addBill: {
|
|
57
|
-
...
|
|
58
|
-
...
|
|
57
|
+
...d.addBill,
|
|
58
|
+
...U?.addBill,
|
|
59
59
|
dropzone: {
|
|
60
|
-
...
|
|
61
|
-
...
|
|
60
|
+
...d.addBill.dropzone,
|
|
61
|
+
...U?.addBill?.dropzone
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
sortableHeader: {
|
|
65
|
-
...
|
|
66
|
-
...
|
|
65
|
+
...d.sortableHeader,
|
|
66
|
+
...U?.sortableHeader
|
|
67
67
|
},
|
|
68
68
|
emptyValue: {
|
|
69
|
-
...
|
|
70
|
-
...
|
|
69
|
+
...d.emptyValue,
|
|
70
|
+
...U?.emptyValue
|
|
71
71
|
}
|
|
72
|
-
}), [
|
|
73
|
-
|
|
74
|
-
}, Be = (e) => {
|
|
75
|
-
Y && X(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", J(!0));
|
|
72
|
+
}), [U]), J = v.some((e) => e.menu?.items.length), [Re, Y] = ge(!1), X = !!I, ze = (e) => Array.from(e.dataTransfer.types).includes("Files"), Be = (e) => {
|
|
73
|
+
X && ze(e) && (e.preventDefault(), Y(!0));
|
|
76
74
|
}, Ve = (e) => {
|
|
77
|
-
|
|
75
|
+
X && ze(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Y(!0));
|
|
78
76
|
}, He = (e) => {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
!e.currentTarget.contains(e.relatedTarget) && X && Y(!1);
|
|
78
|
+
}, Ue = (e) => {
|
|
79
|
+
if (!X) return;
|
|
80
|
+
e.preventDefault(), Y(!1);
|
|
81
|
+
let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = de(t, f, L !== 1);
|
|
82
|
+
n.length && I?.(n);
|
|
83
|
+
}, Z = m(() => {
|
|
84
|
+
let e = (e) => k ? function({ column: t }) {
|
|
85
|
+
return /* @__PURE__ */ h(r, {
|
|
86
86
|
column: t,
|
|
87
87
|
title: e,
|
|
88
|
-
labels:
|
|
88
|
+
labels: q.sortableHeader
|
|
89
89
|
});
|
|
90
|
-
} : e, t = /* @__PURE__ */
|
|
91
|
-
return /* @__PURE__ */
|
|
90
|
+
} : e, t = /* @__PURE__ */ h(c, { labels: q.emptyValue }), n = (e, n) => function({ row: r }) {
|
|
91
|
+
return /* @__PURE__ */ h("span", {
|
|
92
92
|
className: "ttw:whitespace-nowrap",
|
|
93
|
-
"data-testid":
|
|
93
|
+
"data-testid": A?.[n],
|
|
94
94
|
children: r.original[e] || t
|
|
95
95
|
});
|
|
96
96
|
}, i = function({ row: e }) {
|
|
97
|
-
return /* @__PURE__ */
|
|
97
|
+
return /* @__PURE__ */ h("span", {
|
|
98
98
|
className: "ttw:whitespace-nowrap",
|
|
99
|
-
"data-testid":
|
|
100
|
-
children: /* @__PURE__ */
|
|
99
|
+
"data-testid": A?.[p.DueDate],
|
|
100
|
+
children: /* @__PURE__ */ h(oe, {
|
|
101
101
|
label: e.original.dueDateLabel || t,
|
|
102
102
|
overdueLabel: e.original.dueDateOverdueLabel,
|
|
103
103
|
accessibleLabel: e.original.dueDateAccessibleLabel
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
}, a = (e, n) => function({ row: r }) {
|
|
107
|
-
return /* @__PURE__ */
|
|
108
|
-
className: "ttw:text-right ttw:whitespace-nowrap",
|
|
109
|
-
"data-testid":
|
|
107
|
+
return /* @__PURE__ */ h("div", {
|
|
108
|
+
className: "ttw:text-right ttw:whitespace-nowrap ttw:tabular-nums",
|
|
109
|
+
"data-testid": A?.[n],
|
|
110
110
|
children: r.original[e] || t
|
|
111
111
|
});
|
|
112
112
|
}, o = (e) => function() {
|
|
113
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ h("div", {
|
|
114
114
|
className: "ttw:text-right",
|
|
115
115
|
children: e
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
118
|
return {
|
|
119
|
-
[
|
|
119
|
+
[p.Vendor]: {
|
|
120
120
|
accessorKey: "vendorLabel",
|
|
121
|
-
enableSorting:
|
|
121
|
+
enableSorting: k,
|
|
122
122
|
minSize: we,
|
|
123
|
-
header: e(
|
|
124
|
-
cell: ({ row: e }) => !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */
|
|
125
|
-
"data-testid":
|
|
126
|
-
children: /* @__PURE__ */
|
|
123
|
+
header: e(q.columnVendor),
|
|
124
|
+
cell: ({ row: e }) => !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ h("div", {
|
|
125
|
+
"data-testid": A?.[p.Vendor],
|
|
126
|
+
children: /* @__PURE__ */ h(ee, {
|
|
127
127
|
className: "ttw:h-4 ttw:w-32",
|
|
128
128
|
"aria-hidden": !0
|
|
129
129
|
})
|
|
130
|
-
}) : /* @__PURE__ */
|
|
130
|
+
}) : /* @__PURE__ */ h("span", {
|
|
131
131
|
className: "ttw:whitespace-nowrap",
|
|
132
|
-
"data-testid":
|
|
133
|
-
children: e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */
|
|
132
|
+
"data-testid": A?.[p.Vendor],
|
|
133
|
+
children: e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ h(c, { labels: { notEntered: q.vendorUnavailable } }) : t)
|
|
134
134
|
})
|
|
135
135
|
},
|
|
136
|
-
[
|
|
136
|
+
[p.InvoiceNumber]: {
|
|
137
137
|
accessorKey: "invoiceNumberLabel",
|
|
138
138
|
enableSorting: !1,
|
|
139
|
-
header: () =>
|
|
140
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
139
|
+
header: () => q.columnInvoiceNumber,
|
|
140
|
+
cell: ({ row: e }) => /* @__PURE__ */ g("span", {
|
|
141
141
|
className: "ttw:inline-flex ttw:items-center ttw:gap-1.5 ttw:whitespace-nowrap",
|
|
142
|
-
"data-testid":
|
|
143
|
-
children: [e.original.invoiceNumberLabel || t, e.original.duplicateFlag ? /* @__PURE__ */
|
|
142
|
+
"data-testid": A?.[p.InvoiceNumber],
|
|
143
|
+
children: [e.original.invoiceNumberLabel || t, e.original.duplicateFlag ? /* @__PURE__ */ h(l, {
|
|
144
144
|
icon: be,
|
|
145
145
|
tone: "warning",
|
|
146
146
|
label: e.original.duplicateFlag.label
|
|
147
147
|
}) : null]
|
|
148
148
|
})
|
|
149
149
|
},
|
|
150
|
-
[
|
|
150
|
+
[p.TotalAmount]: {
|
|
151
151
|
accessorKey: "totalAmountLabel",
|
|
152
152
|
enableSorting: !1,
|
|
153
|
-
header: o(
|
|
154
|
-
cell: a("totalAmountLabel",
|
|
153
|
+
header: o(q.columnTotalAmount),
|
|
154
|
+
cell: a("totalAmountLabel", p.TotalAmount)
|
|
155
155
|
},
|
|
156
|
-
[
|
|
156
|
+
[p.AmountDue]: {
|
|
157
157
|
accessorKey: "amountDueLabel",
|
|
158
158
|
enableSorting: !1,
|
|
159
|
-
header: o(
|
|
160
|
-
cell: a("amountDueLabel",
|
|
159
|
+
header: o(q.columnAmountDue),
|
|
160
|
+
cell: a("amountDueLabel", p.AmountDue)
|
|
161
161
|
},
|
|
162
|
-
[
|
|
162
|
+
[p.Status]: {
|
|
163
163
|
accessorKey: "status",
|
|
164
164
|
enableSorting: !1,
|
|
165
|
-
header:
|
|
165
|
+
header: q.columnStatus,
|
|
166
166
|
cell: ({ row: e }) => {
|
|
167
|
-
let t = /* @__PURE__ */
|
|
167
|
+
let t = /* @__PURE__ */ h(me, {
|
|
168
168
|
status: e.original.status,
|
|
169
169
|
tone: e.original.statusTone,
|
|
170
|
-
labels:
|
|
170
|
+
labels: q.statusBadge
|
|
171
171
|
}), n = e.original.statusHint;
|
|
172
|
-
return /* @__PURE__ */
|
|
173
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
174
|
-
"data-testid":
|
|
175
|
-
children: n ? /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ g("div", {
|
|
173
|
+
className: "ttw:flex ttw:items-center ttw:gap-1.5",
|
|
174
|
+
"data-testid": A?.[p.Status],
|
|
175
|
+
children: [n ? /* @__PURE__ */ h(ae, {
|
|
176
176
|
hint: n.label,
|
|
177
177
|
accessibleLabel: n.accessibleLabel,
|
|
178
178
|
children: t
|
|
179
|
-
}) : t
|
|
179
|
+
}) : t, e.original.failedPayment ? /* @__PURE__ */ h(l, {
|
|
180
|
+
icon: ye,
|
|
181
|
+
tone: "destructive",
|
|
182
|
+
label: e.original.failedPayment.label
|
|
183
|
+
}) : null]
|
|
180
184
|
});
|
|
181
185
|
}
|
|
182
186
|
},
|
|
183
|
-
[
|
|
187
|
+
[p.DueDate]: {
|
|
184
188
|
accessorKey: "dueDateLabel",
|
|
185
|
-
enableSorting:
|
|
186
|
-
header: e(
|
|
189
|
+
enableSorting: k,
|
|
190
|
+
header: e(q.columnDueDate),
|
|
187
191
|
cell: i
|
|
188
192
|
},
|
|
189
|
-
[
|
|
193
|
+
[p.FailedReason]: {
|
|
194
|
+
accessorKey: "failedReasonLabel",
|
|
195
|
+
enableSorting: !1,
|
|
196
|
+
header: q.columnFailedReason,
|
|
197
|
+
cell: ({ row: e }) => /* @__PURE__ */ h("span", {
|
|
198
|
+
className: "ttw:block ttw:max-w-50 ttw:truncate ttw:text-destructive",
|
|
199
|
+
title: e.original.failedReasonLabel || void 0,
|
|
200
|
+
"data-testid": A?.[p.FailedReason],
|
|
201
|
+
children: e.original.failedReasonLabel || t
|
|
202
|
+
})
|
|
203
|
+
},
|
|
204
|
+
[p.PaymentAmount]: {
|
|
205
|
+
accessorKey: "paymentAmountLabel",
|
|
206
|
+
enableSorting: !1,
|
|
207
|
+
header: o(q.columnPaymentAmount),
|
|
208
|
+
cell: a("paymentAmountLabel", p.PaymentAmount)
|
|
209
|
+
},
|
|
210
|
+
[p.AddedOn]: {
|
|
190
211
|
accessorKey: "addedOnLabel",
|
|
191
|
-
enableSorting:
|
|
192
|
-
header: e(
|
|
193
|
-
cell: n("addedOnLabel",
|
|
212
|
+
enableSorting: k,
|
|
213
|
+
header: e(q.columnAddedOn),
|
|
214
|
+
cell: n("addedOnLabel", p.AddedOn)
|
|
194
215
|
}
|
|
195
216
|
};
|
|
196
217
|
}, [
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
]),
|
|
218
|
+
q,
|
|
219
|
+
A,
|
|
220
|
+
k
|
|
221
|
+
]), We = m(() => [...(O ? D : _.filter((e) => D.includes(e))).map((e) => Z[e]), ...J ? [{
|
|
201
222
|
id: "actions",
|
|
202
223
|
enableSorting: !1,
|
|
203
224
|
size: Ee,
|
|
204
|
-
header: () => /* @__PURE__ */
|
|
225
|
+
header: () => /* @__PURE__ */ h("span", {
|
|
205
226
|
className: "ttw:sr-only",
|
|
206
|
-
children:
|
|
227
|
+
children: q.columnActions
|
|
207
228
|
}),
|
|
208
|
-
cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */
|
|
229
|
+
cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ h("div", {
|
|
209
230
|
className: "ttw:flex ttw:justify-end",
|
|
210
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ h(ue, {
|
|
211
232
|
actions: e.original.menu.items.map((e) => ({
|
|
212
233
|
...e,
|
|
213
234
|
variant: "ghost"
|
|
@@ -218,173 +239,173 @@ function _({ rows: _, isLoading: v, isError: y, sorting: De, onSortingChange: Oe
|
|
|
218
239
|
}) : null
|
|
219
240
|
}] : []], [
|
|
220
241
|
Z,
|
|
242
|
+
J,
|
|
243
|
+
O,
|
|
221
244
|
q,
|
|
222
|
-
D
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
children: K.createButton
|
|
228
|
-
}) : null, We = /* @__PURE__ */ h("div", {
|
|
245
|
+
D
|
|
246
|
+
]), Ge = !!(N && I) && !y && !b && !j && v.length === 0 && Le === !0, Q = N ? /* @__PURE__ */ h(e, {
|
|
247
|
+
onClick: N,
|
|
248
|
+
children: q.createButton
|
|
249
|
+
}) : null, Ke = /* @__PURE__ */ g("div", {
|
|
229
250
|
className: "ttw:relative ttw:w-80",
|
|
230
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ h(xe, { 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__ */ h(i, {
|
|
231
252
|
className: "ttw:pl-9",
|
|
232
253
|
type: "search",
|
|
233
|
-
"aria-label":
|
|
234
|
-
placeholder:
|
|
254
|
+
"aria-label": q.searchLabel,
|
|
255
|
+
placeholder: q.searchPlaceholder,
|
|
235
256
|
value: Fe,
|
|
236
257
|
onChange: (e) => Ie(e.target.value)
|
|
237
258
|
})]
|
|
238
|
-
}),
|
|
259
|
+
}), qe = /* @__PURE__ */ h(ne, {
|
|
239
260
|
variant: "pills",
|
|
240
|
-
"aria-label":
|
|
241
|
-
children:
|
|
261
|
+
"aria-label": q.filterTabsLabel,
|
|
262
|
+
children: w.map((e) => /* @__PURE__ */ g(he, { children: [e.startsGroup ? /* @__PURE__ */ h(a, {
|
|
242
263
|
orientation: "vertical",
|
|
243
264
|
className: "ttw:mx-1 ttw:data-[orientation=vertical]:h-4"
|
|
244
|
-
}) : null, /* @__PURE__ */
|
|
265
|
+
}) : null, /* @__PURE__ */ h(re, {
|
|
245
266
|
value: e.id,
|
|
246
267
|
count: e.badge,
|
|
247
268
|
countTone: e.tone,
|
|
248
269
|
className: "ttw:min-w-28",
|
|
249
|
-
children: /* @__PURE__ */
|
|
270
|
+
children: /* @__PURE__ */ h("span", {
|
|
250
271
|
className: e.tone === "warning" ? "ttw:text-warning-foreground" : void 0,
|
|
251
272
|
children: e.label
|
|
252
273
|
})
|
|
253
274
|
})] }, e.id))
|
|
254
|
-
}),
|
|
255
|
-
...
|
|
275
|
+
}), Je = K ? /* @__PURE__ */ h(ce, { ...K }) : qe, Ye = E ? /* @__PURE__ */ h(pe, {
|
|
276
|
+
...E,
|
|
256
277
|
className: "ttw:px-4",
|
|
257
|
-
leadingSlot:
|
|
258
|
-
searchSlot:
|
|
259
|
-
}) : /* @__PURE__ */
|
|
278
|
+
leadingSlot: Je,
|
|
279
|
+
searchSlot: Ke
|
|
280
|
+
}) : /* @__PURE__ */ g("div", {
|
|
260
281
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
261
|
-
children: [
|
|
282
|
+
children: [Je, /* @__PURE__ */ h("div", {
|
|
262
283
|
className: "ttw:ml-auto",
|
|
263
|
-
children:
|
|
284
|
+
children: Ke
|
|
264
285
|
})]
|
|
265
|
-
}),
|
|
266
|
-
title:
|
|
267
|
-
description:
|
|
268
|
-
retryLabel:
|
|
269
|
-
onRetry:
|
|
270
|
-
}) :
|
|
286
|
+
}), Xe = !b && !Ge, $ = b ? /* @__PURE__ */ h(ie, {
|
|
287
|
+
title: q.errorTitle,
|
|
288
|
+
description: q.errorDescription,
|
|
289
|
+
retryLabel: F ? q.errorRetry : void 0,
|
|
290
|
+
onRetry: F
|
|
291
|
+
}) : Ge && N && I ? /* @__PURE__ */ h("div", {
|
|
271
292
|
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
272
|
-
children:
|
|
273
|
-
emailAddress:
|
|
274
|
-
onCopyEmail:
|
|
275
|
-
onFilesSelected:
|
|
276
|
-
accept:
|
|
277
|
-
maxFiles:
|
|
278
|
-
uploadStatus:
|
|
279
|
-
uploadErrorMessage:
|
|
280
|
-
onEnterManually:
|
|
281
|
-
labels:
|
|
282
|
-
}) : /* @__PURE__ */
|
|
283
|
-
onFilesSelected:
|
|
284
|
-
accept:
|
|
285
|
-
maxFiles:
|
|
286
|
-
uploadStatus:
|
|
287
|
-
uploadErrorMessage:
|
|
288
|
-
onEnterManually:
|
|
289
|
-
labels:
|
|
293
|
+
children: V && H ? /* @__PURE__ */ h(u, {
|
|
294
|
+
emailAddress: V,
|
|
295
|
+
onCopyEmail: H,
|
|
296
|
+
onFilesSelected: I,
|
|
297
|
+
accept: f,
|
|
298
|
+
maxFiles: L,
|
|
299
|
+
uploadStatus: z,
|
|
300
|
+
uploadErrorMessage: B,
|
|
301
|
+
onEnterManually: R ?? N,
|
|
302
|
+
labels: q.addBill
|
|
303
|
+
}) : /* @__PURE__ */ h(u, {
|
|
304
|
+
onFilesSelected: I,
|
|
305
|
+
accept: f,
|
|
306
|
+
maxFiles: L,
|
|
307
|
+
uploadStatus: z,
|
|
308
|
+
uploadErrorMessage: B,
|
|
309
|
+
onEnterManually: R ?? N,
|
|
310
|
+
labels: q.addBill
|
|
290
311
|
})
|
|
291
|
-
}) : /* @__PURE__ */
|
|
312
|
+
}) : /* @__PURE__ */ g("div", {
|
|
292
313
|
className: "ttw:relative",
|
|
293
|
-
onDragEnter:
|
|
294
|
-
onDragOver:
|
|
295
|
-
onDragLeave:
|
|
296
|
-
onDrop:
|
|
297
|
-
children: [/* @__PURE__ */
|
|
298
|
-
columns:
|
|
299
|
-
data:
|
|
314
|
+
onDragEnter: Be,
|
|
315
|
+
onDragOver: Ve,
|
|
316
|
+
onDragLeave: He,
|
|
317
|
+
onDrop: Ue,
|
|
318
|
+
children: [/* @__PURE__ */ h(n, {
|
|
319
|
+
columns: We,
|
|
320
|
+
data: v,
|
|
300
321
|
getRowId: (e) => e.rowKey,
|
|
301
322
|
animatesNewRows: !0,
|
|
302
|
-
isLoading:
|
|
323
|
+
isLoading: y,
|
|
303
324
|
sorting: De,
|
|
304
325
|
onSortingChange: Oe,
|
|
305
326
|
pageSize: ke,
|
|
306
327
|
onPageSizeChange: Ae,
|
|
307
|
-
pageSizeOptions:
|
|
308
|
-
showPagination:
|
|
328
|
+
pageSizeOptions: x,
|
|
329
|
+
showPagination: x.length > 1 || S || C,
|
|
309
330
|
pageInfo: je,
|
|
310
|
-
hasNextPage:
|
|
311
|
-
hasPrevPage:
|
|
331
|
+
hasNextPage: S,
|
|
332
|
+
hasPrevPage: C,
|
|
312
333
|
onNextPage: Me,
|
|
313
334
|
onPrevPage: Ne,
|
|
314
335
|
onRowClick: (e) => e.onOpen(),
|
|
315
|
-
rowAriaLabel: (e) =>
|
|
336
|
+
rowAriaLabel: (e) => q.openRow(e.vendorLabel || Te(e.vendorLookup, q)),
|
|
316
337
|
rowGroup: (e) => e.group ? {
|
|
317
338
|
key: e.group.key,
|
|
318
339
|
label: e.group.label,
|
|
319
340
|
tone: "warning",
|
|
320
|
-
icon: /* @__PURE__ */
|
|
341
|
+
icon: /* @__PURE__ */ h(le, {}),
|
|
321
342
|
title: e.group.title,
|
|
322
343
|
meta: e.group.meta,
|
|
323
344
|
collapse: e.group.collapse
|
|
324
345
|
} : void 0,
|
|
325
|
-
rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */
|
|
346
|
+
rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ h(ve, { children: e.menu.items.map((e) => {
|
|
326
347
|
let n = e.icon;
|
|
327
|
-
return /* @__PURE__ */
|
|
348
|
+
return /* @__PURE__ */ g(t, {
|
|
328
349
|
disabled: e.disabled,
|
|
329
350
|
onClick: e.onSelect,
|
|
330
|
-
children: [n ? /* @__PURE__ */
|
|
351
|
+
children: [n ? /* @__PURE__ */ h(n, { className: "ttw:size-4" }) : null, e.label]
|
|
331
352
|
}, e.id);
|
|
332
353
|
}) }) : void 0,
|
|
333
|
-
filterComponent:
|
|
334
|
-
children:
|
|
335
|
-
title:
|
|
336
|
-
description:
|
|
337
|
-
}) :
|
|
338
|
-
title:
|
|
339
|
-
description:
|
|
354
|
+
filterComponent: Ye,
|
|
355
|
+
children: j ? /* @__PURE__ */ h(s, {
|
|
356
|
+
title: q.filteredEmptyTitle,
|
|
357
|
+
description: q.filteredEmptyDescription
|
|
358
|
+
}) : M ? /* @__PURE__ */ h(s, {
|
|
359
|
+
title: M.title,
|
|
360
|
+
description: M.description
|
|
340
361
|
}) : void 0
|
|
341
|
-
}), Re ? /* @__PURE__ */
|
|
362
|
+
}), Re ? /* @__PURE__ */ h("div", {
|
|
342
363
|
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]",
|
|
343
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ g("div", {
|
|
344
365
|
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",
|
|
345
|
-
children: [/* @__PURE__ */
|
|
366
|
+
children: [/* @__PURE__ */ h(Se, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
346
367
|
className: "ttw:text-sm ttw:font-medium",
|
|
347
|
-
children:
|
|
348
|
-
}), /* @__PURE__ */
|
|
368
|
+
children: q.tableDropzoneTitle
|
|
369
|
+
}), /* @__PURE__ */ h("p", {
|
|
349
370
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
350
|
-
children:
|
|
371
|
+
children: L === void 0 ? q.addBill.dropzone.fileTypesHint : `${q.addBill.dropzone.fileTypesHint} · ${q.addBill.dropzone.fileCountHint(L)}`
|
|
351
372
|
})] })]
|
|
352
373
|
})
|
|
353
374
|
}) : null]
|
|
354
375
|
});
|
|
355
|
-
return /* @__PURE__ */
|
|
376
|
+
return /* @__PURE__ */ g("div", {
|
|
356
377
|
role: "presentation",
|
|
357
378
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
358
379
|
onKeyDown: (e) => {
|
|
359
|
-
|
|
380
|
+
K && e.key === "Escape" && !e.defaultPrevented && (e.target.closest("[role=\"menu\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"listbox\"], input, textarea, select") || K.onBack());
|
|
360
381
|
},
|
|
361
382
|
children: [
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
383
|
+
W ? /* @__PURE__ */ h(fe, { ...W }) : null,
|
|
384
|
+
G ? /* @__PURE__ */ h(se, { ...G }) : null,
|
|
385
|
+
K ? /* @__PURE__ */ g("div", {
|
|
365
386
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
366
|
-
children: [
|
|
387
|
+
children: [P === void 0 && Q ? /* @__PURE__ */ h("div", {
|
|
367
388
|
className: "ttw:flex ttw:justify-end",
|
|
368
|
-
children:
|
|
369
|
-
}) : null,
|
|
370
|
-
}) : /* @__PURE__ */
|
|
371
|
-
value:
|
|
389
|
+
children: Q
|
|
390
|
+
}) : null, $]
|
|
391
|
+
}) : /* @__PURE__ */ g(o, {
|
|
392
|
+
value: T,
|
|
372
393
|
onValueChange: Pe,
|
|
373
394
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
374
395
|
children: [
|
|
375
|
-
|
|
396
|
+
P === void 0 && Q ? /* @__PURE__ */ h("div", {
|
|
376
397
|
className: "ttw:flex ttw:justify-end",
|
|
377
|
-
children:
|
|
398
|
+
children: Q
|
|
378
399
|
}) : null,
|
|
379
|
-
|
|
380
|
-
|
|
400
|
+
Xe ? null : qe,
|
|
401
|
+
w.map((e) => /* @__PURE__ */ h(te, {
|
|
381
402
|
value: e.id,
|
|
382
|
-
children: e.id ===
|
|
403
|
+
children: e.id === T ? $ : null
|
|
383
404
|
}, e.id))
|
|
384
405
|
]
|
|
385
406
|
}),
|
|
386
|
-
|
|
407
|
+
P && Q ? _e(Q, P) : null
|
|
387
408
|
]
|
|
388
409
|
});
|
|
389
410
|
}
|
|
390
|
-
export {
|
|
411
|
+
export { v as BillsScreen, v as default, _ as DEFAULT_BILL_COLUMNS };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/
|
|
1
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index18.js";
|
|
2
2
|
import "../../../ui/dist/index.js";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js
|
|
4
4
|
var t = {
|
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/index19.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BillQueue as e } from "../../bills-list/feature/dist/index5.js";
|
|
2
|
-
import { BillSummaryCard as t } from "../../bills-list/feature/dist/
|
|
2
|
+
import { BillSummaryCard as t } from "../../bills-list/feature/dist/index12.js";
|
|
3
3
|
import { BillPayWidget as n } from "./lib/BillPayWidget/BillPayWidget.js";
|
|
4
4
|
import "./lib/BillPayWidget/index.js";
|
|
5
5
|
export { n as BillPayWidget, t as BillSummaryCard, e as BillsView };
|
|
@@ -15,8 +15,8 @@ import { useWidgetConfig as o, useWidgetInitStaleForToken as s } from "../../../
|
|
|
15
15
|
import "../../../../../shared/feature/dist/index.js";
|
|
16
16
|
import { BillPayWidgetAnalyticsEvent as c, WIDGET_NAME as l } from "../analytics/events.js";
|
|
17
17
|
import { BillQueue as u } from "../../../../bills-list/feature/dist/index5.js";
|
|
18
|
-
import { BillSummaryCard as d } from "../../../../bills-list/feature/dist/
|
|
19
|
-
import { BillPayWidgetHeaderUi as f, BillPayWidgetUi as p } from "../../../../ui/dist/
|
|
18
|
+
import { BillSummaryCard as d } from "../../../../bills-list/feature/dist/index12.js";
|
|
19
|
+
import { BillPayWidgetHeaderUi as f, BillPayWidgetUi as p } from "../../../../ui/dist/index16.js";
|
|
20
20
|
import "../../../../ui/dist/index.js";
|
|
21
21
|
import "../../../../bills-list/feature/dist/index.js";
|
|
22
22
|
import { BillUploadWidget as m } from "../../../../bill-upload/feature/dist/index8.js";
|