@tesouro/embedded-components-react 0.7.17 → 0.7.18
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 +14 -14
- package/dist/index.css +3 -0
- package/dist/index.d.ts +50 -7
- package/dist/lib/CounterpartsWidget.d.ts +49 -6
- package/dist/lib/CounterpartsWidgetPublic.d.ts +49 -6
- package/dist/lib/CustomersWidget.d.ts +49 -6
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +18 -13
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +146 -137
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsSheetView.js +56 -55
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +108 -77
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +181 -25
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +50 -7
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +127 -596
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index5.js +66 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +210 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +520 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +141 -125
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -22,49 +22,53 @@ import { useReceivableForm as de } from "./useReceivableForm.js";
|
|
|
22
22
|
import { useReceivablesTable as fe } from "./useReceivablesTable.js";
|
|
23
23
|
import { useCallback as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
24
24
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js
|
|
25
|
-
function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankName: me, filterLabels: he, initialCounterpartId: f, initialView: p, messageLabels: m, onReceivableCreated:
|
|
26
|
-
let { initResponse:
|
|
25
|
+
function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankName: me, filterLabels: he, initialCounterpartId: f, initialView: p, messageLabels: m, onReceivableCreated: ge, onReceivableOpened: h, pageSizeOptions: _e, screenLabels: ve }) {
|
|
26
|
+
let { initResponse: g, widgetToken: ye } = r(), be = te(), xe = i(), Se = n(), _ = ee(), v = !!g && !_, y = s(() => se(g?.scopes), [g?.scopes]), Ce = !!g && _, b = !!g && y.canRead, x = !!g && y.canWrite, S = v && y.canRead, C = v && y.canWrite, w = !!xe && !v && !be, T = !v && !w && !!(ye || be), E = s(() => ({
|
|
27
27
|
...oe,
|
|
28
28
|
...m
|
|
29
|
-
}), [m]),
|
|
29
|
+
}), [m]), D = ve?.statusBadge, O = s(() => ({
|
|
30
30
|
...ne,
|
|
31
|
-
...
|
|
32
|
-
}), [
|
|
33
|
-
|
|
34
|
-
let [
|
|
35
|
-
|
|
36
|
-
}, []),
|
|
31
|
+
...D
|
|
32
|
+
}), [D]), [k, A] = l(), [j, M] = l(!1), [N, we] = l(k);
|
|
33
|
+
k && k !== N && we(k);
|
|
34
|
+
let [P, F] = l(!1), [Te, I] = l(), [Ee, L] = l(!1), De = a((e) => {
|
|
35
|
+
L(!0), I(e);
|
|
36
|
+
}, []), Oe = a((e) => {
|
|
37
|
+
L(!1), I(e);
|
|
38
|
+
}, []), R = e(g?.scopes, [t.CounterpartReadOrg]), ke = a(() => I(void 0), []), [z, B] = l(!1), Ae = a(() => B(!0), []), V = a(() => B(!1), []), je = a((e) => {
|
|
39
|
+
A(e), M(!0);
|
|
40
|
+
}, []), H = le({ messages: E }), U = H.open, Me = a((e, t, n) => {
|
|
37
41
|
let r = ie(n);
|
|
38
|
-
r.openDetails && (
|
|
42
|
+
r.openDetails && (A(e), M(!0)), r.actionsModal && U({
|
|
39
43
|
action: n.mode,
|
|
40
44
|
receivableId: e,
|
|
41
45
|
documentType: t,
|
|
42
46
|
counterpartId: n.counterpartId,
|
|
43
47
|
inlineItems: n.inlineItems,
|
|
44
48
|
showEmailStep: r.actionsModal.showEmailStep
|
|
45
|
-
}),
|
|
46
|
-
}, [
|
|
49
|
+
}), ge?.(e, t);
|
|
50
|
+
}, [ge, U]), W = fe({
|
|
47
51
|
initialCounterpartId: p === "create" ? void 0 : f,
|
|
48
|
-
messages:
|
|
49
|
-
statusLabels:
|
|
52
|
+
messages: E,
|
|
53
|
+
statusLabels: O,
|
|
50
54
|
filterLabels: he,
|
|
51
|
-
pageSizeOptions:
|
|
52
|
-
enabled:
|
|
53
|
-
visible:
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
}, [
|
|
57
|
-
selectedReceivableId:
|
|
58
|
-
enabled:
|
|
59
|
-
canWrite:
|
|
60
|
-
messages:
|
|
61
|
-
statusLabels:
|
|
55
|
+
pageSizeOptions: _e,
|
|
56
|
+
enabled: S,
|
|
57
|
+
visible: b
|
|
58
|
+
}), Ne = a((e) => {
|
|
59
|
+
A(e), M(!0), h?.(e, "invoice");
|
|
60
|
+
}, [h]), G = ue({
|
|
61
|
+
selectedReceivableId: k,
|
|
62
|
+
enabled: j && S,
|
|
63
|
+
canWrite: x,
|
|
64
|
+
messages: E,
|
|
65
|
+
statusLabels: O,
|
|
62
66
|
auditHistoryLabels: u,
|
|
63
|
-
onOpenReceivable:
|
|
64
|
-
onOpenCustomer:
|
|
65
|
-
}),
|
|
66
|
-
let r = n.mode === "issue", i = r &&
|
|
67
|
-
(i || n.inlineItems.length !== 0) &&
|
|
67
|
+
onOpenReceivable: Ne,
|
|
68
|
+
onOpenCustomer: R ? De : void 0
|
|
69
|
+
}), K = c("edit"), Pe = a((e, t, n) => {
|
|
70
|
+
let r = n.mode === "issue", i = r && K.current !== "issue" && n.hasCustomerEmail;
|
|
71
|
+
(i || n.inlineItems.length !== 0) && U({
|
|
68
72
|
action: r || n.mode === "recurrence" ? n.mode : "update",
|
|
69
73
|
receivableId: e,
|
|
70
74
|
documentType: t,
|
|
@@ -72,36 +76,36 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
|
|
|
72
76
|
inlineItems: n.inlineItems,
|
|
73
77
|
showEmailStep: i
|
|
74
78
|
});
|
|
75
|
-
}, [
|
|
76
|
-
messages:
|
|
79
|
+
}, [U]), q = de({
|
|
80
|
+
messages: E,
|
|
77
81
|
counterpartMessageLabels: pe,
|
|
78
82
|
embeddedBankName: me,
|
|
79
|
-
canCreateCustomer:
|
|
80
|
-
onCreated:
|
|
81
|
-
onUpdated:
|
|
82
|
-
}),
|
|
83
|
-
|
|
84
|
-
}, [
|
|
83
|
+
canCreateCustomer: y.canCreateCustomer,
|
|
84
|
+
onCreated: Me,
|
|
85
|
+
onUpdated: Pe
|
|
86
|
+
}), { openCreate: J, openEdit: Y } = q, Fe = a(() => {
|
|
87
|
+
C && J("invoice");
|
|
88
|
+
}, [C, J]), X = c(!1);
|
|
85
89
|
o(() => {
|
|
86
|
-
|
|
90
|
+
X.current || p === "create" && C && (X.current = !0, J("invoice", { customerId: f }));
|
|
87
91
|
}, [
|
|
88
|
-
|
|
89
|
-
J
|
|
92
|
+
C,
|
|
93
|
+
J,
|
|
90
94
|
f,
|
|
91
95
|
p
|
|
92
96
|
]);
|
|
93
|
-
let
|
|
94
|
-
selectedReceivable:
|
|
95
|
-
selectedRecurrence:
|
|
96
|
-
messages:
|
|
97
|
-
onCreated:
|
|
97
|
+
let Z = ce({
|
|
98
|
+
selectedReceivable: G.receivable,
|
|
99
|
+
selectedRecurrence: G.recurrence,
|
|
100
|
+
messages: E,
|
|
101
|
+
onCreated: je,
|
|
98
102
|
onDeleted: (e) => {
|
|
99
|
-
e ===
|
|
103
|
+
e === k && (A(void 0), M(!1));
|
|
100
104
|
},
|
|
101
105
|
onCompleteBeforeIssue: (e, t) => {
|
|
102
|
-
|
|
106
|
+
K.current = t, q.openEdit(e, { highlightForIssue: !0 }), j && F(!0), M(!1);
|
|
103
107
|
},
|
|
104
|
-
onIssuedForSend: (e, t) =>
|
|
108
|
+
onIssuedForSend: (e, t) => U({
|
|
105
109
|
action: "issue",
|
|
106
110
|
receivableId: e,
|
|
107
111
|
documentType: "invoice",
|
|
@@ -109,7 +113,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
|
|
|
109
113
|
inlineItems: [],
|
|
110
114
|
showEmailStep: !0
|
|
111
115
|
}),
|
|
112
|
-
onResend: (e, t) =>
|
|
116
|
+
onResend: (e, t) => U({
|
|
113
117
|
action: "issue",
|
|
114
118
|
receivableId: e,
|
|
115
119
|
documentType: "invoice",
|
|
@@ -120,109 +124,121 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
|
|
|
120
124
|
})
|
|
121
125
|
});
|
|
122
126
|
o(() => {
|
|
123
|
-
|
|
124
|
-
}, [
|
|
125
|
-
|
|
127
|
+
q.open || (K.current = "edit");
|
|
128
|
+
}, [q.open]), o(() => {
|
|
129
|
+
q.open || H.isOpen || !P || (F(!1), M(!0));
|
|
126
130
|
}, [
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
H.isOpen,
|
|
132
|
+
q.open,
|
|
133
|
+
P
|
|
130
134
|
]);
|
|
131
|
-
let
|
|
135
|
+
let Ie = v && !y.canWrite, Le = q.open || q.counterpartView !== "none" || !!Z.actionTarget || Z.payment.isOpen || H.isOpen || z, Re = q.close, ze = q.counterpartForm.close, { closeAction: Be } = Z, Ve = Z.payment.close, He = H.close;
|
|
132
136
|
o(() => {
|
|
133
|
-
|
|
137
|
+
Ie && Le && (Re(), ze(), Be(), Ve(), He(), V());
|
|
134
138
|
}, [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
Be,
|
|
140
|
+
He,
|
|
141
|
+
ze,
|
|
142
|
+
Re,
|
|
143
|
+
V,
|
|
144
|
+
Ve,
|
|
145
|
+
Le,
|
|
146
|
+
Ie
|
|
143
147
|
]);
|
|
144
|
-
let
|
|
145
|
-
re() || (
|
|
146
|
-
}, [
|
|
147
|
-
|
|
148
|
-
}, []),
|
|
149
|
-
|
|
148
|
+
let Ue = a((e) => {
|
|
149
|
+
re() || (A(e.id), M(!0), h?.(e.id, e.type));
|
|
150
|
+
}, [h]), Q = a(() => {
|
|
151
|
+
M(!1), A(void 0), I(void 0);
|
|
152
|
+
}, []), { showCustomer: $ } = W, We = a((e) => {
|
|
153
|
+
Q(), $(e.id);
|
|
154
|
+
}, [Q, $]), Ge = a((e) => {
|
|
155
|
+
C && (Q(), J("invoice", { customerId: e.id }));
|
|
156
|
+
}, [
|
|
157
|
+
C,
|
|
158
|
+
Q,
|
|
159
|
+
J
|
|
160
|
+
]), Ke = a((e, t) => {
|
|
161
|
+
if (C) {
|
|
150
162
|
if (e === "edit") {
|
|
151
|
-
|
|
163
|
+
G.receivable && (K.current = "edit", Y(G.receivable), F(!0), M(!1));
|
|
152
164
|
return;
|
|
153
165
|
}
|
|
154
|
-
|
|
166
|
+
Z.openAction(e, {
|
|
155
167
|
id: t.id,
|
|
156
|
-
title:
|
|
168
|
+
title: G.receivable ? ae(G.receivable, E) : t.title,
|
|
157
169
|
type: t.type
|
|
158
|
-
},
|
|
170
|
+
}, G.receivable ?? null);
|
|
159
171
|
}
|
|
160
172
|
}, [
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
173
|
+
Z,
|
|
174
|
+
C,
|
|
175
|
+
G.receivable,
|
|
176
|
+
Y,
|
|
177
|
+
E
|
|
166
178
|
]);
|
|
167
179
|
return {
|
|
168
|
-
canWrite:
|
|
169
|
-
canEditSettings:
|
|
170
|
-
actionsSuspended:
|
|
171
|
-
isAccessRestricted:
|
|
172
|
-
table:
|
|
173
|
-
...
|
|
180
|
+
canWrite: x,
|
|
181
|
+
canEditSettings: b && y.canEditSettings,
|
|
182
|
+
actionsSuspended: Ce,
|
|
183
|
+
isAccessRestricted: v && !y.canRead,
|
|
184
|
+
table: b ? W : {
|
|
185
|
+
...W,
|
|
174
186
|
rows: [],
|
|
175
187
|
statusCards: void 0,
|
|
176
188
|
isError: !1
|
|
177
189
|
},
|
|
178
|
-
isTableLoading:
|
|
179
|
-
isError:
|
|
180
|
-
onRetry:
|
|
181
|
-
details:
|
|
182
|
-
detailsOpen:
|
|
183
|
-
closeDetails:
|
|
184
|
-
detailsPanelKey:
|
|
185
|
-
customerDetailsId:
|
|
186
|
-
closeCustomerDetails:
|
|
187
|
-
openCustomerDetails:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
isTableLoading: b ? W.isLoading || T && W.rows.length === 0 : T,
|
|
191
|
+
isError: w || b && W.isError,
|
|
192
|
+
onRetry: w ? Se : W.onRetry,
|
|
193
|
+
details: G,
|
|
194
|
+
detailsOpen: j && b,
|
|
195
|
+
closeDetails: Q,
|
|
196
|
+
detailsPanelKey: N,
|
|
197
|
+
customerDetailsId: Te,
|
|
198
|
+
closeCustomerDetails: ke,
|
|
199
|
+
openCustomerDetails: R ? Oe : void 0,
|
|
200
|
+
customerDetailsActions: Ee ? {
|
|
201
|
+
onViewAllDocuments: b ? We : void 0,
|
|
202
|
+
onCreateDocument: x ? Ge : void 0
|
|
203
|
+
} : {},
|
|
204
|
+
canCreateCustomer: y.canCreateCustomer,
|
|
205
|
+
messages: E,
|
|
190
206
|
form: {
|
|
191
|
-
...
|
|
192
|
-
open:
|
|
193
|
-
counterpartView:
|
|
207
|
+
...q,
|
|
208
|
+
open: x && q.open,
|
|
209
|
+
counterpartView: x ? q.counterpartView : "none",
|
|
194
210
|
counterpartForm: {
|
|
195
|
-
...
|
|
196
|
-
submit: d(
|
|
211
|
+
...q.counterpartForm,
|
|
212
|
+
submit: d(C, q.counterpartForm.submit)
|
|
197
213
|
},
|
|
198
|
-
submit: d(
|
|
199
|
-
submitDraft: d(
|
|
200
|
-
submitPrimary: d(
|
|
214
|
+
submit: d(C, q.submit),
|
|
215
|
+
submitDraft: d(C, q.submitDraft),
|
|
216
|
+
submitPrimary: d(C, q.submitPrimary)
|
|
201
217
|
},
|
|
202
|
-
openCreate:
|
|
203
|
-
measureUnitsOpen:
|
|
204
|
-
openMeasureUnits:
|
|
205
|
-
closeMeasureUnits:
|
|
218
|
+
openCreate: Fe,
|
|
219
|
+
measureUnitsOpen: x && z,
|
|
220
|
+
openMeasureUnits: Ae,
|
|
221
|
+
closeMeasureUnits: V,
|
|
206
222
|
actions: {
|
|
207
|
-
...
|
|
208
|
-
actionDialog:
|
|
209
|
-
openAction: d(
|
|
210
|
-
confirmAction: d(
|
|
223
|
+
...Z,
|
|
224
|
+
actionDialog: x ? Z.actionDialog : void 0,
|
|
225
|
+
openAction: d(C, Z.openAction),
|
|
226
|
+
confirmAction: d(C, Z.confirmAction),
|
|
211
227
|
payment: {
|
|
212
|
-
...
|
|
213
|
-
isOpen:
|
|
214
|
-
save: d(
|
|
215
|
-
confirm: d(
|
|
228
|
+
...Z.payment,
|
|
229
|
+
isOpen: x && Z.payment.isOpen,
|
|
230
|
+
save: d(C, Z.payment.save),
|
|
231
|
+
confirm: d(C, Z.payment.confirm)
|
|
216
232
|
}
|
|
217
233
|
},
|
|
218
234
|
actionsModal: {
|
|
219
|
-
...
|
|
220
|
-
isOpen:
|
|
221
|
-
send: d(
|
|
222
|
-
saveItems: d(
|
|
235
|
+
...H,
|
|
236
|
+
isOpen: x && H.isOpen,
|
|
237
|
+
send: d(C, H.send),
|
|
238
|
+
saveItems: d(C, H.saveItems)
|
|
223
239
|
},
|
|
224
|
-
handleRowClick:
|
|
225
|
-
handleDetailsActionClick:
|
|
240
|
+
handleRowClick: Ue,
|
|
241
|
+
handleDetailsActionClick: Ke
|
|
226
242
|
};
|
|
227
243
|
}
|
|
228
244
|
function d(e, t) {
|
|
@@ -5,18 +5,18 @@ import { BankAccountFormSheet as r } from "../../ui/dist/index11.js";
|
|
|
5
5
|
import { ConfirmDeleteDialog as i } from "../../ui/dist/index14.js";
|
|
6
6
|
import "../../ui/dist/index.js";
|
|
7
7
|
import { COUNTERPART_MESSAGE_LABELS_EN as a } from "./lib/labels.js";
|
|
8
|
-
import {
|
|
9
|
-
import { useCounterpartQuery as
|
|
10
|
-
import { useCreateCounterpartBankAccountMutation as
|
|
11
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
8
|
+
import { addressResponseToFormValues as o, buildAnalyticsMap as s, buildCounterpartRows as c, counterpartFormBankAccountToCreatePayload as l, counterpartFormBankAccountToUpdatePayload as u, counterpartToFormValues as d, emptyCounterpartFormValues as f, formatMoney as p, getAchInstructions as m, getCounterpartEmail as h, getCounterpartName as g, getPayableAchInstructions as _, hasCounterpartFormErrors as v, hasSelectedText as y, isAchCompatibleBankAccount as b, resolveCounterpartBankAccountWrite as x, validateAchFormValues as S, validateCounterpartForm as C } from "./lib/helpers.js";
|
|
9
|
+
import { useCounterpartQuery as w, useCounterpartsByIdsQuery as T, useCounterpartsQuery as E, useCreateCounterpartMutation as D } from "../../data-access/dist/index3.js";
|
|
10
|
+
import { useCreateCounterpartBankAccountMutation as O, useUpdateCounterpartBankAccountMutation as k } from "../../data-access/dist/index5.js";
|
|
11
|
+
import { useCounterpartAddressesForRowsQuery as A, useCounterpartAddressesQuery as j } from "../../data-access/dist/index7.js";
|
|
12
12
|
import "../../data-access/dist/index.js";
|
|
13
|
-
import { useAddressForm as
|
|
14
|
-
import { useCounterpartDetails as
|
|
15
|
-
import { usePayableAchInstructions as
|
|
16
|
-
import { useCounterpartForm as
|
|
13
|
+
import { useAddressForm as M } from "./lib/useAddressForm.js";
|
|
14
|
+
import { useCounterpartDetails as N } from "./lib/useCounterpartDetails.js";
|
|
15
|
+
import { usePayableAchInstructions as P } from "./lib/usePayableAchInstructions.js";
|
|
16
|
+
import { useCounterpartForm as F } from "./lib/useCounterpartForm.js";
|
|
17
17
|
import "./lib/useCounterpartSelector.js";
|
|
18
18
|
import "./lib/CounterpartSelector.js";
|
|
19
|
-
import { useDeleteController as
|
|
19
|
+
import { useDeleteController as I } from "./lib/useDeleteController.js";
|
|
20
20
|
import "./lib/useSubEntityForm.js";
|
|
21
|
-
import { useBankAccountForm as
|
|
22
|
-
export { r as BankAccountFormSheet, a as COUNTERPART_MESSAGE_LABELS_EN, i as ConfirmDeleteDialog, e as CounterpartFormFields, t as CounterpartFormSheet, o as
|
|
21
|
+
import { useBankAccountForm as L } from "./lib/subEntityForms.js";
|
|
22
|
+
export { r as BankAccountFormSheet, a as COUNTERPART_MESSAGE_LABELS_EN, i as ConfirmDeleteDialog, e as CounterpartFormFields, t as CounterpartFormSheet, o as addressResponseToFormValues, s as buildAnalyticsMap, c as buildCounterpartRows, l as counterpartFormBankAccountToCreatePayload, u as counterpartFormBankAccountToUpdatePayload, d as counterpartToFormValues, f as emptyCounterpartFormValues, p as formatMoney, m as getAchInstructions, h as getCounterpartEmail, g as getCounterpartName, _ as getPayableAchInstructions, v as hasCounterpartFormErrors, y as hasSelectedText, b as isAchCompatibleBankAccount, x as resolveCounterpartBankAccountWrite, M as useAddressForm, L as useBankAccountForm, A as useCounterpartAddressesForRowsQuery, j as useCounterpartAddressesQuery, N as useCounterpartDetails, F as useCounterpartForm, w as useCounterpartQuery, T as useCounterpartsByIdsQuery, E as useCounterpartsQuery, O as useCreateCounterpartBankAccountMutation, D as useCreateCounterpartMutation, I as useDeleteController, n as useFocusFirstInvalidField, P as usePayableAchInstructions, k as useUpdateCounterpartBankAccountMutation, S as validateAchFormValues, C as validateCounterpartForm };
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ACH_FIELD_GROUP_LABELS_EN as e
|
|
1
|
+
import { ACH_FIELD_GROUP_LABELS_EN as e } from "./index2.js";
|
|
2
2
|
import "./index3.js";
|
|
3
|
-
import { AchFieldGroup as
|
|
4
|
-
import {
|
|
3
|
+
import { AchFieldGroup as t } from "./index5.js";
|
|
4
|
+
import { EMPTY_ADDRESS_FORM_VALUES as n } from "./index6.js";
|
|
5
5
|
import "./index7.js";
|
|
6
|
-
import { CounterpartFormFields as
|
|
6
|
+
import { CounterpartFormFields as r, CounterpartFormSheet as i, countErrors as a, useFocusFirstInvalidField as o } from "./index9.js";
|
|
7
7
|
import "./index10.js";
|
|
8
|
-
import { BankAccountFormSheet as
|
|
8
|
+
import { BankAccountFormSheet as s } from "./index11.js";
|
|
9
9
|
import "./index12.js";
|
|
10
10
|
import "./index13.js";
|
|
11
|
-
import { ConfirmDeleteDialog as
|
|
11
|
+
import { ConfirmDeleteDialog as c } from "./index14.js";
|
|
12
12
|
import "./index15.js";
|
|
13
|
-
export { e as ACH_FIELD_GROUP_LABELS_EN, t as
|
|
13
|
+
export { e as ACH_FIELD_GROUP_LABELS_EN, t as AchFieldGroup, s as BankAccountFormSheet, c as ConfirmDeleteDialog, r as CounterpartFormFields, i as CounterpartFormSheet, n as EMPTY_ADDRESS_FORM_VALUES, a as countErrors, o as useFocusFirstInvalidField };
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js
CHANGED
|
@@ -86,15 +86,8 @@ var n = {
|
|
|
86
86
|
saveButton: "Save",
|
|
87
87
|
fieldMarkers: e
|
|
88
88
|
}, s = {
|
|
89
|
-
title: "Edit address",
|
|
90
|
-
cancelButton: "Cancel",
|
|
91
|
-
saveButton: "Save",
|
|
92
|
-
address: r,
|
|
93
|
-
fieldMarkers: e,
|
|
94
|
-
requiredFieldsLegend: t
|
|
95
|
-
}, c = {
|
|
96
89
|
confirmButton: "Delete",
|
|
97
90
|
cancelButton: "Cancel"
|
|
98
91
|
};
|
|
99
92
|
//#endregion
|
|
100
|
-
export { i as ACH_FIELD_GROUP_LABELS_EN, r as ADDRESS_FIELD_GROUP_LABELS_EN,
|
|
93
|
+
export { i as ACH_FIELD_GROUP_LABELS_EN, r as ADDRESS_FIELD_GROUP_LABELS_EN, o as BANK_ACCOUNT_FORM_SHEET_LABELS_EN, s as CONFIRM_DELETE_DIALOG_LABELS_EN, a as COUNTERPART_FORM_SHEET_LABELS_EN, n as COUNTERPART_TYPE_CHOOSER_LABELS_EN };
|
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.7.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.7.18", n = "cbb0c0df9af2d67668ca779bb0e8231c25877c41", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|