@tesouro/embedded-components-react 0.3.12 → 0.3.14

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 (66) hide show
  1. package/dist/index.d.ts +42 -30
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/CardsWidget.d.ts +12 -0
  5. package/dist/lib/CreateCardWidget.d.ts +12 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +6 -6
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +2 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +23 -205
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +200 -185
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +199 -50
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +105 -13
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +12 -46
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +46 -30
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +26 -158
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +162 -31
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +32 -98
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +102 -13
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +13 -242
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +247 -4
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +4 -30
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +28 -82
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +76 -137
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +145 -3
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +3 -4
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +2 -43
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +45 -1
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -8
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +6 -9
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +9 -92
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +94 -3
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +3 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -20
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +14 -51
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +59 -3
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +3 -110
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +107 -8
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +8 -40
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -15
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +18 -98
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +92 -173
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +180 -4
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +5 -8
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +6 -112
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +114 -1
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +0 -24
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +25 -0
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index5.js +1 -2
  48. package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index.js +3 -2
  49. package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index5.js +19 -12
  50. package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index6.js +22 -0
  51. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index4.js +4 -1
  52. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index5.js +0 -1
  53. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index6.js +22 -37
  54. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +167 -110
  55. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
  56. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +6 -3
  57. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +1 -0
  58. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +18 -18
  60. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +111 -104
  61. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +144 -128
  62. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1028 -1019
  63. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +20 -18
  64. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  65. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  66. package/package.json +1 -1
@@ -1,110 +1,3 @@
1
- import { BillColumn as e } from "../../ui/dist/index59.js";
2
- import "../../ui/dist/index.js";
3
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js
4
- var t = {
5
- Drafts: "drafts",
6
- Pending: "pending",
7
- Scheduled: "scheduled",
8
- Paid: "paid",
9
- All: "all"
10
- }, n = {
11
- [t.Drafts]: ["draft"],
12
- [t.Pending]: [
13
- "new",
14
- "approve_in_progress",
15
- "waiting_to_be_paid",
16
- "partially_paid"
17
- ],
18
- [t.Scheduled]: [
19
- "new",
20
- "approve_in_progress",
21
- "waiting_to_be_paid",
22
- "partially_paid"
23
- ],
24
- [t.Paid]: ["paid"],
25
- [t.All]: void 0
26
- }, r = {
27
- [t.Drafts]: void 0,
28
- [t.Pending]: !1,
29
- [t.Scheduled]: !0,
30
- [t.Paid]: void 0,
31
- [t.All]: void 0
32
- };
33
- function i(e) {
34
- return e === t.Pending || e === t.Drafts;
35
- }
36
- var a = t.Pending, o = [
37
- t.Pending,
38
- t.Drafts,
39
- t.Scheduled,
40
- t.Paid,
41
- t.All
42
- ], s = {
43
- [t.Drafts]: [
44
- e.Vendor,
45
- e.DueDate,
46
- e.Status,
47
- e.AmountDue,
48
- e.AddedOn
49
- ],
50
- [t.Pending]: [
51
- e.Vendor,
52
- e.DueDate,
53
- e.Status,
54
- e.AmountDue,
55
- e.AddedOn
56
- ],
57
- [t.Scheduled]: [
58
- e.Vendor,
59
- e.DueDate,
60
- e.ScheduledDate,
61
- e.Status,
62
- e.AmountScheduled,
63
- e.AddedOn
64
- ],
65
- [t.Paid]: [
66
- e.Vendor,
67
- e.PaidDate,
68
- e.Status,
69
- e.AmountPaid,
70
- e.AddedOn
71
- ],
72
- [t.All]: [
73
- e.Vendor,
74
- e.DueDate,
75
- e.ScheduledDate,
76
- e.Status,
77
- e.AmountDue,
78
- e.AmountPaid,
79
- e.AddedOn
80
- ]
81
- };
82
- function c(e) {
83
- return s[e];
84
- }
85
- function l(e) {
86
- let t = n[e];
87
- return t ? [...t] : void 0;
88
- }
89
- function u(e) {
90
- return r[e];
91
- }
92
- var d = {
93
- vendorLabel: "counterpart_name",
94
- dueDateLabel: "due_date",
95
- scheduledDateLabel: "scheduled_payment_date",
96
- addedOnLabel: "created_at"
97
- }, f = {
98
- [e.Vendor]: "vendorLabel",
99
- [e.DueDate]: "dueDateLabel",
100
- [e.ScheduledDate]: "scheduledDateLabel",
101
- [e.AddedOn]: "addedOnLabel"
102
- };
103
- function p(e) {
104
- return f[e];
105
- }
106
- function m(e) {
107
- if (e) return d[e];
108
- }
109
- //#endregion
110
- export { s as BILL_QUEUE_COLUMNS, r as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, o as BILL_QUEUE_ORDER, n as BILL_QUEUE_STATUSES, d as BILL_SORT_FIELDS, t as BillQueue, a as DEFAULT_BILL_QUEUE, c as billQueueColumns, u as billQueueHasScheduledPayment, i as billQueueOffersAddPanel, l as billQueueStatuses, p as billSortColumnId, m as billSortField };
1
+ import "./index54.js";
2
+ import "./index55.js";
3
+ import "./index56.js";
@@ -1,11 +1,110 @@
1
+ import { BillColumn as e } from "../../ui/dist/index59.js";
2
+ import "../../ui/dist/index.js";
1
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js
2
- async function e(e) {
3
- if (!e.trim()) return !1;
4
- try {
5
- return await navigator.clipboard.writeText(e), !0;
6
- } catch {
7
- return !1;
8
- }
4
+ var t = {
5
+ Drafts: "drafts",
6
+ Pending: "pending",
7
+ Scheduled: "scheduled",
8
+ Paid: "paid",
9
+ All: "all"
10
+ }, n = {
11
+ [t.Drafts]: ["draft"],
12
+ [t.Pending]: [
13
+ "new",
14
+ "approve_in_progress",
15
+ "waiting_to_be_paid",
16
+ "partially_paid"
17
+ ],
18
+ [t.Scheduled]: [
19
+ "new",
20
+ "approve_in_progress",
21
+ "waiting_to_be_paid",
22
+ "partially_paid"
23
+ ],
24
+ [t.Paid]: ["paid"],
25
+ [t.All]: void 0
26
+ }, r = {
27
+ [t.Drafts]: void 0,
28
+ [t.Pending]: !1,
29
+ [t.Scheduled]: !0,
30
+ [t.Paid]: void 0,
31
+ [t.All]: void 0
32
+ };
33
+ function i(e) {
34
+ return e === t.Pending || e === t.Drafts;
35
+ }
36
+ var a = t.Pending, o = [
37
+ t.Pending,
38
+ t.Drafts,
39
+ t.Scheduled,
40
+ t.Paid,
41
+ t.All
42
+ ], s = {
43
+ [t.Drafts]: [
44
+ e.Vendor,
45
+ e.DueDate,
46
+ e.Status,
47
+ e.AmountDue,
48
+ e.AddedOn
49
+ ],
50
+ [t.Pending]: [
51
+ e.Vendor,
52
+ e.DueDate,
53
+ e.Status,
54
+ e.AmountDue,
55
+ e.AddedOn
56
+ ],
57
+ [t.Scheduled]: [
58
+ e.Vendor,
59
+ e.DueDate,
60
+ e.ScheduledDate,
61
+ e.Status,
62
+ e.AmountScheduled,
63
+ e.AddedOn
64
+ ],
65
+ [t.Paid]: [
66
+ e.Vendor,
67
+ e.PaidDate,
68
+ e.Status,
69
+ e.AmountPaid,
70
+ e.AddedOn
71
+ ],
72
+ [t.All]: [
73
+ e.Vendor,
74
+ e.DueDate,
75
+ e.ScheduledDate,
76
+ e.Status,
77
+ e.AmountDue,
78
+ e.AmountPaid,
79
+ e.AddedOn
80
+ ]
81
+ };
82
+ function c(e) {
83
+ return s[e];
84
+ }
85
+ function l(e) {
86
+ let t = n[e];
87
+ return t ? [...t] : void 0;
88
+ }
89
+ function u(e) {
90
+ return r[e];
91
+ }
92
+ var d = {
93
+ vendorLabel: "counterpart_name",
94
+ dueDateLabel: "due_date",
95
+ scheduledDateLabel: "scheduled_payment_date",
96
+ addedOnLabel: "created_at"
97
+ }, f = {
98
+ [e.Vendor]: "vendorLabel",
99
+ [e.DueDate]: "dueDateLabel",
100
+ [e.ScheduledDate]: "scheduledDateLabel",
101
+ [e.AddedOn]: "addedOnLabel"
102
+ };
103
+ function p(e) {
104
+ return f[e];
105
+ }
106
+ function m(e) {
107
+ if (e) return d[e];
9
108
  }
10
109
  //#endregion
11
- export { e as copyTextToClipboard };
110
+ export { s as BILL_QUEUE_COLUMNS, r as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, o as BILL_QUEUE_ORDER, n as BILL_QUEUE_STATUSES, d as BILL_SORT_FIELDS, t as BillQueue, a as DEFAULT_BILL_QUEUE, c as billQueueColumns, u as billQueueHasScheduledPayment, i as billQueueOffersAddPanel, l as billQueueStatuses, p as billSortColumnId, m as billSortField };
@@ -1,43 +1,11 @@
1
- import { BillQueue as e } from "./index57.js";
2
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js
3
- var t = {
4
- [e.Drafts]: "Drafts",
5
- [e.Pending]: "Pending",
6
- [e.Scheduled]: "Scheduled",
7
- [e.Paid]: "Paid",
8
- [e.All]: "All bills"
9
- }, n = {
10
- [e.Drafts]: {
11
- title: "No drafts",
12
- description: "Bills wait here until someone submits them for approval."
13
- },
14
- [e.Pending]: {
15
- title: "Nothing to act on",
16
- description: "Every bill has been paid, scheduled, or is still a draft."
17
- },
18
- [e.Scheduled]: {
19
- title: "No scheduled bills",
20
- description: "Bills appear here once a payment date is set for them."
21
- },
22
- [e.Paid]: {
23
- title: "No paid bills",
24
- description: "Bills appear here once their payment has gone out."
25
- },
26
- [e.All]: {
27
- title: "No bills",
28
- description: "Bills appear here as soon as they are added."
2
+ async function e(e) {
3
+ if (!e.trim()) return !1;
4
+ try {
5
+ return await navigator.clipboard.writeText(e), !0;
6
+ } catch {
7
+ return !1;
29
8
  }
30
- }, r = {
31
- duplicateWarningOne: "1 possible duplicate bill found",
32
- duplicateWarningMany: (e) => `${e} possible duplicate bills found`,
33
- duplicateBadge: "Duplicate?",
34
- emptyHeading: "Add your first bill",
35
- nonEmptyHeading: "Add a bill",
36
- createButton: "Add bill",
37
- emailCopiedToast: "Email address copied to clipboard",
38
- emailCopyFailedToast: "Could not copy the email address",
39
- queues: t,
40
- queueEmptyStates: n
41
- };
9
+ }
42
10
  //#endregion
43
- export { r as BILLS_TAB_LABELS_EN, n as BILL_QUEUE_EMPTY_STATES_EN, t as BILL_QUEUE_LABELS_EN };
11
+ export { e as copyTextToClipboard };
@@ -1,20 +1,43 @@
1
- import { BillColumn as e } from "../../ui/dist/index59.js";
2
- import "../../ui/dist/index.js";
1
+ import { BillQueue as e } from "./index58.js";
3
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js
4
3
  var t = {
5
- root: "bill-pay-bills-tab",
6
- uploadTray: "bill-pay-upload-tray",
7
- detailsSheet: "bill-pay-details-sheet"
4
+ [e.Drafts]: "Drafts",
5
+ [e.Pending]: "Pending",
6
+ [e.Scheduled]: "Scheduled",
7
+ [e.Paid]: "Paid",
8
+ [e.All]: "All bills"
8
9
  }, n = {
9
- [e.Vendor]: "bill-pay-bills-cell-vendor",
10
- [e.DueDate]: "bill-pay-bills-cell-due-date",
11
- [e.ScheduledDate]: "bill-pay-bills-cell-scheduled-date",
12
- [e.PaidDate]: "bill-pay-bills-cell-paid-date",
13
- [e.Status]: "bill-pay-bills-cell-status",
14
- [e.AmountDue]: "bill-pay-bills-cell-amount-due",
15
- [e.AmountScheduled]: "bill-pay-bills-cell-amount-scheduled",
16
- [e.AmountPaid]: "bill-pay-bills-cell-amount-paid",
17
- [e.AddedOn]: "bill-pay-bills-cell-added-on"
10
+ [e.Drafts]: {
11
+ title: "No drafts",
12
+ description: "Bills wait here until someone submits them for approval."
13
+ },
14
+ [e.Pending]: {
15
+ title: "Nothing to act on",
16
+ description: "Every bill has been paid, scheduled, or is still a draft."
17
+ },
18
+ [e.Scheduled]: {
19
+ title: "No scheduled bills",
20
+ description: "Bills appear here once a payment date is set for them."
21
+ },
22
+ [e.Paid]: {
23
+ title: "No paid bills",
24
+ description: "Bills appear here once their payment has gone out."
25
+ },
26
+ [e.All]: {
27
+ title: "No bills",
28
+ description: "Bills appear here as soon as they are added."
29
+ }
30
+ }, r = {
31
+ duplicateWarningOne: "1 possible duplicate bill found",
32
+ duplicateWarningMany: (e) => `${e} possible duplicate bills found`,
33
+ duplicateBadge: "Duplicate?",
34
+ emptyHeading: "Add your first bill",
35
+ nonEmptyHeading: "Add a bill",
36
+ createButton: "Add bill",
37
+ emailCopiedToast: "Email address copied to clipboard",
38
+ emailCopyFailedToast: "Could not copy the email address",
39
+ queues: t,
40
+ queueEmptyStates: n
18
41
  };
19
42
  //#endregion
20
- export { t as billsTabTestIds, n as billsTableCellTestIds };
43
+ export { r as BILLS_TAB_LABELS_EN, n as BILL_QUEUE_EMPTY_STATES_EN, t as BILL_QUEUE_LABELS_EN };
@@ -1,100 +1,20 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
6
- import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoneyExact.js";
7
- import { resolveVendorName as n } from "./index3.js";
8
- import { usePayablesQuery as r, usePayablesTotalCountQuery as i } from "../../data-access/dist/index13.js";
9
- import "../../data-access/dist/index.js";
10
- import { derivePayableStatus as a } from "./index22.js";
11
- import { DEFAULT_BILL_QUEUE as o, billQueueColumns as s, billQueueHasScheduledPayment as c, billQueueOffersAddPanel as l, billQueueStatuses as u, billSortColumnId as d, billSortField as f } from "./index57.js";
12
- import { useCallback as p, useEffect as m, useMemo as h, useState as g } from "react";
1
+ import { BillColumn as e } from "../../ui/dist/index59.js";
2
+ import "../../ui/dist/index.js";
13
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js
14
- var _ = 10, v = [{
15
- id: "addedOnLabel",
16
- desc: !0
17
- }];
18
- function y({ enabled: y = !0, onOpenBill: b, duplicateBillIds: x, duplicateBadgeLabel: S }) {
19
- let [C, w] = g(o), [T, E] = g(v), [D, O] = g(_), [k, A] = g(), [j, M] = g(""), [N, P] = g(""), F = p(() => A(void 0), []);
20
- m(() => {
21
- let e = setTimeout(() => {
22
- P(j), F();
23
- }, 300);
24
- return () => clearTimeout(e);
25
- }, [j, F]);
26
- let I = T[0], L = f(I?.id), R = r({
27
- limit: D,
28
- pagination_token: k,
29
- status__in: u(C),
30
- has_scheduled_payment: c(C),
31
- counterpart_name__icontains: N || void 0,
32
- sort: L,
33
- order: L ? I?.desc ? "desc" : "asc" : void 0,
34
- enabled: y
35
- }), z = R.data?.data.length === 0, B = i({ enabled: y && z }), V = !z || (B.data?.count ?? 1) > 0, H = h(() => new Set(x), [x]), U = h(() => (R.data?.data ?? []).map((r) => {
36
- let i = a({
37
- apiStatus: r.status,
38
- dueDate: r.due_date,
39
- scheduledPaymentDate: r.scheduled_payment_date
40
- }), o = r.amount_due ?? r.total_amount, s = (e) => e == null ? "" : t(e / 100, { currencyCode: r.currency ?? "USD" });
41
- return {
42
- vendorLabel: n(r),
43
- dueDateLabel: e(r.due_date),
44
- scheduledDateLabel: e(r.scheduled_payment_date),
45
- paidDateLabel: e(r.paid_at?.slice(0, 10)),
46
- amountDueLabel: s(o),
47
- amountPaidLabel: s(r.amount_paid),
48
- amountScheduledLabel: s(r.amount_to_pay ?? o),
49
- status: i.status,
50
- statusTone: i.tone,
51
- addedOnLabel: e(r.created_at?.slice(0, 10)),
52
- duplicateBadge: H.has(r.id) ? {
53
- label: S,
54
- tone: "warning"
55
- } : void 0,
56
- onOpen: () => b(r.id, i.status === "draft")
57
- };
58
- }), [
59
- R.data?.data,
60
- H,
61
- S,
62
- b
63
- ]), W = p((e) => {
64
- let t = e;
65
- w(t), E((e) => {
66
- let n = e[0]?.id;
67
- return n ? s(t).some((e) => d(e) === n) ? e : v : e;
68
- }), F();
69
- }, [F]), G = p((e) => {
70
- E((t) => typeof e == "function" ? e(t) : e), F();
71
- }, [F]), K = p((e) => {
72
- O(e), F();
73
- }, [F]), q = p(() => A(R.data?.next_pagination_token ?? void 0), [R.data?.next_pagination_token]), J = p(() => A(R.data?.prev_pagination_token ?? void 0), [R.data?.prev_pagination_token]), Y = p(() => {
74
- R.refetch();
75
- }, [R.refetch]);
76
- return {
77
- rows: U,
78
- isLoading: R.isFetching || z && B.isLoading,
79
- isError: R.isError,
80
- onRetry: Y,
81
- selectedFilterTabId: C,
82
- onFilterTabChange: W,
83
- searchValue: j,
84
- onSearchChange: M,
85
- hasAnyBills: V,
86
- isSearchActive: N.length > 0,
87
- visibleColumns: s(C),
88
- showAddPanelWhenEmpty: l(C),
89
- sorting: T,
90
- onSortingChange: G,
91
- pageSize: D,
92
- onPageSizeChange: K,
93
- hasNextPage: !!R.data?.next_pagination_token,
94
- hasPrevPage: !!R.data?.prev_pagination_token,
95
- onNextPage: q,
96
- onPrevPage: J
97
- };
98
- }
4
+ var t = {
5
+ root: "bill-pay-bills-tab",
6
+ uploadTray: "bill-pay-upload-tray",
7
+ detailsSheet: "bill-pay-details-sheet"
8
+ }, n = {
9
+ [e.Vendor]: "bill-pay-bills-cell-vendor",
10
+ [e.DueDate]: "bill-pay-bills-cell-due-date",
11
+ [e.ScheduledDate]: "bill-pay-bills-cell-scheduled-date",
12
+ [e.PaidDate]: "bill-pay-bills-cell-paid-date",
13
+ [e.Status]: "bill-pay-bills-cell-status",
14
+ [e.AmountDue]: "bill-pay-bills-cell-amount-due",
15
+ [e.AmountScheduled]: "bill-pay-bills-cell-amount-scheduled",
16
+ [e.AmountPaid]: "bill-pay-bills-cell-amount-paid",
17
+ [e.AddedOn]: "bill-pay-bills-cell-added-on"
18
+ };
99
19
  //#endregion
100
- export { y as useBillsTable };
20
+ export { t as billsTabTestIds, n as billsTableCellTestIds };