@tesouro/embedded-components-react 0.2.327 → 0.2.328
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.d.ts +59 -59
- 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 +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +119 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +50 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +45 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +42 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +25 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +49 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +91 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +20 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +52 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +67 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +46 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +80 -205
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +32 -192
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +117 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +54 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +205 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +184 -143
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +63 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +46 -100
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +146 -182
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +38 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +102 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +200 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +132 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +3 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +43 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +50 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -145
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +78 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +138 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +58 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +23 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -262
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +41 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +271 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -286
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +47 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -120
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +284 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +118 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +1 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +93 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -138
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +53 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +137 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +42 -59
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -238
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +61 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +67 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +248 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +204 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +1 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +4 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +142 -102
- 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/index7.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +0 -12
|
@@ -1,204 +1,4 @@
|
|
|
1
|
-
import { Button as e, DataTable as t, DataTableSortableHeader as n, Input as r, Tabs as i, TabsContent as a, TabsList as o, TabsTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { EmptyState as c } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
-
import { ErrorState as l } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
|
-
import "../../../shared/ui/dist/index.js";
|
|
5
|
-
import { AddBillPanel as u } from "./index7.js";
|
|
6
|
-
import "./index8.js";
|
|
7
|
-
import { BillStatusBadge as d } from "./index14.js";
|
|
8
|
-
import "./index15.js";
|
|
9
|
-
import { MissingValue as f } from "./index41.js";
|
|
10
|
-
import "./index42.js";
|
|
11
|
-
import { BILLS_SCREEN_LABELS_EN as p, BILLS_SCREEN_UPLOAD_ACCEPT as m } from "./index43.js";
|
|
12
|
-
import { useMemo as h } from "react";
|
|
13
|
-
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
14
|
-
import { ChevronRightIcon as v, PlusIcon as y, SearchIcon as b } from "lucide-react";
|
|
15
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js
|
|
16
|
-
var
|
|
17
|
-
10,
|
|
18
|
-
25,
|
|
19
|
-
50,
|
|
20
|
-
100
|
|
21
|
-
];
|
|
22
|
-
function S({ rows: S, isLoading: C, isError: w, sorting: T, onSortingChange: E, pageSize: D, onPageSizeChange: O, pageSizeOptions: k = x, pageInfo: A, hasNextPage: j, hasPrevPage: M, onNextPage: N, onPrevPage: P, filterTabs: F, selectedFilterTabId: I, onFilterTabChange: L, searchValue: R, onSearchChange: z, isFiltering: B, onCreateClick: V, onRetry: H, onFilesSelected: U, onEnterManually: W, uploadStatus: G, uploadErrorMessage: K, emailAddress: q, onCopyEmail: J, labels: Y }) {
|
|
23
|
-
let X = h(() => ({
|
|
24
|
-
...p,
|
|
25
|
-
...Y,
|
|
26
|
-
statusBadge: {
|
|
27
|
-
...p.statusBadge,
|
|
28
|
-
...Y?.statusBadge
|
|
29
|
-
},
|
|
30
|
-
addBill: {
|
|
31
|
-
...p.addBill,
|
|
32
|
-
...Y?.addBill,
|
|
33
|
-
dropzone: {
|
|
34
|
-
...p.addBill.dropzone,
|
|
35
|
-
...Y?.addBill?.dropzone
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
sortableHeader: {
|
|
39
|
-
...p.sortableHeader,
|
|
40
|
-
...Y?.sortableHeader
|
|
41
|
-
},
|
|
42
|
-
missingValue: {
|
|
43
|
-
...p.missingValue,
|
|
44
|
-
...Y?.missingValue
|
|
45
|
-
}
|
|
46
|
-
}), [Y]), Z = h(() => [
|
|
47
|
-
{
|
|
48
|
-
accessorKey: "vendorLabel",
|
|
49
|
-
enableSorting: !0,
|
|
50
|
-
header: ({ column: e }) => /* @__PURE__ */ g(n, {
|
|
51
|
-
column: e,
|
|
52
|
-
title: X.columnVendor,
|
|
53
|
-
labels: X.sortableHeader
|
|
54
|
-
}),
|
|
55
|
-
cell: ({ row: e }) => e.original.vendorLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
accessorKey: "dueDateLabel",
|
|
59
|
-
enableSorting: !0,
|
|
60
|
-
header: ({ column: e }) => /* @__PURE__ */ g(n, {
|
|
61
|
-
column: e,
|
|
62
|
-
title: X.columnDueDate,
|
|
63
|
-
labels: X.sortableHeader
|
|
64
|
-
}),
|
|
65
|
-
cell: ({ row: e }) => e.original.dueDateLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
accessorKey: "status",
|
|
69
|
-
enableSorting: !1,
|
|
70
|
-
header: X.columnStatus,
|
|
71
|
-
cell: ({ row: e }) => /* @__PURE__ */ g(d, {
|
|
72
|
-
status: e.original.status,
|
|
73
|
-
tone: e.original.statusTone,
|
|
74
|
-
labels: X.statusBadge
|
|
75
|
-
})
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
accessorKey: "amountDueLabel",
|
|
79
|
-
enableSorting: !1,
|
|
80
|
-
header: () => /* @__PURE__ */ g("div", {
|
|
81
|
-
className: "ttw:text-right",
|
|
82
|
-
children: X.columnAmountDue
|
|
83
|
-
}),
|
|
84
|
-
cell: ({ row: e }) => /* @__PURE__ */ g("div", {
|
|
85
|
-
className: "ttw:text-right",
|
|
86
|
-
children: e.original.amountDueLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
|
|
87
|
-
})
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
accessorKey: "addedOnLabel",
|
|
91
|
-
enableSorting: !0,
|
|
92
|
-
header: ({ column: e }) => /* @__PURE__ */ g(n, {
|
|
93
|
-
column: e,
|
|
94
|
-
title: X.columnAddedOn,
|
|
95
|
-
labels: X.sortableHeader
|
|
96
|
-
}),
|
|
97
|
-
cell: ({ row: e }) => e.original.addedOnLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: "actions",
|
|
101
|
-
enableSorting: !1,
|
|
102
|
-
header: () => /* @__PURE__ */ g("span", {
|
|
103
|
-
className: "ttw:sr-only",
|
|
104
|
-
children: X.columnActions
|
|
105
|
-
}),
|
|
106
|
-
cell: ({ row: t }) => /* @__PURE__ */ g("div", {
|
|
107
|
-
className: "ttw:flex ttw:justify-end",
|
|
108
|
-
children: /* @__PURE__ */ g(e, {
|
|
109
|
-
variant: "ghost",
|
|
110
|
-
size: "icon",
|
|
111
|
-
"aria-label": X.openRow(t.original.vendorLabel || X.missingValue.missing),
|
|
112
|
-
onClick: (e) => {
|
|
113
|
-
e.stopPropagation(), t.original.onOpen();
|
|
114
|
-
},
|
|
115
|
-
children: /* @__PURE__ */ g(v, { className: "ttw:size-4" })
|
|
116
|
-
})
|
|
117
|
-
})
|
|
118
|
-
}
|
|
119
|
-
], [X]), Q = !!(V && U) && !C && !w && !B && S.length === 0, $ = /* @__PURE__ */ g("div", {
|
|
120
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
121
|
-
children: /* @__PURE__ */ _("div", {
|
|
122
|
-
className: "ttw:relative ttw:w-80",
|
|
123
|
-
children: [/* @__PURE__ */ g(b, { 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__ */ g(r, {
|
|
124
|
-
className: "ttw:pl-9",
|
|
125
|
-
type: "search",
|
|
126
|
-
"aria-label": X.searchLabel,
|
|
127
|
-
placeholder: X.searchPlaceholder,
|
|
128
|
-
value: R,
|
|
129
|
-
onChange: (e) => z(e.target.value)
|
|
130
|
-
})]
|
|
131
|
-
})
|
|
132
|
-
});
|
|
133
|
-
return /* @__PURE__ */ _(i, {
|
|
134
|
-
value: I,
|
|
135
|
-
onValueChange: L,
|
|
136
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
137
|
-
children: [/* @__PURE__ */ _("div", {
|
|
138
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
139
|
-
children: [/* @__PURE__ */ g(o, {
|
|
140
|
-
"aria-label": X.filterTabsLabel,
|
|
141
|
-
children: F.map((e) => /* @__PURE__ */ _(s, {
|
|
142
|
-
value: e.id,
|
|
143
|
-
className: "ttw:min-w-28",
|
|
144
|
-
children: [e.icon, e.label]
|
|
145
|
-
}, e.id))
|
|
146
|
-
}), V && !Q ? /* @__PURE__ */ _(e, {
|
|
147
|
-
onClick: V,
|
|
148
|
-
children: [/* @__PURE__ */ g(y, { className: "ttw:size-4" }), X.createButton]
|
|
149
|
-
}) : null]
|
|
150
|
-
}), (() => {
|
|
151
|
-
let e = w ? /* @__PURE__ */ g(l, {
|
|
152
|
-
title: X.errorTitle,
|
|
153
|
-
description: X.errorDescription,
|
|
154
|
-
retryLabel: H ? X.errorRetry : void 0,
|
|
155
|
-
onRetry: H
|
|
156
|
-
}) : Q && V && U ? /* @__PURE__ */ g("div", {
|
|
157
|
-
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
158
|
-
children: q && J ? /* @__PURE__ */ g(u, {
|
|
159
|
-
emailAddress: q,
|
|
160
|
-
onCopyEmail: J,
|
|
161
|
-
onFilesSelected: U,
|
|
162
|
-
accept: m,
|
|
163
|
-
uploadStatus: G,
|
|
164
|
-
uploadErrorMessage: K,
|
|
165
|
-
onEnterManually: W ?? V,
|
|
166
|
-
labels: X.addBill
|
|
167
|
-
}) : /* @__PURE__ */ g(u, {
|
|
168
|
-
onFilesSelected: U,
|
|
169
|
-
accept: m,
|
|
170
|
-
uploadStatus: G,
|
|
171
|
-
uploadErrorMessage: K,
|
|
172
|
-
onEnterManually: W ?? V,
|
|
173
|
-
labels: X.addBill
|
|
174
|
-
})
|
|
175
|
-
}) : /* @__PURE__ */ g(t, {
|
|
176
|
-
columns: Z,
|
|
177
|
-
data: S,
|
|
178
|
-
isLoading: C,
|
|
179
|
-
sorting: T,
|
|
180
|
-
onSortingChange: E,
|
|
181
|
-
pageSize: D,
|
|
182
|
-
onPageSizeChange: O,
|
|
183
|
-
pageSizeOptions: k,
|
|
184
|
-
pageInfo: A,
|
|
185
|
-
hasNextPage: j,
|
|
186
|
-
hasPrevPage: M,
|
|
187
|
-
onNextPage: N,
|
|
188
|
-
onPrevPage: P,
|
|
189
|
-
onRowClick: (e) => e.onOpen(),
|
|
190
|
-
filterComponent: $,
|
|
191
|
-
children: B ? /* @__PURE__ */ g(c, {
|
|
192
|
-
title: X.filteredEmptyTitle,
|
|
193
|
-
description: X.filteredEmptyDescription
|
|
194
|
-
}) : void 0
|
|
195
|
-
});
|
|
196
|
-
return F.map((t) => /* @__PURE__ */ g(a, {
|
|
197
|
-
value: t.id,
|
|
198
|
-
children: t.id === I ? e : null
|
|
199
|
-
}, t.id));
|
|
200
|
-
})()]
|
|
201
|
-
});
|
|
202
|
-
}
|
|
2
|
+
var e = { cancelButton: "Back" };
|
|
203
3
|
//#endregion
|
|
204
|
-
export {
|
|
4
|
+
export { e as BILL_DECISION_DIALOG_LABELS_EN };
|
|
@@ -1,10 +1,63 @@
|
|
|
1
|
+
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, Label as s, Textarea as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_DECISION_DIALOG_LABELS_EN as l } from "./index45.js";
|
|
3
|
+
import { useEffect as u, useState as d } from "react";
|
|
4
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
1
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
function m({ open: m, copy: h, onConfirm: g, onCancel: _, isPending: v, labels: y, testId: b, confirmTestId: x, reasonTestId: S, reasonFieldId: C = "bill-decision-reason" }) {
|
|
7
|
+
let w = {
|
|
8
|
+
...l,
|
|
9
|
+
...y
|
|
10
|
+
}, [T, E] = d("");
|
|
11
|
+
return u(() => {
|
|
12
|
+
m || E("");
|
|
13
|
+
}, [m]), h ? /* @__PURE__ */ f(e, {
|
|
14
|
+
open: m,
|
|
15
|
+
onOpenChange: (e) => {
|
|
16
|
+
e || _();
|
|
17
|
+
},
|
|
18
|
+
children: /* @__PURE__ */ p(t, {
|
|
19
|
+
"data-testid": b,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ p(i, { children: [/* @__PURE__ */ f(a, { children: h.title }), /* @__PURE__ */ f(n, { children: h.description })] }),
|
|
22
|
+
h.warning ? /* @__PURE__ */ f("p", {
|
|
23
|
+
className: "ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:p-3 ttw:text-sm ttw:text-foreground",
|
|
24
|
+
children: h.warning
|
|
25
|
+
}) : null,
|
|
26
|
+
h.reason ? /* @__PURE__ */ p("div", {
|
|
27
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
28
|
+
children: [/* @__PURE__ */ p(s, {
|
|
29
|
+
htmlFor: C,
|
|
30
|
+
children: [h.reason.label, /* @__PURE__ */ f("span", {
|
|
31
|
+
className: "ttw:ml-1 ttw:text-muted-foreground",
|
|
32
|
+
children: h.reason.optionalHint
|
|
33
|
+
})]
|
|
34
|
+
}), /* @__PURE__ */ f(c, {
|
|
35
|
+
id: C,
|
|
36
|
+
value: T,
|
|
37
|
+
placeholder: h.reason.placeholder,
|
|
38
|
+
onChange: (e) => E(e.target.value),
|
|
39
|
+
disabled: v,
|
|
40
|
+
"data-testid": S
|
|
41
|
+
})]
|
|
42
|
+
}) : null,
|
|
43
|
+
/* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(o, {
|
|
44
|
+
type: "button",
|
|
45
|
+
variant: "outline",
|
|
46
|
+
onClick: _,
|
|
47
|
+
disabled: v,
|
|
48
|
+
children: w.cancelButton
|
|
49
|
+
}), /* @__PURE__ */ f(o, {
|
|
50
|
+
type: "button",
|
|
51
|
+
variant: "default",
|
|
52
|
+
loading: v,
|
|
53
|
+
disabled: v,
|
|
54
|
+
onClick: () => g(h.reason ? T.trim() : void 0),
|
|
55
|
+
"data-testid": x,
|
|
56
|
+
children: h.confirmButton
|
|
57
|
+
})] })
|
|
58
|
+
]
|
|
59
|
+
})
|
|
60
|
+
}) : null;
|
|
61
|
+
}
|
|
9
62
|
//#endregion
|
|
10
|
-
export {
|
|
63
|
+
export { m as BillDecisionDialog, m as default };
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
uploading: "ttw:text-muted-foreground",
|
|
4
|
-
ready: "ttw:text-emerald-600",
|
|
5
|
-
failed: "ttw:text-destructive"
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as UPLOAD_ITEM_ICON_TONE };
|
|
1
|
+
import "./index45.js";
|
|
2
|
+
import "./index46.js";
|
|
@@ -1,93 +1,4 @@
|
|
|
1
|
-
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index46.js";
|
|
3
|
-
import { UPLOAD_ITEM_ICON_TONE as n } from "./index47.js";
|
|
4
|
-
import { useId as r } from "react";
|
|
5
|
-
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
-
import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, Loader2 as d, X as f, XCircle as p } from "lucide-react";
|
|
7
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js
|
|
8
|
-
|
|
9
|
-
let r = e("ttw:size-4", n[t]);
|
|
10
|
-
return t === "uploading" ? /* @__PURE__ */ a(d, {
|
|
11
|
-
"aria-hidden": !0,
|
|
12
|
-
className: e(r, "ttw:animate-spin")
|
|
13
|
-
}) : a(t === "ready" ? s : p, {
|
|
14
|
-
"aria-hidden": !0,
|
|
15
|
-
className: r
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function h({ item: t, labels: n }) {
|
|
19
|
-
let s = r(), c = /* @__PURE__ */ o(i, { children: [
|
|
20
|
-
/* @__PURE__ */ a(m, { status: t.status }),
|
|
21
|
-
/* @__PURE__ */ a("span", {
|
|
22
|
-
id: s,
|
|
23
|
-
className: "ttw:sr-only",
|
|
24
|
-
children: n.statusLabel(t.status)
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ a("span", {
|
|
27
|
-
className: "ttw:flex-1 ttw:truncate ttw:text-left ttw:text-sm ttw:text-foreground",
|
|
28
|
-
children: t.fileName
|
|
29
|
-
}),
|
|
30
|
-
t.onOpen ? /* @__PURE__ */ a(l, {
|
|
31
|
-
"aria-hidden": !0,
|
|
32
|
-
className: "ttw:size-4"
|
|
33
|
-
}) : null
|
|
34
|
-
] }), u = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
|
|
35
|
-
return t.onOpen ? /* @__PURE__ */ a("button", {
|
|
36
|
-
type: "button",
|
|
37
|
-
onClick: t.onOpen,
|
|
38
|
-
"aria-describedby": s,
|
|
39
|
-
"aria-label": n.openItem(t.fileName),
|
|
40
|
-
className: e(u, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
|
|
41
|
-
children: c
|
|
42
|
-
}) : /* @__PURE__ */ a("div", {
|
|
43
|
-
"aria-describedby": s,
|
|
44
|
-
className: u,
|
|
45
|
-
children: c
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function g({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
|
|
49
|
-
let p = {
|
|
50
|
-
...t,
|
|
51
|
-
...d
|
|
52
|
-
};
|
|
53
|
-
return /* @__PURE__ */ o("div", {
|
|
54
|
-
className: "ttw:fixed ttw:right-4 ttw:bottom-4 ttw:z-50 ttw:w-96 ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
55
|
-
"data-testid": l,
|
|
56
|
-
children: [/* @__PURE__ */ o("div", {
|
|
57
|
-
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:bg-muted/40 ttw:px-4 ttw:py-3",
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ a("span", {
|
|
60
|
-
"aria-live": "polite",
|
|
61
|
-
className: "ttw:flex-1 ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
62
|
-
children: n
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ a("button", {
|
|
65
|
-
type: "button",
|
|
66
|
-
onClick: i,
|
|
67
|
-
"aria-label": r ? p.expand : p.collapse,
|
|
68
|
-
"aria-expanded": !r,
|
|
69
|
-
className: "ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
70
|
-
children: a(r ? u : c, { className: "ttw:size-4" })
|
|
71
|
-
}),
|
|
72
|
-
/* @__PURE__ */ a("button", {
|
|
73
|
-
type: "button",
|
|
74
|
-
onClick: s,
|
|
75
|
-
"aria-label": p.close,
|
|
76
|
-
className: "ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
77
|
-
children: /* @__PURE__ */ a(f, { className: "ttw:size-4" })
|
|
78
|
-
})
|
|
79
|
-
]
|
|
80
|
-
}), r ? null : /* @__PURE__ */ a("div", {
|
|
81
|
-
className: "ttw:max-h-96 ttw:overflow-y-auto",
|
|
82
|
-
children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
|
|
83
|
-
className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
|
|
84
|
-
children: e.caption
|
|
85
|
-
}) : null, e.items.map((e) => /* @__PURE__ */ a(h, {
|
|
86
|
-
item: e,
|
|
87
|
-
labels: p
|
|
88
|
-
}, e.id))] }, e.id))
|
|
89
|
-
})]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
2
|
+
var e = { missing: "Missing" };
|
|
92
3
|
//#endregion
|
|
93
|
-
export {
|
|
4
|
+
export { e as MISSING_VALUE_LABELS_EN };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MISSING_VALUE_LABELS_EN as t } from "./index48.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js
|
|
5
|
+
function r({ labels: r, className: i }) {
|
|
6
|
+
let a = {
|
|
7
|
+
...t,
|
|
8
|
+
...r
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ n("span", {
|
|
11
|
+
className: e("ttw:text-amber-700", i),
|
|
12
|
+
children: a.missing
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as MissingValue, r as default };
|
|
@@ -1,7 +1,70 @@
|
|
|
1
|
+
import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
|
|
3
|
+
import "./index8.js";
|
|
4
|
+
import { APPROVAL_POLICY_CARD_LABELS_EN as n } from "./index12.js";
|
|
5
|
+
import "./index14.js";
|
|
6
|
+
import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index18.js";
|
|
7
|
+
import "./index20.js";
|
|
8
|
+
import { MISSING_VALUE_LABELS_EN as i } from "./index48.js";
|
|
9
|
+
import "./index50.js";
|
|
1
10
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
11
|
+
var a = {
|
|
12
|
+
loadingTitle: "Loading bill…",
|
|
13
|
+
hiddenDescription: "Bill details",
|
|
14
|
+
errorTitle: "Couldn't load this bill",
|
|
15
|
+
errorDescription: "Something went wrong. Try again.",
|
|
16
|
+
amountDueHeading: "Amount due",
|
|
17
|
+
invoiceDateLabel: "Invoice date",
|
|
18
|
+
dueDateLabel: "Due date",
|
|
19
|
+
payToHeading: "Pay to",
|
|
20
|
+
invoiceDetailsHeading: "Invoice details",
|
|
21
|
+
lineItemsHeading: "Line items",
|
|
22
|
+
lineItemsQuantityHeading: "Qty/Price",
|
|
23
|
+
lineItemsAmountHeading: "Amount",
|
|
24
|
+
payButton: "Pay",
|
|
25
|
+
markAsPaidButton: "Mark as paid",
|
|
26
|
+
rejectButton: "Reject",
|
|
27
|
+
approveButton: "Approve",
|
|
28
|
+
cancelButton: "Cancel bill",
|
|
29
|
+
reopenButton: "Reopen bill",
|
|
30
|
+
forceApproveButton: "Approve without policy",
|
|
31
|
+
forceRejectButton: "Reject without policy",
|
|
32
|
+
overflowMenuTrigger: "Bill actions",
|
|
33
|
+
expandButton: "Open full screen",
|
|
34
|
+
closeButton: "Close",
|
|
35
|
+
statusBadge: r,
|
|
36
|
+
approvalPolicy: n
|
|
37
|
+
}, o = ".pdf,.png,.jpg,.jpeg,.doc,.docx", s = {
|
|
38
|
+
...t,
|
|
39
|
+
dropzone: {
|
|
40
|
+
...t.dropzone,
|
|
41
|
+
fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
|
|
42
|
+
}
|
|
43
|
+
}, c = {
|
|
44
|
+
createButton: "Add bill",
|
|
45
|
+
columnVendor: "Vendor",
|
|
46
|
+
columnDueDate: "Due date",
|
|
47
|
+
columnAmountDue: "Amount due",
|
|
48
|
+
columnStatus: "Status",
|
|
49
|
+
columnAddedOn: "Added on",
|
|
50
|
+
columnActions: "Actions",
|
|
51
|
+
openRow: (e) => `View bill — ${e}`,
|
|
52
|
+
searchPlaceholder: "Search by vendor name",
|
|
53
|
+
searchLabel: "Search bills by vendor name",
|
|
54
|
+
filterTabsLabel: "Filter bills by status",
|
|
55
|
+
filteredEmptyTitle: "No bills match",
|
|
56
|
+
filteredEmptyDescription: "Try a different search or status filter.",
|
|
57
|
+
errorTitle: "Couldn't load bills",
|
|
58
|
+
errorDescription: "Something went wrong. Try again.",
|
|
59
|
+
errorRetry: "Retry",
|
|
60
|
+
statusBadge: r,
|
|
61
|
+
addBill: s,
|
|
62
|
+
sortableHeader: {
|
|
63
|
+
sortedAscending: e.sortedAscending,
|
|
64
|
+
sortedDescending: e.sortedDescending,
|
|
65
|
+
notSorted: e.notSorted
|
|
66
|
+
},
|
|
67
|
+
missingValue: i
|
|
5
68
|
};
|
|
6
69
|
//#endregion
|
|
7
|
-
export {
|
|
70
|
+
export { c as BILLS_SCREEN_LABELS_EN, o as BILLS_SCREEN_UPLOAD_ACCEPT, a as BILL_DETAILS_SHEET_LABELS_EN };
|