@tesouro/embedded-components-react 0.7.70 → 0.7.73
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 +15 -12
- package/dist/index.css +24 -6
- package/dist/index.d.ts +76 -8
- package/dist/lib/LinkedAccountsWidget.d.ts +9 -0
- package/dist/lib/ProductsWidget.d.ts +12 -6
- package/dist/lib/ReceivablesWidget.d.ts +1 -5
- package/dist/lib/TransfersWidget.d.ts +55 -2
- package/dist/lib/WidgetSuite.d.ts +63 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +199 -182
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/constants.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductsTable.js +112 -51
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductsWidget.js +80 -56
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +170 -135
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index5.js +49 -150
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index6.js +152 -24
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index7.js +28 -0
- 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/product-catalog/feature/dist/index.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/ProductSelector.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/helpers.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/useProductForm.js +70 -52
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index2.js +19 -8
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index3.js +171 -218
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index4.js +52 -180
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index5.js +188 -46
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +47 -124
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index7.js +128 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +99 -108
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/testIds.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +135 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +140 -153
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferDetailSheet.js +111 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +181 -126
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/TransfersSection.js +16 -8
- package/dist/packages/shared-ui-shadcn/dist/index.js +328 -327
- package/package.json +1 -1
|
@@ -2,64 +2,125 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useFilterPanel as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { buildProductRows as t } from "../../../../../shared/product-catalog/feature/dist/lib/helpers.js";
|
|
7
|
+
import { useProductsQuery as n } from "../../../../../shared/product-catalog/data-access/dist/index2.js";
|
|
7
8
|
import "../../../../../shared/product-catalog/feature/dist/index.js";
|
|
8
|
-
import {
|
|
9
|
+
import { ProductsFilterKey as r, TYPE_FILTER_OPTIONS as i } from "./constants.js";
|
|
10
|
+
import { useCallback as a, useEffect as o, useMemo as s, useState as c } from "react";
|
|
9
11
|
//#region ../../libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductsTable.js
|
|
10
|
-
function
|
|
11
|
-
let [
|
|
12
|
-
|
|
12
|
+
function l({ unitNamesById: l, unitOptions: u, labels: d, enabled: f = !0 }) {
|
|
13
|
+
let [p, m] = c([]), [h, g] = c(10), [_, v] = c(), [y, b] = c(""), [x, S] = c(""), [C, w] = c([]), [T, E] = c("all"), D = e(), O = C.length === 1 ? C[0] : void 0;
|
|
14
|
+
T !== "all" && !l[T] && (E("all"), v(void 0));
|
|
15
|
+
let k = T === "all" ? void 0 : T;
|
|
16
|
+
o(() => {
|
|
17
|
+
if (y === x) return;
|
|
13
18
|
let e = setTimeout(() => {
|
|
14
|
-
|
|
19
|
+
S(y), v(void 0);
|
|
15
20
|
}, 400);
|
|
16
21
|
return () => clearTimeout(e);
|
|
17
|
-
}, [
|
|
18
|
-
let
|
|
19
|
-
...
|
|
20
|
-
sort:
|
|
21
|
-
order:
|
|
22
|
+
}, [y, x]);
|
|
23
|
+
let A = p[0]?.id === "name" ? "name" : void 0, j = p[0] ? p[0].desc ? "desc" : "asc" : void 0, M = n({
|
|
24
|
+
...A ? {
|
|
25
|
+
sort: A,
|
|
26
|
+
order: j
|
|
22
27
|
} : {},
|
|
23
|
-
limit:
|
|
24
|
-
pagination_token:
|
|
25
|
-
name__icontains:
|
|
26
|
-
type:
|
|
27
|
-
measure_unit_id:
|
|
28
|
-
enabled:
|
|
29
|
-
}),
|
|
30
|
-
products:
|
|
31
|
-
unitNamesById:
|
|
32
|
-
}), [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
limit: h,
|
|
29
|
+
pagination_token: _,
|
|
30
|
+
name__icontains: x || void 0,
|
|
31
|
+
type: O,
|
|
32
|
+
measure_unit_id: k,
|
|
33
|
+
enabled: f
|
|
34
|
+
}), N = s(() => t({
|
|
35
|
+
products: M.data?.data ?? [],
|
|
36
|
+
unitNamesById: l
|
|
37
|
+
}), [M.data, l]), P = s(() => i.map((e) => ({
|
|
38
|
+
value: e,
|
|
39
|
+
label: e === "product" ? d.typeFilterProduct : d.typeFilterService
|
|
40
|
+
})), [d.typeFilterProduct, d.typeFilterService]), F = s(() => [{
|
|
41
|
+
value: "all",
|
|
42
|
+
label: d.unitFilterAll
|
|
43
|
+
}, ...u], [d.unitFilterAll, u]), I = s(() => {
|
|
44
|
+
let e = [], t = P.find((e) => e.value === O)?.label;
|
|
45
|
+
return t && e.push({
|
|
46
|
+
key: r.Type,
|
|
47
|
+
label: d.typeChip(t)
|
|
48
|
+
}), k && e.push({
|
|
49
|
+
key: r.Unit,
|
|
50
|
+
label: d.unitChip(l[k])
|
|
51
|
+
}), x && e.push({
|
|
52
|
+
key: r.Search,
|
|
53
|
+
label: d.searchChip(x)
|
|
54
|
+
}), e;
|
|
55
|
+
}, [
|
|
56
|
+
x,
|
|
57
|
+
O,
|
|
58
|
+
k,
|
|
59
|
+
d,
|
|
60
|
+
P,
|
|
61
|
+
l
|
|
62
|
+
]), L = I.length > 0, R = a((e) => {
|
|
63
|
+
let t = typeof e == "function" ? e(p) : e;
|
|
64
|
+
m(t), v(void 0);
|
|
65
|
+
}, [p]), z = a((e) => {
|
|
66
|
+
g(e), v(void 0);
|
|
67
|
+
}, []), B = a(() => v(M.data?.next_pagination_token ?? void 0), [M.data?.next_pagination_token]), V = a(() => v(M.data?.prev_pagination_token ?? void 0), [M.data?.prev_pagination_token]), H = a(() => {
|
|
68
|
+
M.refetch();
|
|
69
|
+
}, [M]), U = a((e) => {
|
|
70
|
+
w(e), v(void 0);
|
|
71
|
+
}, []), W = a((e) => {
|
|
72
|
+
E(e), v(void 0);
|
|
73
|
+
}, []), G = a(() => {
|
|
74
|
+
b(""), S(""), v(void 0);
|
|
75
|
+
}, []), K = a((e) => {
|
|
76
|
+
e === r.Search ? G() : e === r.Unit ? W("all") : U([]);
|
|
77
|
+
}, [
|
|
78
|
+
G,
|
|
79
|
+
U,
|
|
80
|
+
W
|
|
81
|
+
]), q = a(() => {
|
|
82
|
+
G(), w([]), E("all");
|
|
83
|
+
}, [G]), J = {
|
|
84
|
+
searchValue: y,
|
|
85
|
+
onSearchChange: b,
|
|
86
|
+
isPopoverOpen: D.isMenuOpen || !!D.activePanelId,
|
|
87
|
+
isMenuOpen: D.isMenuOpen,
|
|
88
|
+
isPanelOpen: !!D.activePanelId,
|
|
89
|
+
isTypePanelOpen: D.activePanelId === r.Type,
|
|
90
|
+
isUnitPanelOpen: D.activePanelId === r.Unit,
|
|
91
|
+
onMenuToggle: D.toggleMenu,
|
|
92
|
+
onPopoverClose: () => {
|
|
93
|
+
D.closeMenu(), D.closePanel();
|
|
94
|
+
},
|
|
95
|
+
onTypeFieldSelect: () => D.openPanel(r.Type),
|
|
96
|
+
onUnitFieldSelect: () => D.openPanel(r.Unit),
|
|
97
|
+
activeFilterCount: I.length,
|
|
98
|
+
chips: I,
|
|
99
|
+
onRemoveChip: K,
|
|
100
|
+
onClearAll: q,
|
|
101
|
+
typeOptions: P,
|
|
102
|
+
selectedTypes: C,
|
|
103
|
+
onTypeChange: U,
|
|
104
|
+
unitOptions: F,
|
|
105
|
+
selectedUnit: k ?? "all",
|
|
106
|
+
onUnitChange: W
|
|
107
|
+
};
|
|
42
108
|
return {
|
|
43
|
-
rows:
|
|
44
|
-
isLoading:
|
|
45
|
-
isError:
|
|
46
|
-
sorting:
|
|
47
|
-
onSortingChange:
|
|
48
|
-
pageSize:
|
|
49
|
-
onPageSizeChange:
|
|
50
|
-
hasNextPage: !!
|
|
51
|
-
hasPrevPage: !!
|
|
52
|
-
onNextPage:
|
|
53
|
-
onPrevPage:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
onTypeFilterChange: M(y),
|
|
58
|
-
unitFilter: b,
|
|
59
|
-
onUnitFilterChange: M(x),
|
|
60
|
-
isFiltering: E,
|
|
61
|
-
onRetry: j
|
|
109
|
+
rows: N,
|
|
110
|
+
isLoading: M.isLoading,
|
|
111
|
+
isError: M.isError,
|
|
112
|
+
sorting: p,
|
|
113
|
+
onSortingChange: R,
|
|
114
|
+
pageSize: h,
|
|
115
|
+
onPageSizeChange: z,
|
|
116
|
+
hasNextPage: !!M.data?.next_pagination_token,
|
|
117
|
+
hasPrevPage: !!M.data?.prev_pagination_token,
|
|
118
|
+
onNextPage: B,
|
|
119
|
+
onPrevPage: V,
|
|
120
|
+
filters: J,
|
|
121
|
+
isFiltering: L,
|
|
122
|
+
onRetry: H
|
|
62
123
|
};
|
|
63
124
|
}
|
|
64
125
|
//#endregion
|
|
65
|
-
export {
|
|
126
|
+
export { l as useProductsTable };
|
|
@@ -6,68 +6,92 @@ import { useRefetchWidget as e, useWidgetConfig as t, useWidgetError as n, useWi
|
|
|
6
6
|
import "../../../../../shared/feature/dist/index.js";
|
|
7
7
|
import { PRODUCT_MESSAGE_LABELS_EN as a } from "../../../../../shared/product-catalog/feature/dist/lib/labels.js";
|
|
8
8
|
import { hasSelectedText as o } from "../../../../../shared/product-catalog/feature/dist/lib/helpers.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { PRODUCT_FORM_SHEET_LABELS_EN as s } from "../../../../../shared/product-catalog/ui/dist/index2.js";
|
|
10
|
+
import { useMeasureUnits as c } from "../../../../../shared/product-catalog/feature/dist/lib/useMeasureUnits.js";
|
|
11
|
+
import { useProductForm as l } from "../../../../../shared/product-catalog/feature/dist/lib/useProductForm.js";
|
|
11
12
|
import "../../../../../shared/product-catalog/feature/dist/index.js";
|
|
12
|
-
import { getProductPermissions as
|
|
13
|
-
import { useProductDelete as
|
|
14
|
-
import { useProductDetails as
|
|
15
|
-
import { useProductsTable as
|
|
16
|
-
import {
|
|
13
|
+
import { getProductPermissions as u } from "./permissions.js";
|
|
14
|
+
import { useProductDelete as d } from "./useProductDelete.js";
|
|
15
|
+
import { useProductDetails as f } from "./useProductDetails.js";
|
|
16
|
+
import { useProductsTable as p } from "./useProductsTable.js";
|
|
17
|
+
import { PRODUCTS_SCREEN_LABELS_EN as m } from "../../../../ui/dist/index2.js";
|
|
18
|
+
import "../../../../ui/dist/index.js";
|
|
19
|
+
import { useCallback as h, useMemo as g, useState as _ } from "react";
|
|
17
20
|
//#region ../../libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductsWidget.js
|
|
18
|
-
function
|
|
19
|
-
let
|
|
21
|
+
function v({ messageLabels: v, screenLabels: y, formLabels: b }) {
|
|
22
|
+
let x = g(() => ({
|
|
20
23
|
...a,
|
|
21
|
-
...
|
|
22
|
-
}), [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}), F =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
selectedProductId:
|
|
38
|
-
setSelectedProductId:
|
|
39
|
-
|
|
40
|
-
messages:
|
|
24
|
+
...v
|
|
25
|
+
}), [v]), S = g(() => ({
|
|
26
|
+
...m,
|
|
27
|
+
...y
|
|
28
|
+
}), [y]), { initResponse: C, widgetToken: w } = t(), T = i(), E = n(), D = r(), O = e(), k = g(() => u(D ? void 0 : C?.scopes), [D, C?.scopes]), A = !(!w || C || E) || T && !C || D, j = !!E && (!C || D), [M, N] = _("none"), [P, F] = _(), [I, L] = _(!1), R = c({ enabled: k.canRead }), z = p({
|
|
29
|
+
unitNamesById: R.unitNamesById,
|
|
30
|
+
unitOptions: R.unitOptions,
|
|
31
|
+
labels: S,
|
|
32
|
+
enabled: k.canRead
|
|
33
|
+
}), B = f({
|
|
34
|
+
selectedProductId: P,
|
|
35
|
+
unitNamesById: R.unitNamesById,
|
|
36
|
+
enabled: k.canRead
|
|
37
|
+
}), V = l({
|
|
38
|
+
view: M,
|
|
39
|
+
setView: N,
|
|
40
|
+
selectedProductId: P,
|
|
41
|
+
setSelectedProductId: F,
|
|
42
|
+
product: B.product,
|
|
43
|
+
messages: x
|
|
44
|
+
}), H = d({
|
|
45
|
+
selectedProductId: P,
|
|
46
|
+
setSelectedProductId: F,
|
|
47
|
+
setView: N,
|
|
48
|
+
messages: x
|
|
41
49
|
});
|
|
42
|
-
if (!
|
|
43
|
-
let { canRead: e, canCreate: t, canUpdate: n, canDelete: r } =
|
|
44
|
-
|
|
50
|
+
if (!D) {
|
|
51
|
+
let { canRead: e, canCreate: t, canUpdate: n, canDelete: r } = k;
|
|
52
|
+
!e && (M !== "none" || P) || M === "create" && !t ? (N("none"), F(void 0)) : M === "edit" && !n && N("details"), H.open && !(e && r) && H.cancel(), I && !(e && t) && L(!1);
|
|
45
53
|
}
|
|
46
|
-
let
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
|
|
50
|
-
}, [
|
|
54
|
+
let U = h((e) => {
|
|
55
|
+
k.canRead && !o() && (F(e.id), N("details"));
|
|
56
|
+
}, [k.canRead]), W = h(() => {
|
|
57
|
+
k.canCreate && L(!0);
|
|
58
|
+
}, [k.canCreate]), G = h(() => L(!1), []), { submit: K } = V, q = h(() => D ? void 0 : K(), [D, K]), J = (B.product?.type === "service" ? b?.typeService ?? s.typeService : b?.typeProduct ?? s.typeProduct).toLowerCase(), Y = M === "edit" ? {
|
|
59
|
+
heading: (b?.editingBanner ?? s.editingBanner).replace("{type}", J),
|
|
60
|
+
values: V.values,
|
|
61
|
+
errors: V.errors,
|
|
62
|
+
unitOptions: R.unitOptions,
|
|
63
|
+
pricePrefix: V.pricePrefix,
|
|
64
|
+
inProgress: V.isSubmitting || D,
|
|
65
|
+
submitDisabled: !V.isDirty,
|
|
66
|
+
onChange: (e) => V.setValues((t) => ({
|
|
67
|
+
...t,
|
|
68
|
+
...e
|
|
69
|
+
})),
|
|
70
|
+
onSubmit: q,
|
|
71
|
+
onCancel: V.cancelEdit,
|
|
72
|
+
labels: b
|
|
73
|
+
} : void 0, { confirm: X } = H, Z = h(() => D ? void 0 : X(), [D, X]);
|
|
51
74
|
return {
|
|
52
|
-
view:
|
|
53
|
-
units:
|
|
54
|
-
table:
|
|
55
|
-
details:
|
|
56
|
-
form:
|
|
57
|
-
del:
|
|
58
|
-
permissions:
|
|
59
|
-
isPermissionLoading:
|
|
60
|
-
isTableLoading:
|
|
61
|
-
hasInitError:
|
|
62
|
-
refetchWidgetInit:
|
|
63
|
-
measureUnitsOpen:
|
|
64
|
-
actionsSuspended:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
75
|
+
view: M,
|
|
76
|
+
units: R,
|
|
77
|
+
table: z,
|
|
78
|
+
details: B,
|
|
79
|
+
form: V,
|
|
80
|
+
del: H,
|
|
81
|
+
permissions: k,
|
|
82
|
+
isPermissionLoading: A,
|
|
83
|
+
isTableLoading: z.isLoading || A && z.rows.length === 0,
|
|
84
|
+
hasInitError: j,
|
|
85
|
+
refetchWidgetInit: O,
|
|
86
|
+
measureUnitsOpen: I,
|
|
87
|
+
actionsSuspended: D,
|
|
88
|
+
editForm: Y,
|
|
89
|
+
handleRowClick: U,
|
|
90
|
+
openMeasureUnits: W,
|
|
91
|
+
closeMeasureUnits: G,
|
|
92
|
+
submitForm: q,
|
|
93
|
+
confirmDelete: Z
|
|
70
94
|
};
|
|
71
95
|
}
|
|
72
96
|
//#endregion
|
|
73
|
-
export {
|
|
97
|
+
export { v as useProductsWidget };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "./index2.js";
|
|
1
|
+
import { PRODUCTS_SCREEN_LABELS_EN as e } from "./index2.js";
|
|
2
2
|
import "./index3.js";
|
|
3
|
-
import { ProductsScreen as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
3
|
+
import { ProductsScreen as t } from "./index4.js";
|
|
4
|
+
import "./index5.js";
|
|
5
|
+
import { ProductDetailsSheet as n } from "./index6.js";
|
|
6
|
+
import { ProductDeleteDialog as r } from "./index7.js";
|
|
7
|
+
export { e as PRODUCTS_SCREEN_LABELS_EN, r as ProductDeleteDialog, n as ProductDetailsSheet, t as ProductsScreen };
|
|
@@ -1,8 +1,9 @@
|
|
|
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/products-widget/ui/dist/index2.js
|
|
2
|
-
var
|
|
3
|
+
var n = {
|
|
3
4
|
product: "Product",
|
|
4
5
|
service: "Service"
|
|
5
|
-
},
|
|
6
|
+
}, r = {
|
|
6
7
|
createButton: "Add product or service",
|
|
7
8
|
manageUnitsButton: "Manage units of measure",
|
|
8
9
|
columnName: "Name",
|
|
@@ -11,7 +12,15 @@ var e = {
|
|
|
11
12
|
columnUnit: "Unit",
|
|
12
13
|
columnPrice: "Price per unit",
|
|
13
14
|
searchPlaceholder: "Search by name",
|
|
14
|
-
|
|
15
|
+
searchLabel: "Search by name",
|
|
16
|
+
filtersButton: e.filters,
|
|
17
|
+
filterFieldType: "Type",
|
|
18
|
+
filterFieldUnit: "Unit",
|
|
19
|
+
filterChipRemove: t.remove,
|
|
20
|
+
typeChip: (e) => `Type: ${e}`,
|
|
21
|
+
unitChip: (e) => `Unit: ${e}`,
|
|
22
|
+
searchChip: (e) => `Search: ${e}`,
|
|
23
|
+
clearAllFilters: "Clear all",
|
|
15
24
|
typeFilterProduct: "Products",
|
|
16
25
|
typeFilterService: "Services",
|
|
17
26
|
unitFilterAll: "All units",
|
|
@@ -30,7 +39,7 @@ var e = {
|
|
|
30
39
|
product: "Product",
|
|
31
40
|
service: "Service"
|
|
32
41
|
}
|
|
33
|
-
},
|
|
42
|
+
}, i = {
|
|
34
43
|
hiddenDescription: "Product details",
|
|
35
44
|
subtitle: "{type} · Added {createdAt}",
|
|
36
45
|
sectionHeading: "{type} details",
|
|
@@ -56,11 +65,11 @@ var e = {
|
|
|
56
65
|
product: "Product",
|
|
57
66
|
service: "Service"
|
|
58
67
|
}
|
|
59
|
-
},
|
|
68
|
+
}, a = {
|
|
60
69
|
title: "Delete \"{name}\"?",
|
|
61
70
|
message: "It will remain in all the documents where it is added. You can't undo this action.",
|
|
62
71
|
confirmButton: "Delete",
|
|
63
72
|
cancelButton: "Cancel"
|
|
64
73
|
};
|
|
65
74
|
//#endregion
|
|
66
|
-
export {
|
|
75
|
+
export { r as PRODUCTS_SCREEN_LABELS_EN, a as PRODUCT_DELETE_DIALOG_LABELS_EN, i as PRODUCT_DETAILS_SHEET_LABELS_EN, n as PRODUCT_TYPE_BADGE_LABELS_EN };
|