@glodon-aiot/dataset-annotation 3.10.0-alpha.24 → 3.10.0-alpha.26
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/dataset-annotation.js +123598 -0
- package/dist/dataset-annotation.umd.cjs +1017 -0
- package/dist/es/components/VLMAnnotation/RegionItem.mjs +47 -48
- package/dist/es/components/VLMAnnotationDetail/VlmModal/index.mjs +79 -72
- package/dist/es/components/VLMAnnotationDetail/index.mjs +138 -137
- package/dist/es/index.mjs +1 -1
- package/dist/example/DatasetAnnotationDemo.d.ts +3 -0
- package/dist/example/DemoTabs.d.ts +3 -0
- package/dist/example/DetectionDatasetDemo.d.ts +5 -0
- package/dist/example/DetectionImageDemo.d.ts +5 -0
- package/dist/example/OcrDatasetDemo.d.ts +5 -0
- package/dist/example/OcrImageDemo.d.ts +5 -0
- package/dist/example/OcrkvcDatasetDemo.d.ts +5 -0
- package/dist/example/constant.local.d.ts +6 -0
- package/dist/example/index.d.ts +1 -0
- package/dist/lib/index.js +3 -3
- package/dist/src/components/VLMAnnotationDetail/MarkVLMBoxModal/ImageDetail/index.d.ts +16 -0
- package/dist/src/components/VLMAnnotationDetail/MarkVLMBoxModal/OCRBoxMaker/LabelEditorInput.d.ts +12 -0
- package/dist/src/components/VLMAnnotationDetail/MarkVLMBoxModal/OCRBoxMaker/LabelEditorItem.d.ts +21 -0
- package/dist/src/components/VLMAnnotationDetail/MarkVLMBoxModal/OCRBoxMaker/LableEditor.d.ts +16 -0
- package/dist/src/components/VLMAnnotationDetail/MarkVLMBoxModal/OCRBoxMaker/index.d.ts +19 -0
- package/dist/src/components/VLMAnnotationDetail/VlmModal/index.d.ts +1 -0
- package/dist/src/utils/reactCompatibility.d.ts +5 -0
- package/package.json +2 -2
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ue = Object.defineProperty, Fe = Object.defineProperties;
|
|
2
|
+
var He = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var de = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ke = Object.prototype.hasOwnProperty, Ze = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ue = (f, n, r) => n in f ? Ue(f, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : f[n] = r, d = (f, n) => {
|
|
6
6
|
for (var r in n || (n = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Ke.call(n, r) && ue(f, r, n[r]);
|
|
8
|
+
if (de)
|
|
9
|
+
for (var r of de(n))
|
|
10
|
+
Ze.call(n, r) && ue(f, r, n[r]);
|
|
11
11
|
return f;
|
|
12
|
-
}, g = (f, n) =>
|
|
13
|
-
import { jsx as o, jsxs as
|
|
14
|
-
import { useState as s, useRef as
|
|
15
|
-
import { message as W, ConfigProvider as
|
|
16
|
-
import
|
|
12
|
+
}, g = (f, n) => Fe(f, He(n));
|
|
13
|
+
import { jsx as o, jsxs as I, Fragment as $e } from "react/jsx-runtime";
|
|
14
|
+
import { useState as s, useRef as je, useEffect as u } from "react";
|
|
15
|
+
import { message as W, ConfigProvider as We, Space as A, Select as _e, Button as _, Tabs as qe, Col as Oe, Empty as Ge } from "antd";
|
|
16
|
+
import Je from "antd/es/locale/zh_CN";
|
|
17
17
|
import "./style.less.mjs";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
18
|
+
import Qe from "./VlmModal/index.mjs";
|
|
19
|
+
import Xe from "./MarkVLMBoxModal/index.mjs";
|
|
20
|
+
import Ye from "lodash/merge";
|
|
21
21
|
import { UploadZipsStatus as x } from "@glodon-aiot/apis";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { DEFAULT_FILTER_SWITCH as
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import { Prompt as
|
|
30
|
-
import
|
|
31
|
-
const
|
|
32
|
-
var
|
|
22
|
+
import et from "rc-virtual-list";
|
|
23
|
+
import tt from "../../Common/Page/index.mjs";
|
|
24
|
+
import rt from "../Thumbnail/index.mjs";
|
|
25
|
+
import ot from "../../DatasetContext/index.mjs";
|
|
26
|
+
import { DEFAULT_FILTER_SWITCH as nt } from "../../constant.mjs";
|
|
27
|
+
import lt from "../PageNav/index.mjs";
|
|
28
|
+
import it from "../PicZipImportModal/index.mjs";
|
|
29
|
+
import { Prompt as st } from "../hooks/Prompt.mjs";
|
|
30
|
+
import ct from "../DetectionAnnotation/icon_item_empty.svg.mjs";
|
|
31
|
+
const Tt = (f) => {
|
|
32
|
+
var se;
|
|
33
33
|
const {
|
|
34
34
|
services: n,
|
|
35
35
|
datasetId: r,
|
|
36
|
-
versionId:
|
|
37
|
-
backTo:
|
|
38
|
-
labelManager:
|
|
36
|
+
versionId: L,
|
|
37
|
+
backTo: fe,
|
|
38
|
+
labelManager: me = !1,
|
|
39
39
|
datasetManager: b = !1,
|
|
40
|
-
annotation:
|
|
40
|
+
annotation: he,
|
|
41
41
|
header: a = {
|
|
42
42
|
versionSelect: !1
|
|
43
43
|
},
|
|
44
|
-
exampleSrcRoot:
|
|
45
|
-
apiUrl:
|
|
46
|
-
token:
|
|
47
|
-
} = f, [c, B] = s(), [t,
|
|
44
|
+
exampleSrcRoot: pe,
|
|
45
|
+
apiUrl: ge,
|
|
46
|
+
token: ve
|
|
47
|
+
} = f, [c, B] = s(), [t, k] = s(), [M, q] = s([]), [O, N] = s(!1), [be, G] = s(!1), [E, P] = s(!1), [U, J] = s(0), [h, Se] = s([]), [w, C] = s(), [ye, Q] = s(), [X, T] = s(-1), [l, V] = s({
|
|
48
48
|
current: 0,
|
|
49
49
|
pageSize: 100
|
|
50
|
-
}), [
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
},
|
|
50
|
+
}), [Y, ee] = s(0), [F, Ie] = s(""), [te, H] = s(!1), [S, ke] = s(""), [Ce, Ve] = s(), [De, xe] = s(), [re, K] = s(!1), [oe, Le] = s(!1), [ne, Te] = s(!0), [Me, Ne] = s(!1), z = je(null), Z = d({}, nt);
|
|
51
|
+
Ye(Z, f.filterSwitch);
|
|
52
|
+
const we = () => {
|
|
53
|
+
Q(void 0), H(!0);
|
|
54
|
+
}, ze = (e) => {
|
|
55
55
|
if (!h)
|
|
56
56
|
return;
|
|
57
|
-
|
|
57
|
+
T(e);
|
|
58
58
|
const i = h[e];
|
|
59
59
|
C(i), P(!0);
|
|
60
60
|
};
|
|
61
61
|
u(() => {
|
|
62
|
-
n.cvforceDatahub && n.cvforceDatahub.getOptionsImgproxy().then((e) =>
|
|
62
|
+
n.cvforceDatahub && n.cvforceDatahub.getOptionsImgproxy().then((e) => Ve(e));
|
|
63
63
|
}, [n.cvforceDatahub]), u(() => {
|
|
64
64
|
r && n.cvforceDatahub.getS3Iam(r).then((e) => {
|
|
65
|
-
|
|
65
|
+
xe(e);
|
|
66
66
|
});
|
|
67
67
|
}, [r]), u(() => {
|
|
68
68
|
!r || t || (N(!0), Promise.all([
|
|
@@ -72,7 +72,7 @@ const xt = (f) => {
|
|
|
72
72
|
}),
|
|
73
73
|
// 版本列表
|
|
74
74
|
n.cvforceDatahub.getDatasetsIdVersions(r, 1, 1e3).then((e) => {
|
|
75
|
-
q(e.recordList),
|
|
75
|
+
q(e.recordList), k(L ? e.recordList.find((i) => i.id === L) : e.recordList[0]);
|
|
76
76
|
})
|
|
77
77
|
]).finally(() => N(!1)));
|
|
78
78
|
}, [r, t == null ? void 0 : t.id]), u(() => {
|
|
@@ -83,36 +83,36 @@ const xt = (f) => {
|
|
|
83
83
|
}),
|
|
84
84
|
// 版本列表
|
|
85
85
|
n.cvforceDatahub.getDatasetsIdVersions(r, 1, 1e3).then((e) => {
|
|
86
|
-
q(e.recordList),
|
|
86
|
+
q(e.recordList), k(L ? e.recordList.find((i) => i.id === L) : e.recordList[0]);
|
|
87
87
|
})
|
|
88
88
|
]).finally(() => N(!1)));
|
|
89
|
-
}, [r,
|
|
89
|
+
}, [r, L]), u(() => {
|
|
90
90
|
r && n.cvforceDatahub.getDatasetsId(r).then((e) => {
|
|
91
91
|
B(e);
|
|
92
92
|
});
|
|
93
93
|
}, []);
|
|
94
|
-
const
|
|
94
|
+
const le = () => {
|
|
95
95
|
!r || !t || n.cvforceDatahub.getDatasetsIdVersionsVid(r, t.id).then((e) => {
|
|
96
|
-
|
|
96
|
+
k(e), ke(e.versionAsyncTask.state);
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
99
|
u(() => {
|
|
100
|
-
|
|
100
|
+
le();
|
|
101
101
|
}, [r, t == null ? void 0 : t.id]), u(() => {
|
|
102
102
|
S !== x.Pending && S !== x.Started || W.warning("文件导入中,请刷新页面再试");
|
|
103
103
|
}, [S]), u(() => {
|
|
104
|
-
|
|
105
|
-
}, [
|
|
104
|
+
Ne(!ne && oe);
|
|
105
|
+
}, [ne, oe]);
|
|
106
106
|
const D = () => {
|
|
107
107
|
!r || !t || n.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(r, t.id).then((e) => {
|
|
108
108
|
const i = e.find((p) => p.id === "allcodeid"), m = e.find((p) => p.id === "nocodeid");
|
|
109
|
-
|
|
109
|
+
J(i ? i.count : 0), ee(m ? m.count : 0);
|
|
110
110
|
});
|
|
111
|
-
},
|
|
111
|
+
}, y = (e, i) => {
|
|
112
112
|
const m = (e == null ? void 0 : e.current) || l.current, p = (e == null ? void 0 : e.pageSize) || l.pageSize, $ = (e == null ? void 0 : e.type) || l.type, j = i || h || [];
|
|
113
113
|
if (!r || !t || !m)
|
|
114
114
|
return Promise.resolve(!1);
|
|
115
|
-
const
|
|
115
|
+
const Pe = () => {
|
|
116
116
|
switch (F) {
|
|
117
117
|
case "nocode":
|
|
118
118
|
return "nocode";
|
|
@@ -122,50 +122,50 @@ const xt = (f) => {
|
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
return m === 1 &&
|
|
125
|
+
return m === 1 && ie(), V(g(d({}, l), {
|
|
126
126
|
current: m,
|
|
127
127
|
pageSize: p
|
|
128
|
-
})), n.cvforceDatahub.getDatasetsIdVersionsVidSamples(r, t.id, {
|
|
128
|
+
})), G(!0), n.cvforceDatahub.getDatasetsIdVersionsVidSamples(r, t.id, {
|
|
129
129
|
pageNo: m,
|
|
130
130
|
pageSize: p,
|
|
131
|
-
labels:
|
|
132
|
-
}).then((
|
|
133
|
-
const v =
|
|
134
|
-
if (
|
|
131
|
+
labels: Pe()
|
|
132
|
+
}).then((ce) => {
|
|
133
|
+
const v = ce.recordList || [], ae = m === 1 ? v : $ === "prev" ? [...v, ...j] : [...j, ...v];
|
|
134
|
+
if (Se(ae), V(g(d({}, l), {
|
|
135
135
|
current: m,
|
|
136
136
|
pageSize: p,
|
|
137
137
|
type: void 0,
|
|
138
|
-
total:
|
|
138
|
+
total: ce.totalResults
|
|
139
139
|
})), $ === "next" && v.length) {
|
|
140
140
|
const R = j.length;
|
|
141
|
-
|
|
141
|
+
T(R), C(v[0]);
|
|
142
142
|
}
|
|
143
143
|
if ($ === "prev" && v.length) {
|
|
144
144
|
const R = v.length - 1;
|
|
145
|
-
|
|
145
|
+
T(R), C(v[R]);
|
|
146
146
|
}
|
|
147
|
-
return
|
|
148
|
-
}).catch(() => !1);
|
|
147
|
+
return ae;
|
|
148
|
+
}).catch(() => !1).finally(() => G(!1));
|
|
149
149
|
};
|
|
150
150
|
u(() => {
|
|
151
|
-
!t || !c || (
|
|
151
|
+
!t || !c || (y(g(d({}, l), {
|
|
152
152
|
current: 1
|
|
153
153
|
})).then((e) => {
|
|
154
154
|
}), D());
|
|
155
155
|
}, [c == null ? void 0 : c.id, t == null ? void 0 : t.id]), u(() => {
|
|
156
|
-
|
|
156
|
+
y().then((e) => {
|
|
157
157
|
}), D();
|
|
158
158
|
}, [l.current]), u(() => {
|
|
159
|
-
|
|
159
|
+
y(g(d({}, l), {
|
|
160
160
|
current: 1,
|
|
161
161
|
total: void 0
|
|
162
162
|
})).then((e) => {
|
|
163
163
|
});
|
|
164
164
|
}, [F]);
|
|
165
|
-
const
|
|
165
|
+
const Re = () => {
|
|
166
166
|
if (!h)
|
|
167
167
|
return;
|
|
168
|
-
const e =
|
|
168
|
+
const e = X + 1;
|
|
169
169
|
if (e >= h.length)
|
|
170
170
|
l.total && e >= l.total ? W.error("已经是最后一个了") : V({
|
|
171
171
|
current: l.current + 1,
|
|
@@ -173,14 +173,14 @@ const xt = (f) => {
|
|
|
173
173
|
type: "next"
|
|
174
174
|
});
|
|
175
175
|
else {
|
|
176
|
-
|
|
176
|
+
T(e);
|
|
177
177
|
const i = h[e];
|
|
178
178
|
C(i);
|
|
179
179
|
}
|
|
180
|
-
},
|
|
180
|
+
}, Ae = () => {
|
|
181
181
|
if (!h)
|
|
182
182
|
return;
|
|
183
|
-
const e =
|
|
183
|
+
const e = X - 1;
|
|
184
184
|
if (e < 0)
|
|
185
185
|
e < 0 ? W.error("已经是第一个了") : V({
|
|
186
186
|
current: l.current - 1,
|
|
@@ -188,21 +188,21 @@ const xt = (f) => {
|
|
|
188
188
|
type: "prev"
|
|
189
189
|
});
|
|
190
190
|
else {
|
|
191
|
-
|
|
191
|
+
T(e);
|
|
192
192
|
const i = h[e];
|
|
193
193
|
C(i);
|
|
194
194
|
}
|
|
195
|
-
},
|
|
195
|
+
}, Be = [{
|
|
196
196
|
key: "",
|
|
197
197
|
label: `全部(${U})`,
|
|
198
198
|
children: null
|
|
199
199
|
}, {
|
|
200
200
|
key: "nocode",
|
|
201
|
-
label: `未标注(${
|
|
201
|
+
label: `未标注(${Y})`,
|
|
202
202
|
children: null
|
|
203
203
|
}, {
|
|
204
204
|
key: "hascode",
|
|
205
|
-
label: `已标注(${U -
|
|
205
|
+
label: `已标注(${U - Y})`,
|
|
206
206
|
children: null
|
|
207
207
|
}];
|
|
208
208
|
u(() => {
|
|
@@ -211,76 +211,76 @@ const xt = (f) => {
|
|
|
211
211
|
c && c.markType !== "vlm" && console.error(`当前数据集不是vlm类型,请检查数据集类型。
|
|
212
212
|
请检查markType是否为vlm。`);
|
|
213
213
|
}, [c]);
|
|
214
|
-
const
|
|
214
|
+
const ie = () => {
|
|
215
215
|
var e, i;
|
|
216
216
|
(i = (e = z.current) == null ? void 0 : e.getElementsByClassName("rc-virtual-list-holder")[0]) == null || i.scrollTo({
|
|
217
217
|
top: 0
|
|
218
218
|
});
|
|
219
|
-
},
|
|
219
|
+
}, Ee = (e) => {
|
|
220
220
|
var i;
|
|
221
221
|
(!l.total || l.total > h.length) && e.currentTarget.scrollHeight - e.currentTarget.scrollTop === ((i = z.current) == null ? void 0 : i.clientHeight) && V(g(d({}, l), {
|
|
222
222
|
current: l.current + 1
|
|
223
223
|
}));
|
|
224
224
|
};
|
|
225
|
-
return /* @__PURE__ */ o(
|
|
226
|
-
locale:
|
|
227
|
-
children: /* @__PURE__ */ o(
|
|
225
|
+
return /* @__PURE__ */ o(We, {
|
|
226
|
+
locale: Je,
|
|
227
|
+
children: /* @__PURE__ */ o(ot.Provider, {
|
|
228
228
|
value: {
|
|
229
229
|
datasetId: r,
|
|
230
230
|
versionId: (t == null ? void 0 : t.id) || "",
|
|
231
231
|
no: (t == null ? void 0 : t.no) || "",
|
|
232
232
|
loading: O,
|
|
233
233
|
version: t,
|
|
234
|
-
versions:
|
|
234
|
+
versions: M,
|
|
235
235
|
samples: h,
|
|
236
236
|
pagination: l,
|
|
237
237
|
services: n,
|
|
238
|
-
token:
|
|
239
|
-
apiUrl:
|
|
238
|
+
token: ve,
|
|
239
|
+
apiUrl: ge,
|
|
240
240
|
featuresConfig: {
|
|
241
|
-
labelManager:
|
|
241
|
+
labelManager: me,
|
|
242
242
|
datasetManager: b,
|
|
243
|
-
annotation:
|
|
243
|
+
annotation: he,
|
|
244
244
|
filterSwitch: Z,
|
|
245
245
|
header: a,
|
|
246
|
-
exampleSrcRoot:
|
|
246
|
+
exampleSrcRoot: pe
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
|
-
children: c ? c.markType === "vlm" ? /* @__PURE__ */
|
|
249
|
+
children: c ? c.markType === "vlm" ? /* @__PURE__ */ I("div", {
|
|
250
250
|
className: "vlm-version-detail",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
251
|
+
children: [/* @__PURE__ */ I(tt, {
|
|
252
252
|
className: "product-details-page",
|
|
253
|
-
header: a === !1 ? void 0 : /* @__PURE__ */ o(
|
|
254
|
-
backTo:
|
|
253
|
+
header: a === !1 ? void 0 : /* @__PURE__ */ o(lt, {
|
|
254
|
+
backTo: fe,
|
|
255
255
|
onBackClick: a != null && a.onBackClick ? () => {
|
|
256
256
|
a.onBackClick && a.onBackClick();
|
|
257
257
|
} : void 0,
|
|
258
|
-
left: !O && /* @__PURE__ */
|
|
258
|
+
left: !O && /* @__PURE__ */ I(A, {
|
|
259
259
|
children: [/* @__PURE__ */ o("span", {
|
|
260
260
|
style: {
|
|
261
261
|
fontWeight: "bold"
|
|
262
262
|
},
|
|
263
263
|
children: c == null ? void 0 : c.name
|
|
264
|
-
}), /* @__PURE__ */ o(
|
|
264
|
+
}), /* @__PURE__ */ o(_e, {
|
|
265
265
|
disabled: (a == null ? void 0 : a.versionSelect) === !1,
|
|
266
266
|
value: t == null ? void 0 : t.id,
|
|
267
267
|
style: {
|
|
268
268
|
width: 70
|
|
269
269
|
},
|
|
270
|
-
options:
|
|
270
|
+
options: M.map((e) => ({
|
|
271
271
|
label: e.no,
|
|
272
272
|
value: e.id
|
|
273
273
|
})),
|
|
274
274
|
onChange: (e) => {
|
|
275
|
-
const i =
|
|
275
|
+
const i = M.find((p) => p.id === e);
|
|
276
276
|
if (!c || !i)
|
|
277
277
|
return;
|
|
278
|
-
const m =
|
|
279
|
-
|
|
278
|
+
const m = M.find((p) => p.id === i.id);
|
|
279
|
+
k(m), a != null && a.onVersionChange && a.onVersionChange(m);
|
|
280
280
|
}
|
|
281
281
|
})]
|
|
282
282
|
}),
|
|
283
|
-
right: /* @__PURE__ */
|
|
283
|
+
right: /* @__PURE__ */ I(A, {
|
|
284
284
|
children: [!w && b && b.add && // <DisabledTooltip
|
|
285
285
|
// isPreLabel={false}
|
|
286
286
|
// placement="bottom"
|
|
@@ -290,51 +290,51 @@ const xt = (f) => {
|
|
|
290
290
|
onClick: () => K(!0),
|
|
291
291
|
disabled: S === x.Pending || S === x.Started,
|
|
292
292
|
children: "导入数据"
|
|
293
|
-
}, "del"), /* @__PURE__ */ o(
|
|
294
|
-
when:
|
|
293
|
+
}, "del"), /* @__PURE__ */ o(st, {
|
|
294
|
+
when: Me,
|
|
295
295
|
content: "确认要离开此页面吗?",
|
|
296
296
|
subContent: "离开此页面后,将结束导入,放弃未上传的文件,请谨慎操作!"
|
|
297
|
-
}),
|
|
298
|
-
datasetIam:
|
|
297
|
+
}), re && /* @__PURE__ */ o(it, {
|
|
298
|
+
datasetIam: De,
|
|
299
299
|
datasetId: r,
|
|
300
300
|
currentVersion: t,
|
|
301
301
|
tenCode: c == null ? void 0 : c.tenantCode,
|
|
302
302
|
markType: c.markType,
|
|
303
|
-
isVisible:
|
|
303
|
+
isVisible: re,
|
|
304
304
|
setIsVisible: K,
|
|
305
305
|
getVersionListRequest: D,
|
|
306
|
-
setIsConfirm:
|
|
306
|
+
setIsConfirm: Te,
|
|
307
307
|
onUploadStatusChange: (e) => {
|
|
308
|
-
|
|
308
|
+
Le(e);
|
|
309
309
|
},
|
|
310
310
|
tableReload: () => {
|
|
311
|
-
t != null && t.id && (
|
|
311
|
+
t != null && t.id && (ie(), y(g(d({}, l), {
|
|
312
312
|
current: 1
|
|
313
313
|
})));
|
|
314
314
|
},
|
|
315
|
-
loadVersionData:
|
|
315
|
+
loadVersionData: le
|
|
316
316
|
})]
|
|
317
317
|
})
|
|
318
318
|
}),
|
|
319
|
-
children: [/* @__PURE__ */
|
|
319
|
+
children: [/* @__PURE__ */ I("div", {
|
|
320
320
|
className: "vlm-header",
|
|
321
321
|
children: [/* @__PURE__ */ o(A, {
|
|
322
|
-
children: Z.tabs && /* @__PURE__ */ o(
|
|
322
|
+
children: Z.tabs && /* @__PURE__ */ o(qe, {
|
|
323
323
|
className: "header-tab",
|
|
324
324
|
defaultActiveKey: "",
|
|
325
325
|
onChange: (e) => {
|
|
326
326
|
V(g(d({}, l), {
|
|
327
327
|
current: 1
|
|
328
328
|
// total: 0,
|
|
329
|
-
})),
|
|
329
|
+
})), Ie(e);
|
|
330
330
|
},
|
|
331
|
-
items:
|
|
331
|
+
items: Be
|
|
332
332
|
})
|
|
333
333
|
}), /* @__PURE__ */ o(A, {
|
|
334
334
|
children: b && b.label && /* @__PURE__ */ o(_, {
|
|
335
335
|
type: "primary",
|
|
336
336
|
disabled: !U,
|
|
337
|
-
onClick:
|
|
337
|
+
onClick: we,
|
|
338
338
|
style: {
|
|
339
339
|
marginRight: "10px"
|
|
340
340
|
},
|
|
@@ -346,26 +346,26 @@ const xt = (f) => {
|
|
|
346
346
|
children: /* @__PURE__ */ o("div", {
|
|
347
347
|
className: "d-right",
|
|
348
348
|
ref: z,
|
|
349
|
-
children: w ? /* @__PURE__ */ o("div", {}) : l.total !== void 0 && l.total > 0 ? /* @__PURE__ */ o(
|
|
350
|
-
children: /* @__PURE__ */ o(
|
|
349
|
+
children: w ? /* @__PURE__ */ o("div", {}) : l.total !== void 0 && l.total > 0 ? /* @__PURE__ */ o($e, {
|
|
350
|
+
children: /* @__PURE__ */ o(et, {
|
|
351
351
|
innerProps: {
|
|
352
352
|
className: "d-right-row"
|
|
353
353
|
},
|
|
354
354
|
data: h,
|
|
355
355
|
itemKey: "id",
|
|
356
|
-
height: (
|
|
357
|
-
onScroll:
|
|
358
|
-
children: (e, i) => /* @__PURE__ */ o(
|
|
356
|
+
height: (se = z.current) == null ? void 0 : se.clientHeight,
|
|
357
|
+
onScroll: Ee,
|
|
358
|
+
children: (e, i) => /* @__PURE__ */ o(Oe, {
|
|
359
359
|
className: "d-right-col",
|
|
360
|
-
onClick: () =>
|
|
360
|
+
onClick: () => ze(i),
|
|
361
361
|
children: /* @__PURE__ */ o("div", {
|
|
362
362
|
className: "right-col-wrapper",
|
|
363
363
|
children: /* @__PURE__ */ o("div", {
|
|
364
364
|
className: "right-col-img",
|
|
365
|
-
children: /* @__PURE__ */ o(
|
|
365
|
+
children: /* @__PURE__ */ o(rt, {
|
|
366
366
|
fileKey: e.fileKey,
|
|
367
367
|
width: 124,
|
|
368
|
-
imgProxy:
|
|
368
|
+
imgProxy: Ce
|
|
369
369
|
})
|
|
370
370
|
})
|
|
371
371
|
})
|
|
@@ -373,11 +373,11 @@ const xt = (f) => {
|
|
|
373
373
|
})
|
|
374
374
|
}) : /* @__PURE__ */ o("div", {
|
|
375
375
|
className: "empty",
|
|
376
|
-
children: l.total === 0 ? /* @__PURE__ */ o(
|
|
377
|
-
image:
|
|
378
|
-
description: /* @__PURE__ */
|
|
376
|
+
children: l.total === 0 ? /* @__PURE__ */ o(Ge, {
|
|
377
|
+
image: ct,
|
|
378
|
+
description: /* @__PURE__ */ I("span", {
|
|
379
379
|
children: ["暂无数据", F !== "hascode" && /* @__PURE__ */ o("span", {
|
|
380
|
-
children: b && b.add && /* @__PURE__ */
|
|
380
|
+
children: b && b.add && /* @__PURE__ */ I(_, {
|
|
381
381
|
type: "link",
|
|
382
382
|
size: "small",
|
|
383
383
|
style: {
|
|
@@ -398,37 +398,38 @@ const xt = (f) => {
|
|
|
398
398
|
})
|
|
399
399
|
})
|
|
400
400
|
})]
|
|
401
|
-
}), w && /* @__PURE__ */ o(
|
|
401
|
+
}), w && /* @__PURE__ */ o(Qe, {
|
|
402
402
|
isVlmModalVisible: E,
|
|
403
403
|
setIsVlmModalVisible: P,
|
|
404
404
|
record: w,
|
|
405
|
-
onNextClick: () =>
|
|
406
|
-
onPrevClick: () =>
|
|
405
|
+
onNextClick: () => Re(),
|
|
406
|
+
onPrevClick: () => Ae(),
|
|
407
|
+
listLoading: be,
|
|
407
408
|
ocrMarkTmpl: c == null ? void 0 : c.ocrMarkTmpl,
|
|
408
409
|
datasetId: r,
|
|
409
410
|
versionId: t == null ? void 0 : t.id,
|
|
410
411
|
handleMarkClick: (e) => {
|
|
411
|
-
|
|
412
|
+
Q(e), P(!1), H(!0);
|
|
412
413
|
},
|
|
413
414
|
updateSampleList: () => {
|
|
414
|
-
|
|
415
|
+
y(g(d({}, l), {
|
|
415
416
|
current: 1
|
|
416
417
|
})), D();
|
|
417
418
|
}
|
|
418
|
-
}),
|
|
419
|
-
visible:
|
|
420
|
-
selectSampleId:
|
|
419
|
+
}), te && (t == null ? void 0 : t.id) && /* @__PURE__ */ o(Xe, {
|
|
420
|
+
visible: te,
|
|
421
|
+
selectSampleId: ye,
|
|
421
422
|
datasetId: r,
|
|
422
423
|
versionId: t.id,
|
|
423
424
|
onClose: () => {
|
|
424
|
-
|
|
425
|
+
y(g(d({}, l), {
|
|
425
426
|
current: 1
|
|
426
427
|
})), D(), H(!1);
|
|
427
428
|
},
|
|
428
429
|
onSave: (e) => {
|
|
429
430
|
if (!r || !t)
|
|
430
431
|
throw "datasetId or version is not exist.";
|
|
431
|
-
return n.cvforceDatahub.updateSamples(r, t.id, [d({}, e)]).then(() => (
|
|
432
|
+
return n.cvforceDatahub.updateSamples(r, t.id, [d({}, e)]).then(() => (y(g(d({}, l), {
|
|
432
433
|
current: 1
|
|
433
434
|
})), D(), !0));
|
|
434
435
|
}
|
|
@@ -444,5 +445,5 @@ const xt = (f) => {
|
|
|
444
445
|
});
|
|
445
446
|
};
|
|
446
447
|
export {
|
|
447
|
-
|
|
448
|
+
Tt as default
|
|
448
449
|
};
|