@tesouro/embedded-components-react 0.11.235 → 0.11.236
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 +2 -2
- package/dist/index.css +12 -0
- package/dist/index.d.ts +24 -0
- package/dist/lib/ReceivablesWidget.d.ts +24 -0
- package/dist/lib/WidgetSuite.d.ts +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +198 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +76 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +459 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +101 -449
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +9 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +85 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +246 -71
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +40 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +237 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +21 -244
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +529 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +4 -530
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +242 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +3 -245
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index50.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index51.js +1 -64
- 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/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +386 -354
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +1 -1
- 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 +260 -258
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +219 -179
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +31 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +40 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +30 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +463 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +15 -66
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +66 -391
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +148 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +173 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +3 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +37 -432
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +66 -188
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +455 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +191 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +5 -265
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +261 -125
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +2 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +122 -230
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +216 -224
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +3 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +228 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +152 -109
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +140 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index65.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/document-preview.js +1 -0
- 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/feature/dist/lib/document/documentPreview.js +122 -0
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index52.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +0 -2
|
@@ -1,144 +1,187 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EmptyState as
|
|
3
|
-
import { ErrorState as
|
|
4
|
-
import {
|
|
1
|
+
import { Badge as e, Button as t, DataTable as n, Skeleton as r, cn as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as a } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
+
import { ErrorState as o } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
|
+
import { DueDateText as s } from "../../../shared/ui/dist/lib/DueDateText/DueDateText.js";
|
|
5
5
|
import "../../../shared/ui/dist/index.js";
|
|
6
|
-
import { TabRowAction as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { TabRowAction as c } from "./index8.js";
|
|
7
|
+
import { RECEIVABLES_SCREEN_LABELS_EN as l } from "./index19.js";
|
|
8
|
+
import { StatusBadge as u } from "./index30.js";
|
|
9
|
+
import { ReceivableStatusCards as d } from "./index60.js";
|
|
10
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
import { ArrowDownIcon as m, ArrowUpDownIcon as h, ArrowUpIcon as g, LockKeyholeIcon as _ } from "lucide-react";
|
|
10
12
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js
|
|
11
|
-
var
|
|
13
|
+
var v = [
|
|
12
14
|
10,
|
|
13
15
|
25,
|
|
14
16
|
50,
|
|
15
17
|
100
|
|
16
|
-
]
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
];
|
|
19
|
+
function y({ label: e, ariaLabel: n, column: r }) {
|
|
20
|
+
let i = r.getIsSorted();
|
|
21
|
+
return /* @__PURE__ */ p("div", {
|
|
22
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
23
|
+
children: [e, /* @__PURE__ */ f(t, {
|
|
24
|
+
variant: "ghost",
|
|
25
|
+
size: "icon-sm",
|
|
26
|
+
"aria-label": n,
|
|
27
|
+
onClick: () => r.toggleSorting(i === "asc"),
|
|
28
|
+
children: f(i === "asc" ? g : i === "desc" ? m : h, { className: "ttw:size-4" })
|
|
29
|
+
})]
|
|
27
30
|
});
|
|
28
31
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
function b({ row: t }) {
|
|
33
|
+
if (t.customerState === "resolving") return /* @__PURE__ */ f(r, { className: "ttw:h-4 ttw:w-full" });
|
|
34
|
+
let n = /* @__PURE__ */ f("span", {
|
|
35
|
+
className: i("ttw:min-w-0", t.customerState === "missing" && "ttw:opacity-40"),
|
|
36
|
+
children: t.customerLabel
|
|
33
37
|
});
|
|
38
|
+
return t.recurringBadgeLabel ? /* @__PURE__ */ p("span", {
|
|
39
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
40
|
+
children: [n, /* @__PURE__ */ f(e, {
|
|
41
|
+
tone: "neutral",
|
|
42
|
+
className: "ttw:shrink-0",
|
|
43
|
+
children: t.recurringBadgeLabel
|
|
44
|
+
})]
|
|
45
|
+
}) : n;
|
|
34
46
|
}
|
|
35
|
-
function
|
|
36
|
-
let
|
|
47
|
+
function x({ rows: e, isLoading: t, isError: r, isAccessRestricted: i, sorting: m, onSortingChange: h, pageSize: g, onPageSizeChange: x, pageSizeOptions: S = v, pageInfo: C, hasNextPage: w, hasPrevPage: T, onNextPage: E, onPrevPage: D, statusCards: O, onStatusCardSelect: k, filterBar: A, isFiltering: j, onCreateClick: M, headerActionContainer: N, onRowClick: P, onRetry: F, labels: I }) {
|
|
48
|
+
let L = {
|
|
37
49
|
...l,
|
|
38
|
-
...
|
|
39
|
-
|
|
50
|
+
...I,
|
|
51
|
+
statusBadge: {
|
|
52
|
+
...l.statusBadge,
|
|
53
|
+
...I?.statusBadge
|
|
54
|
+
}
|
|
55
|
+
}, R = [
|
|
40
56
|
{
|
|
41
57
|
accessorKey: "customerLabel",
|
|
42
|
-
header:
|
|
43
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
58
|
+
header: L.columnCustomer,
|
|
59
|
+
cell: ({ row: e }) => /* @__PURE__ */ f(b, { row: e.original }),
|
|
44
60
|
minSize: 180
|
|
45
61
|
},
|
|
46
62
|
{
|
|
47
|
-
accessorKey: "
|
|
48
|
-
|
|
63
|
+
accessorKey: "documentLabel",
|
|
64
|
+
enableSorting: !0,
|
|
65
|
+
header: ({ column: e }) => /* @__PURE__ */ f(y, {
|
|
66
|
+
column: e,
|
|
67
|
+
label: L.columnNumber,
|
|
68
|
+
ariaLabel: L.sortByNumber
|
|
69
|
+
})
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
accessorKey: "status",
|
|
73
|
+
enableSorting: !0,
|
|
74
|
+
header: ({ column: e }) => /* @__PURE__ */ f(y, {
|
|
75
|
+
column: e,
|
|
76
|
+
label: L.columnStatus,
|
|
77
|
+
ariaLabel: L.sortByStatus
|
|
78
|
+
}),
|
|
79
|
+
cell: ({ row: e }) => /* @__PURE__ */ f(u, {
|
|
80
|
+
label: e.original.statusLabel,
|
|
81
|
+
color: e.original.statusColor
|
|
82
|
+
})
|
|
49
83
|
},
|
|
50
84
|
{
|
|
51
|
-
accessorKey: "
|
|
52
|
-
|
|
53
|
-
|
|
85
|
+
accessorKey: "issueDateLabel",
|
|
86
|
+
enableSorting: !0,
|
|
87
|
+
header: ({ column: e }) => /* @__PURE__ */ f(y, {
|
|
88
|
+
column: e,
|
|
89
|
+
label: L.columnIssueDate,
|
|
90
|
+
ariaLabel: L.sortByIssueDate
|
|
91
|
+
})
|
|
54
92
|
},
|
|
55
93
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
94
|
+
accessorKey: "dueDateLabel",
|
|
95
|
+
enableSorting: !0,
|
|
96
|
+
header: ({ column: e }) => /* @__PURE__ */ f(y, {
|
|
97
|
+
column: e,
|
|
98
|
+
label: L.columnDueDate,
|
|
99
|
+
ariaLabel: L.sortByDueDate
|
|
100
|
+
}),
|
|
101
|
+
cell: ({ row: e }) => /* @__PURE__ */ f(s, {
|
|
102
|
+
label: e.original.dueDateLabel,
|
|
103
|
+
overdueLabel: e.original.dueDateOverdueLabel,
|
|
104
|
+
accessibleLabel: e.original.dueDateAccessibleLabel
|
|
105
|
+
})
|
|
59
106
|
},
|
|
60
107
|
{
|
|
61
|
-
accessorKey: "
|
|
108
|
+
accessorKey: "totalLabel",
|
|
62
109
|
enableSorting: !0,
|
|
63
|
-
header: ({ column: e }) => /* @__PURE__ */
|
|
110
|
+
header: ({ column: e }) => /* @__PURE__ */ f("div", {
|
|
64
111
|
className: "ttw:flex ttw:justify-end",
|
|
65
|
-
children: /* @__PURE__ */
|
|
112
|
+
children: /* @__PURE__ */ f(y, {
|
|
66
113
|
column: e,
|
|
67
|
-
|
|
114
|
+
label: L.columnAmount,
|
|
115
|
+
ariaLabel: L.sortByAmount
|
|
68
116
|
})
|
|
69
117
|
}),
|
|
70
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
118
|
+
cell: ({ row: e }) => /* @__PURE__ */ f("div", {
|
|
119
|
+
className: "ttw:text-right ttw:tabular-nums",
|
|
120
|
+
children: e.original.totalLabel
|
|
121
|
+
})
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
accessorKey: "balanceDueLabel",
|
|
125
|
+
header: () => /* @__PURE__ */ f("div", {
|
|
126
|
+
className: "ttw:text-right",
|
|
127
|
+
children: L.columnBalanceDue
|
|
128
|
+
}),
|
|
129
|
+
cell: ({ row: e }) => /* @__PURE__ */ f("div", {
|
|
71
130
|
className: "ttw:text-right ttw:tabular-nums",
|
|
72
|
-
children: e.original.
|
|
131
|
+
children: e.original.balanceDueLabel
|
|
73
132
|
})
|
|
74
133
|
}
|
|
75
|
-
],
|
|
76
|
-
|
|
134
|
+
], z = !i && !r && !j && e.length === 0;
|
|
135
|
+
return /* @__PURE__ */ p("div", {
|
|
136
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
77
137
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
children: /* @__PURE__ */ u(m, { row: e })
|
|
83
|
-
}), /* @__PURE__ */ u("span", {
|
|
84
|
-
className: "ttw:tabular-nums",
|
|
85
|
-
children: e.amountLabel
|
|
86
|
-
})]
|
|
138
|
+
M && !z && /* @__PURE__ */ f(c, {
|
|
139
|
+
container: N,
|
|
140
|
+
label: L.createInvoiceButton,
|
|
141
|
+
onClick: M
|
|
87
142
|
}),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
filterComponent: D,
|
|
129
|
-
renderCard: L,
|
|
130
|
-
children: c ? /* @__PURE__ */ u(a, {
|
|
131
|
-
title: F.errorTitle,
|
|
132
|
-
description: F.errorDescription,
|
|
133
|
-
retryLabel: N ? F.errorRetry : void 0,
|
|
134
|
-
onRetry: N
|
|
135
|
-
}) : /* @__PURE__ */ u(i, {
|
|
136
|
-
title: O ? F.filterEmptyTitle : F.emptyTitle,
|
|
137
|
-
description: O ? void 0 : F.emptyDescription,
|
|
138
|
-
actionLabel: O ? F.filterEmptyAction : F.createButton,
|
|
139
|
-
onAction: O ? k : A
|
|
143
|
+
!i && O && k && /* @__PURE__ */ f(d, {
|
|
144
|
+
view: O,
|
|
145
|
+
onSelect: k,
|
|
146
|
+
labels: {
|
|
147
|
+
group: L.statusCardsGroup,
|
|
148
|
+
loading: L.statusCardsLoading
|
|
149
|
+
}
|
|
150
|
+
}),
|
|
151
|
+
i ? /* @__PURE__ */ f(o, {
|
|
152
|
+
icon: /* @__PURE__ */ f(_, { className: "ttw:size-8 ttw:text-primary" }),
|
|
153
|
+
title: L.accessRestrictedTitle,
|
|
154
|
+
description: L.accessRestrictedDescription
|
|
155
|
+
}) : /* @__PURE__ */ f(n, {
|
|
156
|
+
columns: R,
|
|
157
|
+
data: e,
|
|
158
|
+
isLoading: t,
|
|
159
|
+
sorting: m,
|
|
160
|
+
onSortingChange: h,
|
|
161
|
+
pageSize: g,
|
|
162
|
+
onPageSizeChange: x,
|
|
163
|
+
pageSizeOptions: S,
|
|
164
|
+
pageInfo: C,
|
|
165
|
+
hasNextPage: w,
|
|
166
|
+
hasPrevPage: T,
|
|
167
|
+
onNextPage: E,
|
|
168
|
+
onPrevPage: D,
|
|
169
|
+
onRowClick: P,
|
|
170
|
+
rowAriaLabel: (e) => L.openRow(e.documentLabel),
|
|
171
|
+
filterComponent: A,
|
|
172
|
+
children: r && !j ? /* @__PURE__ */ f(o, {
|
|
173
|
+
title: L.errorTitle,
|
|
174
|
+
description: L.errorDescription,
|
|
175
|
+
retryLabel: F ? L.errorRetry : void 0,
|
|
176
|
+
onRetry: F
|
|
177
|
+
}) : /* @__PURE__ */ f(a, {
|
|
178
|
+
title: j ? L.filterEmptyTitle : L.emptyTitle,
|
|
179
|
+
description: j ? void 0 : L.emptyDescription,
|
|
180
|
+
actionLabel: j ? void 0 : L.createInvoiceButton,
|
|
181
|
+
onAction: j ? void 0 : M
|
|
182
|
+
})
|
|
140
183
|
})
|
|
141
|
-
|
|
184
|
+
]
|
|
142
185
|
});
|
|
143
186
|
}
|
|
144
|
-
export {
|
|
187
|
+
export { x as ReceivablesScreen, x as default };
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js
|
|
2
|
+
var e = {
|
|
3
|
+
createButton: "Create recurring invoice",
|
|
4
|
+
columnCustomer: "Customer",
|
|
5
|
+
columnRepeats: "Repeats",
|
|
6
|
+
columnNextInvoice: "Next invoice",
|
|
7
|
+
columnStatus: "Status",
|
|
8
|
+
columnAmount: "Amount",
|
|
9
|
+
openRow: (e) => `View series — ${e}`,
|
|
10
|
+
searchPlaceholder: "Search series",
|
|
11
|
+
searchLabel: "Search series",
|
|
12
|
+
emptyTitle: "No recurring invoices",
|
|
13
|
+
emptyDescription: "You don’t have any recurring invoices yet.",
|
|
14
|
+
filterEmptyTitle: "No series found",
|
|
15
|
+
filterEmptyAction: "Clear filters",
|
|
16
|
+
errorTitle: "Couldn’t load recurring invoices",
|
|
17
|
+
errorDescription: "There was an error loading recurring invoices.",
|
|
18
|
+
errorRetry: "Try again",
|
|
19
|
+
accessRestrictedTitle: "Access restricted",
|
|
20
|
+
accessRestrictedDescription: "You don’t have permissions to view this page. Contact your system administrator for details."
|
|
21
|
+
};
|
|
22
|
+
export { e as RECURRING_SERIES_SCREEN_LABELS_EN };
|
|
@@ -1,47 +1,144 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { DataTable as e, DataTableSortableHeader as t, Skeleton as n, cn as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as i } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
+
import { ErrorState as a } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
|
+
import { NoAccessState as o } from "../../../shared/ui/dist/lib/StatePanel/NoAccessState.js";
|
|
5
|
+
import "../../../shared/ui/dist/index.js";
|
|
6
|
+
import { TabRowAction as s } from "./index8.js";
|
|
7
|
+
import { StatusBadge as c } from "./index30.js";
|
|
8
|
+
import { RECURRING_SERIES_SCREEN_LABELS_EN as l } from "./index62.js";
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
10
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
var f = [
|
|
12
|
+
10,
|
|
13
|
+
25,
|
|
14
|
+
50,
|
|
15
|
+
100
|
|
16
|
+
], p = [];
|
|
17
|
+
function m({ row: e }) {
|
|
18
|
+
return e.customerState === "resolving" ? /* @__PURE__ */ u(n, { className: "ttw:h-4 ttw:w-full" }) : e.customerState === "missing" ? /* @__PURE__ */ u("span", {
|
|
19
|
+
className: "ttw:opacity-40",
|
|
20
|
+
children: e.customerLabel
|
|
21
|
+
}) : /* @__PURE__ */ u("span", { children: e.customerLabel });
|
|
22
|
+
}
|
|
23
|
+
function h({ row: e }) {
|
|
24
|
+
return /* @__PURE__ */ u("span", {
|
|
25
|
+
className: r(e.nextInvoiceMuted && "ttw:text-muted-foreground"),
|
|
26
|
+
children: e.nextInvoiceLabel
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function g({ row: e }) {
|
|
30
|
+
return e.status.kind === "loading" ? /* @__PURE__ */ u(n, { className: "ttw:h-4 ttw:w-full" }) : e.status.kind === "blank" ? null : /* @__PURE__ */ u(c, {
|
|
31
|
+
label: e.status.label,
|
|
32
|
+
color: e.status.color
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function _({ rows: n, isLoading: r, isError: c, isAccessRestricted: _, sorting: v, onSortingChange: y, pageSize: b, onPageSizeChange: x, pageSizeOptions: S = f, hasNextPage: C, hasPrevPage: w, onNextPage: T, onPrevPage: E, filterBar: D, isFiltering: O, onClearFilters: k, onCreateClick: A, headerActionContainer: j, onRowClick: M, onRetry: N, labels: P }) {
|
|
36
|
+
let F = {
|
|
37
|
+
...l,
|
|
38
|
+
...P
|
|
39
|
+
}, I = [
|
|
40
|
+
{
|
|
41
|
+
accessorKey: "customerLabel",
|
|
42
|
+
header: F.columnCustomer,
|
|
43
|
+
cell: ({ row: e }) => /* @__PURE__ */ u(m, { row: e.original }),
|
|
44
|
+
minSize: 180
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
accessorKey: "repeatsLabel",
|
|
48
|
+
header: F.columnRepeats
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
accessorKey: "nextInvoiceLabel",
|
|
52
|
+
header: F.columnNextInvoice,
|
|
53
|
+
cell: ({ row: e }) => /* @__PURE__ */ u(h, { row: e.original })
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "status",
|
|
57
|
+
header: F.columnStatus,
|
|
58
|
+
cell: ({ row: e }) => /* @__PURE__ */ u(g, { row: e.original })
|
|
15
59
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
children:
|
|
42
|
-
})]
|
|
43
|
-
|
|
44
|
-
|
|
60
|
+
{
|
|
61
|
+
accessorKey: "amountLabel",
|
|
62
|
+
enableSorting: !0,
|
|
63
|
+
header: ({ column: e }) => /* @__PURE__ */ u("div", {
|
|
64
|
+
className: "ttw:flex ttw:justify-end",
|
|
65
|
+
children: /* @__PURE__ */ u(t, {
|
|
66
|
+
column: e,
|
|
67
|
+
title: F.columnAmount
|
|
68
|
+
})
|
|
69
|
+
}),
|
|
70
|
+
cell: ({ row: e }) => /* @__PURE__ */ u("div", {
|
|
71
|
+
className: "ttw:text-right ttw:tabular-nums",
|
|
72
|
+
children: e.original.amountLabel
|
|
73
|
+
})
|
|
74
|
+
}
|
|
75
|
+
], L = (e) => /* @__PURE__ */ d("div", {
|
|
76
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ d("div", {
|
|
79
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
80
|
+
children: [/* @__PURE__ */ u("span", {
|
|
81
|
+
className: "ttw:min-w-0 ttw:flex-1 ttw:font-medium",
|
|
82
|
+
children: /* @__PURE__ */ u(m, { row: e })
|
|
83
|
+
}), /* @__PURE__ */ u("span", {
|
|
84
|
+
className: "ttw:tabular-nums",
|
|
85
|
+
children: e.amountLabel
|
|
86
|
+
})]
|
|
87
|
+
}),
|
|
88
|
+
[{
|
|
89
|
+
label: F.columnRepeats,
|
|
90
|
+
value: e.repeatsLabel
|
|
91
|
+
}, {
|
|
92
|
+
label: F.columnNextInvoice,
|
|
93
|
+
value: /* @__PURE__ */ u(h, { row: e })
|
|
94
|
+
}].map((e) => /* @__PURE__ */ d("div", {
|
|
95
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
96
|
+
children: [/* @__PURE__ */ u("span", {
|
|
97
|
+
className: "ttw:text-muted-foreground",
|
|
98
|
+
children: e.label
|
|
99
|
+
}), /* @__PURE__ */ u("span", { children: e.value })]
|
|
100
|
+
}, e.label)),
|
|
101
|
+
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(g, { row: e }) })
|
|
102
|
+
]
|
|
103
|
+
}), R = !_ && !c && !O && n.length === 0;
|
|
104
|
+
return /* @__PURE__ */ d("div", {
|
|
105
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
106
|
+
children: [A && !R && /* @__PURE__ */ u(s, {
|
|
107
|
+
container: j,
|
|
108
|
+
label: F.createButton,
|
|
109
|
+
onClick: A
|
|
110
|
+
}), _ ? /* @__PURE__ */ u(o, {
|
|
111
|
+
title: F.accessRestrictedTitle,
|
|
112
|
+
description: F.accessRestrictedDescription
|
|
113
|
+
}) : /* @__PURE__ */ u(e, {
|
|
114
|
+
columns: I,
|
|
115
|
+
data: c ? p : n,
|
|
116
|
+
isLoading: r,
|
|
117
|
+
sorting: v,
|
|
118
|
+
onSortingChange: y,
|
|
119
|
+
pageSize: b,
|
|
120
|
+
onPageSizeChange: x,
|
|
121
|
+
pageSizeOptions: S,
|
|
122
|
+
hasNextPage: !c && C,
|
|
123
|
+
hasPrevPage: !c && w,
|
|
124
|
+
onNextPage: T,
|
|
125
|
+
onPrevPage: E,
|
|
126
|
+
onRowClick: M,
|
|
127
|
+
rowAriaLabel: (e) => F.openRow(e.customerLabel),
|
|
128
|
+
filterComponent: D,
|
|
129
|
+
renderCard: L,
|
|
130
|
+
children: c ? /* @__PURE__ */ u(a, {
|
|
131
|
+
title: F.errorTitle,
|
|
132
|
+
description: F.errorDescription,
|
|
133
|
+
retryLabel: N ? F.errorRetry : void 0,
|
|
134
|
+
onRetry: N
|
|
135
|
+
}) : /* @__PURE__ */ u(i, {
|
|
136
|
+
title: O ? F.filterEmptyTitle : F.emptyTitle,
|
|
137
|
+
description: O ? void 0 : F.emptyDescription,
|
|
138
|
+
actionLabel: O ? F.filterEmptyAction : F.createButton,
|
|
139
|
+
onAction: O ? k : A
|
|
140
|
+
})
|
|
141
|
+
})]
|
|
45
142
|
});
|
|
46
143
|
}
|
|
47
|
-
export {
|
|
144
|
+
export { _ as RecurringSeriesScreen, _ as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
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 "./index19.js";
|
|
3
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
import { XIcon as u } from "lucide-react";
|
|
5
|
+
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index65.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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DOCUMENT_PREVIEW_LABELS_EN, createDocumentPreview } from "./lib/document/documentPreview.js";
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.236", n = "6a35c8ff9445b1ab92817a7d67644bb78ec58abc", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|