@glodon-aiot/dataset-annotation 3.13.0-alpha.27 → 3.13.0-alpha.29
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/DetectionAnnotation/components/ImageModal/index.mjs +54 -54
- package/dist/es/components/DetectionAnnotation/index.mjs +414 -408
- package/dist/es/index.mjs +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/src/components/DetectionAnnotation/components/ImageModal/index.d.ts +0 -1
- package/package.json +2 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Modal as E, Tabs as
|
|
2
|
+
import { useState as P } from "react";
|
|
3
|
+
import { Modal as E, Tabs as j, Space as K, Button as a } from "antd";
|
|
4
4
|
import { useKeyPress as b } from "ahooks";
|
|
5
|
-
import
|
|
5
|
+
import V from "../ImageDetail/index.mjs";
|
|
6
6
|
import "./style.less.mjs";
|
|
7
|
-
|
|
7
|
+
import B from "../../../DataEmpty/index.mjs";
|
|
8
|
+
const G = (u) => {
|
|
8
9
|
const {
|
|
9
|
-
datasetId:
|
|
10
|
-
setIsImageDetailVisible:
|
|
11
|
-
isImageDetailVisible:
|
|
12
|
-
currentSample:
|
|
10
|
+
datasetId: v,
|
|
11
|
+
setIsImageDetailVisible: s,
|
|
12
|
+
isImageDetailVisible: c = !0,
|
|
13
|
+
currentSample: o,
|
|
13
14
|
onNextClick: t,
|
|
14
15
|
onPrevClick: r,
|
|
15
|
-
onSave:
|
|
16
|
-
onDeleteSample:
|
|
16
|
+
onSave: N,
|
|
17
|
+
onDeleteSample: m,
|
|
17
18
|
labels: y = [],
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
settingHide: w,
|
|
19
|
+
onRefresh: k,
|
|
20
|
+
onChange: I,
|
|
21
|
+
isPreLabel: n,
|
|
22
|
+
settingHide: L,
|
|
23
23
|
imgCount: F,
|
|
24
|
-
showLabelList:
|
|
25
|
-
renderLabelItem:
|
|
26
|
-
onEnterEdit:
|
|
27
|
-
filterItems:
|
|
28
|
-
filterMode:
|
|
24
|
+
showLabelList: w = !0,
|
|
25
|
+
renderLabelItem: D,
|
|
26
|
+
onEnterEdit: f,
|
|
27
|
+
filterItems: h,
|
|
28
|
+
filterMode: S,
|
|
29
29
|
onFilterChange: p,
|
|
30
|
-
previewMode: i,
|
|
31
|
-
canLabel:
|
|
30
|
+
previewMode: i = !0,
|
|
31
|
+
canLabel: d = !1,
|
|
32
32
|
canDelete: g = !1
|
|
33
|
-
} =
|
|
33
|
+
} = u, [C, x] = P(!1);
|
|
34
34
|
return b("rightarrow", () => {
|
|
35
35
|
i || t && t();
|
|
36
36
|
}), b("leftarrow", () => {
|
|
@@ -43,8 +43,8 @@ const A = (v) => {
|
|
|
43
43
|
})
|
|
44
44
|
}),
|
|
45
45
|
width: "100%",
|
|
46
|
-
open:
|
|
47
|
-
onCancel: () =>
|
|
46
|
+
open: c,
|
|
47
|
+
onCancel: () => s(!1),
|
|
48
48
|
footer: null,
|
|
49
49
|
centered: !0,
|
|
50
50
|
wrapClassName: "detection-modal-wrap",
|
|
@@ -55,41 +55,41 @@ const A = (v) => {
|
|
|
55
55
|
destroyOnClose: !1,
|
|
56
56
|
children: [/* @__PURE__ */ e("div", {
|
|
57
57
|
className: "detail-tabs",
|
|
58
|
-
children:
|
|
59
|
-
activeKey:
|
|
60
|
-
items:
|
|
61
|
-
onChange: (
|
|
58
|
+
children: !i && h && /* @__PURE__ */ e(j, {
|
|
59
|
+
activeKey: S,
|
|
60
|
+
items: h,
|
|
61
|
+
onChange: (M) => p && p(M)
|
|
62
62
|
})
|
|
63
|
-
}), /* @__PURE__ */ e(
|
|
64
|
-
datasetId:
|
|
65
|
-
isImageDetailVisible:
|
|
66
|
-
setIsImageDetailVisible:
|
|
67
|
-
currentSample:
|
|
63
|
+
}), o ? /* @__PURE__ */ e(V, {
|
|
64
|
+
datasetId: v,
|
|
65
|
+
isImageDetailVisible: c,
|
|
66
|
+
setIsImageDetailVisible: s,
|
|
67
|
+
currentSample: o,
|
|
68
68
|
onNextClick: i ? t : void 0,
|
|
69
69
|
onPrevClick: i ? r : void 0,
|
|
70
70
|
labels: y,
|
|
71
|
-
editing:
|
|
72
|
-
onRefresh:
|
|
73
|
-
onChange:
|
|
74
|
-
isPreLabel:
|
|
75
|
-
settingHide:
|
|
76
|
-
readonly: i || !
|
|
77
|
-
showLabelList: i ? !1 :
|
|
78
|
-
renderLabelItem:
|
|
79
|
-
onLoadingChange:
|
|
80
|
-
}), /* @__PURE__ */ e("div", {
|
|
71
|
+
editing: !i,
|
|
72
|
+
onRefresh: k,
|
|
73
|
+
onChange: I,
|
|
74
|
+
isPreLabel: n,
|
|
75
|
+
settingHide: L,
|
|
76
|
+
readonly: i || !d,
|
|
77
|
+
showLabelList: i ? !1 : w,
|
|
78
|
+
renderLabelItem: D,
|
|
79
|
+
onLoadingChange: x
|
|
80
|
+
}) : /* @__PURE__ */ e(B, {}), o && /* @__PURE__ */ e("div", {
|
|
81
81
|
className: "detail-footer",
|
|
82
|
-
children: i ? /* @__PURE__ */ l(
|
|
83
|
-
children: [
|
|
82
|
+
children: i ? /* @__PURE__ */ l(K, {
|
|
83
|
+
children: [f && d && /* @__PURE__ */ e("div", {
|
|
84
84
|
className: "detail-actions",
|
|
85
85
|
children: /* @__PURE__ */ e(a, {
|
|
86
86
|
type: "primary",
|
|
87
|
-
onClick:
|
|
87
|
+
onClick: f,
|
|
88
88
|
children: "标注"
|
|
89
89
|
})
|
|
90
90
|
}), g && /* @__PURE__ */ e(a, {
|
|
91
91
|
danger: !0,
|
|
92
|
-
onClick:
|
|
92
|
+
onClick: m,
|
|
93
93
|
children: "删除数据"
|
|
94
94
|
})]
|
|
95
95
|
}) : /* @__PURE__ */ l("div", {
|
|
@@ -109,14 +109,14 @@ const A = (v) => {
|
|
|
109
109
|
})]
|
|
110
110
|
}), /* @__PURE__ */ l("div", {
|
|
111
111
|
className: "footer-right",
|
|
112
|
-
children: [
|
|
112
|
+
children: [d && /* @__PURE__ */ e(a, {
|
|
113
113
|
type: "primary",
|
|
114
|
-
onClick:
|
|
115
|
-
disabled:
|
|
114
|
+
onClick: N,
|
|
115
|
+
disabled: n,
|
|
116
116
|
children: "保存标注"
|
|
117
117
|
}), g && /* @__PURE__ */ e(a, {
|
|
118
|
-
onClick:
|
|
119
|
-
disabled:
|
|
118
|
+
onClick: m,
|
|
119
|
+
disabled: n,
|
|
120
120
|
children: "删除数据"
|
|
121
121
|
})]
|
|
122
122
|
})]
|
|
@@ -125,5 +125,5 @@ const A = (v) => {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
export {
|
|
128
|
-
|
|
128
|
+
G as default
|
|
129
129
|
};
|