@tesouro/embedded-components-react 0.11.120 → 0.11.123
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/README.md +6 -3
- package/dist/index.css +32 -161
- package/dist/index.d.ts +40 -8
- package/dist/index.js +29 -28
- package/dist/lib/ExpenseManagementWidget.d.ts +11 -2
- package/dist/lib/ReceivablesWidget.d.ts +29 -6
- package/dist/lib/ReceivablesWidget.js +3 -1
- package/dist/lib/WidgetSuite.d.ts +38 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +343 -264
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/labels.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/permissions.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/useExpenseTabBadgeCounts.js +34 -19
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/useExpensesTransactions.js +100 -98
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsActionsFeature.js +27 -24
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/expenseStatus.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +43 -44
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index4.js +79 -40
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index3.js +47 -46
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index4.js +78 -84
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +165 -158
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index6.js +38 -100
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index7.js +77 -54
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +213 -229
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/ExpenseStatusBadge.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/ExpensesScreen.js +66 -73
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +123 -80
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +83 -74
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/DeleteReceiptDialog/DeleteReceiptDialog.js +22 -30
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js +176 -259
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/labels.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/BulkProgress.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js +112 -121
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +342 -295
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +30 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +121 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +39 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +2 -205
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +11 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +11 -210
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +27 -159
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +203 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +210 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +154 -111
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +21 -195
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +116 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +3 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +197 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +8 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +73 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +36 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -85
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +33 -490
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +82 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +475 -426
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -226
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +46 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +69 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +445 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +208 -246
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +5 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +247 -222
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +125 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +23 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +229 -209
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +3 -47
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +248 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +53 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +3 -40
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +41 -32
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/ui/dist/index3.js +43 -53
- 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/ui/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyAddress/CopyAddress.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +84 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +126 -73
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index3.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index4.js +75 -128
- package/dist/packages/shared-ui-shadcn/dist/index.js +1399 -1302
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/badgeTones.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +0 -27
|
@@ -1,219 +1,239 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import { ReceivableStatusBadge as l } from "../../../shared/document-status/ui/dist/index7.js";
|
|
6
|
-
import "../../../shared/document-status/ui/dist/index.js";
|
|
7
|
-
import { RECEIVABLES_SCREEN_LABELS_EN as u } from "./index14.js";
|
|
8
|
-
import { SeriesStatusChip as d } from "./index37.js";
|
|
9
|
-
import { ReceivableStatusCards as f } from "./index55.js";
|
|
10
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
-
import { ArrowDownIcon as h, ArrowUpDownIcon as g, ArrowUpIcon as _, CogIcon as v, LockKeyholeIcon as y, RefreshCwIcon as b } from "lucide-react";
|
|
1
|
+
import { Button as e, DatePicker as t, FieldError as n, Input as r, Label as i, Select as a, SelectContent as o, SelectItem as s, SelectSeparator as c, SelectTrigger as l, SelectValue as u, Typography as d, cn as f } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_RECURRENCE_SECTION_LABELS_EN as p } from "./index17.js";
|
|
3
|
+
import { CreationModeOption as m } from "./index55.js";
|
|
4
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
12
5
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
6
|
+
var v = "ttw:text-sm ttw:font-normal ttw:text-nowrap ttw:text-muted-foreground";
|
|
7
|
+
function y({ idPrefix: y, view: b, disabled: x, onFrequencyChange: S, onMonthDayChange: C, onWeekdayChange: w, onStartDateChange: T, onEndModeChange: E, onEndDateChange: D, onMaxOccurrencesChange: O, onCreationModeChange: k, onSetUpEmailClick: A, emailDialog: j, labels: M }) {
|
|
8
|
+
let N = {
|
|
9
|
+
...p,
|
|
10
|
+
...M
|
|
11
|
+
}, P = {
|
|
12
|
+
frequency: `${y}-frequency`,
|
|
13
|
+
monthDay: `${y}-issue-mode`,
|
|
14
|
+
startDate: `${y}-start-date`,
|
|
15
|
+
endMode: `${y}-end-mode`,
|
|
16
|
+
endDate: `${y}-end-date`,
|
|
17
|
+
occurrences: `${y}-max-occurrences`,
|
|
18
|
+
creationMode: `${y}-automation-level`,
|
|
19
|
+
emailError: `${y}-email-error`
|
|
20
|
+
}, { schedule: F, creationMode: I } = b, L = (e, n, r) => /* @__PURE__ */ g("div", {
|
|
21
|
+
className: "ttw:w-44",
|
|
22
|
+
children: /* @__PURE__ */ g(t, {
|
|
23
|
+
id: e,
|
|
24
|
+
value: n.value,
|
|
25
|
+
onChange: r,
|
|
26
|
+
placeholder: N.recurrenceDatePlaceholder,
|
|
27
|
+
disabled: x || n.disabled,
|
|
28
|
+
minDate: n.minDate,
|
|
29
|
+
maxDate: n.maxDate,
|
|
30
|
+
defaultMonth: n.minDate,
|
|
31
|
+
disabledDates: n.isDateDisabled,
|
|
32
|
+
"aria-invalid": n.invalid || void 0,
|
|
33
|
+
className: "ttw:flex-row-reverse ttw:justify-between ttw:text-foreground ttw:[&>svg]:mr-0"
|
|
34
|
+
})
|
|
35
|
+
}), R = (e) => /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("div", {
|
|
36
|
+
className: "ttw:relative",
|
|
37
|
+
children: [/* @__PURE__ */ g(r, {
|
|
38
|
+
id: P.occurrences,
|
|
39
|
+
className: "ttw:w-16",
|
|
40
|
+
type: "text",
|
|
41
|
+
inputMode: "numeric",
|
|
42
|
+
value: e.value,
|
|
43
|
+
disabled: x,
|
|
44
|
+
"aria-invalid": e.invalid || void 0,
|
|
45
|
+
"aria-describedby": F?.maxOccurrencesError ? `${P.occurrences}-error` : void 0,
|
|
46
|
+
onChange: (e) => O(e.target.value)
|
|
47
|
+
}), F?.maxOccurrencesError && /* @__PURE__ */ g(n, {
|
|
48
|
+
id: `${P.occurrences}-error`,
|
|
49
|
+
className: "ttw:absolute ttw:top-full ttw:left-0 ttw:mt-1 ttw:text-nowrap",
|
|
50
|
+
errors: [{ message: F.maxOccurrencesError }]
|
|
29
51
|
})]
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
children: e.dueDateLabel
|
|
38
|
-
}), /* @__PURE__ */ p("span", {
|
|
39
|
-
className: "ttw:text-xs ttw:leading-4.5",
|
|
40
|
-
children: e.dueDateOverdueLabel
|
|
41
|
-
})]
|
|
42
|
-
}) : e.dueDateLabel;
|
|
43
|
-
}
|
|
44
|
-
function w({ row: e, statusBadgeLabels: t }) {
|
|
45
|
-
let r = e.statusOverride;
|
|
46
|
-
return r ? r.kind === "loading" ? /* @__PURE__ */ p(n, { className: "ttw:h-4 ttw:w-full" }) : r.kind === "chip" ? /* @__PURE__ */ p(d, {
|
|
47
|
-
label: r.label,
|
|
48
|
-
tone: r.tone
|
|
49
|
-
}) : null : /* @__PURE__ */ p(l, {
|
|
50
|
-
status: e.status,
|
|
51
|
-
variant: "filled",
|
|
52
|
-
labels: t
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function T({ row: e }) {
|
|
56
|
-
return e.showDocumentSyncIcon ? /* @__PURE__ */ m("span", {
|
|
57
|
-
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
58
|
-
children: [/* @__PURE__ */ p(b, {
|
|
59
|
-
className: "ttw:size-[1em]",
|
|
60
|
-
"aria-hidden": !0
|
|
61
|
-
}), e.documentLabel]
|
|
62
|
-
}) : e.documentLabel;
|
|
63
|
-
}
|
|
64
|
-
function E({ row: e }) {
|
|
65
|
-
return e.customerState === "resolving" ? /* @__PURE__ */ p(n, { className: "ttw:h-4 ttw:w-full" }) : e.customerState === "missing" ? /* @__PURE__ */ p("span", {
|
|
66
|
-
className: "ttw:opacity-40",
|
|
67
|
-
children: e.customerLabel
|
|
68
|
-
}) : /* @__PURE__ */ p("span", { children: e.customerLabel });
|
|
69
|
-
}
|
|
70
|
-
function D({ rows: n, isLoading: l, isError: d, isAccessRestricted: h, sorting: g, onSortingChange: _, pageSize: b, onPageSizeChange: D, pageSizeOptions: O = x, pageInfo: k, hasNextPage: A, hasPrevPage: j, onNextPage: M, onPrevPage: N, statusCards: P, onStatusCardSelect: F, filterBar: I, isFiltering: L, headerStart: R, onCreateClick: z, onSettingsClick: B, onRowClick: V, onRetry: H, labels: U }) {
|
|
71
|
-
let W = {
|
|
72
|
-
...u,
|
|
73
|
-
...U,
|
|
74
|
-
statusBadge: {
|
|
75
|
-
...u.statusBadge,
|
|
76
|
-
...U?.statusBadge
|
|
77
|
-
}
|
|
78
|
-
}, G = [
|
|
79
|
-
{
|
|
80
|
-
accessorKey: "dueDateLabel",
|
|
81
|
-
enableSorting: !0,
|
|
82
|
-
header: ({ column: e }) => /* @__PURE__ */ p(S, {
|
|
83
|
-
column: e,
|
|
84
|
-
label: W.columnDueDate,
|
|
85
|
-
ariaLabel: W.sortByDueDate
|
|
86
|
-
}),
|
|
87
|
-
cell: ({ row: e }) => /* @__PURE__ */ p(C, { row: e.original })
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
accessorKey: "status",
|
|
91
|
-
enableSorting: !0,
|
|
92
|
-
header: ({ column: e }) => /* @__PURE__ */ p(S, {
|
|
93
|
-
column: e,
|
|
94
|
-
label: W.columnStatus,
|
|
95
|
-
ariaLabel: W.sortByStatus
|
|
96
|
-
}),
|
|
97
|
-
cell: ({ row: e }) => /* @__PURE__ */ p(w, {
|
|
98
|
-
row: e.original,
|
|
99
|
-
statusBadgeLabels: W.statusBadge
|
|
100
|
-
})
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
accessorKey: "documentLabel",
|
|
104
|
-
enableSorting: !0,
|
|
105
|
-
header: ({ column: e }) => /* @__PURE__ */ p(S, {
|
|
106
|
-
column: e,
|
|
107
|
-
label: W.columnNumber,
|
|
108
|
-
ariaLabel: W.sortByNumber
|
|
109
|
-
}),
|
|
110
|
-
cell: ({ row: e }) => /* @__PURE__ */ p(T, { row: e.original })
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
accessorKey: "customerLabel",
|
|
114
|
-
header: W.columnCustomer,
|
|
115
|
-
cell: ({ row: e }) => /* @__PURE__ */ p(E, { row: e.original }),
|
|
116
|
-
minSize: 180
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
accessorKey: "issueDateLabel",
|
|
120
|
-
enableSorting: !0,
|
|
121
|
-
header: ({ column: e }) => /* @__PURE__ */ p(S, {
|
|
122
|
-
column: e,
|
|
123
|
-
label: W.columnIssueDate,
|
|
124
|
-
ariaLabel: W.sortByIssueDate
|
|
125
|
-
})
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
accessorKey: "totalLabel",
|
|
129
|
-
enableSorting: !0,
|
|
130
|
-
header: ({ column: e }) => /* @__PURE__ */ p("div", {
|
|
131
|
-
className: "ttw:flex ttw:justify-end",
|
|
132
|
-
children: /* @__PURE__ */ p(S, {
|
|
133
|
-
column: e,
|
|
134
|
-
label: W.columnAmount,
|
|
135
|
-
ariaLabel: W.sortByAmount
|
|
136
|
-
})
|
|
137
|
-
}),
|
|
138
|
-
cell: ({ row: e }) => /* @__PURE__ */ p("div", {
|
|
139
|
-
className: "ttw:text-right",
|
|
140
|
-
children: e.original.totalLabel
|
|
141
|
-
})
|
|
142
|
-
}
|
|
143
|
-
];
|
|
144
|
-
return /* @__PURE__ */ m("div", {
|
|
145
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
52
|
+
}), /* @__PURE__ */ g(i, {
|
|
53
|
+
htmlFor: P.occurrences,
|
|
54
|
+
className: v,
|
|
55
|
+
children: e.unitLabel
|
|
56
|
+
})] });
|
|
57
|
+
return /* @__PURE__ */ _("section", {
|
|
58
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
146
59
|
children: [
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
className: "ttw:flex ttw:
|
|
149
|
-
children: [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
60
|
+
/* @__PURE__ */ _("div", {
|
|
61
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2.5",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ g(i, {
|
|
64
|
+
htmlFor: P.frequency,
|
|
65
|
+
className: v,
|
|
66
|
+
children: N.recurrenceRepeatLabel
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ _(a, {
|
|
69
|
+
value: b.frequency.value,
|
|
70
|
+
disabled: x || b.frequency.disabled,
|
|
71
|
+
onValueChange: S,
|
|
72
|
+
children: [/* @__PURE__ */ g(l, {
|
|
73
|
+
id: P.frequency,
|
|
74
|
+
className: "ttw:w-31",
|
|
75
|
+
children: /* @__PURE__ */ g(u, {})
|
|
76
|
+
}), /* @__PURE__ */ g(o, { children: b.frequency.options.map((e) => /* @__PURE__ */ g(s, {
|
|
77
|
+
value: e.value,
|
|
78
|
+
children: e.label
|
|
79
|
+
}, e.value)) })]
|
|
80
|
+
}),
|
|
81
|
+
b.monthDay && /* @__PURE__ */ _(h, { children: [
|
|
82
|
+
/* @__PURE__ */ g(i, {
|
|
83
|
+
htmlFor: P.monthDay,
|
|
84
|
+
className: v,
|
|
85
|
+
children: N.recurrenceMonthDayLead
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ _(a, {
|
|
88
|
+
value: b.monthDay.value,
|
|
89
|
+
disabled: x || b.monthDay.disabled,
|
|
90
|
+
onValueChange: C,
|
|
91
|
+
children: [/* @__PURE__ */ g(l, {
|
|
92
|
+
id: P.monthDay,
|
|
93
|
+
className: "ttw:w-fit ttw:min-w-21",
|
|
94
|
+
"aria-invalid": b.monthDay.invalid || void 0,
|
|
95
|
+
children: /* @__PURE__ */ g(u, {})
|
|
96
|
+
}), /* @__PURE__ */ _(o, { children: [
|
|
97
|
+
b.monthDay.edgeOptions.map((e) => /* @__PURE__ */ g(s, {
|
|
98
|
+
value: e.value,
|
|
99
|
+
children: e.label
|
|
100
|
+
}, e.value)),
|
|
101
|
+
/* @__PURE__ */ g(c, {}),
|
|
102
|
+
b.monthDay.dayOptions.map((e) => /* @__PURE__ */ g(s, {
|
|
103
|
+
value: e.value,
|
|
104
|
+
children: e.label
|
|
105
|
+
}, e.value))
|
|
106
|
+
] })]
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ g(d, {
|
|
109
|
+
variant: "body2",
|
|
110
|
+
color: "muted",
|
|
111
|
+
component: "span",
|
|
112
|
+
className: "ttw:text-nowrap",
|
|
113
|
+
children: b.monthDay.trailLabel
|
|
167
114
|
})
|
|
168
|
-
}),
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
115
|
+
] }),
|
|
116
|
+
b.weekday && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(d, {
|
|
117
|
+
variant: "body2",
|
|
118
|
+
color: "muted",
|
|
119
|
+
component: "span",
|
|
120
|
+
children: N.recurrenceWeekdayLead
|
|
121
|
+
}), /* @__PURE__ */ g("div", {
|
|
122
|
+
className: f("ttw:flex ttw:h-8 ttw:w-56 ttw:rounded-md ttw:border ttw:border-border", b.weekday.invalid && "ttw:border-destructive", b.weekday.disabled && "ttw:opacity-50"),
|
|
123
|
+
children: b.weekday.options.map((e, t, n) => /* @__PURE__ */ g("button", {
|
|
124
|
+
type: "button",
|
|
125
|
+
disabled: x || b.weekday?.disabled,
|
|
126
|
+
"aria-pressed": e.pressed,
|
|
127
|
+
onClick: () => w(e.value),
|
|
128
|
+
className: f("ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center ttw:text-sm ttw:font-medium ttw:transition-colors ttw:hover:cursor-pointer ttw:hover:bg-muted ttw:disabled:pointer-events-none", e.pressed && "ttw:bg-muted", t < n.length - 1 && "ttw:border-r ttw:border-border"),
|
|
129
|
+
children: e.label
|
|
130
|
+
}, e.value))
|
|
131
|
+
})] })
|
|
132
|
+
]
|
|
133
|
+
}),
|
|
134
|
+
F && /* @__PURE__ */ _("div", {
|
|
135
|
+
className: f("ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2.5", F.maxOccurrencesError && "ttw:pb-6"),
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ g(i, {
|
|
138
|
+
htmlFor: P.startDate,
|
|
139
|
+
className: v,
|
|
140
|
+
children: N.recurrenceStartOnLabel
|
|
141
|
+
}),
|
|
142
|
+
L(P.startDate, F.start, T),
|
|
143
|
+
F.end.kind === "choice" ? /* @__PURE__ */ _(h, { children: [
|
|
144
|
+
/* @__PURE__ */ g(i, {
|
|
145
|
+
htmlFor: P.endMode,
|
|
146
|
+
className: v,
|
|
147
|
+
children: N.recurrenceEndChoiceLead
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ _(a, {
|
|
150
|
+
value: F.end.mode.value,
|
|
151
|
+
disabled: x,
|
|
152
|
+
onValueChange: E,
|
|
153
|
+
children: [/* @__PURE__ */ g(l, {
|
|
154
|
+
id: P.endMode,
|
|
155
|
+
className: "ttw:w-21",
|
|
156
|
+
"aria-invalid": F.end.mode.invalid || void 0,
|
|
157
|
+
children: /* @__PURE__ */ g(u, {})
|
|
158
|
+
}), /* @__PURE__ */ g(o, { children: F.end.mode.options.map((e) => /* @__PURE__ */ g(s, {
|
|
159
|
+
value: e.value,
|
|
160
|
+
children: e.label
|
|
161
|
+
}, e.value)) })]
|
|
162
|
+
}),
|
|
163
|
+
F.end.date && L(P.endDate, F.end.date, D),
|
|
164
|
+
F.end.occurrences && R(F.end.occurrences)
|
|
165
|
+
] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(i, {
|
|
166
|
+
htmlFor: P.occurrences,
|
|
167
|
+
className: v,
|
|
168
|
+
children: N.recurrenceEndCountLead
|
|
169
|
+
}), R(F.end.occurrences)] })
|
|
170
|
+
]
|
|
177
171
|
}),
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
172
|
+
j,
|
|
173
|
+
b.lastDayCaption && /* @__PURE__ */ g(d, {
|
|
174
|
+
variant: "caption",
|
|
175
|
+
color: "muted",
|
|
176
|
+
children: b.lastDayCaption
|
|
182
177
|
}),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
178
|
+
I && /* @__PURE__ */ _("div", {
|
|
179
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:pt-1.5",
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ g(i, {
|
|
182
|
+
htmlFor: P.creationMode,
|
|
183
|
+
children: /* @__PURE__ */ _(d, {
|
|
184
|
+
variant: "body2",
|
|
185
|
+
component: "span",
|
|
186
|
+
className: "ttw:block",
|
|
187
|
+
children: [
|
|
188
|
+
N.recurrenceCreationModeQuestion,
|
|
189
|
+
" ",
|
|
190
|
+
/* @__PURE__ */ g(d, {
|
|
191
|
+
variant: "body2",
|
|
192
|
+
component: "span",
|
|
193
|
+
color: "muted",
|
|
194
|
+
children: N.recurrenceCreationModeHint
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
})
|
|
198
|
+
}),
|
|
199
|
+
/* @__PURE__ */ _(a, {
|
|
200
|
+
value: I.value,
|
|
201
|
+
disabled: x,
|
|
202
|
+
onValueChange: (e) => k(e),
|
|
203
|
+
children: [/* @__PURE__ */ g(l, {
|
|
204
|
+
id: P.creationMode,
|
|
205
|
+
"aria-invalid": !!I.emailError || void 0,
|
|
206
|
+
"aria-describedby": I.emailError ? P.emailError : void 0,
|
|
207
|
+
className: "ttw:h-auto! ttw:w-full ttw:py-2.5 ttw:*:data-[slot=select-value]:line-clamp-none",
|
|
208
|
+
children: /* @__PURE__ */ g(u, {})
|
|
209
|
+
}), /* @__PURE__ */ g(o, { children: I.options.map((e) => /* @__PURE__ */ g(s, {
|
|
210
|
+
value: e.value,
|
|
211
|
+
children: /* @__PURE__ */ g(m, { option: e })
|
|
212
|
+
}, e.value)) })]
|
|
213
|
+
}),
|
|
214
|
+
I.emailSummary !== void 0 && /* @__PURE__ */ _("div", {
|
|
215
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
216
|
+
children: [/* @__PURE__ */ g(d, {
|
|
217
|
+
variant: "body2",
|
|
218
|
+
color: "muted",
|
|
219
|
+
className: "ttw:truncate",
|
|
220
|
+
children: I.emailSummary
|
|
221
|
+
}), /* @__PURE__ */ g(e, {
|
|
222
|
+
type: "button",
|
|
223
|
+
variant: "link",
|
|
224
|
+
className: "ttw:h-auto ttw:p-0",
|
|
225
|
+
disabled: x,
|
|
226
|
+
onClick: A,
|
|
227
|
+
children: N.recurrenceSetUpEmail
|
|
228
|
+
})]
|
|
229
|
+
}),
|
|
230
|
+
I.emailError && /* @__PURE__ */ g(n, {
|
|
231
|
+
id: P.emailError,
|
|
232
|
+
errors: [{ message: I.emailError }]
|
|
233
|
+
})
|
|
234
|
+
]
|
|
215
235
|
})
|
|
216
236
|
]
|
|
217
237
|
});
|
|
218
238
|
}
|
|
219
|
-
export {
|
|
239
|
+
export { y as ReceivableRecurrenceSection, y as default };
|
|
@@ -1,47 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { XIcon as u } from "lucide-react";
|
|
5
|
-
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.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, {
|
|
17
|
-
showCloseButton: !1,
|
|
18
|
-
children: [
|
|
19
|
-
/* @__PURE__ */ l("button", {
|
|
20
|
-
type: "button",
|
|
21
|
-
onClick: m,
|
|
22
|
-
disabled: h,
|
|
23
|
-
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",
|
|
24
|
-
children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
|
|
25
|
-
className: "ttw:sr-only",
|
|
26
|
-
children: v.unsavedCloseButton
|
|
27
|
-
})]
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: v.unsavedTitle }), /* @__PURE__ */ c(n, { children: v.unsavedDescription })] }),
|
|
30
|
-
/* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
31
|
-
type: "button",
|
|
32
|
-
variant: "outline",
|
|
33
|
-
onClick: p,
|
|
34
|
-
disabled: h,
|
|
35
|
-
children: v.unsavedDiscardButton
|
|
36
|
-
}), /* @__PURE__ */ c(o, {
|
|
37
|
-
type: "button",
|
|
38
|
-
loading: h,
|
|
39
|
-
disabled: h || g,
|
|
40
|
-
onClick: f,
|
|
41
|
-
children: v.unsavedSaveDraftButton
|
|
42
|
-
})] })
|
|
43
|
-
]
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
export { d as UnsavedInvoiceDialog, d as default };
|
|
1
|
+
import "./index17.js";
|
|
2
|
+
import "./index54.js";
|
|
3
|
+
import "./index56.js";
|