@glodon-aiot/dataset-annotation 3.25.1-alpha.4 → 3.25.1-alpha.6
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/es/components/OcrAnnotation/OCRBoxDetail/index.mjs +94 -92
- package/dist/es/components/VersionCompare/VersionCompareSelectModal/index.mjs +17 -16
- package/dist/es/components/VersionCompare/components/SampleChangeDetailsCard.mjs +66 -73
- package/dist/es/components/VersionCompare/components/VersionCompareHeader.mjs +58 -66
- package/dist/es/index.mjs +1 -1
- package/dist/lib/index.js +5 -5
- package/package.json +2 -2
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Spin as x, Tooltip as E, Pagination as O } from "antd";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
var
|
|
9
|
-
if (!((
|
|
1
|
+
import { jsxs as c, jsx as a, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { Tabs as q, Spin as x, Tooltip as E, Pagination as O } from "antd";
|
|
3
|
+
import V from "classnames";
|
|
4
|
+
import A from "../../Thumbnail/index.mjs";
|
|
5
|
+
import F from "../../DetectionStatus/index.mjs";
|
|
6
|
+
import I from "../../DataEmpty/index.mjs";
|
|
7
|
+
const J = (i) => {
|
|
8
|
+
var o;
|
|
9
|
+
if (!((o = i == null ? void 0 : i.labels) != null && o.length))
|
|
10
10
|
return [];
|
|
11
|
-
const
|
|
12
|
-
return
|
|
13
|
-
var
|
|
14
|
-
const l = (
|
|
15
|
-
l &&
|
|
16
|
-
}), Array.from(
|
|
17
|
-
},
|
|
11
|
+
const t = /* @__PURE__ */ new Set();
|
|
12
|
+
return i.labels.forEach((r) => {
|
|
13
|
+
var s;
|
|
14
|
+
const l = (s = r == null ? void 0 : r.label) == null ? void 0 : s.trim();
|
|
15
|
+
l && t.add(l);
|
|
16
|
+
}), Array.from(t);
|
|
17
|
+
}, W = (i) => {
|
|
18
18
|
var b, p, N, g;
|
|
19
19
|
const {
|
|
20
|
-
baseVersionNo:
|
|
21
|
-
targetVersionNo:
|
|
22
|
-
isOcrDetection:
|
|
20
|
+
baseVersionNo: t,
|
|
21
|
+
targetVersionNo: o,
|
|
22
|
+
isOcrDetection: r,
|
|
23
23
|
changeStats: l,
|
|
24
|
-
activeTab:
|
|
24
|
+
activeTab: s,
|
|
25
25
|
items: v,
|
|
26
|
-
total:
|
|
26
|
+
total: T,
|
|
27
27
|
pageNo: u,
|
|
28
28
|
pageSize: f,
|
|
29
|
-
loading:
|
|
30
|
-
imgProxy:
|
|
31
|
-
onTabChange:
|
|
32
|
-
onPageChange:
|
|
29
|
+
loading: $ = !1,
|
|
30
|
+
imgProxy: D,
|
|
31
|
+
onTabChange: U,
|
|
32
|
+
onPageChange: z,
|
|
33
33
|
onSampleClick: h
|
|
34
|
-
} =
|
|
34
|
+
} = i, L = [{
|
|
35
35
|
key: "added",
|
|
36
36
|
label: "新增",
|
|
37
37
|
count: (b = l == null ? void 0 : l.addedCount) != null ? b : 0
|
|
@@ -48,66 +48,59 @@ const I = (s) => {
|
|
|
48
48
|
label: "无变动",
|
|
49
49
|
count: (g = l == null ? void 0 : l.unchangedCount) != null ? g : 0
|
|
50
50
|
}];
|
|
51
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ c("div", {
|
|
52
52
|
className: "vc-card vc-sample-details-card",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
54
|
-
children: [/* @__PURE__ */
|
|
53
|
+
children: [/* @__PURE__ */ c("div", {
|
|
54
|
+
children: [/* @__PURE__ */ c("div", {
|
|
55
55
|
className: "vc-card-header",
|
|
56
56
|
children: [/* @__PURE__ */ a("h3", {
|
|
57
57
|
className: "vc-card-title",
|
|
58
58
|
children: "数据变更详情"
|
|
59
|
-
}), /* @__PURE__ */
|
|
59
|
+
}), /* @__PURE__ */ c("span", {
|
|
60
60
|
className: "vc-card-subtitle",
|
|
61
|
-
children: ["(",
|
|
61
|
+
children: ["(", t || "-", " → ", o || "-", ")"]
|
|
62
62
|
})]
|
|
63
|
-
}), /* @__PURE__ */ a(
|
|
64
|
-
className: "vc-sample-tabs
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}),
|
|
74
|
-
onClick: () => {
|
|
75
|
-
c.key !== t && L(c.key);
|
|
76
|
-
},
|
|
77
|
-
children: [c.label, " (", c.count, ")"]
|
|
78
|
-
}, c.key);
|
|
79
|
-
})
|
|
63
|
+
}), /* @__PURE__ */ a(q, {
|
|
64
|
+
className: "vc-sample-tabs",
|
|
65
|
+
activeKey: s,
|
|
66
|
+
onChange: (n) => {
|
|
67
|
+
n !== s && U(n);
|
|
68
|
+
},
|
|
69
|
+
items: L.map((n) => ({
|
|
70
|
+
key: n.key,
|
|
71
|
+
label: `${n.label} (${n.count})`
|
|
72
|
+
}))
|
|
80
73
|
})]
|
|
81
74
|
}), /* @__PURE__ */ a(x, {
|
|
82
|
-
spinning:
|
|
83
|
-
children: v.length > 0 ? /* @__PURE__ */
|
|
75
|
+
spinning: $,
|
|
76
|
+
children: v.length > 0 ? /* @__PURE__ */ c(j, {
|
|
84
77
|
children: [/* @__PURE__ */ a("div", {
|
|
85
78
|
className: "vc-sample-grid",
|
|
86
|
-
children: v.map((
|
|
87
|
-
var y,
|
|
88
|
-
const e =
|
|
89
|
-
return /* @__PURE__ */
|
|
79
|
+
children: v.map((n, d) => {
|
|
80
|
+
var y, k;
|
|
81
|
+
const e = n.sample, P = (u - 1) * f + d + 1, m = r ? [] : J(e), C = ((k = (y = e == null ? void 0 : e.labels) == null ? void 0 : y[0]) == null ? void 0 : k.label) || m[0] || "", w = m.length >= 2 ? `+${m.length - 1}` : null;
|
|
82
|
+
return /* @__PURE__ */ c("div", {
|
|
90
83
|
className: "vc-sample-card",
|
|
91
|
-
"data-sample-id": (e == null ? void 0 : e.id) ||
|
|
92
|
-
onClick: () => h == null ? void 0 : h(
|
|
84
|
+
"data-sample-id": (e == null ? void 0 : e.id) || n.fileKey || String(d),
|
|
85
|
+
onClick: () => h == null ? void 0 : h(n, d),
|
|
93
86
|
children: [/* @__PURE__ */ a("div", {
|
|
94
87
|
className: "vc-detection-status-wrapper",
|
|
95
|
-
children: /* @__PURE__ */ a(
|
|
88
|
+
children: /* @__PURE__ */ a(F, {
|
|
96
89
|
sample: e
|
|
97
90
|
})
|
|
98
91
|
}), /* @__PURE__ */ a("div", {
|
|
99
92
|
className: "vc-sample-card-img",
|
|
100
|
-
children: /* @__PURE__ */ a(
|
|
101
|
-
fileKey: (e == null ? void 0 : e.fileKey) ||
|
|
93
|
+
children: /* @__PURE__ */ a(A, {
|
|
94
|
+
fileKey: (e == null ? void 0 : e.fileKey) || n.fileKey,
|
|
102
95
|
width: 124,
|
|
103
96
|
thumbnailUrl: (e == null ? void 0 : e.thumbnailUrl) || (e == null ? void 0 : e.fileUrl),
|
|
104
|
-
imgProxy:
|
|
97
|
+
imgProxy: D
|
|
105
98
|
})
|
|
106
|
-
}), /* @__PURE__ */
|
|
107
|
-
className:
|
|
108
|
-
"is-ocr":
|
|
99
|
+
}), /* @__PURE__ */ c("div", {
|
|
100
|
+
className: V("vc-sample-card-footer", {
|
|
101
|
+
"is-ocr": r
|
|
109
102
|
}),
|
|
110
|
-
children: [!
|
|
103
|
+
children: [!r && /* @__PURE__ */ a("div", {
|
|
111
104
|
className: "vc-sample-label-info",
|
|
112
105
|
children: C ? /* @__PURE__ */ a(E, {
|
|
113
106
|
placement: "top",
|
|
@@ -116,7 +109,7 @@ const I = (s) => {
|
|
|
116
109
|
children: K
|
|
117
110
|
}, K))
|
|
118
111
|
}),
|
|
119
|
-
children: /* @__PURE__ */
|
|
112
|
+
children: /* @__PURE__ */ c("div", {
|
|
120
113
|
style: {
|
|
121
114
|
width: "100%",
|
|
122
115
|
display: "flex",
|
|
@@ -125,9 +118,9 @@ const I = (s) => {
|
|
|
125
118
|
children: [/* @__PURE__ */ a("span", {
|
|
126
119
|
className: "vc-sample-first-label",
|
|
127
120
|
children: C
|
|
128
|
-
}),
|
|
121
|
+
}), w && /* @__PURE__ */ a("span", {
|
|
129
122
|
className: "vc-sample-more-count",
|
|
130
|
-
children:
|
|
123
|
+
children: w
|
|
131
124
|
})]
|
|
132
125
|
})
|
|
133
126
|
}) : /* @__PURE__ */ a("span", {
|
|
@@ -136,26 +129,26 @@ const I = (s) => {
|
|
|
136
129
|
})
|
|
137
130
|
}), /* @__PURE__ */ a("div", {
|
|
138
131
|
className: "vc-sample-serial",
|
|
139
|
-
children:
|
|
132
|
+
children: P
|
|
140
133
|
})]
|
|
141
134
|
})]
|
|
142
|
-
}, `${
|
|
135
|
+
}, `${n.changeType}-${n.fileKey || (e == null ? void 0 : e.id) || d}`);
|
|
143
136
|
})
|
|
144
137
|
}), /* @__PURE__ */ a("div", {
|
|
145
138
|
className: "vc-sample-pagination",
|
|
146
139
|
children: /* @__PURE__ */ a(O, {
|
|
147
140
|
current: u,
|
|
148
141
|
pageSize: f,
|
|
149
|
-
total:
|
|
142
|
+
total: T,
|
|
150
143
|
showQuickJumper: !0,
|
|
151
144
|
showSizeChanger: !0,
|
|
152
145
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
153
|
-
onChange:
|
|
146
|
+
onChange: z
|
|
154
147
|
})
|
|
155
148
|
})]
|
|
156
149
|
}) : /* @__PURE__ */ a("div", {
|
|
157
150
|
className: "vc-sample-empty-wrapper",
|
|
158
|
-
children: /* @__PURE__ */ a(
|
|
151
|
+
children: /* @__PURE__ */ a(I, {
|
|
159
152
|
description: "当前分类下暂无图片数据"
|
|
160
153
|
})
|
|
161
154
|
})
|
|
@@ -163,5 +156,5 @@ const I = (s) => {
|
|
|
163
156
|
});
|
|
164
157
|
};
|
|
165
158
|
export {
|
|
166
|
-
|
|
159
|
+
W as default
|
|
167
160
|
};
|
|
@@ -1,38 +1,34 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { ArrowLeftOutlined as
|
|
4
|
-
const
|
|
2
|
+
import { Button as r } from "antd";
|
|
3
|
+
import { ArrowLeftOutlined as n, ArrowRightOutlined as t } from "@ant-design/icons";
|
|
4
|
+
const b = (l) => {
|
|
5
5
|
const {
|
|
6
|
-
datasetName:
|
|
6
|
+
datasetName: i,
|
|
7
7
|
baseVersionNo: d,
|
|
8
|
-
targetVersionNo:
|
|
9
|
-
formattedCompareTime:
|
|
10
|
-
showBreadcrumb:
|
|
11
|
-
onBack:
|
|
12
|
-
onReselect:
|
|
13
|
-
} =
|
|
8
|
+
targetVersionNo: m,
|
|
9
|
+
formattedCompareTime: o,
|
|
10
|
+
showBreadcrumb: s = !0,
|
|
11
|
+
onBack: c,
|
|
12
|
+
onReselect: v
|
|
13
|
+
} = l;
|
|
14
14
|
return /* @__PURE__ */ a("div", {
|
|
15
15
|
className: "vc-top-bar-wrapper",
|
|
16
|
-
children: [
|
|
16
|
+
children: [s && /* @__PURE__ */ e("div", {
|
|
17
17
|
className: "vc-breadcrumb-bar",
|
|
18
18
|
children: /* @__PURE__ */ a("div", {
|
|
19
19
|
className: "vc-breadcrumb-left",
|
|
20
|
-
children: [/* @__PURE__ */ e(
|
|
20
|
+
children: [/* @__PURE__ */ e(r, {
|
|
21
|
+
type: "link",
|
|
21
22
|
className: "vc-back-btn",
|
|
22
|
-
role: "button",
|
|
23
|
-
tabIndex: 0,
|
|
24
23
|
"aria-label": "返回",
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(c.key === "Enter" || c.key === " ") && (r == null || r());
|
|
28
|
-
},
|
|
29
|
-
children: /* @__PURE__ */ e(l, {})
|
|
24
|
+
icon: /* @__PURE__ */ e(n, {}),
|
|
25
|
+
onClick: c
|
|
30
26
|
}), /* @__PURE__ */ a("nav", {
|
|
31
27
|
className: "vc-breadcrumb-nav",
|
|
32
28
|
"aria-label": "面包屑",
|
|
33
29
|
children: [/* @__PURE__ */ e("span", {
|
|
34
30
|
className: "vc-breadcrumb-link",
|
|
35
|
-
onClick:
|
|
31
|
+
onClick: c,
|
|
36
32
|
children: "数据集管理"
|
|
37
33
|
}), /* @__PURE__ */ e("span", {
|
|
38
34
|
className: "vc-breadcrumb-sep",
|
|
@@ -49,66 +45,62 @@ const f = (i) => {
|
|
|
49
45
|
className: "vc-header-left",
|
|
50
46
|
children: [/* @__PURE__ */ a("div", {
|
|
51
47
|
className: "vc-dataset-title-group",
|
|
52
|
-
children: [!
|
|
48
|
+
children: [!s && /* @__PURE__ */ e(r, {
|
|
49
|
+
type: "link",
|
|
53
50
|
className: "vc-inline-back-btn",
|
|
54
|
-
role: "button",
|
|
55
|
-
tabIndex: 0,
|
|
56
51
|
"aria-label": "返回",
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
children:
|
|
62
|
-
}), /* @__PURE__ */ e(v, {
|
|
63
|
-
title: s,
|
|
64
|
-
children: /* @__PURE__ */ e("span", {
|
|
65
|
-
className: "vc-dataset-name",
|
|
66
|
-
children: s || "-"
|
|
67
|
-
})
|
|
52
|
+
icon: /* @__PURE__ */ e(n, {}),
|
|
53
|
+
onClick: c
|
|
54
|
+
}), /* @__PURE__ */ e("span", {
|
|
55
|
+
className: "vc-dataset-name",
|
|
56
|
+
children: i || "-"
|
|
68
57
|
})]
|
|
69
58
|
}), /* @__PURE__ */ a("div", {
|
|
70
|
-
className: "vc-
|
|
71
|
-
children: [/* @__PURE__ */
|
|
72
|
-
className: "vc-version-
|
|
73
|
-
children: "
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
className: "vc-version-
|
|
78
|
-
children: [/* @__PURE__ */
|
|
79
|
-
className: "vc-version-
|
|
80
|
-
children:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"aria-label": "对比方向",
|
|
88
|
-
children: /* @__PURE__ */ e(h, {})
|
|
89
|
-
}), /* @__PURE__ */ a("span", {
|
|
90
|
-
className: "vc-version-tag",
|
|
91
|
-
children: [/* @__PURE__ */ e("span", {
|
|
92
|
-
className: "vc-version-no",
|
|
93
|
-
children: o || "-"
|
|
59
|
+
className: "vc-header-meta",
|
|
60
|
+
children: [/* @__PURE__ */ a("div", {
|
|
61
|
+
className: "vc-version-direction",
|
|
62
|
+
children: [/* @__PURE__ */ e("span", {
|
|
63
|
+
className: "vc-version-label",
|
|
64
|
+
children: "对比版本:"
|
|
65
|
+
}), /* @__PURE__ */ a("div", {
|
|
66
|
+
className: "vc-version-pair",
|
|
67
|
+
children: [/* @__PURE__ */ a("span", {
|
|
68
|
+
className: "vc-version-tag",
|
|
69
|
+
children: [/* @__PURE__ */ e("span", {
|
|
70
|
+
className: "vc-version-no",
|
|
71
|
+
children: d || "-"
|
|
72
|
+
}), /* @__PURE__ */ e("span", {
|
|
73
|
+
className: "vc-version-role",
|
|
74
|
+
children: "(基准版本)"
|
|
75
|
+
})]
|
|
94
76
|
}), /* @__PURE__ */ e("span", {
|
|
95
|
-
className: "vc-version-
|
|
96
|
-
|
|
77
|
+
className: "vc-version-arrow",
|
|
78
|
+
"aria-label": "对比方向",
|
|
79
|
+
children: /* @__PURE__ */ e(t, {})
|
|
80
|
+
}), /* @__PURE__ */ a("span", {
|
|
81
|
+
className: "vc-version-tag",
|
|
82
|
+
children: [/* @__PURE__ */ e("span", {
|
|
83
|
+
className: "vc-version-no",
|
|
84
|
+
children: m || "-"
|
|
85
|
+
}), /* @__PURE__ */ e("span", {
|
|
86
|
+
className: "vc-version-role",
|
|
87
|
+
children: "(目标版本)"
|
|
88
|
+
})]
|
|
97
89
|
})]
|
|
98
90
|
})]
|
|
91
|
+
}), /* @__PURE__ */ a("span", {
|
|
92
|
+
className: "vc-compare-time",
|
|
93
|
+
children: ["对比时间:", o || "-"]
|
|
99
94
|
})]
|
|
100
|
-
}), /* @__PURE__ */ a("span", {
|
|
101
|
-
className: "vc-compare-time",
|
|
102
|
-
children: ["对比时间:", t || "-"]
|
|
103
95
|
})]
|
|
104
|
-
}), /* @__PURE__ */ e(
|
|
96
|
+
}), /* @__PURE__ */ e(r, {
|
|
105
97
|
className: "vc-reselect-btn",
|
|
106
|
-
onClick:
|
|
98
|
+
onClick: v,
|
|
107
99
|
children: "重新选择"
|
|
108
100
|
})]
|
|
109
101
|
})]
|
|
110
102
|
});
|
|
111
103
|
};
|
|
112
104
|
export {
|
|
113
|
-
|
|
105
|
+
b as default
|
|
114
106
|
};
|