@tesouro/embedded-components-react 0.5.168 → 0.5.170
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 +39 -17
- 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 +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +95 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +37 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +56 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +4 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +6 -115
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +202 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +84 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +32 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +36 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +167 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +40 -164
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +50 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +11 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +59 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +150 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +9 -152
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +25 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +14 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +68 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +143 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +44 -143
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +114 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +189 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +72 -186
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +31 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +89 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +406 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -411
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +84 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +67 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +222 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +37 -223
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +245 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +23 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +626 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -586
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +45 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +256 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -263
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +22 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +130 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -132
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +129 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +82 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +19 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +82 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +260 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +24 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +382 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +294 -144
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +4 -223
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +112 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +37 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +1 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +126 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +1 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +126 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +11 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +106 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +2 -181
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +50 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +2 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +154 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +343 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +5 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +104 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +31 -2
- 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/dist/packages/shared-ui-shadcn/dist/index.js +2458 -2284
- package/package.json +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
|
@@ -1,416 +1,509 @@
|
|
|
1
|
-
import { Alert as e, AlertTitle as t,
|
|
2
|
-
import { EmptyState as
|
|
3
|
-
import { ErrorState as
|
|
1
|
+
import { Alert as e, AlertTitle as t, Badge as n, Button as r, ContextMenuItem as i, DataTable as a, DataTableSortableHeader as ee, Input as te, Skeleton as ne, Tabs as o, TabsContent as re, TabsList as ie, TabsTrigger as ae, Tooltip as s, TooltipContent as c, TooltipProvider as l, TooltipTrigger as oe, cn as se } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as u } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
+
import { ErrorState as ce } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
4
|
import "../../../shared/ui/dist/index.js";
|
|
5
|
-
import { getAcceptedBillUploadFiles as
|
|
5
|
+
import { getAcceptedBillUploadFiles as le } from "./index3.js";
|
|
6
6
|
import "./index5.js";
|
|
7
|
-
import { AddBillPanel as
|
|
7
|
+
import { AddBillPanel as d } from "./index7.js";
|
|
8
8
|
import "./index8.js";
|
|
9
|
-
import { BillStatusBadge as
|
|
9
|
+
import { BillStatusBadge as ue } from "./index21.js";
|
|
10
10
|
import "./index22.js";
|
|
11
|
-
import { DueDateValue as
|
|
11
|
+
import { DueDateValue as de } from "./index24.js";
|
|
12
12
|
import "./index25.js";
|
|
13
|
-
import { MissingValue as
|
|
13
|
+
import { MissingValue as f } from "./index33.js";
|
|
14
14
|
import "./index34.js";
|
|
15
|
-
import { NoValue as
|
|
15
|
+
import { NoValue as p } from "./index36.js";
|
|
16
16
|
import "./index37.js";
|
|
17
|
-
import { BILLS_SCREEN_LABELS_EN as
|
|
18
|
-
import { DateDisclosure as
|
|
19
|
-
import {
|
|
17
|
+
import { BILLS_SCREEN_LABELS_EN as m, BILLS_SCREEN_UPLOAD_ACCEPT as h } from "./index38.js";
|
|
18
|
+
import { DateDisclosure as fe } from "./index16.js";
|
|
19
|
+
import { BillOverflowMenu as pe } from "./index46.js";
|
|
20
|
+
import "./index47.js";
|
|
21
|
+
import { BillsFilterBar as me } from "./index81.js";
|
|
20
22
|
import "./index82.js";
|
|
21
|
-
import { BillColumn as
|
|
22
|
-
import { useMemo as
|
|
23
|
-
import { Fragment as
|
|
24
|
-
import { PaperclipIcon as
|
|
23
|
+
import { BillColumn as g } from "./index83.js";
|
|
24
|
+
import { useMemo as _, useState as he } from "react";
|
|
25
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
26
|
+
import { FileQuestionIcon as ge, PaperclipIcon as _e, PlusIcon as ve, SearchIcon as ye, SettingsIcon as be, UploadIcon as xe, XIcon as Se } from "lucide-react";
|
|
25
27
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js
|
|
26
|
-
var
|
|
28
|
+
var Ce = [
|
|
27
29
|
10,
|
|
28
30
|
25,
|
|
29
31
|
50,
|
|
30
32
|
100
|
|
31
|
-
],
|
|
33
|
+
], we = 240, Te = {
|
|
32
34
|
default: "",
|
|
33
35
|
warning: "ttw:bg-amber-50 ttw:hover:bg-amber-100 ttw:border-l-4! ttw:border-l-amber-600!"
|
|
34
|
-
},
|
|
36
|
+
}, x = {
|
|
35
37
|
default: "",
|
|
36
38
|
warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
|
|
39
|
+
}, Ee = {
|
|
40
|
+
success: "ttw:text-emerald-700",
|
|
41
|
+
warning: "ttw:text-amber-800"
|
|
37
42
|
};
|
|
38
|
-
function
|
|
43
|
+
function De(e, t) {
|
|
39
44
|
return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.missingValue.missing;
|
|
40
45
|
}
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
var S = 40, Oe = [
|
|
47
|
+
g.Vendor,
|
|
48
|
+
g.InvoiceNumber,
|
|
49
|
+
g.Attachment,
|
|
50
|
+
g.IssueDate,
|
|
51
|
+
g.DueDate,
|
|
52
|
+
g.ScheduledDate,
|
|
53
|
+
g.PaidDate,
|
|
54
|
+
g.Status,
|
|
55
|
+
g.AmountDue,
|
|
56
|
+
g.AmountScheduled,
|
|
57
|
+
g.AmountPaid,
|
|
58
|
+
g.TotalAmount,
|
|
59
|
+
g.AddedOn
|
|
60
|
+
], ke = [
|
|
61
|
+
g.Vendor,
|
|
62
|
+
g.Attachment,
|
|
63
|
+
g.DueDate,
|
|
64
|
+
g.Status,
|
|
65
|
+
g.AmountDue,
|
|
66
|
+
g.AddedOn
|
|
61
67
|
];
|
|
62
|
-
function
|
|
63
|
-
let
|
|
64
|
-
...
|
|
65
|
-
...
|
|
68
|
+
function C({ rows: C, isLoading: w, isError: T, sorting: Ae, onSortingChange: je, pageSize: Me, onPageSizeChange: Ne, pageSizeOptions: E = Ce, pageInfo: Pe, hasNextPage: D, hasPrevPage: O, onNextPage: Fe, onPrevPage: Ie, filterTabs: k, selectedFilterTabId: A, onFilterTabChange: Le, searchValue: Re, onSearchChange: ze, filters: j, visibleColumns: M = ke, cellTestIds: N, isSearchActive: P, showAddPanelWhenEmpty: Be, emptyState: F, onCreateClick: I, onSettingsClick: L, onRetry: R, onFilesSelected: z, maxFiles: B, onEnterManually: V, uploadStatus: H, uploadErrorMessage: U, emailAddress: W, onCopyEmail: G, labels: K, duplicateWarning: q, duplicateReviewControl: J }) {
|
|
69
|
+
let Y = _(() => ({
|
|
70
|
+
...m,
|
|
71
|
+
...K,
|
|
66
72
|
statusBadge: {
|
|
67
|
-
...
|
|
68
|
-
...
|
|
73
|
+
...m.statusBadge,
|
|
74
|
+
...K?.statusBadge
|
|
69
75
|
},
|
|
70
76
|
addBill: {
|
|
71
|
-
...
|
|
72
|
-
...
|
|
77
|
+
...m.addBill,
|
|
78
|
+
...K?.addBill,
|
|
73
79
|
dropzone: {
|
|
74
|
-
...
|
|
75
|
-
...
|
|
80
|
+
...m.addBill.dropzone,
|
|
81
|
+
...K?.addBill?.dropzone
|
|
76
82
|
}
|
|
77
83
|
},
|
|
78
84
|
sortableHeader: {
|
|
79
|
-
...
|
|
80
|
-
...
|
|
85
|
+
...m.sortableHeader,
|
|
86
|
+
...K?.sortableHeader
|
|
81
87
|
},
|
|
82
88
|
missingValue: {
|
|
83
|
-
...
|
|
84
|
-
...
|
|
89
|
+
...m.missingValue,
|
|
90
|
+
...K?.missingValue
|
|
85
91
|
},
|
|
86
92
|
noValue: {
|
|
87
|
-
...
|
|
88
|
-
...
|
|
93
|
+
...m.noValue,
|
|
94
|
+
...K?.noValue
|
|
89
95
|
},
|
|
90
96
|
dueDate: {
|
|
91
|
-
...
|
|
92
|
-
...
|
|
97
|
+
...m.dueDate,
|
|
98
|
+
...K?.dueDate
|
|
93
99
|
}
|
|
94
|
-
}), [
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
!e.currentTarget.contains(e.relatedTarget) &&
|
|
100
|
-
},
|
|
101
|
-
if (
|
|
102
|
-
e.preventDefault(),
|
|
103
|
-
let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n =
|
|
104
|
-
n.length &&
|
|
105
|
-
},
|
|
100
|
+
}), [K]), Ve = C.some((e) => e.group), X = C.some((e) => e.menu?.items.length), Z = J?.isActive === !0, [He, Q] = he(!1), $ = !!z, Ue = (e) => Array.from(e.dataTransfer.types).includes("Files"), We = (e) => {
|
|
101
|
+
$ && Ue(e) && (e.preventDefault(), Q(!0));
|
|
102
|
+
}, Ge = (e) => {
|
|
103
|
+
$ && Ue(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Q(!0));
|
|
104
|
+
}, Ke = (e) => {
|
|
105
|
+
!e.currentTarget.contains(e.relatedTarget) && $ && Q(!1);
|
|
106
|
+
}, qe = (e) => {
|
|
107
|
+
if (!$) return;
|
|
108
|
+
e.preventDefault(), Q(!1);
|
|
109
|
+
let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = le(t, h, B !== 1);
|
|
110
|
+
n.length && z?.(n);
|
|
111
|
+
}, Je = _(() => {
|
|
106
112
|
let e = (e) => function({ column: t }) {
|
|
107
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ y(ee, {
|
|
108
114
|
column: t,
|
|
109
115
|
title: e,
|
|
110
|
-
labels:
|
|
116
|
+
labels: Y.sortableHeader
|
|
111
117
|
});
|
|
112
|
-
}, t = (e, t, n = /* @__PURE__ */
|
|
113
|
-
let a = r && i.original[r] ? /* @__PURE__ */
|
|
114
|
-
return /* @__PURE__ */
|
|
118
|
+
}, t = (e, t, n = /* @__PURE__ */ y(f, { labels: Y.missingValue }), r) => function({ row: i }) {
|
|
119
|
+
let a = r && i.original[r] ? /* @__PURE__ */ y(f, { labels: Y.missingValue }) : n;
|
|
120
|
+
return /* @__PURE__ */ y("span", {
|
|
115
121
|
className: "ttw:whitespace-nowrap",
|
|
116
|
-
"data-testid":
|
|
122
|
+
"data-testid": N?.[t],
|
|
117
123
|
children: i.original[e] || a
|
|
118
124
|
});
|
|
119
|
-
},
|
|
120
|
-
return /* @__PURE__ */
|
|
125
|
+
}, r = function({ row: e }) {
|
|
126
|
+
return /* @__PURE__ */ y("span", {
|
|
121
127
|
className: "ttw:whitespace-nowrap",
|
|
122
|
-
"data-testid":
|
|
123
|
-
children: /* @__PURE__ */
|
|
124
|
-
value: e.original.dueDateLabel || /* @__PURE__ */
|
|
128
|
+
"data-testid": N?.[g.DueDate],
|
|
129
|
+
children: /* @__PURE__ */ y(de, {
|
|
130
|
+
value: e.original.dueDateLabel || /* @__PURE__ */ y(f, { labels: Y.missingValue }),
|
|
125
131
|
tone: e.original.dueDateTone,
|
|
126
|
-
labels:
|
|
132
|
+
labels: Y.dueDate
|
|
127
133
|
})
|
|
128
134
|
});
|
|
129
|
-
},
|
|
130
|
-
let a = r && i.original[r] ? /* @__PURE__ */
|
|
131
|
-
return /* @__PURE__ */
|
|
135
|
+
}, i = (e, t, n = /* @__PURE__ */ y(f, { labels: Y.missingValue }), r) => function({ row: i }) {
|
|
136
|
+
let a = r && i.original[r] ? /* @__PURE__ */ y(f, { labels: Y.missingValue }) : n;
|
|
137
|
+
return /* @__PURE__ */ y("div", {
|
|
132
138
|
className: "ttw:text-right ttw:whitespace-nowrap",
|
|
133
|
-
"data-testid":
|
|
139
|
+
"data-testid": N?.[t],
|
|
134
140
|
children: i.original[e] || a
|
|
135
141
|
});
|
|
136
|
-
}, a = /* @__PURE__ */
|
|
137
|
-
function
|
|
138
|
-
let t = e.original.scheduledDateIsGap ? /* @__PURE__ */
|
|
139
|
-
return /* @__PURE__ */
|
|
142
|
+
}, a = /* @__PURE__ */ y(p, { labels: Y.noValue });
|
|
143
|
+
function te({ row: e }) {
|
|
144
|
+
let t = e.original.scheduledDateIsGap ? /* @__PURE__ */ y(f, { labels: Y.missingValue }) : a, n = e.original.scheduledDateLabel, r = e.original.scheduledDateExact;
|
|
145
|
+
return /* @__PURE__ */ y("span", {
|
|
140
146
|
className: "ttw:whitespace-nowrap",
|
|
141
|
-
"data-testid":
|
|
142
|
-
children: n && r ? /* @__PURE__ */
|
|
147
|
+
"data-testid": N?.[g.ScheduledDate],
|
|
148
|
+
children: n && r ? /* @__PURE__ */ y(fe, {
|
|
143
149
|
date: r,
|
|
144
150
|
children: n
|
|
145
151
|
}) : n || t
|
|
146
152
|
});
|
|
147
153
|
}
|
|
148
|
-
let
|
|
149
|
-
return /* @__PURE__ */
|
|
154
|
+
let o = (e) => function() {
|
|
155
|
+
return /* @__PURE__ */ y("div", {
|
|
150
156
|
className: "ttw:text-right",
|
|
151
157
|
children: e
|
|
152
158
|
});
|
|
153
159
|
};
|
|
154
160
|
return {
|
|
155
|
-
[
|
|
161
|
+
[g.Vendor]: {
|
|
156
162
|
accessorKey: "vendorLabel",
|
|
157
163
|
enableSorting: !0,
|
|
158
|
-
minSize:
|
|
159
|
-
header: e(
|
|
164
|
+
minSize: we,
|
|
165
|
+
header: e(Y.columnVendor),
|
|
160
166
|
cell: ({ row: e }) => {
|
|
161
|
-
let t = e.original.rowNote ? /* @__PURE__ */
|
|
167
|
+
let t = e.original.rowNote ? /* @__PURE__ */ y("span", {
|
|
162
168
|
className: "ttw:sr-only",
|
|
163
169
|
children: ` ${e.original.rowNote}`
|
|
164
170
|
}) : null;
|
|
165
|
-
|
|
166
|
-
className:
|
|
167
|
-
"data-testid":
|
|
168
|
-
children: [/* @__PURE__ */
|
|
171
|
+
if (!e.original.vendorLabel && e.original.vendorLookup === "resolving") return /* @__PURE__ */ b("div", {
|
|
172
|
+
className: x[e.original.rowTone ?? "default"],
|
|
173
|
+
"data-testid": N?.[g.Vendor],
|
|
174
|
+
children: [/* @__PURE__ */ y(ne, {
|
|
169
175
|
className: "ttw:h-4 ttw:w-32",
|
|
170
176
|
"aria-hidden": !0
|
|
171
177
|
}), t]
|
|
172
|
-
})
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
178
|
+
});
|
|
179
|
+
let r = e.original.groupedRowLabel ?? e.original.vendorLabel;
|
|
180
|
+
return /* @__PURE__ */ b("span", {
|
|
181
|
+
className: se("ttw:inline-flex", e.original.group ? "ttw:flex-col ttw:items-start ttw:gap-1" : "ttw:items-center ttw:gap-2", e.original.group && "ttw:pl-6", e.original.groupedRowLabelTone ? Ee[e.original.groupedRowLabelTone] : x[e.original.rowTone ?? "default"]),
|
|
182
|
+
"data-testid": N?.[g.Vendor],
|
|
183
|
+
children: [
|
|
184
|
+
r || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ y(p, { labels: { none: Y.vendorUnavailable } }) : /* @__PURE__ */ y(f, { labels: Y.missingValue })),
|
|
185
|
+
e.original.groupedRowBadge ? /* @__PURE__ */ y(n, {
|
|
186
|
+
variant: "secondary",
|
|
187
|
+
children: e.original.groupedRowBadge
|
|
188
|
+
}) : null,
|
|
189
|
+
t
|
|
190
|
+
]
|
|
176
191
|
});
|
|
177
192
|
}
|
|
178
193
|
},
|
|
179
|
-
[
|
|
194
|
+
[g.InvoiceNumber]: {
|
|
195
|
+
accessorKey: "invoiceNumberLabel",
|
|
196
|
+
enableSorting: !1,
|
|
197
|
+
header: () => Y.columnInvoiceNumber,
|
|
198
|
+
cell: t("invoiceNumberLabel", g.InvoiceNumber)
|
|
199
|
+
},
|
|
200
|
+
[g.Attachment]: {
|
|
180
201
|
accessorKey: "attachment",
|
|
181
202
|
enableSorting: !1,
|
|
182
|
-
size:
|
|
183
|
-
minSize:
|
|
184
|
-
header: () => /* @__PURE__ */
|
|
203
|
+
size: S,
|
|
204
|
+
minSize: S,
|
|
205
|
+
header: () => /* @__PURE__ */ y("span", {
|
|
185
206
|
className: "ttw:sr-only",
|
|
186
|
-
children:
|
|
207
|
+
children: Y.columnAttachment
|
|
187
208
|
}),
|
|
188
|
-
cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */
|
|
209
|
+
cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ y("div", {
|
|
189
210
|
className: "ttw:flex ttw:justify-center",
|
|
190
|
-
"data-testid":
|
|
191
|
-
children: /* @__PURE__ */
|
|
211
|
+
"data-testid": N?.[g.Attachment],
|
|
212
|
+
children: /* @__PURE__ */ y(l, { children: /* @__PURE__ */ b(s, { children: [/* @__PURE__ */ y(oe, {
|
|
192
213
|
type: "button",
|
|
193
214
|
className: "ttw:inline-flex ttw:cursor-default",
|
|
194
215
|
"aria-label": e.original.attachment.label,
|
|
195
216
|
onClick: (e) => e.stopPropagation(),
|
|
196
|
-
children: /* @__PURE__ */
|
|
197
|
-
}), /* @__PURE__ */
|
|
217
|
+
children: /* @__PURE__ */ y(_e, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
|
|
218
|
+
}), /* @__PURE__ */ y(c, { children: e.original.attachment.label })] }) })
|
|
198
219
|
}) : null
|
|
199
220
|
},
|
|
200
|
-
[
|
|
221
|
+
[g.IssueDate]: {
|
|
201
222
|
accessorKey: "issueDateLabel",
|
|
202
223
|
enableSorting: !0,
|
|
203
|
-
header: e(
|
|
204
|
-
cell: t("issueDateLabel",
|
|
224
|
+
header: e(Y.columnIssueDate),
|
|
225
|
+
cell: t("issueDateLabel", g.IssueDate)
|
|
205
226
|
},
|
|
206
|
-
[
|
|
227
|
+
[g.DueDate]: {
|
|
207
228
|
accessorKey: "dueDateLabel",
|
|
208
229
|
enableSorting: !0,
|
|
209
|
-
header: e(
|
|
210
|
-
cell:
|
|
230
|
+
header: e(Y.columnDueDate),
|
|
231
|
+
cell: r
|
|
211
232
|
},
|
|
212
|
-
[
|
|
233
|
+
[g.ScheduledDate]: {
|
|
213
234
|
accessorKey: "scheduledDateLabel",
|
|
214
235
|
enableSorting: !0,
|
|
215
|
-
header: e(
|
|
216
|
-
cell:
|
|
236
|
+
header: e(Y.columnScheduledDate),
|
|
237
|
+
cell: te
|
|
217
238
|
},
|
|
218
|
-
[
|
|
239
|
+
[g.PaidDate]: {
|
|
219
240
|
accessorKey: "paidDateLabel",
|
|
220
241
|
enableSorting: !1,
|
|
221
|
-
header:
|
|
222
|
-
cell: t("paidDateLabel",
|
|
242
|
+
header: Y.columnPaidDate,
|
|
243
|
+
cell: t("paidDateLabel", g.PaidDate)
|
|
223
244
|
},
|
|
224
|
-
[
|
|
245
|
+
[g.Status]: {
|
|
225
246
|
accessorKey: "status",
|
|
226
247
|
enableSorting: !1,
|
|
227
|
-
header:
|
|
228
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
248
|
+
header: Y.columnStatus,
|
|
249
|
+
cell: ({ row: e }) => /* @__PURE__ */ y("div", {
|
|
229
250
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
230
|
-
"data-testid":
|
|
231
|
-
children: /* @__PURE__ */
|
|
251
|
+
"data-testid": N?.[g.Status],
|
|
252
|
+
children: /* @__PURE__ */ y(ue, {
|
|
232
253
|
status: e.original.status,
|
|
233
254
|
tone: e.original.statusTone,
|
|
234
|
-
labels:
|
|
255
|
+
labels: Y.statusBadge
|
|
235
256
|
})
|
|
236
257
|
})
|
|
237
258
|
},
|
|
238
|
-
[
|
|
259
|
+
[g.AmountDue]: {
|
|
239
260
|
accessorKey: "amountDueLabel",
|
|
240
261
|
enableSorting: !1,
|
|
241
|
-
header:
|
|
242
|
-
cell:
|
|
262
|
+
header: o(Y.columnAmountDue),
|
|
263
|
+
cell: i("amountDueLabel", g.AmountDue)
|
|
243
264
|
},
|
|
244
|
-
[
|
|
265
|
+
[g.AmountScheduled]: {
|
|
245
266
|
accessorKey: "amountScheduledLabel",
|
|
246
267
|
enableSorting: !1,
|
|
247
|
-
header:
|
|
248
|
-
cell:
|
|
268
|
+
header: o(Y.columnAmountScheduled),
|
|
269
|
+
cell: i("amountScheduledLabel", g.AmountScheduled)
|
|
249
270
|
},
|
|
250
|
-
[
|
|
271
|
+
[g.AmountPaid]: {
|
|
251
272
|
accessorKey: "amountPaidLabel",
|
|
252
273
|
enableSorting: !1,
|
|
253
|
-
header:
|
|
254
|
-
cell:
|
|
274
|
+
header: o(Y.columnAmountPaid),
|
|
275
|
+
cell: i("amountPaidLabel", g.AmountPaid, a, "amountPaidIsGap")
|
|
255
276
|
},
|
|
256
|
-
[
|
|
277
|
+
[g.TotalAmount]: {
|
|
257
278
|
accessorKey: "totalAmountLabel",
|
|
258
279
|
enableSorting: !1,
|
|
259
|
-
header:
|
|
260
|
-
cell:
|
|
280
|
+
header: o(Y.columnTotalAmount),
|
|
281
|
+
cell: i("totalAmountLabel", g.TotalAmount)
|
|
261
282
|
},
|
|
262
|
-
[
|
|
283
|
+
[g.AddedOn]: {
|
|
263
284
|
accessorKey: "addedOnLabel",
|
|
264
285
|
enableSorting: !0,
|
|
265
|
-
header: e(
|
|
266
|
-
cell: t("addedOnLabel",
|
|
286
|
+
header: e(Y.columnAddedOn),
|
|
287
|
+
cell: t("addedOnLabel", g.AddedOn)
|
|
267
288
|
}
|
|
268
289
|
};
|
|
269
|
-
}, [
|
|
290
|
+
}, [Y, N]), Ye = _(() => [...Oe.filter((e) => M.includes(e)).map((e) => Je[e]), ...X ? [{
|
|
291
|
+
id: "actions",
|
|
292
|
+
enableSorting: !1,
|
|
293
|
+
header: () => /* @__PURE__ */ y("span", {
|
|
294
|
+
className: "ttw:sr-only",
|
|
295
|
+
children: Y.columnActions
|
|
296
|
+
}),
|
|
297
|
+
cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ y("div", {
|
|
298
|
+
className: "ttw:flex ttw:justify-end",
|
|
299
|
+
children: /* @__PURE__ */ y(pe, {
|
|
300
|
+
actions: e.original.menu.items.map((e) => ({
|
|
301
|
+
...e,
|
|
302
|
+
variant: "ghost"
|
|
303
|
+
})),
|
|
304
|
+
triggerLabel: e.original.menu.triggerLabel,
|
|
305
|
+
placement: "table"
|
|
306
|
+
})
|
|
307
|
+
}) : null
|
|
308
|
+
}] : []], [
|
|
309
|
+
Je,
|
|
310
|
+
X,
|
|
311
|
+
Y,
|
|
312
|
+
M
|
|
313
|
+
]), Xe = !!(I && z) && !w && !T && !P && C.length === 0 && Be === !0, Ze = /* @__PURE__ */ b("div", {
|
|
270
314
|
className: "ttw:relative ttw:w-80",
|
|
271
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ y(ye, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ y(te, {
|
|
272
316
|
className: "ttw:pl-9",
|
|
273
317
|
type: "search",
|
|
274
|
-
"aria-label":
|
|
275
|
-
placeholder:
|
|
276
|
-
value:
|
|
277
|
-
onChange: (e) =>
|
|
318
|
+
"aria-label": Y.searchLabel,
|
|
319
|
+
placeholder: Y.searchPlaceholder,
|
|
320
|
+
value: Re,
|
|
321
|
+
onChange: (e) => ze(e.target.value)
|
|
278
322
|
})]
|
|
279
|
-
}),
|
|
280
|
-
|
|
323
|
+
}), Qe = J?.isActive ? /* @__PURE__ */ b(r, {
|
|
324
|
+
type: "button",
|
|
325
|
+
variant: "outline",
|
|
326
|
+
size: "sm",
|
|
327
|
+
className: "ttw:h-8 ttw:gap-1.5 ttw:border-amber-200 ttw:bg-amber-50 ttw:text-amber-800 ttw:hover:bg-amber-100",
|
|
328
|
+
onClick: J.onClear,
|
|
329
|
+
children: [
|
|
330
|
+
J.activeFilterLabel,
|
|
331
|
+
/* @__PURE__ */ y(Se, {
|
|
332
|
+
className: "ttw:size-3.5",
|
|
333
|
+
"aria-hidden": !0
|
|
334
|
+
}),
|
|
335
|
+
" ",
|
|
336
|
+
/* @__PURE__ */ y("span", {
|
|
337
|
+
className: "ttw:sr-only",
|
|
338
|
+
children: J.clearLabel
|
|
339
|
+
})
|
|
340
|
+
]
|
|
341
|
+
}) : null, $e = j ? /* @__PURE__ */ y(me, {
|
|
342
|
+
...j,
|
|
281
343
|
className: "ttw:px-4",
|
|
282
|
-
searchSlot:
|
|
344
|
+
searchSlot: /* @__PURE__ */ b("div", {
|
|
345
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
346
|
+
children: [Ze, Qe]
|
|
347
|
+
})
|
|
283
348
|
}) : /* @__PURE__ */ b("div", {
|
|
284
349
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
285
|
-
children:
|
|
350
|
+
children: [Ze, Qe]
|
|
286
351
|
});
|
|
287
|
-
return /* @__PURE__ */
|
|
352
|
+
return /* @__PURE__ */ b("div", {
|
|
288
353
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
289
|
-
children: [
|
|
290
|
-
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",
|
|
291
|
-
children: [
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
354
|
+
children: [q ? /* @__PURE__ */ b(e, {
|
|
355
|
+
className: "ttw:flex ttw:min-h-12 ttw:flex-wrap 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",
|
|
356
|
+
children: [
|
|
357
|
+
/* @__PURE__ */ y(ge, {
|
|
358
|
+
className: "ttw:size-5 ttw:shrink-0",
|
|
359
|
+
"aria-hidden": !0
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ y(t, {
|
|
362
|
+
className: "ttw:flex-1 ttw:font-semibold",
|
|
363
|
+
children: q
|
|
364
|
+
}),
|
|
365
|
+
J ? Z ? null : /* @__PURE__ */ y(r, {
|
|
366
|
+
type: "button",
|
|
367
|
+
variant: "outline",
|
|
368
|
+
size: "sm",
|
|
369
|
+
className: "ttw:bg-background ttw:text-foreground ttw:hover:bg-muted",
|
|
370
|
+
onClick: J.onReview,
|
|
371
|
+
children: J.reviewLabel
|
|
372
|
+
}) : null
|
|
373
|
+
]
|
|
374
|
+
}) : null, /* @__PURE__ */ b(o, {
|
|
375
|
+
value: A,
|
|
376
|
+
onValueChange: Le,
|
|
304
377
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
378
|
+
children: [/* @__PURE__ */ b("div", {
|
|
306
379
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
308
|
-
"aria-label":
|
|
309
|
-
children:
|
|
380
|
+
children: [Z ? /* @__PURE__ */ y("div", {}) : /* @__PURE__ */ y(ie, {
|
|
381
|
+
"aria-label": Y.filterTabsLabel,
|
|
382
|
+
children: k.map((e) => /* @__PURE__ */ b(ae, {
|
|
310
383
|
value: e.id,
|
|
311
384
|
className: "ttw:group/tab ttw:min-w-28 ttw:gap-2",
|
|
312
|
-
children: [e.label, e.badge ? /* @__PURE__ */
|
|
385
|
+
children: [e.label, e.badge ? /* @__PURE__ */ b(v, { children: [" ", /* @__PURE__ */ y("span", {
|
|
313
386
|
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",
|
|
314
387
|
children: e.badge
|
|
315
388
|
})] }) : null]
|
|
316
389
|
}, e.id))
|
|
317
|
-
}), /* @__PURE__ */
|
|
390
|
+
}), /* @__PURE__ */ b("div", {
|
|
318
391
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
319
|
-
children: [
|
|
392
|
+
children: [L ? /* @__PURE__ */ y(l, { children: /* @__PURE__ */ b(s, { children: [/* @__PURE__ */ y(oe, {
|
|
320
393
|
asChild: !0,
|
|
321
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ y(r, {
|
|
322
395
|
variant: "outline",
|
|
323
396
|
size: "icon",
|
|
324
|
-
"aria-label":
|
|
325
|
-
onClick:
|
|
326
|
-
children: /* @__PURE__ */
|
|
397
|
+
"aria-label": Y.settingsButton,
|
|
398
|
+
onClick: L,
|
|
399
|
+
children: /* @__PURE__ */ y(be, { className: "ttw:size-4" })
|
|
327
400
|
})
|
|
328
|
-
}), /* @__PURE__ */
|
|
329
|
-
onClick:
|
|
330
|
-
children: [/* @__PURE__ */
|
|
401
|
+
}), /* @__PURE__ */ y(c, { children: Y.settingsButton })] }) }) : null, I ? /* @__PURE__ */ b(r, {
|
|
402
|
+
onClick: I,
|
|
403
|
+
children: [/* @__PURE__ */ y(ve, { className: "ttw:size-4" }), Y.createButton]
|
|
331
404
|
}) : null]
|
|
332
405
|
})]
|
|
333
406
|
}), (() => {
|
|
334
|
-
let e =
|
|
335
|
-
title:
|
|
336
|
-
description:
|
|
337
|
-
retryLabel:
|
|
338
|
-
onRetry:
|
|
339
|
-
}) :
|
|
407
|
+
let e = T ? /* @__PURE__ */ y(ce, {
|
|
408
|
+
title: Y.errorTitle,
|
|
409
|
+
description: Y.errorDescription,
|
|
410
|
+
retryLabel: R ? Y.errorRetry : void 0,
|
|
411
|
+
onRetry: R
|
|
412
|
+
}) : Xe && I && z ? /* @__PURE__ */ y("div", {
|
|
340
413
|
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
341
|
-
children:
|
|
342
|
-
emailAddress:
|
|
343
|
-
onCopyEmail:
|
|
344
|
-
onFilesSelected:
|
|
345
|
-
accept:
|
|
346
|
-
maxFiles:
|
|
347
|
-
uploadStatus:
|
|
348
|
-
uploadErrorMessage:
|
|
349
|
-
onEnterManually:
|
|
350
|
-
labels:
|
|
351
|
-
}) : /* @__PURE__ */
|
|
352
|
-
onFilesSelected:
|
|
353
|
-
accept:
|
|
354
|
-
maxFiles:
|
|
355
|
-
uploadStatus:
|
|
356
|
-
uploadErrorMessage:
|
|
357
|
-
onEnterManually:
|
|
358
|
-
labels:
|
|
414
|
+
children: W && G ? /* @__PURE__ */ y(d, {
|
|
415
|
+
emailAddress: W,
|
|
416
|
+
onCopyEmail: G,
|
|
417
|
+
onFilesSelected: z,
|
|
418
|
+
accept: h,
|
|
419
|
+
maxFiles: B,
|
|
420
|
+
uploadStatus: H,
|
|
421
|
+
uploadErrorMessage: U,
|
|
422
|
+
onEnterManually: V ?? I,
|
|
423
|
+
labels: Y.addBill
|
|
424
|
+
}) : /* @__PURE__ */ y(d, {
|
|
425
|
+
onFilesSelected: z,
|
|
426
|
+
accept: h,
|
|
427
|
+
maxFiles: B,
|
|
428
|
+
uploadStatus: H,
|
|
429
|
+
uploadErrorMessage: U,
|
|
430
|
+
onEnterManually: V ?? I,
|
|
431
|
+
labels: Y.addBill
|
|
359
432
|
})
|
|
360
|
-
}) : /* @__PURE__ */
|
|
433
|
+
}) : /* @__PURE__ */ b("div", {
|
|
361
434
|
className: "ttw:relative",
|
|
362
|
-
onDragEnter:
|
|
363
|
-
onDragOver:
|
|
364
|
-
onDragLeave:
|
|
365
|
-
onDrop:
|
|
366
|
-
children: [/* @__PURE__ */
|
|
367
|
-
columns:
|
|
368
|
-
data:
|
|
435
|
+
onDragEnter: We,
|
|
436
|
+
onDragOver: Ge,
|
|
437
|
+
onDragLeave: Ke,
|
|
438
|
+
onDrop: qe,
|
|
439
|
+
children: [/* @__PURE__ */ y(a, {
|
|
440
|
+
columns: Ye,
|
|
441
|
+
data: C,
|
|
369
442
|
getRowId: (e) => e.rowKey,
|
|
370
443
|
animatesNewRows: !0,
|
|
371
|
-
isLoading:
|
|
372
|
-
sorting:
|
|
373
|
-
onSortingChange:
|
|
374
|
-
pageSize:
|
|
375
|
-
onPageSizeChange:
|
|
376
|
-
pageSizeOptions:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
444
|
+
isLoading: w,
|
|
445
|
+
sorting: Ae,
|
|
446
|
+
onSortingChange: je,
|
|
447
|
+
pageSize: Me,
|
|
448
|
+
onPageSizeChange: Ne,
|
|
449
|
+
pageSizeOptions: E,
|
|
450
|
+
showPagination: E.length > 1 || D || O,
|
|
451
|
+
pageInfo: Pe,
|
|
452
|
+
hasNextPage: D,
|
|
453
|
+
hasPrevPage: O,
|
|
454
|
+
onNextPage: Fe,
|
|
455
|
+
onPrevPage: Ie,
|
|
382
456
|
onRowClick: (e) => e.onOpen(),
|
|
383
|
-
rowAriaLabel: (e) =>
|
|
384
|
-
rowClassName: (e) =>
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
457
|
+
rowAriaLabel: (e) => Y.openRow(e.vendorLabel || De(e.vendorLookup, Y)),
|
|
458
|
+
rowClassName: (e) => Te[e.rowTone ?? "default"],
|
|
459
|
+
rowGroup: Ve ? (e) => e.group ? {
|
|
460
|
+
key: e.group.key,
|
|
461
|
+
nested: {
|
|
462
|
+
toggleLabel: Y.duplicateGroupToggle(e.group.headerLabel),
|
|
463
|
+
countLabel: Y.duplicateGroupBillCount(e.group.memberCount)
|
|
464
|
+
},
|
|
465
|
+
header: /* @__PURE__ */ y("span", {
|
|
466
|
+
className: "ttw:text-sm ttw:text-foreground",
|
|
467
|
+
children: e.group.headerLabel
|
|
468
|
+
})
|
|
469
|
+
} : void 0 : void 0,
|
|
470
|
+
rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ y(v, { children: e.menu.items.map((e) => {
|
|
471
|
+
let t = e.icon;
|
|
472
|
+
return /* @__PURE__ */ b(i, {
|
|
473
|
+
disabled: e.disabled,
|
|
474
|
+
onClick: e.onSelect,
|
|
475
|
+
children: [t ? /* @__PURE__ */ y(t, { className: "ttw:size-4" }) : null, e.label]
|
|
476
|
+
}, e.id);
|
|
477
|
+
}) }) : void 0,
|
|
478
|
+
filterComponent: $e,
|
|
479
|
+
children: P ? /* @__PURE__ */ y(u, {
|
|
480
|
+
title: Y.filteredEmptyTitle,
|
|
481
|
+
description: Y.filteredEmptyDescription
|
|
482
|
+
}) : F ? /* @__PURE__ */ y(u, {
|
|
483
|
+
title: F.title,
|
|
484
|
+
description: F.description
|
|
392
485
|
}) : void 0
|
|
393
|
-
}),
|
|
486
|
+
}), He ? /* @__PURE__ */ y("div", {
|
|
394
487
|
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]",
|
|
395
|
-
children: /* @__PURE__ */
|
|
488
|
+
children: /* @__PURE__ */ b("div", {
|
|
396
489
|
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",
|
|
397
|
-
children: [/* @__PURE__ */
|
|
490
|
+
children: [/* @__PURE__ */ y(xe, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
|
|
398
491
|
className: "ttw:text-sm ttw:font-medium",
|
|
399
|
-
children:
|
|
400
|
-
}), /* @__PURE__ */
|
|
492
|
+
children: Y.tableDropzoneTitle
|
|
493
|
+
}), /* @__PURE__ */ y("p", {
|
|
401
494
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
402
|
-
children:
|
|
495
|
+
children: B === void 0 ? Y.addBill.dropzone.fileTypesHint : `${Y.addBill.dropzone.fileTypesHint} · ${Y.addBill.dropzone.fileCountHint(B)}`
|
|
403
496
|
})] })]
|
|
404
497
|
})
|
|
405
498
|
}) : null]
|
|
406
499
|
});
|
|
407
|
-
return
|
|
500
|
+
return k.map((t) => /* @__PURE__ */ y(re, {
|
|
408
501
|
value: t.id,
|
|
409
|
-
children: t.id ===
|
|
502
|
+
children: t.id === A ? e : null
|
|
410
503
|
}, t.id));
|
|
411
504
|
})()]
|
|
412
505
|
})]
|
|
413
506
|
});
|
|
414
507
|
}
|
|
415
508
|
//#endregion
|
|
416
|
-
export {
|
|
509
|
+
export { C as BillsScreen, C as default, ke as DEFAULT_BILL_COLUMNS };
|