@tesouro/embedded-components-react 0.4.20 → 0.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
- 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 +3 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +135 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +47 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +119 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +33 -177
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +186 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +22 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +223 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +202 -103
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +121 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +47 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +198 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +30 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +240 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +19 -383
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +416 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +35 -189
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +214 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +112 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +124 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +239 -101
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +107 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +209 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -97
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
|
@@ -1,201 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useMemo as ne } from "react";
|
|
5
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
6
|
-
import { ListFilterIcon as h } from "lucide-react";
|
|
1
|
+
import { BILL_REJECTED_BANNER_LABELS_EN as e } from "./index68.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { AlertTriangleIcon as r } from "lucide-react";
|
|
7
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
vendor: "ttw:w-64",
|
|
13
|
-
attachment: "ttw:w-56"
|
|
14
|
-
}, _ = {
|
|
15
|
-
[f.Vendor]: "vendor",
|
|
16
|
-
[f.IssueDate]: "date",
|
|
17
|
-
[f.DueDate]: "date",
|
|
18
|
-
[f.Status]: "status",
|
|
19
|
-
[f.TotalAmount]: "amount",
|
|
20
|
-
[f.AddedOn]: "date",
|
|
21
|
-
[f.Attachment]: "attachment"
|
|
22
|
-
}, v = [
|
|
23
|
-
f.IssueDate,
|
|
24
|
-
f.DueDate,
|
|
25
|
-
f.AddedOn
|
|
26
|
-
];
|
|
27
|
-
function y({ fields: f, activeFilterCount: y, chips: b, onRemoveChip: x, onClearAll: S, dateField: C, onDateFieldChange: w, datePresets: T, selectedDatePreset: E, dateFrom: D, dateTo: O, onDateRangeChange: k, onDatePresetChange: A, statusOptions: j, selectedStatuses: M, onStatusChange: N, amountMode: P, onAmountModeChange: F, amountMin: I, amountMax: L, onAmountMinChange: re, onAmountMaxChange: R, vendorOptions: z, selectedVendors: B, onVendorChange: V, vendorSearchValue: H, onVendorSearchChange: U, isVendorLoading: W, isVendorError: G, hasAttachment: K, onHasAttachmentChange: q, searchSlot: J, testIds: Y, labels: X, className: ie }) {
|
|
28
|
-
let Z = ne(() => ({
|
|
29
|
-
...d,
|
|
30
|
-
...X,
|
|
31
|
-
fields: {
|
|
32
|
-
...d.fields,
|
|
33
|
-
...X?.fields
|
|
34
|
-
},
|
|
35
|
-
filterMenuButton: {
|
|
36
|
-
...d.filterMenuButton,
|
|
37
|
-
...X?.filterMenuButton
|
|
38
|
-
},
|
|
39
|
-
filterTag: {
|
|
40
|
-
...d.filterTag,
|
|
41
|
-
...X?.filterTag
|
|
42
|
-
},
|
|
43
|
-
amountFilter: {
|
|
44
|
-
...d.amountFilter,
|
|
45
|
-
...X?.amountFilter
|
|
46
|
-
},
|
|
47
|
-
dateRangePicker: {
|
|
48
|
-
...d.dateRangePicker,
|
|
49
|
-
...X?.dateRangePicker
|
|
50
|
-
}
|
|
51
|
-
}), [X]), Q = u(), $ = Q.activePanelId, ae = Q.isMenuOpen || !!$, oe = ($ && g[$]) ?? "ttw:w-52", se = (e) => {
|
|
52
|
-
$ && e.preventDefault(), Q.toggleMenu();
|
|
53
|
-
}, ce = (e) => {
|
|
54
|
-
e || (Q.closeMenu(), Q.closePanel());
|
|
55
|
-
}, le = (e) => {
|
|
56
|
-
v.includes(e) && w(e), Q.openPanel(_[e]);
|
|
57
|
-
}, ue = K === void 0 ? "any" : K ? "has" : "none", de = (e) => {
|
|
58
|
-
q(e === "any" ? void 0 : e === "has");
|
|
5
|
+
function i({ actorLabel: i, message: a, labels: o }) {
|
|
6
|
+
let s = {
|
|
7
|
+
...e,
|
|
8
|
+
...o
|
|
59
9
|
};
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
10
|
+
return /* @__PURE__ */ n("div", {
|
|
11
|
+
role: "alert",
|
|
12
|
+
className: "ttw:flex ttw:gap-2 ttw:rounded-md ttw:border ttw:border-destructive/20 ttw:bg-destructive/5 ttw:p-3",
|
|
13
|
+
children: [/* @__PURE__ */ t(r, {
|
|
14
|
+
"aria-hidden": !0,
|
|
15
|
+
className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-destructive"
|
|
16
|
+
}), /* @__PURE__ */ n("div", {
|
|
17
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ t("p", {
|
|
20
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
|
|
21
|
+
children: s.title
|
|
22
|
+
}),
|
|
23
|
+
a ? /* @__PURE__ */ t("p", {
|
|
24
|
+
className: "ttw:text-sm ttw:text-foreground",
|
|
25
|
+
children: a
|
|
26
|
+
}) : null,
|
|
27
|
+
/* @__PURE__ */ t("p", {
|
|
28
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
29
|
+
children: i
|
|
74
30
|
})
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
className: `ttw:p-0 ${oe}`,
|
|
78
|
-
children: [
|
|
79
|
-
Q.isMenuOpen ? /* @__PURE__ */ p("div", {
|
|
80
|
-
className: "ttw:p-1",
|
|
81
|
-
role: "menu",
|
|
82
|
-
"aria-label": Z.fieldMenuLabel,
|
|
83
|
-
children: f.map((e) => /* @__PURE__ */ m("button", {
|
|
84
|
-
type: "button",
|
|
85
|
-
role: "menuitem",
|
|
86
|
-
className: "ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-md ttw:px-2 ttw:py-1.5 ttw:text-xs ttw:font-medium ttw:transition-colors ttw:hover:bg-accent",
|
|
87
|
-
onClick: () => le(e),
|
|
88
|
-
children: [/* @__PURE__ */ p(h, {
|
|
89
|
-
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
|
|
90
|
-
"aria-hidden": !0
|
|
91
|
-
}), Z.fields[e]]
|
|
92
|
-
}, e))
|
|
93
|
-
}) : null,
|
|
94
|
-
$ === "date" ? /* @__PURE__ */ p(t, {
|
|
95
|
-
from: D,
|
|
96
|
-
to: O,
|
|
97
|
-
onRangeChange: k,
|
|
98
|
-
selectedPreset: E,
|
|
99
|
-
onPresetChange: A,
|
|
100
|
-
presets: [...T],
|
|
101
|
-
labels: {
|
|
102
|
-
...Z.dateRangePicker,
|
|
103
|
-
fieldLabel: Z.fields[C]
|
|
104
|
-
}
|
|
105
|
-
}) : null,
|
|
106
|
-
$ === "status" ? /* @__PURE__ */ p(i, {
|
|
107
|
-
options: [...j],
|
|
108
|
-
selectedValues: [...M],
|
|
109
|
-
onSelectionChange: N
|
|
110
|
-
}) : null,
|
|
111
|
-
$ === "amount" ? /* @__PURE__ */ p(e, {
|
|
112
|
-
mode: P,
|
|
113
|
-
onModeChange: F,
|
|
114
|
-
min: I,
|
|
115
|
-
max: L,
|
|
116
|
-
onMinChange: re,
|
|
117
|
-
onMaxChange: R,
|
|
118
|
-
showFlowDirection: !1,
|
|
119
|
-
labels: {
|
|
120
|
-
...Z.amountFilter,
|
|
121
|
-
min: Z.amountMin,
|
|
122
|
-
max: Z.amountMax
|
|
123
|
-
}
|
|
124
|
-
}) : null,
|
|
125
|
-
$ === "vendor" ? /* @__PURE__ */ m("div", {
|
|
126
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-3",
|
|
127
|
-
children: [/* @__PURE__ */ p(te, {
|
|
128
|
-
type: "search",
|
|
129
|
-
className: "ttw:h-8 ttw:text-xs",
|
|
130
|
-
"aria-label": Z.vendorSearchLabel,
|
|
131
|
-
placeholder: Z.vendorSearchPlaceholder,
|
|
132
|
-
value: H,
|
|
133
|
-
onChange: (e) => U(e.target.value)
|
|
134
|
-
}), W ? /* @__PURE__ */ p("p", {
|
|
135
|
-
className: "ttw:px-1 ttw:text-xs ttw:text-muted-foreground",
|
|
136
|
-
children: Z.vendorLoading
|
|
137
|
-
}) : G ? /* @__PURE__ */ p("p", {
|
|
138
|
-
className: "ttw:px-1 ttw:text-xs ttw:text-destructive",
|
|
139
|
-
children: Z.vendorError
|
|
140
|
-
}) : z.length === 0 ? /* @__PURE__ */ p("p", {
|
|
141
|
-
className: "ttw:px-1 ttw:text-xs ttw:text-muted-foreground",
|
|
142
|
-
children: Z.vendorEmpty
|
|
143
|
-
}) : /* @__PURE__ */ p(i, {
|
|
144
|
-
options: [...z],
|
|
145
|
-
selectedValues: [...B],
|
|
146
|
-
onSelectionChange: V
|
|
147
|
-
})]
|
|
148
|
-
}) : null,
|
|
149
|
-
$ === "attachment" ? /* @__PURE__ */ p("div", {
|
|
150
|
-
className: "ttw:p-3",
|
|
151
|
-
children: /* @__PURE__ */ p(c, {
|
|
152
|
-
value: ue,
|
|
153
|
-
onValueChange: de,
|
|
154
|
-
"aria-label": Z.attachmentLabel,
|
|
155
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
156
|
-
children: [
|
|
157
|
-
{
|
|
158
|
-
value: "any",
|
|
159
|
-
label: Z.attachmentAny
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
value: "has",
|
|
163
|
-
label: Z.attachmentHas
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
value: "none",
|
|
167
|
-
label: Z.attachmentNone
|
|
168
|
-
}
|
|
169
|
-
].map(({ value: e, label: t }) => /* @__PURE__ */ m("label", {
|
|
170
|
-
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
171
|
-
children: [/* @__PURE__ */ p(l, { value: e }), /* @__PURE__ */ p("span", {
|
|
172
|
-
className: "ttw:text-xs ttw:font-medium",
|
|
173
|
-
children: t
|
|
174
|
-
})]
|
|
175
|
-
}, e))
|
|
176
|
-
})
|
|
177
|
-
}) : null
|
|
178
|
-
]
|
|
179
|
-
})]
|
|
180
|
-
}),
|
|
181
|
-
activeChipsSlot: /* @__PURE__ */ m("span", {
|
|
182
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
183
|
-
"data-testid": Y?.chips,
|
|
184
|
-
children: [b.map((e) => /* @__PURE__ */ p(ee, {
|
|
185
|
-
label: e.label,
|
|
186
|
-
labels: Z.filterTag,
|
|
187
|
-
onDismiss: () => x(e.key)
|
|
188
|
-
}, e.key)), b.length > 0 ? /* @__PURE__ */ p("button", {
|
|
189
|
-
type: "button",
|
|
190
|
-
className: "ttw:cursor-pointer ttw:whitespace-nowrap ttw:text-xs ttw:text-muted-foreground ttw:transition-colors ttw:hover:text-foreground",
|
|
191
|
-
onClick: S,
|
|
192
|
-
children: Z.clearAll
|
|
193
|
-
}) : null]
|
|
194
|
-
})
|
|
31
|
+
]
|
|
32
|
+
})]
|
|
195
33
|
});
|
|
196
34
|
}
|
|
197
|
-
function b(e) {
|
|
198
|
-
return /* @__PURE__ */ p(y, { ...e }, e.fields.join("|"));
|
|
199
|
-
}
|
|
200
35
|
//#endregion
|
|
201
|
-
export {
|
|
36
|
+
export { i as BillRejectedBanner, i as default };
|
|
@@ -1,17 +1,39 @@
|
|
|
1
|
+
import { AMOUNT_FILTER_LABELS_EN as e, DATE_RANGE_PICKER_LABELS_EN as t, FILTER_MENU_BUTTON_LABELS_EN as n, FILTER_TAG_LABELS_EN as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
var i = {
|
|
4
|
+
fields: {
|
|
5
|
+
vendor: "Vendor",
|
|
6
|
+
issueDate: "Issue date",
|
|
7
|
+
dueDate: "Due date",
|
|
8
|
+
status: "Status",
|
|
9
|
+
totalAmount: "Total amount",
|
|
10
|
+
addedOn: "Added on",
|
|
11
|
+
attachment: "Attachment"
|
|
12
|
+
},
|
|
13
|
+
fieldMenuLabel: "Filter bills by",
|
|
14
|
+
amountMin: "No less than",
|
|
15
|
+
amountMax: "No more than",
|
|
16
|
+
vendorSearchPlaceholder: "Search vendors",
|
|
17
|
+
vendorSearchLabel: "Search vendors",
|
|
18
|
+
vendorEmpty: "No vendors match",
|
|
19
|
+
vendorLoading: "Loading vendors",
|
|
20
|
+
vendorError: "Couldn't load vendors",
|
|
21
|
+
attachmentAny: "Any",
|
|
22
|
+
attachmentHas: "Has attachment",
|
|
23
|
+
attachmentNone: "No attachment",
|
|
24
|
+
attachmentLabel: "Filter by attachment",
|
|
25
|
+
clearAll: "Clear all",
|
|
26
|
+
filterMenuButton: n,
|
|
27
|
+
filterTag: r,
|
|
28
|
+
amountFilter: {
|
|
29
|
+
modeAny: e.modeAny,
|
|
30
|
+
modeExact: e.modeExact,
|
|
31
|
+
modeRange: e.modeRange,
|
|
32
|
+
flowAny: e.flowAny,
|
|
33
|
+
flowIn: e.flowIn,
|
|
34
|
+
flowOut: e.flowOut
|
|
35
|
+
},
|
|
36
|
+
dateRangePicker: { presetPlaceholder: t.presetPlaceholder }
|
|
15
37
|
};
|
|
16
38
|
//#endregion
|
|
17
|
-
export {
|
|
39
|
+
export { i as BILLS_FILTER_BAR_LABELS_EN };
|
|
@@ -1,347 +1,12 @@
|
|
|
1
|
-
import { Alert as e, AlertTitle as t, Button as n, DataTable as r, DataTableSortableHeader as ee, Input as i, Tabs as te, TabsContent as a, TabsList as o, TabsTrigger as s, Tooltip as ne, TooltipContent as re, TooltipProvider as ie, TooltipTrigger as ae } 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 oe } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
|
-
import "../../../shared/ui/dist/index.js";
|
|
5
|
-
import { AddBillPanel as l } from "./index7.js";
|
|
6
|
-
import "./index8.js";
|
|
7
|
-
import { BillStatusBadge as se } from "./index18.js";
|
|
8
|
-
import "./index19.js";
|
|
9
|
-
import { DueDateValue as ce } from "./index21.js";
|
|
10
|
-
import "./index22.js";
|
|
11
|
-
import { MissingValue as u } from "./index58.js";
|
|
12
|
-
import "./index59.js";
|
|
13
|
-
import { BILLS_SCREEN_LABELS_EN as d, BILLS_SCREEN_UPLOAD_ACCEPT as f } from "./index60.js";
|
|
14
|
-
import { BillDuplicateBadge as le } from "./index62.js";
|
|
15
|
-
import "./index63.js";
|
|
16
|
-
import { BillsFilterBar as ue } from "./index69.js";
|
|
17
|
-
import "./index70.js";
|
|
18
|
-
import { BillColumn as p } from "./index71.js";
|
|
19
|
-
import { useMemo as m } from "react";
|
|
20
|
-
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
21
|
-
import { ChevronRightIcon as de, CopyX as fe, PaperclipIcon as pe, PlusIcon as me, SearchIcon as he } from "lucide-react";
|
|
22
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
p.DueDate,
|
|
33
|
-
p.ScheduledDate,
|
|
34
|
-
p.PaidDate,
|
|
35
|
-
p.Status,
|
|
36
|
-
p.AmountDue,
|
|
37
|
-
p.AmountScheduled,
|
|
38
|
-
p.AmountPaid,
|
|
39
|
-
p.TotalAmount,
|
|
40
|
-
p.AddedOn
|
|
41
|
-
], v = [
|
|
42
|
-
p.Vendor,
|
|
43
|
-
p.Attachment,
|
|
44
|
-
p.DueDate,
|
|
45
|
-
p.Status,
|
|
46
|
-
p.AmountDue,
|
|
47
|
-
p.AddedOn
|
|
48
|
-
];
|
|
49
|
-
function y({ rows: y, isLoading: b, isError: x, sorting: ye, onSortingChange: be, pageSize: S, onPageSizeChange: C, pageSizeOptions: w = ge, pageInfo: T, hasNextPage: E, hasPrevPage: D, onNextPage: O, onPrevPage: k, filterTabs: A, selectedFilterTabId: j, onFilterTabChange: M, searchValue: N, onSearchChange: xe, filters: P, visibleColumns: F = v, cellTestIds: I, isSearchActive: L, showAddPanelWhenEmpty: Se, emptyState: R, onCreateClick: z, onRetry: B, onFilesSelected: V, maxFiles: H, onEnterManually: U, uploadStatus: W, uploadErrorMessage: G, emailAddress: K, onCopyEmail: q, labels: J, duplicateWarning: Y, onReviewDuplicates: X }) {
|
|
50
|
-
let Z = m(() => ({
|
|
51
|
-
...d,
|
|
52
|
-
...J,
|
|
53
|
-
statusBadge: {
|
|
54
|
-
...d.statusBadge,
|
|
55
|
-
...J?.statusBadge
|
|
56
|
-
},
|
|
57
|
-
addBill: {
|
|
58
|
-
...d.addBill,
|
|
59
|
-
...J?.addBill,
|
|
60
|
-
dropzone: {
|
|
61
|
-
...d.addBill.dropzone,
|
|
62
|
-
...J?.addBill?.dropzone
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
sortableHeader: {
|
|
66
|
-
...d.sortableHeader,
|
|
67
|
-
...J?.sortableHeader
|
|
68
|
-
},
|
|
69
|
-
missingValue: {
|
|
70
|
-
...d.missingValue,
|
|
71
|
-
...J?.missingValue
|
|
72
|
-
},
|
|
73
|
-
dueDate: {
|
|
74
|
-
...d.dueDate,
|
|
75
|
-
...J?.dueDate
|
|
76
|
-
}
|
|
77
|
-
}), [J]), Q = m(() => {
|
|
78
|
-
let e = (e) => function({ column: t }) {
|
|
79
|
-
return /* @__PURE__ */ h(ee, {
|
|
80
|
-
column: t,
|
|
81
|
-
title: e,
|
|
82
|
-
labels: Z.sortableHeader
|
|
83
|
-
});
|
|
84
|
-
}, t = (e, t) => function({ row: n }) {
|
|
85
|
-
return /* @__PURE__ */ h("span", {
|
|
86
|
-
"data-testid": I?.[t],
|
|
87
|
-
children: n.original[e] || /* @__PURE__ */ h(u, { labels: Z.missingValue })
|
|
88
|
-
});
|
|
89
|
-
}, n = function({ row: e }) {
|
|
90
|
-
return /* @__PURE__ */ h("span", {
|
|
91
|
-
"data-testid": I?.[p.DueDate],
|
|
92
|
-
children: /* @__PURE__ */ h(ce, {
|
|
93
|
-
value: e.original.dueDateLabel || /* @__PURE__ */ h(u, { labels: Z.missingValue }),
|
|
94
|
-
tone: e.original.dueDateTone,
|
|
95
|
-
labels: Z.dueDate
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
}, r = (e, t) => function({ row: n }) {
|
|
99
|
-
return /* @__PURE__ */ h("div", {
|
|
100
|
-
className: "ttw:text-right",
|
|
101
|
-
"data-testid": I?.[t],
|
|
102
|
-
children: n.original[e] || /* @__PURE__ */ h(u, { labels: Z.missingValue })
|
|
103
|
-
});
|
|
104
|
-
}, i = (e) => function() {
|
|
105
|
-
return /* @__PURE__ */ h("div", {
|
|
106
|
-
className: "ttw:text-right",
|
|
107
|
-
children: e
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
return {
|
|
111
|
-
[p.Vendor]: {
|
|
112
|
-
accessorKey: "vendorLabel",
|
|
113
|
-
enableSorting: !0,
|
|
114
|
-
minSize: _e,
|
|
115
|
-
header: e(Z.columnVendor),
|
|
116
|
-
cell: ({ row: e }) => /* @__PURE__ */ h("span", {
|
|
117
|
-
"data-testid": I?.[p.Vendor],
|
|
118
|
-
children: e.original.vendorLabel || /* @__PURE__ */ h(u, { labels: Z.missingValue })
|
|
119
|
-
})
|
|
120
|
-
},
|
|
121
|
-
[p.Attachment]: {
|
|
122
|
-
accessorKey: "attachment",
|
|
123
|
-
enableSorting: !1,
|
|
124
|
-
size: _,
|
|
125
|
-
minSize: _,
|
|
126
|
-
header: () => /* @__PURE__ */ h("span", {
|
|
127
|
-
className: "ttw:sr-only",
|
|
128
|
-
children: Z.columnAttachment
|
|
129
|
-
}),
|
|
130
|
-
cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ h("div", {
|
|
131
|
-
className: "ttw:flex ttw:justify-center",
|
|
132
|
-
"data-testid": I?.[p.Attachment],
|
|
133
|
-
children: /* @__PURE__ */ h(ie, { children: /* @__PURE__ */ g(ne, { children: [/* @__PURE__ */ h(ae, {
|
|
134
|
-
type: "button",
|
|
135
|
-
className: "ttw:inline-flex ttw:cursor-default",
|
|
136
|
-
"aria-label": e.original.attachment.label,
|
|
137
|
-
onClick: (e) => e.stopPropagation(),
|
|
138
|
-
children: /* @__PURE__ */ h(pe, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
|
|
139
|
-
}), /* @__PURE__ */ h(re, { children: e.original.attachment.label })] }) })
|
|
140
|
-
}) : null
|
|
141
|
-
},
|
|
142
|
-
[p.IssueDate]: {
|
|
143
|
-
accessorKey: "issueDateLabel",
|
|
144
|
-
enableSorting: !0,
|
|
145
|
-
header: e(Z.columnIssueDate),
|
|
146
|
-
cell: t("issueDateLabel", p.IssueDate)
|
|
147
|
-
},
|
|
148
|
-
[p.DueDate]: {
|
|
149
|
-
accessorKey: "dueDateLabel",
|
|
150
|
-
enableSorting: !0,
|
|
151
|
-
header: e(Z.columnDueDate),
|
|
152
|
-
cell: n
|
|
153
|
-
},
|
|
154
|
-
[p.ScheduledDate]: {
|
|
155
|
-
accessorKey: "scheduledDateLabel",
|
|
156
|
-
enableSorting: !0,
|
|
157
|
-
header: e(Z.columnScheduledDate),
|
|
158
|
-
cell: t("scheduledDateLabel", p.ScheduledDate)
|
|
159
|
-
},
|
|
160
|
-
[p.PaidDate]: {
|
|
161
|
-
accessorKey: "paidDateLabel",
|
|
162
|
-
enableSorting: !1,
|
|
163
|
-
header: Z.columnPaidDate,
|
|
164
|
-
cell: t("paidDateLabel", p.PaidDate)
|
|
165
|
-
},
|
|
166
|
-
[p.Status]: {
|
|
167
|
-
accessorKey: "status",
|
|
168
|
-
enableSorting: !1,
|
|
169
|
-
header: Z.columnStatus,
|
|
170
|
-
cell: ({ row: e }) => /* @__PURE__ */ g("div", {
|
|
171
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
172
|
-
"data-testid": I?.[p.Status],
|
|
173
|
-
children: [/* @__PURE__ */ h(se, {
|
|
174
|
-
status: e.original.status,
|
|
175
|
-
tone: e.original.statusTone,
|
|
176
|
-
labels: Z.statusBadge
|
|
177
|
-
}), e.original.duplicateBadge ? /* @__PURE__ */ h(le, { ...e.original.duplicateBadge }) : null]
|
|
178
|
-
})
|
|
179
|
-
},
|
|
180
|
-
[p.AmountDue]: {
|
|
181
|
-
accessorKey: "amountDueLabel",
|
|
182
|
-
enableSorting: !1,
|
|
183
|
-
header: i(Z.columnAmountDue),
|
|
184
|
-
cell: r("amountDueLabel", p.AmountDue)
|
|
185
|
-
},
|
|
186
|
-
[p.AmountScheduled]: {
|
|
187
|
-
accessorKey: "amountScheduledLabel",
|
|
188
|
-
enableSorting: !1,
|
|
189
|
-
header: i(Z.columnAmountScheduled),
|
|
190
|
-
cell: r("amountScheduledLabel", p.AmountScheduled)
|
|
191
|
-
},
|
|
192
|
-
[p.AmountPaid]: {
|
|
193
|
-
accessorKey: "amountPaidLabel",
|
|
194
|
-
enableSorting: !1,
|
|
195
|
-
header: i(Z.columnAmountPaid),
|
|
196
|
-
cell: r("amountPaidLabel", p.AmountPaid)
|
|
197
|
-
},
|
|
198
|
-
[p.TotalAmount]: {
|
|
199
|
-
accessorKey: "totalAmountLabel",
|
|
200
|
-
enableSorting: !1,
|
|
201
|
-
header: i(Z.columnTotalAmount),
|
|
202
|
-
cell: r("totalAmountLabel", p.TotalAmount)
|
|
203
|
-
},
|
|
204
|
-
[p.AddedOn]: {
|
|
205
|
-
accessorKey: "addedOnLabel",
|
|
206
|
-
enableSorting: !0,
|
|
207
|
-
header: e(Z.columnAddedOn),
|
|
208
|
-
cell: t("addedOnLabel", p.AddedOn)
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
}, [Z, I]), Ce = m(() => [...ve.filter((e) => F.includes(e)).map((e) => Q[e]), {
|
|
212
|
-
id: "actions",
|
|
213
|
-
enableSorting: !1,
|
|
214
|
-
header: () => /* @__PURE__ */ h("span", {
|
|
215
|
-
className: "ttw:sr-only",
|
|
216
|
-
children: Z.columnActions
|
|
217
|
-
}),
|
|
218
|
-
cell: ({ row: e }) => /* @__PURE__ */ h("div", {
|
|
219
|
-
className: "ttw:flex ttw:justify-end",
|
|
220
|
-
children: /* @__PURE__ */ h(n, {
|
|
221
|
-
variant: "ghost",
|
|
222
|
-
size: "icon",
|
|
223
|
-
"aria-label": Z.openRow(e.original.vendorLabel || Z.missingValue.missing),
|
|
224
|
-
onClick: (t) => {
|
|
225
|
-
t.stopPropagation(), e.original.onOpen();
|
|
226
|
-
},
|
|
227
|
-
children: /* @__PURE__ */ h(de, { className: "ttw:size-4" })
|
|
228
|
-
})
|
|
229
|
-
})
|
|
230
|
-
}], [
|
|
231
|
-
Q,
|
|
232
|
-
Z,
|
|
233
|
-
F
|
|
234
|
-
]), we = !!(z && V) && !b && !x && !L && y.length === 0 && Se === !0, $ = /* @__PURE__ */ g("div", {
|
|
235
|
-
className: "ttw:relative ttw:w-80",
|
|
236
|
-
children: [/* @__PURE__ */ h(he, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ h(i, {
|
|
237
|
-
className: "ttw:pl-9",
|
|
238
|
-
type: "search",
|
|
239
|
-
"aria-label": Z.searchLabel,
|
|
240
|
-
placeholder: Z.searchPlaceholder,
|
|
241
|
-
value: N,
|
|
242
|
-
onChange: (e) => xe(e.target.value)
|
|
243
|
-
})]
|
|
244
|
-
}), Te = P ? /* @__PURE__ */ h(ue, {
|
|
245
|
-
...P,
|
|
246
|
-
className: "ttw:px-4",
|
|
247
|
-
searchSlot: $
|
|
248
|
-
}) : /* @__PURE__ */ h("div", {
|
|
249
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
250
|
-
children: $
|
|
251
|
-
});
|
|
252
|
-
return /* @__PURE__ */ g("div", {
|
|
253
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
254
|
-
children: [Y ? /* @__PURE__ */ g(e, {
|
|
255
|
-
className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
|
|
256
|
-
children: [
|
|
257
|
-
/* @__PURE__ */ h(fe, {}),
|
|
258
|
-
/* @__PURE__ */ h(t, {
|
|
259
|
-
className: "ttw:flex-1",
|
|
260
|
-
children: Y
|
|
261
|
-
}),
|
|
262
|
-
X ? /* @__PURE__ */ h(n, {
|
|
263
|
-
type: "button",
|
|
264
|
-
variant: "outline",
|
|
265
|
-
className: "ttw:text-foreground",
|
|
266
|
-
onClick: X,
|
|
267
|
-
children: Z.duplicateBillsReviewButton
|
|
268
|
-
}) : null
|
|
269
|
-
]
|
|
270
|
-
}) : null, /* @__PURE__ */ g(te, {
|
|
271
|
-
value: j,
|
|
272
|
-
onValueChange: M,
|
|
273
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
274
|
-
children: [/* @__PURE__ */ g("div", {
|
|
275
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
276
|
-
children: [/* @__PURE__ */ h(o, {
|
|
277
|
-
"aria-label": Z.filterTabsLabel,
|
|
278
|
-
children: A.map((e) => /* @__PURE__ */ g(s, {
|
|
279
|
-
value: e.id,
|
|
280
|
-
className: "ttw:min-w-28",
|
|
281
|
-
children: [e.icon, e.label]
|
|
282
|
-
}, e.id))
|
|
283
|
-
}), z ? /* @__PURE__ */ g(n, {
|
|
284
|
-
onClick: z,
|
|
285
|
-
children: [/* @__PURE__ */ h(me, { className: "ttw:size-4" }), Z.createButton]
|
|
286
|
-
}) : null]
|
|
287
|
-
}), (() => {
|
|
288
|
-
let e = x ? /* @__PURE__ */ h(oe, {
|
|
289
|
-
title: Z.errorTitle,
|
|
290
|
-
description: Z.errorDescription,
|
|
291
|
-
retryLabel: B ? Z.errorRetry : void 0,
|
|
292
|
-
onRetry: B
|
|
293
|
-
}) : we && z && V ? /* @__PURE__ */ h("div", {
|
|
294
|
-
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
295
|
-
children: K && q ? /* @__PURE__ */ h(l, {
|
|
296
|
-
emailAddress: K,
|
|
297
|
-
onCopyEmail: q,
|
|
298
|
-
onFilesSelected: V,
|
|
299
|
-
accept: f,
|
|
300
|
-
maxFiles: H,
|
|
301
|
-
uploadStatus: W,
|
|
302
|
-
uploadErrorMessage: G,
|
|
303
|
-
onEnterManually: U ?? z,
|
|
304
|
-
labels: Z.addBill
|
|
305
|
-
}) : /* @__PURE__ */ h(l, {
|
|
306
|
-
onFilesSelected: V,
|
|
307
|
-
accept: f,
|
|
308
|
-
maxFiles: H,
|
|
309
|
-
uploadStatus: W,
|
|
310
|
-
uploadErrorMessage: G,
|
|
311
|
-
onEnterManually: U ?? z,
|
|
312
|
-
labels: Z.addBill
|
|
313
|
-
})
|
|
314
|
-
}) : /* @__PURE__ */ h(r, {
|
|
315
|
-
columns: Ce,
|
|
316
|
-
data: y,
|
|
317
|
-
isLoading: b,
|
|
318
|
-
sorting: ye,
|
|
319
|
-
onSortingChange: be,
|
|
320
|
-
pageSize: S,
|
|
321
|
-
onPageSizeChange: C,
|
|
322
|
-
pageSizeOptions: w,
|
|
323
|
-
pageInfo: T,
|
|
324
|
-
hasNextPage: E,
|
|
325
|
-
hasPrevPage: D,
|
|
326
|
-
onNextPage: O,
|
|
327
|
-
onPrevPage: k,
|
|
328
|
-
onRowClick: (e) => e.onOpen(),
|
|
329
|
-
filterComponent: Te,
|
|
330
|
-
children: L ? /* @__PURE__ */ h(c, {
|
|
331
|
-
title: Z.filteredEmptyTitle,
|
|
332
|
-
description: Z.filteredEmptyDescription
|
|
333
|
-
}) : R ? /* @__PURE__ */ h(c, {
|
|
334
|
-
title: R.title,
|
|
335
|
-
description: R.description
|
|
336
|
-
}) : void 0
|
|
337
|
-
});
|
|
338
|
-
return A.map((t) => /* @__PURE__ */ h(a, {
|
|
339
|
-
value: t.id,
|
|
340
|
-
children: t.id === j ? e : null
|
|
341
|
-
}, t.id));
|
|
342
|
-
})()]
|
|
343
|
-
})]
|
|
344
|
-
});
|
|
345
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
Vendor: "vendor",
|
|
4
|
+
IssueDate: "issueDate",
|
|
5
|
+
DueDate: "dueDate",
|
|
6
|
+
Status: "status",
|
|
7
|
+
TotalAmount: "totalAmount",
|
|
8
|
+
AddedOn: "addedOn",
|
|
9
|
+
Attachment: "attachment"
|
|
10
|
+
};
|
|
346
11
|
//#endregion
|
|
347
|
-
export {
|
|
12
|
+
export { e as BillsFilterField };
|