@tesouro/embedded-components-react 0.11.188 → 0.11.190
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/README.md +12 -8
- package/dist/fixtures/index.d.ts +13 -46
- package/dist/index.css +3 -0
- package/dist/index.d.ts +18 -1
- package/dist/index.js +40 -39
- package/dist/lib/BankAccountsWidget.d.ts +2 -0
- package/dist/lib/BillPayWidget.d.ts +16 -1
- package/dist/lib/BillPayWidget.js +3 -1
- package/dist/lib/WidgetSuite.d.ts +2 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetContext.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +76 -58
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +180 -180
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +62 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +101 -58
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +169 -138
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +227 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +208 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +212 -212
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index9.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +43 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +66 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +77 -77
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +129 -122
- package/dist/packages/shared-ui-shadcn/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -10,238 +10,241 @@ import "../../../../shared/data-access/dist/index.js";
|
|
|
10
10
|
import "../../../../shared/ui/dist/index.js";
|
|
11
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 {
|
|
14
|
-
import "
|
|
15
|
-
import { BillDecisionDialog as i } from "../../../ui/dist/index4.js";
|
|
16
|
-
import { BillDuplicateIcon as a } from "../../../ui/dist/index6.js";
|
|
13
|
+
import { BillDecisionDialog as r } from "../../../ui/dist/index4.js";
|
|
14
|
+
import { BillDuplicateIcon as re } from "../../../ui/dist/index6.js";
|
|
17
15
|
import "../../../ui/dist/index.js";
|
|
18
|
-
import { AddBillDialog as
|
|
19
|
-
import {
|
|
16
|
+
import { AddBillDialog as i } from "../../ui/dist/index6.js";
|
|
17
|
+
import { BILL_STATUS_BADGE_LABELS_EN as a } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
18
|
+
import "../../../../shared/document-status/ui/dist/index.js";
|
|
19
|
+
import { BillsScreen as o } from "../../ui/dist/index23.js";
|
|
20
20
|
import "../../ui/dist/index.js";
|
|
21
|
-
import { BILL_QUEUE_ORDER as
|
|
22
|
-
import { BILLS_TAB_LABELS_EN as
|
|
23
|
-
import { BillDuplicateView as
|
|
24
|
-
import { useDuplicateBillsCount as
|
|
25
|
-
import { formatBillQueueBadge as
|
|
26
|
-
import { copyTextToClipboard as
|
|
27
|
-
import { billsTableCellTestIds as
|
|
28
|
-
import { useBillQueueCounts as
|
|
29
|
-
import { useBillSummaryCards as
|
|
30
|
-
import { useCallback as
|
|
31
|
-
import { Fragment as
|
|
21
|
+
import { BILL_QUEUE_ORDER as s, BillQueue as c } from "./index5.js";
|
|
22
|
+
import { BILLS_TAB_LABELS_EN as l } from "./index7.js";
|
|
23
|
+
import { BillDuplicateView as u, useBillsTable as ie } from "./index17.js";
|
|
24
|
+
import { useDuplicateBillsCount as ae } from "./index2.js";
|
|
25
|
+
import { formatBillQueueBadge as oe } from "./index3.js";
|
|
26
|
+
import { copyTextToClipboard as d } from "./index6.js";
|
|
27
|
+
import { billsTableCellTestIds as f } from "./index8.js";
|
|
28
|
+
import { useBillQueueCounts as p } from "./index9.js";
|
|
29
|
+
import { useBillSummaryCards as m } from "./index11.js";
|
|
30
|
+
import { useCallback as h, useImperativeHandle as g, useMemo as _, useState as v } from "react";
|
|
31
|
+
import { Fragment as se, jsx as y, jsxs as ce } from "react/jsx-runtime";
|
|
32
32
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js
|
|
33
|
-
var
|
|
34
|
-
function
|
|
35
|
-
let
|
|
36
|
-
...
|
|
37
|
-
...
|
|
33
|
+
var le = () => void 0;
|
|
34
|
+
function b({ labels: b, onOpenBill: ue, onEnterManually: de, onFilesSelected: fe, maxFiles: x, headerActionContainer: pe, selectedSummaryCard: me, onSummaryCardChange: he, ref: ge }) {
|
|
35
|
+
let S = _(() => ({
|
|
36
|
+
...l,
|
|
37
|
+
...b,
|
|
38
38
|
queues: {
|
|
39
|
-
...
|
|
40
|
-
...
|
|
39
|
+
...l.queues,
|
|
40
|
+
...b?.queues
|
|
41
41
|
},
|
|
42
42
|
summaryCards: {
|
|
43
|
-
...
|
|
44
|
-
...
|
|
43
|
+
...l.summaryCards,
|
|
44
|
+
...b?.summaryCards,
|
|
45
45
|
statusCount: {
|
|
46
|
-
...
|
|
47
|
-
...
|
|
46
|
+
...l.summaryCards.statusCount,
|
|
47
|
+
...b?.summaryCards?.statusCount
|
|
48
48
|
},
|
|
49
49
|
stageCount: {
|
|
50
|
-
...
|
|
51
|
-
...
|
|
50
|
+
...l.summaryCards.stageCount,
|
|
51
|
+
...b?.summaryCards?.stageCount
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
scheduledRelativeDay: {
|
|
55
|
-
...
|
|
56
|
-
...
|
|
55
|
+
...l.scheduledRelativeDay,
|
|
56
|
+
...b?.scheduledRelativeDay
|
|
57
57
|
},
|
|
58
58
|
dueDate: {
|
|
59
|
-
...
|
|
60
|
-
...
|
|
59
|
+
...l.dueDate,
|
|
60
|
+
...b?.dueDate
|
|
61
61
|
},
|
|
62
62
|
filters: {
|
|
63
|
-
...
|
|
64
|
-
...
|
|
63
|
+
...l.filters,
|
|
64
|
+
...b?.filters,
|
|
65
65
|
presets: {
|
|
66
|
-
...
|
|
67
|
-
...
|
|
66
|
+
...l.filters.presets,
|
|
67
|
+
...b?.filters?.presets
|
|
68
68
|
},
|
|
69
69
|
statuses: {
|
|
70
|
-
...
|
|
71
|
-
...
|
|
70
|
+
...l.filters.statuses,
|
|
71
|
+
...b?.filters?.statuses
|
|
72
72
|
},
|
|
73
73
|
dateFieldNames: {
|
|
74
|
-
...
|
|
75
|
-
...
|
|
74
|
+
...l.filters.dateFieldNames,
|
|
75
|
+
...b?.filters?.dateFieldNames
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
filterBar: {
|
|
79
|
-
...
|
|
80
|
-
...
|
|
79
|
+
...l.filterBar,
|
|
80
|
+
...b?.filterBar
|
|
81
81
|
},
|
|
82
82
|
duplicatesEmptyState: {
|
|
83
|
-
...
|
|
84
|
-
...
|
|
83
|
+
...l.duplicatesEmptyState,
|
|
84
|
+
...b?.duplicatesEmptyState
|
|
85
85
|
},
|
|
86
|
-
queueEmptyStates:
|
|
86
|
+
queueEmptyStates: s.reduce((e, t) => ({
|
|
87
87
|
...e,
|
|
88
88
|
[t]: {
|
|
89
|
-
...
|
|
90
|
-
...
|
|
89
|
+
...l.queueEmptyStates[t],
|
|
90
|
+
...b?.queueEmptyStates?.[t]
|
|
91
91
|
}
|
|
92
92
|
}), {})
|
|
93
|
-
}), [
|
|
94
|
-
...
|
|
95
|
-
...
|
|
96
|
-
}), [
|
|
97
|
-
menuTrigger:
|
|
98
|
-
notDuplicateAction:
|
|
99
|
-
notDuplicateConfirmTitle:
|
|
100
|
-
notDuplicateConfirmDescription:
|
|
101
|
-
notDuplicateConfirmButton:
|
|
102
|
-
notDuplicateConfirmBackButton:
|
|
103
|
-
deleteAction:
|
|
104
|
-
deleteConfirmTitle:
|
|
105
|
-
deleteConfirmDescription:
|
|
106
|
-
deleteConfirmButton:
|
|
107
|
-
deletedToast:
|
|
108
|
-
confirmAction:
|
|
109
|
-
confirmDuplicateTitle:
|
|
110
|
-
confirmDuplicateDescription:
|
|
111
|
-
confirmDuplicateButton:
|
|
112
|
-
confirmedToast:
|
|
113
|
-
cancelAction:
|
|
114
|
-
cancelConfirmTitle:
|
|
115
|
-
cancelConfirmDescription:
|
|
116
|
-
cancelConfirmButton:
|
|
117
|
-
cancelConfirmBackButton:
|
|
118
|
-
dismissedToast:
|
|
119
|
-
cancelledToast:
|
|
120
|
-
actionFailedToast:
|
|
121
|
-
groupHeader:
|
|
122
|
-
groupInvoice:
|
|
123
|
-
showMore:
|
|
124
|
-
showLess:
|
|
125
|
-
statusSummary:
|
|
126
|
-
statusLabels:
|
|
127
|
-
pageInfo:
|
|
93
|
+
}), [b]), [_e, C] = v(!1), [w, T] = v(u.AllBills), { initResponse: E } = te(), D = ne(), O = t(E?.scopes, [n.PayableReadOrg]), k = t(E?.scopes, [n.PayableWriteOrg]), A = !E || O, j = !E || k, M = E && !D ? t(E.scopes, [n.PayablePayOrg]) : void 0, N = t(E?.scopes, [n.CounterpartReadOrg]), P = b?.screen?.statusBadge, F = _(() => ({
|
|
94
|
+
...a,
|
|
95
|
+
...P
|
|
96
|
+
}), [P]), I = _(() => ({
|
|
97
|
+
menuTrigger: S.duplicateMenuTrigger,
|
|
98
|
+
notDuplicateAction: S.duplicateNotDuplicateAction,
|
|
99
|
+
notDuplicateConfirmTitle: S.duplicateNotDuplicateConfirmTitle,
|
|
100
|
+
notDuplicateConfirmDescription: S.duplicateNotDuplicateConfirmDescription,
|
|
101
|
+
notDuplicateConfirmButton: S.duplicateNotDuplicateConfirmButton,
|
|
102
|
+
notDuplicateConfirmBackButton: S.duplicateNotDuplicateConfirmBackButton,
|
|
103
|
+
deleteAction: S.duplicateDeleteAction,
|
|
104
|
+
deleteConfirmTitle: S.duplicateDeleteConfirmTitle,
|
|
105
|
+
deleteConfirmDescription: S.duplicateDeleteConfirmDescription,
|
|
106
|
+
deleteConfirmButton: S.duplicateDeleteConfirmButton,
|
|
107
|
+
deletedToast: S.duplicateDeletedToast,
|
|
108
|
+
confirmAction: S.duplicateConfirmAction,
|
|
109
|
+
confirmDuplicateTitle: S.duplicateConfirmDuplicateTitle,
|
|
110
|
+
confirmDuplicateDescription: S.duplicateConfirmDuplicateDescription,
|
|
111
|
+
confirmDuplicateButton: S.duplicateConfirmDuplicateButton,
|
|
112
|
+
confirmedToast: S.duplicateConfirmedToast,
|
|
113
|
+
cancelAction: S.duplicateCancelAction,
|
|
114
|
+
cancelConfirmTitle: S.duplicateCancelConfirmTitle,
|
|
115
|
+
cancelConfirmDescription: S.duplicateCancelConfirmDescription,
|
|
116
|
+
cancelConfirmButton: S.duplicateCancelConfirmButton,
|
|
117
|
+
cancelConfirmBackButton: S.duplicateCancelConfirmBackButton,
|
|
118
|
+
dismissedToast: S.duplicateDismissedToast,
|
|
119
|
+
cancelledToast: S.duplicateCancelledToast,
|
|
120
|
+
actionFailedToast: S.duplicateActionFailedToast,
|
|
121
|
+
groupHeader: S.duplicateGroupHeader,
|
|
122
|
+
groupInvoice: S.duplicateGroupInvoice,
|
|
123
|
+
showMore: S.duplicateShowMore,
|
|
124
|
+
showLess: S.duplicateShowLess,
|
|
125
|
+
statusSummary: S.duplicateStatusSummary,
|
|
126
|
+
statusLabels: F,
|
|
127
|
+
pageInfo: S.duplicatePageInfo
|
|
128
128
|
}), [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
]),
|
|
129
|
+
S.duplicateMenuTrigger,
|
|
130
|
+
S.duplicateNotDuplicateAction,
|
|
131
|
+
S.duplicateNotDuplicateConfirmTitle,
|
|
132
|
+
S.duplicateNotDuplicateConfirmDescription,
|
|
133
|
+
S.duplicateNotDuplicateConfirmButton,
|
|
134
|
+
S.duplicateNotDuplicateConfirmBackButton,
|
|
135
|
+
S.duplicateDeleteAction,
|
|
136
|
+
S.duplicateDeleteConfirmTitle,
|
|
137
|
+
S.duplicateDeleteConfirmDescription,
|
|
138
|
+
S.duplicateDeleteConfirmButton,
|
|
139
|
+
S.duplicateDeletedToast,
|
|
140
|
+
S.duplicateConfirmAction,
|
|
141
|
+
S.duplicateConfirmDuplicateTitle,
|
|
142
|
+
S.duplicateConfirmDuplicateDescription,
|
|
143
|
+
S.duplicateConfirmDuplicateButton,
|
|
144
|
+
S.duplicateConfirmedToast,
|
|
145
|
+
S.duplicateCancelAction,
|
|
146
|
+
S.duplicateCancelConfirmTitle,
|
|
147
|
+
S.duplicateCancelConfirmDescription,
|
|
148
|
+
S.duplicateCancelConfirmButton,
|
|
149
|
+
S.duplicateCancelConfirmBackButton,
|
|
150
|
+
S.duplicateDismissedToast,
|
|
151
|
+
S.duplicateCancelledToast,
|
|
152
|
+
S.duplicateActionFailedToast,
|
|
153
|
+
S.duplicateGroupHeader,
|
|
154
|
+
S.duplicateGroupInvoice,
|
|
155
|
+
S.duplicateShowMore,
|
|
156
|
+
S.duplicateShowLess,
|
|
157
|
+
S.duplicateStatusSummary,
|
|
158
|
+
F,
|
|
159
|
+
S.duplicatePageInfo
|
|
160
|
+
]), L = t(E?.scopes, [n.MailboxReadOrg]), { mailboxAddress: ve } = ee({
|
|
161
161
|
relatedObjectType: "payable",
|
|
162
|
-
enabled:
|
|
163
|
-
}), R =
|
|
164
|
-
enabled:
|
|
165
|
-
canPay:
|
|
166
|
-
canReadVendors:
|
|
167
|
-
isVendorFilterPaused:
|
|
168
|
-
filterLabels:
|
|
169
|
-
onOpenBill:
|
|
170
|
-
duplicateRowNote:
|
|
171
|
-
attachmentLabel:
|
|
172
|
-
duplicateGroupLabels:
|
|
173
|
-
canManageDuplicates:
|
|
174
|
-
duplicateView:
|
|
175
|
-
scheduledRelativeDayLabels:
|
|
176
|
-
dueDateLabels:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
162
|
+
enabled: L && !D
|
|
163
|
+
}), R = L ? ve : void 0, z = ie({
|
|
164
|
+
enabled: A,
|
|
165
|
+
canPay: M,
|
|
166
|
+
canReadVendors: N,
|
|
167
|
+
isVendorFilterPaused: D,
|
|
168
|
+
filterLabels: S.filters,
|
|
169
|
+
onOpenBill: ue ?? le,
|
|
170
|
+
duplicateRowNote: S.duplicateRowNote,
|
|
171
|
+
attachmentLabel: S.attachmentIndicator,
|
|
172
|
+
duplicateGroupLabels: I,
|
|
173
|
+
canManageDuplicates: j,
|
|
174
|
+
duplicateView: w,
|
|
175
|
+
scheduledRelativeDayLabels: S.scheduledRelativeDay,
|
|
176
|
+
dueDateLabels: S.dueDate,
|
|
177
|
+
selectedSummaryCard: me,
|
|
178
|
+
onSummaryCardChange: he
|
|
179
|
+
}), B = ae({ enabled: A }), V = w === u.PossibleDuplicates, H = p({
|
|
180
|
+
enabled: A,
|
|
181
|
+
canPay: M
|
|
182
|
+
}), U = m({
|
|
183
|
+
enabled: A,
|
|
184
|
+
labels: S.summaryCards,
|
|
185
|
+
selectedCard: z.summaryCard
|
|
186
|
+
}), ye = _(() => s.map((e) => ({
|
|
184
187
|
id: e,
|
|
185
|
-
label:
|
|
186
|
-
badge:
|
|
187
|
-
})), [
|
|
188
|
-
W(),
|
|
189
|
-
}, [W]), K =
|
|
190
|
-
|
|
191
|
-
}, [G]),
|
|
192
|
-
|
|
193
|
-
}, [G]),
|
|
194
|
-
V &&
|
|
195
|
-
let
|
|
188
|
+
label: S.queues[e],
|
|
189
|
+
badge: oe(H[e])
|
|
190
|
+
})), [S.queues, H]), { clearQueryConstraints: W, onFilterTabChange: G } = z, be = h(() => {
|
|
191
|
+
W(), T(u.PossibleDuplicates);
|
|
192
|
+
}, [W]), K = h(() => {
|
|
193
|
+
T(u.AllBills), G(c.All);
|
|
194
|
+
}, [G]), xe = h((e) => {
|
|
195
|
+
T(u.AllBills), G(e);
|
|
196
|
+
}, [G]), Se = !B.isError && B.groupCount > 0, Ce = j && Se, we = !B.isLoading && !B.isError && B.count === 0;
|
|
197
|
+
V && (we || z.summaryCard) && K();
|
|
198
|
+
let Te = Ce ? [{
|
|
196
199
|
id: "duplicates",
|
|
197
|
-
label:
|
|
200
|
+
label: S.attentionDuplicates(B.groupCount, B.isCapped),
|
|
198
201
|
tone: "warning",
|
|
199
|
-
icon: /* @__PURE__ */
|
|
202
|
+
icon: /* @__PURE__ */ y(re, {}),
|
|
200
203
|
pressed: V,
|
|
201
|
-
onToggle: V ? K :
|
|
202
|
-
}] : [], q =
|
|
204
|
+
onToggle: V ? K : be
|
|
205
|
+
}] : [], q = b?.screen, Ee = _(() => ({
|
|
203
206
|
...q,
|
|
204
|
-
createButton:
|
|
207
|
+
createButton: S.createButton,
|
|
205
208
|
addBill: {
|
|
206
209
|
...q?.addBill,
|
|
207
|
-
heading:
|
|
210
|
+
heading: S.nonEmptyHeading
|
|
208
211
|
},
|
|
209
212
|
...V ? {
|
|
210
|
-
columnAddedOn:
|
|
211
|
-
columnAmountDue:
|
|
213
|
+
columnAddedOn: S.duplicateColumnCreated,
|
|
214
|
+
columnAmountDue: S.duplicateColumnAmount
|
|
212
215
|
} : {}
|
|
213
216
|
}), [
|
|
214
217
|
V,
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
S.duplicateColumnCreated,
|
|
219
|
+
S.duplicateColumnAmount,
|
|
217
220
|
q,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
]),
|
|
221
|
+
S.createButton,
|
|
222
|
+
S.nonEmptyHeading
|
|
223
|
+
]), De = _(() => ({
|
|
221
224
|
...z.filterBarProps,
|
|
222
|
-
labels:
|
|
223
|
-
}), [z.filterBarProps,
|
|
224
|
-
|
|
225
|
+
labels: S.filterBar
|
|
226
|
+
}), [z.filterBarProps, S.filterBar]), J = () => {
|
|
227
|
+
C(!1), de?.();
|
|
225
228
|
}, Y = (e) => {
|
|
226
|
-
|
|
229
|
+
C(!1), fe?.(e);
|
|
227
230
|
}, X = R ? {
|
|
228
231
|
emailAddress: R,
|
|
229
232
|
onCopyEmail: async () => {
|
|
230
|
-
R && (await
|
|
233
|
+
R && (await d(R) ? e.success(S.emailCopiedToast) : e.error(S.emailCopyFailedToast));
|
|
231
234
|
}
|
|
232
235
|
} : {
|
|
233
236
|
emailAddress: void 0,
|
|
234
237
|
onCopyEmail: void 0
|
|
235
|
-
}, { showVendorBills: Z } = z, Q =
|
|
236
|
-
|
|
237
|
-
}, [Z]), $ =
|
|
238
|
-
return
|
|
238
|
+
}, { showVendorBills: Z } = z, Q = h((e) => {
|
|
239
|
+
T(u.AllBills), Z(e);
|
|
240
|
+
}, [Z]), $ = h(() => C(!0), []);
|
|
241
|
+
return g(ge, () => ({
|
|
239
242
|
showVendorBills: Q,
|
|
240
243
|
openAddBill: $
|
|
241
|
-
}), [Q, $]), /* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
244
|
+
}), [Q, $]), /* @__PURE__ */ ce(se, { children: [
|
|
245
|
+
/* @__PURE__ */ y(o, {
|
|
243
246
|
rows: z.rows,
|
|
244
|
-
isLoading: z.isLoading || !
|
|
247
|
+
isLoading: z.isLoading || !E,
|
|
245
248
|
isError: z.isError,
|
|
246
249
|
onRetry: z.onRetry,
|
|
247
250
|
sorting: z.sorting,
|
|
@@ -253,48 +256,49 @@ function g({ labels: g, onOpenBill: _, onEnterManually: v, onFilesSelected: y, m
|
|
|
253
256
|
hasPrevPage: z.hasPrevPage,
|
|
254
257
|
onNextPage: z.onNextPage,
|
|
255
258
|
onPrevPage: z.onPrevPage,
|
|
256
|
-
filterTabs:
|
|
259
|
+
filterTabs: ye,
|
|
257
260
|
selectedFilterTabId: z.selectedFilterTabId,
|
|
258
|
-
onFilterTabChange:
|
|
261
|
+
onFilterTabChange: xe,
|
|
259
262
|
searchValue: z.searchValue,
|
|
260
263
|
onSearchChange: z.onSearchChange,
|
|
261
|
-
filters:
|
|
264
|
+
filters: De,
|
|
262
265
|
visibleColumns: z.visibleColumns,
|
|
263
266
|
keepsColumnOrder: z.keepsColumnOrder,
|
|
264
267
|
isSortable: z.isSortable,
|
|
265
268
|
pageInfo: z.pageInfo,
|
|
266
|
-
cellTestIds:
|
|
269
|
+
cellTestIds: f,
|
|
267
270
|
isSearchActive: z.isSearchActive,
|
|
268
271
|
showAddPanelWhenEmpty: z.showAddPanelWhenEmpty,
|
|
269
|
-
emptyState: V ?
|
|
270
|
-
onCreateClick:
|
|
271
|
-
headerActionContainer:
|
|
272
|
-
onEnterManually:
|
|
273
|
-
onFilesSelected:
|
|
274
|
-
maxFiles:
|
|
272
|
+
emptyState: V ? S.duplicatesEmptyState : S.queueEmptyStates[z.selectedFilterTabId],
|
|
273
|
+
onCreateClick: j ? () => C(!0) : void 0,
|
|
274
|
+
headerActionContainer: pe,
|
|
275
|
+
onEnterManually: j ? J : void 0,
|
|
276
|
+
onFilesSelected: j ? Y : void 0,
|
|
277
|
+
maxFiles: x,
|
|
275
278
|
...X,
|
|
276
279
|
summaryCards: U ? {
|
|
277
280
|
view: U,
|
|
278
281
|
labels: {
|
|
279
|
-
group:
|
|
280
|
-
loading:
|
|
281
|
-
info:
|
|
282
|
-
}
|
|
282
|
+
group: S.summaryCards.group,
|
|
283
|
+
loading: S.summaryCards.loading,
|
|
284
|
+
info: S.summaryCards.info
|
|
285
|
+
},
|
|
286
|
+
onSelect: z.onSummaryCardSelect
|
|
283
287
|
} : void 0,
|
|
284
288
|
attentionStrip: {
|
|
285
|
-
label:
|
|
286
|
-
items:
|
|
289
|
+
label: S.attentionStripLabel,
|
|
290
|
+
items: Te
|
|
287
291
|
},
|
|
288
292
|
attentionView: V ? {
|
|
289
|
-
backLabel:
|
|
290
|
-
backAccessibleLabel:
|
|
291
|
-
title:
|
|
293
|
+
backLabel: S.queues[c.All],
|
|
294
|
+
backAccessibleLabel: S.attentionBackAccessible,
|
|
295
|
+
title: S.duplicatesViewTitle,
|
|
292
296
|
tone: "warning",
|
|
293
297
|
onBack: K
|
|
294
298
|
} : void 0,
|
|
295
|
-
labels:
|
|
299
|
+
labels: Ee
|
|
296
300
|
}),
|
|
297
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ y(r, {
|
|
298
302
|
open: z.cancelConfirmation.open,
|
|
299
303
|
copy: z.cancelConfirmation.copy,
|
|
300
304
|
onConfirm: z.cancelConfirmation.onConfirm,
|
|
@@ -302,7 +306,7 @@ function g({ labels: g, onOpenBill: _, onEnterManually: v, onFilesSelected: y, m
|
|
|
302
306
|
isPending: z.cancelConfirmation.isPending,
|
|
303
307
|
labels: { cancelButton: z.cancelConfirmation.cancelButtonLabel }
|
|
304
308
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ y(r, {
|
|
306
310
|
open: z.keepConfirmation.open,
|
|
307
311
|
copy: z.keepConfirmation.copy,
|
|
308
312
|
onConfirm: z.keepConfirmation.onConfirm,
|
|
@@ -310,19 +314,19 @@ function g({ labels: g, onOpenBill: _, onEnterManually: v, onFilesSelected: y, m
|
|
|
310
314
|
isPending: z.keepConfirmation.isPending,
|
|
311
315
|
labels: { cancelButton: z.keepConfirmation.cancelButtonLabel }
|
|
312
316
|
}),
|
|
313
|
-
|
|
314
|
-
open:
|
|
315
|
-
onOpenChange:
|
|
317
|
+
j ? /* @__PURE__ */ y(i, {
|
|
318
|
+
open: _e,
|
|
319
|
+
onOpenChange: C,
|
|
316
320
|
onFilesSelected: Y,
|
|
317
|
-
maxFiles:
|
|
321
|
+
maxFiles: x,
|
|
318
322
|
onEnterManually: J,
|
|
319
323
|
...X,
|
|
320
|
-
dialogLabels:
|
|
324
|
+
dialogLabels: b?.addBillDialog?.dialog,
|
|
321
325
|
labels: {
|
|
322
|
-
...
|
|
323
|
-
heading: z.hasAnyBills ?
|
|
326
|
+
...b?.addBillDialog?.panel,
|
|
327
|
+
heading: z.hasAnyBills ? S.nonEmptyHeading : S.emptyHeading
|
|
324
328
|
}
|
|
325
329
|
}) : null
|
|
326
330
|
] });
|
|
327
331
|
}
|
|
328
|
-
export {
|
|
332
|
+
export { b as BillsList, b as default };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { DATA_TABLE_LABELS_EN as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import "../../../../shared/document-status/ui/dist/index.js";
|
|
4
|
-
import { ADD_BILL_PANEL_LABELS_EN as n } from "./index2.js";
|
|
2
|
+
import { ADD_BILL_PANEL_LABELS_EN as t } from "./index2.js";
|
|
5
3
|
import "./index4.js";
|
|
6
|
-
import { MISSING_VALUE_LABELS_EN as
|
|
4
|
+
import { MISSING_VALUE_LABELS_EN as n } from "./index15.js";
|
|
7
5
|
import "./index17.js";
|
|
8
|
-
import { NO_VALUE_LABELS_EN as
|
|
6
|
+
import { NO_VALUE_LABELS_EN as r } from "./index18.js";
|
|
9
7
|
import "./index20.js";
|
|
8
|
+
import { BILL_STATUS_BADGE_LABELS_EN as i } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
9
|
+
import "../../../../shared/document-status/ui/dist/index.js";
|
|
10
10
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js
|
|
11
11
|
var a = ".pdf,.png,.jpg,.jpeg,.doc,.docx", o = {
|
|
12
|
-
...
|
|
12
|
+
...t,
|
|
13
13
|
dropzone: {
|
|
14
|
-
...
|
|
14
|
+
...t.dropzone,
|
|
15
15
|
fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
|
|
16
16
|
}
|
|
17
17
|
}, s = {
|
|
@@ -42,14 +42,14 @@ var a = ".pdf,.png,.jpg,.jpeg,.doc,.docx", o = {
|
|
|
42
42
|
errorDescription: "Something went wrong. Try again.",
|
|
43
43
|
errorRetry: "Retry",
|
|
44
44
|
tableDropzoneTitle: "Drop your files here",
|
|
45
|
-
statusBadge:
|
|
45
|
+
statusBadge: i,
|
|
46
46
|
addBill: o,
|
|
47
47
|
sortableHeader: {
|
|
48
48
|
sortedAscending: e.sortedAscending,
|
|
49
49
|
sortedDescending: e.sortedDescending,
|
|
50
50
|
notSorted: e.notSorted
|
|
51
51
|
},
|
|
52
|
-
missingValue:
|
|
53
|
-
noValue:
|
|
52
|
+
missingValue: n,
|
|
53
|
+
noValue: r
|
|
54
54
|
};
|
|
55
55
|
export { s as BILLS_SCREEN_LABELS_EN, a as BILLS_SCREEN_UPLOAD_ACCEPT };
|