@tesouro/embedded-components-react 0.5.75 → 0.5.77
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 +0 -8
- 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 +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +140 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +46 -140
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +114 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +182 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -164
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +31 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +89 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +405 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +12 -381
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +84 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +54 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +223 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +37 -223
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +245 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +575 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -572
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +247 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +123 -241
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +211 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +98 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -100
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +12 -269
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +97 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +76 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +277 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +16 -369
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +15 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +32 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +374 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +87 -188
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +10 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +88 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +167 -161
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1391 -1369
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -27
|
@@ -1,197 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import { BillFormFields as m } from "./index34.js";
|
|
7
|
-
import "./index35.js";
|
|
8
|
-
import { groupBySectionHeading as h } from "./index36.js";
|
|
9
|
-
import "./index38.js";
|
|
10
|
-
import { LineItemsSection as g } from "./index40.js";
|
|
11
|
-
import "./index41.js";
|
|
12
|
-
import { VendorSection as _ } from "./index46.js";
|
|
13
|
-
import "./index47.js";
|
|
14
|
-
import { mergeBillCreateScreenLabels as v } from "./index48.js";
|
|
15
|
-
import { useFocusFirstInvalidField as y } from "./index49.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";
|
|
1
|
+
import { Command as e, CommandGroup as t, CommandInput as n, CommandItem as r, CommandList as i, CommandSeparator as a, FieldRequirement as o, Label as s, Popover as c, PopoverContent as l, PopoverTrigger as u, Skeleton as d, cn as f } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { mergeVendorSearchComboboxLabels as p } from "./index49.js";
|
|
3
|
+
import { useId as m, useState as h } from "react";
|
|
4
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
5
|
+
import { ChevronDown as v, Plus as y } from "lucide-react";
|
|
19
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
]
|
|
7
|
+
var b = 5, x = "ttw:min-h-44";
|
|
8
|
+
function S({ query: S, onQueryChange: C, results: w, isLoading: T, onAddVendor: E, testId: D, labels: O }) {
|
|
9
|
+
let k = p(O), A = m(), [j, M] = h(!1);
|
|
10
|
+
return /* @__PURE__ */ _("div", {
|
|
11
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
12
|
+
"data-testid": D,
|
|
13
|
+
children: [/* @__PURE__ */ g(s, {
|
|
14
|
+
htmlFor: A,
|
|
15
|
+
requirement: o.Required,
|
|
16
|
+
labels: k.fieldMarkers,
|
|
17
|
+
children: k.fieldLabel
|
|
18
|
+
}), /* @__PURE__ */ _(c, {
|
|
19
|
+
open: j,
|
|
20
|
+
onOpenChange: M,
|
|
21
|
+
children: [/* @__PURE__ */ g(u, {
|
|
22
|
+
asChild: !0,
|
|
23
|
+
children: /* @__PURE__ */ _("button", {
|
|
24
|
+
type: "button",
|
|
25
|
+
id: A,
|
|
26
|
+
role: "combobox",
|
|
27
|
+
"aria-expanded": j,
|
|
28
|
+
"aria-required": !0,
|
|
29
|
+
className: "ttw:flex ttw:h-10 ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:text-left ttw:text-sm ttw:shadow-xs ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50",
|
|
30
|
+
children: [/* @__PURE__ */ g("span", {
|
|
31
|
+
className: "ttw:min-w-0 ttw:flex-1 ttw:truncate ttw:text-muted-foreground",
|
|
32
|
+
children: k.triggerPlaceholder
|
|
33
|
+
}), /* @__PURE__ */ g(v, {
|
|
34
|
+
"aria-hidden": !0,
|
|
35
|
+
className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50"
|
|
108
36
|
})]
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
37
|
+
})
|
|
38
|
+
}), /* @__PURE__ */ g(l, {
|
|
39
|
+
align: "start",
|
|
40
|
+
className: "ttw:w-[var(--radix-popover-trigger-width)] ttw:p-0",
|
|
41
|
+
children: /* @__PURE__ */ _(e, {
|
|
42
|
+
shouldFilter: !1,
|
|
43
|
+
children: [/* @__PURE__ */ g(n, {
|
|
44
|
+
value: S,
|
|
45
|
+
onValueChange: C,
|
|
46
|
+
placeholder: k.placeholder,
|
|
47
|
+
"aria-label": k.placeholder
|
|
48
|
+
}), /* @__PURE__ */ _(i, {
|
|
49
|
+
className: f("ttw:max-h-72", x),
|
|
115
50
|
children: [
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}),
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
51
|
+
T ? /* @__PURE__ */ _("div", {
|
|
52
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-2",
|
|
53
|
+
"aria-busy": "true",
|
|
54
|
+
children: [/* @__PURE__ */ g("span", {
|
|
55
|
+
className: "ttw:sr-only",
|
|
56
|
+
children: k.loading
|
|
57
|
+
}), Array.from({ length: b }).map((e, t) => /* @__PURE__ */ _("div", {
|
|
58
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:px-2 ttw:py-1.5",
|
|
59
|
+
children: [/* @__PURE__ */ g(d, {
|
|
60
|
+
height: 14,
|
|
61
|
+
width: "55%"
|
|
62
|
+
}), /* @__PURE__ */ g(d, {
|
|
63
|
+
height: 14,
|
|
64
|
+
width: "30%"
|
|
65
|
+
})]
|
|
66
|
+
}, t))]
|
|
67
|
+
}) : w.length === 0 ? /* @__PURE__ */ g("div", {
|
|
68
|
+
className: f("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm", x),
|
|
69
|
+
children: k.emptyResults
|
|
70
|
+
}) : /* @__PURE__ */ g(t, { children: w.map((e, t) => /* @__PURE__ */ _(r, {
|
|
71
|
+
value: `${e.name} ${e.email} ${t}`,
|
|
72
|
+
onSelect: () => e.onSelect(),
|
|
73
|
+
children: [/* @__PURE__ */ g("span", {
|
|
74
|
+
className: "ttw:text-foreground",
|
|
75
|
+
children: e.name
|
|
76
|
+
}), /* @__PURE__ */ g("span", {
|
|
77
|
+
className: "ttw:ml-auto ttw:text-muted-foreground",
|
|
78
|
+
children: e.email
|
|
79
|
+
})]
|
|
80
|
+
}, `${e.name}:${e.email}:${t}`)) }),
|
|
81
|
+
/* @__PURE__ */ g(a, {}),
|
|
82
|
+
/* @__PURE__ */ _(r, {
|
|
83
|
+
value: "__add_vendor__",
|
|
84
|
+
onSelect: E,
|
|
85
|
+
className: "ttw:sticky ttw:bottom-0 ttw:bg-popover ttw:text-primary",
|
|
86
|
+
children: [/* @__PURE__ */ g(y, { className: "ttw:size-4 ttw:text-primary" }), k.addVendorAction]
|
|
87
|
+
})
|
|
148
88
|
]
|
|
149
|
-
}), /* @__PURE__ */ C("div", {
|
|
150
|
-
className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
|
|
151
|
-
children: L
|
|
152
|
-
})]
|
|
153
|
-
}),
|
|
154
|
-
$ ? V ? /* @__PURE__ */ w("div", {
|
|
155
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
156
|
-
children: [/* @__PURE__ */ C(e, {
|
|
157
|
-
type: "button",
|
|
158
|
-
variant: "ghost",
|
|
159
|
-
disabled: V.isSaving,
|
|
160
|
-
onClick: V.onCancel,
|
|
161
|
-
children: Q.cancelButton
|
|
162
|
-
}), /* @__PURE__ */ C(e, {
|
|
163
|
-
type: "button",
|
|
164
|
-
onClick: V.onSave,
|
|
165
|
-
loading: V.isSaving,
|
|
166
|
-
disabled: V.isSaving,
|
|
167
|
-
children: Q.saveButton
|
|
168
89
|
})]
|
|
169
|
-
}) : null : /* @__PURE__ */ w("div", {
|
|
170
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
|
|
171
|
-
children: [/* @__PURE__ */ C(e, {
|
|
172
|
-
type: "button",
|
|
173
|
-
variant: "ghost",
|
|
174
|
-
disabled: U,
|
|
175
|
-
onClick: q,
|
|
176
|
-
children: z ? Q.closeButton : Q.cancelButton
|
|
177
|
-
}), z ? null : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(e, {
|
|
178
|
-
type: "button",
|
|
179
|
-
variant: K ? "secondary" : "default",
|
|
180
|
-
onClick: Y,
|
|
181
|
-
loading: W,
|
|
182
|
-
disabled: U || G || H,
|
|
183
|
-
children: Q.saveDraftButton
|
|
184
|
-
}), K ? /* @__PURE__ */ C(e, {
|
|
185
|
-
type: "button",
|
|
186
|
-
onClick: X,
|
|
187
|
-
loading: G,
|
|
188
|
-
disabled: U || W || H,
|
|
189
|
-
children: Q.submitButton
|
|
190
|
-
}) : null] })]
|
|
191
90
|
})
|
|
192
|
-
]
|
|
193
|
-
})
|
|
91
|
+
})]
|
|
92
|
+
})]
|
|
194
93
|
});
|
|
195
94
|
}
|
|
196
95
|
//#endregion
|
|
197
|
-
export {
|
|
96
|
+
export { S as VendorSearchCombobox, S as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./index49.js";
|
|
2
2
|
import "./index50.js";
|
|
@@ -1,4 +1,32 @@
|
|
|
1
|
+
import { VENDOR_SUMMARY_CARD_LABELS_EN as e } from "./index27.js";
|
|
2
|
+
import "./index29.js";
|
|
3
|
+
import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t, mergeVendorSearchComboboxLabels as n } from "./index49.js";
|
|
4
|
+
import "./index51.js";
|
|
1
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js
|
|
2
|
-
var
|
|
6
|
+
var r = {
|
|
7
|
+
heading: "Who are you paying?",
|
|
8
|
+
summaryCard: e,
|
|
9
|
+
search: t,
|
|
10
|
+
noVendorPlaceholder: "No vendor selected"
|
|
11
|
+
};
|
|
12
|
+
function i(e) {
|
|
13
|
+
return {
|
|
14
|
+
...r,
|
|
15
|
+
...e,
|
|
16
|
+
summaryCard: {
|
|
17
|
+
...r.summaryCard,
|
|
18
|
+
...e?.summaryCard,
|
|
19
|
+
ach: {
|
|
20
|
+
...r.summaryCard.ach,
|
|
21
|
+
...e?.summaryCard?.ach,
|
|
22
|
+
fieldMarkers: {
|
|
23
|
+
...r.summaryCard.ach.fieldMarkers,
|
|
24
|
+
...e?.summaryCard?.ach?.fieldMarkers
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
search: n(e?.search)
|
|
29
|
+
};
|
|
30
|
+
}
|
|
3
31
|
//#endregion
|
|
4
|
-
export {
|
|
32
|
+
export { r as VENDOR_SECTION_LABELS_EN, i as mergeVendorSectionLabels };
|
|
@@ -1,41 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as
|
|
1
|
+
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { VendorSummaryCard as t } from "./index28.js";
|
|
3
|
+
import "./index29.js";
|
|
4
|
+
import { VendorSearchCombobox as n } from "./index50.js";
|
|
5
|
+
import "./index51.js";
|
|
6
|
+
import { mergeVendorSectionLabels as r } from "./index52.js";
|
|
7
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
8
8
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js
|
|
9
|
-
function
|
|
10
|
-
let d =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
className: "ttw:
|
|
20
|
-
children:
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
9
|
+
function o(o) {
|
|
10
|
+
let { onEdit: s, error: c, testId: l, labels: u, disabled: d } = o, f = r(u);
|
|
11
|
+
return /* @__PURE__ */ a("section", {
|
|
12
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
13
|
+
"data-invalid": c ? !0 : void 0,
|
|
14
|
+
"data-testid": l,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ i(e, {
|
|
17
|
+
component: "h2",
|
|
18
|
+
variant: "h6",
|
|
19
|
+
className: "ttw:font-semibold",
|
|
20
|
+
children: f.heading
|
|
21
|
+
}),
|
|
22
|
+
o.mode === "resolved" ? /* @__PURE__ */ i(t, {
|
|
23
|
+
summary: o.summary,
|
|
24
|
+
onEdit: s,
|
|
25
|
+
paymentInstructions: d ? void 0 : o.paymentInstructions,
|
|
26
|
+
showPaymentInstructions: o.showPaymentInstructions,
|
|
27
|
+
labels: f.summaryCard
|
|
28
|
+
}) : d ? /* @__PURE__ */ i(e, {
|
|
29
|
+
variant: "body2",
|
|
30
|
+
className: "ttw:text-muted-foreground",
|
|
31
|
+
children: f.noVendorPlaceholder
|
|
32
|
+
}) : o.mode === "selecting" ? /* @__PURE__ */ i(n, {
|
|
33
|
+
...o.search,
|
|
34
|
+
labels: f.search
|
|
35
|
+
}) : o.summary ? /* @__PURE__ */ a("div", {
|
|
36
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
37
|
+
children: [o.newVendorForm, /* @__PURE__ */ i(t, {
|
|
38
|
+
summary: o.summary,
|
|
39
|
+
paymentInstructions: o.paymentInstructions,
|
|
40
|
+
showPaymentInstructions: o.showPaymentInstructions,
|
|
41
|
+
labels: f.summaryCard
|
|
42
|
+
})]
|
|
43
|
+
}) : o.newVendorForm,
|
|
44
|
+
c ? /* @__PURE__ */ i("p", {
|
|
45
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
46
|
+
children: c
|
|
47
|
+
}) : null
|
|
48
|
+
]
|
|
38
49
|
});
|
|
39
50
|
}
|
|
40
51
|
//#endregion
|
|
41
|
-
export {
|
|
52
|
+
export { o as VendorSection, o as default };
|
|
@@ -1,19 +1,56 @@
|
|
|
1
|
-
import { LABEL_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
1
|
+
import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BILL_DETAIL_BODY_LABELS_EN as r, mergeBillDetailBodyLabels as i } from "./index37.js";
|
|
3
|
+
import "./index39.js";
|
|
4
|
+
import { BILL_FORM_FIELDS_LABELS_EN as a, mergeBillFormFieldsLabels as o } from "./index40.js";
|
|
5
|
+
import "./index42.js";
|
|
6
|
+
import { LINE_ITEMS_SECTION_LABELS_EN as s, mergeLineItemsSectionLabels as c } from "./index46.js";
|
|
7
|
+
import "./index48.js";
|
|
8
|
+
import { VENDOR_SECTION_LABELS_EN as l, mergeVendorSectionLabels as u } from "./index52.js";
|
|
9
|
+
import "./index54.js";
|
|
2
10
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js
|
|
3
|
-
var
|
|
11
|
+
var d = {
|
|
12
|
+
closeButton: "Close",
|
|
13
|
+
collapseButton: "Exit full screen",
|
|
14
|
+
menuTrigger: "More actions",
|
|
4
15
|
cancelButton: "Cancel",
|
|
5
|
-
|
|
16
|
+
saveDraftButton: "Save and close",
|
|
17
|
+
submitButton: "Submit",
|
|
18
|
+
saveButton: "Save",
|
|
19
|
+
hiddenDescription: "Enter the details of the bill you want to pay.",
|
|
20
|
+
vendorSection: l,
|
|
21
|
+
detailsFields: a,
|
|
22
|
+
lineItems: s,
|
|
23
|
+
detailBody: r,
|
|
24
|
+
requiredFieldsLegend: t,
|
|
6
25
|
fieldMarkers: e
|
|
7
26
|
};
|
|
8
|
-
function
|
|
27
|
+
function f(e) {
|
|
28
|
+
let t = {
|
|
29
|
+
...d.fieldMarkers,
|
|
30
|
+
...e?.fieldMarkers
|
|
31
|
+
};
|
|
9
32
|
return {
|
|
10
|
-
...
|
|
33
|
+
...d,
|
|
11
34
|
...e,
|
|
12
|
-
fieldMarkers:
|
|
13
|
-
|
|
14
|
-
...e?.
|
|
15
|
-
|
|
35
|
+
fieldMarkers: t,
|
|
36
|
+
vendorSection: u({
|
|
37
|
+
...e?.vendorSection,
|
|
38
|
+
search: {
|
|
39
|
+
fieldMarkers: t,
|
|
40
|
+
...e?.vendorSection?.search
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
43
|
+
detailsFields: o({
|
|
44
|
+
fieldMarkers: t,
|
|
45
|
+
...e?.detailsFields
|
|
46
|
+
}),
|
|
47
|
+
lineItems: c({
|
|
48
|
+
fieldMarkers: t,
|
|
49
|
+
...e?.lineItems
|
|
50
|
+
}),
|
|
51
|
+
detailBody: i(e?.detailBody),
|
|
52
|
+
requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
|
|
16
53
|
};
|
|
17
54
|
}
|
|
18
55
|
//#endregion
|
|
19
|
-
export {
|
|
56
|
+
export { d as BILL_CREATE_SCREEN_LABELS_EN, f as mergeBillCreateScreenLabels };
|
|
@@ -1,88 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { mergeBillDecisionDialogLabels as u } from "./index55.js";
|
|
3
|
-
import { Fragment as d, useEffect as f, useState as p } from "react";
|
|
4
|
-
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
1
|
+
import { useEffect as e, useRef as t } from "react";
|
|
5
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js
|
|
6
|
-
function
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onOpenChange: (e) => {
|
|
15
|
-
e || y();
|
|
16
|
-
},
|
|
17
|
-
children: /* @__PURE__ */ h(t, {
|
|
18
|
-
"data-testid": C,
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ h(i, {
|
|
21
|
-
className: P ? "ttw:items-center ttw:sm:text-center" : void 0,
|
|
22
|
-
children: [
|
|
23
|
-
j ? /* @__PURE__ */ m("span", {
|
|
24
|
-
className: M === "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",
|
|
25
|
-
children: /* @__PURE__ */ m(j, { className: M === "destructive" ? "ttw:size-4 ttw:text-white" : "ttw:size-4 ttw:text-foreground" })
|
|
26
|
-
}) : null,
|
|
27
|
-
/* @__PURE__ */ m(a, { children: _.title }),
|
|
28
|
-
/* @__PURE__ */ m(n, { children: _.description })
|
|
29
|
-
]
|
|
30
|
-
}),
|
|
31
|
-
I.length > 0 ? /* @__PURE__ */ m("div", {
|
|
32
|
-
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
|
|
33
|
-
children: /* @__PURE__ */ m("ul", {
|
|
34
|
-
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
|
|
35
|
-
children: I.map((e) => /* @__PURE__ */ m("li", {
|
|
36
|
-
className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
|
|
37
|
-
children: e.names.map((e, t) => /* @__PURE__ */ h(d, { children: [t > 0 ? /* @__PURE__ */ m("span", {
|
|
38
|
-
className: "ttw:text-muted-foreground",
|
|
39
|
-
children: ` ${D.orConnector} `
|
|
40
|
-
}) : null, /* @__PURE__ */ m("span", {
|
|
41
|
-
className: "ttw:font-medium",
|
|
42
|
-
children: e
|
|
43
|
-
})] }, e))
|
|
44
|
-
}, e.id))
|
|
45
|
-
})
|
|
46
|
-
}) : null,
|
|
47
|
-
_.reason ? /* @__PURE__ */ h("div", {
|
|
48
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
49
|
-
children: [/* @__PURE__ */ m(c, {
|
|
50
|
-
htmlFor: E,
|
|
51
|
-
requirement: s.Optional,
|
|
52
|
-
labels: D.fieldMarkers,
|
|
53
|
-
children: _.reason.label
|
|
54
|
-
}), /* @__PURE__ */ m(l, {
|
|
55
|
-
id: E,
|
|
56
|
-
value: O,
|
|
57
|
-
placeholder: _.reason.placeholder,
|
|
58
|
-
onChange: (e) => k(e.target.value),
|
|
59
|
-
disabled: b,
|
|
60
|
-
"data-testid": T
|
|
61
|
-
})]
|
|
62
|
-
}) : null,
|
|
63
|
-
/* @__PURE__ */ h(r, {
|
|
64
|
-
className: P ? "ttw:sm:justify-center" : void 0,
|
|
65
|
-
children: [/* @__PURE__ */ m(o, {
|
|
66
|
-
type: "button",
|
|
67
|
-
variant: "outline",
|
|
68
|
-
onClick: y,
|
|
69
|
-
disabled: b,
|
|
70
|
-
className: F ? "ttw:flex-1" : void 0,
|
|
71
|
-
children: D.cancelButton
|
|
72
|
-
}), /* @__PURE__ */ h(o, {
|
|
73
|
-
type: "button",
|
|
74
|
-
variant: M === "destructive" ? "destructive" : "default",
|
|
75
|
-
loading: b,
|
|
76
|
-
disabled: b,
|
|
77
|
-
onClick: () => v(_.reason ? O.trim() : void 0),
|
|
78
|
-
className: F ? "ttw:flex-1" : void 0,
|
|
79
|
-
"data-testid": w,
|
|
80
|
-
children: [b ? null : x, _.confirmButton]
|
|
81
|
-
})]
|
|
82
|
-
})
|
|
83
|
-
]
|
|
84
|
-
})
|
|
85
|
-
});
|
|
3
|
+
function n(n) {
|
|
4
|
+
let r = t(null), i = t(n);
|
|
5
|
+
return e(() => {
|
|
6
|
+
if (n === i.current) return;
|
|
7
|
+
i.current = n;
|
|
8
|
+
let e = r.current?.querySelector("[aria-invalid=\"true\"], [data-invalid=\"true\"]");
|
|
9
|
+
e?.scrollIntoView({ block: "center" }), e?.focus({ preventScroll: !0 });
|
|
10
|
+
}, [n]), r;
|
|
86
11
|
}
|
|
87
12
|
//#endregion
|
|
88
|
-
export {
|
|
13
|
+
export { n as useFocusFirstInvalidField };
|