@tesouro/embedded-components-react 0.11.253 → 0.11.255
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 +9 -344
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +35 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +3 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +47 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +87 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +238 -248
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +15 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +199 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js +150 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +2 -150
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +75 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +272 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -279
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js +51 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index20.js +369 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index21.js +2 -373
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +124 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +2 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js +51 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js +1 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +10 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +35 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js +133 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +52 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -315
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +158 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -162
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.js +27 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +2 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +119 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +9 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +76 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js +126 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index15.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +32 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +28 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +72 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +53 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +13 -14
- 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/feature/dist/lib/document/documentPreview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js +55 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +1322 -1312
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index53.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +0 -5
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js
CHANGED
|
@@ -1,199 +1,2 @@
|
|
|
1
|
-
import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a, DropdownMenu as o, DropdownMenuContent as s, DropdownMenuGroup as c, DropdownMenuItem as l, DropdownMenuLabel as ee, DropdownMenuSeparator as u, DropdownMenuTrigger as d, RequiredFieldsLegend as f } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { InlineErrorAlert as te } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
3
|
-
import "../../../../shared/ui/dist/index.js";
|
|
4
|
-
import { groupBySectionHeading as p } from "../../../ui/dist/index12.js";
|
|
5
|
-
import "../../../ui/dist/index.js";
|
|
6
|
-
import { BillDetailBody as m } from "./index15.js";
|
|
7
|
-
import "./index16.js";
|
|
8
|
-
import { BillFormFields as h } from "./index18.js";
|
|
9
|
-
import "./index19.js";
|
|
10
|
-
import { LineItemsSection as g } from "./index21.js";
|
|
11
|
-
import "./index22.js";
|
|
12
|
-
import { VendorSection as _ } from "./index27.js";
|
|
13
1
|
import "./index28.js";
|
|
14
|
-
import
|
|
15
|
-
import { useFocusFirstInvalidField as y } from "./index30.js";
|
|
16
|
-
import { Fragment as b, useId as x } from "react";
|
|
17
|
-
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
18
|
-
import { Minimize2 as ne, MoreVertical as T, X as E } from "lucide-react";
|
|
19
|
-
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js
|
|
20
|
-
function D({ open: D, onOpenChange: O, title: k, subtitle: A, notice: j, vendor: M, values: N, errors: P, onChange: F, lineItems: I, documentPanel: L, menuItems: R, readOnly: z, detail: B, detailEdit: V, isLineItemsLoading: H, isSaving: U, isSavingDraft: W, isSubmitting: G, showSubmit: K = !0, onCancel: q, onCollapse: J, onSaveDraft: Y, onFinalize: X, scrollToErrorToken: Z, testId: re, labels: ie }) {
|
|
21
|
-
let ae = x(), Q = v(ie), $ = !!(z && B), oe = R ? p(R) : [], se = y(Z);
|
|
22
|
-
return /* @__PURE__ */ C(t, {
|
|
23
|
-
open: D,
|
|
24
|
-
onOpenChange: O,
|
|
25
|
-
children: /* @__PURE__ */ w(n, {
|
|
26
|
-
showCloseButton: !1,
|
|
27
|
-
className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
|
|
28
|
-
"data-testid": re,
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ w(i, {
|
|
31
|
-
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
|
|
32
|
-
children: [/* @__PURE__ */ w("div", {
|
|
33
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ C(a, {
|
|
36
|
-
className: "ttw:text-xl ttw:font-semibold",
|
|
37
|
-
children: k
|
|
38
|
-
}),
|
|
39
|
-
A ? /* @__PURE__ */ C("p", {
|
|
40
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
41
|
-
children: A
|
|
42
|
-
}) : null,
|
|
43
|
-
/* @__PURE__ */ C(r, {
|
|
44
|
-
className: "ttw:sr-only",
|
|
45
|
-
children: Q.hiddenDescription
|
|
46
|
-
})
|
|
47
|
-
]
|
|
48
|
-
}), /* @__PURE__ */ w("div", {
|
|
49
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
50
|
-
children: [
|
|
51
|
-
J ? /* @__PURE__ */ C(e, {
|
|
52
|
-
type: "button",
|
|
53
|
-
variant: "ghost",
|
|
54
|
-
size: "icon",
|
|
55
|
-
"aria-label": Q.collapseButton,
|
|
56
|
-
disabled: U,
|
|
57
|
-
onClick: J,
|
|
58
|
-
children: /* @__PURE__ */ C(ne, { className: "ttw:size-4 ttw:rotate-90" })
|
|
59
|
-
}) : null,
|
|
60
|
-
R && R.length > 0 ? /* @__PURE__ */ w(o, { children: [/* @__PURE__ */ C(d, {
|
|
61
|
-
asChild: !0,
|
|
62
|
-
children: /* @__PURE__ */ C(e, {
|
|
63
|
-
type: "button",
|
|
64
|
-
variant: "ghost",
|
|
65
|
-
size: "icon",
|
|
66
|
-
"aria-label": Q.menuTrigger,
|
|
67
|
-
disabled: U,
|
|
68
|
-
children: /* @__PURE__ */ C(T, { className: "ttw:size-4" })
|
|
69
|
-
})
|
|
70
|
-
}), /* @__PURE__ */ C(s, {
|
|
71
|
-
align: "end",
|
|
72
|
-
children: oe.map((e, t) => {
|
|
73
|
-
let n = e.items.map((e) => {
|
|
74
|
-
let t = e.icon;
|
|
75
|
-
return /* @__PURE__ */ w(l, {
|
|
76
|
-
variant: e.destructive ? "destructive" : void 0,
|
|
77
|
-
disabled: e.disabled,
|
|
78
|
-
onSelect: e.onSelect,
|
|
79
|
-
children: [t ? /* @__PURE__ */ C(t, { className: "ttw:size-4" }) : null, e.label]
|
|
80
|
-
}, e.id);
|
|
81
|
-
});
|
|
82
|
-
if (!e.heading) return /* @__PURE__ */ C(b, { children: n }, e.items[0]?.id);
|
|
83
|
-
let r = `${ae}-${t}`;
|
|
84
|
-
return /* @__PURE__ */ w(b, { children: [
|
|
85
|
-
t > 0 ? /* @__PURE__ */ C(u, {}) : null,
|
|
86
|
-
/* @__PURE__ */ C(ee, {
|
|
87
|
-
id: r,
|
|
88
|
-
className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
|
|
89
|
-
children: e.heading
|
|
90
|
-
}),
|
|
91
|
-
/* @__PURE__ */ C(c, {
|
|
92
|
-
"aria-labelledby": r,
|
|
93
|
-
children: n
|
|
94
|
-
})
|
|
95
|
-
] }, e.items[0]?.id);
|
|
96
|
-
})
|
|
97
|
-
})] }) : null,
|
|
98
|
-
/* @__PURE__ */ C(e, {
|
|
99
|
-
type: "button",
|
|
100
|
-
variant: "ghost",
|
|
101
|
-
size: "icon",
|
|
102
|
-
"aria-label": Q.closeButton,
|
|
103
|
-
disabled: U,
|
|
104
|
-
onClick: q,
|
|
105
|
-
children: /* @__PURE__ */ C(E, { className: "ttw:size-4" })
|
|
106
|
-
})
|
|
107
|
-
]
|
|
108
|
-
})]
|
|
109
|
-
}),
|
|
110
|
-
/* @__PURE__ */ w("div", {
|
|
111
|
-
className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
|
|
112
|
-
children: [/* @__PURE__ */ w("div", {
|
|
113
|
-
ref: se,
|
|
114
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
|
|
115
|
-
children: [
|
|
116
|
-
P?.form ? /* @__PURE__ */ C("div", {
|
|
117
|
-
"data-invalid": "true",
|
|
118
|
-
children: /* @__PURE__ */ C(te, { children: P.form })
|
|
119
|
-
}) : null,
|
|
120
|
-
j ? /* @__PURE__ */ C("div", {
|
|
121
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
122
|
-
children: j
|
|
123
|
-
}) : null,
|
|
124
|
-
$ ? /* @__PURE__ */ C(m, {
|
|
125
|
-
...B,
|
|
126
|
-
labels: Q.detailBody
|
|
127
|
-
}) : /* @__PURE__ */ w(S, { children: [
|
|
128
|
-
/* @__PURE__ */ C(f, { labels: Q.requiredFieldsLegend }),
|
|
129
|
-
/* @__PURE__ */ C(_, {
|
|
130
|
-
...M,
|
|
131
|
-
onEdit: z ? void 0 : M.onEdit,
|
|
132
|
-
disabled: z,
|
|
133
|
-
labels: Q.vendorSection
|
|
134
|
-
}),
|
|
135
|
-
/* @__PURE__ */ C(h, {
|
|
136
|
-
values: N,
|
|
137
|
-
errors: P,
|
|
138
|
-
onChange: F,
|
|
139
|
-
disabled: z,
|
|
140
|
-
labels: Q.detailsFields
|
|
141
|
-
}),
|
|
142
|
-
/* @__PURE__ */ C(g, {
|
|
143
|
-
...I,
|
|
144
|
-
disabled: I.disabled || H || z,
|
|
145
|
-
labels: Q.lineItems
|
|
146
|
-
})
|
|
147
|
-
] })
|
|
148
|
-
]
|
|
149
|
-
}), /* @__PURE__ */ C("div", {
|
|
150
|
-
role: "region",
|
|
151
|
-
"aria-label": Q.documentPaneRegion,
|
|
152
|
-
tabIndex: 0,
|
|
153
|
-
className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
|
|
154
|
-
children: L
|
|
155
|
-
})]
|
|
156
|
-
}),
|
|
157
|
-
$ ? V ? /* @__PURE__ */ w("div", {
|
|
158
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
159
|
-
children: [/* @__PURE__ */ C(e, {
|
|
160
|
-
type: "button",
|
|
161
|
-
variant: "ghost",
|
|
162
|
-
disabled: V.isSaving,
|
|
163
|
-
onClick: V.onCancel,
|
|
164
|
-
children: Q.cancelButton
|
|
165
|
-
}), /* @__PURE__ */ C(e, {
|
|
166
|
-
type: "button",
|
|
167
|
-
onClick: V.onSave,
|
|
168
|
-
loading: V.isSaving,
|
|
169
|
-
disabled: V.isSaving,
|
|
170
|
-
children: Q.saveButton
|
|
171
|
-
})]
|
|
172
|
-
}) : null : /* @__PURE__ */ w("div", {
|
|
173
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
174
|
-
children: [/* @__PURE__ */ C(e, {
|
|
175
|
-
type: "button",
|
|
176
|
-
variant: "ghost",
|
|
177
|
-
disabled: U,
|
|
178
|
-
onClick: q,
|
|
179
|
-
children: z ? Q.closeButton : Q.cancelButton
|
|
180
|
-
}), z ? null : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(e, {
|
|
181
|
-
type: "button",
|
|
182
|
-
variant: K ? "secondary" : "default",
|
|
183
|
-
onClick: Y,
|
|
184
|
-
loading: W,
|
|
185
|
-
disabled: U || G || H,
|
|
186
|
-
children: Q.saveDraftButton
|
|
187
|
-
}), K ? /* @__PURE__ */ C(e, {
|
|
188
|
-
type: "button",
|
|
189
|
-
onClick: X,
|
|
190
|
-
loading: G,
|
|
191
|
-
disabled: U || W || H,
|
|
192
|
-
children: Q.submitButton
|
|
193
|
-
}) : null] })]
|
|
194
|
-
})
|
|
195
|
-
]
|
|
196
|
-
})
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
export { D as BillDialogScreen, D as default };
|
|
2
|
+
import "./index30.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
1
|
+
import { BILL_DETAIL_BODY_LABELS_EN as e, mergeBillDetailBodyLabels as t } from "./index13.js";
|
|
2
|
+
import "./index15.js";
|
|
3
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js
|
|
4
|
+
var n = {
|
|
5
|
+
loadingTitle: "Loading bill…",
|
|
6
|
+
hiddenDescription: "Bill details",
|
|
7
|
+
editButton: "Edit",
|
|
8
|
+
payButton: "Pay bill",
|
|
9
|
+
markAsPaidButton: "Mark as paid",
|
|
10
|
+
rejectButton: "Reject",
|
|
11
|
+
approveButton: "Approve",
|
|
12
|
+
cancelButton: "Cancel bill",
|
|
13
|
+
cancelScheduledPaymentButton: "Cancel scheduled payment",
|
|
14
|
+
reopenButton: "Reopen bill",
|
|
15
|
+
forceApproveButton: "Approve",
|
|
16
|
+
forceRejectButton: "Reject",
|
|
17
|
+
policyOverridesGroup: "Policy overrides",
|
|
18
|
+
overflowMenuTrigger: "More actions",
|
|
19
|
+
expandButton: "Expand to full page",
|
|
20
|
+
closeButton: "Close",
|
|
21
|
+
detailBody: e
|
|
22
|
+
};
|
|
23
|
+
function r(e) {
|
|
24
|
+
return {
|
|
25
|
+
...n,
|
|
26
|
+
...e,
|
|
27
|
+
detailBody: t(e?.detailBody)
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export { n as BILL_DETAILS_SHEET_LABELS_EN, r as mergeBillDetailsSheetLabels };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js
CHANGED
|
@@ -1,44 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../../../shared/
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
1
|
+
import { FormSheet as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { TooltipIconButton as t } from "../../../../shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js";
|
|
3
|
+
import "../../../../shared/ui/dist/index.js";
|
|
4
|
+
import { BillActionButtons as n, NO_BILL_ACTIONS as r } from "../../../ui/dist/index2.js";
|
|
5
|
+
import { BillOverflowMenu as i } from "../../../ui/dist/index13.js";
|
|
6
|
+
import "../../../ui/dist/index.js";
|
|
7
|
+
import { BillDetailBody as a, isBillDetailReady as o } from "./index14.js";
|
|
8
|
+
import "./index15.js";
|
|
9
|
+
import { mergeBillDetailsSheetLabels as s } from "./index32.js";
|
|
10
|
+
import { useMemo as c } from "react";
|
|
11
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
import { Maximize2Icon as f } from "lucide-react";
|
|
7
13
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
14
|
+
function p({ open: p, onOpenChange: h, title: g, subtitle: _, actions: v = r, notice: y, onClose: b, onExpand: x, testId: S, labels: C, ...w }) {
|
|
15
|
+
let T = c(() => s(C), [C]), E = o(w), { primary: D, secondary: O } = E ? v.footer : {};
|
|
16
|
+
return /* @__PURE__ */ u(e, {
|
|
17
|
+
open: p,
|
|
18
|
+
onOpenChange: (e) => e ? h(e) : b(),
|
|
19
|
+
title: E && g ? g : /* @__PURE__ */ u("span", {
|
|
20
|
+
className: "ttw:sr-only",
|
|
21
|
+
children: E || w.isError ? T.hiddenDescription : T.loadingTitle
|
|
22
|
+
}),
|
|
23
|
+
description: E ? _ : void 0,
|
|
24
|
+
headerActions: /* @__PURE__ */ d(l, { children: [
|
|
25
|
+
E ? /* @__PURE__ */ u(n, { actions: v.header }) : null,
|
|
26
|
+
x ? /* @__PURE__ */ u(t, {
|
|
27
|
+
label: T.expandButton,
|
|
28
|
+
icon: f,
|
|
29
|
+
onClick: x
|
|
30
|
+
}) : null,
|
|
31
|
+
E ? /* @__PURE__ */ u(i, {
|
|
32
|
+
actions: v.menu,
|
|
33
|
+
triggerLabel: T.overflowMenuTrigger
|
|
34
|
+
}) : null
|
|
35
|
+
] }),
|
|
36
|
+
labels: { close: T.closeButton },
|
|
37
|
+
testIds: { content: S },
|
|
38
|
+
children: /* @__PURE__ */ d("div", {
|
|
39
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:pb-6",
|
|
40
|
+
children: [E && y ? y : null, /* @__PURE__ */ u(a, {
|
|
41
|
+
...w,
|
|
42
|
+
workflowActions: m(O, D),
|
|
43
|
+
collapsibleSections: !0,
|
|
44
|
+
labels: T.detailBody
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function m(...e) {
|
|
50
|
+
let t = e.filter((e) => !!e);
|
|
51
|
+
return t.length ? /* @__PURE__ */ u(n, { actions: t }) : void 0;
|
|
52
|
+
}
|
|
53
|
+
export { p as BillDetailsSheet, p as default };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js
CHANGED
|
@@ -1,315 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import "../../../../shared/ui/dist/index.js";
|
|
4
|
-
import { BillActionButtons as f, NO_BILL_ACTIONS as p } from "../../../ui/dist/index2.js";
|
|
5
|
-
import { BillOverflowMenu as m } from "../../../ui/dist/index13.js";
|
|
6
|
-
import "../../../ui/dist/index.js";
|
|
7
|
-
import { BillStatusBadge as h } from "../../../../shared/document-status/ui/dist/index4.js";
|
|
8
|
-
import "../../../../shared/document-status/ui/dist/index.js";
|
|
9
|
-
import { ApprovalPolicyCard as g } from "./index3.js";
|
|
10
|
-
import "./index4.js";
|
|
11
|
-
import { BillRejectionNotice as _ } from "./index6.js";
|
|
12
|
-
import "./index7.js";
|
|
13
|
-
import { PaymentHistoryList as v } from "./index8.js";
|
|
14
|
-
import "./index9.js";
|
|
15
|
-
import { ScheduledSummaryBadge as y } from "./index5.js";
|
|
16
|
-
import { BILL_DETAILS_SHEET_LABELS_EN as b } from "./index33.js";
|
|
17
|
-
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
18
|
-
import { MoveDiagonal2Icon as w, XIcon as T } from "lucide-react";
|
|
19
|
-
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js
|
|
20
|
-
function E({ items: e }) {
|
|
21
|
-
return /* @__PURE__ */ S("dl", {
|
|
22
|
-
className: "ttw:flex ttw:flex-col ttw:divide-y ttw:divide-border",
|
|
23
|
-
children: e.map((e) => /* @__PURE__ */ C("div", {
|
|
24
|
-
className: "ttw:flex ttw:items-start ttw:gap-4 ttw:py-2.5",
|
|
25
|
-
children: [/* @__PURE__ */ S("dt", {
|
|
26
|
-
className: "ttw:w-[140px] ttw:shrink-0 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
|
|
27
|
-
children: e.label
|
|
28
|
-
}), /* @__PURE__ */ C("dd", {
|
|
29
|
-
className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:items-start",
|
|
30
|
-
children: [/* @__PURE__ */ S("span", {
|
|
31
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
32
|
-
children: e.value
|
|
33
|
-
}), e.secondaryValue ? /* @__PURE__ */ S("span", {
|
|
34
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
35
|
-
children: e.secondaryValue
|
|
36
|
-
}) : null]
|
|
37
|
-
})]
|
|
38
|
-
}, e.label))
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
function D({ open: D, onOpenChange: O, details: k, actions: A = p, approvalPolicy: j, showApprovalOverrideNotice: M, awaitingApprovalNotice: N, scheduledSummary: P, scheduledSummaryDate: F, paymentHistory: I, paymentHistoryError: L, paymentHistoryLoading: R, auditHistory: z, auditHistoryError: B, auditHistoryLoading: V, auditHistoryNamesError: H, isLoading: U, isError: W, notice: G, onClose: K, onExpand: q, testId: J, labels: Y }) {
|
|
42
|
-
let X = {
|
|
43
|
-
...b,
|
|
44
|
-
...Y,
|
|
45
|
-
statusBadge: {
|
|
46
|
-
...b.statusBadge,
|
|
47
|
-
...Y?.statusBadge
|
|
48
|
-
},
|
|
49
|
-
approvalPolicy: {
|
|
50
|
-
...b.approvalPolicy,
|
|
51
|
-
...Y?.approvalPolicy
|
|
52
|
-
},
|
|
53
|
-
auditHistory: {
|
|
54
|
-
...b.auditHistory,
|
|
55
|
-
...Y?.auditHistory
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
return /* @__PURE__ */ S(i, {
|
|
59
|
-
open: D,
|
|
60
|
-
onOpenChange: (e) => e ? O(e) : K(),
|
|
61
|
-
children: /* @__PURE__ */ C(a, {
|
|
62
|
-
showCloseButton: !1,
|
|
63
|
-
className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
|
|
64
|
-
"data-testid": J,
|
|
65
|
-
children: [/* @__PURE__ */ C(s, {
|
|
66
|
-
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
|
|
67
|
-
children: [/* @__PURE__ */ C("div", {
|
|
68
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ S(c, {
|
|
71
|
-
className: U ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
|
|
72
|
-
children: W ? X.errorTitle : U ? X.loadingTitle : k?.title
|
|
73
|
-
}),
|
|
74
|
-
U ? /* @__PURE__ */ C("div", {
|
|
75
|
-
"aria-hidden": !0,
|
|
76
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
|
|
77
|
-
children: [/* @__PURE__ */ S(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ S(l, { className: "ttw:h-4 ttw:w-28" })]
|
|
78
|
-
}) : null,
|
|
79
|
-
k && !U && !W ? /* @__PURE__ */ S("p", {
|
|
80
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
81
|
-
children: k.subtitle
|
|
82
|
-
}) : null,
|
|
83
|
-
/* @__PURE__ */ S(o, {
|
|
84
|
-
className: "ttw:sr-only",
|
|
85
|
-
children: X.hiddenDescription
|
|
86
|
-
})
|
|
87
|
-
]
|
|
88
|
-
}), /* @__PURE__ */ C("div", {
|
|
89
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
90
|
-
children: [
|
|
91
|
-
q ? /* @__PURE__ */ S(n, {
|
|
92
|
-
type: "button",
|
|
93
|
-
variant: "ghost",
|
|
94
|
-
size: "icon",
|
|
95
|
-
"aria-label": X.expandButton,
|
|
96
|
-
onClick: q,
|
|
97
|
-
children: /* @__PURE__ */ S(w, { className: "ttw:size-4" })
|
|
98
|
-
}) : null,
|
|
99
|
-
k && !U && !W ? /* @__PURE__ */ S(m, {
|
|
100
|
-
actions: A.menu,
|
|
101
|
-
triggerLabel: X.overflowMenuTrigger,
|
|
102
|
-
placement: "header"
|
|
103
|
-
}) : null,
|
|
104
|
-
/* @__PURE__ */ S(n, {
|
|
105
|
-
type: "button",
|
|
106
|
-
variant: "ghost",
|
|
107
|
-
size: "icon",
|
|
108
|
-
"aria-label": X.closeButton,
|
|
109
|
-
onClick: K,
|
|
110
|
-
children: /* @__PURE__ */ S(T, { className: "ttw:size-4" })
|
|
111
|
-
})
|
|
112
|
-
]
|
|
113
|
-
})]
|
|
114
|
-
}), /* @__PURE__ */ S("div", {
|
|
115
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
|
|
116
|
-
children: W ? /* @__PURE__ */ S("p", {
|
|
117
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
118
|
-
children: X.errorDescription
|
|
119
|
-
}) : U ? /* @__PURE__ */ C("div", {
|
|
120
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
121
|
-
children: [/* @__PURE__ */ S(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ C("div", {
|
|
122
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ S(l, { className: "ttw:h-4 ttw:w-40" }),
|
|
125
|
-
/* @__PURE__ */ S(l, { className: "ttw:h-9 ttw:w-full" }),
|
|
126
|
-
/* @__PURE__ */ S(l, { className: "ttw:h-9 ttw:w-full" })
|
|
127
|
-
]
|
|
128
|
-
})]
|
|
129
|
-
}) : k ? /* @__PURE__ */ C(x, { children: [
|
|
130
|
-
G,
|
|
131
|
-
/* @__PURE__ */ C("section", {
|
|
132
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4",
|
|
133
|
-
children: [
|
|
134
|
-
/* @__PURE__ */ C("div", {
|
|
135
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
136
|
-
children: [k.paidOnLabel ? /* @__PURE__ */ C("div", {
|
|
137
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
138
|
-
children: [/* @__PURE__ */ C("div", {
|
|
139
|
-
className: "ttw:flex ttw:flex-col",
|
|
140
|
-
children: [/* @__PURE__ */ S("span", {
|
|
141
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
142
|
-
children: X.amountDueHeading
|
|
143
|
-
}), /* @__PURE__ */ S("span", {
|
|
144
|
-
className: "ttw:text-3xl ttw:font-semibold",
|
|
145
|
-
children: k.amountDueLabel
|
|
146
|
-
})]
|
|
147
|
-
}), /* @__PURE__ */ C("div", {
|
|
148
|
-
className: "ttw:flex ttw:flex-col",
|
|
149
|
-
children: [/* @__PURE__ */ S("span", {
|
|
150
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
151
|
-
children: X.amountPaidHeading
|
|
152
|
-
}), /* @__PURE__ */ S("span", {
|
|
153
|
-
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
154
|
-
children: k.amountPaidLabel
|
|
155
|
-
})]
|
|
156
|
-
})]
|
|
157
|
-
}) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("span", {
|
|
158
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
159
|
-
children: X.amountDueHeading
|
|
160
|
-
}), /* @__PURE__ */ S("span", {
|
|
161
|
-
className: "ttw:text-3xl ttw:font-semibold",
|
|
162
|
-
children: k.amountDueLabel
|
|
163
|
-
})] }), /* @__PURE__ */ S("div", { children: k.paidOnLabel ? /* @__PURE__ */ S(t, {
|
|
164
|
-
variant: "outline",
|
|
165
|
-
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
166
|
-
children: k.paidOnLabel
|
|
167
|
-
}) : P ? /* @__PURE__ */ S(y, {
|
|
168
|
-
summary: P,
|
|
169
|
-
date: F
|
|
170
|
-
}) : /* @__PURE__ */ S(h, {
|
|
171
|
-
status: k.status,
|
|
172
|
-
tone: k.statusTone,
|
|
173
|
-
labels: X.statusBadge
|
|
174
|
-
}) })]
|
|
175
|
-
}),
|
|
176
|
-
/* @__PURE__ */ C("div", {
|
|
177
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
|
|
178
|
-
children: [/* @__PURE__ */ C("div", {
|
|
179
|
-
className: "ttw:flex ttw:flex-col",
|
|
180
|
-
children: [/* @__PURE__ */ S("span", {
|
|
181
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
182
|
-
children: X.invoiceDateLabel
|
|
183
|
-
}), /* @__PURE__ */ S("span", {
|
|
184
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
185
|
-
children: k.invoiceDateLabel
|
|
186
|
-
})]
|
|
187
|
-
}), /* @__PURE__ */ C("div", {
|
|
188
|
-
className: "ttw:flex ttw:flex-col",
|
|
189
|
-
children: [/* @__PURE__ */ S("span", {
|
|
190
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
191
|
-
children: X.dueDateLabel
|
|
192
|
-
}), /* @__PURE__ */ S("span", {
|
|
193
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
194
|
-
children: /* @__PURE__ */ S(d, {
|
|
195
|
-
label: k.dueDateLabel,
|
|
196
|
-
overdueLabel: k.dueDateOverdueLabel,
|
|
197
|
-
accessibleLabel: k.dueDateAccessibleLabel
|
|
198
|
-
})
|
|
199
|
-
})]
|
|
200
|
-
})]
|
|
201
|
-
}),
|
|
202
|
-
k.rejection ? /* @__PURE__ */ S(_, { ...k.rejection }) : null,
|
|
203
|
-
M ? /* @__PURE__ */ S(u, {
|
|
204
|
-
variant: "caption",
|
|
205
|
-
color: "muted",
|
|
206
|
-
children: X.approvalOverrideNotice
|
|
207
|
-
}) : N ? /* @__PURE__ */ S(u, {
|
|
208
|
-
variant: "caption",
|
|
209
|
-
color: "muted",
|
|
210
|
-
children: N
|
|
211
|
-
}) : null,
|
|
212
|
-
A.row.length ? /* @__PURE__ */ S("div", {
|
|
213
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
214
|
-
children: /* @__PURE__ */ S(f, { actions: A.row })
|
|
215
|
-
}) : null
|
|
216
|
-
]
|
|
217
|
-
}),
|
|
218
|
-
/* @__PURE__ */ S(r, {
|
|
219
|
-
defaultOpen: !0,
|
|
220
|
-
heading: k.paidOnLabel ? X.payToHeadingPaid : X.payToHeading,
|
|
221
|
-
children: /* @__PURE__ */ S(E, { items: k.payToItems })
|
|
222
|
-
}),
|
|
223
|
-
I?.length || L || R ? /* @__PURE__ */ S(r, {
|
|
224
|
-
defaultOpen: !0,
|
|
225
|
-
heading: X.paymentHistoryHeading,
|
|
226
|
-
children: L ? /* @__PURE__ */ S("p", {
|
|
227
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
228
|
-
children: X.paymentHistoryErrorDescription
|
|
229
|
-
}) : R ? /* @__PURE__ */ S(l, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ S(v, { records: I ?? [] })
|
|
230
|
-
}) : null,
|
|
231
|
-
/* @__PURE__ */ S(r, {
|
|
232
|
-
defaultOpen: !0,
|
|
233
|
-
heading: X.invoiceDetailsHeading,
|
|
234
|
-
children: /* @__PURE__ */ C("div", {
|
|
235
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
236
|
-
children: [
|
|
237
|
-
/* @__PURE__ */ S(E, { items: k.invoiceItems }),
|
|
238
|
-
k.lineItems.length ? /* @__PURE__ */ C("table", {
|
|
239
|
-
className: "ttw:w-full ttw:text-sm",
|
|
240
|
-
children: [/* @__PURE__ */ S("thead", { children: /* @__PURE__ */ C("tr", {
|
|
241
|
-
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
242
|
-
children: [
|
|
243
|
-
/* @__PURE__ */ S("th", {
|
|
244
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
|
|
245
|
-
children: X.lineItemsHeading
|
|
246
|
-
}),
|
|
247
|
-
/* @__PURE__ */ S("th", {
|
|
248
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
249
|
-
children: X.lineItemsQuantityHeading
|
|
250
|
-
}),
|
|
251
|
-
/* @__PURE__ */ S("th", {
|
|
252
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
253
|
-
children: X.lineItemsAmountHeading
|
|
254
|
-
})
|
|
255
|
-
]
|
|
256
|
-
}) }), /* @__PURE__ */ S("tbody", { children: k.lineItems.map((e) => /* @__PURE__ */ C("tr", {
|
|
257
|
-
className: "ttw:border-b ttw:border-border",
|
|
258
|
-
children: [
|
|
259
|
-
/* @__PURE__ */ C("td", {
|
|
260
|
-
className: "ttw:px-3 ttw:py-2",
|
|
261
|
-
children: [/* @__PURE__ */ S("span", {
|
|
262
|
-
className: "ttw:block",
|
|
263
|
-
children: e.description
|
|
264
|
-
}), /* @__PURE__ */ S("span", {
|
|
265
|
-
className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
|
|
266
|
-
children: e.glCodeLabel
|
|
267
|
-
})]
|
|
268
|
-
}),
|
|
269
|
-
/* @__PURE__ */ S("td", {
|
|
270
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
|
|
271
|
-
children: e.quantityLabel
|
|
272
|
-
}),
|
|
273
|
-
/* @__PURE__ */ S("td", {
|
|
274
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
|
|
275
|
-
children: e.amountLabel
|
|
276
|
-
})
|
|
277
|
-
]
|
|
278
|
-
}, e.id)) })]
|
|
279
|
-
}) : null,
|
|
280
|
-
/* @__PURE__ */ S("dl", {
|
|
281
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
282
|
-
children: k.totals.map((e) => /* @__PURE__ */ C("div", {
|
|
283
|
-
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",
|
|
284
|
-
children: [/* @__PURE__ */ S("dt", {
|
|
285
|
-
className: e.emphasis ? "" : "ttw:text-muted-foreground",
|
|
286
|
-
children: e.label
|
|
287
|
-
}), /* @__PURE__ */ S("dd", { children: e.value })]
|
|
288
|
-
}, e.label))
|
|
289
|
-
})
|
|
290
|
-
]
|
|
291
|
-
})
|
|
292
|
-
}),
|
|
293
|
-
/* @__PURE__ */ C(r, {
|
|
294
|
-
heading: X.auditHistory.heading,
|
|
295
|
-
children: [H ? /* @__PURE__ */ S(u, {
|
|
296
|
-
variant: "caption",
|
|
297
|
-
color: "muted",
|
|
298
|
-
children: X.auditHistory.namesError
|
|
299
|
-
}) : null, /* @__PURE__ */ S(e, {
|
|
300
|
-
rows: z ?? [],
|
|
301
|
-
isLoading: V,
|
|
302
|
-
isError: B,
|
|
303
|
-
labels: X.auditHistory
|
|
304
|
-
})]
|
|
305
|
-
}),
|
|
306
|
-
j ? /* @__PURE__ */ S(g, {
|
|
307
|
-
view: j,
|
|
308
|
-
labels: X.approvalPolicy
|
|
309
|
-
}) : null
|
|
310
|
-
] }) : null
|
|
311
|
-
})]
|
|
312
|
-
})
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
export { D as BillDetailsSheet, D as default };
|
|
1
|
+
import "./index32.js";
|
|
2
|
+
import "./index33.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js
|
|
2
|
+
var e = {
|
|
3
|
+
message: "This bill is a possible duplicate.",
|
|
4
|
+
titleAnnouncement: "Possible duplicate.",
|
|
5
|
+
createdOnColumn: "Created",
|
|
6
|
+
dueDateColumn: "Due date",
|
|
7
|
+
amountColumn: "Amount",
|
|
8
|
+
statusColumn: "Status",
|
|
9
|
+
loadingRows: "Loading possible duplicates",
|
|
10
|
+
question: "Is this bill a duplicate?",
|
|
11
|
+
openFullScreenButton: "Review duplicate in full screen",
|
|
12
|
+
notADuplicateButton: "Not a duplicate",
|
|
13
|
+
removeBillButton: "Cancel this bill"
|
|
14
|
+
};
|
|
15
|
+
export { e as BILL_DUPLICATE_NOTICE_LABELS_EN };
|