@tesouro/embedded-components-react 0.3.58 → 0.3.60
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/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +105 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +220 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
- 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/index74.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +37 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +112 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +10 -152
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +160 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +5 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +92 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +1 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +79 -261
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +262 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +10 -199
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +201 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +3 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +15 -345
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +345 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +6 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +2 -121
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +118 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +24 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +10 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +15 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +7 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +11 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +8 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.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/index72.js +0 -2
|
@@ -1,266 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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";
|
|
3
5
|
import "./index14.js";
|
|
4
|
-
import {
|
|
5
|
-
import "./index17.js";
|
|
6
|
-
import { BillStatusBadge as p } from "./index20.js";
|
|
6
|
+
import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index18.js";
|
|
7
7
|
import "./index21.js";
|
|
8
|
-
import {
|
|
8
|
+
import { DUE_DATE_VALUE_LABELS_EN as i } from "./index22.js";
|
|
9
9
|
import "./index24.js";
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
13
|
-
import { ChevronDownIcon as x, MoveDiagonal2Icon as S, XIcon as C } from "lucide-react";
|
|
10
|
+
import { MISSING_VALUE_LABELS_EN as a } from "./index53.js";
|
|
11
|
+
import "./index55.js";
|
|
14
12
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
|
|
86
|
-
children: [/* @__PURE__ */ y(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-28" })]
|
|
87
|
-
}) : null,
|
|
88
|
-
r && !E && !D ? /* @__PURE__ */ y("p", {
|
|
89
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
90
|
-
children: r.subtitle
|
|
91
|
-
}) : null,
|
|
92
|
-
/* @__PURE__ */ y(o, {
|
|
93
|
-
className: "ttw:sr-only",
|
|
94
|
-
children: N.hiddenDescription
|
|
95
|
-
})
|
|
96
|
-
]
|
|
97
|
-
}), /* @__PURE__ */ b("div", {
|
|
98
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
99
|
-
children: [
|
|
100
|
-
A ? /* @__PURE__ */ y(e, {
|
|
101
|
-
type: "button",
|
|
102
|
-
variant: "ghost",
|
|
103
|
-
size: "icon",
|
|
104
|
-
"aria-label": N.expandButton,
|
|
105
|
-
onClick: A,
|
|
106
|
-
children: /* @__PURE__ */ y(S, { className: "ttw:size-4" })
|
|
107
|
-
}) : null,
|
|
108
|
-
r && !E && !D ? /* @__PURE__ */ y(f, {
|
|
109
|
-
actions: u.menu,
|
|
110
|
-
triggerLabel: N.overflowMenuTrigger,
|
|
111
|
-
placement: "header"
|
|
112
|
-
}) : null,
|
|
113
|
-
/* @__PURE__ */ y(e, {
|
|
114
|
-
type: "button",
|
|
115
|
-
variant: "ghost",
|
|
116
|
-
size: "icon",
|
|
117
|
-
"aria-label": N.closeButton,
|
|
118
|
-
onClick: k,
|
|
119
|
-
children: /* @__PURE__ */ y(C, { className: "ttw:size-4" })
|
|
120
|
-
})
|
|
121
|
-
]
|
|
122
|
-
})]
|
|
123
|
-
}), /* @__PURE__ */ y("div", {
|
|
124
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
|
|
125
|
-
children: D ? /* @__PURE__ */ y("p", {
|
|
126
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
127
|
-
children: N.errorDescription
|
|
128
|
-
}) : E ? /* @__PURE__ */ b("div", {
|
|
129
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
130
|
-
children: [/* @__PURE__ */ y(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ b("div", {
|
|
131
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
132
|
-
children: [
|
|
133
|
-
/* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-40" }),
|
|
134
|
-
/* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" }),
|
|
135
|
-
/* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" })
|
|
136
|
-
]
|
|
137
|
-
})]
|
|
138
|
-
}) : r ? /* @__PURE__ */ b(v, { children: [
|
|
139
|
-
O,
|
|
140
|
-
/* @__PURE__ */ b("section", {
|
|
141
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
142
|
-
children: [
|
|
143
|
-
/* @__PURE__ */ b("div", {
|
|
144
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
145
|
-
children: [
|
|
146
|
-
/* @__PURE__ */ y("span", {
|
|
147
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
148
|
-
children: N.amountDueHeading
|
|
149
|
-
}),
|
|
150
|
-
/* @__PURE__ */ y("span", {
|
|
151
|
-
className: "ttw:text-3xl ttw:font-semibold",
|
|
152
|
-
children: r.amountDueLabel
|
|
153
|
-
}),
|
|
154
|
-
/* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(p, {
|
|
155
|
-
status: r.status,
|
|
156
|
-
tone: r.statusTone,
|
|
157
|
-
labels: N.statusBadge
|
|
158
|
-
}) })
|
|
159
|
-
]
|
|
160
|
-
}),
|
|
161
|
-
/* @__PURE__ */ b("div", {
|
|
162
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
|
|
163
|
-
children: [/* @__PURE__ */ b("div", {
|
|
164
|
-
className: "ttw:flex ttw:flex-col",
|
|
165
|
-
children: [/* @__PURE__ */ y("span", {
|
|
166
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
167
|
-
children: N.invoiceDateLabel
|
|
168
|
-
}), /* @__PURE__ */ y("span", {
|
|
169
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
170
|
-
children: r.invoiceDateLabel
|
|
171
|
-
})]
|
|
172
|
-
}), /* @__PURE__ */ b("div", {
|
|
173
|
-
className: "ttw:flex ttw:flex-col",
|
|
174
|
-
children: [/* @__PURE__ */ y("span", {
|
|
175
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
176
|
-
children: N.dueDateLabel
|
|
177
|
-
}), /* @__PURE__ */ y(m, {
|
|
178
|
-
className: "ttw:text-sm ttw:font-medium",
|
|
179
|
-
value: r.dueDateLabel,
|
|
180
|
-
tone: r.dueDateTone,
|
|
181
|
-
labels: N.dueDate
|
|
182
|
-
})]
|
|
183
|
-
})]
|
|
184
|
-
}),
|
|
185
|
-
u.row.length ? /* @__PURE__ */ y("div", {
|
|
186
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
187
|
-
children: /* @__PURE__ */ y(h, { actions: u.row })
|
|
188
|
-
}) : null
|
|
189
|
-
]
|
|
190
|
-
}),
|
|
191
|
-
/* @__PURE__ */ y(T, {
|
|
192
|
-
heading: N.payToHeading,
|
|
193
|
-
children: /* @__PURE__ */ y(w, { items: r.payToItems })
|
|
194
|
-
}),
|
|
195
|
-
/* @__PURE__ */ y(T, {
|
|
196
|
-
heading: N.invoiceDetailsHeading,
|
|
197
|
-
children: /* @__PURE__ */ b("div", {
|
|
198
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
199
|
-
children: [
|
|
200
|
-
/* @__PURE__ */ y(w, { items: r.invoiceItems }),
|
|
201
|
-
r.lineItems.length ? /* @__PURE__ */ b("table", {
|
|
202
|
-
className: "ttw:w-full ttw:text-sm",
|
|
203
|
-
children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", {
|
|
204
|
-
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
205
|
-
children: [
|
|
206
|
-
/* @__PURE__ */ y("th", {
|
|
207
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
|
|
208
|
-
children: N.lineItemsHeading
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ y("th", {
|
|
211
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
212
|
-
children: N.lineItemsQuantityHeading
|
|
213
|
-
}),
|
|
214
|
-
/* @__PURE__ */ y("th", {
|
|
215
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
216
|
-
children: N.lineItemsAmountHeading
|
|
217
|
-
})
|
|
218
|
-
]
|
|
219
|
-
}) }), /* @__PURE__ */ y("tbody", { children: r.lineItems.map((e) => /* @__PURE__ */ b("tr", {
|
|
220
|
-
className: "ttw:border-b ttw:border-border",
|
|
221
|
-
children: [
|
|
222
|
-
/* @__PURE__ */ b("td", {
|
|
223
|
-
className: "ttw:px-3 ttw:py-2",
|
|
224
|
-
children: [/* @__PURE__ */ y("span", {
|
|
225
|
-
className: "ttw:block",
|
|
226
|
-
children: e.description
|
|
227
|
-
}), /* @__PURE__ */ y("span", {
|
|
228
|
-
className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
|
|
229
|
-
children: e.glCodeLabel
|
|
230
|
-
})]
|
|
231
|
-
}),
|
|
232
|
-
/* @__PURE__ */ y("td", {
|
|
233
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
|
|
234
|
-
children: e.quantityLabel
|
|
235
|
-
}),
|
|
236
|
-
/* @__PURE__ */ y("td", {
|
|
237
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
|
|
238
|
-
children: e.amountLabel
|
|
239
|
-
})
|
|
240
|
-
]
|
|
241
|
-
}, e.id)) })]
|
|
242
|
-
}) : null,
|
|
243
|
-
/* @__PURE__ */ y("dl", {
|
|
244
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
245
|
-
children: r.totals.map((e) => /* @__PURE__ */ b("div", {
|
|
246
|
-
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",
|
|
247
|
-
children: [/* @__PURE__ */ y("dt", {
|
|
248
|
-
className: e.emphasis ? "" : "ttw:text-muted-foreground",
|
|
249
|
-
children: e.label
|
|
250
|
-
}), /* @__PURE__ */ y("dd", { children: e.value })]
|
|
251
|
-
}, e.label))
|
|
252
|
-
})
|
|
253
|
-
]
|
|
254
|
-
})
|
|
255
|
-
}),
|
|
256
|
-
x ? /* @__PURE__ */ y(d, {
|
|
257
|
-
view: x,
|
|
258
|
-
labels: N.approvalPolicy
|
|
259
|
-
}) : null
|
|
260
|
-
] }) : null
|
|
261
|
-
})]
|
|
262
|
-
})
|
|
263
|
-
});
|
|
264
|
-
}
|
|
13
|
+
var o = {
|
|
14
|
+
loadingTitle: "Loading bill…",
|
|
15
|
+
hiddenDescription: "Bill details",
|
|
16
|
+
errorTitle: "Couldn't load this bill",
|
|
17
|
+
errorDescription: "Something went wrong. Try again.",
|
|
18
|
+
amountDueHeading: "Amount due",
|
|
19
|
+
invoiceDateLabel: "Invoice date",
|
|
20
|
+
dueDateLabel: "Due date",
|
|
21
|
+
payToHeading: "Pay to",
|
|
22
|
+
invoiceDetailsHeading: "Invoice details",
|
|
23
|
+
lineItemsHeading: "Line items",
|
|
24
|
+
lineItemsQuantityHeading: "Qty/Price",
|
|
25
|
+
lineItemsAmountHeading: "Amount",
|
|
26
|
+
payButton: "Pay",
|
|
27
|
+
markAsPaidButton: "Mark as paid",
|
|
28
|
+
rejectButton: "Reject",
|
|
29
|
+
approveButton: "Approve",
|
|
30
|
+
cancelButton: "Cancel bill",
|
|
31
|
+
cancelScheduledPaymentButton: "Cancel scheduled payment",
|
|
32
|
+
reopenButton: "Reopen bill",
|
|
33
|
+
forceApproveButton: "Approve",
|
|
34
|
+
forceRejectButton: "Reject",
|
|
35
|
+
policyOverridesGroup: "Policy overrides",
|
|
36
|
+
overflowMenuTrigger: "Bill actions",
|
|
37
|
+
expandButton: "Open full screen",
|
|
38
|
+
closeButton: "Close",
|
|
39
|
+
statusBadge: r,
|
|
40
|
+
approvalPolicy: n,
|
|
41
|
+
dueDate: i
|
|
42
|
+
}, s = ".pdf,.png,.jpg,.jpeg,.doc,.docx", c = {
|
|
43
|
+
...t,
|
|
44
|
+
dropzone: {
|
|
45
|
+
...t.dropzone,
|
|
46
|
+
fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
|
|
47
|
+
}
|
|
48
|
+
}, l = {
|
|
49
|
+
createButton: "Add bill",
|
|
50
|
+
columnVendor: "Vendor",
|
|
51
|
+
columnAttachment: "Attachment",
|
|
52
|
+
columnIssueDate: "Issue date",
|
|
53
|
+
columnDueDate: "Due date",
|
|
54
|
+
columnScheduledDate: "Scheduled date",
|
|
55
|
+
columnPaidDate: "Paid date",
|
|
56
|
+
columnAmountDue: "Amount due",
|
|
57
|
+
columnAmountScheduled: "Amount scheduled",
|
|
58
|
+
columnAmountPaid: "Amount paid",
|
|
59
|
+
columnTotalAmount: "Total amount",
|
|
60
|
+
columnStatus: "Status",
|
|
61
|
+
columnAddedOn: "Added on",
|
|
62
|
+
columnActions: "Actions",
|
|
63
|
+
openRow: (e) => `View bill — ${e}`,
|
|
64
|
+
duplicateBillsReviewButton: "Review duplicates",
|
|
65
|
+
searchPlaceholder: "Search by vendor name",
|
|
66
|
+
searchLabel: "Search bills by vendor name",
|
|
67
|
+
filterTabsLabel: "Filter bills by status",
|
|
68
|
+
filteredEmptyTitle: "No bills match",
|
|
69
|
+
filteredEmptyDescription: "Try a different search or status filter.",
|
|
70
|
+
errorTitle: "Couldn't load bills",
|
|
71
|
+
errorDescription: "Something went wrong. Try again.",
|
|
72
|
+
errorRetry: "Retry",
|
|
73
|
+
statusBadge: r,
|
|
74
|
+
addBill: c,
|
|
75
|
+
sortableHeader: {
|
|
76
|
+
sortedAscending: e.sortedAscending,
|
|
77
|
+
sortedDescending: e.sortedDescending,
|
|
78
|
+
notSorted: e.notSorted
|
|
79
|
+
},
|
|
80
|
+
missingValue: a,
|
|
81
|
+
dueDate: i
|
|
82
|
+
};
|
|
265
83
|
//#endregion
|
|
266
|
-
export {
|
|
84
|
+
export { l as BILLS_SCREEN_LABELS_EN, s as BILLS_SCREEN_UPLOAD_ACCEPT, o as BILL_DETAILS_SHEET_LABELS_EN };
|
|
@@ -1,13 +1,266 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { Button as e, Collapsible as t, CollapsibleContent as n, CollapsibleTrigger as r, Sheet as i, SheetContent as a, SheetDescription as o, SheetHeader as s, SheetTitle as c, Skeleton as l, Typography as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ApprovalPolicyCard as d } from "./index13.js";
|
|
3
|
+
import "./index14.js";
|
|
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 { DueDateValue as m } from "./index23.js";
|
|
9
|
+
import "./index24.js";
|
|
10
|
+
import { BillActionButtons as h, NO_BILL_ACTIONS as g } from "./index15.js";
|
|
11
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as _ } from "./index56.js";
|
|
12
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
13
|
+
import { ChevronDownIcon as x, MoveDiagonal2Icon as S, XIcon as C } from "lucide-react";
|
|
4
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
function w({ items: e }) {
|
|
16
|
+
return /* @__PURE__ */ y("dl", {
|
|
17
|
+
className: "ttw:flex ttw:flex-col",
|
|
18
|
+
children: e.map((e) => /* @__PURE__ */ b("div", {
|
|
19
|
+
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",
|
|
20
|
+
children: [/* @__PURE__ */ y("dt", {
|
|
21
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
22
|
+
children: e.label
|
|
23
|
+
}), /* @__PURE__ */ b("dd", {
|
|
24
|
+
className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
|
|
25
|
+
children: [/* @__PURE__ */ y("span", {
|
|
26
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
27
|
+
children: e.value
|
|
28
|
+
}), e.secondaryValue ? /* @__PURE__ */ y("span", {
|
|
29
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
30
|
+
children: e.secondaryValue
|
|
31
|
+
}) : null]
|
|
32
|
+
})]
|
|
33
|
+
}, e.label))
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function T({ heading: e, children: i }) {
|
|
37
|
+
return /* @__PURE__ */ b(t, {
|
|
38
|
+
defaultOpen: !0,
|
|
39
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
40
|
+
children: [/* @__PURE__ */ b(r, {
|
|
41
|
+
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",
|
|
42
|
+
children: [/* @__PURE__ */ y(u, {
|
|
43
|
+
variant: "body1",
|
|
44
|
+
className: "ttw:font-semibold",
|
|
45
|
+
children: e
|
|
46
|
+
}), /* @__PURE__ */ y(x, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
|
|
47
|
+
}), /* @__PURE__ */ y(n, { children: i })]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function E({ open: t, onOpenChange: n, details: r, actions: u = g, approvalPolicy: x, isLoading: E, isError: D, notice: O, onClose: k, onExpand: A, testId: j, labels: M }) {
|
|
51
|
+
let N = {
|
|
52
|
+
..._,
|
|
53
|
+
...M,
|
|
54
|
+
statusBadge: {
|
|
55
|
+
..._.statusBadge,
|
|
56
|
+
...M?.statusBadge
|
|
57
|
+
},
|
|
58
|
+
approvalPolicy: {
|
|
59
|
+
..._.approvalPolicy,
|
|
60
|
+
...M?.approvalPolicy
|
|
61
|
+
},
|
|
62
|
+
dueDate: {
|
|
63
|
+
..._.dueDate,
|
|
64
|
+
...M?.dueDate
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ y(i, {
|
|
68
|
+
open: t,
|
|
69
|
+
onOpenChange: (e) => e ? n(e) : k(),
|
|
70
|
+
children: /* @__PURE__ */ b(a, {
|
|
71
|
+
showCloseButton: !1,
|
|
72
|
+
className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
|
|
73
|
+
"data-testid": j,
|
|
74
|
+
children: [/* @__PURE__ */ b(s, {
|
|
75
|
+
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
|
|
76
|
+
children: [/* @__PURE__ */ b("div", {
|
|
77
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ y(c, {
|
|
80
|
+
className: E ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
|
|
81
|
+
children: D ? N.errorTitle : E ? N.loadingTitle : r?.title
|
|
82
|
+
}),
|
|
83
|
+
E ? /* @__PURE__ */ b("div", {
|
|
84
|
+
"aria-hidden": !0,
|
|
85
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
|
|
86
|
+
children: [/* @__PURE__ */ y(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-28" })]
|
|
87
|
+
}) : null,
|
|
88
|
+
r && !E && !D ? /* @__PURE__ */ y("p", {
|
|
89
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
90
|
+
children: r.subtitle
|
|
91
|
+
}) : null,
|
|
92
|
+
/* @__PURE__ */ y(o, {
|
|
93
|
+
className: "ttw:sr-only",
|
|
94
|
+
children: N.hiddenDescription
|
|
95
|
+
})
|
|
96
|
+
]
|
|
97
|
+
}), /* @__PURE__ */ b("div", {
|
|
98
|
+
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
99
|
+
children: [
|
|
100
|
+
A ? /* @__PURE__ */ y(e, {
|
|
101
|
+
type: "button",
|
|
102
|
+
variant: "ghost",
|
|
103
|
+
size: "icon",
|
|
104
|
+
"aria-label": N.expandButton,
|
|
105
|
+
onClick: A,
|
|
106
|
+
children: /* @__PURE__ */ y(S, { className: "ttw:size-4" })
|
|
107
|
+
}) : null,
|
|
108
|
+
r && !E && !D ? /* @__PURE__ */ y(f, {
|
|
109
|
+
actions: u.menu,
|
|
110
|
+
triggerLabel: N.overflowMenuTrigger,
|
|
111
|
+
placement: "header"
|
|
112
|
+
}) : null,
|
|
113
|
+
/* @__PURE__ */ y(e, {
|
|
114
|
+
type: "button",
|
|
115
|
+
variant: "ghost",
|
|
116
|
+
size: "icon",
|
|
117
|
+
"aria-label": N.closeButton,
|
|
118
|
+
onClick: k,
|
|
119
|
+
children: /* @__PURE__ */ y(C, { className: "ttw:size-4" })
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
})]
|
|
123
|
+
}), /* @__PURE__ */ y("div", {
|
|
124
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
|
|
125
|
+
children: D ? /* @__PURE__ */ y("p", {
|
|
126
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
127
|
+
children: N.errorDescription
|
|
128
|
+
}) : E ? /* @__PURE__ */ b("div", {
|
|
129
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
130
|
+
children: [/* @__PURE__ */ y(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ b("div", {
|
|
131
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-40" }),
|
|
134
|
+
/* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" }),
|
|
135
|
+
/* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" })
|
|
136
|
+
]
|
|
137
|
+
})]
|
|
138
|
+
}) : r ? /* @__PURE__ */ b(v, { children: [
|
|
139
|
+
O,
|
|
140
|
+
/* @__PURE__ */ b("section", {
|
|
141
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ b("div", {
|
|
144
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ y("span", {
|
|
147
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
148
|
+
children: N.amountDueHeading
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ y("span", {
|
|
151
|
+
className: "ttw:text-3xl ttw:font-semibold",
|
|
152
|
+
children: r.amountDueLabel
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(p, {
|
|
155
|
+
status: r.status,
|
|
156
|
+
tone: r.statusTone,
|
|
157
|
+
labels: N.statusBadge
|
|
158
|
+
}) })
|
|
159
|
+
]
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ b("div", {
|
|
162
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
|
|
163
|
+
children: [/* @__PURE__ */ b("div", {
|
|
164
|
+
className: "ttw:flex ttw:flex-col",
|
|
165
|
+
children: [/* @__PURE__ */ y("span", {
|
|
166
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
167
|
+
children: N.invoiceDateLabel
|
|
168
|
+
}), /* @__PURE__ */ y("span", {
|
|
169
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
170
|
+
children: r.invoiceDateLabel
|
|
171
|
+
})]
|
|
172
|
+
}), /* @__PURE__ */ b("div", {
|
|
173
|
+
className: "ttw:flex ttw:flex-col",
|
|
174
|
+
children: [/* @__PURE__ */ y("span", {
|
|
175
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
176
|
+
children: N.dueDateLabel
|
|
177
|
+
}), /* @__PURE__ */ y(m, {
|
|
178
|
+
className: "ttw:text-sm ttw:font-medium",
|
|
179
|
+
value: r.dueDateLabel,
|
|
180
|
+
tone: r.dueDateTone,
|
|
181
|
+
labels: N.dueDate
|
|
182
|
+
})]
|
|
183
|
+
})]
|
|
184
|
+
}),
|
|
185
|
+
u.row.length ? /* @__PURE__ */ y("div", {
|
|
186
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
187
|
+
children: /* @__PURE__ */ y(h, { actions: u.row })
|
|
188
|
+
}) : null
|
|
189
|
+
]
|
|
190
|
+
}),
|
|
191
|
+
/* @__PURE__ */ y(T, {
|
|
192
|
+
heading: N.payToHeading,
|
|
193
|
+
children: /* @__PURE__ */ y(w, { items: r.payToItems })
|
|
194
|
+
}),
|
|
195
|
+
/* @__PURE__ */ y(T, {
|
|
196
|
+
heading: N.invoiceDetailsHeading,
|
|
197
|
+
children: /* @__PURE__ */ b("div", {
|
|
198
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ y(w, { items: r.invoiceItems }),
|
|
201
|
+
r.lineItems.length ? /* @__PURE__ */ b("table", {
|
|
202
|
+
className: "ttw:w-full ttw:text-sm",
|
|
203
|
+
children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", {
|
|
204
|
+
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ y("th", {
|
|
207
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
|
|
208
|
+
children: N.lineItemsHeading
|
|
209
|
+
}),
|
|
210
|
+
/* @__PURE__ */ y("th", {
|
|
211
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
212
|
+
children: N.lineItemsQuantityHeading
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ y("th", {
|
|
215
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
216
|
+
children: N.lineItemsAmountHeading
|
|
217
|
+
})
|
|
218
|
+
]
|
|
219
|
+
}) }), /* @__PURE__ */ y("tbody", { children: r.lineItems.map((e) => /* @__PURE__ */ b("tr", {
|
|
220
|
+
className: "ttw:border-b ttw:border-border",
|
|
221
|
+
children: [
|
|
222
|
+
/* @__PURE__ */ b("td", {
|
|
223
|
+
className: "ttw:px-3 ttw:py-2",
|
|
224
|
+
children: [/* @__PURE__ */ y("span", {
|
|
225
|
+
className: "ttw:block",
|
|
226
|
+
children: e.description
|
|
227
|
+
}), /* @__PURE__ */ y("span", {
|
|
228
|
+
className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
|
|
229
|
+
children: e.glCodeLabel
|
|
230
|
+
})]
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ y("td", {
|
|
233
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
|
|
234
|
+
children: e.quantityLabel
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ y("td", {
|
|
237
|
+
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
|
|
238
|
+
children: e.amountLabel
|
|
239
|
+
})
|
|
240
|
+
]
|
|
241
|
+
}, e.id)) })]
|
|
242
|
+
}) : null,
|
|
243
|
+
/* @__PURE__ */ y("dl", {
|
|
244
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
245
|
+
children: r.totals.map((e) => /* @__PURE__ */ b("div", {
|
|
246
|
+
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",
|
|
247
|
+
children: [/* @__PURE__ */ y("dt", {
|
|
248
|
+
className: e.emphasis ? "" : "ttw:text-muted-foreground",
|
|
249
|
+
children: e.label
|
|
250
|
+
}), /* @__PURE__ */ y("dd", { children: e.value })]
|
|
251
|
+
}, e.label))
|
|
252
|
+
})
|
|
253
|
+
]
|
|
254
|
+
})
|
|
255
|
+
}),
|
|
256
|
+
x ? /* @__PURE__ */ y(d, {
|
|
257
|
+
view: x,
|
|
258
|
+
labels: N.approvalPolicy
|
|
259
|
+
}) : null
|
|
260
|
+
] }) : null
|
|
261
|
+
})]
|
|
262
|
+
})
|
|
10
263
|
});
|
|
11
264
|
}
|
|
12
265
|
//#endregion
|
|
13
|
-
export {
|
|
266
|
+
export { E as BillDetailsSheet, E as default };
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { Badge as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BADGE_TONE_CLASS_NAME as t } from "./index19.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.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,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var e = {
|
|
3
|
-
message: "This bill is a possible duplicate of another bill.",
|
|
4
|
-
notADuplicateButton: "Not a duplicate",
|
|
5
|
-
removeBillButton: "Remove this bill"
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as BILL_DUPLICATE_NOTICE_LABELS_EN };
|
|
1
|
+
import "./index58.js";
|