@tesouro/embedded-components-react 0.9.24 → 0.9.25
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 +82 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index11.js +59 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +10 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +155 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +13 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +99 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +69 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +3 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +57 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +114 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +190 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +75 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +35 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +461 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +102 -452
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +12 -116
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +231 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +38 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +245 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +169 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +21 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +534 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +4 -542
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +236 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +3 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +1 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +82 -225
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +45 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +138 -155
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +48 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +219 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +278 -322
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +78 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +52 -2
- 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/theme/themeTokens.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +4696 -4681
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +0 -29
|
@@ -4,255 +4,267 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import { hasAnyScope as t } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
-
import { useMailboxAddress as
|
|
8
|
-
import { Scope as
|
|
7
|
+
import { useMailboxAddress as ee } from "../../../../shared/data-access/dist/lib/useMailboxAddress.js";
|
|
8
|
+
import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import "../../../../shared/ui/dist/index.js";
|
|
11
|
-
import { useWidgetConfig as
|
|
11
|
+
import { useWidgetConfig as te, useWidgetInitStaleForToken as ne } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
12
|
import "../../../../shared/feature/dist/index.js";
|
|
13
|
-
import { BillDecisionDialog as
|
|
13
|
+
import { BillDecisionDialog as r } from "../../../ui/dist/index4.js";
|
|
14
14
|
import "../../../ui/dist/index.js";
|
|
15
|
-
import { AddBillDialog as
|
|
16
|
-
import { BillsScreen as
|
|
15
|
+
import { AddBillDialog as re } from "../../ui/dist/index6.js";
|
|
16
|
+
import { BillsScreen as i } from "../../ui/dist/index20.js";
|
|
17
17
|
import "../../ui/dist/index.js";
|
|
18
|
-
import { BILL_QUEUE_ORDER as
|
|
19
|
-
import { BILLS_TAB_LABELS_EN as
|
|
20
|
-
import { BillDuplicateView as
|
|
21
|
-
import { useDuplicateBillsCount as
|
|
22
|
-
import { formatBillQueueBadge as
|
|
23
|
-
import { copyTextToClipboard as
|
|
24
|
-
import { resolveDuplicateWarning as
|
|
25
|
-
import { billsTableCellTestIds as
|
|
26
|
-
import { useBillQueueCounts as
|
|
27
|
-
import {
|
|
28
|
-
import { Fragment as
|
|
18
|
+
import { BILL_QUEUE_ORDER as a, DUPLICATES_TAB_ID as o } from "./index4.js";
|
|
19
|
+
import { BILLS_TAB_LABELS_EN as s } from "./index7.js";
|
|
20
|
+
import { BillDuplicateView as c, useBillsTable as l } from "./index16.js";
|
|
21
|
+
import { useDuplicateBillsCount as u } from "./index2.js";
|
|
22
|
+
import { formatBillQueueBadge as d } from "./index3.js";
|
|
23
|
+
import { copyTextToClipboard as f } from "./index5.js";
|
|
24
|
+
import { resolveDuplicateWarning as p } from "./index6.js";
|
|
25
|
+
import { billsTableCellTestIds as m } from "./index8.js";
|
|
26
|
+
import { useBillQueueCounts as h } from "./index9.js";
|
|
27
|
+
import { useCallback as g, useImperativeHandle as ie, useMemo as _, useState as v } from "react";
|
|
28
|
+
import { Fragment as ae, jsx as y, jsxs as oe } from "react/jsx-runtime";
|
|
29
29
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
let
|
|
33
|
-
...
|
|
34
|
-
...
|
|
30
|
+
var b = () => void 0;
|
|
31
|
+
function x({ labels: x, onOpenBill: S, onEnterManually: se, onFilesSelected: ce, maxFiles: C, onSettingsClick: le, ref: ue }) {
|
|
32
|
+
let w = _(() => ({
|
|
33
|
+
...s,
|
|
34
|
+
...x,
|
|
35
35
|
queues: {
|
|
36
|
-
...
|
|
37
|
-
...
|
|
36
|
+
...s.queues,
|
|
37
|
+
...x?.queues
|
|
38
38
|
},
|
|
39
39
|
scheduledRelativeDay: {
|
|
40
|
-
...
|
|
41
|
-
...
|
|
40
|
+
...s.scheduledRelativeDay,
|
|
41
|
+
...x?.scheduledRelativeDay
|
|
42
42
|
},
|
|
43
43
|
filters: {
|
|
44
|
-
...
|
|
45
|
-
...
|
|
44
|
+
...s.filters,
|
|
45
|
+
...x?.filters,
|
|
46
46
|
presets: {
|
|
47
|
-
...
|
|
48
|
-
...
|
|
47
|
+
...s.filters.presets,
|
|
48
|
+
...x?.filters?.presets
|
|
49
49
|
},
|
|
50
50
|
statuses: {
|
|
51
|
-
...
|
|
52
|
-
...
|
|
51
|
+
...s.filters.statuses,
|
|
52
|
+
...x?.filters?.statuses
|
|
53
53
|
},
|
|
54
54
|
dateFieldNames: {
|
|
55
|
-
...
|
|
56
|
-
...
|
|
55
|
+
...s.filters.dateFieldNames,
|
|
56
|
+
...x?.filters?.dateFieldNames
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
filterBar: {
|
|
60
|
-
...
|
|
61
|
-
...
|
|
60
|
+
...s.filterBar,
|
|
61
|
+
...x?.filterBar
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
duplicatesEmptyState: {
|
|
64
|
+
...s.duplicatesEmptyState,
|
|
65
|
+
...x?.duplicatesEmptyState
|
|
66
|
+
},
|
|
67
|
+
queueEmptyStates: a.reduce((e, t) => ({
|
|
64
68
|
...e,
|
|
65
69
|
[t]: {
|
|
66
|
-
...
|
|
67
|
-
...
|
|
70
|
+
...s.queueEmptyStates[t],
|
|
71
|
+
...x?.queueEmptyStates?.[t]
|
|
68
72
|
}
|
|
69
73
|
}), {})
|
|
70
|
-
}), [
|
|
71
|
-
|
|
72
|
-
menuTrigger:
|
|
73
|
-
notDuplicateAction:
|
|
74
|
-
notDuplicateConfirmTitle:
|
|
75
|
-
notDuplicateConfirmDescription:
|
|
76
|
-
notDuplicateConfirmButton:
|
|
77
|
-
notDuplicateConfirmBackButton:
|
|
78
|
-
deleteAction:
|
|
79
|
-
deleteConfirmTitle:
|
|
80
|
-
deleteConfirmDescription:
|
|
81
|
-
deleteConfirmButton:
|
|
82
|
-
deletedToast:
|
|
83
|
-
confirmAction:
|
|
84
|
-
confirmDuplicateTitle:
|
|
85
|
-
confirmDuplicateDescription:
|
|
86
|
-
confirmDuplicateButton:
|
|
87
|
-
confirmedToast:
|
|
88
|
-
cancelAction:
|
|
89
|
-
cancelConfirmTitle:
|
|
90
|
-
cancelConfirmDescription:
|
|
91
|
-
cancelConfirmButton:
|
|
92
|
-
cancelConfirmBackButton:
|
|
93
|
-
dismissedToast:
|
|
94
|
-
cancelledToast:
|
|
95
|
-
actionFailedToast:
|
|
96
|
-
groupHeader:
|
|
74
|
+
}), [x]), [de, T] = v(!1), [E, D] = v(c.AllBills), { initResponse: O } = te(), k = ne(), A = t(O?.scopes, [n.PayableReadOrg]), j = t(O?.scopes, [n.PayableWriteOrg]), M = !O || A, N = !O || j, P = t(O?.scopes, [n.CounterpartReadOrg]), F = _(() => ({
|
|
75
|
+
copyRow: w.duplicateCopyRowLabel,
|
|
76
|
+
menuTrigger: w.duplicateMenuTrigger,
|
|
77
|
+
notDuplicateAction: w.duplicateNotDuplicateAction,
|
|
78
|
+
notDuplicateConfirmTitle: w.duplicateNotDuplicateConfirmTitle,
|
|
79
|
+
notDuplicateConfirmDescription: w.duplicateNotDuplicateConfirmDescription,
|
|
80
|
+
notDuplicateConfirmButton: w.duplicateNotDuplicateConfirmButton,
|
|
81
|
+
notDuplicateConfirmBackButton: w.duplicateNotDuplicateConfirmBackButton,
|
|
82
|
+
deleteAction: w.duplicateDeleteAction,
|
|
83
|
+
deleteConfirmTitle: w.duplicateDeleteConfirmTitle,
|
|
84
|
+
deleteConfirmDescription: w.duplicateDeleteConfirmDescription,
|
|
85
|
+
deleteConfirmButton: w.duplicateDeleteConfirmButton,
|
|
86
|
+
deletedToast: w.duplicateDeletedToast,
|
|
87
|
+
confirmAction: w.duplicateConfirmAction,
|
|
88
|
+
confirmDuplicateTitle: w.duplicateConfirmDuplicateTitle,
|
|
89
|
+
confirmDuplicateDescription: w.duplicateConfirmDuplicateDescription,
|
|
90
|
+
confirmDuplicateButton: w.duplicateConfirmDuplicateButton,
|
|
91
|
+
confirmedToast: w.duplicateConfirmedToast,
|
|
92
|
+
cancelAction: w.duplicateCancelAction,
|
|
93
|
+
cancelConfirmTitle: w.duplicateCancelConfirmTitle,
|
|
94
|
+
cancelConfirmDescription: w.duplicateCancelConfirmDescription,
|
|
95
|
+
cancelConfirmButton: w.duplicateCancelConfirmButton,
|
|
96
|
+
cancelConfirmBackButton: w.duplicateCancelConfirmBackButton,
|
|
97
|
+
dismissedToast: w.duplicateDismissedToast,
|
|
98
|
+
cancelledToast: w.duplicateCancelledToast,
|
|
99
|
+
actionFailedToast: w.duplicateActionFailedToast,
|
|
100
|
+
groupHeader: w.duplicateGroupHeader
|
|
97
101
|
}), [
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
]),
|
|
102
|
+
w.duplicateCopyRowLabel,
|
|
103
|
+
w.duplicateMenuTrigger,
|
|
104
|
+
w.duplicateNotDuplicateAction,
|
|
105
|
+
w.duplicateNotDuplicateConfirmTitle,
|
|
106
|
+
w.duplicateNotDuplicateConfirmDescription,
|
|
107
|
+
w.duplicateNotDuplicateConfirmButton,
|
|
108
|
+
w.duplicateNotDuplicateConfirmBackButton,
|
|
109
|
+
w.duplicateDeleteAction,
|
|
110
|
+
w.duplicateDeleteConfirmTitle,
|
|
111
|
+
w.duplicateDeleteConfirmDescription,
|
|
112
|
+
w.duplicateDeleteConfirmButton,
|
|
113
|
+
w.duplicateDeletedToast,
|
|
114
|
+
w.duplicateConfirmAction,
|
|
115
|
+
w.duplicateConfirmDuplicateTitle,
|
|
116
|
+
w.duplicateConfirmDuplicateDescription,
|
|
117
|
+
w.duplicateConfirmDuplicateButton,
|
|
118
|
+
w.duplicateConfirmedToast,
|
|
119
|
+
w.duplicateCancelAction,
|
|
120
|
+
w.duplicateCancelConfirmTitle,
|
|
121
|
+
w.duplicateCancelConfirmDescription,
|
|
122
|
+
w.duplicateCancelConfirmButton,
|
|
123
|
+
w.duplicateCancelConfirmBackButton,
|
|
124
|
+
w.duplicateDismissedToast,
|
|
125
|
+
w.duplicateCancelledToast,
|
|
126
|
+
w.duplicateActionFailedToast,
|
|
127
|
+
w.duplicateGroupHeader
|
|
128
|
+
]), I = t(O?.scopes, [n.MailboxReadOrg]), { mailboxAddress: L } = ee({
|
|
125
129
|
relatedObjectType: "payable",
|
|
126
|
-
enabled:
|
|
127
|
-
}),
|
|
128
|
-
enabled:
|
|
129
|
-
canReadVendors:
|
|
130
|
-
isVendorFilterPaused:
|
|
131
|
-
filterLabels:
|
|
132
|
-
onOpenBill:
|
|
133
|
-
duplicateRowNote:
|
|
134
|
-
attachmentLabel:
|
|
135
|
-
duplicateGroupLabels:
|
|
136
|
-
canManageDuplicates:
|
|
137
|
-
duplicateView:
|
|
138
|
-
scheduledRelativeDayLabels:
|
|
139
|
-
}),
|
|
140
|
-
_(() => {
|
|
141
|
-
M === u.PossibleDuplicates && !K.isLoading && (K.isError || K.count === 0) && N(u.AllBills);
|
|
142
|
-
}, [
|
|
143
|
-
M,
|
|
144
|
-
K.count,
|
|
145
|
-
K.isError,
|
|
146
|
-
K.isLoading
|
|
147
|
-
]);
|
|
148
|
-
let J = g({ enabled: R }), ae = y(() => c.map((e) => ({
|
|
130
|
+
enabled: I && !k
|
|
131
|
+
}), R = I ? L : void 0, z = l({
|
|
132
|
+
enabled: M,
|
|
133
|
+
canReadVendors: P,
|
|
134
|
+
isVendorFilterPaused: k,
|
|
135
|
+
filterLabels: w.filters,
|
|
136
|
+
onOpenBill: S ?? b,
|
|
137
|
+
duplicateRowNote: w.duplicateRowNote,
|
|
138
|
+
attachmentLabel: w.attachmentIndicator,
|
|
139
|
+
duplicateGroupLabels: F,
|
|
140
|
+
canManageDuplicates: N,
|
|
141
|
+
duplicateView: E,
|
|
142
|
+
scheduledRelativeDayLabels: w.scheduledRelativeDay
|
|
143
|
+
}), B = u({ enabled: M }), V = E === c.PossibleDuplicates, fe = p(B, w), H = h({ enabled: M }), U = !B.isError && B.count > 0, pe = _(() => [...a.map((e) => ({
|
|
149
144
|
id: e,
|
|
150
|
-
label:
|
|
151
|
-
badge:
|
|
152
|
-
})),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
145
|
+
label: w.queues[e],
|
|
146
|
+
badge: d(H[e])
|
|
147
|
+
})), {
|
|
148
|
+
id: o,
|
|
149
|
+
label: w.duplicatesTab,
|
|
150
|
+
badge: B.isError ? void 0 : d(B.count),
|
|
151
|
+
tone: U ? "warning" : void 0,
|
|
152
|
+
startsGroup: !0
|
|
153
|
+
}], [
|
|
154
|
+
w.queues,
|
|
155
|
+
w.duplicatesTab,
|
|
156
|
+
H,
|
|
157
|
+
B.isError,
|
|
158
|
+
B.count,
|
|
159
|
+
U
|
|
160
|
+
]), { clearQueryConstraints: W, onFilterTabChange: G } = z, K = g(() => {
|
|
161
|
+
W(), D(c.PossibleDuplicates);
|
|
162
|
+
}, [W]), me = g((e) => {
|
|
163
|
+
if (e === "duplicates") {
|
|
164
|
+
K();
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
D(c.AllBills), G(e);
|
|
168
|
+
}, [G, K]), q = x?.screen, he = _(() => ({
|
|
169
|
+
...q,
|
|
170
|
+
createButton: w.createButton,
|
|
171
|
+
settingsButton: w.settingsButton,
|
|
156
172
|
addBill: {
|
|
157
|
-
...
|
|
158
|
-
heading:
|
|
173
|
+
...q?.addBill,
|
|
174
|
+
heading: w.nonEmptyHeading
|
|
159
175
|
}
|
|
160
176
|
}), [
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
]),
|
|
166
|
-
...
|
|
167
|
-
labels:
|
|
168
|
-
}), [
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
},
|
|
173
|
-
emailAddress:
|
|
177
|
+
q,
|
|
178
|
+
w.createButton,
|
|
179
|
+
w.settingsButton,
|
|
180
|
+
w.nonEmptyHeading
|
|
181
|
+
]), J = _(() => ({
|
|
182
|
+
...z.filterBarProps,
|
|
183
|
+
labels: w.filterBar
|
|
184
|
+
}), [z.filterBarProps, w.filterBar]), Y = () => {
|
|
185
|
+
T(!1), se?.();
|
|
186
|
+
}, X = (e) => {
|
|
187
|
+
T(!1), ce?.(e);
|
|
188
|
+
}, Z = R ? {
|
|
189
|
+
emailAddress: R,
|
|
174
190
|
onCopyEmail: async () => {
|
|
175
|
-
|
|
191
|
+
R && (await f(R) ? e.success(w.emailCopiedToast) : e.error(w.emailCopyFailedToast));
|
|
176
192
|
}
|
|
177
193
|
} : {
|
|
178
194
|
emailAddress: void 0,
|
|
179
195
|
onCopyEmail: void 0
|
|
180
|
-
}, { showVendorBills:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
onReview: () => {
|
|
220
|
-
G.clearQueryConstraints(), N(u.PossibleDuplicates);
|
|
221
|
-
},
|
|
222
|
-
onClear: () => N(u.AllBills)
|
|
196
|
+
}, { showVendorBills: Q } = z, $ = g((e) => {
|
|
197
|
+
D(c.AllBills), Q(e);
|
|
198
|
+
}, [Q]);
|
|
199
|
+
return ie(ue, () => ({ showVendorBills: $ }), [$]), /* @__PURE__ */ oe(ae, { children: [
|
|
200
|
+
/* @__PURE__ */ y(i, {
|
|
201
|
+
rows: z.rows,
|
|
202
|
+
isLoading: z.isLoading || !O,
|
|
203
|
+
isError: z.isError,
|
|
204
|
+
onRetry: z.onRetry,
|
|
205
|
+
sorting: z.sorting,
|
|
206
|
+
onSortingChange: z.onSortingChange,
|
|
207
|
+
pageSize: z.pageSize,
|
|
208
|
+
onPageSizeChange: z.onPageSizeChange,
|
|
209
|
+
pageSizeOptions: z.pageSizeOptions,
|
|
210
|
+
hasNextPage: z.hasNextPage,
|
|
211
|
+
hasPrevPage: z.hasPrevPage,
|
|
212
|
+
onNextPage: z.onNextPage,
|
|
213
|
+
onPrevPage: z.onPrevPage,
|
|
214
|
+
filterTabs: pe,
|
|
215
|
+
selectedFilterTabId: V ? o : z.selectedFilterTabId,
|
|
216
|
+
onFilterTabChange: me,
|
|
217
|
+
searchValue: z.searchValue,
|
|
218
|
+
onSearchChange: z.onSearchChange,
|
|
219
|
+
filters: J,
|
|
220
|
+
visibleColumns: z.visibleColumns,
|
|
221
|
+
cellTestIds: m,
|
|
222
|
+
isSearchActive: z.isSearchActive,
|
|
223
|
+
showAddPanelWhenEmpty: z.showAddPanelWhenEmpty,
|
|
224
|
+
emptyState: V ? w.duplicatesEmptyState : w.queueEmptyStates[z.selectedFilterTabId],
|
|
225
|
+
onCreateClick: N ? () => T(!0) : void 0,
|
|
226
|
+
onSettingsClick: le,
|
|
227
|
+
onEnterManually: N ? Y : void 0,
|
|
228
|
+
onFilesSelected: N ? X : void 0,
|
|
229
|
+
maxFiles: C,
|
|
230
|
+
...Z,
|
|
231
|
+
duplicateWarning: fe,
|
|
232
|
+
duplicateReviewControl: V ? void 0 : {
|
|
233
|
+
reviewLabel: w.duplicateReviewButton,
|
|
234
|
+
onReview: K
|
|
223
235
|
},
|
|
224
|
-
labels:
|
|
236
|
+
labels: he
|
|
225
237
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
open:
|
|
228
|
-
copy:
|
|
229
|
-
onConfirm:
|
|
230
|
-
onCancel:
|
|
231
|
-
isPending:
|
|
232
|
-
labels: { cancelButton:
|
|
238
|
+
/* @__PURE__ */ y(r, {
|
|
239
|
+
open: z.cancelConfirmation.open,
|
|
240
|
+
copy: z.cancelConfirmation.copy,
|
|
241
|
+
onConfirm: z.cancelConfirmation.onConfirm,
|
|
242
|
+
onCancel: z.cancelConfirmation.onCancel,
|
|
243
|
+
isPending: z.cancelConfirmation.isPending,
|
|
244
|
+
labels: { cancelButton: z.cancelConfirmation.cancelButtonLabel }
|
|
233
245
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
open:
|
|
236
|
-
copy:
|
|
237
|
-
onConfirm:
|
|
238
|
-
onCancel:
|
|
239
|
-
isPending:
|
|
240
|
-
labels: { cancelButton:
|
|
246
|
+
/* @__PURE__ */ y(r, {
|
|
247
|
+
open: z.keepConfirmation.open,
|
|
248
|
+
copy: z.keepConfirmation.copy,
|
|
249
|
+
onConfirm: z.keepConfirmation.onConfirm,
|
|
250
|
+
onCancel: z.keepConfirmation.onCancel,
|
|
251
|
+
isPending: z.keepConfirmation.isPending,
|
|
252
|
+
labels: { cancelButton: z.keepConfirmation.cancelButtonLabel }
|
|
241
253
|
}),
|
|
242
|
-
|
|
243
|
-
open:
|
|
244
|
-
onOpenChange:
|
|
245
|
-
onFilesSelected:
|
|
246
|
-
maxFiles:
|
|
247
|
-
onEnterManually:
|
|
248
|
-
...
|
|
249
|
-
dialogLabels:
|
|
254
|
+
N ? /* @__PURE__ */ y(re, {
|
|
255
|
+
open: de,
|
|
256
|
+
onOpenChange: T,
|
|
257
|
+
onFilesSelected: X,
|
|
258
|
+
maxFiles: C,
|
|
259
|
+
onEnterManually: Y,
|
|
260
|
+
...Z,
|
|
261
|
+
dialogLabels: x?.addBillDialog?.dialog,
|
|
250
262
|
labels: {
|
|
251
|
-
...
|
|
252
|
-
heading:
|
|
263
|
+
...x?.addBillDialog?.panel,
|
|
264
|
+
heading: z.hasAnyBills ? w.nonEmptyHeading : w.emptyHeading
|
|
253
265
|
}
|
|
254
266
|
}) : null
|
|
255
267
|
] });
|
|
256
268
|
}
|
|
257
269
|
//#endregion
|
|
258
|
-
export {
|
|
270
|
+
export { x as BillsList, x as default };
|
|
@@ -32,13 +32,13 @@ var t = {
|
|
|
32
32
|
function i(e) {
|
|
33
33
|
return e === t.Pending || e === t.Drafts;
|
|
34
34
|
}
|
|
35
|
-
var a = t.Drafts,
|
|
35
|
+
var a = "duplicates", o = t.Drafts, s = [
|
|
36
36
|
t.Drafts,
|
|
37
37
|
t.Pending,
|
|
38
38
|
t.Scheduled,
|
|
39
39
|
t.Paid,
|
|
40
40
|
t.All
|
|
41
|
-
],
|
|
41
|
+
], c = {
|
|
42
42
|
[t.Drafts]: [
|
|
43
43
|
e.Vendor,
|
|
44
44
|
e.InvoiceNumber,
|
|
@@ -99,34 +99,34 @@ var a = t.Drafts, o = [
|
|
|
99
99
|
e.AddedOn
|
|
100
100
|
]
|
|
101
101
|
};
|
|
102
|
-
function c(e) {
|
|
103
|
-
return s[e];
|
|
104
|
-
}
|
|
105
102
|
function l(e) {
|
|
103
|
+
return c[e];
|
|
104
|
+
}
|
|
105
|
+
function u(e) {
|
|
106
106
|
let t = n[e];
|
|
107
107
|
return t ? [...t] : void 0;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function d(e) {
|
|
110
110
|
return r[e];
|
|
111
111
|
}
|
|
112
|
-
var
|
|
112
|
+
var f = {
|
|
113
113
|
vendorLabel: "counterpart_name",
|
|
114
114
|
issueDateLabel: "issued_at",
|
|
115
115
|
dueDateLabel: "due_date",
|
|
116
116
|
scheduledDateLabel: "scheduled_payment_date",
|
|
117
117
|
addedOnLabel: "created_at"
|
|
118
|
-
},
|
|
118
|
+
}, p = {
|
|
119
119
|
[e.Vendor]: "vendorLabel",
|
|
120
120
|
[e.IssueDate]: "issueDateLabel",
|
|
121
121
|
[e.DueDate]: "dueDateLabel",
|
|
122
122
|
[e.ScheduledDate]: "scheduledDateLabel",
|
|
123
123
|
[e.AddedOn]: "addedOnLabel"
|
|
124
124
|
};
|
|
125
|
-
function p(e) {
|
|
126
|
-
return f[e];
|
|
127
|
-
}
|
|
128
125
|
function m(e) {
|
|
129
|
-
|
|
126
|
+
return p[e];
|
|
127
|
+
}
|
|
128
|
+
function h(e) {
|
|
129
|
+
if (e) return f[e];
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
|
-
export {
|
|
132
|
+
export { c as BILL_QUEUE_COLUMNS, r as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, s as BILL_QUEUE_ORDER, n as BILL_QUEUE_STATUSES, f as BILL_SORT_FIELDS, t as BillQueue, o as DEFAULT_BILL_QUEUE, a as DUPLICATES_TAB_ID, l as billQueueColumns, d as billQueueHasScheduledPayment, i as billQueueOffersAddPanel, u as billQueueStatuses, m as billSortColumnId, h as billSortField };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "./index2.js";
|
|
2
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js
|
|
3
|
-
function e(e, t
|
|
4
|
-
if (e.isError)
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
function e(e, t) {
|
|
4
|
+
if (!e.isError) {
|
|
5
|
+
if (e.isCapped) return t.duplicateWarningManyCapped(100);
|
|
6
|
+
if (e.count !== 0) return e.count === 1 ? t.duplicateWarningOne : t.duplicateWarningMany(e.count, e.groupCount);
|
|
7
|
+
}
|
|
7
8
|
}
|
|
8
9
|
//#endregion
|
|
9
10
|
export { e as resolveDuplicateWarning };
|
|
@@ -31,13 +31,13 @@ var t = {
|
|
|
31
31
|
duplicateWarningOne: "1 possible duplicate found",
|
|
32
32
|
duplicateWarningMany: (e, t) => `${e} possible duplicate bills found across ${t} original ${t === 1 ? "bill" : "bills"}`,
|
|
33
33
|
duplicateWarningManyCapped: (e) => `${e}+ possible duplicate bills found`,
|
|
34
|
-
duplicateWarningUnavailable: "Couldn't check for possible duplicates. Try again shortly.",
|
|
35
34
|
duplicateRowNote: "Possible duplicate",
|
|
36
35
|
duplicateReviewButton: "Review duplicates",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
duplicatesTab: "Duplicates",
|
|
37
|
+
duplicatesEmptyState: {
|
|
38
|
+
title: "No possible duplicates",
|
|
39
|
+
description: "Bills flagged as possible duplicates appear here for review."
|
|
40
|
+
},
|
|
41
41
|
duplicateMenuTrigger: ({ vendorLabel: e, invoiceNumberLabel: t }) => t ? `Open duplicate actions for ${e}, invoice ${t}` : `Open duplicate actions for ${e}`,
|
|
42
42
|
duplicateNotDuplicateAction: "Not a duplicate",
|
|
43
43
|
duplicateNotDuplicateConfirmTitle: "Mark as not a duplicate?",
|
|
@@ -63,7 +63,7 @@ var t = {
|
|
|
63
63
|
duplicateCancelledToast: "Duplicate cancelled",
|
|
64
64
|
duplicateActionFailedToast: "Couldn't update this duplicate. Try again.",
|
|
65
65
|
duplicateGroupHeader: ({ vendorLabel: e, invoiceNumberLabel: t }) => t ? `${e} - ${t}` : e,
|
|
66
|
-
|
|
66
|
+
duplicateCopyRowLabel: "Possible duplicate",
|
|
67
67
|
attachmentIndicator: "Has an attachment",
|
|
68
68
|
scheduledRelativeDay: {
|
|
69
69
|
today: "Today",
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DATA_TABLE_LABELS_EN as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
3
3
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
4
|
-
import { DUE_DATE_VALUE_LABELS_EN as n } from "../../../ui/dist/
|
|
4
|
+
import { DUE_DATE_VALUE_LABELS_EN as n } from "../../../ui/dist/index19.js";
|
|
5
5
|
import "../../../ui/dist/index.js";
|
|
6
6
|
import { ADD_BILL_PANEL_LABELS_EN as r } from "./index2.js";
|
|
7
7
|
import "./index4.js";
|
|
@@ -40,10 +40,6 @@ var o = ".pdf,.png,.jpg,.jpeg,.doc,.docx", s = {
|
|
|
40
40
|
searchPlaceholder: "Search by vendor name",
|
|
41
41
|
searchLabel: "Search bills by vendor name",
|
|
42
42
|
filterTabsLabel: "Filter bills by status",
|
|
43
|
-
duplicateReviewFilterLabel: "Possible duplicates",
|
|
44
|
-
duplicateReviewClearButton: "Show all bills",
|
|
45
|
-
duplicateGroupToggle: (e) => `Expand or collapse duplicate group ${e}`,
|
|
46
|
-
duplicateGroupBillCount: (e) => e === 1 ? "1 bill" : `${e} bills`,
|
|
47
43
|
filteredEmptyTitle: "No bills match",
|
|
48
44
|
filteredEmptyDescription: "Try a different search or status filter.",
|
|
49
45
|
errorTitle: "Couldn't load bills",
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/
|
|
1
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index14.js";
|
|
2
2
|
import "../../../ui/dist/index.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js
|
|
4
4
|
var t = {
|