@tesouro/embedded-components-react 0.5.268 → 0.5.271
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 +4 -10
- package/dist/index.d.ts +13 -9
- package/dist/lib/ReceivablesWidget.d.ts +13 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +44 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsSheetView.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +76 -150
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +63 -57
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/actionsModal.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +161 -152
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +208 -158
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +91 -85
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +197 -196
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +147 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +3 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +17 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +37 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +29 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +34 -83
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +14 -404
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +79 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +490 -68
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +2 -502
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +41 -216
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +70 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +484 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +224 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +21 -263
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +261 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +2 -237
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +100 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +21 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +226 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +3 -59
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +233 -178
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +85 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +45 -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/invoicing-widget/ui/dist/index45.js +0 -100
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { Button as e, DataTable as t, Skeleton as n, Tooltip as r, TooltipContent as i, TooltipProvider as a, TooltipTrigger as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as s } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
+
import { ErrorState as c } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
|
+
import "../../../shared/ui/dist/index.js";
|
|
5
|
+
import { RECEIVABLES_SCREEN_LABELS_EN as l } from "./index13.js";
|
|
6
|
+
import { ReceivableStatusBadge as u } from "./index22.js";
|
|
7
|
+
import { ReceivableStatusCards as d } from "./index54.js";
|
|
8
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
9
|
+
import { ArrowDownIcon as m, ArrowUpDownIcon as h, ArrowUpIcon as g, CogIcon as _, LockKeyholeIcon as v } from "lucide-react";
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js
|
|
11
|
+
var y = [
|
|
12
|
+
10,
|
|
13
|
+
25,
|
|
14
|
+
50,
|
|
15
|
+
100
|
|
16
|
+
];
|
|
17
|
+
function b({ label: t, ariaLabel: n, column: r }) {
|
|
18
|
+
let i = r.getIsSorted();
|
|
19
|
+
return /* @__PURE__ */ p("div", {
|
|
20
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
21
|
+
children: [t, /* @__PURE__ */ f(e, {
|
|
22
|
+
variant: "ghost",
|
|
23
|
+
size: "icon-sm",
|
|
24
|
+
"aria-label": n,
|
|
25
|
+
onClick: () => r.toggleSorting(i === "asc"),
|
|
26
|
+
children: f(i === "asc" ? g : i === "desc" ? m : h, { className: "ttw:size-4" })
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function x({ row: e }) {
|
|
31
|
+
return e.customerState === "resolving" ? /* @__PURE__ */ f(n, { className: "ttw:h-4 ttw:w-full" }) : e.customerState === "missing" ? /* @__PURE__ */ f("span", {
|
|
32
|
+
className: "ttw:opacity-40",
|
|
33
|
+
children: e.customerLabel
|
|
34
|
+
}) : /* @__PURE__ */ f("span", { children: e.customerLabel });
|
|
35
|
+
}
|
|
36
|
+
function S({ rows: n, isLoading: m, isError: h, isAccessRestricted: g, sorting: S, onSortingChange: C, pageSize: w, onPageSizeChange: T, pageSizeOptions: E = y, pageInfo: D, hasNextPage: O, hasPrevPage: k, onNextPage: A, onPrevPage: j, statusCards: M, onStatusCardSelect: N, filterBar: P, isFiltering: F, headerStart: I, bankAttribution: L, onCreateClick: R, onSettingsClick: z, onRowClick: B, onRetry: V, labels: H }) {
|
|
37
|
+
let U = {
|
|
38
|
+
...l,
|
|
39
|
+
...H,
|
|
40
|
+
statusBadge: {
|
|
41
|
+
...l.statusBadge,
|
|
42
|
+
...H?.statusBadge
|
|
43
|
+
}
|
|
44
|
+
}, W = [
|
|
45
|
+
{
|
|
46
|
+
accessorKey: "dueDateLabel",
|
|
47
|
+
enableSorting: !0,
|
|
48
|
+
header: ({ column: e }) => /* @__PURE__ */ f(b, {
|
|
49
|
+
column: e,
|
|
50
|
+
label: U.columnDueDate,
|
|
51
|
+
ariaLabel: U.sortByDueDate
|
|
52
|
+
})
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
accessorKey: "status",
|
|
56
|
+
enableSorting: !0,
|
|
57
|
+
header: ({ column: e }) => /* @__PURE__ */ f(b, {
|
|
58
|
+
column: e,
|
|
59
|
+
label: U.columnStatus,
|
|
60
|
+
ariaLabel: U.sortByStatus
|
|
61
|
+
}),
|
|
62
|
+
cell: ({ row: e }) => /* @__PURE__ */ f(u, {
|
|
63
|
+
status: e.original.status,
|
|
64
|
+
variant: "filled",
|
|
65
|
+
labels: U.statusBadge
|
|
66
|
+
})
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
accessorKey: "documentLabel",
|
|
70
|
+
enableSorting: !0,
|
|
71
|
+
header: ({ column: e }) => /* @__PURE__ */ f(b, {
|
|
72
|
+
column: e,
|
|
73
|
+
label: U.columnNumber,
|
|
74
|
+
ariaLabel: U.sortByNumber
|
|
75
|
+
})
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
accessorKey: "customerLabel",
|
|
79
|
+
header: U.columnCustomer,
|
|
80
|
+
cell: ({ row: e }) => /* @__PURE__ */ f(x, { row: e.original }),
|
|
81
|
+
minSize: 180
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
accessorKey: "issueDateLabel",
|
|
85
|
+
enableSorting: !0,
|
|
86
|
+
header: ({ column: e }) => /* @__PURE__ */ f(b, {
|
|
87
|
+
column: e,
|
|
88
|
+
label: U.columnIssueDate,
|
|
89
|
+
ariaLabel: U.sortByIssueDate
|
|
90
|
+
})
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
accessorKey: "totalLabel",
|
|
94
|
+
enableSorting: !0,
|
|
95
|
+
header: ({ column: e }) => /* @__PURE__ */ f("div", {
|
|
96
|
+
className: "ttw:flex ttw:justify-end",
|
|
97
|
+
children: /* @__PURE__ */ f(b, {
|
|
98
|
+
column: e,
|
|
99
|
+
label: U.columnAmount,
|
|
100
|
+
ariaLabel: U.sortByAmount
|
|
101
|
+
})
|
|
102
|
+
}),
|
|
103
|
+
cell: ({ row: e }) => /* @__PURE__ */ f("div", {
|
|
104
|
+
className: "ttw:text-right",
|
|
105
|
+
children: e.original.totalLabel
|
|
106
|
+
})
|
|
107
|
+
}
|
|
108
|
+
];
|
|
109
|
+
return /* @__PURE__ */ p("div", {
|
|
110
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ p("div", {
|
|
113
|
+
className: "ttw:flex ttw:justify-between ttw:gap-4",
|
|
114
|
+
children: [/* @__PURE__ */ p("div", {
|
|
115
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
116
|
+
children: [I, L && /* @__PURE__ */ p("div", {
|
|
117
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
118
|
+
children: [/* @__PURE__ */ f("span", {
|
|
119
|
+
className: "ttw:text-muted-foreground",
|
|
120
|
+
children: U.bankAttributionPrefix
|
|
121
|
+
}), /* @__PURE__ */ f("img", {
|
|
122
|
+
width: 120,
|
|
123
|
+
src: L.logoSrc,
|
|
124
|
+
alt: L.logoAlt
|
|
125
|
+
})]
|
|
126
|
+
})]
|
|
127
|
+
}), /* @__PURE__ */ p("div", {
|
|
128
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
129
|
+
children: [z && /* @__PURE__ */ f(a, { children: /* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(o, {
|
|
130
|
+
asChild: !0,
|
|
131
|
+
children: /* @__PURE__ */ f(e, {
|
|
132
|
+
type: "button",
|
|
133
|
+
variant: "outline",
|
|
134
|
+
size: "lg",
|
|
135
|
+
"aria-label": U.settingsButton,
|
|
136
|
+
onClick: z,
|
|
137
|
+
children: /* @__PURE__ */ f(_, {
|
|
138
|
+
className: "ttw:size-4.5",
|
|
139
|
+
"aria-hidden": !0
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
}), /* @__PURE__ */ f(i, {
|
|
143
|
+
sideOffset: 4,
|
|
144
|
+
children: U.settingsButton
|
|
145
|
+
})] }) }), R && /* @__PURE__ */ f(e, {
|
|
146
|
+
size: "lg",
|
|
147
|
+
onClick: R,
|
|
148
|
+
children: U.createInvoiceButton
|
|
149
|
+
})]
|
|
150
|
+
})]
|
|
151
|
+
}),
|
|
152
|
+
!g && M && N && /* @__PURE__ */ f(d, {
|
|
153
|
+
view: M,
|
|
154
|
+
onSelect: N,
|
|
155
|
+
labels: { all: U.statusCardsAll }
|
|
156
|
+
}),
|
|
157
|
+
g ? /* @__PURE__ */ f(c, {
|
|
158
|
+
icon: /* @__PURE__ */ f(v, { className: "ttw:size-8 ttw:text-primary" }),
|
|
159
|
+
title: U.accessRestrictedTitle,
|
|
160
|
+
description: U.accessRestrictedDescription
|
|
161
|
+
}) : h ? /* @__PURE__ */ f(c, {
|
|
162
|
+
title: U.errorTitle,
|
|
163
|
+
description: U.errorDescription,
|
|
164
|
+
retryLabel: V ? U.errorRetry : void 0,
|
|
165
|
+
onRetry: V
|
|
166
|
+
}) : /* @__PURE__ */ f(t, {
|
|
167
|
+
columns: W,
|
|
168
|
+
data: n,
|
|
169
|
+
isLoading: m,
|
|
170
|
+
sorting: S,
|
|
171
|
+
onSortingChange: C,
|
|
172
|
+
pageSize: w,
|
|
173
|
+
onPageSizeChange: T,
|
|
174
|
+
pageSizeOptions: E,
|
|
175
|
+
pageInfo: D,
|
|
176
|
+
hasNextPage: O,
|
|
177
|
+
hasPrevPage: k,
|
|
178
|
+
onNextPage: A,
|
|
179
|
+
onPrevPage: j,
|
|
180
|
+
onRowClick: B,
|
|
181
|
+
rowAriaLabel: (e) => U.openRow(e.documentLabel),
|
|
182
|
+
filterComponent: P,
|
|
183
|
+
children: /* @__PURE__ */ f(s, {
|
|
184
|
+
title: F ? U.filterEmptyTitle : U.emptyTitle,
|
|
185
|
+
description: F ? void 0 : U.emptyDescription,
|
|
186
|
+
actionLabel: F ? void 0 : U.createInvoiceButton,
|
|
187
|
+
onAction: F ? void 0 : R
|
|
188
|
+
})
|
|
189
|
+
})
|
|
190
|
+
]
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
export { S as ReceivablesScreen, S as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { UNSAVED_INVOICE_DIALOG_LABELS_EN as s } from "./index13.js";
|
|
3
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
import { XIcon as u } from "lucide-react";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js
|
|
6
|
+
function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _ }) {
|
|
7
|
+
let v = {
|
|
8
|
+
...s,
|
|
9
|
+
..._
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ c(e, {
|
|
12
|
+
open: d,
|
|
13
|
+
onOpenChange: (e) => {
|
|
14
|
+
!e && !h && m();
|
|
15
|
+
},
|
|
16
|
+
children: /* @__PURE__ */ l(t, { children: [
|
|
17
|
+
/* @__PURE__ */ l("button", {
|
|
18
|
+
type: "button",
|
|
19
|
+
onClick: m,
|
|
20
|
+
disabled: h,
|
|
21
|
+
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
|
|
22
|
+
children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
|
|
23
|
+
className: "ttw:sr-only",
|
|
24
|
+
children: v.unsavedCloseButton
|
|
25
|
+
})]
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: v.unsavedTitle }), /* @__PURE__ */ c(n, { children: v.unsavedDescription })] }),
|
|
28
|
+
/* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
29
|
+
type: "button",
|
|
30
|
+
variant: "outline",
|
|
31
|
+
onClick: p,
|
|
32
|
+
disabled: h,
|
|
33
|
+
children: v.unsavedDiscardButton
|
|
34
|
+
}), /* @__PURE__ */ c(o, {
|
|
35
|
+
type: "button",
|
|
36
|
+
loading: h,
|
|
37
|
+
disabled: h || g,
|
|
38
|
+
onClick: f,
|
|
39
|
+
children: v.unsavedSaveDraftButton
|
|
40
|
+
})] })
|
|
41
|
+
] })
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { d as UnsavedInvoiceDialog, d as default };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.271", n = "8dab6570778b10180c6641788625a690f8f812c8", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, Field as s, FieldContent as c, FieldLabel as l, Input as u, InputTags as d, Textarea as f, Typography as p } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN as m } from "./index12.js";
|
|
3
|
-
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js
|
|
5
|
-
function _({ idPrefix: _, view: v, onOpenChange: y, onChange: b, onSave: x, labels: S }) {
|
|
6
|
-
let C = {
|
|
7
|
-
...m,
|
|
8
|
-
...S
|
|
9
|
-
}, w = {
|
|
10
|
-
to: `${_}-recipients-to`,
|
|
11
|
-
cc: `${_}-recipients-cc`,
|
|
12
|
-
bcc: `${_}-recipients-bcc`,
|
|
13
|
-
subject: `${_}-subject`,
|
|
14
|
-
message: `${_}-message`
|
|
15
|
-
};
|
|
16
|
-
return /* @__PURE__ */ h(t, {
|
|
17
|
-
open: v.open,
|
|
18
|
-
onOpenChange: y,
|
|
19
|
-
children: /* @__PURE__ */ g(n, {
|
|
20
|
-
className: "ttw:sm:max-w-lg",
|
|
21
|
-
children: [/* @__PURE__ */ g(a, { children: [/* @__PURE__ */ h(o, { children: C.recurrenceEmailTitle }), /* @__PURE__ */ h(r, { children: C.recurrenceEmailDescription })] }), v.ready && /* @__PURE__ */ g("form", {
|
|
22
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
23
|
-
onSubmit: (e) => {
|
|
24
|
-
e.preventDefault(), e.stopPropagation(), v.saveDisabled || x();
|
|
25
|
-
},
|
|
26
|
-
children: [
|
|
27
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
28
|
-
htmlFor: w.to,
|
|
29
|
-
children: C.recurrenceEmailTo
|
|
30
|
-
}), /* @__PURE__ */ h(d, {
|
|
31
|
-
id: w.to,
|
|
32
|
-
value: v.to,
|
|
33
|
-
onChange: (e) => b("to", e),
|
|
34
|
-
inputValue: v.toInput,
|
|
35
|
-
onInputValueChange: (e) => b("toInput", e),
|
|
36
|
-
removeTagLabel: v.removeRecipientLabel,
|
|
37
|
-
placeholder: v.showToPlaceholder ? C.recurrenceEmailRecipientPlaceholder : void 0
|
|
38
|
-
})] }) }),
|
|
39
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
40
|
-
htmlFor: w.cc,
|
|
41
|
-
children: C.recurrenceEmailCc
|
|
42
|
-
}), /* @__PURE__ */ h(d, {
|
|
43
|
-
id: w.cc,
|
|
44
|
-
value: v.cc,
|
|
45
|
-
onChange: (e) => b("cc", e),
|
|
46
|
-
inputValue: v.ccInput,
|
|
47
|
-
onInputValueChange: (e) => b("ccInput", e),
|
|
48
|
-
removeTagLabel: v.removeRecipientLabel
|
|
49
|
-
})] }) }),
|
|
50
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
51
|
-
htmlFor: w.bcc,
|
|
52
|
-
children: C.recurrenceEmailBcc
|
|
53
|
-
}), /* @__PURE__ */ h(d, {
|
|
54
|
-
id: w.bcc,
|
|
55
|
-
value: v.bcc,
|
|
56
|
-
onChange: (e) => b("bcc", e),
|
|
57
|
-
inputValue: v.bccInput,
|
|
58
|
-
onInputValueChange: (e) => b("bccInput", e),
|
|
59
|
-
removeTagLabel: v.removeRecipientLabel
|
|
60
|
-
})] }) }),
|
|
61
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
62
|
-
htmlFor: w.subject,
|
|
63
|
-
children: C.recurrenceEmailSubject
|
|
64
|
-
}), /* @__PURE__ */ h(u, {
|
|
65
|
-
id: w.subject,
|
|
66
|
-
value: v.subject,
|
|
67
|
-
onChange: (e) => b("subject", e.target.value)
|
|
68
|
-
})] }) }),
|
|
69
|
-
/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, { children: [/* @__PURE__ */ h(l, {
|
|
70
|
-
htmlFor: w.message,
|
|
71
|
-
children: C.recurrenceEmailMessage
|
|
72
|
-
}), /* @__PURE__ */ h(f, {
|
|
73
|
-
id: w.message,
|
|
74
|
-
rows: 5,
|
|
75
|
-
placeholder: C.recurrenceEmailMessagePlaceholder,
|
|
76
|
-
value: v.message,
|
|
77
|
-
onChange: (e) => b("message", e.target.value)
|
|
78
|
-
})] }) }),
|
|
79
|
-
/* @__PURE__ */ h(p, {
|
|
80
|
-
variant: "caption",
|
|
81
|
-
color: "muted",
|
|
82
|
-
children: C.recurrenceEmailFootnote
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ g(i, { children: [/* @__PURE__ */ h(e, {
|
|
85
|
-
type: "button",
|
|
86
|
-
variant: "outline",
|
|
87
|
-
onClick: () => y(!1),
|
|
88
|
-
children: C.recurrenceEmailCancel
|
|
89
|
-
}), /* @__PURE__ */ h(e, {
|
|
90
|
-
type: "submit",
|
|
91
|
-
disabled: v.saveDisabled,
|
|
92
|
-
children: C.recurrenceEmailSave
|
|
93
|
-
})] })
|
|
94
|
-
]
|
|
95
|
-
})]
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
export { _ as ReceivableRecurrenceEmailDialog, _ as default };
|