@tesouro/embedded-components-react 0.3.1 → 0.3.2
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 +7 -10
- package/dist/experimental/WidgetSuite.d.ts +2 -2
- package/dist/experimental/index.d.ts +2 -2
- package/dist/index.d.ts +1 -23
- package/dist/lib/BankAccountsWidget.d.ts +0 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +1 -5
- package/dist/lib/CounterpartsWidget.d.ts +0 -9
- package/dist/lib/ExpenseManagementWidget.d.ts +0 -1
- package/dist/lib/ProductsWidget.d.ts +0 -1
- package/dist/lib/ReceivablesWidget.d.ts +0 -1
- package/dist/lib/SettingsWidget.d.ts +0 -1
- package/dist/lib/TagsWidget.d.ts +0 -1
- package/dist/lib/TeamWidget.d.ts +0 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +64 -65
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +35 -36
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js +35 -42
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +106 -107
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +85 -93
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/labels.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js +113 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +150 -155
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +86 -91
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index2.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index3.js +67 -68
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +239 -241
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +53 -53
- package/package.json +1 -1
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { Button as e, DataTable as t, DropdownMenu as n, DropdownMenuContent as r, DropdownMenuItem as i, DropdownMenuTrigger as a, Input as o, Select as s, SelectContent as c, SelectItem as l, SelectTrigger as u, SelectValue as d, Tabs as f, TabsList as p, TabsTrigger as m
|
|
2
|
-
import { EmptyState as
|
|
3
|
-
import { ErrorState as
|
|
1
|
+
import { Button as e, DataTable as t, DropdownMenu as n, DropdownMenuContent as r, DropdownMenuItem as i, DropdownMenuTrigger as a, Input as o, Select as s, SelectContent as c, SelectItem as l, SelectTrigger as u, SelectValue as d, Tabs as f, TabsList as p, TabsTrigger as m } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as h } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
+
import { ErrorState as g } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
4
|
import "../../../shared/ui/dist/index.js";
|
|
5
|
-
import { RECEIVABLES_SCREEN_LABELS_EN as
|
|
6
|
-
import { ReceivableStatusBadge as
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { ArrowDownIcon as
|
|
5
|
+
import { RECEIVABLES_SCREEN_LABELS_EN as _ } from "./index2.js";
|
|
6
|
+
import { ReceivableStatusBadge as v } from "./index4.js";
|
|
7
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
8
|
+
import { ArrowDownIcon as x, ArrowUpDownIcon as S, ArrowUpIcon as C, MoreHorizontalIcon as w, PlusIcon as T, SearchIcon as E, SettingsIcon as D } from "lucide-react";
|
|
9
9
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js
|
|
10
|
-
var
|
|
10
|
+
var O = [
|
|
11
11
|
10,
|
|
12
12
|
25,
|
|
13
13
|
50,
|
|
14
14
|
100
|
|
15
|
-
],
|
|
16
|
-
function
|
|
15
|
+
], k = "all";
|
|
16
|
+
function A({ label: t, ariaLabel: n, column: r }) {
|
|
17
17
|
let i = r.getIsSorted();
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ b("div", {
|
|
19
19
|
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
20
|
-
children: [t, /* @__PURE__ */
|
|
20
|
+
children: [t, /* @__PURE__ */ y(e, {
|
|
21
21
|
variant: "ghost",
|
|
22
22
|
size: "icon-sm",
|
|
23
23
|
"aria-label": n,
|
|
24
24
|
onClick: () => r.toggleSorting(i === "asc"),
|
|
25
|
-
children:
|
|
25
|
+
children: y(i === "asc" ? C : i === "desc" ? x : S, { className: "ttw:size-4" })
|
|
26
26
|
})]
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
function j({ labels: e, searchValue: t, onSearchChange: n, statusFilter: r, statusOptions: i, onStatusFilterChange: a }) {
|
|
30
|
+
return /* @__PURE__ */ b("div", {
|
|
31
31
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
32
|
-
children: [/* @__PURE__ */
|
|
32
|
+
children: [/* @__PURE__ */ b("div", {
|
|
33
33
|
className: "ttw:relative ttw:w-80",
|
|
34
|
-
children: [/* @__PURE__ */
|
|
34
|
+
children: [/* @__PURE__ */ y(E, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ y(o, {
|
|
35
35
|
className: "ttw:pl-9",
|
|
36
36
|
placeholder: e.searchPlaceholder,
|
|
37
37
|
value: t,
|
|
38
38
|
onChange: (e) => n(e.target.value)
|
|
39
39
|
})]
|
|
40
|
-
}), /* @__PURE__ */
|
|
40
|
+
}), /* @__PURE__ */ b(s, {
|
|
41
41
|
value: r,
|
|
42
42
|
onValueChange: a,
|
|
43
|
-
children: [/* @__PURE__ */
|
|
43
|
+
children: [/* @__PURE__ */ y(u, {
|
|
44
44
|
"aria-label": e.columnStatus,
|
|
45
45
|
className: "ttw:w-48",
|
|
46
|
-
children: /* @__PURE__ */
|
|
47
|
-
}), /* @__PURE__ */
|
|
48
|
-
value:
|
|
46
|
+
children: /* @__PURE__ */ y(d, {})
|
|
47
|
+
}), /* @__PURE__ */ b(c, { children: [/* @__PURE__ */ y(l, {
|
|
48
|
+
value: k,
|
|
49
49
|
children: e.statusFilterAll
|
|
50
|
-
}), i.map((t) => /* @__PURE__ */
|
|
50
|
+
}), i.map((t) => /* @__PURE__ */ y(l, {
|
|
51
51
|
value: t.value,
|
|
52
|
-
children:
|
|
52
|
+
children: N(t, e.statusBadge)
|
|
53
53
|
}, t.value))] })]
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return e ? /* @__PURE__ */
|
|
57
|
+
function M({ enabled: e, label: t, action: n, row: r, onActionClick: a, variant: o }) {
|
|
58
|
+
return e ? /* @__PURE__ */ y(i, {
|
|
59
59
|
variant: o,
|
|
60
60
|
onClick: (e) => {
|
|
61
61
|
e.stopPropagation(), a(n, r);
|
|
@@ -63,81 +63,76 @@ function N({ enabled: e, label: t, action: n, row: r, onActionClick: a, variant:
|
|
|
63
63
|
children: t
|
|
64
64
|
}) : null;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function N(e, t) {
|
|
67
67
|
return t[e.value] ?? e.label;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
let
|
|
71
|
-
...
|
|
72
|
-
...
|
|
69
|
+
function P({ rows: i, activeTab: o, enabledTabs: s, onTabChange: c, isLoading: l, isError: u, sorting: d, onSortingChange: x, pageSize: S, onPageSizeChange: C, pageSizeOptions: E = O, pageInfo: k, hasNextPage: N, hasPrevPage: P, onNextPage: F, onPrevPage: I, searchValue: L, onSearchChange: R, statusFilter: z, statusOptions: B, onStatusFilterChange: V, isFiltering: H, onCreateClick: U, onTemplateSettingsClick: W, onRowClick: G, onActionClick: K, onRetry: q, labels: J }) {
|
|
70
|
+
let Y = {
|
|
71
|
+
..._,
|
|
72
|
+
...J,
|
|
73
73
|
statusBadge: {
|
|
74
|
-
...
|
|
75
|
-
...
|
|
74
|
+
..._.statusBadge,
|
|
75
|
+
...J?.statusBadge
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ b("div", {
|
|
79
79
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
80
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ b("div", {
|
|
81
81
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
82
|
-
children: [/* @__PURE__ */
|
|
82
|
+
children: [/* @__PURE__ */ y("div", {
|
|
83
83
|
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
84
|
-
children:
|
|
85
|
-
component: "h2",
|
|
86
|
-
variant: "h6",
|
|
87
|
-
className: "ttw:font-semibold",
|
|
88
|
-
children: X.title
|
|
89
|
-
}), /* @__PURE__ */ b(f, {
|
|
84
|
+
children: /* @__PURE__ */ y(f, {
|
|
90
85
|
value: o,
|
|
91
86
|
onValueChange: (e) => c(e),
|
|
92
|
-
children: /* @__PURE__ */
|
|
93
|
-
s.includes("invoices") && /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ b(p, { children: [
|
|
88
|
+
s.includes("invoices") && /* @__PURE__ */ y(m, {
|
|
94
89
|
value: "invoices",
|
|
95
|
-
children:
|
|
90
|
+
children: Y.tabInvoices
|
|
96
91
|
}),
|
|
97
|
-
s.includes("quotes") && /* @__PURE__ */
|
|
92
|
+
s.includes("quotes") && /* @__PURE__ */ y(m, {
|
|
98
93
|
value: "quotes",
|
|
99
|
-
children:
|
|
94
|
+
children: Y.tabQuotes
|
|
100
95
|
}),
|
|
101
|
-
s.includes("credit_notes") && /* @__PURE__ */
|
|
96
|
+
s.includes("credit_notes") && /* @__PURE__ */ y(m, {
|
|
102
97
|
value: "credit_notes",
|
|
103
|
-
children:
|
|
98
|
+
children: Y.tabCreditNotes
|
|
104
99
|
})
|
|
105
100
|
] })
|
|
106
|
-
})
|
|
107
|
-
}), /* @__PURE__ */
|
|
101
|
+
})
|
|
102
|
+
}), /* @__PURE__ */ b("div", {
|
|
108
103
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
109
|
-
children: [
|
|
104
|
+
children: [W && /* @__PURE__ */ b(e, {
|
|
110
105
|
variant: "outline",
|
|
111
|
-
onClick: G,
|
|
112
|
-
children: [/* @__PURE__ */ b(O, { className: "ttw:size-4" }), X.templateSettingsButton]
|
|
113
|
-
}), /* @__PURE__ */ x(e, {
|
|
114
106
|
onClick: W,
|
|
115
|
-
children: [/* @__PURE__ */
|
|
107
|
+
children: [/* @__PURE__ */ y(D, { className: "ttw:size-4" }), Y.templateSettingsButton]
|
|
108
|
+
}), /* @__PURE__ */ b(e, {
|
|
109
|
+
onClick: U,
|
|
110
|
+
children: [/* @__PURE__ */ y(T, { className: "ttw:size-4" }), Y.createButton]
|
|
116
111
|
})]
|
|
117
112
|
})]
|
|
118
|
-
}), u ? /* @__PURE__ */
|
|
119
|
-
title:
|
|
120
|
-
description:
|
|
121
|
-
retryLabel:
|
|
122
|
-
onRetry:
|
|
123
|
-
}) : /* @__PURE__ */
|
|
113
|
+
}), u ? /* @__PURE__ */ y(g, {
|
|
114
|
+
title: Y.errorTitle,
|
|
115
|
+
description: Y.errorDescription,
|
|
116
|
+
retryLabel: q ? Y.errorRetry : void 0,
|
|
117
|
+
onRetry: q
|
|
118
|
+
}) : /* @__PURE__ */ y(t, {
|
|
124
119
|
columns: [
|
|
125
120
|
{
|
|
126
121
|
accessorKey: "documentLabel",
|
|
127
122
|
enableSorting: !0,
|
|
128
|
-
header: ({ column: e }) => /* @__PURE__ */
|
|
123
|
+
header: ({ column: e }) => /* @__PURE__ */ y(A, {
|
|
129
124
|
column: e,
|
|
130
|
-
label:
|
|
131
|
-
ariaLabel:
|
|
125
|
+
label: Y.columnDocument,
|
|
126
|
+
ariaLabel: Y.sortByDocument
|
|
132
127
|
}),
|
|
133
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
128
|
+
cell: ({ row: e }) => /* @__PURE__ */ b("div", {
|
|
134
129
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
135
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ y("span", {
|
|
136
131
|
className: "ttw:font-medium",
|
|
137
132
|
children: e.original.documentLabel
|
|
138
|
-
}), /* @__PURE__ */
|
|
133
|
+
}), /* @__PURE__ */ y("span", {
|
|
139
134
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
140
|
-
children: e.original.type === "credit_note" ?
|
|
135
|
+
children: e.original.type === "credit_note" ? Y.tabCreditNotes : e.original.type === "quote" ? Y.tabQuotes : Y.tabInvoices
|
|
141
136
|
})]
|
|
142
137
|
}),
|
|
143
138
|
minSize: 180
|
|
@@ -145,167 +140,167 @@ function F({ rows: i, activeTab: o, enabledTabs: s, onTabChange: c, isLoading: l
|
|
|
145
140
|
{
|
|
146
141
|
accessorKey: "customerLabel",
|
|
147
142
|
enableSorting: !0,
|
|
148
|
-
header: ({ column: e }) => /* @__PURE__ */
|
|
143
|
+
header: ({ column: e }) => /* @__PURE__ */ y(A, {
|
|
149
144
|
column: e,
|
|
150
|
-
label:
|
|
151
|
-
ariaLabel:
|
|
145
|
+
label: Y.columnCustomer,
|
|
146
|
+
ariaLabel: Y.sortByCustomer
|
|
152
147
|
}),
|
|
153
148
|
minSize: 180
|
|
154
149
|
},
|
|
155
150
|
{
|
|
156
151
|
accessorKey: "status",
|
|
157
|
-
header: ({ column: e }) => /* @__PURE__ */
|
|
152
|
+
header: ({ column: e }) => /* @__PURE__ */ y(A, {
|
|
158
153
|
column: e,
|
|
159
|
-
label:
|
|
160
|
-
ariaLabel:
|
|
154
|
+
label: Y.columnStatus,
|
|
155
|
+
ariaLabel: Y.sortByStatus
|
|
161
156
|
}),
|
|
162
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
157
|
+
cell: ({ row: e }) => /* @__PURE__ */ y(v, {
|
|
163
158
|
status: e.original.status,
|
|
164
159
|
tone: e.original.statusTone,
|
|
165
|
-
labels:
|
|
160
|
+
labels: Y.statusBadge
|
|
166
161
|
})
|
|
167
162
|
},
|
|
168
163
|
{
|
|
169
164
|
accessorKey: "issueDateLabel",
|
|
170
165
|
enableSorting: !0,
|
|
171
|
-
header: ({ column: e }) => /* @__PURE__ */
|
|
166
|
+
header: ({ column: e }) => /* @__PURE__ */ y(A, {
|
|
172
167
|
column: e,
|
|
173
|
-
label:
|
|
174
|
-
ariaLabel:
|
|
168
|
+
label: Y.columnIssueDate,
|
|
169
|
+
ariaLabel: Y.sortByIssueDate
|
|
175
170
|
})
|
|
176
171
|
},
|
|
177
172
|
{
|
|
178
173
|
accessorKey: "dueDateLabel",
|
|
179
174
|
enableSorting: !0,
|
|
180
|
-
header: ({ column: e }) => /* @__PURE__ */
|
|
175
|
+
header: ({ column: e }) => /* @__PURE__ */ y(A, {
|
|
181
176
|
column: e,
|
|
182
|
-
label:
|
|
183
|
-
ariaLabel:
|
|
177
|
+
label: Y.columnDueDate,
|
|
178
|
+
ariaLabel: Y.sortByDueDate
|
|
184
179
|
})
|
|
185
180
|
},
|
|
186
181
|
{
|
|
187
182
|
accessorKey: "totalLabel",
|
|
188
183
|
enableSorting: !0,
|
|
189
|
-
header: ({ column: e }) => /* @__PURE__ */
|
|
184
|
+
header: ({ column: e }) => /* @__PURE__ */ y("div", {
|
|
190
185
|
className: "ttw:flex ttw:justify-end",
|
|
191
|
-
children: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ y(A, {
|
|
192
187
|
column: e,
|
|
193
|
-
label:
|
|
194
|
-
ariaLabel:
|
|
188
|
+
label: Y.columnTotal,
|
|
189
|
+
ariaLabel: Y.sortByTotal
|
|
195
190
|
})
|
|
196
191
|
}),
|
|
197
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
192
|
+
cell: ({ row: e }) => /* @__PURE__ */ y("div", {
|
|
198
193
|
className: "ttw:text-right",
|
|
199
194
|
children: e.original.totalLabel
|
|
200
195
|
})
|
|
201
196
|
},
|
|
202
197
|
{
|
|
203
198
|
accessorKey: "amountDueLabel",
|
|
204
|
-
header: () => /* @__PURE__ */
|
|
199
|
+
header: () => /* @__PURE__ */ y("div", {
|
|
205
200
|
className: "ttw:text-right",
|
|
206
|
-
children:
|
|
201
|
+
children: Y.columnAmountDue
|
|
207
202
|
}),
|
|
208
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
203
|
+
cell: ({ row: e }) => /* @__PURE__ */ y("div", {
|
|
209
204
|
className: "ttw:text-right",
|
|
210
205
|
children: e.original.amountDueLabel
|
|
211
206
|
})
|
|
212
207
|
},
|
|
213
208
|
{
|
|
214
209
|
id: "actions",
|
|
215
|
-
header: () => /* @__PURE__ */
|
|
210
|
+
header: () => /* @__PURE__ */ y("span", {
|
|
216
211
|
className: "ttw:sr-only",
|
|
217
|
-
children:
|
|
212
|
+
children: Y.columnActions
|
|
218
213
|
}),
|
|
219
|
-
cell: ({ row: t }) => /* @__PURE__ */
|
|
214
|
+
cell: ({ row: t }) => /* @__PURE__ */ y("div", {
|
|
220
215
|
className: "ttw:flex ttw:justify-end",
|
|
221
|
-
children: /* @__PURE__ */
|
|
216
|
+
children: /* @__PURE__ */ b(n, { children: [/* @__PURE__ */ y(a, {
|
|
222
217
|
asChild: !0,
|
|
223
|
-
children: /* @__PURE__ */
|
|
218
|
+
children: /* @__PURE__ */ y(e, {
|
|
224
219
|
variant: "ghost",
|
|
225
220
|
size: "icon-sm",
|
|
226
|
-
"aria-label":
|
|
221
|
+
"aria-label": Y.columnActions,
|
|
227
222
|
onClick: (e) => e.stopPropagation(),
|
|
228
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ y(w, { className: "ttw:size-4" })
|
|
229
224
|
})
|
|
230
|
-
}), /* @__PURE__ */
|
|
225
|
+
}), /* @__PURE__ */ b(r, {
|
|
231
226
|
align: "end",
|
|
232
227
|
children: [
|
|
233
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ y(M, {
|
|
234
229
|
enabled: t.original.actions.edit,
|
|
235
|
-
label:
|
|
230
|
+
label: Y.actionEdit,
|
|
236
231
|
action: "edit",
|
|
237
232
|
row: t.original,
|
|
238
|
-
onActionClick:
|
|
233
|
+
onActionClick: K
|
|
239
234
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ y(M, {
|
|
241
236
|
enabled: t.original.actions.issue,
|
|
242
|
-
label:
|
|
237
|
+
label: Y.actionIssue,
|
|
243
238
|
action: "issue",
|
|
244
239
|
row: t.original,
|
|
245
|
-
onActionClick:
|
|
240
|
+
onActionClick: K
|
|
246
241
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ y(M, {
|
|
248
243
|
enabled: t.original.actions.send,
|
|
249
|
-
label:
|
|
244
|
+
label: Y.actionSend,
|
|
250
245
|
action: "send",
|
|
251
246
|
row: t.original,
|
|
252
|
-
onActionClick:
|
|
247
|
+
onActionClick: K
|
|
253
248
|
}),
|
|
254
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ y(M, {
|
|
255
250
|
enabled: t.original.actions.recordPayment,
|
|
256
|
-
label:
|
|
251
|
+
label: Y.actionRecordPayment,
|
|
257
252
|
action: "recordPayment",
|
|
258
253
|
row: t.original,
|
|
259
|
-
onActionClick:
|
|
254
|
+
onActionClick: K
|
|
260
255
|
}),
|
|
261
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ y(M, {
|
|
262
257
|
enabled: t.original.actions.markPaid,
|
|
263
|
-
label:
|
|
258
|
+
label: Y.actionMarkPaid,
|
|
264
259
|
action: "markPaid",
|
|
265
260
|
row: t.original,
|
|
266
|
-
onActionClick:
|
|
261
|
+
onActionClick: K
|
|
267
262
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ y(M, {
|
|
269
264
|
enabled: t.original.actions.markUncollectible,
|
|
270
|
-
label:
|
|
265
|
+
label: Y.actionMarkUncollectible,
|
|
271
266
|
action: "markUncollectible",
|
|
272
267
|
row: t.original,
|
|
273
|
-
onActionClick:
|
|
268
|
+
onActionClick: K
|
|
274
269
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ y(M, {
|
|
276
271
|
enabled: t.original.actions.accept,
|
|
277
|
-
label:
|
|
272
|
+
label: Y.actionAccept,
|
|
278
273
|
action: "accept",
|
|
279
274
|
row: t.original,
|
|
280
|
-
onActionClick:
|
|
275
|
+
onActionClick: K
|
|
281
276
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ y(M, {
|
|
283
278
|
enabled: t.original.actions.decline,
|
|
284
|
-
label:
|
|
279
|
+
label: Y.actionDecline,
|
|
285
280
|
action: "decline",
|
|
286
281
|
row: t.original,
|
|
287
|
-
onActionClick:
|
|
282
|
+
onActionClick: K
|
|
288
283
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ y(M, {
|
|
290
285
|
enabled: t.original.actions.cancel,
|
|
291
|
-
label:
|
|
286
|
+
label: Y.actionCancel,
|
|
292
287
|
action: "cancel",
|
|
293
288
|
row: t.original,
|
|
294
|
-
onActionClick:
|
|
289
|
+
onActionClick: K
|
|
295
290
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ y(M, {
|
|
297
292
|
enabled: t.original.actions.clone,
|
|
298
|
-
label:
|
|
293
|
+
label: Y.actionClone,
|
|
299
294
|
action: "clone",
|
|
300
295
|
row: t.original,
|
|
301
|
-
onActionClick:
|
|
296
|
+
onActionClick: K
|
|
302
297
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ y(M, {
|
|
304
299
|
enabled: t.original.actions.delete,
|
|
305
|
-
label:
|
|
300
|
+
label: Y.actionDelete,
|
|
306
301
|
action: "delete",
|
|
307
302
|
row: t.original,
|
|
308
|
-
onActionClick:
|
|
303
|
+
onActionClick: K,
|
|
309
304
|
variant: "destructive"
|
|
310
305
|
})
|
|
311
306
|
]
|
|
@@ -317,32 +312,32 @@ function F({ rows: i, activeTab: o, enabledTabs: s, onTabChange: c, isLoading: l
|
|
|
317
312
|
data: i,
|
|
318
313
|
isLoading: l,
|
|
319
314
|
sorting: d,
|
|
320
|
-
onSortingChange:
|
|
321
|
-
pageSize:
|
|
322
|
-
onPageSizeChange:
|
|
323
|
-
pageSizeOptions:
|
|
324
|
-
pageInfo:
|
|
325
|
-
hasNextPage:
|
|
326
|
-
hasPrevPage:
|
|
327
|
-
onNextPage:
|
|
328
|
-
onPrevPage:
|
|
329
|
-
onRowClick:
|
|
330
|
-
filterComponent: /* @__PURE__ */
|
|
331
|
-
labels:
|
|
332
|
-
searchValue:
|
|
333
|
-
onSearchChange:
|
|
334
|
-
statusFilter:
|
|
335
|
-
statusOptions:
|
|
336
|
-
onStatusFilterChange:
|
|
315
|
+
onSortingChange: x,
|
|
316
|
+
pageSize: S,
|
|
317
|
+
onPageSizeChange: C,
|
|
318
|
+
pageSizeOptions: E,
|
|
319
|
+
pageInfo: k,
|
|
320
|
+
hasNextPage: N,
|
|
321
|
+
hasPrevPage: P,
|
|
322
|
+
onNextPage: F,
|
|
323
|
+
onPrevPage: I,
|
|
324
|
+
onRowClick: G,
|
|
325
|
+
filterComponent: /* @__PURE__ */ y(j, {
|
|
326
|
+
labels: Y,
|
|
327
|
+
searchValue: L,
|
|
328
|
+
onSearchChange: R,
|
|
329
|
+
statusFilter: z,
|
|
330
|
+
statusOptions: B,
|
|
331
|
+
onStatusFilterChange: V
|
|
337
332
|
}),
|
|
338
|
-
children: /* @__PURE__ */
|
|
339
|
-
title:
|
|
340
|
-
description:
|
|
341
|
-
actionLabel:
|
|
342
|
-
onAction:
|
|
333
|
+
children: /* @__PURE__ */ y(h, {
|
|
334
|
+
title: H ? Y.filterEmptyTitle : Y.emptyTitle,
|
|
335
|
+
description: H ? Y.filterEmptyDescription : Y.emptyDescription,
|
|
336
|
+
actionLabel: H ? void 0 : Y.emptyAction,
|
|
337
|
+
onAction: H ? void 0 : U
|
|
343
338
|
})
|
|
344
339
|
})]
|
|
345
340
|
});
|
|
346
341
|
}
|
|
347
342
|
//#endregion
|
|
348
|
-
export {
|
|
343
|
+
export { P as ReceivablesScreen, P as default };
|