@kingteza/crud-component 1.0.5 → 1.0.9
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/_virtual/ShowMoreText.cjs +1 -1
- package/dist/_virtual/advancedFormat.cjs +1 -1
- package/dist/_virtual/customParseFormat.cjs +1 -1
- package/dist/_virtual/dayjs.min.cjs +1 -1
- package/dist/_virtual/index.cjs +1 -1
- package/dist/_virtual/index10.cjs +1 -1
- package/dist/_virtual/index10.js +5 -2
- package/dist/_virtual/index11.cjs +1 -0
- package/dist/_virtual/index11.js +7 -0
- package/dist/_virtual/index12.cjs +1 -0
- package/dist/_virtual/index12.js +4 -0
- package/dist/_virtual/index13.cjs +1 -0
- package/dist/_virtual/index13.js +4 -0
- package/dist/_virtual/index2.cjs +1 -1
- package/dist/_virtual/index2.js +3 -2
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index3.js +5 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.cjs +1 -1
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index6.js +4 -2
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/_virtual/index7.js +2 -5
- package/dist/_virtual/index8.cjs +1 -1
- package/dist/_virtual/index8.js +2 -7
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/_virtual/index9.js +5 -2
- package/dist/_virtual/localeData.cjs +1 -1
- package/dist/_virtual/main.cjs +1 -1
- package/dist/_virtual/papaparse.min.cjs +1 -1
- package/dist/_virtual/react-is.development2.cjs +1 -0
- package/dist/_virtual/react-is.development2.js +4 -0
- package/dist/_virtual/react-is.production.min2.cjs +1 -0
- package/dist/_virtual/react-is.production.min2.js +4 -0
- package/dist/_virtual/weekOfYear.cjs +1 -1
- package/dist/_virtual/weekYear.cjs +1 -1
- package/dist/_virtual/weekday.cjs +1 -1
- package/dist/common/index.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/src/components/common/DatePicker/DatePicker.cjs +1 -1
- package/dist/src/components/common/DatePicker/DatePicker.js +23 -22
- package/dist/src/components/common/DatePicker/TimePicker.cjs +1 -1
- package/dist/src/components/common/DatePicker/TimePicker.js +13 -12
- package/dist/src/components/common/appearance/Hider.cjs +1 -1
- package/dist/src/components/common/button/Button.cjs +1 -1
- package/dist/src/components/common/button/Button.js +28 -27
- package/dist/src/components/common/button/CloneButtonTable.cjs +1 -1
- package/dist/src/components/common/button/CloneButtonTable.js +3 -3
- package/dist/src/components/common/button/DeleteButtonTable.cjs +1 -1
- package/dist/src/components/common/button/DeleteButtonTable.js +7 -7
- package/dist/src/components/common/button/ExportButton.cjs +1 -1
- package/dist/src/components/common/button/ExportButton.js +5 -5
- package/dist/src/components/common/button/HideButtonTable.cjs +1 -1
- package/dist/src/components/common/button/HideButtonTable.js +7 -7
- package/dist/src/components/common/button/ImportButton.cjs +1 -1
- package/dist/src/components/common/button/ImportButton.js +5 -5
- package/dist/src/components/common/button/NewButton.cjs +1 -1
- package/dist/src/components/common/button/NewButton.js +5 -5
- package/dist/src/components/common/button/PrintButton.cjs +1 -1
- package/dist/src/components/common/button/PrintButton.js +5 -5
- package/dist/src/components/common/button/RefreshButton.cjs +1 -1
- package/dist/src/components/common/button/RefreshButton.js +5 -5
- package/dist/src/components/common/button/UnHideButton.cjs +1 -1
- package/dist/src/components/common/button/UnHideButton.js +7 -7
- package/dist/src/components/common/button/UpdateButtonTable.cjs +1 -1
- package/dist/src/components/common/button/UpdateButtonTable.js +5 -5
- package/dist/src/components/common/button/ViewButtonTable.cjs +1 -1
- package/dist/src/components/common/button/ViewButtonTable.js +5 -5
- package/dist/src/components/common/check-box/CheckBox.cjs +1 -1
- package/dist/src/components/common/check-box/CheckBox.js +17 -15
- package/dist/src/components/common/description/DescList.cjs +1 -1
- package/dist/src/components/common/description/DescList.js +1 -1
- package/dist/src/components/common/layout/VerticalSpace.cjs +1 -1
- package/dist/src/components/common/layout/VerticalSpace.js +1 -1
- package/dist/src/components/common/loading/LoadingIndicator.cjs +1 -1
- package/dist/src/components/common/loading/LoadingIndicator.js +9 -8
- package/dist/src/components/common/picker/ImagePicker.cjs +1 -1
- package/dist/src/components/common/picker/ImagePicker.js +42 -40
- package/dist/src/components/common/radio/RadioGroupComponent.cjs +1 -1
- package/dist/src/components/common/radio/RadioGroupComponent.js +17 -16
- package/dist/src/components/common/report/SelectFieldInReport.cjs +1 -1
- package/dist/src/components/common/report/SelectFieldInReport.js +17 -16
- package/dist/src/components/common/select/CustomSelectOption.cjs +1 -1
- package/dist/src/components/common/select/CustomSelectOption.js +1 -1
- package/dist/src/components/common/select/SelectComponent.cjs +1 -1
- package/dist/src/components/common/select/SelectComponent.js +36 -33
- package/dist/src/components/common/show-more/index.cjs +1 -1
- package/dist/src/components/common/tab/TabViewWithRoute.cjs +1 -1
- package/dist/src/components/common/tab/TabViewWithRoute.js +15 -14
- package/dist/src/components/common/table/table.cjs +1 -1
- package/dist/src/components/common/table/table.js +16 -16
- package/dist/src/components/common/tag/StatusTag.cjs +1 -1
- package/dist/src/components/common/tag/StatusTag.js +4 -4
- package/dist/src/components/common/text/index.cjs +1 -1
- package/dist/src/components/common/text/index.js +1 -1
- package/dist/src/components/common/text/title/index.cjs +1 -1
- package/dist/src/components/common/text/title/index.js +1 -1
- package/dist/src/components/common/text-field/NumberField.cjs +1 -1
- package/dist/src/components/common/text-field/NumberField.js +20 -19
- package/dist/src/components/common/text-field/PhoneNumberField.cjs +1 -1
- package/dist/src/components/common/text-field/TextArea.cjs +1 -1
- package/dist/src/components/common/text-field/TextArea.js +19 -18
- package/dist/src/components/common/text-field/TextField.cjs +1 -1
- package/dist/src/components/common/text-field/TextField.js +22 -21
- package/dist/src/components/common/tooltip/TooltipComponent.cjs +1 -1
- package/dist/src/components/common/tooltip/TooltipComponent.js +1 -1
- package/dist/src/components/common/wizard/WizardResult.cjs +1 -1
- package/dist/src/components/common/wizard/WizardResult.js +5 -5
- package/dist/src/components/common/wizard/WizardViewForm.cjs +1 -1
- package/dist/src/components/common/wizard/WizardViewForm.js +1 -1
- package/dist/src/components/crud/CrudComponent.cjs +1 -1
- package/dist/src/components/crud/CrudComponent.js +74 -71
- package/dist/src/components/crud/CrudField.cjs +1 -1
- package/dist/src/components/crud/CrudField.js +96 -93
- package/dist/src/components/crud/CrudForm.cjs +1 -1
- package/dist/src/components/crud/CrudForm.js +30 -27
- package/dist/src/components/crud/CrudFormWizard.cjs +1 -1
- package/dist/src/components/crud/CrudFormWizard.js +57 -54
- package/dist/src/components/crud/CrudReportComponent.cjs +3 -3
- package/dist/src/components/crud/CrudReportComponent.js +51 -47
- package/dist/src/components/crud/CrudSearchComponent.cjs +1 -1
- package/dist/src/components/crud/CrudSearchComponent.js +23 -21
- package/dist/src/components/crud/FileCrudField.cjs +1 -1
- package/dist/src/components/crud/FileCrudField.js +31 -29
- package/dist/src/components/crud/ImageCrudField.cjs +1 -1
- package/dist/src/components/crud/ImageCrudField.js +46 -43
- package/dist/src/components/crud/import/CrudImportButton.cjs +1 -1
- package/dist/src/components/crud/import/CrudImportButton.js +7 -7
- package/dist/src/components/crud/import/CrudImportComponent.cjs +2 -2
- package/dist/src/components/crud/import/CrudImportComponent.js +64 -60
- package/dist/src/components/crud/view/CrudDecListView.cjs +1 -1
- package/dist/src/components/crud/view/CrudDecListView.js +5 -5
- package/dist/src/components/crud/view/CrudViewer.cjs +1 -1
- package/dist/src/components/crud/view/CrudViewer.js +25 -25
- package/dist/src/components/crud/view/CrudViewerUtil.cjs +1 -1
- package/dist/src/components/crud/view/CrudViewerUtil.js +18 -17
- package/dist/src/context/WindowDimension.cjs +1 -1
- package/dist/src/locale/index.cjs +1 -1
- package/dist/src/locale/index.js +2 -2
- package/dist/src/locale/translations/en.cjs +1 -1
- package/dist/src/util/DateUtil.cjs +1 -1
- package/dist/src/util/DateUtil.js +4 -4
- package/dist/src/util/ImageUtil.cjs +1 -1
- package/dist/src/util/ValidationUtil.cjs +1 -1
- package/dist/src/util/ValidationUtil.js +1 -1
- package/dist/util/index.cjs +1 -1
- package/package.json +7 -9
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { TRANSLATION_NAMESPACE as
|
|
4
|
+
import M, { useRef as _, useState as h, useEffect as U, useCallback as Z, useMemo as q } from "react";
|
|
5
|
+
import { Cropper as Ce } from "../../../../node_modules/react-cropper/dist/react-cropper.es.js";
|
|
6
|
+
import { useTranslation as ve } from "react-i18next";
|
|
7
|
+
import { TRANSLATION_NAMESPACE as Ie } from "../../../locale/hooks/translation-constants.js";
|
|
8
8
|
import z from "../button/Button.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
9
|
+
import be from "../../../util/ImageUtil.js";
|
|
10
|
+
import ye from "../../../../node_modules/antd/es/form/index.js";
|
|
11
|
+
import ee from "../../../../node_modules/antd/es/modal/index.js";
|
|
12
|
+
import Re from "../../../../node_modules/@ant-design/icons/es/icons/RotateLeftOutlined.js";
|
|
13
|
+
import Fe from "../../../../node_modules/@ant-design/icons/es/icons/RotateRightOutlined.js";
|
|
13
14
|
import re from "../../../../node_modules/@ant-design/icons/es/icons/UploadOutlined.js";
|
|
15
|
+
import Ne from "../../../../node_modules/antd/es/upload/index.js";
|
|
14
16
|
import Ue from "../../../../node_modules/@ant-design/icons/es/icons/LoadingOutlined.js";
|
|
15
|
-
const Se =
|
|
17
|
+
const Se = ye.Item;
|
|
16
18
|
function te(r) {
|
|
17
|
-
return new Promise((l,
|
|
19
|
+
return new Promise((l, d) => {
|
|
18
20
|
const o = new FileReader();
|
|
19
|
-
o.readAsDataURL(r), o.onload = () => l(o.result), o.onerror = (p) =>
|
|
21
|
+
o.readAsDataURL(r), o.onload = () => l(o.result), o.onerror = (p) => d(p);
|
|
20
22
|
});
|
|
21
23
|
}
|
|
22
|
-
const
|
|
24
|
+
const Ge = ({
|
|
23
25
|
values: r = [],
|
|
24
26
|
required: l,
|
|
25
|
-
buttonType:
|
|
27
|
+
buttonType: d,
|
|
26
28
|
label: o,
|
|
27
29
|
name: p,
|
|
28
30
|
onChange: f,
|
|
@@ -40,9 +42,9 @@ const He = ({
|
|
|
40
42
|
listType: F,
|
|
41
43
|
...E
|
|
42
44
|
}) => {
|
|
43
|
-
const [oe, se] = M.useState(""), [ne, ie] = M.useState(""), [ae, $] = M.useState(!1), O = _(), n = _(), [i, k] = h([]), [x, A] = h(), ce = _(), le = () => $(!1),
|
|
45
|
+
const [oe, se] = M.useState(""), [ne, ie] = M.useState(""), [ae, $] = M.useState(!1), O = _(), n = _(), [i, k] = h([]), [x, A] = h(), ce = _(), le = () => $(!1), me = async (e) => {
|
|
44
46
|
!e.url && !e.preview && (e.preview = await te(e.originFileObj)), ie(e.url || e.preview), $(!0), se(e.name);
|
|
45
|
-
}, [T, N] = h(!1),
|
|
47
|
+
}, [T, N] = h(!1), de = () => {
|
|
46
48
|
}, J = (e) => {
|
|
47
49
|
var s;
|
|
48
50
|
(s = n == null ? void 0 : n.current) == null || s.cropper.rotate(e ? -90 : 90);
|
|
@@ -52,13 +54,13 @@ const He = ({
|
|
|
52
54
|
}, [i, f]);
|
|
53
55
|
const pe = () => {
|
|
54
56
|
var I;
|
|
55
|
-
const e = (I = n == null ? void 0 : n.current) == null ? void 0 : I.cropper.getCroppedCanvas(), { type: s, size: a, name:
|
|
57
|
+
const e = (I = n == null ? void 0 : n.current) == null ? void 0 : I.cropper.getCroppedCanvas(), { type: s, size: a, name: m, uid: v } = O.current;
|
|
56
58
|
N(!0), e == null || e.toBlob(async (je) => {
|
|
57
|
-
const we = Object.assign(new File([je],
|
|
59
|
+
const we = Object.assign(new File([je], m, { type: s }), {
|
|
58
60
|
uid: v
|
|
59
|
-
}), Q = await
|
|
61
|
+
}), Q = await be.resizeImage(we), X = await te(Q), Y = {
|
|
60
62
|
url: X,
|
|
61
|
-
name:
|
|
63
|
+
name: m,
|
|
62
64
|
uid: v,
|
|
63
65
|
type: s,
|
|
64
66
|
size: a,
|
|
@@ -75,17 +77,17 @@ const He = ({
|
|
|
75
77
|
}), A(void 0);
|
|
76
78
|
}, fe = () => {
|
|
77
79
|
A(void 0), O.current = void 0;
|
|
78
|
-
}, V =
|
|
80
|
+
}, V = Z((e) => {
|
|
79
81
|
const s = e;
|
|
80
82
|
if (s) {
|
|
81
83
|
O.current = s;
|
|
82
84
|
const a = new FileReader();
|
|
83
85
|
a.addEventListener("load", () => {
|
|
84
|
-
var
|
|
86
|
+
var m;
|
|
85
87
|
if (typeof a.result == "string") {
|
|
86
88
|
A(a.result);
|
|
87
89
|
const v = localStorage.getItem("cropper.box"), I = v ? JSON.parse(v) : void 0;
|
|
88
|
-
I && ((
|
|
90
|
+
I && ((m = n == null ? void 0 : n.current) == null || m.cropper.setCropBoxData(I)), setTimeout(() => {
|
|
89
91
|
K();
|
|
90
92
|
}, 100);
|
|
91
93
|
}
|
|
@@ -98,7 +100,7 @@ const He = ({
|
|
|
98
100
|
k(e);
|
|
99
101
|
}
|
|
100
102
|
}, [r]);
|
|
101
|
-
const { t: P } =
|
|
103
|
+
const { t: P } = ve(Ie), ue = q(
|
|
102
104
|
() => l ? {
|
|
103
105
|
required: l,
|
|
104
106
|
validator: (e, s, a) => {
|
|
@@ -106,14 +108,14 @@ const He = ({
|
|
|
106
108
|
}
|
|
107
109
|
} : void 0,
|
|
108
110
|
[l, x, i == null ? void 0 : i.length, o, P]
|
|
109
|
-
), W = j ?? P("message.fileUploadMessage2"), H =
|
|
111
|
+
), W = j ?? P("message.fileUploadMessage2"), H = q(
|
|
110
112
|
() => /* @__PURE__ */ t.jsx(
|
|
111
113
|
Oe,
|
|
112
114
|
{
|
|
113
115
|
showLoadingIndicator: T,
|
|
114
116
|
_buttonTitle: W,
|
|
115
117
|
buttonSize: u,
|
|
116
|
-
buttonType:
|
|
118
|
+
buttonType: d,
|
|
117
119
|
fileList: i,
|
|
118
120
|
hidePreview: w,
|
|
119
121
|
icon: b,
|
|
@@ -123,7 +125,7 @@ const He = ({
|
|
|
123
125
|
onChangeFile: V,
|
|
124
126
|
onRemove: R,
|
|
125
127
|
showButtonText: g,
|
|
126
|
-
handlePreview:
|
|
128
|
+
handlePreview: me,
|
|
127
129
|
setFileList: k
|
|
128
130
|
}
|
|
129
131
|
),
|
|
@@ -131,7 +133,7 @@ const He = ({
|
|
|
131
133
|
T,
|
|
132
134
|
W,
|
|
133
135
|
u,
|
|
134
|
-
|
|
136
|
+
d,
|
|
135
137
|
i,
|
|
136
138
|
w,
|
|
137
139
|
b,
|
|
@@ -153,12 +155,12 @@ const He = ({
|
|
|
153
155
|
}, [D]), U(() => {
|
|
154
156
|
x || (L(0), G(0));
|
|
155
157
|
}, [x]);
|
|
156
|
-
const K =
|
|
158
|
+
const K = Z(async () => {
|
|
157
159
|
var s;
|
|
158
160
|
const e = (s = n == null ? void 0 : n.current) == null ? void 0 : s.cropper;
|
|
159
161
|
if (e) {
|
|
160
|
-
const { width: a, height:
|
|
161
|
-
he(e.getCropBoxData()), L(a), G(
|
|
162
|
+
const { width: a, height: m } = e.getCroppedCanvas();
|
|
163
|
+
he(e.getCropBoxData()), L(a), G(m);
|
|
162
164
|
}
|
|
163
165
|
}, []);
|
|
164
166
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
@@ -174,7 +176,7 @@ const He = ({
|
|
|
174
176
|
}
|
|
175
177
|
),
|
|
176
178
|
/* @__PURE__ */ t.jsxs(
|
|
177
|
-
|
|
179
|
+
ee,
|
|
178
180
|
{
|
|
179
181
|
open: !!x,
|
|
180
182
|
maskClosable: !1,
|
|
@@ -183,14 +185,14 @@ const He = ({
|
|
|
183
185
|
onCancel: fe,
|
|
184
186
|
children: [
|
|
185
187
|
/* @__PURE__ */ t.jsx(
|
|
186
|
-
|
|
188
|
+
Ce,
|
|
187
189
|
{
|
|
188
190
|
ref: n,
|
|
189
191
|
src: x,
|
|
190
192
|
cropmove: K,
|
|
191
193
|
viewMode: 1,
|
|
192
194
|
aspectRatio: S,
|
|
193
|
-
cropend: () =>
|
|
195
|
+
cropend: () => de()
|
|
194
196
|
}
|
|
195
197
|
),
|
|
196
198
|
/* @__PURE__ */ t.jsx("p", { className: "text-center", children: [ge, xe].join(" ⨉ ") }),
|
|
@@ -199,7 +201,7 @@ const He = ({
|
|
|
199
201
|
z,
|
|
200
202
|
{
|
|
201
203
|
size: "large",
|
|
202
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
204
|
+
icon: /* @__PURE__ */ t.jsx(Re, {}),
|
|
203
205
|
onClick: () => J(!0)
|
|
204
206
|
}
|
|
205
207
|
),
|
|
@@ -207,7 +209,7 @@ const He = ({
|
|
|
207
209
|
z,
|
|
208
210
|
{
|
|
209
211
|
size: "large",
|
|
210
|
-
icon: /* @__PURE__ */ t.jsx(
|
|
212
|
+
icon: /* @__PURE__ */ t.jsx(Fe, {}),
|
|
211
213
|
onClick: () => J(!1)
|
|
212
214
|
}
|
|
213
215
|
)
|
|
@@ -216,7 +218,7 @@ const He = ({
|
|
|
216
218
|
}
|
|
217
219
|
),
|
|
218
220
|
/* @__PURE__ */ t.jsx(
|
|
219
|
-
|
|
221
|
+
ee,
|
|
220
222
|
{
|
|
221
223
|
open: ae,
|
|
222
224
|
title: oe,
|
|
@@ -229,7 +231,7 @@ const He = ({
|
|
|
229
231
|
}, Oe = ({
|
|
230
232
|
_buttonTitle: r,
|
|
231
233
|
buttonSize: l,
|
|
232
|
-
buttonType:
|
|
234
|
+
buttonType: d,
|
|
233
235
|
fileList: o,
|
|
234
236
|
hidePreview: p,
|
|
235
237
|
icon: f,
|
|
@@ -243,7 +245,7 @@ const He = ({
|
|
|
243
245
|
showLoadingIndicator: y,
|
|
244
246
|
listType: C = "picture"
|
|
245
247
|
}) => /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs(
|
|
246
|
-
|
|
248
|
+
Ne,
|
|
247
249
|
{
|
|
248
250
|
accept: "image/x-png,image/gif,image/jpeg",
|
|
249
251
|
fileList: o,
|
|
@@ -271,7 +273,7 @@ const He = ({
|
|
|
271
273
|
tooltip: g ? void 0 : r,
|
|
272
274
|
size: l,
|
|
273
275
|
icon: f,
|
|
274
|
-
type: g ?
|
|
276
|
+
type: g ? d : "text",
|
|
275
277
|
children: g ? r : void 0
|
|
276
278
|
}
|
|
277
279
|
)) })
|
|
@@ -281,5 +283,5 @@ const He = ({
|
|
|
281
283
|
) });
|
|
282
284
|
export {
|
|
283
285
|
Oe as UploadComponent,
|
|
284
|
-
|
|
286
|
+
Ge as default
|
|
285
287
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../../../_virtual/jsx-runtime.cjs"),l=require("react"),s=require("../../../../node_modules/antd/es/radio/index.cjs"),d=require("../../../../node_modules/antd/es/form/index.cjs"),x=({button:i,disabled:a,...u})=>{const c=l.useMemo(()=>{const{enum:e,translations:t}=u;if(e){const r=[];for(const n of e)r.push({key:n,value:(t==null?void 0:t[n])??n.toUpperCase()});return r}else return u.values},[u]),m=i?s.default.Button:s.default;return o.jsxRuntimeExports.jsx(d.default.Item,{...u,children:o.jsxRuntimeExports.jsx(s.default.Group,{disabled:a,children:c.map(({key:e,value:t})=>o.jsxRuntimeExports.jsx(m,{value:e,children:t},e))})})},f=l.memo(x);exports.default=f;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { j as m } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
+
import { memo as c, useMemo as p } from "react";
|
|
3
|
+
import r from "../../../../node_modules/antd/es/radio/index.js";
|
|
4
|
+
import f from "../../../../node_modules/antd/es/form/index.js";
|
|
5
|
+
const d = ({ button: s, disabled: a, ...t }) => {
|
|
6
|
+
const i = p(() => {
|
|
7
|
+
const { enum: o, translations: e } = t;
|
|
8
|
+
if (o) {
|
|
9
|
+
const u = [];
|
|
10
|
+
for (const n of o)
|
|
11
|
+
u.push({ key: n, value: (e == null ? void 0 : e[n]) ?? n.toUpperCase() });
|
|
12
|
+
return u;
|
|
12
13
|
} else
|
|
13
|
-
return
|
|
14
|
-
}, [
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
},
|
|
14
|
+
return t.values;
|
|
15
|
+
}, [t]), l = s ? r.Button : r;
|
|
16
|
+
return /* @__PURE__ */ m.jsx(f.Item, { ...t, children: /* @__PURE__ */ m.jsx(r.Group, { disabled: a, children: i.map(({ key: o, value: e }) => /* @__PURE__ */ m.jsx(l, { value: o, children: e }, o)) }) });
|
|
17
|
+
}, C = c(d);
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
C as default
|
|
19
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../_virtual/jsx-runtime.cjs"),c=require("react"),f=require("../select/SelectComponent.cjs"),S=require("../../../../node_modules/antd/es/form/index.cjs"),j=require("../../../../node_modules/antd/es/select/index.cjs"),R=({className:o,onSelect:d,label:a,required:p,name:i,mode:l,items:t})=>{const r=S.default.useFormInstance(),[n,x]=c.useState(!0);return c.useEffect(()=>{if(t&&n){const e=t.filter(s=>s.alreadySelected).map(s=>s.id);r==null||r.setFieldsValue({[i]:l==="multiple"?e:e==null?void 0:e[0]}),x(!1)}},[n,r,t,l,i]),u.jsxRuntimeExports.jsx(f.default,{required:p,label:a,mode:l,className:o,name:i,onSelect:d,items:t,itemBuilder:e=>u.jsxRuntimeExports.jsx(j.default.Option,{value:e.id,disabled:e.lock,children:e.label},e.id)})};exports.SelectFieldInReport=R;
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { j as c } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { useState as m, useEffect as d } from "react";
|
|
3
|
+
import x from "../select/SelectComponent.js";
|
|
4
|
+
import F from "../../../../node_modules/antd/es/form/index.js";
|
|
5
|
+
import S from "../../../../node_modules/antd/es/select/index.js";
|
|
6
|
+
const h = ({ className: p, onSelect: n, label: u, required: a, name: o, mode: l, items: e }) => {
|
|
7
|
+
const r = F.useFormInstance(), [s, f] = m(!0);
|
|
8
|
+
return d(() => {
|
|
8
9
|
if (e && s) {
|
|
9
10
|
const t = e.filter((i) => i.alreadySelected).map((i) => i.id);
|
|
10
11
|
r == null || r.setFieldsValue({
|
|
11
|
-
[
|
|
12
|
-
}),
|
|
12
|
+
[o]: l === "multiple" ? t : t == null ? void 0 : t[0]
|
|
13
|
+
}), f(!1);
|
|
13
14
|
}
|
|
14
|
-
}, [s, r, e,
|
|
15
|
-
|
|
15
|
+
}, [s, r, e, l, o]), /* @__PURE__ */ c.jsx(
|
|
16
|
+
x,
|
|
16
17
|
{
|
|
17
18
|
required: a,
|
|
18
19
|
label: u,
|
|
19
|
-
mode:
|
|
20
|
-
className:
|
|
21
|
-
name:
|
|
22
|
-
onSelect:
|
|
20
|
+
mode: l,
|
|
21
|
+
className: p,
|
|
22
|
+
name: o,
|
|
23
|
+
onSelect: n,
|
|
23
24
|
items: e,
|
|
24
|
-
itemBuilder: (t) => /* @__PURE__ */ c.jsx(
|
|
25
|
+
itemBuilder: (t) => /* @__PURE__ */ c.jsx(S.Option, { value: t.id, disabled: t.lock, children: t.label }, t.id)
|
|
25
26
|
}
|
|
26
27
|
);
|
|
27
28
|
};
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
h as SelectFieldInReport
|
|
30
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../../_virtual/jsx-runtime.cjs"),t=require("../../../../node_modules/antd/es/list/index.cjs"),u=t.default.Item.Meta,n=t.default.Item,o=({title:s,description:i,children:r})=>e.jsxRuntimeExports.jsxs(n,{className:"",children:[e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(u,{title:s,description:i})}),e.jsxRuntimeExports.jsx("div",{className:"float-right",children:r})]});exports.default=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../../_virtual/jsx-runtime.cjs"),b=require("react"),A=require("react-i18next"),k=require("../../../locale/hooks/translation-constants.cjs"),H=require("../tooltip/TooltipComponent.cjs"),P=require("../../../../node_modules/antd/es/config-provider/index.cjs"),B=require("../../../../node_modules/antd/es/spin/index.cjs"),D=require("../../../../node_modules/antd/es/form/index.cjs"),V=require("../../../../node_modules/antd/es/select/index.cjs");function W({label:u,rules:q=[],required:y,placeholder:a,notSearch:E,children:l,readOnly:s,items:o,dropdownRender:R,itemBuilder:S,loading:d,showLoadingInEmptyIndicator:p,nameFieldInArray:m="name",innerRef:w,tooltip:T,filterOption:_,tagRender:L,...n}){const{t:N}=A.useTranslation(k.TRANSLATION_NAMESPACE),$=b.useCallback(e=>{const t=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e.id,i=typeof e=="string"||typeof e=="number"?e:e==null?void 0:e[m];return r.jsxRuntimeExports.jsx("option",{value:t,children:r.jsxRuntimeExports.jsx("div",{dangerouslySetInnerHTML:{__html:i}})},t)},[m]);return r.jsxRuntimeExports.jsx(P.default,{renderEmpty:p&&d?()=>r.jsxRuntimeExports.jsx(B.default,{}):void 0,children:r.jsxRuntimeExports.jsx(H.default,{title:T,children:r.jsxRuntimeExports.jsx(D.default.Item,{label:u,name:n.name,help:n.help,className:n.className,rules:[...q,{required:y,message:`${u??a??""} ${N("err.validation.required")}`}],children:r.jsxRuntimeExports.jsx(V.default,{ref:w,loading:d,open:s?!1:void 0,onChange:!s&&n.onChange,allowClear:!s&&n.allowClear,showSearch:!E,className:`max-width ${s?"readOnly":""}`,...n,tagRender:L,placeholder:a??u,filterOption:_??((e,t)=>{var i,f,h,j;try{const c=(h=(f=(i=t==null?void 0:t.children)==null?void 0:i.props)==null?void 0:f.dangerouslySetInnerHTML)==null?void 0:h.__html,M=e.toLowerCase().split(/\s+/),g=(t==null?void 0:t.children)??"",C=typeof g=="string"?g.toLowerCase():typeof c=="string"?c.toLowerCase():"",I=(((j=t==null?void 0:t.value)==null?void 0:j.toString())??"").toLowerCase(),O=C.replace(/\s/g,"");return M.every(x=>C.indexOf(x)>=0||I.indexOf(x)>=0||O.indexOf(x)>=0)}catch(c){return console.log(c),!0}}),dropdownRender:R,children:l===null?void 0:l??(o&&(o==null?void 0:o.map(S??$)))})})})})}exports.default=W;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { j as t } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { TRANSLATION_NAMESPACE as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { useCallback as H } from "react";
|
|
3
|
+
import { useTranslation as P } from "react-i18next";
|
|
4
|
+
import { TRANSLATION_NAMESPACE as R } from "../../../locale/hooks/translation-constants.js";
|
|
5
|
+
import b from "../tooltip/TooltipComponent.js";
|
|
6
|
+
import q from "../../../../node_modules/antd/es/config-provider/index.js";
|
|
7
|
+
import B from "../../../../node_modules/antd/es/spin/index.js";
|
|
8
|
+
import D from "../../../../node_modules/antd/es/form/index.js";
|
|
9
|
+
import F from "../../../../node_modules/antd/es/select/index.js";
|
|
10
|
+
function Y({
|
|
11
|
+
label: c,
|
|
9
12
|
rules: j = [],
|
|
10
13
|
required: y,
|
|
11
14
|
placeholder: l,
|
|
12
15
|
notSearch: w,
|
|
13
16
|
children: a,
|
|
14
|
-
readOnly:
|
|
17
|
+
readOnly: n,
|
|
15
18
|
items: s,
|
|
16
19
|
dropdownRender: u,
|
|
17
20
|
itemBuilder: L,
|
|
@@ -22,52 +25,52 @@ function Q({
|
|
|
22
25
|
tooltip: _,
|
|
23
26
|
filterOption: E,
|
|
24
27
|
tagRender: A,
|
|
25
|
-
...
|
|
28
|
+
...o
|
|
26
29
|
}) {
|
|
27
|
-
const { t: I } =
|
|
28
|
-
(
|
|
29
|
-
const
|
|
30
|
-
return /* @__PURE__ */ t.jsx("option", { value:
|
|
30
|
+
const { t: I } = P(R), M = H(
|
|
31
|
+
(r) => {
|
|
32
|
+
const e = typeof r == "string" || typeof r == "number" ? r : r == null ? void 0 : r.id, m = typeof r == "string" || typeof r == "number" ? r : r == null ? void 0 : r[h];
|
|
33
|
+
return /* @__PURE__ */ t.jsx("option", { value: e, children: /* @__PURE__ */ t.jsx("div", { dangerouslySetInnerHTML: { __html: m } }) }, e);
|
|
31
34
|
},
|
|
32
35
|
[h]
|
|
33
36
|
);
|
|
34
37
|
return /* @__PURE__ */ t.jsx(
|
|
35
|
-
|
|
38
|
+
q,
|
|
36
39
|
{
|
|
37
|
-
renderEmpty: T && d ? () => /* @__PURE__ */ t.jsx(
|
|
38
|
-
children: /* @__PURE__ */ t.jsx(
|
|
39
|
-
|
|
40
|
+
renderEmpty: T && d ? () => /* @__PURE__ */ t.jsx(B, {}) : void 0,
|
|
41
|
+
children: /* @__PURE__ */ t.jsx(b, { title: _, children: /* @__PURE__ */ t.jsx(
|
|
42
|
+
D.Item,
|
|
40
43
|
{
|
|
41
|
-
label:
|
|
42
|
-
name:
|
|
43
|
-
help:
|
|
44
|
-
className:
|
|
44
|
+
label: c,
|
|
45
|
+
name: o.name,
|
|
46
|
+
help: o.help,
|
|
47
|
+
className: o.className,
|
|
45
48
|
rules: [
|
|
46
49
|
...j,
|
|
47
50
|
{
|
|
48
51
|
required: y,
|
|
49
|
-
message: `${
|
|
52
|
+
message: `${c ?? l ?? ""} ${I(
|
|
50
53
|
"err.validation.required"
|
|
51
54
|
)}`
|
|
52
55
|
}
|
|
53
56
|
],
|
|
54
57
|
children: /* @__PURE__ */ t.jsx(
|
|
55
|
-
|
|
58
|
+
F,
|
|
56
59
|
{
|
|
57
60
|
ref: N,
|
|
58
61
|
loading: d,
|
|
59
|
-
open:
|
|
60
|
-
onChange: !
|
|
61
|
-
allowClear: !
|
|
62
|
+
open: n ? !1 : void 0,
|
|
63
|
+
onChange: !n && o.onChange,
|
|
64
|
+
allowClear: !n && o.allowClear,
|
|
62
65
|
showSearch: !w,
|
|
63
|
-
className: `max-width ${
|
|
64
|
-
...
|
|
66
|
+
className: `max-width ${n ? "readOnly" : ""}`,
|
|
67
|
+
...o,
|
|
65
68
|
tagRender: A,
|
|
66
|
-
placeholder: l ??
|
|
67
|
-
filterOption: E ?? ((
|
|
68
|
-
var
|
|
69
|
+
placeholder: l ?? c,
|
|
70
|
+
filterOption: E ?? ((r, e) => {
|
|
71
|
+
var m, x, p, C;
|
|
69
72
|
try {
|
|
70
|
-
const i = (
|
|
73
|
+
const i = (p = (x = (m = e == null ? void 0 : e.children) == null ? void 0 : m.props) == null ? void 0 : x.dangerouslySetInnerHTML) == null ? void 0 : p.__html, O = r.toLowerCase().split(/\s+/), g = (e == null ? void 0 : e.children) ?? "", S = typeof g == "string" ? g.toLowerCase() : typeof i == "string" ? i.toLowerCase() : "", $ = (((C = e == null ? void 0 : e.value) == null ? void 0 : C.toString()) ?? "").toLowerCase(), k = S.replace(/\s/g, "");
|
|
71
74
|
return O.every(
|
|
72
75
|
(f) => S.indexOf(f) >= 0 || $.indexOf(f) >= 0 || k.indexOf(f) >= 0
|
|
73
76
|
);
|
|
@@ -85,5 +88,5 @@ function Q({
|
|
|
85
88
|
);
|
|
86
89
|
}
|
|
87
90
|
export {
|
|
88
|
-
|
|
91
|
+
Y as default
|
|
89
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),o=require("../../../../_virtual/ShowMoreText.cjs");;/* empty css */const e=r=>t.jsxRuntimeExports.jsx(o,{...r});exports.ShowMore=e;exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../../../_virtual/jsx-runtime.cjs"),o=require("../../../../_virtual/ShowMoreText.cjs");;/* empty css */const e=r=>t.jsxRuntimeExports.jsx(o.default,{...r});exports.ShowMore=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../_virtual/jsx-runtime.cjs"),v=require("../../../context/WindowDimension.cjs"),r=require("react"),c=require("../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.cjs"),u=require("../../../../node_modules/antd/es/tabs/index.cjs"),g=require("../../../../node_modules/antd/es/layout/index.cjs"),{Content:q}=g.default,E=({positionOfRoute:a,initialKey:s="*",tabs:l,className:x="",mode:d="default"})=>{const[m,p]=r.useState(s),n=c.useNavigate(),h=e=>{n(e)},i=c.useLocation();r.useEffect(()=>{const e=i.pathname.split("/")[a];p(e??""),e||n(s,{replace:!0})},[s,i.pathname,n,a]);const{isDesktop:j}=v.default(),o=d==="side"&&j,f=o?"left":"top",b=o?"d-flex h-100":"";return t.jsxRuntimeExports.jsxs("div",{className:`${x} ${b}`,children:[t.jsxRuntimeExports.jsx(u.default,{type:"card",tabPosition:f,activeKey:m,onChange:h,children:l.map(({key:e,label:R})=>t.jsxRuntimeExports.jsx(u.default.TabPane,{tab:R},e))}),t.jsxRuntimeExports.jsx(q,{className:`max-height ${o?"overflow-auto":""}`,children:t.jsxRuntimeExports.jsx(c.Outlet,{})})]})};exports.TabViewWithRoute=E;
|
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
import { j as e } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import
|
|
3
|
-
import v from "
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
2
|
+
import b from "../../../context/WindowDimension.js";
|
|
3
|
+
import { useState as v, useEffect as g } from "react";
|
|
4
|
+
import { useNavigate as w, useLocation as y, Outlet as N } from "../../../../node_modules/react-router/dist/development/chunk-K6AXKMTT.js";
|
|
5
|
+
import r from "../../../../node_modules/antd/es/tabs/index.js";
|
|
6
|
+
import P from "../../../../node_modules/antd/es/layout/index.js";
|
|
7
|
+
const { Content: S } = P, L = ({
|
|
7
8
|
positionOfRoute: n,
|
|
8
9
|
initialKey: s = "*",
|
|
9
10
|
tabs: i,
|
|
10
11
|
className: m = "",
|
|
11
|
-
mode:
|
|
12
|
+
mode: p = "default"
|
|
12
13
|
}) => {
|
|
13
|
-
const [
|
|
14
|
+
const [l, u] = v(s), o = w(), f = (t) => {
|
|
14
15
|
o(t);
|
|
15
|
-
}, c =
|
|
16
|
-
|
|
16
|
+
}, c = y();
|
|
17
|
+
g(() => {
|
|
17
18
|
const t = c.pathname.split("/")[n];
|
|
18
19
|
u(t ?? ""), t || o(s, { replace: !0 });
|
|
19
20
|
}, [s, c.pathname, o, n]);
|
|
20
|
-
const { isDesktop:
|
|
21
|
+
const { isDesktop: d } = b(), a = p === "side" && d, h = a ? "left" : "top", x = a ? "d-flex h-100" : "";
|
|
21
22
|
return /* @__PURE__ */ e.jsxs("div", { className: `${m} ${x}`, children: [
|
|
22
23
|
/* @__PURE__ */ e.jsx(
|
|
23
24
|
r,
|
|
24
25
|
{
|
|
25
26
|
type: "card",
|
|
26
27
|
tabPosition: h,
|
|
27
|
-
activeKey:
|
|
28
|
-
onChange:
|
|
28
|
+
activeKey: l,
|
|
29
|
+
onChange: f,
|
|
29
30
|
children: i.map(({ key: t, label: j }) => /* @__PURE__ */ e.jsx(r.TabPane, { tab: j }, t))
|
|
30
31
|
}
|
|
31
32
|
),
|
|
32
|
-
/* @__PURE__ */ e.jsx(S, { className: `max-height ${a ? "overflow-auto" : ""}`, children: /* @__PURE__ */ e.jsx(
|
|
33
|
+
/* @__PURE__ */ e.jsx(S, { className: `max-height ${a ? "overflow-auto" : ""}`, children: /* @__PURE__ */ e.jsx(N, {}) })
|
|
33
34
|
] });
|
|
34
35
|
};
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
L as TabViewWithRoute
|
|
37
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../../../_virtual/jsx-runtime.cjs"),a=require("react"),c=require("../../../../node_modules/antd/es/table/Table.cjs");function d({minusHeight:g,onRow:m,count:f=1,onPageSizeChanged:h,pagination:e=!1,rowKey:n="id",columns:t,className:o,scroll:s,...u}){const i=a.useMemo(()=>t.filter(r=>!r.hidden),[t]);return l.jsxRuntimeExports.jsx(c.default,{className:`custom-scroll ${o}`,style:{width:"100%"},columns:i,rowKey:n,...u,scroll:s||{x:!0},pagination:e&&{...e,hideOnSinglePage:!0,showSizeChanger:!1}})}exports.default=d;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { j as l } from "../../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
minusHeight:
|
|
6
|
-
onRow:
|
|
7
|
-
count:
|
|
2
|
+
import { useMemo as m } from "react";
|
|
3
|
+
import u from "../../../../node_modules/antd/es/table/Table.js";
|
|
4
|
+
function w({
|
|
5
|
+
minusHeight: d,
|
|
6
|
+
onRow: f,
|
|
7
|
+
count: c = 1,
|
|
8
8
|
onPageSizeChanged: h,
|
|
9
9
|
pagination: e = !1,
|
|
10
|
-
rowKey:
|
|
10
|
+
rowKey: r = "id",
|
|
11
11
|
columns: o,
|
|
12
|
-
className:
|
|
12
|
+
className: s,
|
|
13
13
|
scroll: t,
|
|
14
|
-
...
|
|
14
|
+
...n
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
16
|
+
const i = m(() => o.filter((a) => !a.hidden), [o]);
|
|
17
17
|
return /* @__PURE__ */ l.jsx(
|
|
18
|
-
|
|
18
|
+
u,
|
|
19
19
|
{
|
|
20
|
-
className: `custom-scroll ${
|
|
20
|
+
className: `custom-scroll ${s}`,
|
|
21
21
|
style: { width: "100%" },
|
|
22
|
-
columns:
|
|
23
|
-
rowKey:
|
|
24
|
-
...
|
|
22
|
+
columns: i,
|
|
23
|
+
rowKey: r,
|
|
24
|
+
...n,
|
|
25
25
|
scroll: t || {
|
|
26
26
|
// y: `calc(100vh - ${minusHeight ?? 0}px)`,
|
|
27
27
|
x: !0
|
|
@@ -36,5 +36,5 @@ function j({
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
w as default
|
|
40
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("../../../../_virtual/jsx-runtime.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../../_virtual/jsx-runtime.cjs"),d=require("../../../locale/hooks/translation-constants.cjs"),x=require("react-i18next"),p=require("../../../../node_modules/antd/es/tag/index.cjs"),S=({onClick:n,clickable:o,colorFunction:t,translation:i,value:s})=>{var r;const e=t==null?void 0:t(s),{t:u}=x.useTranslation(d.TRANSLATION_NAMESPACE),c=p.default;return a.jsxRuntimeExports.jsx(c,{onClick:n,color:e==null?void 0:e.color,icon:e==null?void 0:e.icon,style:{color:e==null?void 0:e.text,cursor:o?"pointer":void 0},children:(r=u(i[s]))==null?void 0:r.toUpperCase()})};exports.default=S;
|