@tesouro/embedded-components-react 0.7.40 → 0.7.41
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 +2 -2
- package/dist/index.d.ts +16 -14
- package/dist/lib/CounterpartsWidget.d.ts +16 -14
- package/dist/lib/CounterpartsWidgetPublic.d.ts +16 -14
- package/dist/lib/CustomersWidget.d.ts +16 -14
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/constants.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +143 -95
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +60 -48
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +137 -135
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +106 -108
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -2,123 +2,171 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
5
|
+
import { toast as e, useFilterPanel as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import "../../../../../shared/ui/dist/index.js";
|
|
7
|
-
import { buildAnalyticsMap as
|
|
8
|
-
import { useCounterpartsQuery as
|
|
9
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
7
|
+
import { buildAnalyticsMap as n, buildCounterpartRows as r } from "../../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
8
|
+
import { useCounterpartsQuery as i } from "../../../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
9
|
+
import { useCounterpartAddressesForRowsQuery as a } from "../../../../../shared/counterpart-management/data-access/dist/index5.js";
|
|
10
10
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
11
|
-
import { PAYABLES_BILLED_STATUSES as
|
|
12
|
-
import { usePayablesAnalyticsByCounterpartQuery as
|
|
11
|
+
import { PAGE_SIZE_OPTIONS as o, PAYABLES_BILLED_STATUSES as ee, PAYABLES_OWED_STATUSES as te, RECEIVABLES_BILLED_STATUSES as s, RECEIVABLES_DUE_STATUSES as c, TYPE_FILTER_OPTIONS as l } from "./constants.js";
|
|
12
|
+
import { usePayablesAnalyticsByCounterpartQuery as u, useReceivablesAnalyticsByCounterpartQuery as d } from "../../../../data-access/dist/index2.js";
|
|
13
13
|
import "../../../../data-access/dist/index.js";
|
|
14
|
-
import { useCallback as
|
|
14
|
+
import { useCallback as f, useEffect as p, useMemo as m, useState as h } from "react";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
var g = {
|
|
17
|
+
Type: "type",
|
|
18
|
+
Search: "search"
|
|
19
|
+
};
|
|
20
|
+
function _({ isCustomer: _, enabled: v = !0, pageSizeOptions: y = o, messages: b, labels: x }) {
|
|
21
|
+
let [S, C] = h([]), [w, ne] = h(y[0] ?? 10), [re, T] = h(), [E, D] = h(""), [O, k] = h(""), [A, j] = h([]), M = A.length === 1 ? A[0] : void 0, N = t();
|
|
22
|
+
p(() => {
|
|
19
23
|
let e = setTimeout(() => {
|
|
20
|
-
|
|
24
|
+
k(E), T(void 0);
|
|
21
25
|
}, 400);
|
|
22
26
|
return () => clearTimeout(e);
|
|
23
|
-
}, [
|
|
24
|
-
let
|
|
25
|
-
sort:
|
|
26
|
-
order:
|
|
27
|
-
limit:
|
|
28
|
-
pagination_token:
|
|
29
|
-
counterpart_name__icontains:
|
|
30
|
-
type:
|
|
31
|
-
...
|
|
32
|
-
enabled:
|
|
33
|
-
}),
|
|
34
|
-
counterpartIds:
|
|
35
|
-
enabled:
|
|
36
|
-
}),
|
|
27
|
+
}, [E]);
|
|
28
|
+
let P = S[0], F = i({
|
|
29
|
+
sort: P ? "counterpart_name" : void 0,
|
|
30
|
+
order: P ? P.desc ? "desc" : "asc" : void 0,
|
|
31
|
+
limit: w,
|
|
32
|
+
pagination_token: re,
|
|
33
|
+
counterpart_name__icontains: O || void 0,
|
|
34
|
+
type: M,
|
|
35
|
+
..._ ? { is_customer: !0 } : { is_vendor: !0 },
|
|
36
|
+
enabled: v
|
|
37
|
+
}), I = m(() => F.data?.data.map((e) => e.id) ?? [], [F.data?.data]), L = I.length > 0, R = a({
|
|
38
|
+
counterpartIds: I,
|
|
39
|
+
enabled: v && L
|
|
40
|
+
}), z = d({
|
|
37
41
|
type: "invoice",
|
|
38
42
|
statusIn: [...s],
|
|
39
|
-
counterpartIdIn:
|
|
40
|
-
enabled:
|
|
41
|
-
}),
|
|
43
|
+
counterpartIdIn: I,
|
|
44
|
+
enabled: v && _ && L
|
|
45
|
+
}), B = d({
|
|
42
46
|
metric: "amount_due",
|
|
43
47
|
type: "invoice",
|
|
44
48
|
statusIn: [...c],
|
|
45
|
-
counterpartIdIn:
|
|
46
|
-
enabled:
|
|
47
|
-
}),
|
|
48
|
-
statusIn: [...
|
|
49
|
-
counterpartIdIn:
|
|
50
|
-
enabled:
|
|
51
|
-
}),
|
|
49
|
+
counterpartIdIn: I,
|
|
50
|
+
enabled: v && _ && L
|
|
51
|
+
}), V = u({
|
|
52
|
+
statusIn: [...ee],
|
|
53
|
+
counterpartIdIn: I,
|
|
54
|
+
enabled: v && !_ && L
|
|
55
|
+
}), H = u({
|
|
52
56
|
metric: "amount_due",
|
|
53
|
-
statusIn: [...
|
|
54
|
-
counterpartIdIn:
|
|
55
|
-
enabled:
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
]),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
]),
|
|
65
|
-
|
|
66
|
-
(
|
|
57
|
+
statusIn: [...te],
|
|
58
|
+
counterpartIdIn: I,
|
|
59
|
+
enabled: v && !_ && L
|
|
60
|
+
}), U = m(() => _ ? z.data ? n(z.data.data) : void 0 : V.data ? n(V.data.data) : void 0, [
|
|
61
|
+
_,
|
|
62
|
+
z.data,
|
|
63
|
+
V.data
|
|
64
|
+
]), W = m(() => _ ? B.data ? n(B.data.data) : void 0 : H.data ? n(H.data.data) : void 0, [
|
|
65
|
+
_,
|
|
66
|
+
B.data,
|
|
67
|
+
H.data
|
|
68
|
+
]), G = m(() => new Map(I.map((e, t) => [e, R[t]?.data?.data?.[0]])), [I, R]), K = _ ? z.isError : V.isError, q = _ ? B.isError : H.isError;
|
|
69
|
+
p(() => {
|
|
70
|
+
(K || q) && e.error(b.amountsUnavailable);
|
|
67
71
|
}, [
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
K,
|
|
73
|
+
q,
|
|
74
|
+
b.amountsUnavailable
|
|
71
75
|
]);
|
|
72
|
-
let
|
|
73
|
-
counterparts:
|
|
74
|
-
addresses:
|
|
75
|
-
billedAmounts:
|
|
76
|
-
dueOrOwedAmounts:
|
|
77
|
-
isBilledAmountLoading:
|
|
78
|
-
isDueOrOwedAmountLoading:
|
|
79
|
-
isBilledAmountError:
|
|
80
|
-
isDueOrOwedAmountError:
|
|
76
|
+
let J = m(() => r({
|
|
77
|
+
counterparts: F.data?.data ?? [],
|
|
78
|
+
addresses: G,
|
|
79
|
+
billedAmounts: U,
|
|
80
|
+
dueOrOwedAmounts: W,
|
|
81
|
+
isBilledAmountLoading: U === void 0,
|
|
82
|
+
isDueOrOwedAmountLoading: W === void 0,
|
|
83
|
+
isBilledAmountError: K,
|
|
84
|
+
isDueOrOwedAmountError: q
|
|
81
85
|
}).map((e) => {
|
|
82
|
-
let t = (
|
|
86
|
+
let t = (U?.get(e.id) ?? 0) - (W?.get(e.id) ?? 0);
|
|
83
87
|
return {
|
|
84
88
|
...e,
|
|
89
|
+
name: e.name || x.unnamedCounterpart,
|
|
85
90
|
isReceivedOrPaidPositive: t > 0
|
|
86
91
|
};
|
|
87
92
|
}), [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
F.data?.data,
|
|
94
|
+
G,
|
|
95
|
+
U,
|
|
96
|
+
W,
|
|
97
|
+
K,
|
|
98
|
+
q,
|
|
99
|
+
x.unnamedCounterpart
|
|
100
|
+
]), Y = m(() => l.map((e) => ({
|
|
101
|
+
value: e,
|
|
102
|
+
label: e === "individual" ? x.entityFilterIndividual : x.entityFilterOrganization
|
|
103
|
+
})), [x.entityFilterIndividual, x.entityFilterOrganization]), X = m(() => {
|
|
104
|
+
let e = [], t = Y.find((e) => e.value === M)?.label;
|
|
105
|
+
return t && e.push({
|
|
106
|
+
key: g.Type,
|
|
107
|
+
label: x.typeChip(t)
|
|
108
|
+
}), O && e.push({
|
|
109
|
+
key: g.Search,
|
|
110
|
+
label: x.searchChip(O)
|
|
111
|
+
}), e;
|
|
112
|
+
}, [
|
|
113
|
+
O,
|
|
114
|
+
M,
|
|
115
|
+
x,
|
|
116
|
+
Y
|
|
117
|
+
]), ie = X.length > 0, ae = f((e) => {
|
|
118
|
+
C((t) => typeof e == "function" ? e(t) : e), T(void 0);
|
|
119
|
+
}, []), oe = f((e) => {
|
|
120
|
+
ne(e), T(void 0);
|
|
121
|
+
}, []), se = f(() => T(F.data?.next_pagination_token ?? void 0), [F.data?.next_pagination_token]), ce = f(() => T(F.data?.prev_pagination_token ?? void 0), [F.data?.prev_pagination_token]), Z = f(() => {
|
|
122
|
+
F.refetch();
|
|
123
|
+
}, [F]), Q = f((e) => {
|
|
124
|
+
j(e), T(void 0);
|
|
125
|
+
}, []), $ = f(() => {
|
|
126
|
+
D(""), k(""), T(void 0);
|
|
127
|
+
}, []), le = f((e) => {
|
|
128
|
+
if (e === g.Search) {
|
|
129
|
+
$();
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
Q([]);
|
|
133
|
+
}, [$, Q]), ue = f(() => {
|
|
134
|
+
$(), j([]);
|
|
135
|
+
}, [$]), de = {
|
|
136
|
+
searchValue: E,
|
|
137
|
+
onSearchChange: D,
|
|
138
|
+
isPopoverOpen: N.isMenuOpen || !!N.activePanelId,
|
|
139
|
+
isMenuOpen: N.isMenuOpen,
|
|
140
|
+
isTypePanelOpen: N.activePanelId === g.Type,
|
|
141
|
+
onMenuToggle: N.toggleMenu,
|
|
142
|
+
onPopoverClose: () => {
|
|
143
|
+
N.closeMenu(), N.closePanel();
|
|
144
|
+
},
|
|
145
|
+
onTypeFieldSelect: () => N.openPanel(g.Type),
|
|
146
|
+
activeFilterCount: X.length,
|
|
147
|
+
chips: X,
|
|
148
|
+
onRemoveChip: le,
|
|
149
|
+
onClearAll: ue,
|
|
150
|
+
typeOptions: Y,
|
|
151
|
+
selectedTypes: A,
|
|
152
|
+
onTypeChange: Q
|
|
153
|
+
};
|
|
103
154
|
return {
|
|
104
|
-
rows:
|
|
105
|
-
isLoading:
|
|
106
|
-
isError:
|
|
107
|
-
sorting:
|
|
108
|
-
onSortingChange:
|
|
109
|
-
pageSize:
|
|
110
|
-
onPageSizeChange:
|
|
111
|
-
hasNextPage: !!
|
|
112
|
-
hasPrevPage: !!
|
|
113
|
-
onNextPage:
|
|
114
|
-
onPrevPage:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
onEntityFilterChange: Z,
|
|
119
|
-
isFiltering: G,
|
|
120
|
-
onRetry: X
|
|
155
|
+
rows: J,
|
|
156
|
+
isLoading: F.isLoading,
|
|
157
|
+
isError: F.isError,
|
|
158
|
+
sorting: S,
|
|
159
|
+
onSortingChange: ae,
|
|
160
|
+
pageSize: w,
|
|
161
|
+
onPageSizeChange: oe,
|
|
162
|
+
hasNextPage: !!F.data?.next_pagination_token,
|
|
163
|
+
hasPrevPage: !!F.data?.prev_pagination_token,
|
|
164
|
+
onNextPage: se,
|
|
165
|
+
onPrevPage: ce,
|
|
166
|
+
filters: de,
|
|
167
|
+
isFiltering: ie,
|
|
168
|
+
onRetry: Z
|
|
121
169
|
};
|
|
122
170
|
}
|
|
123
171
|
//#endregion
|
|
124
|
-
export {
|
|
172
|
+
export { g as CounterpartsFilterChipKey, _ as useCounterpartsTable };
|
|
@@ -9,59 +9,71 @@ import { COUNTERPART_MESSAGE_LABELS_EN as i } from "../../../../../shared/counte
|
|
|
9
9
|
import { hasSelectedText as a } from "../../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
10
10
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
11
11
|
import { getCounterpartPermissions as o } from "./permissions.js";
|
|
12
|
-
import {
|
|
12
|
+
import { COUNTERPARTS_SCREEN_LABELS_EN as s, COUNTERPART_DETAILS_SHEET_LABELS_EN as c } from "../../../../ui/dist/index2.js";
|
|
13
13
|
import "../../../../ui/dist/index.js";
|
|
14
|
-
import { useCounterpartsTable as
|
|
15
|
-
import { useCounterpartDetailsActions as
|
|
16
|
-
import { useCounterpartDetailsSheetView as
|
|
17
|
-
import { useCallback as
|
|
14
|
+
import { useCounterpartsTable as l } from "./useCounterpartsTable.js";
|
|
15
|
+
import { useCounterpartDetailsActions as u } from "./useCounterpartDetailsActions.js";
|
|
16
|
+
import { useCounterpartDetailsSheetView as d } from "./useCounterpartDetailsSheetView.js";
|
|
17
|
+
import { useCallback as f, useEffect as p, useMemo as m, useState as h } from "react";
|
|
18
18
|
//#region ../../libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js
|
|
19
|
-
function
|
|
20
|
-
let { initResponse:
|
|
19
|
+
function g({ counterpartType: g, pageSizeOptions: _, detailsLabels: v, messageLabels: y, screenLabels: b }) {
|
|
20
|
+
let { initResponse: x, widgetToken: S } = t(), C = r(), w = n(), T = m(() => ({
|
|
21
21
|
...i,
|
|
22
|
-
...
|
|
23
|
-
}), [
|
|
22
|
+
...y
|
|
23
|
+
}), [y]), E = m(() => ({
|
|
24
|
+
...c,
|
|
25
|
+
...v
|
|
26
|
+
}), [v]), D = m(() => ({
|
|
24
27
|
...s,
|
|
25
|
-
...
|
|
26
|
-
}), [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}),
|
|
28
|
+
...b
|
|
29
|
+
}), [b]), O = g === "customer", k = O ? {
|
|
30
|
+
title: D.customersErrorTitle,
|
|
31
|
+
description: D.customersErrorDescription
|
|
32
|
+
} : {
|
|
33
|
+
title: D.vendorsErrorTitle,
|
|
34
|
+
description: D.vendorsErrorDescription
|
|
35
|
+
}, A = m(() => e(), []), j = m(() => o(x?.scopes), [x?.scopes]), M = !(!S || x || w) || C && !x, [N, P] = h(), [F, I] = h("none"), L = j.canRead ? N : void 0;
|
|
36
|
+
p(() => {
|
|
37
|
+
j.canRead || (P(void 0), I("none"));
|
|
38
|
+
}, [j.canRead]);
|
|
39
|
+
let R = l({
|
|
40
|
+
isCustomer: O,
|
|
41
|
+
enabled: j.canRead,
|
|
42
|
+
pageSizeOptions: _,
|
|
43
|
+
messages: T,
|
|
44
|
+
labels: D
|
|
45
|
+
}), { details: z, detailsSheetView: B } = d({
|
|
46
|
+
selectedId: L,
|
|
47
|
+
isCustomer: O,
|
|
48
|
+
enabled: j.canRead,
|
|
49
|
+
detailsText: E
|
|
50
|
+
}), V = u({
|
|
51
|
+
counterpartType: g,
|
|
52
|
+
selectedId: L,
|
|
53
|
+
setSelectedId: P,
|
|
54
|
+
view: F,
|
|
55
|
+
setView: I,
|
|
56
|
+
details: z,
|
|
57
|
+
messages: T
|
|
58
|
+
}), { closeAddress: H } = V;
|
|
48
59
|
return {
|
|
49
|
-
stateOptions:
|
|
50
|
-
selectedId:
|
|
51
|
-
view:
|
|
52
|
-
table:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
stateOptions: A,
|
|
61
|
+
selectedId: L,
|
|
62
|
+
view: F,
|
|
63
|
+
table: R,
|
|
64
|
+
listError: k,
|
|
65
|
+
details: z,
|
|
66
|
+
detailsSheetView: B,
|
|
67
|
+
permissions: j,
|
|
68
|
+
isPermissionLoading: M,
|
|
69
|
+
actions: V,
|
|
70
|
+
handleRowClick: f((e) => {
|
|
71
|
+
j.canRead && !a() && (H(), P(e.id), I("none"));
|
|
72
|
+
}, [j.canRead, H]),
|
|
73
|
+
closeDetails: f(() => {
|
|
74
|
+
H(), P(void 0);
|
|
75
|
+
}, [H])
|
|
64
76
|
};
|
|
65
77
|
}
|
|
66
78
|
//#endregion
|
|
67
|
-
export {
|
|
79
|
+
export { g as useCounterpartsWidget };
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js
CHANGED
|
@@ -4,7 +4,7 @@ var e = {
|
|
|
4
4
|
populated: "Six customers with their billed, received and due totals. Search by name, filter by type, sort by name, or click a row to open the customer. Create new adds a customer, and the sheet edits, deletes and adds an address; changes last until you switch scenario.",
|
|
5
5
|
empty: "The organization has no customers yet. Press Create new, fill in a name and email, and save: the customer opens in its sheet and joins the list.",
|
|
6
6
|
loading: "The customers read is held open, so the table skeleton stays on screen.",
|
|
7
|
-
error: "The customers read fails with a 500, so the table shows Failed to load.
|
|
7
|
+
error: "The customers read fails with a 500, so the table shows Failed to load Customer. Reload re-issues the read, which fails again.",
|
|
8
8
|
"control-hidden": "The token has counterpart:read:org but not counterpart:write:org. The list and the customer sheet render, but Create new, Edit, the delete menu and Add address are absent.",
|
|
9
9
|
paginated: "Fourteen customers at ten a page. The next and previous arrows follow the pagination token; the rows-per-page menu starts again from page one."
|
|
10
10
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CounterpartsScreen as
|
|
3
|
-
import { CounterpartDetailsSheet as
|
|
4
|
-
export { e as COUNTERPART_DETAILS_SHEET_LABELS_EN,
|
|
1
|
+
import { COUNTERPARTS_SCREEN_LABELS_EN as e, COUNTERPART_DETAILS_SHEET_LABELS_EN as t } from "./index2.js";
|
|
2
|
+
import { CounterpartsScreen as n } from "./index3.js";
|
|
3
|
+
import { CounterpartDetailsSheet as r } from "./index7.js";
|
|
4
|
+
export { e as COUNTERPARTS_SCREEN_LABELS_EN, t as COUNTERPART_DETAILS_SHEET_LABELS_EN, r as CounterpartDetailsSheet, n as CounterpartsScreen };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { FILTER_MENU_BUTTON_LABELS_EN as e, FILTER_TAG_LABELS_EN as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js
|
|
2
|
-
var
|
|
3
|
-
createButton: "
|
|
3
|
+
var n = {
|
|
4
|
+
createButton: "Add customer",
|
|
4
5
|
vendorsCreateButton: "Add vendor",
|
|
5
6
|
columnName: "Name",
|
|
6
7
|
sortByName: "Sort by name",
|
|
@@ -9,13 +10,16 @@ var e = {
|
|
|
9
10
|
columnAmountDue: "Amount due",
|
|
10
11
|
columnTotalPaidToDate: "Total paid to date",
|
|
11
12
|
columnBalanceDue: "Balance due",
|
|
12
|
-
columnActions: "Actions",
|
|
13
13
|
openRow: (e) => `View details — ${e}`,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
unnamedCounterpart: "Unspecified",
|
|
15
|
+
searchPlaceholder: "Search by name",
|
|
16
|
+
searchLabel: "Search by name",
|
|
17
|
+
filtersButton: e.filters,
|
|
18
|
+
filterFieldType: "Type",
|
|
19
|
+
filterChipRemove: t.remove,
|
|
20
|
+
typeChip: (e) => `Type: ${e}`,
|
|
21
|
+
searchChip: (e) => `Search: ${e}`,
|
|
22
|
+
clearAllFilters: "Clear all",
|
|
19
23
|
entityFilterOrganization: "Companies",
|
|
20
24
|
entityFilterIndividual: "Individuals",
|
|
21
25
|
customersEmptyTitle: "No customers yet",
|
|
@@ -27,12 +31,15 @@ var e = {
|
|
|
27
31
|
customersFilterEmptyTitle: "No customers found",
|
|
28
32
|
vendorsFilterEmptyTitle: "No vendors found",
|
|
29
33
|
filterEmptyDescription: "Try adjusting your search or filter criteria.",
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
filterEmptyAction: "Clear filters",
|
|
35
|
+
customersErrorTitle: "Failed to load Customer",
|
|
36
|
+
customersErrorDescription: "There was an error loading customer.",
|
|
37
|
+
vendorsErrorTitle: "Failed to load Vendor",
|
|
38
|
+
vendorsErrorDescription: "There was an error loading vendor.",
|
|
39
|
+
errorRetry: "Reload",
|
|
40
|
+
accessRestrictedTitle: "Access Restricted",
|
|
41
|
+
accessRestrictedDescription: "You don’t have permissions to view this page. Contact your system administrator for details."
|
|
42
|
+
}, r = {
|
|
36
43
|
hiddenDescription: "Counterpart details",
|
|
37
44
|
loadingTitle: "Loading...",
|
|
38
45
|
notFoundCustomerTitle: "Customer not found",
|
|
@@ -140,4 +147,4 @@ var e = {
|
|
|
140
147
|
saveButton: "Save"
|
|
141
148
|
};
|
|
142
149
|
//#endregion
|
|
143
|
-
export {
|
|
150
|
+
export { n as COUNTERPARTS_SCREEN_LABELS_EN, r as COUNTERPART_DETAILS_SHEET_LABELS_EN };
|