@tesouro/embedded-components-react 0.5.24 → 0.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +82 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +108 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +100 -99
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.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/shared/util/dist/lib/isValidAchAccountNumber.js +6 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +117 -116
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -6,7 +6,8 @@ var e = {
|
|
|
6
6
|
duplicateCaption: (e) => `${e} possible ${e === 1 ? "duplicate" : "duplicates"}`,
|
|
7
7
|
failedCaption: (e) => `${e} failed to upload`,
|
|
8
8
|
tooManyFilesError: (e) => `You can only upload up to ${e} files at a time`,
|
|
9
|
-
remainingCapacityError: (e) => e === 0 ? "Wait for the current uploads to finish before adding more files" : `You can upload ${e} more ${e === 1 ? "file" : "files"} right now
|
|
9
|
+
remainingCapacityError: (e) => e === 0 ? "Wait for the current uploads to finish before adding more files" : `You can upload ${e} more ${e === 1 ? "file" : "files"} right now`,
|
|
10
|
+
billDeletedError: "This bill was already deleted"
|
|
10
11
|
};
|
|
11
12
|
//#endregion
|
|
12
13
|
export { e as BILL_UPLOAD_QUEUE_LABELS_EN };
|
|
@@ -4,109 +4,126 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { getPayablesIdOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
10
|
+
import { isApiNotFoundError as a } from "../../../shared/data-access/dist/lib/isApiNotFoundError.js";
|
|
11
|
+
import "../../../shared/data-access/dist/index.js";
|
|
7
12
|
import "../../../shared/ui/dist/index.js";
|
|
8
|
-
import { useUploadPayableFromFileMutation as
|
|
9
|
-
import { usePayableOcrQueries as
|
|
13
|
+
import { useUploadPayableFromFileMutation as o } from "../../data-access/dist/index13.js";
|
|
14
|
+
import { usePayableOcrQueries as s } from "../../data-access/dist/index15.js";
|
|
10
15
|
import "../../data-access/dist/index.js";
|
|
11
|
-
import { billPayUploadQueueKey as
|
|
12
|
-
import { BILL_UPLOAD_QUEUE_LABELS_EN as
|
|
13
|
-
import { useCallback as
|
|
14
|
-
import { useQuery as
|
|
16
|
+
import { billPayUploadQueueKey as c } from "./index69.js";
|
|
17
|
+
import { BILL_UPLOAD_QUEUE_LABELS_EN as l } from "./index70.js";
|
|
18
|
+
import { useCallback as u, useEffect as d, useMemo as f, useState as p } from "react";
|
|
19
|
+
import { useQuery as m, useQueryClient as h } from "@tanstack/react-query";
|
|
15
20
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js
|
|
16
|
-
function
|
|
17
|
-
let
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
},
|
|
21
|
-
queryKey:
|
|
22
|
-
queryFn: () =>
|
|
21
|
+
function g({ onOpenBill: g, labels: _ } = {}) {
|
|
22
|
+
let v = {
|
|
23
|
+
...l,
|
|
24
|
+
..._
|
|
25
|
+
}, y = _?.tooManyFilesError ?? l.tooManyFilesError, b = _?.remainingCapacityError ?? l.remainingCapacityError, { client: x, organizationId: S, authEpoch: C } = t(), w = h(), T = f(() => c(S), [S]), E = o(), [D, O] = p(!1), { data: k = [] } = m({
|
|
26
|
+
queryKey: T,
|
|
27
|
+
queryFn: () => w.getQueryData(T) ?? [],
|
|
23
28
|
staleTime: Infinity,
|
|
24
29
|
gcTime: Infinity,
|
|
25
30
|
initialData: []
|
|
26
|
-
}),
|
|
27
|
-
|
|
31
|
+
}), A = u((e, t) => {
|
|
32
|
+
w.setQueryData(T, (n) => (n ?? []).map((n) => n.localId === e ? {
|
|
28
33
|
...n,
|
|
29
34
|
...t
|
|
30
35
|
} : n));
|
|
31
|
-
}, [
|
|
32
|
-
|
|
33
|
-
}, [
|
|
34
|
-
let n = (
|
|
36
|
+
}, [w, T]), j = u((e) => {
|
|
37
|
+
w.setQueryData(T, (t) => (t ?? []).filter((t) => t.localId !== e));
|
|
38
|
+
}, [w, T]), M = u((t) => {
|
|
39
|
+
let n = (w.getQueryData(T) ?? []).filter((e) => e.status === "uploading").length;
|
|
35
40
|
if (t.length + n > 10) {
|
|
36
|
-
e.error(n > 0 ?
|
|
41
|
+
e.error(n > 0 ? b(10 - n) : y(10));
|
|
37
42
|
return;
|
|
38
43
|
}
|
|
39
|
-
|
|
44
|
+
O(!1);
|
|
40
45
|
for (let e of t) {
|
|
41
46
|
let t = crypto.randomUUID();
|
|
42
|
-
|
|
47
|
+
w.setQueryData(T, (n) => [...n ?? [], {
|
|
43
48
|
localId: t,
|
|
44
49
|
fileName: e.name,
|
|
45
50
|
status: "uploading"
|
|
46
|
-
}]),
|
|
51
|
+
}]), E.mutateAsync({ file: e }).then((e) => A(t, { payableId: e?.id })).catch(() => A(t, { status: "failed" }));
|
|
47
52
|
}
|
|
48
53
|
}, [
|
|
54
|
+
A,
|
|
49
55
|
w,
|
|
50
|
-
|
|
56
|
+
T,
|
|
57
|
+
b,
|
|
51
58
|
y,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
]), D = r({ payableIds: C.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
|
|
56
|
-
s(() => {
|
|
59
|
+
E
|
|
60
|
+
]), N = s({ payableIds: k.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
|
|
61
|
+
d(() => {
|
|
57
62
|
let e = /* @__PURE__ */ new Set();
|
|
58
|
-
for (let t of
|
|
63
|
+
for (let t of N) if (t.suspectedDuplicateOf.length !== 0) {
|
|
59
64
|
e.add(t.payableId);
|
|
60
65
|
for (let n of t.suspectedDuplicateOf) e.add(n);
|
|
61
66
|
}
|
|
62
|
-
for (let { payableId: t, ocrStatus: n, isError: r } of
|
|
63
|
-
let i =
|
|
64
|
-
i && (n === "success" ?
|
|
67
|
+
for (let { payableId: t, ocrStatus: n, isError: r } of N) {
|
|
68
|
+
let i = k.find((e) => e.payableId === t && e.status === "uploading");
|
|
69
|
+
i && (n === "success" ? A(i.localId, { status: e.has(t) ? "duplicate" : "ready" }) : (r || n === "error" || n === "canceled") && A(i.localId, { status: "failed" }));
|
|
65
70
|
}
|
|
66
|
-
for (let t of
|
|
71
|
+
for (let t of k) t.status === "ready" && t.payableId && e.has(t.payableId) && A(t.localId, { status: "duplicate" });
|
|
67
72
|
}, [
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
k,
|
|
74
|
+
N,
|
|
75
|
+
A
|
|
71
76
|
]);
|
|
72
|
-
let
|
|
73
|
-
id:
|
|
74
|
-
fileName:
|
|
75
|
-
status:
|
|
76
|
-
onOpen: (
|
|
77
|
-
|
|
77
|
+
let P = k.filter((e) => e.status === "uploading"), F = k.filter((e) => e.status === "ready"), I = k.filter((e) => e.status === "duplicate"), L = k.filter((e) => e.status === "failed"), R = (t) => ({
|
|
78
|
+
id: t.localId,
|
|
79
|
+
fileName: t.fileName,
|
|
80
|
+
status: t.status,
|
|
81
|
+
onOpen: (t.status === "ready" || t.status === "duplicate") && t.payableId && g ? () => {
|
|
82
|
+
let o = t.payableId;
|
|
83
|
+
w.fetchQuery({
|
|
84
|
+
...i(r({
|
|
85
|
+
client: x,
|
|
86
|
+
headers: n(S),
|
|
87
|
+
path: { payable_id: o }
|
|
88
|
+
}), C),
|
|
89
|
+
retry: !1
|
|
90
|
+
}).catch((e) => {
|
|
91
|
+
if (a(e)) return "deleted";
|
|
92
|
+
}).then((n) => {
|
|
93
|
+
n === "deleted" ? e.error(v.billDeletedError) : g(o), j(t.localId);
|
|
94
|
+
});
|
|
78
95
|
} : void 0
|
|
79
|
-
}),
|
|
96
|
+
}), z = P.length ? [{
|
|
80
97
|
id: "in-progress",
|
|
81
|
-
items:
|
|
98
|
+
items: k.map(R)
|
|
82
99
|
}] : [
|
|
83
|
-
...
|
|
100
|
+
...F.length ? [{
|
|
84
101
|
id: "ready",
|
|
85
|
-
caption:
|
|
86
|
-
items:
|
|
102
|
+
caption: v.readyCaption(F.length),
|
|
103
|
+
items: F.map(R)
|
|
87
104
|
}] : [],
|
|
88
|
-
...
|
|
105
|
+
...I.length ? [{
|
|
89
106
|
id: "duplicate",
|
|
90
|
-
caption:
|
|
91
|
-
items:
|
|
107
|
+
caption: v.duplicateCaption(I.length),
|
|
108
|
+
items: I.map(R)
|
|
92
109
|
}] : [],
|
|
93
|
-
...
|
|
110
|
+
...L.length ? [{
|
|
94
111
|
id: "failed",
|
|
95
|
-
caption:
|
|
96
|
-
items:
|
|
112
|
+
caption: v.failedCaption(L.length),
|
|
113
|
+
items: L.map(R)
|
|
97
114
|
}] : []
|
|
98
|
-
],
|
|
99
|
-
|
|
100
|
-
}, [
|
|
115
|
+
], B = F.length + I.length, V = P.length ? v.uploadingSummary(k.length) : B ? v.completeSummary(B) : v.failedCaption(L.length), H = u(() => {
|
|
116
|
+
w.setQueryData(T, []);
|
|
117
|
+
}, [w, T]);
|
|
101
118
|
return {
|
|
102
|
-
enqueue:
|
|
103
|
-
sections:
|
|
104
|
-
summaryLabel:
|
|
105
|
-
collapsed:
|
|
106
|
-
onToggleCollapsed:
|
|
107
|
-
onClose:
|
|
108
|
-
isVisible:
|
|
119
|
+
enqueue: M,
|
|
120
|
+
sections: z,
|
|
121
|
+
summaryLabel: V,
|
|
122
|
+
collapsed: D,
|
|
123
|
+
onToggleCollapsed: u(() => O((e) => !e), []),
|
|
124
|
+
onClose: H,
|
|
125
|
+
isVisible: k.length > 0
|
|
109
126
|
};
|
|
110
127
|
}
|
|
111
128
|
//#endregion
|
|
112
|
-
export {
|
|
129
|
+
export { g as useBillUploadQueue };
|
|
@@ -2,117 +2,133 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { formatCalendarDate as t } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
7
|
+
import { formatMoneyExact as n } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
8
|
+
import { hasSuspectedPayableDuplicate as ee } from "../../data-access/dist/index7.js";
|
|
8
9
|
import { usePayablesQuery as r, usePayablesTotalCountQuery as i } from "../../data-access/dist/index17.js";
|
|
9
10
|
import "../../data-access/dist/index.js";
|
|
10
|
-
import { derivePayableStatus as
|
|
11
|
-
import { resolveVendorName as
|
|
12
|
-
import { isEditablePayableStatus as
|
|
13
|
-
import { BillQueue as
|
|
14
|
-
import { useBillsFilters as
|
|
15
|
-
import { useCallback as
|
|
11
|
+
import { derivePayableStatus as te } from "./index7.js";
|
|
12
|
+
import { resolveVendorName as a } from "./index8.js";
|
|
13
|
+
import { isEditablePayableStatus as ne } from "./index19.js";
|
|
14
|
+
import { BillQueue as o, DEFAULT_BILL_QUEUE as s, billQueueColumns as c, billQueueHasScheduledPayment as l, billQueueOffersAddPanel as u, billQueueStatuses as d, billSortColumnId as f, billSortField as p } from "./index73.js";
|
|
15
|
+
import { useBillsFilters as m } from "./index81.js";
|
|
16
|
+
import { useCallback as h, useEffect as g, useMemo as _, useState as v } from "react";
|
|
16
17
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js
|
|
17
|
-
var
|
|
18
|
+
var y = 10, b = [{
|
|
18
19
|
id: "addedOnLabel",
|
|
19
20
|
desc: !0
|
|
20
21
|
}];
|
|
21
|
-
function
|
|
22
|
-
let [
|
|
23
|
-
|
|
22
|
+
function x({ enabled: x = !0, canReadVendors: S = !0, isVendorFilterPaused: C = !1, filterLabels: w, onOpenBill: T, duplicateRowNote: E, attachmentLabel: D }) {
|
|
23
|
+
let [O, k] = v(s), [A, j] = v(b), [M, N] = v(y), [P, F] = v(), [I, L] = v(""), [R, z] = v(""), B = h(() => F(void 0), []);
|
|
24
|
+
g(() => {
|
|
24
25
|
let e = setTimeout(() => {
|
|
25
|
-
|
|
26
|
+
z(I), B();
|
|
26
27
|
}, 300);
|
|
27
28
|
return () => clearTimeout(e);
|
|
28
|
-
}, [
|
|
29
|
-
let
|
|
30
|
-
offersStatusFilter:
|
|
31
|
-
offersVendorFilter:
|
|
32
|
-
isVendorFilterPaused:
|
|
33
|
-
labels:
|
|
34
|
-
onFiltersChange:
|
|
35
|
-
}),
|
|
36
|
-
...
|
|
37
|
-
limit:
|
|
38
|
-
pagination_token:
|
|
39
|
-
status__in:
|
|
40
|
-
has_scheduled_payment:
|
|
41
|
-
counterpart_name__icontains:
|
|
42
|
-
sort:
|
|
43
|
-
order:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
29
|
+
}, [I, B]);
|
|
30
|
+
let V = m({
|
|
31
|
+
offersStatusFilter: O === o.All,
|
|
32
|
+
offersVendorFilter: S,
|
|
33
|
+
isVendorFilterPaused: C,
|
|
34
|
+
labels: w,
|
|
35
|
+
onFiltersChange: B
|
|
36
|
+
}), H = A[0], U = p(H?.id), W = U ? H?.desc ? "desc" : "asc" : void 0, G = _(() => ({
|
|
37
|
+
...V.query,
|
|
38
|
+
limit: M,
|
|
39
|
+
pagination_token: P,
|
|
40
|
+
status__in: d(O) ?? V.query.status__in,
|
|
41
|
+
has_scheduled_payment: l(O),
|
|
42
|
+
counterpart_name__icontains: R || void 0,
|
|
43
|
+
sort: U,
|
|
44
|
+
order: W
|
|
45
|
+
}), [
|
|
46
|
+
V.query,
|
|
47
|
+
M,
|
|
48
|
+
P,
|
|
49
|
+
O,
|
|
50
|
+
R,
|
|
51
|
+
U,
|
|
52
|
+
W
|
|
53
|
+
]), { organizationId: K } = e(), q = JSON.stringify([K, G]), J = r({
|
|
54
|
+
...G,
|
|
55
|
+
enabled: x
|
|
56
|
+
}), [Y, X] = v(q);
|
|
57
|
+
g(() => {
|
|
58
|
+
J.isFetching || X(q);
|
|
59
|
+
}, [J.isFetching, q]);
|
|
60
|
+
let Z = J.data?.data.length === 0, Q = i({ enabled: x && Z }), re = !Z || (Q.data?.count ?? 1) > 0, ie = _(() => (J.data?.data ?? []).map((e) => {
|
|
61
|
+
let r = te({
|
|
62
|
+
apiStatus: e.status,
|
|
63
|
+
dueDate: e.due_date,
|
|
64
|
+
scheduledPaymentDate: e.scheduled_payment_date
|
|
65
|
+
}), i = e.amount_due ?? e.total_amount, s = e.status === "partially_paid" || e.status === "paid", c = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" });
|
|
51
66
|
return {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
rowKey: e.id,
|
|
68
|
+
vendorLabel: a(e),
|
|
69
|
+
issueDateLabel: t(e.issued_at),
|
|
70
|
+
dueDateLabel: t(e.due_date),
|
|
71
|
+
dueDateTone: r.isOverdue ? "danger" : "default",
|
|
72
|
+
scheduledDateLabel: t(e.scheduled_payment_date),
|
|
73
|
+
scheduledDateIsGap: O === o.Scheduled,
|
|
74
|
+
paidDateLabel: t(e.paid_at?.slice(0, 10)),
|
|
75
|
+
amountDueLabel: c(i),
|
|
76
|
+
amountPaidLabel: s ? c(e.amount_paid) : "",
|
|
77
|
+
amountPaidIsGap: O === o.Paid,
|
|
78
|
+
amountScheduledLabel: c(e.amount_to_pay ?? i),
|
|
79
|
+
totalAmountLabel: c(e.total_amount),
|
|
80
|
+
attachment: e.file_id ? { label: D } : void 0,
|
|
81
|
+
status: r.status,
|
|
82
|
+
statusTone: r.tone,
|
|
83
|
+
addedOnLabel: t(e.created_at?.slice(0, 10)),
|
|
84
|
+
...ee(e) ? {
|
|
69
85
|
rowTone: "warning",
|
|
70
|
-
rowNote:
|
|
86
|
+
rowNote: E
|
|
71
87
|
} : {},
|
|
72
|
-
onOpen: () =>
|
|
88
|
+
onOpen: () => T(e.id, ne(e.status))
|
|
73
89
|
};
|
|
74
90
|
}), [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
k,
|
|
91
|
+
J.data?.data,
|
|
92
|
+
E,
|
|
78
93
|
D,
|
|
79
|
-
|
|
80
|
-
|
|
94
|
+
T,
|
|
95
|
+
O
|
|
96
|
+
]), ae = h((e) => {
|
|
81
97
|
let t = e;
|
|
82
|
-
|
|
98
|
+
k(t), j((e) => {
|
|
83
99
|
let n = e[0]?.id;
|
|
84
|
-
return n ?
|
|
85
|
-
}),
|
|
86
|
-
}, [
|
|
87
|
-
|
|
88
|
-
}, [
|
|
89
|
-
|
|
90
|
-
}, [
|
|
91
|
-
|
|
92
|
-
}, [
|
|
100
|
+
return n ? c(t).some((e) => f(e) === n) ? e : b : e;
|
|
101
|
+
}), B();
|
|
102
|
+
}, [B]), oe = h((e) => {
|
|
103
|
+
j((t) => typeof e == "function" ? e(t) : e), B();
|
|
104
|
+
}, [B]), $ = h((e) => {
|
|
105
|
+
N(e), B();
|
|
106
|
+
}, [B]), se = h(() => F(J.data?.next_pagination_token ?? void 0), [J.data?.next_pagination_token]), ce = h(() => F(J.data?.prev_pagination_token ?? void 0), [J.data?.prev_pagination_token]), le = h(() => {
|
|
107
|
+
J.refetch();
|
|
108
|
+
}, [J.refetch]);
|
|
93
109
|
return {
|
|
94
|
-
rows:
|
|
95
|
-
isLoading:
|
|
96
|
-
isError:
|
|
97
|
-
onRetry:
|
|
98
|
-
selectedFilterTabId:
|
|
99
|
-
onFilterTabChange:
|
|
100
|
-
searchValue:
|
|
101
|
-
onSearchChange:
|
|
102
|
-
hasAnyBills:
|
|
103
|
-
isSearchActive:
|
|
104
|
-
filterBarProps:
|
|
105
|
-
visibleColumns:
|
|
106
|
-
showAddPanelWhenEmpty:
|
|
107
|
-
sorting:
|
|
108
|
-
onSortingChange:
|
|
109
|
-
pageSize:
|
|
110
|
+
rows: ie,
|
|
111
|
+
isLoading: J.isLoading || q !== Y || Z && Q.isLoading,
|
|
112
|
+
isError: J.isError,
|
|
113
|
+
onRetry: le,
|
|
114
|
+
selectedFilterTabId: O,
|
|
115
|
+
onFilterTabChange: ae,
|
|
116
|
+
searchValue: I,
|
|
117
|
+
onSearchChange: L,
|
|
118
|
+
hasAnyBills: re,
|
|
119
|
+
isSearchActive: R.length > 0 || V.isFilterActive,
|
|
120
|
+
filterBarProps: V.filterBarProps,
|
|
121
|
+
visibleColumns: c(O),
|
|
122
|
+
showAddPanelWhenEmpty: u(O),
|
|
123
|
+
sorting: A,
|
|
124
|
+
onSortingChange: oe,
|
|
125
|
+
pageSize: M,
|
|
110
126
|
onPageSizeChange: $,
|
|
111
|
-
hasNextPage: !!
|
|
112
|
-
hasPrevPage: !!
|
|
113
|
-
onNextPage:
|
|
114
|
-
onPrevPage:
|
|
127
|
+
hasNextPage: !!J.data?.next_pagination_token,
|
|
128
|
+
hasPrevPage: !!J.data?.prev_pagination_token,
|
|
129
|
+
onNextPage: se,
|
|
130
|
+
onPrevPage: ce
|
|
115
131
|
};
|
|
116
132
|
}
|
|
117
133
|
//#endregion
|
|
118
|
-
export {
|
|
134
|
+
export { x as useBillsTable };
|
|
@@ -328,6 +328,8 @@ function x({ rows: x, isLoading: S, isError: C, sorting: ve, onSortingChange: ye
|
|
|
328
328
|
}) : /* @__PURE__ */ g(r, {
|
|
329
329
|
columns: we,
|
|
330
330
|
data: x,
|
|
331
|
+
getRowId: (e) => e.rowKey,
|
|
332
|
+
animatesNewRows: !0,
|
|
331
333
|
isLoading: S,
|
|
332
334
|
sorting: ve,
|
|
333
335
|
onSortingChange: ye,
|