@tesouro/embedded-components-react 0.3.24 → 0.3.25
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/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +23 -266
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +46 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +273 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +45 -282
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +273 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +113 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +95 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +53 -137
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +138 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +37 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +11 -253
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +82 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +264 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +9 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +3 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +188 -301
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +317 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +91 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +14 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +109 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +108 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +0 -113
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js
|
|
2
|
-
var e = {
|
|
3
|
-
cancelButton: "Cancel",
|
|
4
|
-
orConnector: "or"
|
|
5
|
-
};
|
|
2
|
+
var e = { description: "Review, approve, and pay your bills." };
|
|
6
3
|
//#endregion
|
|
7
|
-
export { e as
|
|
4
|
+
export { e as DEFAULT_LABELS };
|
|
@@ -1,92 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { DEFAULT_LABELS as i } from "./index46.js";
|
|
7
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
8
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js
|
|
6
|
-
function
|
|
7
|
-
let
|
|
8
|
-
...
|
|
9
|
-
...
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
|
|
36
|
-
children: /* @__PURE__ */ p("ul", {
|
|
37
|
-
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
|
|
38
|
-
children: P.map((e) => /* @__PURE__ */ p("li", {
|
|
39
|
-
className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
|
|
40
|
-
children: e.names.map((e, t) => /* @__PURE__ */ m(u, { children: [t > 0 ? /* @__PURE__ */ p("span", {
|
|
41
|
-
className: "ttw:text-muted-foreground",
|
|
42
|
-
children: ` ${T.orConnector} `
|
|
43
|
-
}) : null, /* @__PURE__ */ p("span", {
|
|
44
|
-
className: "ttw:font-medium",
|
|
45
|
-
children: e
|
|
46
|
-
})] }, e))
|
|
47
|
-
}, e.id))
|
|
48
|
-
})
|
|
49
|
-
}) : null,
|
|
50
|
-
g.reason ? /* @__PURE__ */ m("div", {
|
|
51
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
52
|
-
children: [/* @__PURE__ */ m(s, {
|
|
53
|
-
htmlFor: w,
|
|
54
|
-
children: [g.reason.label, /* @__PURE__ */ p("span", {
|
|
55
|
-
className: "ttw:ml-1 ttw:text-muted-foreground",
|
|
56
|
-
children: g.reason.optionalHint
|
|
57
|
-
})]
|
|
58
|
-
}), /* @__PURE__ */ p(c, {
|
|
59
|
-
id: w,
|
|
60
|
-
value: E,
|
|
61
|
-
placeholder: g.reason.placeholder,
|
|
62
|
-
onChange: (e) => D(e.target.value),
|
|
63
|
-
disabled: y,
|
|
64
|
-
"data-testid": C
|
|
65
|
-
})]
|
|
66
|
-
}) : null,
|
|
67
|
-
/* @__PURE__ */ m(r, {
|
|
68
|
-
className: M ? "ttw:sm:justify-center" : void 0,
|
|
69
|
-
children: [/* @__PURE__ */ p(o, {
|
|
70
|
-
type: "button",
|
|
71
|
-
variant: "outline",
|
|
72
|
-
onClick: v,
|
|
73
|
-
disabled: y,
|
|
74
|
-
className: N ? "ttw:flex-1" : void 0,
|
|
75
|
-
children: T.cancelButton
|
|
76
|
-
}), /* @__PURE__ */ p(o, {
|
|
77
|
-
type: "button",
|
|
78
|
-
variant: A === "destructive" ? "destructive" : "default",
|
|
79
|
-
loading: y,
|
|
80
|
-
disabled: y,
|
|
81
|
-
onClick: () => _(g.reason ? E.trim() : void 0),
|
|
82
|
-
className: N ? "ttw:flex-1" : void 0,
|
|
83
|
-
"data-testid": S,
|
|
84
|
-
children: g.confirmButton
|
|
85
|
-
})]
|
|
86
|
-
})
|
|
87
|
-
]
|
|
88
|
-
})
|
|
9
|
+
function s({ labels: s, tabs: c, selectedTabId: l, onTabChange: u }) {
|
|
10
|
+
let d = {
|
|
11
|
+
...i,
|
|
12
|
+
...s
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ o("section", {
|
|
15
|
+
className: "ttw:w-full ttw:space-y-5",
|
|
16
|
+
children: [/* @__PURE__ */ a("div", {
|
|
17
|
+
className: "ttw:min-w-0",
|
|
18
|
+
children: /* @__PURE__ */ a("p", {
|
|
19
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
20
|
+
children: d.description
|
|
21
|
+
})
|
|
22
|
+
}), /* @__PURE__ */ o(e, {
|
|
23
|
+
value: l,
|
|
24
|
+
onValueChange: u,
|
|
25
|
+
className: "ttw:w-full",
|
|
26
|
+
children: [/* @__PURE__ */ a(n, {
|
|
27
|
+
variant: "line",
|
|
28
|
+
children: c.map((e) => /* @__PURE__ */ a(r, {
|
|
29
|
+
value: e.id,
|
|
30
|
+
children: e.label
|
|
31
|
+
}, e.id))
|
|
32
|
+
}), c.map((e) => /* @__PURE__ */ a(t, {
|
|
33
|
+
value: e.id,
|
|
34
|
+
className: "ttw:mt-6",
|
|
35
|
+
children: e.content
|
|
36
|
+
}, e.id))]
|
|
37
|
+
})]
|
|
89
38
|
});
|
|
90
39
|
}
|
|
91
40
|
//#endregion
|
|
92
|
-
export {
|
|
41
|
+
export { s as BillPayWidgetUi };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js
|
|
2
|
-
var e = {
|
|
2
|
+
var e = {
|
|
3
|
+
cancelButton: "Cancel",
|
|
4
|
+
orConnector: "or"
|
|
5
|
+
};
|
|
3
6
|
//#endregion
|
|
4
|
-
export { e as
|
|
7
|
+
export { e as BILL_DECISION_DIALOG_LABELS_EN };
|
|
@@ -1,16 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 "./index49.js";
|
|
3
|
+
import { Fragment as u, useEffect as d, useState as f } from "react";
|
|
4
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
...
|
|
8
|
-
...
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
function h({ open: h, copy: g, onConfirm: _, onCancel: v, isPending: y, labels: b, testId: x, confirmTestId: S, reasonTestId: C, reasonFieldId: w = "bill-decision-reason" }) {
|
|
7
|
+
let T = {
|
|
8
|
+
...l,
|
|
9
|
+
...b
|
|
10
|
+
}, [E, D] = f("");
|
|
11
|
+
if (d(() => {
|
|
12
|
+
h || D("");
|
|
13
|
+
}, [h]), !g) return null;
|
|
14
|
+
let { alignment: O = "start", icon: k, tone: A = "default", actionWidth: j = "auto" } = g.presentation ?? {}, M = O === "center", N = j === "equal", P = g.pendingApprovers ?? [];
|
|
15
|
+
return /* @__PURE__ */ p(e, {
|
|
16
|
+
open: h,
|
|
17
|
+
onOpenChange: (e) => {
|
|
18
|
+
e || v();
|
|
19
|
+
},
|
|
20
|
+
children: /* @__PURE__ */ m(t, {
|
|
21
|
+
"data-testid": x,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ m(i, {
|
|
24
|
+
className: M ? "ttw:items-center ttw:sm:text-center" : void 0,
|
|
25
|
+
children: [
|
|
26
|
+
k ? /* @__PURE__ */ p("span", {
|
|
27
|
+
className: A === "destructive" ? "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive" : "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
|
|
28
|
+
children: /* @__PURE__ */ p(k, { className: A === "destructive" ? "ttw:size-4 ttw:text-white" : "ttw:size-4 ttw:text-foreground" })
|
|
29
|
+
}) : null,
|
|
30
|
+
/* @__PURE__ */ p(a, { children: g.title }),
|
|
31
|
+
/* @__PURE__ */ p(n, { children: g.description })
|
|
32
|
+
]
|
|
33
|
+
}),
|
|
34
|
+
P.length > 0 ? /* @__PURE__ */ p("div", {
|
|
35
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
|
|
36
|
+
children: /* @__PURE__ */ p("ul", {
|
|
37
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
|
|
38
|
+
children: P.map((e) => /* @__PURE__ */ p("li", {
|
|
39
|
+
className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
|
|
40
|
+
children: e.names.map((e, t) => /* @__PURE__ */ m(u, { children: [t > 0 ? /* @__PURE__ */ p("span", {
|
|
41
|
+
className: "ttw:text-muted-foreground",
|
|
42
|
+
children: ` ${T.orConnector} `
|
|
43
|
+
}) : null, /* @__PURE__ */ p("span", {
|
|
44
|
+
className: "ttw:font-medium",
|
|
45
|
+
children: e
|
|
46
|
+
})] }, e))
|
|
47
|
+
}, e.id))
|
|
48
|
+
})
|
|
49
|
+
}) : null,
|
|
50
|
+
g.reason ? /* @__PURE__ */ m("div", {
|
|
51
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
52
|
+
children: [/* @__PURE__ */ m(s, {
|
|
53
|
+
htmlFor: w,
|
|
54
|
+
children: [g.reason.label, /* @__PURE__ */ p("span", {
|
|
55
|
+
className: "ttw:ml-1 ttw:text-muted-foreground",
|
|
56
|
+
children: g.reason.optionalHint
|
|
57
|
+
})]
|
|
58
|
+
}), /* @__PURE__ */ p(c, {
|
|
59
|
+
id: w,
|
|
60
|
+
value: E,
|
|
61
|
+
placeholder: g.reason.placeholder,
|
|
62
|
+
onChange: (e) => D(e.target.value),
|
|
63
|
+
disabled: y,
|
|
64
|
+
"data-testid": C
|
|
65
|
+
})]
|
|
66
|
+
}) : null,
|
|
67
|
+
/* @__PURE__ */ m(r, {
|
|
68
|
+
className: M ? "ttw:sm:justify-center" : void 0,
|
|
69
|
+
children: [/* @__PURE__ */ p(o, {
|
|
70
|
+
type: "button",
|
|
71
|
+
variant: "outline",
|
|
72
|
+
onClick: v,
|
|
73
|
+
disabled: y,
|
|
74
|
+
className: N ? "ttw:flex-1" : void 0,
|
|
75
|
+
children: T.cancelButton
|
|
76
|
+
}), /* @__PURE__ */ p(o, {
|
|
77
|
+
type: "button",
|
|
78
|
+
variant: A === "destructive" ? "destructive" : "default",
|
|
79
|
+
loading: y,
|
|
80
|
+
disabled: y,
|
|
81
|
+
onClick: () => _(g.reason ? E.trim() : void 0),
|
|
82
|
+
className: N ? "ttw:flex-1" : void 0,
|
|
83
|
+
"data-testid": S,
|
|
84
|
+
children: g.confirmButton
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
]
|
|
88
|
+
})
|
|
13
89
|
});
|
|
14
90
|
}
|
|
15
91
|
//#endregion
|
|
16
|
-
export {
|
|
92
|
+
export { h as BillDecisionDialog, h as default };
|
|
@@ -1,79 +1,4 @@
|
|
|
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 "./index21.js";
|
|
8
|
-
import { MISSING_VALUE_LABELS_EN as i } from "./index49.js";
|
|
9
|
-
import "./index51.js";
|
|
10
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js
|
|
11
|
-
var
|
|
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
|
-
cancelScheduledPaymentButton: "Cancel scheduled payment",
|
|
30
|
-
reopenButton: "Reopen bill",
|
|
31
|
-
forceApproveButton: "Approve",
|
|
32
|
-
forceRejectButton: "Reject",
|
|
33
|
-
policyOverridesGroup: "Policy overrides",
|
|
34
|
-
overflowMenuTrigger: "Bill actions",
|
|
35
|
-
expandButton: "Open full screen",
|
|
36
|
-
closeButton: "Close",
|
|
37
|
-
statusBadge: r,
|
|
38
|
-
approvalPolicy: n
|
|
39
|
-
}, o = ".pdf,.png,.jpg,.jpeg,.doc,.docx", s = {
|
|
40
|
-
...t,
|
|
41
|
-
dropzone: {
|
|
42
|
-
...t.dropzone,
|
|
43
|
-
fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
|
|
44
|
-
}
|
|
45
|
-
}, c = {
|
|
46
|
-
createButton: "Add bill",
|
|
47
|
-
columnVendor: "Vendor",
|
|
48
|
-
columnIssueDate: "Issue date",
|
|
49
|
-
columnDueDate: "Due date",
|
|
50
|
-
columnScheduledDate: "Scheduled date",
|
|
51
|
-
columnPaidDate: "Paid date",
|
|
52
|
-
columnAmountDue: "Amount due",
|
|
53
|
-
columnAmountScheduled: "Amount scheduled",
|
|
54
|
-
columnAmountPaid: "Amount paid",
|
|
55
|
-
columnTotalAmount: "Total amount",
|
|
56
|
-
columnStatus: "Status",
|
|
57
|
-
columnAddedOn: "Added on",
|
|
58
|
-
columnActions: "Actions",
|
|
59
|
-
openRow: (e) => `View bill — ${e}`,
|
|
60
|
-
duplicateBillsReviewButton: "Review duplicates",
|
|
61
|
-
searchPlaceholder: "Search by vendor name",
|
|
62
|
-
searchLabel: "Search bills by vendor name",
|
|
63
|
-
filterTabsLabel: "Filter bills by status",
|
|
64
|
-
filteredEmptyTitle: "No bills match",
|
|
65
|
-
filteredEmptyDescription: "Try a different search or status filter.",
|
|
66
|
-
errorTitle: "Couldn't load bills",
|
|
67
|
-
errorDescription: "Something went wrong. Try again.",
|
|
68
|
-
errorRetry: "Retry",
|
|
69
|
-
statusBadge: r,
|
|
70
|
-
addBill: s,
|
|
71
|
-
sortableHeader: {
|
|
72
|
-
sortedAscending: e.sortedAscending,
|
|
73
|
-
sortedDescending: e.sortedDescending,
|
|
74
|
-
notSorted: e.notSorted
|
|
75
|
-
},
|
|
76
|
-
missingValue: i
|
|
77
|
-
};
|
|
2
|
+
var e = { missing: "Missing" };
|
|
78
3
|
//#endregion
|
|
79
|
-
export {
|
|
4
|
+
export { e as MISSING_VALUE_LABELS_EN };
|
|
@@ -1,258 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import { BillOverflowMenu as f } from "./index16.js";
|
|
5
|
-
import "./index17.js";
|
|
6
|
-
import { BillStatusBadge as p } from "./index20.js";
|
|
7
|
-
import "./index21.js";
|
|
8
|
-
import { BillActionButtons as m, NO_BILL_ACTIONS as h } from "./index15.js";
|
|
9
|
-
import { BILL_DETAILS_SHEET_LABELS_EN as g } from "./index52.js";
|
|
10
|
-
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
11
|
-
import { ChevronDownIcon as b, MoveDiagonal2Icon as x, XIcon as S } from "lucide-react";
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MISSING_VALUE_LABELS_EN as t } from "./index52.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
12
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
|
|
18
|
-
children: [/* @__PURE__ */ v("dt", {
|
|
19
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
20
|
-
children: e.label
|
|
21
|
-
}), /* @__PURE__ */ y("dd", {
|
|
22
|
-
className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
|
|
23
|
-
children: [/* @__PURE__ */ v("span", {
|
|
24
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
25
|
-
children: e.value
|
|
26
|
-
}), e.secondaryValue ? /* @__PURE__ */ v("span", {
|
|
27
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
28
|
-
children: e.secondaryValue
|
|
29
|
-
}) : null]
|
|
30
|
-
})]
|
|
31
|
-
}, e.label))
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function w({ heading: e, children: i }) {
|
|
35
|
-
return /* @__PURE__ */ y(t, {
|
|
36
|
-
defaultOpen: !0,
|
|
37
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
38
|
-
children: [/* @__PURE__ */ y(r, {
|
|
39
|
-
className: "ttw:group ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:rounded-xs ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
|
|
40
|
-
children: [/* @__PURE__ */ v(u, {
|
|
41
|
-
variant: "body1",
|
|
42
|
-
className: "ttw:font-semibold",
|
|
43
|
-
children: e
|
|
44
|
-
}), /* @__PURE__ */ v(b, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
|
|
45
|
-
}), /* @__PURE__ */ v(n, { children: i })]
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function T({ open: t, onOpenChange: n, details: r, actions: u = h, approvalPolicy: b, isLoading: T, isError: E, notice: D, onClose: O, onExpand: k, testId: A, labels: j }) {
|
|
49
|
-
let M = {
|
|
50
|
-
...g,
|
|
51
|
-
...j,
|
|
52
|
-
statusBadge: {
|
|
53
|
-
...g.statusBadge,
|
|
54
|
-
...j?.statusBadge
|
|
55
|
-
},
|
|
56
|
-
approvalPolicy: {
|
|
57
|
-
...g.approvalPolicy,
|
|
58
|
-
...j?.approvalPolicy
|
|
59
|
-
}
|
|
5
|
+
function r({ labels: r, className: i }) {
|
|
6
|
+
let a = {
|
|
7
|
+
...t,
|
|
8
|
+
...r
|
|
60
9
|
};
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
children: /* @__PURE__ */ y(a, {
|
|
65
|
-
showCloseButton: !1,
|
|
66
|
-
className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
|
|
67
|
-
"data-testid": A,
|
|
68
|
-
children: [/* @__PURE__ */ y(s, {
|
|
69
|
-
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
|
|
70
|
-
children: [/* @__PURE__ */ y("div", {
|
|
71
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ v(c, {
|
|
74
|
-
className: T ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
|
|
75
|
-
children: E ? M.errorTitle : T ? M.loadingTitle : r?.title
|
|
76
|
-
}),
|
|
77
|
-
T ? /* @__PURE__ */ y("div", {
|
|
78
|
-
"aria-hidden": !0,
|
|
79
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
|
|
80
|
-
children: [/* @__PURE__ */ v(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ v(l, { className: "ttw:h-4 ttw:w-28" })]
|
|
81
|
-
}) : null,
|
|
82
|
-
r && !T && !E ? /* @__PURE__ */ v("p", {
|
|
83
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
84
|
-
children: r.subtitle
|
|
85
|
-
}) : null,
|
|
86
|
-
/* @__PURE__ */ v(o, {
|
|
87
|
-
className: "ttw:sr-only",
|
|
88
|
-
children: M.hiddenDescription
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
|
-
}), /* @__PURE__ */ y("div", {
|
|
92
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
93
|
-
children: [
|
|
94
|
-
k ? /* @__PURE__ */ v(e, {
|
|
95
|
-
type: "button",
|
|
96
|
-
variant: "ghost",
|
|
97
|
-
size: "icon",
|
|
98
|
-
"aria-label": M.expandButton,
|
|
99
|
-
onClick: k,
|
|
100
|
-
children: /* @__PURE__ */ v(x, { className: "ttw:size-4" })
|
|
101
|
-
}) : null,
|
|
102
|
-
r && !T && !E ? /* @__PURE__ */ v(f, {
|
|
103
|
-
actions: u.menu,
|
|
104
|
-
triggerLabel: M.overflowMenuTrigger,
|
|
105
|
-
placement: "header"
|
|
106
|
-
}) : null,
|
|
107
|
-
/* @__PURE__ */ v(e, {
|
|
108
|
-
type: "button",
|
|
109
|
-
variant: "ghost",
|
|
110
|
-
size: "icon",
|
|
111
|
-
"aria-label": M.closeButton,
|
|
112
|
-
onClick: O,
|
|
113
|
-
children: /* @__PURE__ */ v(S, { className: "ttw:size-4" })
|
|
114
|
-
})
|
|
115
|
-
]
|
|
116
|
-
})]
|
|
117
|
-
}), /* @__PURE__ */ v("div", {
|
|
118
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
|
|
119
|
-
children: E ? /* @__PURE__ */ v("p", {
|
|
120
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
121
|
-
children: M.errorDescription
|
|
122
|
-
}) : T ? /* @__PURE__ */ y("div", {
|
|
123
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
124
|
-
children: [/* @__PURE__ */ v(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ y("div", {
|
|
125
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
126
|
-
children: [
|
|
127
|
-
/* @__PURE__ */ v(l, { className: "ttw:h-4 ttw:w-40" }),
|
|
128
|
-
/* @__PURE__ */ v(l, { className: "ttw:h-9 ttw:w-full" }),
|
|
129
|
-
/* @__PURE__ */ v(l, { className: "ttw:h-9 ttw:w-full" })
|
|
130
|
-
]
|
|
131
|
-
})]
|
|
132
|
-
}) : r ? /* @__PURE__ */ y(_, { children: [
|
|
133
|
-
D,
|
|
134
|
-
/* @__PURE__ */ y("section", {
|
|
135
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ y("div", {
|
|
138
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
139
|
-
children: [
|
|
140
|
-
/* @__PURE__ */ v("span", {
|
|
141
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
142
|
-
children: M.amountDueHeading
|
|
143
|
-
}),
|
|
144
|
-
/* @__PURE__ */ v("span", {
|
|
145
|
-
className: "ttw:text-3xl ttw:font-semibold",
|
|
146
|
-
children: r.amountDueLabel
|
|
147
|
-
}),
|
|
148
|
-
/* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(p, {
|
|
149
|
-
status: r.status,
|
|
150
|
-
tone: r.statusTone,
|
|
151
|
-
labels: M.statusBadge
|
|
152
|
-
}) })
|
|
153
|
-
]
|
|
154
|
-
}),
|
|
155
|
-
/* @__PURE__ */ y("div", {
|
|
156
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
|
|
157
|
-
children: [/* @__PURE__ */ y("div", {
|
|
158
|
-
className: "ttw:flex ttw:flex-col",
|
|
159
|
-
children: [/* @__PURE__ */ v("span", {
|
|
160
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
161
|
-
children: M.invoiceDateLabel
|
|
162
|
-
}), /* @__PURE__ */ v("span", {
|
|
163
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
164
|
-
children: r.invoiceDateLabel
|
|
165
|
-
})]
|
|
166
|
-
}), /* @__PURE__ */ y("div", {
|
|
167
|
-
className: "ttw:flex ttw:flex-col",
|
|
168
|
-
children: [/* @__PURE__ */ v("span", {
|
|
169
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
170
|
-
children: M.dueDateLabel
|
|
171
|
-
}), /* @__PURE__ */ v("span", {
|
|
172
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
173
|
-
children: r.dueDateLabel
|
|
174
|
-
})]
|
|
175
|
-
})]
|
|
176
|
-
}),
|
|
177
|
-
u.row.length ? /* @__PURE__ */ v("div", {
|
|
178
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
179
|
-
children: /* @__PURE__ */ v(m, { actions: u.row })
|
|
180
|
-
}) : null
|
|
181
|
-
]
|
|
182
|
-
}),
|
|
183
|
-
/* @__PURE__ */ v(w, {
|
|
184
|
-
heading: M.payToHeading,
|
|
185
|
-
children: /* @__PURE__ */ v(C, { items: r.payToItems })
|
|
186
|
-
}),
|
|
187
|
-
/* @__PURE__ */ v(w, {
|
|
188
|
-
heading: M.invoiceDetailsHeading,
|
|
189
|
-
children: /* @__PURE__ */ y("div", {
|
|
190
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
191
|
-
children: [
|
|
192
|
-
/* @__PURE__ */ v(C, { items: r.invoiceItems }),
|
|
193
|
-
r.lineItems.length ? /* @__PURE__ */ y("table", {
|
|
194
|
-
className: "ttw:w-full ttw:text-sm",
|
|
195
|
-
children: [/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ y("tr", {
|
|
196
|
-
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
197
|
-
children: [
|
|
198
|
-
/* @__PURE__ */ v("th", {
|
|
199
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
|
|
200
|
-
children: M.lineItemsHeading
|
|
201
|
-
}),
|
|
202
|
-
/* @__PURE__ */ v("th", {
|
|
203
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
204
|
-
children: M.lineItemsQuantityHeading
|
|
205
|
-
}),
|
|
206
|
-
/* @__PURE__ */ v("th", {
|
|
207
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
208
|
-
children: M.lineItemsAmountHeading
|
|
209
|
-
})
|
|
210
|
-
]
|
|
211
|
-
}) }), /* @__PURE__ */ v("tbody", { children: r.lineItems.map((e) => /* @__PURE__ */ y("tr", {
|
|
212
|
-
className: "ttw:border-b ttw:border-border",
|
|
213
|
-
children: [
|
|
214
|
-
/* @__PURE__ */ y("td", {
|
|
215
|
-
className: "ttw:px-3 ttw:py-2",
|
|
216
|
-
children: [/* @__PURE__ */ v("span", {
|
|
217
|
-
className: "ttw:block",
|
|
218
|
-
children: e.description
|
|
219
|
-
}), /* @__PURE__ */ v("span", {
|
|
220
|
-
className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
|
|
221
|
-
children: e.glCodeLabel
|
|
222
|
-
})]
|
|
223
|
-
}),
|
|
224
|
-
/* @__PURE__ */ v("td", {
|
|
225
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
|
|
226
|
-
children: e.quantityLabel
|
|
227
|
-
}),
|
|
228
|
-
/* @__PURE__ */ v("td", {
|
|
229
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
|
|
230
|
-
children: e.amountLabel
|
|
231
|
-
})
|
|
232
|
-
]
|
|
233
|
-
}, e.id)) })]
|
|
234
|
-
}) : null,
|
|
235
|
-
/* @__PURE__ */ v("dl", {
|
|
236
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
237
|
-
children: r.totals.map((e) => /* @__PURE__ */ y("div", {
|
|
238
|
-
className: e.emphasis ? "ttw:flex ttw:justify-between ttw:gap-6 ttw:border-t ttw:border-border ttw:pt-2 ttw:text-base ttw:font-semibold" : "ttw:flex ttw:justify-between ttw:gap-6 ttw:text-sm",
|
|
239
|
-
children: [/* @__PURE__ */ v("dt", {
|
|
240
|
-
className: e.emphasis ? "" : "ttw:text-muted-foreground",
|
|
241
|
-
children: e.label
|
|
242
|
-
}), /* @__PURE__ */ v("dd", { children: e.value })]
|
|
243
|
-
}, e.label))
|
|
244
|
-
})
|
|
245
|
-
]
|
|
246
|
-
})
|
|
247
|
-
}),
|
|
248
|
-
b ? /* @__PURE__ */ v(d, {
|
|
249
|
-
view: b,
|
|
250
|
-
labels: M.approvalPolicy
|
|
251
|
-
}) : null
|
|
252
|
-
] }) : null
|
|
253
|
-
})]
|
|
254
|
-
})
|
|
10
|
+
return /* @__PURE__ */ n("span", {
|
|
11
|
+
className: e("ttw:text-amber-700", i),
|
|
12
|
+
children: a.missing
|
|
255
13
|
});
|
|
256
14
|
}
|
|
257
15
|
//#endregion
|
|
258
|
-
export {
|
|
16
|
+
export { r as MissingValue, r as default };
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js
|
|
5
|
-
function r({ label: r, tone: i = "warning" }) {
|
|
6
|
-
return /* @__PURE__ */ n(e, {
|
|
7
|
-
variant: "outline",
|
|
8
|
-
className: t[i],
|
|
9
|
-
children: r
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { r as BillDuplicateBadge, r as default };
|
|
1
|
+
import "./index52.js";
|
|
2
|
+
import "./index53.js";
|