@tesouro/embedded-components-react 0.2.332 → 0.2.336
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +3 -0
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +6 -6
- 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/index26.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +43 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +26 -149
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +159 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +102 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +10 -212
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +27 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +75 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +132 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +3 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +107 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +37 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +6 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +83 -144
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +161 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.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 +16 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +12 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +254 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +6 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +10 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +7 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +11 -86
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -0
- 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/dist/packages/shared-ui-shadcn/dist/index.js +1274 -1266
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -2
|
@@ -1 +1,115 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
+
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
+
import "../../../shared/data-access/dist/index.js";
|
|
8
|
+
import { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
9
|
+
import "../../../shared/ui/dist/index.js";
|
|
10
|
+
import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
11
|
+
import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
12
|
+
import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
|
+
import "../../../shared/feature/dist/index.js";
|
|
14
|
+
import { BillPayWidgetUi as o } from "../../ui/dist/index43.js";
|
|
15
|
+
import { BillUploadStatusTray as s } from "../../ui/dist/index57.js";
|
|
16
|
+
import "../../ui/dist/index.js";
|
|
17
|
+
import { ApprovalPoliciesSettings as c } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
18
|
+
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
19
|
+
import { useBillUploadQueue as l } from "./index49.js";
|
|
20
|
+
import "./index50.js";
|
|
21
|
+
import { billsTabTestIds as u } from "./index54.js";
|
|
22
|
+
import { BillsTab as d } from "./index56.js";
|
|
23
|
+
import "./index57.js";
|
|
24
|
+
import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index44.js";
|
|
25
|
+
import { DEFAULT_TABS_LABELS as m } from "./index58.js";
|
|
26
|
+
import { CounterpartsWidget as h } from "../../../counterparts-widget/feature/dist/index8.js";
|
|
27
|
+
import "../../../counterparts-widget/feature/dist/index.js";
|
|
28
|
+
import { useCallback as g, useEffect as _, useState as v } from "react";
|
|
29
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
30
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js
|
|
31
|
+
var S = {
|
|
32
|
+
Bills: "bills",
|
|
33
|
+
Vendors: "vendors",
|
|
34
|
+
Settings: "settings"
|
|
35
|
+
}, C = [
|
|
36
|
+
S.Bills,
|
|
37
|
+
S.Vendors,
|
|
38
|
+
S.Settings
|
|
39
|
+
];
|
|
40
|
+
function w({ labels: i, tabsLabels: p, approvalPolicyLabels: w, approvalPolicyComponentLabels: T, vendorLabels: E, poweredByBankName: D }) {
|
|
41
|
+
let O = r();
|
|
42
|
+
_(() => {
|
|
43
|
+
O(f.Mounted);
|
|
44
|
+
}, [O]);
|
|
45
|
+
let k = {
|
|
46
|
+
...m,
|
|
47
|
+
...p
|
|
48
|
+
}, { initResponse: A } = a(), j = e(A?.scopes, [t.ApprovalPolicyWriteOrg]), M = !A || j, [N, P] = v(S.Bills), [F, I] = v(), L = g((e) => {
|
|
49
|
+
P(S.Bills), I(e);
|
|
50
|
+
}, []), R = l({ onOpenBill: L }), z = [{
|
|
51
|
+
id: S.Bills,
|
|
52
|
+
label: k.bills,
|
|
53
|
+
content: /* @__PURE__ */ b(d, {
|
|
54
|
+
onEnqueueFiles: R.enqueue,
|
|
55
|
+
openPayableId: F,
|
|
56
|
+
onOpenPayableHandled: () => I(void 0),
|
|
57
|
+
poweredByBankName: D
|
|
58
|
+
})
|
|
59
|
+
}, {
|
|
60
|
+
id: S.Vendors,
|
|
61
|
+
label: k.vendors,
|
|
62
|
+
content: /* @__PURE__ */ b(h, {
|
|
63
|
+
...E,
|
|
64
|
+
counterpartType: "vendor",
|
|
65
|
+
showTitle: !1,
|
|
66
|
+
onViewAllDocuments: () => P(S.Bills)
|
|
67
|
+
})
|
|
68
|
+
}];
|
|
69
|
+
M && z.push({
|
|
70
|
+
id: S.Settings,
|
|
71
|
+
label: k.settings,
|
|
72
|
+
content: /* @__PURE__ */ b(c, {
|
|
73
|
+
labels: w,
|
|
74
|
+
componentLabels: T
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
|
|
78
|
+
return /* @__PURE__ */ x(y, { children: [
|
|
79
|
+
/* @__PURE__ */ b(n, {}),
|
|
80
|
+
/* @__PURE__ */ b(o, {
|
|
81
|
+
labels: i,
|
|
82
|
+
tabs: z,
|
|
83
|
+
selectedTabId: B,
|
|
84
|
+
onTabChange: P
|
|
85
|
+
}),
|
|
86
|
+
R.isVisible ? /* @__PURE__ */ b(s, {
|
|
87
|
+
sections: R.sections,
|
|
88
|
+
summaryLabel: R.summaryLabel,
|
|
89
|
+
collapsed: R.collapsed,
|
|
90
|
+
onToggleCollapsed: R.onToggleCollapsed,
|
|
91
|
+
onClose: R.onClose,
|
|
92
|
+
testId: u.uploadTray
|
|
93
|
+
}) : null
|
|
94
|
+
] });
|
|
95
|
+
}
|
|
96
|
+
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, ...m }) {
|
|
97
|
+
return /* @__PURE__ */ b(i, {
|
|
98
|
+
widgetName: p,
|
|
99
|
+
baseUrl: e,
|
|
100
|
+
widgetToken: t,
|
|
101
|
+
organizationId: n,
|
|
102
|
+
configClient: r,
|
|
103
|
+
gatewayRouting: a,
|
|
104
|
+
linkComponent: o,
|
|
105
|
+
implementation: s,
|
|
106
|
+
uiFramework: c,
|
|
107
|
+
errorFallback: l,
|
|
108
|
+
onError: u,
|
|
109
|
+
analytics: d,
|
|
110
|
+
disclosuresAcceptance: f,
|
|
111
|
+
children: /* @__PURE__ */ b(w, { ...m })
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
export { T as BillPayWidgetNative, T as default };
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
-
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
-
import "../../../shared/feature/dist/index.js";
|
|
8
|
-
import { BillPayWidgetMonite as n } from "./index44.js";
|
|
9
|
-
import "./index45.js";
|
|
10
|
-
import { BillPayWidgetNative as r } from "./index58.js";
|
|
11
1
|
import "./index59.js";
|
|
12
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js
|
|
14
|
-
function a({ implementation: a, ...o }) {
|
|
15
|
-
let s = t().implementation, c = a ?? s ?? e.Monite;
|
|
16
|
-
return c === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
-
implementation: c,
|
|
18
|
-
...o
|
|
19
|
-
}) : /* @__PURE__ */ i(n, {
|
|
20
|
-
implementation: c,
|
|
21
|
-
...o
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { a as BillPayWidget, a as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
+
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
+
import "../../../shared/feature/dist/index.js";
|
|
8
|
+
import { BillPayWidgetMonite as n } from "./index45.js";
|
|
9
|
+
import "./index46.js";
|
|
10
|
+
import { BillPayWidgetNative as r } from "./index59.js";
|
|
11
|
+
import "./index60.js";
|
|
12
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js
|
|
14
|
+
function a({ implementation: a, ...o }) {
|
|
15
|
+
let s = t().implementation, c = a ?? s ?? e.Monite;
|
|
16
|
+
return c === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
+
implementation: c,
|
|
18
|
+
...o
|
|
19
|
+
}) : /* @__PURE__ */ i(n, {
|
|
20
|
+
implementation: c,
|
|
21
|
+
...o
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as BillPayWidget, a as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SOURCE_ACCOUNT_LABELS_EN as e } from "./index6.js";
|
|
2
|
-
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as t } from "../../ui/dist/
|
|
3
|
-
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as n } from "../../ui/dist/
|
|
2
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as t } from "../../ui/dist/index66.js";
|
|
3
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as n } from "../../ui/dist/index69.js";
|
|
4
4
|
import "../../ui/dist/index.js";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js
|
|
6
6
|
var r = {
|
|
@@ -44,23 +44,24 @@ import "./index49.js";
|
|
|
44
44
|
import "./index50.js";
|
|
45
45
|
import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index51.js";
|
|
46
46
|
import { BillDetailsSheet as o } from "./index52.js";
|
|
47
|
-
import {
|
|
48
|
-
import "./index54.js";
|
|
49
|
-
import
|
|
50
|
-
import "./
|
|
47
|
+
import { BillColumn as s } from "./index53.js";
|
|
48
|
+
import { BillsScreen as c } from "./index54.js";
|
|
49
|
+
import "./index55.js";
|
|
50
|
+
import { BillUploadStatusTray as l } from "./index57.js";
|
|
51
51
|
import "./index59.js";
|
|
52
|
-
import
|
|
53
|
-
import "./index61.js";
|
|
52
|
+
import "./index60.js";
|
|
53
|
+
import { ExtractionNotice as u } from "./index61.js";
|
|
54
54
|
import "./index62.js";
|
|
55
55
|
import "./index63.js";
|
|
56
56
|
import "./index64.js";
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import "./index67.js";
|
|
60
|
-
import
|
|
61
|
-
import {
|
|
62
|
-
import "./index71.js";
|
|
57
|
+
import "./index65.js";
|
|
58
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as d } from "./index66.js";
|
|
59
|
+
import { ReviewTransactionDialog as f } from "./index67.js";
|
|
60
|
+
import "./index68.js";
|
|
61
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as p } from "./index69.js";
|
|
62
|
+
import { SchedulePaymentDialog as m } from "./index71.js";
|
|
63
63
|
import "./index72.js";
|
|
64
|
-
import
|
|
65
|
-
import "./index74.js";
|
|
66
|
-
|
|
64
|
+
import "./index73.js";
|
|
65
|
+
import { SourceDocumentPanel as h } from "./index74.js";
|
|
66
|
+
import "./index75.js";
|
|
67
|
+
export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, s as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, r as BillPayWidgetUi, l as BillUploadStatusTray, c as BillsScreen, u as ExtractionNotice, d as REVIEW_TRANSACTION_DIALOG_LABELS_EN, f as ReviewTransactionDialog, p as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, m as SchedulePaymentDialog, h as SourceDocumentPanel };
|
|
@@ -44,7 +44,11 @@ var a = {
|
|
|
44
44
|
createButton: "Add bill",
|
|
45
45
|
columnVendor: "Vendor",
|
|
46
46
|
columnDueDate: "Due date",
|
|
47
|
+
columnScheduledDate: "Scheduled date",
|
|
48
|
+
columnPaidDate: "Paid date",
|
|
47
49
|
columnAmountDue: "Amount due",
|
|
50
|
+
columnAmountScheduled: "Amount scheduled",
|
|
51
|
+
columnAmountPaid: "Amount paid",
|
|
48
52
|
columnStatus: "Status",
|
|
49
53
|
columnAddedOn: "Added on",
|
|
50
54
|
columnActions: "Actions",
|
|
@@ -1,206 +1,14 @@
|
|
|
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 "./index19.js";
|
|
8
|
-
import "./index20.js";
|
|
9
|
-
import { MissingValue as f } from "./index49.js";
|
|
10
|
-
import "./index50.js";
|
|
11
|
-
import { BILLS_SCREEN_LABELS_EN as p, BILLS_SCREEN_UPLOAD_ACCEPT as m } from "./index51.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/index53.js
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
...p.statusBadge,
|
|
28
|
-
...X?.statusBadge
|
|
29
|
-
},
|
|
30
|
-
addBill: {
|
|
31
|
-
...p.addBill,
|
|
32
|
-
...X?.addBill,
|
|
33
|
-
dropzone: {
|
|
34
|
-
...p.addBill.dropzone,
|
|
35
|
-
...X?.addBill?.dropzone
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
sortableHeader: {
|
|
39
|
-
...p.sortableHeader,
|
|
40
|
-
...X?.sortableHeader
|
|
41
|
-
},
|
|
42
|
-
missingValue: {
|
|
43
|
-
...p.missingValue,
|
|
44
|
-
...X?.missingValue
|
|
45
|
-
}
|
|
46
|
-
}), [X]), Q = h(() => [
|
|
47
|
-
{
|
|
48
|
-
accessorKey: "vendorLabel",
|
|
49
|
-
enableSorting: !0,
|
|
50
|
-
header: ({ column: e }) => /* @__PURE__ */ g(n, {
|
|
51
|
-
column: e,
|
|
52
|
-
title: Z.columnVendor,
|
|
53
|
-
labels: Z.sortableHeader
|
|
54
|
-
}),
|
|
55
|
-
cell: ({ row: e }) => e.original.vendorLabel || /* @__PURE__ */ g(f, { labels: Z.missingValue })
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
accessorKey: "dueDateLabel",
|
|
59
|
-
enableSorting: !0,
|
|
60
|
-
header: ({ column: e }) => /* @__PURE__ */ g(n, {
|
|
61
|
-
column: e,
|
|
62
|
-
title: Z.columnDueDate,
|
|
63
|
-
labels: Z.sortableHeader
|
|
64
|
-
}),
|
|
65
|
-
cell: ({ row: e }) => e.original.dueDateLabel || /* @__PURE__ */ g(f, { labels: Z.missingValue })
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
accessorKey: "status",
|
|
69
|
-
enableSorting: !1,
|
|
70
|
-
header: Z.columnStatus,
|
|
71
|
-
cell: ({ row: e }) => /* @__PURE__ */ g(d, {
|
|
72
|
-
status: e.original.status,
|
|
73
|
-
tone: e.original.statusTone,
|
|
74
|
-
labels: Z.statusBadge
|
|
75
|
-
})
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
accessorKey: "amountDueLabel",
|
|
79
|
-
enableSorting: !1,
|
|
80
|
-
header: () => /* @__PURE__ */ g("div", {
|
|
81
|
-
className: "ttw:text-right",
|
|
82
|
-
children: Z.columnAmountDue
|
|
83
|
-
}),
|
|
84
|
-
cell: ({ row: e }) => /* @__PURE__ */ g("div", {
|
|
85
|
-
className: "ttw:text-right",
|
|
86
|
-
children: e.original.amountDueLabel || /* @__PURE__ */ g(f, { labels: Z.missingValue })
|
|
87
|
-
})
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
accessorKey: "addedOnLabel",
|
|
91
|
-
enableSorting: !0,
|
|
92
|
-
header: ({ column: e }) => /* @__PURE__ */ g(n, {
|
|
93
|
-
column: e,
|
|
94
|
-
title: Z.columnAddedOn,
|
|
95
|
-
labels: Z.sortableHeader
|
|
96
|
-
}),
|
|
97
|
-
cell: ({ row: e }) => e.original.addedOnLabel || /* @__PURE__ */ g(f, { labels: Z.missingValue })
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: "actions",
|
|
101
|
-
enableSorting: !1,
|
|
102
|
-
header: () => /* @__PURE__ */ g("span", {
|
|
103
|
-
className: "ttw:sr-only",
|
|
104
|
-
children: Z.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": Z.openRow(t.original.vendorLabel || Z.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
|
-
], [Z]), $ = !!(V && U) && !C && !w && !B && S.length === 0, ee = /* @__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": Z.searchLabel,
|
|
127
|
-
placeholder: Z.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": Z.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 && !$ ? /* @__PURE__ */ _(e, {
|
|
147
|
-
onClick: V,
|
|
148
|
-
children: [/* @__PURE__ */ g(y, { className: "ttw:size-4" }), Z.createButton]
|
|
149
|
-
}) : null]
|
|
150
|
-
}), (() => {
|
|
151
|
-
let e = w ? /* @__PURE__ */ g(l, {
|
|
152
|
-
title: Z.errorTitle,
|
|
153
|
-
description: Z.errorDescription,
|
|
154
|
-
retryLabel: H ? Z.errorRetry : void 0,
|
|
155
|
-
onRetry: H
|
|
156
|
-
}) : $ && V && U ? /* @__PURE__ */ g("div", {
|
|
157
|
-
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
158
|
-
children: J && Y ? /* @__PURE__ */ g(u, {
|
|
159
|
-
emailAddress: J,
|
|
160
|
-
onCopyEmail: Y,
|
|
161
|
-
onFilesSelected: U,
|
|
162
|
-
accept: m,
|
|
163
|
-
maxFiles: W,
|
|
164
|
-
uploadStatus: K,
|
|
165
|
-
uploadErrorMessage: q,
|
|
166
|
-
onEnterManually: G ?? V,
|
|
167
|
-
labels: Z.addBill
|
|
168
|
-
}) : /* @__PURE__ */ g(u, {
|
|
169
|
-
onFilesSelected: U,
|
|
170
|
-
accept: m,
|
|
171
|
-
maxFiles: W,
|
|
172
|
-
uploadStatus: K,
|
|
173
|
-
uploadErrorMessage: q,
|
|
174
|
-
onEnterManually: G ?? V,
|
|
175
|
-
labels: Z.addBill
|
|
176
|
-
})
|
|
177
|
-
}) : /* @__PURE__ */ g(t, {
|
|
178
|
-
columns: Q,
|
|
179
|
-
data: S,
|
|
180
|
-
isLoading: C,
|
|
181
|
-
sorting: T,
|
|
182
|
-
onSortingChange: E,
|
|
183
|
-
pageSize: D,
|
|
184
|
-
onPageSizeChange: O,
|
|
185
|
-
pageSizeOptions: k,
|
|
186
|
-
pageInfo: A,
|
|
187
|
-
hasNextPage: j,
|
|
188
|
-
hasPrevPage: M,
|
|
189
|
-
onNextPage: N,
|
|
190
|
-
onPrevPage: P,
|
|
191
|
-
onRowClick: (e) => e.onOpen(),
|
|
192
|
-
filterComponent: ee,
|
|
193
|
-
children: B ? /* @__PURE__ */ g(c, {
|
|
194
|
-
title: Z.filteredEmptyTitle,
|
|
195
|
-
description: Z.filteredEmptyDescription
|
|
196
|
-
}) : void 0
|
|
197
|
-
});
|
|
198
|
-
return F.map((t) => /* @__PURE__ */ g(a, {
|
|
199
|
-
value: t.id,
|
|
200
|
-
children: t.id === I ? e : null
|
|
201
|
-
}, t.id));
|
|
202
|
-
})()]
|
|
203
|
-
});
|
|
204
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
Vendor: "vendor",
|
|
4
|
+
DueDate: "dueDate",
|
|
5
|
+
ScheduledDate: "scheduledDate",
|
|
6
|
+
PaidDate: "paidDate",
|
|
7
|
+
Status: "status",
|
|
8
|
+
AmountDue: "amountDue",
|
|
9
|
+
AmountScheduled: "amountScheduled",
|
|
10
|
+
AmountPaid: "amountPaid",
|
|
11
|
+
AddedOn: "addedOn"
|
|
12
|
+
};
|
|
205
13
|
//#endregion
|
|
206
|
-
export {
|
|
14
|
+
export { e as BillColumn };
|