@tesouro/embedded-components-react 0.11.9 → 0.11.10
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 +12 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +99 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +3 -4
- 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 +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +110 -100
- 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/index4.js +45 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +259 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +190 -165
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -1
- 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 +151 -143
- 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/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 +19 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +77 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +1 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupCollapse.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1637 -1507
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -28
|
@@ -10,196 +10,218 @@ 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 { BILL_STATUS_BADGE_LABELS_EN as re } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
14
|
+
import "../../../../shared/document-status/ui/dist/index.js";
|
|
13
15
|
import { BillDecisionDialog as r } from "../../../ui/dist/index4.js";
|
|
14
16
|
import "../../../ui/dist/index.js";
|
|
15
|
-
import { AddBillDialog as
|
|
16
|
-
import { BillsScreen as
|
|
17
|
+
import { AddBillDialog as ie } from "../../ui/dist/index6.js";
|
|
18
|
+
import { BillsScreen as ae } from "../../ui/dist/index20.js";
|
|
17
19
|
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 { useCallback as
|
|
28
|
-
import { Fragment as
|
|
20
|
+
import { BILL_QUEUE_ORDER as i, DUPLICATES_TAB_ID as a } from "./index5.js";
|
|
21
|
+
import { BILLS_TAB_LABELS_EN as o } from "./index8.js";
|
|
22
|
+
import { BillDuplicateView as s, useBillsTable as c } from "./index16.js";
|
|
23
|
+
import { useDuplicateBillsCount as l } from "./index2.js";
|
|
24
|
+
import { formatBillQueueBadge as u } from "./index3.js";
|
|
25
|
+
import { copyTextToClipboard as oe } from "./index6.js";
|
|
26
|
+
import { resolveDuplicateWarning as se } from "./index7.js";
|
|
27
|
+
import { billsTableCellTestIds as ce } from "./index9.js";
|
|
28
|
+
import { useBillQueueCounts as le } from "./index10.js";
|
|
29
|
+
import { useCallback as d, useImperativeHandle as ue, useMemo as f, useState as p } from "react";
|
|
30
|
+
import { Fragment as m, jsx as h, jsxs as de } from "react/jsx-runtime";
|
|
29
31
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js
|
|
30
|
-
var
|
|
31
|
-
function
|
|
32
|
-
let
|
|
33
|
-
...
|
|
34
|
-
...
|
|
32
|
+
var fe = () => void 0;
|
|
33
|
+
function g({ labels: g, onOpenBill: _, onEnterManually: v, onFilesSelected: y, maxFiles: b, onSettingsClick: pe, ref: me }) {
|
|
34
|
+
let x = f(() => ({
|
|
35
|
+
...o,
|
|
36
|
+
...g,
|
|
35
37
|
queues: {
|
|
36
|
-
...
|
|
37
|
-
...
|
|
38
|
+
...o.queues,
|
|
39
|
+
...g?.queues
|
|
38
40
|
},
|
|
39
41
|
scheduledRelativeDay: {
|
|
40
|
-
...
|
|
41
|
-
...
|
|
42
|
+
...o.scheduledRelativeDay,
|
|
43
|
+
...g?.scheduledRelativeDay
|
|
42
44
|
},
|
|
43
45
|
filters: {
|
|
44
|
-
...
|
|
45
|
-
...
|
|
46
|
+
...o.filters,
|
|
47
|
+
...g?.filters,
|
|
46
48
|
presets: {
|
|
47
|
-
...
|
|
48
|
-
...
|
|
49
|
+
...o.filters.presets,
|
|
50
|
+
...g?.filters?.presets
|
|
49
51
|
},
|
|
50
52
|
statuses: {
|
|
51
|
-
...
|
|
52
|
-
...
|
|
53
|
+
...o.filters.statuses,
|
|
54
|
+
...g?.filters?.statuses
|
|
53
55
|
},
|
|
54
56
|
dateFieldNames: {
|
|
55
|
-
...
|
|
56
|
-
...
|
|
57
|
+
...o.filters.dateFieldNames,
|
|
58
|
+
...g?.filters?.dateFieldNames
|
|
57
59
|
}
|
|
58
60
|
},
|
|
59
61
|
filterBar: {
|
|
60
|
-
...
|
|
61
|
-
...
|
|
62
|
+
...o.filterBar,
|
|
63
|
+
...g?.filterBar
|
|
62
64
|
},
|
|
63
65
|
duplicatesEmptyState: {
|
|
64
|
-
...
|
|
65
|
-
...
|
|
66
|
+
...o.duplicatesEmptyState,
|
|
67
|
+
...g?.duplicatesEmptyState
|
|
66
68
|
},
|
|
67
|
-
queueEmptyStates:
|
|
69
|
+
queueEmptyStates: i.reduce((e, t) => ({
|
|
68
70
|
...e,
|
|
69
71
|
[t]: {
|
|
70
|
-
...
|
|
71
|
-
...
|
|
72
|
+
...o.queueEmptyStates[t],
|
|
73
|
+
...g?.queueEmptyStates?.[t]
|
|
72
74
|
}
|
|
73
75
|
}), {})
|
|
74
|
-
}), [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
76
|
+
}), [g]), [he, S] = p(!1), [C, w] = p(s.AllBills), { initResponse: T } = te(), E = ne(), D = t(T?.scopes, [n.PayableReadOrg]), O = t(T?.scopes, [n.PayableWriteOrg]), k = !T || D, A = !T || O, j = T && !E ? t(T.scopes, [n.PayablePayOrg]) : void 0, M = t(T?.scopes, [n.CounterpartReadOrg]), N = g?.screen?.statusBadge, P = f(() => ({
|
|
77
|
+
...re,
|
|
78
|
+
...N
|
|
79
|
+
}), [N]), F = f(() => ({
|
|
80
|
+
menuTrigger: x.duplicateMenuTrigger,
|
|
81
|
+
notDuplicateAction: x.duplicateNotDuplicateAction,
|
|
82
|
+
notDuplicateConfirmTitle: x.duplicateNotDuplicateConfirmTitle,
|
|
83
|
+
notDuplicateConfirmDescription: x.duplicateNotDuplicateConfirmDescription,
|
|
84
|
+
notDuplicateConfirmButton: x.duplicateNotDuplicateConfirmButton,
|
|
85
|
+
notDuplicateConfirmBackButton: x.duplicateNotDuplicateConfirmBackButton,
|
|
86
|
+
deleteAction: x.duplicateDeleteAction,
|
|
87
|
+
deleteConfirmTitle: x.duplicateDeleteConfirmTitle,
|
|
88
|
+
deleteConfirmDescription: x.duplicateDeleteConfirmDescription,
|
|
89
|
+
deleteConfirmButton: x.duplicateDeleteConfirmButton,
|
|
90
|
+
deletedToast: x.duplicateDeletedToast,
|
|
91
|
+
confirmAction: x.duplicateConfirmAction,
|
|
92
|
+
confirmDuplicateTitle: x.duplicateConfirmDuplicateTitle,
|
|
93
|
+
confirmDuplicateDescription: x.duplicateConfirmDuplicateDescription,
|
|
94
|
+
confirmDuplicateButton: x.duplicateConfirmDuplicateButton,
|
|
95
|
+
confirmedToast: x.duplicateConfirmedToast,
|
|
96
|
+
cancelAction: x.duplicateCancelAction,
|
|
97
|
+
cancelConfirmTitle: x.duplicateCancelConfirmTitle,
|
|
98
|
+
cancelConfirmDescription: x.duplicateCancelConfirmDescription,
|
|
99
|
+
cancelConfirmButton: x.duplicateCancelConfirmButton,
|
|
100
|
+
cancelConfirmBackButton: x.duplicateCancelConfirmBackButton,
|
|
101
|
+
dismissedToast: x.duplicateDismissedToast,
|
|
102
|
+
cancelledToast: x.duplicateCancelledToast,
|
|
103
|
+
actionFailedToast: x.duplicateActionFailedToast,
|
|
104
|
+
groupHeader: x.duplicateGroupHeader,
|
|
105
|
+
groupInvoice: x.duplicateGroupInvoice,
|
|
106
|
+
showMore: x.duplicateShowMore,
|
|
107
|
+
showLess: x.duplicateShowLess,
|
|
108
|
+
statusSummary: x.duplicateStatusSummary,
|
|
109
|
+
statusLabels: P,
|
|
110
|
+
pageInfo: x.duplicatePageInfo
|
|
101
111
|
}), [
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
112
|
+
x.duplicateMenuTrigger,
|
|
113
|
+
x.duplicateNotDuplicateAction,
|
|
114
|
+
x.duplicateNotDuplicateConfirmTitle,
|
|
115
|
+
x.duplicateNotDuplicateConfirmDescription,
|
|
116
|
+
x.duplicateNotDuplicateConfirmButton,
|
|
117
|
+
x.duplicateNotDuplicateConfirmBackButton,
|
|
118
|
+
x.duplicateDeleteAction,
|
|
119
|
+
x.duplicateDeleteConfirmTitle,
|
|
120
|
+
x.duplicateDeleteConfirmDescription,
|
|
121
|
+
x.duplicateDeleteConfirmButton,
|
|
122
|
+
x.duplicateDeletedToast,
|
|
123
|
+
x.duplicateConfirmAction,
|
|
124
|
+
x.duplicateConfirmDuplicateTitle,
|
|
125
|
+
x.duplicateConfirmDuplicateDescription,
|
|
126
|
+
x.duplicateConfirmDuplicateButton,
|
|
127
|
+
x.duplicateConfirmedToast,
|
|
128
|
+
x.duplicateCancelAction,
|
|
129
|
+
x.duplicateCancelConfirmTitle,
|
|
130
|
+
x.duplicateCancelConfirmDescription,
|
|
131
|
+
x.duplicateCancelConfirmButton,
|
|
132
|
+
x.duplicateCancelConfirmBackButton,
|
|
133
|
+
x.duplicateDismissedToast,
|
|
134
|
+
x.duplicateCancelledToast,
|
|
135
|
+
x.duplicateActionFailedToast,
|
|
136
|
+
x.duplicateGroupHeader,
|
|
137
|
+
x.duplicateGroupInvoice,
|
|
138
|
+
x.duplicateShowMore,
|
|
139
|
+
x.duplicateShowLess,
|
|
140
|
+
x.duplicateStatusSummary,
|
|
141
|
+
P,
|
|
142
|
+
x.duplicatePageInfo
|
|
143
|
+
]), I = t(T?.scopes, [n.MailboxReadOrg]), { mailboxAddress: L } = ee({
|
|
129
144
|
relatedObjectType: "payable",
|
|
130
|
-
enabled: I && !
|
|
131
|
-
}), R = I ? L : void 0, z =
|
|
132
|
-
enabled:
|
|
133
|
-
canPay:
|
|
134
|
-
canReadVendors:
|
|
135
|
-
isVendorFilterPaused:
|
|
136
|
-
filterLabels:
|
|
137
|
-
onOpenBill:
|
|
138
|
-
duplicateRowNote:
|
|
139
|
-
attachmentLabel:
|
|
145
|
+
enabled: I && !E
|
|
146
|
+
}), R = I ? L : void 0, z = c({
|
|
147
|
+
enabled: k,
|
|
148
|
+
canPay: j,
|
|
149
|
+
canReadVendors: M,
|
|
150
|
+
isVendorFilterPaused: E,
|
|
151
|
+
filterLabels: x.filters,
|
|
152
|
+
onOpenBill: _ ?? fe,
|
|
153
|
+
duplicateRowNote: x.duplicateRowNote,
|
|
154
|
+
attachmentLabel: x.attachmentIndicator,
|
|
140
155
|
duplicateGroupLabels: F,
|
|
141
|
-
canManageDuplicates:
|
|
142
|
-
duplicateView:
|
|
143
|
-
scheduledRelativeDayLabels:
|
|
144
|
-
}), B =
|
|
145
|
-
enabled:
|
|
146
|
-
canPay:
|
|
147
|
-
}), U = !B.isError && B.count > 0,
|
|
156
|
+
canManageDuplicates: A,
|
|
157
|
+
duplicateView: C,
|
|
158
|
+
scheduledRelativeDayLabels: x.scheduledRelativeDay
|
|
159
|
+
}), B = l({ enabled: k }), V = C === s.PossibleDuplicates, ge = se(B, x), H = le({
|
|
160
|
+
enabled: k,
|
|
161
|
+
canPay: j
|
|
162
|
+
}), U = !B.isError && B.count > 0, _e = f(() => [...i.map((e) => ({
|
|
148
163
|
id: e,
|
|
149
|
-
label:
|
|
150
|
-
badge:
|
|
164
|
+
label: x.queues[e],
|
|
165
|
+
badge: u(H[e])
|
|
151
166
|
})), {
|
|
152
|
-
id:
|
|
153
|
-
label:
|
|
154
|
-
badge: B.isError ? void 0 :
|
|
167
|
+
id: a,
|
|
168
|
+
label: x.duplicatesTab,
|
|
169
|
+
badge: B.isError ? void 0 : u(B.count),
|
|
155
170
|
tone: U ? "warning" : void 0,
|
|
156
171
|
startsGroup: !0
|
|
157
172
|
}], [
|
|
158
|
-
|
|
159
|
-
|
|
173
|
+
x.queues,
|
|
174
|
+
x.duplicatesTab,
|
|
160
175
|
H,
|
|
161
176
|
B.isError,
|
|
162
177
|
B.count,
|
|
163
178
|
U
|
|
164
|
-
]), { clearQueryConstraints: W, onFilterTabChange: G } = z, K =
|
|
165
|
-
W(),
|
|
166
|
-
}, [W]),
|
|
167
|
-
e === "duplicates" ? K() : (
|
|
168
|
-
}, [G, K]),
|
|
169
|
-
...
|
|
170
|
-
createButton:
|
|
171
|
-
settingsButton:
|
|
179
|
+
]), { clearQueryConstraints: W, onFilterTabChange: G } = z, K = d(() => {
|
|
180
|
+
W(), w(s.PossibleDuplicates);
|
|
181
|
+
}, [W]), q = d((e) => {
|
|
182
|
+
e === "duplicates" ? K() : (w(s.AllBills), G(e));
|
|
183
|
+
}, [G, K]), J = g?.screen, ve = f(() => ({
|
|
184
|
+
...J,
|
|
185
|
+
createButton: x.createButton,
|
|
186
|
+
settingsButton: x.settingsButton,
|
|
172
187
|
addBill: {
|
|
173
|
-
...
|
|
174
|
-
heading:
|
|
175
|
-
}
|
|
188
|
+
...J?.addBill,
|
|
189
|
+
heading: x.nonEmptyHeading
|
|
190
|
+
},
|
|
191
|
+
...V ? {
|
|
192
|
+
columnAddedOn: x.duplicateColumnCreated,
|
|
193
|
+
columnAmountDue: x.duplicateColumnAmount
|
|
194
|
+
} : {}
|
|
176
195
|
}), [
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
196
|
+
V,
|
|
197
|
+
x.duplicateColumnCreated,
|
|
198
|
+
x.duplicateColumnAmount,
|
|
199
|
+
J,
|
|
200
|
+
x.createButton,
|
|
201
|
+
x.settingsButton,
|
|
202
|
+
x.nonEmptyHeading
|
|
203
|
+
]), ye = f(() => ({
|
|
182
204
|
...z.filterBarProps,
|
|
183
|
-
labels:
|
|
184
|
-
}), [z.filterBarProps,
|
|
185
|
-
|
|
205
|
+
labels: x.filterBar
|
|
206
|
+
}), [z.filterBarProps, x.filterBar]), Y = () => {
|
|
207
|
+
S(!1), v?.();
|
|
186
208
|
}, X = (e) => {
|
|
187
|
-
|
|
209
|
+
S(!1), y?.(e);
|
|
188
210
|
}, Z = R ? {
|
|
189
211
|
emailAddress: R,
|
|
190
212
|
onCopyEmail: async () => {
|
|
191
|
-
R && (await
|
|
213
|
+
R && (await oe(R) ? e.success(x.emailCopiedToast) : e.error(x.emailCopyFailedToast));
|
|
192
214
|
}
|
|
193
215
|
} : {
|
|
194
216
|
emailAddress: void 0,
|
|
195
217
|
onCopyEmail: void 0
|
|
196
|
-
}, { showVendorBills: Q } = z, $ =
|
|
197
|
-
|
|
218
|
+
}, { showVendorBills: Q } = z, $ = d((e) => {
|
|
219
|
+
w(s.AllBills), Q(e);
|
|
198
220
|
}, [Q]);
|
|
199
|
-
return
|
|
200
|
-
/* @__PURE__ */
|
|
221
|
+
return ue(me, () => ({ showVendorBills: $ }), [$]), /* @__PURE__ */ de(m, { children: [
|
|
222
|
+
/* @__PURE__ */ h(ae, {
|
|
201
223
|
rows: z.rows,
|
|
202
|
-
isLoading: z.isLoading || !
|
|
224
|
+
isLoading: z.isLoading || !T,
|
|
203
225
|
isError: z.isError,
|
|
204
226
|
onRetry: z.onRetry,
|
|
205
227
|
sorting: z.sorting,
|
|
@@ -211,31 +233,34 @@ function y({ labels: y, onOpenBill: b, onEnterManually: x, onFilesSelected: le,
|
|
|
211
233
|
hasPrevPage: z.hasPrevPage,
|
|
212
234
|
onNextPage: z.onNextPage,
|
|
213
235
|
onPrevPage: z.onPrevPage,
|
|
214
|
-
filterTabs:
|
|
215
|
-
selectedFilterTabId: V ?
|
|
216
|
-
onFilterTabChange:
|
|
236
|
+
filterTabs: _e,
|
|
237
|
+
selectedFilterTabId: V ? a : z.selectedFilterTabId,
|
|
238
|
+
onFilterTabChange: q,
|
|
217
239
|
searchValue: z.searchValue,
|
|
218
240
|
onSearchChange: z.onSearchChange,
|
|
219
|
-
filters:
|
|
241
|
+
filters: ye,
|
|
220
242
|
visibleColumns: z.visibleColumns,
|
|
221
|
-
|
|
243
|
+
keepsColumnOrder: z.keepsColumnOrder,
|
|
244
|
+
isSortable: z.isSortable,
|
|
245
|
+
pageInfo: z.pageInfo,
|
|
246
|
+
cellTestIds: ce,
|
|
222
247
|
isSearchActive: z.isSearchActive,
|
|
223
248
|
showAddPanelWhenEmpty: z.showAddPanelWhenEmpty,
|
|
224
|
-
emptyState: V ?
|
|
225
|
-
onCreateClick:
|
|
226
|
-
onSettingsClick:
|
|
227
|
-
onEnterManually:
|
|
228
|
-
onFilesSelected:
|
|
229
|
-
maxFiles:
|
|
249
|
+
emptyState: V ? x.duplicatesEmptyState : x.queueEmptyStates[z.selectedFilterTabId],
|
|
250
|
+
onCreateClick: A ? () => S(!0) : void 0,
|
|
251
|
+
onSettingsClick: pe,
|
|
252
|
+
onEnterManually: A ? Y : void 0,
|
|
253
|
+
onFilesSelected: A ? X : void 0,
|
|
254
|
+
maxFiles: b,
|
|
230
255
|
...Z,
|
|
231
|
-
duplicateWarning:
|
|
256
|
+
duplicateWarning: ge,
|
|
232
257
|
duplicateReviewControl: V ? void 0 : {
|
|
233
|
-
reviewLabel:
|
|
258
|
+
reviewLabel: x.duplicateReviewButton,
|
|
234
259
|
onReview: K
|
|
235
260
|
},
|
|
236
|
-
labels:
|
|
261
|
+
labels: ve
|
|
237
262
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ h(r, {
|
|
239
264
|
open: z.cancelConfirmation.open,
|
|
240
265
|
copy: z.cancelConfirmation.copy,
|
|
241
266
|
onConfirm: z.cancelConfirmation.onConfirm,
|
|
@@ -243,7 +268,7 @@ function y({ labels: y, onOpenBill: b, onEnterManually: x, onFilesSelected: le,
|
|
|
243
268
|
isPending: z.cancelConfirmation.isPending,
|
|
244
269
|
labels: { cancelButton: z.cancelConfirmation.cancelButtonLabel }
|
|
245
270
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ h(r, {
|
|
247
272
|
open: z.keepConfirmation.open,
|
|
248
273
|
copy: z.keepConfirmation.copy,
|
|
249
274
|
onConfirm: z.keepConfirmation.onConfirm,
|
|
@@ -251,19 +276,19 @@ function y({ labels: y, onOpenBill: b, onEnterManually: x, onFilesSelected: le,
|
|
|
251
276
|
isPending: z.keepConfirmation.isPending,
|
|
252
277
|
labels: { cancelButton: z.keepConfirmation.cancelButtonLabel }
|
|
253
278
|
}),
|
|
254
|
-
|
|
255
|
-
open:
|
|
256
|
-
onOpenChange:
|
|
279
|
+
A ? /* @__PURE__ */ h(ie, {
|
|
280
|
+
open: he,
|
|
281
|
+
onOpenChange: S,
|
|
257
282
|
onFilesSelected: X,
|
|
258
|
-
maxFiles:
|
|
283
|
+
maxFiles: b,
|
|
259
284
|
onEnterManually: Y,
|
|
260
285
|
...Z,
|
|
261
|
-
dialogLabels:
|
|
286
|
+
dialogLabels: g?.addBillDialog?.dialog,
|
|
262
287
|
labels: {
|
|
263
|
-
...
|
|
264
|
-
heading: z.hasAnyBills ?
|
|
288
|
+
...g?.addBillDialog?.panel,
|
|
289
|
+
heading: z.hasAnyBills ? x.nonEmptyHeading : x.emptyHeading
|
|
265
290
|
}
|
|
266
291
|
}) : null
|
|
267
292
|
] });
|
|
268
293
|
}
|
|
269
|
-
export {
|
|
294
|
+
export { g as BillsList, g as default };
|
|
@@ -63,7 +63,13 @@ 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
|
+
duplicateGroupInvoice: (e) => `Invoice ${e}`,
|
|
67
|
+
duplicateColumnCreated: "Created",
|
|
68
|
+
duplicateShowMore: (e) => `Show ${e} more`,
|
|
69
|
+
duplicateShowLess: "Show less",
|
|
70
|
+
duplicateStatusSummary: (e) => e.join(", "),
|
|
71
|
+
duplicateColumnAmount: "Amount",
|
|
72
|
+
duplicatePageInfo: ({ billCount: e, invoiceCount: t }) => `${e} ${e === 1 ? "bill" : "bills"} across ${t} ${t === 1 ? "invoice" : "invoices"}`,
|
|
67
73
|
attachmentIndicator: "Has an attachment",
|
|
68
74
|
scheduledRelativeDay: {
|
|
69
75
|
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/index21.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";
|
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/index16.js";
|
|
2
2
|
import "../../../ui/dist/index.js";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js
|
|
4
4
|
var t = {
|