@tesouro/embedded-components-react 0.9.22 → 0.9.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +82 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index11.js +59 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +10 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +155 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +13 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +99 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +69 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +3 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +57 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +114 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +190 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +75 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +35 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +461 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +102 -452
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +12 -116
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +231 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +38 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +245 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +169 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +21 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +534 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +4 -542
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +236 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +3 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +1 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +82 -225
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +45 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +138 -155
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +48 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +219 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +278 -322
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +78 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +52 -2
- 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/theme/themeTokens.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +4696 -4681
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +0 -29
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js
CHANGED
|
@@ -1,169 +1,152 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BillStatusBadge as
|
|
1
|
+
import { Badge as e, Button as t, Skeleton as n, cn as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BillStatusBadge as i } from "../../../../shared/document-status/ui/dist/index4.js";
|
|
3
3
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { BillDuplicateWarning as a } from "../../../ui/dist/index6.js";
|
|
5
5
|
import "../../../ui/dist/index.js";
|
|
6
|
-
import { BILL_DUPLICATE_NOTICE_LABELS_EN as
|
|
7
|
-
import { useState as
|
|
8
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
-
import {
|
|
6
|
+
import { BILL_DUPLICATE_NOTICE_LABELS_EN as o } from "./index36.js";
|
|
7
|
+
import { useState as s } from "react";
|
|
8
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
+
import { MoveDiagonal2Icon as d } from "lucide-react";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js
|
|
11
|
-
var p =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
11
|
+
var f = "ttw:border-b ttw:border-warning/40 ttw:px-2 ttw:py-2.5 ttw:text-foreground", p = "ttw:border-b ttw:border-warning/40 ttw:px-2 ttw:py-1.5 ttw:text-left ttw:text-xs ttw:font-medium ttw:text-foreground", m = [
|
|
12
|
+
"ttw:w-24",
|
|
13
|
+
"ttw:w-20",
|
|
14
|
+
"ttw:ml-auto ttw:w-16",
|
|
15
|
+
"ttw:w-20"
|
|
16
|
+
], h = 2;
|
|
17
|
+
function g({ message: g, onNotADuplicate: _, onRemoveBill: v, isRemoveBillDestructive: y = !0, onOpenFullScreen: b, isActionDisabled: x, rows: S, isLoading: C, loadingRowCount: w = h, collapsedRowCount: T, showMoreLabel: E, testId: D, labels: O }) {
|
|
18
|
+
let k = {
|
|
19
|
+
...o,
|
|
20
|
+
...O
|
|
21
|
+
}, A = !!S?.length, j = !A && C === !0, [M, N] = s(!1), P = T !== void 0 && !!E && (S?.length ?? 0) > T, F = P && !M ? S?.slice(0, T) : S, I = _ || v ? /* @__PURE__ */ u(c, { children: [_ ? /* @__PURE__ */ l(t, {
|
|
22
|
+
type: "button",
|
|
23
|
+
variant: "outline",
|
|
24
|
+
size: "sm",
|
|
25
|
+
className: "ttw:bg-background ttw:text-foreground ttw:hover:bg-muted",
|
|
26
|
+
disabled: x,
|
|
27
|
+
onClick: _,
|
|
28
|
+
children: k.notADuplicateButton
|
|
29
|
+
}) : null, v ? /* @__PURE__ */ l(t, {
|
|
30
|
+
type: "button",
|
|
31
|
+
variant: y ? "destructive" : "outline",
|
|
32
|
+
size: "sm",
|
|
33
|
+
className: r(!y && "ttw:bg-background ttw:text-foreground ttw:hover:bg-muted"),
|
|
34
|
+
disabled: x,
|
|
35
|
+
onClick: v,
|
|
36
|
+
children: k.removeBillButton
|
|
37
|
+
}) : null] }) : null;
|
|
38
|
+
return A || j ? /* @__PURE__ */ l(a, {
|
|
39
|
+
message: g ?? k.message,
|
|
40
|
+
testId: D,
|
|
41
|
+
details: /* @__PURE__ */ u("div", {
|
|
42
|
+
className: "ttw:overflow-x-auto",
|
|
43
|
+
"aria-busy": j || void 0,
|
|
34
44
|
children: [
|
|
35
|
-
/* @__PURE__ */ u("
|
|
36
|
-
className:
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ l("
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/* @__PURE__ */ l("div", {
|
|
43
|
-
className: "ttw:px-3 ttw:py-2",
|
|
44
|
-
children: T.invoiceNumberColumn
|
|
45
|
-
}),
|
|
46
|
-
/* @__PURE__ */ l("div", {
|
|
47
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right",
|
|
48
|
-
children: T.amountColumn
|
|
45
|
+
/* @__PURE__ */ u("table", {
|
|
46
|
+
className: "ttw:w-full ttw:min-w-120 ttw:border-collapse ttw:text-sm",
|
|
47
|
+
children: [/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ u("tr", { children: [
|
|
48
|
+
/* @__PURE__ */ l("th", {
|
|
49
|
+
scope: "col",
|
|
50
|
+
className: p,
|
|
51
|
+
children: k.createdOnColumn
|
|
49
52
|
}),
|
|
50
|
-
/* @__PURE__ */ l("
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
/* @__PURE__ */ l("th", {
|
|
54
|
+
scope: "col",
|
|
55
|
+
className: p,
|
|
56
|
+
children: k.dueDateColumn
|
|
53
57
|
}),
|
|
54
|
-
/* @__PURE__ */ l("
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
/* @__PURE__ */ l("th", {
|
|
59
|
+
scope: "col",
|
|
60
|
+
className: r(p, "ttw:text-right"),
|
|
61
|
+
children: k.amountColumn
|
|
57
62
|
}),
|
|
58
|
-
/* @__PURE__ */ l("
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
]
|
|
63
|
+
/* @__PURE__ */ l("th", {
|
|
64
|
+
scope: "col",
|
|
65
|
+
className: p,
|
|
66
|
+
children: k.statusColumn
|
|
67
|
+
})
|
|
68
|
+
] }) }), /* @__PURE__ */ u("tbody", { children: [j ? Array.from({ length: w }, (e, t) => /* @__PURE__ */ l("tr", {
|
|
69
|
+
"aria-hidden": !0,
|
|
70
|
+
children: m.map((e, t) => /* @__PURE__ */ l("td", {
|
|
71
|
+
className: f,
|
|
72
|
+
children: /* @__PURE__ */ l(n, { className: r("ttw:h-4", e) })
|
|
73
|
+
}, t))
|
|
74
|
+
}, t)) : null, F?.map((t) => {
|
|
75
|
+
let n = t.isCurrent ? void 0 : t.onOpen;
|
|
76
|
+
return /* @__PURE__ */ u("tr", {
|
|
77
|
+
"aria-current": t.isCurrent || void 0,
|
|
78
|
+
className: r(t.isCurrent && "ttw:bg-warning/10", n && "ttw:cursor-pointer ttw:hover:bg-muted/50 ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring"),
|
|
79
|
+
tabIndex: n ? 0 : void 0,
|
|
80
|
+
"aria-label": n ? t.openLabel : void 0,
|
|
81
|
+
onClick: n,
|
|
82
|
+
onKeyDown: (e) => {
|
|
83
|
+
n && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n());
|
|
84
|
+
},
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ l("td", {
|
|
87
|
+
className: f,
|
|
88
|
+
children: /* @__PURE__ */ u("span", {
|
|
89
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-2 ttw:gap-y-1",
|
|
90
|
+
children: [/* @__PURE__ */ l("span", { children: t.createdOnLabel }), t.badges?.map((t) => /* @__PURE__ */ l(e, {
|
|
91
|
+
variant: "secondary",
|
|
92
|
+
children: t
|
|
93
|
+
}, t))]
|
|
94
|
+
})
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ l("td", {
|
|
97
|
+
className: f,
|
|
98
|
+
children: t.dueDateLabel
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ l("td", {
|
|
101
|
+
className: r(f, "ttw:text-right"),
|
|
102
|
+
children: t.amountLabel
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ l("td", {
|
|
105
|
+
className: f,
|
|
106
|
+
children: t.status ? /* @__PURE__ */ l(i, {
|
|
107
|
+
status: t.status,
|
|
108
|
+
tone: t.statusTone ?? "neutral"
|
|
109
|
+
}) : null
|
|
110
|
+
})
|
|
111
|
+
]
|
|
112
|
+
}, t.id);
|
|
113
|
+
})] })]
|
|
64
114
|
}),
|
|
65
|
-
|
|
66
|
-
className:
|
|
67
|
-
children:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"aria-disabled": !e.onOpen,
|
|
71
|
-
tabIndex: e.onOpen ? 0 : -1,
|
|
72
|
-
onClick: e.onOpen,
|
|
73
|
-
children: [
|
|
74
|
-
/* @__PURE__ */ u("span", {
|
|
75
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:items-start ttw:gap-1 ttw:px-3 ttw:py-2",
|
|
76
|
-
children: [/* @__PURE__ */ l("span", {
|
|
77
|
-
className: i("ttw:min-w-0 ttw:font-medium", e.roleTone && p[e.roleTone]),
|
|
78
|
-
children: e.roleLabel
|
|
79
|
-
}), e.badges?.length ? /* @__PURE__ */ l("span", {
|
|
80
|
-
className: "ttw:flex ttw:flex-wrap ttw:gap-1",
|
|
81
|
-
children: e.badges.map((e) => /* @__PURE__ */ l(n, {
|
|
82
|
-
variant: "secondary",
|
|
83
|
-
children: e
|
|
84
|
-
}, e))
|
|
85
|
-
}) : null]
|
|
86
|
-
}),
|
|
87
|
-
/* @__PURE__ */ l("span", {
|
|
88
|
-
className: "ttw:px-3 ttw:py-2",
|
|
89
|
-
children: e.invoiceNumberLabel
|
|
90
|
-
}),
|
|
91
|
-
/* @__PURE__ */ l("span", {
|
|
92
|
-
className: "ttw:px-3 ttw:py-2 ttw:text-right",
|
|
93
|
-
children: e.amountLabel
|
|
94
|
-
}),
|
|
95
|
-
/* @__PURE__ */ l("span", {
|
|
96
|
-
className: "ttw:px-3 ttw:py-2",
|
|
97
|
-
children: e.addedOnLabel
|
|
98
|
-
}),
|
|
99
|
-
/* @__PURE__ */ l("span", {
|
|
100
|
-
className: "ttw:px-3 ttw:py-2",
|
|
101
|
-
children: e.dueDateLabel
|
|
102
|
-
}),
|
|
103
|
-
/* @__PURE__ */ l("span", {
|
|
104
|
-
className: "ttw:px-3 ttw:py-2",
|
|
105
|
-
children: e.status ? /* @__PURE__ */ l(a, {
|
|
106
|
-
status: e.status,
|
|
107
|
-
tone: e.statusTone ?? "neutral"
|
|
108
|
-
}) : null
|
|
109
|
-
})
|
|
110
|
-
]
|
|
111
|
-
}), /* @__PURE__ */ l("div", {
|
|
112
|
-
className: "ttw:flex ttw:justify-end ttw:px-1 ttw:py-2",
|
|
113
|
-
children: e.menu ? /* @__PURE__ */ l(o, {
|
|
114
|
-
actions: e.menu.items.map((e) => ({
|
|
115
|
-
...e,
|
|
116
|
-
variant: "ghost"
|
|
117
|
-
})),
|
|
118
|
-
triggerLabel: e.menu.triggerLabel
|
|
119
|
-
}) : null
|
|
120
|
-
})]
|
|
121
|
-
}, e.id)),
|
|
122
|
-
k && !D ? /* @__PURE__ */ l("button", {
|
|
115
|
+
j ? /* @__PURE__ */ l("span", {
|
|
116
|
+
className: "ttw:sr-only",
|
|
117
|
+
children: k.loadingRows
|
|
118
|
+
}) : null,
|
|
119
|
+
P && !M ? /* @__PURE__ */ l(t, {
|
|
123
120
|
type: "button",
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
variant: "link",
|
|
122
|
+
className: "ttw:mt-1 ttw:px-2",
|
|
123
|
+
onClick: () => N(!0),
|
|
124
|
+
children: E
|
|
127
125
|
}) : null
|
|
128
126
|
]
|
|
129
|
-
})
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
children: T.removeBillButton
|
|
153
|
-
}) : null,
|
|
154
|
-
v ? /* @__PURE__ */ l(r, {
|
|
155
|
-
type: "button",
|
|
156
|
-
variant: "ghost",
|
|
157
|
-
size: "icon",
|
|
158
|
-
className: "ttw:text-foreground",
|
|
159
|
-
"aria-label": T.openFullScreenButton,
|
|
160
|
-
onClick: v,
|
|
161
|
-
children: /* @__PURE__ */ l(f, {
|
|
162
|
-
className: "ttw:size-4",
|
|
163
|
-
"aria-hidden": !0
|
|
164
|
-
})
|
|
165
|
-
}) : null
|
|
166
|
-
]
|
|
127
|
+
}),
|
|
128
|
+
children: I && !j ? /* @__PURE__ */ u("div", {
|
|
129
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
|
|
130
|
+
children: [/* @__PURE__ */ l("span", {
|
|
131
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
132
|
+
children: k.question
|
|
133
|
+
}), I]
|
|
134
|
+
}) : null
|
|
135
|
+
}) : /* @__PURE__ */ u(a, {
|
|
136
|
+
message: g ?? k.message,
|
|
137
|
+
testId: D,
|
|
138
|
+
children: [I, b ? /* @__PURE__ */ l(t, {
|
|
139
|
+
type: "button",
|
|
140
|
+
variant: "ghost",
|
|
141
|
+
size: "icon-sm",
|
|
142
|
+
className: "ttw:text-foreground",
|
|
143
|
+
"aria-label": k.openFullScreenButton,
|
|
144
|
+
onClick: b,
|
|
145
|
+
children: /* @__PURE__ */ l(d, {
|
|
146
|
+
className: "ttw:size-4",
|
|
147
|
+
"aria-hidden": !0
|
|
148
|
+
})
|
|
149
|
+
}) : null]
|
|
167
150
|
});
|
|
168
151
|
}
|
|
169
152
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/
|
|
1
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index14.js";
|
|
2
2
|
import "../../../ui/dist/index.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js
|
|
4
4
|
var t = {
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button as e, Skeleton as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BillUploadDropzone as n } from "../../../ui/dist/
|
|
2
|
+
import { BillUploadDropzone as n } from "../../../ui/dist/index15.js";
|
|
3
3
|
import "../../../ui/dist/index.js";
|
|
4
4
|
import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index48.js";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Badge as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { BILL_STATUS_TONE_CLASS_NAME as t } from "../../../../shared/document-status/ui/dist/index3.js";
|
|
3
3
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
4
|
-
import { DateDisclosure as n } from "../../../ui/dist/
|
|
4
|
+
import { DateDisclosure as n } from "../../../ui/dist/index18.js";
|
|
5
5
|
import "../../../ui/dist/index.js";
|
|
6
6
|
import { jsx as r } from "react/jsx-runtime";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js
|
|
2
2
|
var e = {
|
|
3
3
|
uploading: "ttw:text-muted-foreground",
|
|
4
|
-
ready: "ttw:text-
|
|
5
|
-
duplicate: "ttw:text-
|
|
4
|
+
ready: "ttw:text-success",
|
|
5
|
+
duplicate: "ttw:text-warning",
|
|
6
6
|
failed: "ttw:text-destructive"
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
@@ -66,11 +66,10 @@ function xe(e, t) {
|
|
|
66
66
|
if (i.length === 0) continue;
|
|
67
67
|
let c = i.map((e) => n.get(e)).filter((e) => !!e).sort(l), u = d(c), [ee] = c, f = {
|
|
68
68
|
key: `duplicate-group:${[...i].sort().join(":")}`,
|
|
69
|
-
|
|
69
|
+
label: t.groupHeader({
|
|
70
70
|
vendorLabel: te(ee),
|
|
71
71
|
invoiceNumberLabel: ee?.document_id ?? ""
|
|
72
72
|
}),
|
|
73
|
-
memberCount: i.length,
|
|
74
73
|
originalPayableId: u
|
|
75
74
|
};
|
|
76
75
|
for (let e of i) o.set(e, f);
|
|
@@ -94,40 +93,40 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
|
|
|
94
93
|
]), y(() => {
|
|
95
94
|
R();
|
|
96
95
|
}, [E, R]);
|
|
97
|
-
let z = le({
|
|
98
|
-
offersStatusFilter: D === h.All,
|
|
96
|
+
let z = E === C.PossibleDuplicates, B = le({
|
|
97
|
+
offersStatusFilter: D === h.All && !z,
|
|
99
98
|
offersVendorFilter: l,
|
|
100
99
|
isVendorFilterPaused: d,
|
|
101
100
|
labels: ue,
|
|
102
101
|
onFiltersChange: R
|
|
103
|
-
}), { clearAll: Ie, filterByVendor: Le } =
|
|
104
|
-
...
|
|
105
|
-
limit:
|
|
106
|
-
pagination_token:
|
|
107
|
-
status__in:
|
|
108
|
-
has_scheduled_payment:
|
|
109
|
-
duplicate_match_status:
|
|
102
|
+
}), { clearAll: Ie, filterByVendor: Le } = B, Re = Ae[0], V = se(Re?.id), ze = V ? Re?.desc ? "desc" : "asc" : void 0, H = z ? h.All : D, U = b(() => ({
|
|
103
|
+
...B.query,
|
|
104
|
+
limit: z ? S : O,
|
|
105
|
+
pagination_token: z ? void 0 : Ne,
|
|
106
|
+
status__in: z ? void 0 : ae(H) ?? B.query.status__in,
|
|
107
|
+
has_scheduled_payment: z ? void 0 : re(H),
|
|
108
|
+
duplicate_match_status: z ? "suspected" : void 0,
|
|
110
109
|
counterpart_name__icontains: N || void 0,
|
|
111
|
-
sort:
|
|
110
|
+
sort: V,
|
|
112
111
|
order: ze
|
|
113
112
|
}), [
|
|
114
|
-
|
|
113
|
+
B.query,
|
|
115
114
|
O,
|
|
116
115
|
Ne,
|
|
117
|
-
|
|
116
|
+
z,
|
|
118
117
|
H,
|
|
119
118
|
N,
|
|
120
|
-
|
|
119
|
+
V,
|
|
121
120
|
ze
|
|
122
121
|
]), { organizationId: Be } = r(), W = JSON.stringify([Be, U]), G = pe({
|
|
123
122
|
...U,
|
|
124
|
-
enabled: c && !
|
|
123
|
+
enabled: c && !z,
|
|
125
124
|
pollWhileOcrProcessing: !0
|
|
126
125
|
}), K = fe({
|
|
127
126
|
...U,
|
|
128
|
-
enabled: c &&
|
|
127
|
+
enabled: c && z,
|
|
129
128
|
maxPages: ye
|
|
130
|
-
}), q =
|
|
129
|
+
}), q = z ? {
|
|
131
130
|
...K,
|
|
132
131
|
data: { data: K.payables },
|
|
133
132
|
isLoading: K.isResolving,
|
|
@@ -198,10 +197,15 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
|
|
|
198
197
|
return J.forEach((t, n) => {
|
|
199
198
|
let r = Q.get(t.id)?.key;
|
|
200
199
|
r !== void 0 && !e.has(r) && e.set(r, n);
|
|
201
|
-
}), J.map((t, n) =>
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
}), J.map((t, n) => {
|
|
201
|
+
let r = Q.get(t.id);
|
|
202
|
+
return {
|
|
203
|
+
payable: t,
|
|
204
|
+
index: n,
|
|
205
|
+
order: e.get(r?.key ?? "") ?? n,
|
|
206
|
+
leads: r?.originalPayableId === t.id ? 0 : 1
|
|
207
|
+
};
|
|
208
|
+
}).sort((e, t) => e.order - t.order || e.leads - t.leads || e.index - t.index).map(({ payable: e }) => e);
|
|
205
209
|
}, [J, Q]), { vendorNames: Ze, lookup: Qe } = de({
|
|
206
210
|
payables: q.data?.data,
|
|
207
211
|
enabled: c,
|
|
@@ -212,7 +216,7 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
|
|
|
212
216
|
apiStatus: e.status,
|
|
213
217
|
dueDate: e.due_date,
|
|
214
218
|
scheduledPaymentDate: e.scheduled_payment_date
|
|
215
|
-
}), i = e.amount_due ?? e.total_amount, a = e.status === "partially_paid" || e.status === "paid", c = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" }), l = o(e.scheduled_payment_date, De, Oe), u = Q.get(e.id), d = s(e), p = te(e) || (e.counterpart_id ? Ze.get(e.counterpart_id) ?? "" : ""), m = e.document_id ?? "", g = f(e.status), _ = u?.originalPayableId !== void 0 && u.originalPayableId === e.id, re =
|
|
219
|
+
}), i = e.amount_due ?? e.total_amount, a = e.status === "partially_paid" || e.status === "paid", c = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" }), l = o(e.scheduled_payment_date, De, Oe), u = Q.get(e.id), d = s(e), p = te(e) || (e.counterpart_id ? Ze.get(e.counterpart_id) ?? "" : ""), m = e.document_id ?? "", g = f(e.status), _ = u?.originalPayableId !== void 0 && u.originalPayableId === e.id, re = z && d && Ee && u ? {
|
|
216
220
|
triggerLabel: T.menuTrigger({
|
|
217
221
|
vendorLabel: p,
|
|
218
222
|
invoiceNumberLabel: m
|
|
@@ -261,15 +265,15 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
|
|
|
261
265
|
...u ? {
|
|
262
266
|
group: {
|
|
263
267
|
key: u.key,
|
|
264
|
-
|
|
265
|
-
memberCount: u.memberCount
|
|
268
|
+
label: u.label
|
|
266
269
|
},
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
+
...u.originalPayableId !== void 0 && !_ ? {
|
|
271
|
+
isNested: !0,
|
|
272
|
+
groupedRowLabel: T.copyRow
|
|
273
|
+
} : {}
|
|
270
274
|
} : {},
|
|
271
275
|
...re ? { menu: re } : {},
|
|
272
|
-
...!
|
|
276
|
+
...!z && !u && d ? {
|
|
273
277
|
rowTone: "warning",
|
|
274
278
|
rowNote: we
|
|
275
279
|
} : {},
|
|
@@ -282,7 +286,7 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
|
|
|
282
286
|
Z,
|
|
283
287
|
Y.isPending,
|
|
284
288
|
Ee,
|
|
285
|
-
|
|
289
|
+
z,
|
|
286
290
|
we,
|
|
287
291
|
Te,
|
|
288
292
|
De,
|
|
@@ -291,7 +295,7 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
|
|
|
291
295
|
H,
|
|
292
296
|
Ze,
|
|
293
297
|
Qe
|
|
294
|
-
]), et = b(() =>
|
|
298
|
+
]), et = b(() => z ? Se($e, S) : [], [$e, z]), $ = Math.min(Pe, Math.max(0, et.length - 1)), tt = z ? et[$] ?? [] : $e, nt = v((e) => {
|
|
295
299
|
let t = e;
|
|
296
300
|
ke(t), je((e) => {
|
|
297
301
|
let n = e[0]?.id;
|
|
@@ -306,24 +310,24 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
|
|
|
306
310
|
}, [R]), ot = v((e) => {
|
|
307
311
|
Me(e), R();
|
|
308
312
|
}, [R]), st = v(() => {
|
|
309
|
-
if (
|
|
313
|
+
if (z) {
|
|
310
314
|
A($ + 1);
|
|
311
315
|
return;
|
|
312
316
|
}
|
|
313
317
|
k(G.data?.next_pagination_token ?? void 0);
|
|
314
318
|
}, [
|
|
315
319
|
$,
|
|
316
|
-
|
|
320
|
+
z,
|
|
317
321
|
G.data?.next_pagination_token
|
|
318
322
|
]), ct = v(() => {
|
|
319
|
-
if (
|
|
323
|
+
if (z) {
|
|
320
324
|
A(Math.max(0, $ - 1));
|
|
321
325
|
return;
|
|
322
326
|
}
|
|
323
327
|
k(G.data?.prev_pagination_token ?? void 0);
|
|
324
328
|
}, [
|
|
325
329
|
$,
|
|
326
|
-
|
|
330
|
+
z,
|
|
327
331
|
G.data?.prev_pagination_token
|
|
328
332
|
]), lt = v(() => {
|
|
329
333
|
q.refetch();
|
|
@@ -340,23 +344,24 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
|
|
|
340
344
|
searchValue: j,
|
|
341
345
|
onSearchChange: M,
|
|
342
346
|
hasAnyBills: Ye,
|
|
343
|
-
isSearchActive: N.length > 0 ||
|
|
344
|
-
filterBarProps:
|
|
345
|
-
visibleColumns:
|
|
347
|
+
isSearchActive: N.length > 0 || B.isFilterActive,
|
|
348
|
+
filterBarProps: B.filterBarProps,
|
|
349
|
+
visibleColumns: z ? [
|
|
346
350
|
m.Vendor,
|
|
351
|
+
m.InvoiceNumber,
|
|
347
352
|
m.AmountDue,
|
|
348
353
|
m.DueDate,
|
|
349
354
|
m.AddedOn,
|
|
350
355
|
m.Status
|
|
351
356
|
] : _(D),
|
|
352
|
-
showAddPanelWhenEmpty: !
|
|
357
|
+
showAddPanelWhenEmpty: !z && ie(D),
|
|
353
358
|
sorting: Ae,
|
|
354
359
|
onSortingChange: at,
|
|
355
|
-
pageSize:
|
|
356
|
-
pageSizeOptions:
|
|
360
|
+
pageSize: z ? S : O,
|
|
361
|
+
pageSizeOptions: z ? [S] : void 0,
|
|
357
362
|
onPageSizeChange: ot,
|
|
358
|
-
hasNextPage:
|
|
359
|
-
hasPrevPage:
|
|
363
|
+
hasNextPage: z ? $ < et.length - 1 : !!G.data?.next_pagination_token,
|
|
364
|
+
hasPrevPage: z ? $ > 0 : !!G.data?.prev_pagination_token,
|
|
360
365
|
onNextPage: st,
|
|
361
366
|
onPrevPage: ct,
|
|
362
367
|
cancelConfirmation: {
|