@tesouro/embedded-components-react 0.4.4 → 0.4.5
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/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +50 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +39 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +26 -311
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +326 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +13 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +28 -245
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +256 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +86 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +77 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +18 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -27
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js
CHANGED
|
@@ -4,72 +4,27 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
6
|
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
10
|
-
import { getAllPagesNextPaginationTokenParam as o, isAllPagesResolving as s, useAutoFetchNextPage as c } from "../../../shared/data-access/dist/lib/allPages.js";
|
|
7
|
+
import { getPayablesIdHistoryOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
11
9
|
import "../../../shared/data-access/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import { useMemo as u } from "react";
|
|
14
|
-
import { useInfiniteQuery as d, useMutation as f } from "@tanstack/react-query";
|
|
10
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
15
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
let { client:
|
|
19
|
-
client:
|
|
20
|
-
headers:
|
|
21
|
-
path: { payable_id:
|
|
22
|
-
query: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
initialPageParam: void 0,
|
|
27
|
-
queryFn: async ({ signal: e, pageParam: t }) => {
|
|
28
|
-
let { data: i } = await n({
|
|
29
|
-
client: f,
|
|
30
|
-
headers: _,
|
|
31
|
-
path: { payable_id: r ?? "" },
|
|
32
|
-
query: {
|
|
33
|
-
limit: p,
|
|
34
|
-
...t ? { pagination_token: t } : {}
|
|
35
|
-
},
|
|
36
|
-
signal: e,
|
|
37
|
-
throwOnError: !0
|
|
38
|
-
});
|
|
39
|
-
return i;
|
|
40
|
-
},
|
|
41
|
-
getNextPageParam: o
|
|
42
|
-
});
|
|
43
|
-
c(b, v);
|
|
44
|
-
let x = u(() => b.data?.pages.flatMap((e) => e.data ?? []) ?? [], [b.data]);
|
|
45
|
-
return {
|
|
46
|
-
...b,
|
|
47
|
-
lineItems: x,
|
|
48
|
-
isResolving: s(b)
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
function h() {
|
|
52
|
-
let { client: n, organizationId: i } = e();
|
|
53
|
-
return f({
|
|
54
|
-
mutationFn: async ({ path: e, body: a }) => {
|
|
55
|
-
let { data: o } = await r({
|
|
56
|
-
client: n,
|
|
57
|
-
headers: t(i),
|
|
58
|
-
path: e,
|
|
59
|
-
body: a,
|
|
60
|
-
throwOnError: !0
|
|
61
|
-
});
|
|
62
|
-
return o;
|
|
63
|
-
},
|
|
64
|
-
onSuccess: async (e, t) => {
|
|
65
|
-
await l({
|
|
66
|
-
client: n,
|
|
67
|
-
organizationId: i,
|
|
68
|
-
payableId: t.path.payable_id,
|
|
69
|
-
includeLineItems: !0
|
|
70
|
-
});
|
|
12
|
+
var a = 100;
|
|
13
|
+
function o(o, { enabled: s } = {}) {
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = !!(l && u && o) && s !== !1, p = n({
|
|
15
|
+
client: c,
|
|
16
|
+
headers: t(l),
|
|
17
|
+
path: { payable_id: o ?? "" },
|
|
18
|
+
query: {
|
|
19
|
+
sort: "timestamp",
|
|
20
|
+
order: "asc",
|
|
21
|
+
limit: a
|
|
71
22
|
}
|
|
72
23
|
});
|
|
24
|
+
return i({
|
|
25
|
+
...r(p, d),
|
|
26
|
+
enabled: f
|
|
27
|
+
});
|
|
73
28
|
}
|
|
74
29
|
//#endregion
|
|
75
|
-
export {
|
|
30
|
+
export { o as usePayableHistoryQuery };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import "../../../shared/ui/dist/index.js";
|
|
7
7
|
import { DUPLICATE_BILLS_LABELS_EN as t } from "./index2.js";
|
|
8
|
-
import { DuplicateVerdict as n, suspectedPayableDuplicates as r, useApplyDuplicateVerdictsMutation as i } from "../../data-access/dist/
|
|
8
|
+
import { DuplicateVerdict as n, suspectedPayableDuplicates as r, useApplyDuplicateVerdictsMutation as i } from "../../data-access/dist/index7.js";
|
|
9
9
|
import "../../data-access/dist/index.js";
|
|
10
10
|
import { payableRemoval as a } from "./index6.js";
|
|
11
11
|
import { useCallback as o, useMemo as s, useState as c } from "react";
|
|
@@ -7,7 +7,7 @@ import "../../../shared/ui/dist/index.js";
|
|
|
7
7
|
import { formatCalendarDate as t } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
8
8
|
import { formatMoneyExact as n } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
9
9
|
import { extractApiErrorMessage as r } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
10
|
-
import { useMarkPayableAsPaidMutation as i } from "../../data-access/dist/
|
|
10
|
+
import { useMarkPayableAsPaidMutation as i } from "../../data-access/dist/index13.js";
|
|
11
11
|
import "../../data-access/dist/index.js";
|
|
12
12
|
import { dateToCalendarKey as a, getDefaultPaymentDate as o, isTodayInEastern as s } from "./index13.js";
|
|
13
13
|
import { mergeMarkAsPaidFlowLabels as c } from "./index12.js";
|
|
@@ -11,7 +11,7 @@ import { formatCalendarDate as r } from "../../../shared/util/dist/lib/formatCal
|
|
|
11
11
|
import { formatMoneyExact as i } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
12
12
|
import { extractApiErrorMessage as a } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
13
13
|
import "../../../shared/feature/dist/index.js";
|
|
14
|
-
import { useSchedulePaymentMutation as o } from "../../data-access/dist/
|
|
14
|
+
import { useSchedulePaymentMutation as o } from "../../data-access/dist/index12.js";
|
|
15
15
|
import "../../data-access/dist/index.js";
|
|
16
16
|
import { dateToCalendarKey as s, getDefaultPaymentDate as c, isPastEasternDate as l, isTodayInEastern as u } from "./index13.js";
|
|
17
17
|
import { maskAccountNumber as d } from "./index19.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { usePayableHistoryQuery as e } from "../../data-access/dist/
|
|
5
|
+
import { usePayableHistoryQuery as e } from "../../data-access/dist/index9.js";
|
|
6
6
|
import "../../data-access/dist/index.js";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js
|
|
8
8
|
var t = "submitted_for_approval";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { suspectedPayableDuplicates as e } from "../../data-access/dist/
|
|
1
|
+
import { suspectedPayableDuplicates as e } from "../../data-access/dist/index7.js";
|
|
2
2
|
import "../../data-access/dist/index.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js
|
|
4
4
|
function t(t) {
|
|
@@ -9,7 +9,7 @@ import { useAllOrganizationUsersQuery as r } from "../../../shared/data-access/d
|
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useWidgetConfig as i } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
11
|
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { usePayableApprovalRequestsQuery as a } from "../../data-access/dist/
|
|
12
|
+
import { usePayableApprovalRequestsQuery as a } from "../../data-access/dist/index8.js";
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
14
|
import { useGetApprovalPoliciesQuery as o } from "../../../shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js";
|
|
15
15
|
import "../../../shared/approval-policy/data-access/dist/index.js";
|
|
@@ -8,7 +8,7 @@ import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
10
|
import "../../../shared/feature/dist/index.js";
|
|
11
|
-
import { usePayableApprovalRequestsQuery as i } from "../../data-access/dist/
|
|
11
|
+
import { usePayableApprovalRequestsQuery as i } from "../../data-access/dist/index8.js";
|
|
12
12
|
import "../../data-access/dist/index.js";
|
|
13
13
|
import { currentApprovalRound as a } from "./index26.js";
|
|
14
14
|
import { usePayableApprovalRoundStart as o } from "./index29.js";
|
|
@@ -6,8 +6,8 @@ import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.
|
|
|
6
6
|
import "../../../shared/ui/dist/index.js";
|
|
7
7
|
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
8
8
|
import "../../../shared/feature/dist/index.js";
|
|
9
|
-
import { useApprovePayableApprovalRequestMutation as n, useRejectPayableApprovalRequestMutation as r } from "../../data-access/dist/
|
|
10
|
-
import { useCancelPayableMutation as i, useCancelScheduledPaymentMutation as a, useForceApprovePayableMutation as o, useForceRejectPayableMutation as s, useReopenPayableMutation as c } from "../../data-access/dist/
|
|
9
|
+
import { useApprovePayableApprovalRequestMutation as n, useRejectPayableApprovalRequestMutation as r } from "../../data-access/dist/index8.js";
|
|
10
|
+
import { useCancelPayableMutation as i, useCancelScheduledPaymentMutation as a, useForceApprovePayableMutation as o, useForceRejectPayableMutation as s, useReopenPayableMutation as c } from "../../data-access/dist/index13.js";
|
|
11
11
|
import "../../data-access/dist/index.js";
|
|
12
12
|
import { getBillDetailActions as l } from "./index16.js";
|
|
13
13
|
import { useState as u } from "react";
|
|
@@ -9,7 +9,7 @@ import { formatCalendarDate as n } from "../../../shared/util/dist/lib/formatCal
|
|
|
9
9
|
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
10
|
import "../../../shared/feature/dist/index.js";
|
|
11
11
|
import { isLiveScheduledPaymentRecord as i } from "../../data-access/dist/index3.js";
|
|
12
|
-
import { usePayablePaymentRecordsQuery as a } from "../../data-access/dist/
|
|
12
|
+
import { usePayablePaymentRecordsQuery as a } from "../../data-access/dist/index11.js";
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js
|
|
15
15
|
function o({ payableId: o, scheduledPaymentDate: s, enabled: c = !0 }) {
|
|
@@ -9,7 +9,7 @@ import "../../../shared/data-access/dist/index.js";
|
|
|
9
9
|
import "../../../shared/ui/dist/index.js";
|
|
10
10
|
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
11
|
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { useDeletePayableMutation as i } from "../../data-access/dist/
|
|
12
|
+
import { useDeletePayableMutation as i } from "../../data-access/dist/index13.js";
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
14
|
import { useState as a } from "react";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useAttachPayableFileMutation as e } from "../../data-access/dist/
|
|
5
|
+
import { useAttachPayableFileMutation as e } from "../../data-access/dist/index13.js";
|
|
6
6
|
import "../../data-access/dist/index.js";
|
|
7
7
|
import { SourceDocumentPanel as t } from "../../ui/dist/index95.js";
|
|
8
8
|
import "../../ui/dist/index.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import "../../../shared/ui/dist/index.js";
|
|
7
|
-
import { useUpdatePayableMutation as t } from "../../data-access/dist/
|
|
7
|
+
import { useUpdatePayableMutation as t } from "../../data-access/dist/index13.js";
|
|
8
8
|
import "../../data-access/dist/index.js";
|
|
9
9
|
import { counterpartFormBankAccountToCreatePayload as n, counterpartFormBankAccountToUpdatePayload as r, getAchInstructions as i, resolveCounterpartBankAccountWrite as a, validateAchFormValues as o } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
10
10
|
import { useCounterpartBankAccountsQuery as s, useCreateCounterpartBankAccountMutation as c, useUpdateCounterpartBankAccountMutation as l } from "../../../shared/counterpart-management/data-access/dist/index5.js";
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import "../../../shared/ui/dist/index.js";
|
|
7
7
|
import { extractApiErrorMessage as t } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
8
|
-
import { useReplacePayableLineItemsMutation as n } from "../../data-access/dist/
|
|
9
|
-
import { useCreatePayableMutation as r, useDeletePayableFileMutation as i, useSubmitPayableForApprovalMutation as a, useUpdatePayableMutation as o, useValidatePayableMutation as s } from "../../data-access/dist/
|
|
8
|
+
import { useReplacePayableLineItemsMutation as n } from "../../data-access/dist/index10.js";
|
|
9
|
+
import { useCreatePayableMutation as r, useDeletePayableFileMutation as i, useSubmitPayableForApprovalMutation as a, useUpdatePayableMutation as o, useValidatePayableMutation as s } from "../../data-access/dist/index13.js";
|
|
10
10
|
import "../../data-access/dist/index.js";
|
|
11
11
|
import { BILL_CREATE_MESSAGE_LABELS_EN as c } from "./index41.js";
|
|
12
12
|
import { encodeFileToBase64 as ee } from "./index47.js";
|
|
@@ -14,7 +14,8 @@ var e = {
|
|
|
14
14
|
deleteDraftConfirm: "bill-pay-bill-delete-draft-confirm",
|
|
15
15
|
unsavedDialog: "bill-pay-bill-unsaved-dialog",
|
|
16
16
|
unsavedSaveDraft: "bill-pay-bill-unsaved-save-draft",
|
|
17
|
-
unsavedDiscard: "bill-pay-bill-unsaved-discard"
|
|
17
|
+
unsavedDiscard: "bill-pay-bill-unsaved-discard",
|
|
18
|
+
unsavedClose: "bill-pay-bill-unsaved-close"
|
|
18
19
|
};
|
|
19
20
|
//#endregion
|
|
20
21
|
export { e as billCreateTestIds };
|
|
@@ -10,8 +10,8 @@ import "../../../shared/data-access/dist/index.js";
|
|
|
10
10
|
import { formatCalendarDate as ne } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
11
11
|
import { useWidgetConfig as re } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
12
|
import "../../../shared/feature/dist/index.js";
|
|
13
|
-
import { usePayableHistoryQuery as ie } from "../../data-access/dist/
|
|
14
|
-
import { useAllPayableLineItemsQuery as ae } from "../../data-access/dist/
|
|
13
|
+
import { usePayableHistoryQuery as ie } from "../../data-access/dist/index9.js";
|
|
14
|
+
import { useAllPayableLineItemsQuery as ae } from "../../data-access/dist/index10.js";
|
|
15
15
|
import { usePayableQuery as oe } from "../../data-access/dist/index15.js";
|
|
16
16
|
import "../../data-access/dist/index.js";
|
|
17
17
|
import { resolveVendor as se } from "./index5.js";
|
|
@@ -303,7 +303,8 @@ function c({ open: c, onOpenChange: l, payableId: u, readOnly: d = !1, copy: f,
|
|
|
303
303
|
labels: p.unsavedChanges,
|
|
304
304
|
testId: r.unsavedDialog,
|
|
305
305
|
saveDraftTestId: r.unsavedSaveDraft,
|
|
306
|
-
discardTestId: r.unsavedDiscard
|
|
306
|
+
discardTestId: r.unsavedDiscard,
|
|
307
|
+
closeTestId: r.unsavedClose
|
|
307
308
|
}),
|
|
308
309
|
/* @__PURE__ */ s(n, {
|
|
309
310
|
...$e,
|
|
@@ -8,7 +8,7 @@ import { useAllLedgerAccountsQuery as n } from "../../../shared/data-access/dist
|
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
10
|
import "../../../shared/feature/dist/index.js";
|
|
11
|
-
import { useAllPayableLineItemsQuery as i } from "../../data-access/dist/
|
|
11
|
+
import { useAllPayableLineItemsQuery as i } from "../../data-access/dist/index10.js";
|
|
12
12
|
import { usePayableQuery as a } from "../../data-access/dist/index15.js";
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
14
|
import { BillDecisionDialog as o } from "../../ui/dist/index51.js";
|
|
@@ -5,7 +5,7 @@
|
|
|
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
7
|
import "../../../shared/ui/dist/index.js";
|
|
8
|
-
import { useUploadPayableFromFileMutation as n } from "../../data-access/dist/
|
|
8
|
+
import { useUploadPayableFromFileMutation as n } from "../../data-access/dist/index13.js";
|
|
9
9
|
import { usePayableOcrQueries as r } from "../../data-access/dist/index14.js";
|
|
10
10
|
import "../../data-access/dist/index.js";
|
|
11
11
|
import { billPayUploadQueueKey as i } from "./index63.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
6
6
|
import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
7
|
-
import { suspectedPayableDuplicates as n } from "../../data-access/dist/
|
|
7
|
+
import { suspectedPayableDuplicates as n } from "../../data-access/dist/index7.js";
|
|
8
8
|
import { useAllSuspectedDuplicatePayablesQuery as r, usePayablesQuery as i } from "../../data-access/dist/index15.js";
|
|
9
9
|
import "../../data-access/dist/index.js";
|
|
10
10
|
import { groupSuspectedDuplicates as a } from "./index3.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
6
6
|
import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
7
|
-
import { hasSuspectedPayableDuplicate as n } from "../../data-access/dist/
|
|
7
|
+
import { hasSuspectedPayableDuplicate as n } from "../../data-access/dist/index7.js";
|
|
8
8
|
import { usePayablesQuery as r, usePayablesTotalCountQuery as i } from "../../data-access/dist/index15.js";
|
|
9
9
|
import "../../data-access/dist/index.js";
|
|
10
10
|
import { derivePayableStatus as a } from "./index4.js";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import "../../../shared/ui/dist/index.js";
|
|
7
7
|
import { DUPLICATE_BILLS_LABELS_EN as t } from "./index2.js";
|
|
8
|
-
import { DuplicateVerdict as n, useApplyDuplicateVerdictsMutation as r } from "../../data-access/dist/
|
|
8
|
+
import { DuplicateVerdict as n, useApplyDuplicateVerdictsMutation as r } from "../../data-access/dist/index7.js";
|
|
9
9
|
import "../../data-access/dist/index.js";
|
|
10
10
|
import { useDuplicateBills as i } from "./index7.js";
|
|
11
11
|
import { useDuplicateBillsSelection as a } from "./index8.js";
|
|
@@ -4,7 +4,7 @@ var e = {
|
|
|
4
4
|
description: "This bill has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
|
|
5
5
|
saveDraftButton: "Save as draft",
|
|
6
6
|
discardButton: "Discard changes",
|
|
7
|
-
|
|
7
|
+
closeButton: "Close"
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
10
10
|
export { e as UNSAVED_BILL_DIALOG_LABELS_EN };
|
|
@@ -1,47 +1,52 @@
|
|
|
1
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
2
|
import { UNSAVED_BILL_DIALOG_LABELS_EN as s } from "./index97.js";
|
|
3
3
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
import { XIcon as u } from "lucide-react";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js
|
|
5
|
-
function
|
|
6
|
-
let
|
|
6
|
+
function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _, testId: v, saveDraftTestId: y, discardTestId: b, closeTestId: x }) {
|
|
7
|
+
let S = {
|
|
7
8
|
...s,
|
|
8
|
-
...
|
|
9
|
+
..._
|
|
9
10
|
};
|
|
10
11
|
return /* @__PURE__ */ c(e, {
|
|
11
|
-
open:
|
|
12
|
+
open: d,
|
|
12
13
|
onOpenChange: (e) => {
|
|
13
|
-
!e && !
|
|
14
|
+
!e && !h && m();
|
|
14
15
|
},
|
|
15
16
|
children: /* @__PURE__ */ l(t, {
|
|
16
|
-
"data-testid":
|
|
17
|
-
children: [
|
|
18
|
-
/* @__PURE__ */
|
|
17
|
+
"data-testid": v,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ l("button", {
|
|
19
20
|
type: "button",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
onClick: m,
|
|
22
|
+
disabled: h,
|
|
23
|
+
"data-testid": x,
|
|
24
|
+
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",
|
|
25
|
+
children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
|
|
26
|
+
className: "ttw:sr-only",
|
|
27
|
+
children: S.closeButton
|
|
28
|
+
})]
|
|
24
29
|
}),
|
|
25
|
-
/* @__PURE__ */ c(
|
|
30
|
+
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: S.title }), /* @__PURE__ */ c(n, { children: S.description })] }),
|
|
31
|
+
/* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
26
32
|
type: "button",
|
|
27
33
|
variant: "outline",
|
|
28
|
-
onClick:
|
|
29
|
-
disabled:
|
|
30
|
-
"data-testid":
|
|
31
|
-
children:
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ c(o, {
|
|
34
|
+
onClick: p,
|
|
35
|
+
disabled: h,
|
|
36
|
+
"data-testid": b,
|
|
37
|
+
children: S.discardButton
|
|
38
|
+
}), /* @__PURE__ */ c(o, {
|
|
34
39
|
type: "button",
|
|
35
40
|
variant: "default",
|
|
36
|
-
loading:
|
|
37
|
-
disabled:
|
|
38
|
-
onClick:
|
|
39
|
-
"data-testid":
|
|
40
|
-
children:
|
|
41
|
-
})
|
|
42
|
-
]
|
|
41
|
+
loading: h,
|
|
42
|
+
disabled: h || g,
|
|
43
|
+
onClick: f,
|
|
44
|
+
"data-testid": y,
|
|
45
|
+
children: S.saveDraftButton
|
|
46
|
+
})] })
|
|
47
|
+
]
|
|
43
48
|
})
|
|
44
49
|
});
|
|
45
50
|
}
|
|
46
51
|
//#endregion
|
|
47
|
-
export {
|
|
52
|
+
export { d as UnsavedBillDialog, d as default };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -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.4.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.4.5", n = "8e167254e3d8cfa7777a923bbd458c5f8aea8ab0", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|