@tesouro/embedded-components-react 0.5.113 → 0.5.114
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.css +3 -0
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +57 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +124 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +44 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +19 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +76 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +48 -136
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +246 -218
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +138 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +212 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +3 -112
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +104 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +231 -228
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +143 -154
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +79 -87
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
|
@@ -8,401 +8,404 @@ import { AddBillPanel as f } from "./index7.js";
|
|
|
8
8
|
import "./index8.js";
|
|
9
9
|
import { BillStatusBadge as ae } from "./index19.js";
|
|
10
10
|
import "./index20.js";
|
|
11
|
-
import { DueDateValue as
|
|
11
|
+
import { DueDateValue as oe } from "./index22.js";
|
|
12
12
|
import "./index23.js";
|
|
13
|
-
import { MissingValue as
|
|
13
|
+
import { MissingValue as p } from "./index31.js";
|
|
14
14
|
import "./index32.js";
|
|
15
|
-
import { NoValue as
|
|
15
|
+
import { NoValue as se } from "./index34.js";
|
|
16
16
|
import "./index35.js";
|
|
17
|
-
import { BILLS_SCREEN_LABELS_EN as
|
|
18
|
-
import { BillsFilterBar as
|
|
17
|
+
import { BILLS_SCREEN_LABELS_EN as m, BILLS_SCREEN_UPLOAD_ACCEPT as h } from "./index36.js";
|
|
18
|
+
import { BillsFilterBar as ce } from "./index79.js";
|
|
19
19
|
import "./index80.js";
|
|
20
|
-
import { BillColumn as
|
|
21
|
-
import { useMemo as
|
|
22
|
-
import { jsx as
|
|
23
|
-
import { ChevronRightIcon as
|
|
20
|
+
import { BillColumn as g } from "./index81.js";
|
|
21
|
+
import { useMemo as _, useState as le } from "react";
|
|
22
|
+
import { Fragment as ue, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
23
|
+
import { ChevronRightIcon as de, PaperclipIcon as fe, PlusIcon as pe, SearchIcon as me, SettingsIcon as he, UploadIcon as ge } from "lucide-react";
|
|
24
24
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js
|
|
25
|
-
var
|
|
25
|
+
var _e = [
|
|
26
26
|
10,
|
|
27
27
|
25,
|
|
28
28
|
50,
|
|
29
29
|
100
|
|
30
|
-
],
|
|
30
|
+
], ve = 240, ye = {
|
|
31
31
|
default: "",
|
|
32
32
|
warning: "ttw:bg-amber-50 ttw:hover:bg-amber-100 ttw:border-l-4! ttw:border-l-amber-600!"
|
|
33
|
-
},
|
|
33
|
+
}, be = {
|
|
34
34
|
default: "",
|
|
35
35
|
warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
],
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
36
|
+
}, b = 40, xe = [
|
|
37
|
+
g.Vendor,
|
|
38
|
+
g.Attachment,
|
|
39
|
+
g.IssueDate,
|
|
40
|
+
g.DueDate,
|
|
41
|
+
g.ScheduledDate,
|
|
42
|
+
g.PaidDate,
|
|
43
|
+
g.Status,
|
|
44
|
+
g.AmountDue,
|
|
45
|
+
g.AmountScheduled,
|
|
46
|
+
g.AmountPaid,
|
|
47
|
+
g.TotalAmount,
|
|
48
|
+
g.AddedOn
|
|
49
|
+
], x = [
|
|
50
|
+
g.Vendor,
|
|
51
|
+
g.Attachment,
|
|
52
|
+
g.DueDate,
|
|
53
|
+
g.Status,
|
|
54
|
+
g.AmountDue,
|
|
55
|
+
g.AddedOn
|
|
56
56
|
];
|
|
57
|
-
function
|
|
58
|
-
let
|
|
59
|
-
...
|
|
60
|
-
...
|
|
57
|
+
function S({ rows: S, isLoading: C, isError: w, sorting: Se, onSortingChange: Ce, pageSize: we, onPageSizeChange: Te, pageSizeOptions: Ee = _e, pageInfo: De, hasNextPage: T, hasPrevPage: E, onNextPage: Oe, onPrevPage: ke, filterTabs: D, selectedFilterTabId: O, onFilterTabChange: Ae, searchValue: je, onSearchChange: Me, filters: k, visibleColumns: A = x, cellTestIds: j, isSearchActive: M, showAddPanelWhenEmpty: Ne, emptyState: N, onCreateClick: P, onSettingsClick: F, onRetry: I, onFilesSelected: L, maxFiles: R, onEnterManually: z, uploadStatus: B, uploadErrorMessage: V, emailAddress: H, onCopyEmail: U, labels: W, duplicateWarning: G, onReviewDuplicates: K }) {
|
|
58
|
+
let q = _(() => ({
|
|
59
|
+
...m,
|
|
60
|
+
...W,
|
|
61
61
|
statusBadge: {
|
|
62
|
-
...
|
|
63
|
-
...
|
|
62
|
+
...m.statusBadge,
|
|
63
|
+
...W?.statusBadge
|
|
64
64
|
},
|
|
65
65
|
addBill: {
|
|
66
|
-
...
|
|
67
|
-
...
|
|
66
|
+
...m.addBill,
|
|
67
|
+
...W?.addBill,
|
|
68
68
|
dropzone: {
|
|
69
|
-
...
|
|
70
|
-
...
|
|
69
|
+
...m.addBill.dropzone,
|
|
70
|
+
...W?.addBill?.dropzone
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
sortableHeader: {
|
|
74
|
-
...
|
|
75
|
-
...
|
|
74
|
+
...m.sortableHeader,
|
|
75
|
+
...W?.sortableHeader
|
|
76
76
|
},
|
|
77
77
|
missingValue: {
|
|
78
|
-
...
|
|
79
|
-
...
|
|
78
|
+
...m.missingValue,
|
|
79
|
+
...W?.missingValue
|
|
80
80
|
},
|
|
81
81
|
noValue: {
|
|
82
|
-
...
|
|
83
|
-
...
|
|
82
|
+
...m.noValue,
|
|
83
|
+
...W?.noValue
|
|
84
84
|
},
|
|
85
85
|
dueDate: {
|
|
86
|
-
...
|
|
87
|
-
...
|
|
86
|
+
...m.dueDate,
|
|
87
|
+
...W?.dueDate
|
|
88
88
|
}
|
|
89
|
-
}), [
|
|
90
|
-
!
|
|
91
|
-
}, Pe = (e) => {
|
|
92
|
-
!X || !Z(e) || (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Y(!0));
|
|
89
|
+
}), [W]), [Pe, J] = le(!1), Y = !!L, X = (e) => Array.from(e.dataTransfer.types).includes("Files"), Z = (e) => {
|
|
90
|
+
!Y || !X(e) || (e.preventDefault(), J(!0));
|
|
93
91
|
}, Fe = (e) => {
|
|
94
|
-
e
|
|
92
|
+
!Y || !X(e) || (e.preventDefault(), e.dataTransfer.dropEffect = "copy", J(!0));
|
|
95
93
|
}, Ie = (e) => {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
94
|
+
e.currentTarget.contains(e.relatedTarget) || !Y || J(!1);
|
|
95
|
+
}, Le = (e) => {
|
|
96
|
+
if (!Y) return;
|
|
97
|
+
e.preventDefault(), J(!1);
|
|
98
|
+
let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = ie(t, h, R !== 1).slice(0, R);
|
|
99
|
+
n.length && L?.(n);
|
|
100
|
+
}, Q = _(() => {
|
|
101
101
|
let e = (e) => function({ column: t }) {
|
|
102
|
-
return /* @__PURE__ */
|
|
102
|
+
return /* @__PURE__ */ v(i, {
|
|
103
103
|
column: t,
|
|
104
104
|
title: e,
|
|
105
|
-
labels:
|
|
105
|
+
labels: q.sortableHeader
|
|
106
106
|
});
|
|
107
|
-
}, t = (e, t, n = /* @__PURE__ */
|
|
108
|
-
let a = r && i.original[r] ? /* @__PURE__ */
|
|
109
|
-
return /* @__PURE__ */
|
|
107
|
+
}, t = (e, t, n = /* @__PURE__ */ v(p, { labels: q.missingValue }), r) => function({ row: i }) {
|
|
108
|
+
let a = r && i.original[r] ? /* @__PURE__ */ v(p, { labels: q.missingValue }) : n;
|
|
109
|
+
return /* @__PURE__ */ v("span", {
|
|
110
110
|
className: "ttw:whitespace-nowrap",
|
|
111
|
-
"data-testid":
|
|
111
|
+
"data-testid": j?.[t],
|
|
112
112
|
children: i.original[e] || a
|
|
113
113
|
});
|
|
114
114
|
}, n = function({ row: e }) {
|
|
115
|
-
return /* @__PURE__ */
|
|
115
|
+
return /* @__PURE__ */ v("span", {
|
|
116
116
|
className: "ttw:whitespace-nowrap",
|
|
117
|
-
"data-testid":
|
|
118
|
-
children: /* @__PURE__ */
|
|
119
|
-
value: e.original.dueDateLabel || /* @__PURE__ */
|
|
117
|
+
"data-testid": j?.[g.DueDate],
|
|
118
|
+
children: /* @__PURE__ */ v(oe, {
|
|
119
|
+
value: e.original.dueDateLabel || /* @__PURE__ */ v(p, { labels: q.missingValue }),
|
|
120
120
|
tone: e.original.dueDateTone,
|
|
121
|
-
labels:
|
|
121
|
+
labels: q.dueDate
|
|
122
122
|
})
|
|
123
123
|
});
|
|
124
|
-
}, r = (e, t, n = /* @__PURE__ */
|
|
125
|
-
let a = r && i.original[r] ? /* @__PURE__ */
|
|
126
|
-
return /* @__PURE__ */
|
|
124
|
+
}, r = (e, t, n = /* @__PURE__ */ v(p, { labels: q.missingValue }), r) => function({ row: i }) {
|
|
125
|
+
let a = r && i.original[r] ? /* @__PURE__ */ v(p, { labels: q.missingValue }) : n;
|
|
126
|
+
return /* @__PURE__ */ v("div", {
|
|
127
127
|
className: "ttw:text-right ttw:whitespace-nowrap",
|
|
128
|
-
"data-testid":
|
|
128
|
+
"data-testid": j?.[t],
|
|
129
129
|
children: i.original[e] || a
|
|
130
130
|
});
|
|
131
|
-
}, a = /* @__PURE__ */
|
|
132
|
-
return /* @__PURE__ */
|
|
131
|
+
}, a = /* @__PURE__ */ v(se, { labels: q.noValue }), o = (e) => function() {
|
|
132
|
+
return /* @__PURE__ */ v("div", {
|
|
133
133
|
className: "ttw:text-right",
|
|
134
134
|
children: e
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
137
|
return {
|
|
138
|
-
[
|
|
138
|
+
[g.Vendor]: {
|
|
139
139
|
accessorKey: "vendorLabel",
|
|
140
140
|
enableSorting: !0,
|
|
141
|
-
minSize:
|
|
142
|
-
header: e(
|
|
143
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
144
|
-
className:
|
|
145
|
-
"data-testid":
|
|
146
|
-
children: [e.original.vendorLabel || /* @__PURE__ */
|
|
141
|
+
minSize: ve,
|
|
142
|
+
header: e(q.columnVendor),
|
|
143
|
+
cell: ({ row: e }) => /* @__PURE__ */ y("span", {
|
|
144
|
+
className: be[e.original.rowTone ?? "default"],
|
|
145
|
+
"data-testid": j?.[g.Vendor],
|
|
146
|
+
children: [e.original.vendorLabel || /* @__PURE__ */ v(p, { labels: q.missingValue }), e.original.rowNote ? /* @__PURE__ */ v("span", {
|
|
147
147
|
className: "ttw:sr-only",
|
|
148
148
|
children: ` ${e.original.rowNote}`
|
|
149
149
|
}) : null]
|
|
150
150
|
})
|
|
151
151
|
},
|
|
152
|
-
[
|
|
152
|
+
[g.Attachment]: {
|
|
153
153
|
accessorKey: "attachment",
|
|
154
154
|
enableSorting: !1,
|
|
155
|
-
size:
|
|
156
|
-
minSize:
|
|
157
|
-
header: () => /* @__PURE__ */
|
|
155
|
+
size: b,
|
|
156
|
+
minSize: b,
|
|
157
|
+
header: () => /* @__PURE__ */ v("span", {
|
|
158
158
|
className: "ttw:sr-only",
|
|
159
|
-
children:
|
|
159
|
+
children: q.columnAttachment
|
|
160
160
|
}),
|
|
161
|
-
cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */
|
|
161
|
+
cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ v("div", {
|
|
162
162
|
className: "ttw:flex ttw:justify-center",
|
|
163
|
-
"data-testid":
|
|
164
|
-
children: /* @__PURE__ */
|
|
163
|
+
"data-testid": j?.[g.Attachment],
|
|
164
|
+
children: /* @__PURE__ */ v(l, { children: /* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(u, {
|
|
165
165
|
type: "button",
|
|
166
166
|
className: "ttw:inline-flex ttw:cursor-default",
|
|
167
167
|
"aria-label": e.original.attachment.label,
|
|
168
168
|
onClick: (e) => e.stopPropagation(),
|
|
169
|
-
children: /* @__PURE__ */
|
|
170
|
-
}), /* @__PURE__ */
|
|
169
|
+
children: /* @__PURE__ */ v(fe, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
|
|
170
|
+
}), /* @__PURE__ */ v(c, { children: e.original.attachment.label })] }) })
|
|
171
171
|
}) : null
|
|
172
172
|
},
|
|
173
|
-
[
|
|
173
|
+
[g.IssueDate]: {
|
|
174
174
|
accessorKey: "issueDateLabel",
|
|
175
175
|
enableSorting: !0,
|
|
176
|
-
header: e(
|
|
177
|
-
cell: t("issueDateLabel",
|
|
176
|
+
header: e(q.columnIssueDate),
|
|
177
|
+
cell: t("issueDateLabel", g.IssueDate)
|
|
178
178
|
},
|
|
179
|
-
[
|
|
179
|
+
[g.DueDate]: {
|
|
180
180
|
accessorKey: "dueDateLabel",
|
|
181
181
|
enableSorting: !0,
|
|
182
|
-
header: e(
|
|
182
|
+
header: e(q.columnDueDate),
|
|
183
183
|
cell: n
|
|
184
184
|
},
|
|
185
|
-
[
|
|
185
|
+
[g.ScheduledDate]: {
|
|
186
186
|
accessorKey: "scheduledDateLabel",
|
|
187
187
|
enableSorting: !0,
|
|
188
|
-
header: e(
|
|
189
|
-
cell: t("scheduledDateLabel",
|
|
188
|
+
header: e(q.columnScheduledDate),
|
|
189
|
+
cell: t("scheduledDateLabel", g.ScheduledDate, a, "scheduledDateIsGap")
|
|
190
190
|
},
|
|
191
|
-
[
|
|
191
|
+
[g.PaidDate]: {
|
|
192
192
|
accessorKey: "paidDateLabel",
|
|
193
193
|
enableSorting: !1,
|
|
194
|
-
header:
|
|
195
|
-
cell: t("paidDateLabel",
|
|
194
|
+
header: q.columnPaidDate,
|
|
195
|
+
cell: t("paidDateLabel", g.PaidDate)
|
|
196
196
|
},
|
|
197
|
-
[
|
|
197
|
+
[g.Status]: {
|
|
198
198
|
accessorKey: "status",
|
|
199
199
|
enableSorting: !1,
|
|
200
|
-
header:
|
|
201
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
200
|
+
header: q.columnStatus,
|
|
201
|
+
cell: ({ row: e }) => /* @__PURE__ */ v("div", {
|
|
202
202
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
203
|
-
"data-testid":
|
|
204
|
-
children: /* @__PURE__ */
|
|
203
|
+
"data-testid": j?.[g.Status],
|
|
204
|
+
children: /* @__PURE__ */ v(ae, {
|
|
205
205
|
status: e.original.status,
|
|
206
206
|
tone: e.original.statusTone,
|
|
207
|
-
labels:
|
|
207
|
+
labels: q.statusBadge
|
|
208
208
|
})
|
|
209
209
|
})
|
|
210
210
|
},
|
|
211
|
-
[
|
|
211
|
+
[g.AmountDue]: {
|
|
212
212
|
accessorKey: "amountDueLabel",
|
|
213
213
|
enableSorting: !1,
|
|
214
|
-
header: o(
|
|
215
|
-
cell: r("amountDueLabel",
|
|
214
|
+
header: o(q.columnAmountDue),
|
|
215
|
+
cell: r("amountDueLabel", g.AmountDue)
|
|
216
216
|
},
|
|
217
|
-
[
|
|
217
|
+
[g.AmountScheduled]: {
|
|
218
218
|
accessorKey: "amountScheduledLabel",
|
|
219
219
|
enableSorting: !1,
|
|
220
|
-
header: o(
|
|
221
|
-
cell: r("amountScheduledLabel",
|
|
220
|
+
header: o(q.columnAmountScheduled),
|
|
221
|
+
cell: r("amountScheduledLabel", g.AmountScheduled)
|
|
222
222
|
},
|
|
223
|
-
[
|
|
223
|
+
[g.AmountPaid]: {
|
|
224
224
|
accessorKey: "amountPaidLabel",
|
|
225
225
|
enableSorting: !1,
|
|
226
|
-
header: o(
|
|
227
|
-
cell: r("amountPaidLabel",
|
|
226
|
+
header: o(q.columnAmountPaid),
|
|
227
|
+
cell: r("amountPaidLabel", g.AmountPaid, a, "amountPaidIsGap")
|
|
228
228
|
},
|
|
229
|
-
[
|
|
229
|
+
[g.TotalAmount]: {
|
|
230
230
|
accessorKey: "totalAmountLabel",
|
|
231
231
|
enableSorting: !1,
|
|
232
|
-
header: o(
|
|
233
|
-
cell: r("totalAmountLabel",
|
|
232
|
+
header: o(q.columnTotalAmount),
|
|
233
|
+
cell: r("totalAmountLabel", g.TotalAmount)
|
|
234
234
|
},
|
|
235
|
-
[
|
|
235
|
+
[g.AddedOn]: {
|
|
236
236
|
accessorKey: "addedOnLabel",
|
|
237
237
|
enableSorting: !0,
|
|
238
|
-
header: e(
|
|
239
|
-
cell: t("addedOnLabel",
|
|
238
|
+
header: e(q.columnAddedOn),
|
|
239
|
+
cell: t("addedOnLabel", g.AddedOn)
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
|
-
}, [
|
|
242
|
+
}, [q, j]), Re = _(() => [...xe.filter((e) => A.includes(e)).map((e) => Q[e]), {
|
|
243
243
|
id: "actions",
|
|
244
244
|
enableSorting: !1,
|
|
245
|
-
header: () => /* @__PURE__ */
|
|
245
|
+
header: () => /* @__PURE__ */ v("span", {
|
|
246
246
|
className: "ttw:sr-only",
|
|
247
|
-
children:
|
|
247
|
+
children: q.columnActions
|
|
248
248
|
}),
|
|
249
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
249
|
+
cell: ({ row: e }) => /* @__PURE__ */ v("div", {
|
|
250
250
|
className: "ttw:flex ttw:justify-end",
|
|
251
|
-
children: /* @__PURE__ */
|
|
251
|
+
children: /* @__PURE__ */ v(n, {
|
|
252
252
|
variant: "ghost",
|
|
253
253
|
size: "icon",
|
|
254
|
-
"aria-label":
|
|
254
|
+
"aria-label": q.openRow(e.original.vendorLabel || q.missingValue.missing),
|
|
255
255
|
onClick: (t) => {
|
|
256
256
|
t.stopPropagation(), e.original.onOpen();
|
|
257
257
|
},
|
|
258
|
-
children: /* @__PURE__ */
|
|
258
|
+
children: /* @__PURE__ */ v(de, { className: "ttw:size-4" })
|
|
259
259
|
})
|
|
260
260
|
})
|
|
261
261
|
}], [
|
|
262
262
|
Q,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
]),
|
|
263
|
+
q,
|
|
264
|
+
A
|
|
265
|
+
]), ze = !!(P && L) && !C && !w && !M && S.length === 0 && Ne === !0, $ = /* @__PURE__ */ y("div", {
|
|
266
266
|
className: "ttw:relative ttw:w-80",
|
|
267
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ v(me, { 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__ */ v(a, {
|
|
268
268
|
className: "ttw:pl-9",
|
|
269
269
|
type: "search",
|
|
270
|
-
"aria-label":
|
|
271
|
-
placeholder:
|
|
272
|
-
value:
|
|
273
|
-
onChange: (e) =>
|
|
270
|
+
"aria-label": q.searchLabel,
|
|
271
|
+
placeholder: q.searchPlaceholder,
|
|
272
|
+
value: je,
|
|
273
|
+
onChange: (e) => Me(e.target.value)
|
|
274
274
|
})]
|
|
275
|
-
}),
|
|
276
|
-
...
|
|
275
|
+
}), Be = k ? /* @__PURE__ */ v(ce, {
|
|
276
|
+
...k,
|
|
277
277
|
className: "ttw:px-4",
|
|
278
278
|
searchSlot: $
|
|
279
|
-
}) : /* @__PURE__ */
|
|
279
|
+
}) : /* @__PURE__ */ v("div", {
|
|
280
280
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
281
281
|
children: $
|
|
282
282
|
});
|
|
283
|
-
return /* @__PURE__ */
|
|
283
|
+
return /* @__PURE__ */ y("div", {
|
|
284
284
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
285
|
-
children: [
|
|
285
|
+
children: [G ? /* @__PURE__ */ y(e, {
|
|
286
286
|
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",
|
|
287
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ v(t, {
|
|
288
288
|
className: "ttw:flex-1 ttw:font-semibold",
|
|
289
|
-
children:
|
|
290
|
-
}),
|
|
289
|
+
children: G
|
|
290
|
+
}), K ? /* @__PURE__ */ v(n, {
|
|
291
291
|
type: "button",
|
|
292
292
|
variant: "outline",
|
|
293
293
|
className: "ttw:text-foreground",
|
|
294
|
-
onClick:
|
|
295
|
-
children:
|
|
294
|
+
onClick: K,
|
|
295
|
+
children: q.duplicateBillsReviewButton
|
|
296
296
|
}) : null]
|
|
297
|
-
}) : null, /* @__PURE__ */
|
|
298
|
-
value:
|
|
299
|
-
onValueChange:
|
|
297
|
+
}) : null, /* @__PURE__ */ y(o, {
|
|
298
|
+
value: O,
|
|
299
|
+
onValueChange: Ae,
|
|
300
300
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
301
|
-
children: [/* @__PURE__ */
|
|
301
|
+
children: [/* @__PURE__ */ y("div", {
|
|
302
302
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
303
|
-
children: [/* @__PURE__ */
|
|
304
|
-
"aria-label":
|
|
305
|
-
children:
|
|
303
|
+
children: [/* @__PURE__ */ v(te, {
|
|
304
|
+
"aria-label": q.filterTabsLabel,
|
|
305
|
+
children: D.map((e) => /* @__PURE__ */ y(ne, {
|
|
306
306
|
value: e.id,
|
|
307
|
-
className: "ttw:min-w-28",
|
|
308
|
-
children: [e.
|
|
307
|
+
className: "ttw:group/tab ttw:min-w-28 ttw:gap-2",
|
|
308
|
+
children: [e.label, e.badge ? /* @__PURE__ */ y(ue, { children: [" ", /* @__PURE__ */ v("span", {
|
|
309
|
+
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",
|
|
310
|
+
children: e.badge
|
|
311
|
+
})] }) : null]
|
|
309
312
|
}, e.id))
|
|
310
|
-
}), /* @__PURE__ */
|
|
313
|
+
}), /* @__PURE__ */ y("div", {
|
|
311
314
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
312
|
-
children: [
|
|
315
|
+
children: [F ? /* @__PURE__ */ v(l, { children: /* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(u, {
|
|
313
316
|
asChild: !0,
|
|
314
|
-
children: /* @__PURE__ */
|
|
317
|
+
children: /* @__PURE__ */ v(n, {
|
|
315
318
|
variant: "outline",
|
|
316
319
|
size: "icon",
|
|
317
|
-
"aria-label":
|
|
318
|
-
onClick:
|
|
319
|
-
children: /* @__PURE__ */
|
|
320
|
+
"aria-label": q.settingsButton,
|
|
321
|
+
onClick: F,
|
|
322
|
+
children: /* @__PURE__ */ v(he, { className: "ttw:size-4" })
|
|
320
323
|
})
|
|
321
|
-
}), /* @__PURE__ */
|
|
322
|
-
onClick:
|
|
323
|
-
children: [/* @__PURE__ */
|
|
324
|
+
}), /* @__PURE__ */ v(c, { children: q.settingsButton })] }) }) : null, P ? /* @__PURE__ */ y(n, {
|
|
325
|
+
onClick: P,
|
|
326
|
+
children: [/* @__PURE__ */ v(pe, { className: "ttw:size-4" }), q.createButton]
|
|
324
327
|
}) : null]
|
|
325
328
|
})]
|
|
326
329
|
}), (() => {
|
|
327
|
-
let e =
|
|
328
|
-
title:
|
|
329
|
-
description:
|
|
330
|
-
retryLabel:
|
|
331
|
-
onRetry:
|
|
332
|
-
}) :
|
|
330
|
+
let e = w ? /* @__PURE__ */ v(re, {
|
|
331
|
+
title: q.errorTitle,
|
|
332
|
+
description: q.errorDescription,
|
|
333
|
+
retryLabel: I ? q.errorRetry : void 0,
|
|
334
|
+
onRetry: I
|
|
335
|
+
}) : ze && P && L ? /* @__PURE__ */ v("div", {
|
|
333
336
|
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
334
|
-
children:
|
|
335
|
-
emailAddress:
|
|
336
|
-
onCopyEmail:
|
|
337
|
-
onFilesSelected:
|
|
338
|
-
accept:
|
|
339
|
-
maxFiles:
|
|
340
|
-
uploadStatus:
|
|
341
|
-
uploadErrorMessage:
|
|
342
|
-
onEnterManually:
|
|
343
|
-
labels:
|
|
344
|
-
}) : /* @__PURE__ */
|
|
345
|
-
onFilesSelected:
|
|
346
|
-
accept:
|
|
347
|
-
maxFiles:
|
|
348
|
-
uploadStatus:
|
|
349
|
-
uploadErrorMessage:
|
|
350
|
-
onEnterManually:
|
|
351
|
-
labels:
|
|
337
|
+
children: H && U ? /* @__PURE__ */ v(f, {
|
|
338
|
+
emailAddress: H,
|
|
339
|
+
onCopyEmail: U,
|
|
340
|
+
onFilesSelected: L,
|
|
341
|
+
accept: h,
|
|
342
|
+
maxFiles: R,
|
|
343
|
+
uploadStatus: B,
|
|
344
|
+
uploadErrorMessage: V,
|
|
345
|
+
onEnterManually: z ?? P,
|
|
346
|
+
labels: q.addBill
|
|
347
|
+
}) : /* @__PURE__ */ v(f, {
|
|
348
|
+
onFilesSelected: L,
|
|
349
|
+
accept: h,
|
|
350
|
+
maxFiles: R,
|
|
351
|
+
uploadStatus: B,
|
|
352
|
+
uploadErrorMessage: V,
|
|
353
|
+
onEnterManually: z ?? P,
|
|
354
|
+
labels: q.addBill
|
|
352
355
|
})
|
|
353
|
-
}) : /* @__PURE__ */
|
|
356
|
+
}) : /* @__PURE__ */ y("div", {
|
|
354
357
|
className: "ttw:relative",
|
|
355
|
-
onDragEnter:
|
|
356
|
-
onDragOver:
|
|
357
|
-
onDragLeave:
|
|
358
|
-
onDrop:
|
|
359
|
-
children: [/* @__PURE__ */
|
|
360
|
-
columns:
|
|
361
|
-
data:
|
|
358
|
+
onDragEnter: Z,
|
|
359
|
+
onDragOver: Fe,
|
|
360
|
+
onDragLeave: Ie,
|
|
361
|
+
onDrop: Le,
|
|
362
|
+
children: [/* @__PURE__ */ v(r, {
|
|
363
|
+
columns: Re,
|
|
364
|
+
data: S,
|
|
362
365
|
getRowId: (e) => e.rowKey,
|
|
363
366
|
animatesNewRows: !0,
|
|
364
|
-
isLoading:
|
|
365
|
-
sorting:
|
|
366
|
-
onSortingChange:
|
|
367
|
-
pageSize:
|
|
368
|
-
onPageSizeChange:
|
|
369
|
-
pageSizeOptions:
|
|
370
|
-
pageInfo:
|
|
371
|
-
hasNextPage:
|
|
367
|
+
isLoading: C,
|
|
368
|
+
sorting: Se,
|
|
369
|
+
onSortingChange: Ce,
|
|
370
|
+
pageSize: we,
|
|
371
|
+
onPageSizeChange: Te,
|
|
372
|
+
pageSizeOptions: Ee,
|
|
373
|
+
pageInfo: De,
|
|
374
|
+
hasNextPage: T,
|
|
372
375
|
hasPrevPage: E,
|
|
373
|
-
onNextPage:
|
|
374
|
-
onPrevPage:
|
|
376
|
+
onNextPage: Oe,
|
|
377
|
+
onPrevPage: ke,
|
|
375
378
|
onRowClick: (e) => e.onOpen(),
|
|
376
|
-
rowClassName: (e) =>
|
|
377
|
-
filterComponent:
|
|
378
|
-
children:
|
|
379
|
-
title:
|
|
380
|
-
description:
|
|
381
|
-
}) :
|
|
382
|
-
title:
|
|
383
|
-
description:
|
|
379
|
+
rowClassName: (e) => ye[e.rowTone ?? "default"],
|
|
380
|
+
filterComponent: Be,
|
|
381
|
+
children: M ? /* @__PURE__ */ v(d, {
|
|
382
|
+
title: q.filteredEmptyTitle,
|
|
383
|
+
description: q.filteredEmptyDescription
|
|
384
|
+
}) : N ? /* @__PURE__ */ v(d, {
|
|
385
|
+
title: N.title,
|
|
386
|
+
description: N.description
|
|
384
387
|
}) : void 0
|
|
385
|
-
}),
|
|
388
|
+
}), Pe ? /* @__PURE__ */ v("div", {
|
|
386
389
|
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]",
|
|
387
|
-
children: /* @__PURE__ */
|
|
390
|
+
children: /* @__PURE__ */ y("div", {
|
|
388
391
|
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",
|
|
389
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ v(ge, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
390
393
|
className: "ttw:text-sm ttw:font-medium",
|
|
391
|
-
children:
|
|
392
|
-
}), /* @__PURE__ */
|
|
394
|
+
children: q.tableDropzoneTitle
|
|
395
|
+
}), /* @__PURE__ */ v("p", {
|
|
393
396
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
394
|
-
children:
|
|
397
|
+
children: R === void 0 ? q.addBill.dropzone.fileTypesHint : `${q.addBill.dropzone.fileTypesHint} · ${q.addBill.dropzone.fileCountHint(R)}`
|
|
395
398
|
})] })]
|
|
396
399
|
})
|
|
397
400
|
}) : null]
|
|
398
401
|
});
|
|
399
|
-
return
|
|
402
|
+
return D.map((t) => /* @__PURE__ */ v(ee, {
|
|
400
403
|
value: t.id,
|
|
401
|
-
children: t.id ===
|
|
404
|
+
children: t.id === O ? e : null
|
|
402
405
|
}, t.id));
|
|
403
406
|
})()]
|
|
404
407
|
})]
|
|
405
408
|
});
|
|
406
409
|
}
|
|
407
410
|
//#endregion
|
|
408
|
-
export {
|
|
411
|
+
export { S as BillsScreen, S as default, x as DEFAULT_BILL_COLUMNS };
|