@tesouro/embedded-components-react 0.5.243 → 0.5.245

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