@tesouro/embedded-components-react 0.5.20 → 0.5.24
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/index45.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +191 -193
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +140 -139
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +139 -134
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/data-access/dist/index5.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index2.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index5.js +2 -2
- 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/tags-widget/data-access/dist/index10.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index2.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index3.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index6.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index7.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index8.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index9.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index2.js +0 -4
- /package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/data-access/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index.js +0 -0
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { Badge as e, Button as t, Collapsible as n, CollapsibleContent as r, CollapsibleTrigger as i, Sheet as a, SheetContent as o, SheetDescription as s, SheetHeader as c, SheetTitle as l, Skeleton as u, Typography as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { ApprovalPolicyCard as f } from "./index13.js";
|
|
3
3
|
import "./index14.js";
|
|
4
|
-
import { BillRejectionNotice as p } from "./
|
|
5
|
-
import {
|
|
4
|
+
import { BillRejectionNotice as p } from "./index17.js";
|
|
5
|
+
import { BADGE_TONE_CLASS_NAME as m } from "./index15.js";
|
|
6
|
+
import { BillStatusBadge as h } from "./index19.js";
|
|
6
7
|
import "./index20.js";
|
|
7
|
-
import { DueDateValue as
|
|
8
|
+
import { DueDateValue as g } from "./index22.js";
|
|
8
9
|
import "./index23.js";
|
|
9
|
-
import { PaymentHistoryList as
|
|
10
|
+
import { PaymentHistoryList as _ } from "./index24.js";
|
|
10
11
|
import "./index25.js";
|
|
11
|
-
import { BillActionButtons as
|
|
12
|
-
import { BillOverflowMenu as
|
|
12
|
+
import { BillActionButtons as v, NO_BILL_ACTIONS as y } from "./index16.js";
|
|
13
|
+
import { BillOverflowMenu as b } from "./index37.js";
|
|
13
14
|
import "./index38.js";
|
|
14
|
-
import { BILL_DETAILS_SHEET_LABELS_EN as
|
|
15
|
-
import { Fragment as
|
|
16
|
-
import { ChevronDownIcon as
|
|
15
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as x } from "./index64.js";
|
|
16
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
17
|
+
import { ChevronDownIcon as T, MoveDiagonal2Icon as E, XIcon as D } from "lucide-react";
|
|
17
18
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js
|
|
18
|
-
function
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
function O({ items: e }) {
|
|
20
|
+
return /* @__PURE__ */ C("dl", {
|
|
20
21
|
className: "ttw:flex ttw:flex-col",
|
|
21
|
-
children: e.map((e) => /* @__PURE__ */
|
|
22
|
+
children: e.map((e) => /* @__PURE__ */ w("div", {
|
|
22
23
|
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",
|
|
23
|
-
children: [/* @__PURE__ */
|
|
24
|
+
children: [/* @__PURE__ */ C("dt", {
|
|
24
25
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
25
26
|
children: e.label
|
|
26
|
-
}), /* @__PURE__ */
|
|
27
|
+
}), /* @__PURE__ */ w("dd", {
|
|
27
28
|
className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
|
|
28
|
-
children: [/* @__PURE__ */
|
|
29
|
+
children: [/* @__PURE__ */ C("span", {
|
|
29
30
|
className: "ttw:text-sm ttw:font-medium",
|
|
30
31
|
children: e.value
|
|
31
|
-
}), e.secondaryValue ? /* @__PURE__ */
|
|
32
|
+
}), e.secondaryValue ? /* @__PURE__ */ C("span", {
|
|
32
33
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
33
34
|
children: e.secondaryValue
|
|
34
35
|
}) : null]
|
|
@@ -36,263 +37,267 @@ function D({ items: e }) {
|
|
|
36
37
|
}, e.label))
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
function k({ heading: e, children: t }) {
|
|
41
|
+
return /* @__PURE__ */ w(n, {
|
|
41
42
|
defaultOpen: !0,
|
|
42
43
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
43
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ w(i, {
|
|
44
45
|
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",
|
|
45
|
-
children: [/* @__PURE__ */
|
|
46
|
+
children: [/* @__PURE__ */ C(d, {
|
|
46
47
|
variant: "body1",
|
|
47
48
|
className: "ttw:font-semibold",
|
|
48
49
|
children: e
|
|
49
|
-
}), /* @__PURE__ */
|
|
50
|
-
}), /* @__PURE__ */
|
|
50
|
+
}), /* @__PURE__ */ C(T, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
|
|
51
|
+
}), /* @__PURE__ */ C(r, { children: t })]
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
let
|
|
55
|
-
...
|
|
56
|
-
...
|
|
54
|
+
function A({ open: n, onOpenChange: r, details: i, actions: T = y, approvalPolicy: A, showApprovalOverrideNotice: j, scheduledSummary: M, paymentHistory: N, paymentHistoryError: P, paymentHistoryLoading: F, isLoading: I, isError: L, notice: R, onClose: z, onExpand: B, testId: V, labels: H }) {
|
|
55
|
+
let U = {
|
|
56
|
+
...x,
|
|
57
|
+
...H,
|
|
57
58
|
statusBadge: {
|
|
58
|
-
...
|
|
59
|
-
...
|
|
59
|
+
...x.statusBadge,
|
|
60
|
+
...H?.statusBadge
|
|
60
61
|
},
|
|
61
62
|
approvalPolicy: {
|
|
62
|
-
...
|
|
63
|
-
...
|
|
63
|
+
...x.approvalPolicy,
|
|
64
|
+
...H?.approvalPolicy
|
|
64
65
|
},
|
|
65
66
|
dueDate: {
|
|
66
|
-
...
|
|
67
|
-
...
|
|
67
|
+
...x.dueDate,
|
|
68
|
+
...H?.dueDate
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ C(a, {
|
|
71
72
|
open: n,
|
|
72
|
-
onOpenChange: (e) => e ? r(e) :
|
|
73
|
-
children: /* @__PURE__ */
|
|
73
|
+
onOpenChange: (e) => e ? r(e) : z(),
|
|
74
|
+
children: /* @__PURE__ */ w(o, {
|
|
74
75
|
showCloseButton: !1,
|
|
75
76
|
className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
|
|
76
|
-
"data-testid":
|
|
77
|
-
children: [/* @__PURE__ */
|
|
77
|
+
"data-testid": V,
|
|
78
|
+
children: [/* @__PURE__ */ w(c, {
|
|
78
79
|
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
|
|
79
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ w("div", {
|
|
80
81
|
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
81
82
|
children: [
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
className:
|
|
84
|
-
children:
|
|
83
|
+
/* @__PURE__ */ C(l, {
|
|
84
|
+
className: I ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
|
|
85
|
+
children: L ? U.errorTitle : I ? U.loadingTitle : i?.title
|
|
85
86
|
}),
|
|
86
|
-
|
|
87
|
+
I ? /* @__PURE__ */ w("div", {
|
|
87
88
|
"aria-hidden": !0,
|
|
88
89
|
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
|
|
89
|
-
children: [/* @__PURE__ */
|
|
90
|
+
children: [/* @__PURE__ */ C(u, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ C(u, { className: "ttw:h-4 ttw:w-28" })]
|
|
90
91
|
}) : null,
|
|
91
|
-
i && !
|
|
92
|
+
i && !I && !L ? /* @__PURE__ */ C("p", {
|
|
92
93
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
93
94
|
children: i.subtitle
|
|
94
95
|
}) : null,
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ C(s, {
|
|
96
97
|
className: "ttw:sr-only",
|
|
97
|
-
children:
|
|
98
|
+
children: U.hiddenDescription
|
|
98
99
|
})
|
|
99
100
|
]
|
|
100
|
-
}), /* @__PURE__ */
|
|
101
|
+
}), /* @__PURE__ */ w("div", {
|
|
101
102
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
102
103
|
children: [
|
|
103
|
-
|
|
104
|
+
B ? /* @__PURE__ */ C(t, {
|
|
104
105
|
type: "button",
|
|
105
106
|
variant: "ghost",
|
|
106
107
|
size: "icon",
|
|
107
|
-
"aria-label":
|
|
108
|
-
onClick:
|
|
109
|
-
children: /* @__PURE__ */
|
|
108
|
+
"aria-label": U.expandButton,
|
|
109
|
+
onClick: B,
|
|
110
|
+
children: /* @__PURE__ */ C(E, { className: "ttw:size-4" })
|
|
110
111
|
}) : null,
|
|
111
|
-
i && !
|
|
112
|
-
actions:
|
|
113
|
-
triggerLabel:
|
|
112
|
+
i && !I && !L ? /* @__PURE__ */ C(b, {
|
|
113
|
+
actions: T.menu,
|
|
114
|
+
triggerLabel: U.overflowMenuTrigger,
|
|
114
115
|
placement: "header"
|
|
115
116
|
}) : null,
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ C(t, {
|
|
117
118
|
type: "button",
|
|
118
119
|
variant: "ghost",
|
|
119
120
|
size: "icon",
|
|
120
|
-
"aria-label":
|
|
121
|
-
onClick:
|
|
122
|
-
children: /* @__PURE__ */
|
|
121
|
+
"aria-label": U.closeButton,
|
|
122
|
+
onClick: z,
|
|
123
|
+
children: /* @__PURE__ */ C(D, { className: "ttw:size-4" })
|
|
123
124
|
})
|
|
124
125
|
]
|
|
125
126
|
})]
|
|
126
|
-
}), /* @__PURE__ */
|
|
127
|
+
}), /* @__PURE__ */ C("div", {
|
|
127
128
|
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
|
|
128
|
-
children:
|
|
129
|
+
children: L ? /* @__PURE__ */ C("p", {
|
|
129
130
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
130
|
-
children:
|
|
131
|
-
}) :
|
|
131
|
+
children: U.errorDescription
|
|
132
|
+
}) : I ? /* @__PURE__ */ w("div", {
|
|
132
133
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
133
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ C(u, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ w("div", {
|
|
134
135
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
135
136
|
children: [
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ C(u, { className: "ttw:h-4 ttw:w-40" }),
|
|
138
|
+
/* @__PURE__ */ C(u, { className: "ttw:h-9 ttw:w-full" }),
|
|
139
|
+
/* @__PURE__ */ C(u, { className: "ttw:h-9 ttw:w-full" })
|
|
139
140
|
]
|
|
140
141
|
})]
|
|
141
|
-
}) : i ? /* @__PURE__ */
|
|
142
|
-
|
|
143
|
-
/* @__PURE__ */
|
|
142
|
+
}) : i ? /* @__PURE__ */ w(S, { children: [
|
|
143
|
+
R,
|
|
144
|
+
/* @__PURE__ */ w("section", {
|
|
144
145
|
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
|
|
145
146
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ w("div", {
|
|
147
148
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
148
|
-
children: [i.paidOnLabel ? /* @__PURE__ */
|
|
149
|
+
children: [i.paidOnLabel ? /* @__PURE__ */ w("div", {
|
|
149
150
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
|
|
150
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ w("div", {
|
|
151
152
|
className: "ttw:flex ttw:flex-col",
|
|
152
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ C("span", {
|
|
153
154
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
154
|
-
children:
|
|
155
|
-
}), /* @__PURE__ */
|
|
155
|
+
children: U.amountDueHeading
|
|
156
|
+
}), /* @__PURE__ */ C("span", {
|
|
156
157
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
157
158
|
children: i.amountDueLabel
|
|
158
159
|
})]
|
|
159
|
-
}), /* @__PURE__ */
|
|
160
|
+
}), /* @__PURE__ */ w("div", {
|
|
160
161
|
className: "ttw:flex ttw:flex-col",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
162
|
+
children: [/* @__PURE__ */ C("span", {
|
|
162
163
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
163
|
-
children:
|
|
164
|
-
}), /* @__PURE__ */
|
|
164
|
+
children: U.amountPaidHeading
|
|
165
|
+
}), /* @__PURE__ */ C("span", {
|
|
165
166
|
className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
|
|
166
167
|
children: i.amountPaidLabel
|
|
167
168
|
})]
|
|
168
169
|
})]
|
|
169
|
-
}) : /* @__PURE__ */
|
|
170
|
+
}) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("span", {
|
|
170
171
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
171
|
-
children:
|
|
172
|
-
}), /* @__PURE__ */
|
|
172
|
+
children: U.amountDueHeading
|
|
173
|
+
}), /* @__PURE__ */ C("span", {
|
|
173
174
|
className: "ttw:text-3xl ttw:font-semibold",
|
|
174
175
|
children: i.amountDueLabel
|
|
175
|
-
})] }), /* @__PURE__ */
|
|
176
|
+
})] }), /* @__PURE__ */ C("div", { children: i.paidOnLabel ? /* @__PURE__ */ C(e, {
|
|
176
177
|
variant: "outline",
|
|
177
178
|
className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
|
|
178
179
|
children: i.paidOnLabel
|
|
179
|
-
}) : /* @__PURE__ */
|
|
180
|
+
}) : M ? /* @__PURE__ */ C(e, {
|
|
181
|
+
variant: "outline",
|
|
182
|
+
className: m.committed,
|
|
183
|
+
children: M
|
|
184
|
+
}) : /* @__PURE__ */ C(h, {
|
|
180
185
|
status: i.status,
|
|
181
186
|
tone: i.statusTone,
|
|
182
|
-
labels:
|
|
187
|
+
labels: U.statusBadge
|
|
183
188
|
}) })]
|
|
184
189
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ w("div", {
|
|
186
191
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
192
|
+
children: [/* @__PURE__ */ w("div", {
|
|
188
193
|
className: "ttw:flex ttw:flex-col",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
194
|
+
children: [/* @__PURE__ */ C("span", {
|
|
190
195
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
191
|
-
children:
|
|
192
|
-
}), /* @__PURE__ */
|
|
196
|
+
children: U.invoiceDateLabel
|
|
197
|
+
}), /* @__PURE__ */ C("span", {
|
|
193
198
|
className: "ttw:text-sm ttw:font-medium",
|
|
194
199
|
children: i.invoiceDateLabel
|
|
195
200
|
})]
|
|
196
|
-
}), /* @__PURE__ */
|
|
201
|
+
}), /* @__PURE__ */ w("div", {
|
|
197
202
|
className: "ttw:flex ttw:flex-col",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ C("span", {
|
|
199
204
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
200
|
-
children:
|
|
201
|
-
}), /* @__PURE__ */
|
|
205
|
+
children: U.dueDateLabel
|
|
206
|
+
}), /* @__PURE__ */ C(g, {
|
|
202
207
|
className: "ttw:text-sm ttw:font-medium",
|
|
203
208
|
value: i.dueDateLabel,
|
|
204
209
|
tone: i.dueDateTone,
|
|
205
|
-
labels:
|
|
210
|
+
labels: U.dueDate
|
|
206
211
|
})]
|
|
207
212
|
})]
|
|
208
213
|
}),
|
|
209
|
-
i.rejection ? /* @__PURE__ */
|
|
210
|
-
|
|
214
|
+
i.rejection ? /* @__PURE__ */ C(p, { ...i.rejection }) : null,
|
|
215
|
+
j ? /* @__PURE__ */ C(d, {
|
|
211
216
|
variant: "caption",
|
|
212
217
|
color: "muted",
|
|
213
|
-
children:
|
|
218
|
+
children: U.approvalOverrideNotice
|
|
214
219
|
}) : null,
|
|
215
|
-
|
|
220
|
+
T.row.length ? /* @__PURE__ */ C("div", {
|
|
216
221
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
217
|
-
children: /* @__PURE__ */
|
|
222
|
+
children: /* @__PURE__ */ C(v, { actions: T.row })
|
|
218
223
|
}) : null
|
|
219
224
|
]
|
|
220
225
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
heading: i.paidOnLabel ?
|
|
223
|
-
children: /* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ C(k, {
|
|
227
|
+
heading: i.paidOnLabel ? U.payToHeadingPaid : U.payToHeading,
|
|
228
|
+
children: /* @__PURE__ */ C(O, { items: i.payToItems })
|
|
224
229
|
}),
|
|
225
|
-
|
|
226
|
-
heading:
|
|
227
|
-
children:
|
|
230
|
+
N?.length || P || F ? /* @__PURE__ */ C(k, {
|
|
231
|
+
heading: U.paymentHistoryHeading,
|
|
232
|
+
children: P ? /* @__PURE__ */ C("p", {
|
|
228
233
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
229
|
-
children:
|
|
230
|
-
}) :
|
|
234
|
+
children: U.paymentHistoryErrorDescription
|
|
235
|
+
}) : F ? /* @__PURE__ */ C(u, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ C(_, { records: N ?? [] })
|
|
231
236
|
}) : null,
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
heading:
|
|
234
|
-
children: /* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ C(k, {
|
|
238
|
+
heading: U.invoiceDetailsHeading,
|
|
239
|
+
children: /* @__PURE__ */ w("div", {
|
|
235
240
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
236
241
|
children: [
|
|
237
|
-
/* @__PURE__ */
|
|
238
|
-
i.lineItems.length ? /* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ C(O, { items: i.invoiceItems }),
|
|
243
|
+
i.lineItems.length ? /* @__PURE__ */ w("table", {
|
|
239
244
|
className: "ttw:w-full ttw:text-sm",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
245
|
+
children: [/* @__PURE__ */ C("thead", { children: /* @__PURE__ */ w("tr", {
|
|
241
246
|
className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
|
|
242
247
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ C("th", {
|
|
244
249
|
className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
|
|
245
|
-
children:
|
|
250
|
+
children: U.lineItemsHeading
|
|
246
251
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ C("th", {
|
|
248
253
|
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
249
|
-
children:
|
|
254
|
+
children: U.lineItemsQuantityHeading
|
|
250
255
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ C("th", {
|
|
252
257
|
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
|
|
253
|
-
children:
|
|
258
|
+
children: U.lineItemsAmountHeading
|
|
254
259
|
})
|
|
255
260
|
]
|
|
256
|
-
}) }), /* @__PURE__ */
|
|
261
|
+
}) }), /* @__PURE__ */ C("tbody", { children: i.lineItems.map((e) => /* @__PURE__ */ w("tr", {
|
|
257
262
|
className: "ttw:border-b ttw:border-border",
|
|
258
263
|
children: [
|
|
259
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ w("td", {
|
|
260
265
|
className: "ttw:px-3 ttw:py-2",
|
|
261
|
-
children: [/* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ C("span", {
|
|
262
267
|
className: "ttw:block",
|
|
263
268
|
children: e.description
|
|
264
|
-
}), /* @__PURE__ */
|
|
269
|
+
}), /* @__PURE__ */ C("span", {
|
|
265
270
|
className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
|
|
266
271
|
children: e.glCodeLabel
|
|
267
272
|
})]
|
|
268
273
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ C("td", {
|
|
270
275
|
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
|
|
271
276
|
children: e.quantityLabel
|
|
272
277
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ C("td", {
|
|
274
279
|
className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
|
|
275
280
|
children: e.amountLabel
|
|
276
281
|
})
|
|
277
282
|
]
|
|
278
283
|
}, e.id)) })]
|
|
279
284
|
}) : null,
|
|
280
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ C("dl", {
|
|
281
286
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
282
|
-
children: i.totals.map((e) => /* @__PURE__ */
|
|
287
|
+
children: i.totals.map((e) => /* @__PURE__ */ w("div", {
|
|
283
288
|
className: e.emphasis ? "ttw:flex ttw:justify-between ttw:gap-6 ttw:border-t ttw:border-border ttw:pt-2 ttw:text-base ttw:font-semibold" : "ttw:flex ttw:justify-between ttw:gap-6 ttw:text-sm",
|
|
284
|
-
children: [/* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ C("dt", {
|
|
285
290
|
className: e.emphasis ? "" : "ttw:text-muted-foreground",
|
|
286
291
|
children: e.label
|
|
287
|
-
}), /* @__PURE__ */
|
|
292
|
+
}), /* @__PURE__ */ C("dd", { children: e.value })]
|
|
288
293
|
}, e.label))
|
|
289
294
|
})
|
|
290
295
|
]
|
|
291
296
|
})
|
|
292
297
|
}),
|
|
293
|
-
|
|
294
|
-
view:
|
|
295
|
-
labels:
|
|
298
|
+
A ? /* @__PURE__ */ C(f, {
|
|
299
|
+
view: A,
|
|
300
|
+
labels: U.approvalPolicy
|
|
296
301
|
}) : null
|
|
297
302
|
] }) : null
|
|
298
303
|
})]
|
|
@@ -300,4 +305,4 @@ function k({ open: n, onOpenChange: r, details: i, actions: w = v, approvalPolic
|
|
|
300
305
|
});
|
|
301
306
|
}
|
|
302
307
|
//#endregion
|
|
303
|
-
export {
|
|
308
|
+
export { A as BillDetailsSheet, A as default };
|
|
@@ -17,8 +17,8 @@ import { DEFAULT_FEATURE_LABELS as s } from "./index3.js";
|
|
|
17
17
|
import { SettingsSection as c, mergeAdditionalSections as l } from "./index4.js";
|
|
18
18
|
import { SettingsWidgetAnalyticsEvent as u, WIDGET_NAME as d } from "./index2.js";
|
|
19
19
|
import { ExpenseSettingsTabs as f } from "./index5.js";
|
|
20
|
-
import { TagsWidget as p } from "
|
|
21
|
-
import "
|
|
20
|
+
import { TagsWidget as p } from "../../tags/feature/dist/index11.js";
|
|
21
|
+
import "../../tags/feature/dist/index.js";
|
|
22
22
|
import { BankDisclosuresWidget as m } from "../../../shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js";
|
|
23
23
|
import "../../../shared/bank-disclosures/feature/dist/index.js";
|
|
24
24
|
import { TeamWidget as h } from "../../team/feature/dist/index17.js";
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getEntityUsersOptions as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as r } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js
|
|
12
|
+
var a = 100;
|
|
13
|
+
function o(o = a) {
|
|
14
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l), f = n({
|
|
15
|
+
query: { limit: o },
|
|
16
|
+
client: s,
|
|
17
|
+
headers: t(c)
|
|
18
|
+
});
|
|
19
|
+
return i({
|
|
20
|
+
...r(f, u),
|
|
21
|
+
enabled: d
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { o as useEntityUsersQuery };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getTagsOptions as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as r } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js
|
|
12
|
+
function a({ enabled: a, ...o } = {}) {
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (a === !0 || a === void 0), f = n({
|
|
14
|
+
query: o,
|
|
15
|
+
client: s,
|
|
16
|
+
headers: t(c)
|
|
17
|
+
});
|
|
18
|
+
return i({
|
|
19
|
+
...r(f, u),
|
|
20
|
+
enabled: d
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as useTagsQuery };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { getEntitiesIdSettingsQueryKey as t, getTagsQueryKey as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js
|
|
5
|
+
var r = ({ client: t, organizationId: r }) => n({
|
|
6
|
+
client: t,
|
|
7
|
+
headers: e(r)
|
|
8
|
+
}), i = ({ client: e, entityId: n }) => t({
|
|
9
|
+
client: e,
|
|
10
|
+
path: { entity_id: n }
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as entitySettingsInvalidationKey, r as tagsInvalidationKey };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { postTags as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { postTags as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { tagsInvalidationKey as i } from "./index3.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js
|
|
13
13
|
function o() {
|
|
14
14
|
let { client: o, organizationId: s } = t();
|
|
15
15
|
return a({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { patchTagsId as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { patchTagsId as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { tagsInvalidationKey as i } from "./index3.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js
|
|
13
13
|
function o() {
|
|
14
14
|
let { client: o, organizationId: s } = t();
|
|
15
15
|
return a({
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { deleteTagsId as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { tagsInvalidationKey as i } from "./index3.js";
|
|
11
|
+
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js
|
|
13
|
+
function o() {
|
|
14
|
+
let { client: o, organizationId: s } = t();
|
|
15
|
+
return a({
|
|
16
|
+
mutationFn: async ({ path: e }) => {
|
|
17
|
+
await r({
|
|
18
|
+
client: o,
|
|
19
|
+
headers: n(s),
|
|
20
|
+
path: e,
|
|
21
|
+
throwOnError: !0
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
onSuccess: async () => {
|
|
25
|
+
await e(i({
|
|
26
|
+
client: o,
|
|
27
|
+
organizationId: s
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { o as useDeleteTagMutation };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { getEntitiesMeOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
|
+
import { useQuery as r } from "@tanstack/react-query";
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js
|
|
11
|
+
function i() {
|
|
12
|
+
let { client: i, organizationId: a, widgetToken: o, authEpoch: s } = e(), c = !!(a && o), l = t({ client: i });
|
|
13
|
+
return r({
|
|
14
|
+
...n(l, s),
|
|
15
|
+
enabled: c
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { i as useMyEntityQuery };
|