@glodon-aiot/dataset-annotation 3.13.0-alpha.27 → 3.13.0-alpha.28

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.
@@ -1,36 +1,36 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { useState as j } from "react";
3
- import { Modal as E, Tabs as K, Space as V, Button as a } from "antd";
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 B from "../ImageDetail/index.mjs";
5
+ import V from "../ImageDetail/index.mjs";
6
6
  import "./style.less.mjs";
7
- const A = (v) => {
7
+ import B from "../../../DataEmpty/index.mjs";
8
+ const G = (u) => {
8
9
  const {
9
- datasetId: u,
10
- setIsImageDetailVisible: d,
11
- isImageDetailVisible: s = !0,
12
- currentSample: N,
10
+ datasetId: v,
11
+ setIsImageDetailVisible: s,
12
+ isImageDetailVisible: c = !0,
13
+ currentSample: o,
13
14
  onNextClick: t,
14
15
  onPrevClick: r,
15
- onSave: k,
16
- onDeleteSample: c,
16
+ onSave: N,
17
+ onDeleteSample: m,
17
18
  labels: y = [],
18
- editing: m,
19
- onRefresh: I,
20
- onChange: L,
21
- isPreLabel: o,
22
- settingHide: w,
19
+ onRefresh: k,
20
+ onChange: I,
21
+ isPreLabel: n,
22
+ settingHide: L,
23
23
  imgCount: F,
24
- showLabelList: S = !0,
25
- renderLabelItem: x,
26
- onEnterEdit: h,
27
- filterItems: f,
28
- filterMode: D,
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: n = !1,
30
+ previewMode: i = !0,
31
+ canLabel: d = !1,
32
32
  canDelete: g = !1
33
- } = v, [C, M] = j(!1);
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: s,
47
- onCancel: () => d(!1),
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: m && f && /* @__PURE__ */ e(K, {
59
- activeKey: D,
60
- items: f,
61
- onChange: (P) => p && p(P)
58
+ children: !i && h && /* @__PURE__ */ e(j, {
59
+ activeKey: S,
60
+ items: h,
61
+ onChange: (M) => p && p(M)
62
62
  })
63
- }), /* @__PURE__ */ e(B, {
64
- datasetId: u,
65
- isImageDetailVisible: s,
66
- setIsImageDetailVisible: d,
67
- currentSample: N,
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: m,
72
- onRefresh: I,
73
- onChange: L,
74
- isPreLabel: o,
75
- settingHide: w,
76
- readonly: i || !n,
77
- showLabelList: i ? !1 : S,
78
- renderLabelItem: x,
79
- onLoadingChange: M
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(V, {
83
- children: [h && n && /* @__PURE__ */ e("div", {
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: h,
87
+ onClick: f,
88
88
  children: "标注"
89
89
  })
90
90
  }), g && /* @__PURE__ */ e(a, {
91
91
  danger: !0,
92
- onClick: c,
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: [n && /* @__PURE__ */ e(a, {
112
+ children: [d && /* @__PURE__ */ e(a, {
113
113
  type: "primary",
114
- onClick: k,
115
- disabled: o,
114
+ onClick: N,
115
+ disabled: n,
116
116
  children: "保存标注"
117
117
  }), g && /* @__PURE__ */ e(a, {
118
- onClick: c,
119
- disabled: o,
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
- A as default
128
+ G as default
129
129
  };