@xtctwins/tctwins-bimx-engine 0.2.49 → 0.2.50

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.
Files changed (85) hide show
  1. package/README.md +193 -193
  2. package/dist/{AnnotationTool-BIQYccLV.mjs → AnnotationTool-ClUqfSZp.mjs} +35 -35
  3. package/dist/BIMX_Viewer_Lib.es.js +3 -3
  4. package/dist/BIMX_Viewer_Lib.umd.js +130 -138
  5. package/dist/{CommentTool-CTH0u76a.mjs → CommentTool-DcAcusOm.mjs} +168 -168
  6. package/dist/{HiddenTool-B1o4e4Mi.mjs → HiddenTool-D0kbPBtX.mjs} +13 -13
  7. package/dist/{InspectorTool-BnKwoEV6.mjs → InspectorTool-BMXg86Ow.mjs} +64 -64
  8. package/dist/{MeasureTool-DD0MQlVK.mjs → MeasureTool-CN4zNj6w.mjs} +22 -22
  9. package/dist/{MouseTool-B99s92wL.mjs → MouseTool-Dcp3UTRv.mjs} +15 -15
  10. package/dist/{NavigateTool-Bzni_edr.mjs → NavigateTool-TVHCkKRU.mjs} +13 -13
  11. package/dist/{RoamTool-BnF-1cl2.mjs → RoamTool-CkYHH7aP.mjs} +17 -17
  12. package/dist/ScreenShotTool-DC4RyElm.mjs +500 -0
  13. package/dist/{SectionTool-DJjxjkhi.mjs → SectionTool-Vn7purnG.mjs} +43 -43
  14. package/dist/SettingTool-DWoeF-dC.mjs +815 -0
  15. package/dist/StructureTree-DZ0gUacM.mjs +1846 -0
  16. package/dist/{alert-BMV9n7SQ.mjs → alert-BkyuKyki.mjs} +9 -9
  17. package/dist/el-input-number-CUWk0tiM.mjs +1169 -0
  18. package/dist/{index-BaDPCrAt.mjs → index-CBXvm6RA.mjs} +51711 -47848
  19. package/dist/index.html +17 -17
  20. package/dist/{panel.vue_vue_type_style_index_0_lang-oT_Sff-F.mjs → panel.vue_vue_type_style_index_0_lang-IOvVcvu7.mjs} +3 -3
  21. package/dist/style.css +1 -1
  22. package/dist/{tallPanel-DojXnxix.mjs → tallPanel-HBoW6JCm.mjs} +15 -15
  23. package/package.json +2 -2
  24. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
  25. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
  26. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
  27. package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
  28. package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
  29. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
  30. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
  31. package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
  32. package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
  33. package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
  34. package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
  35. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
  36. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  37. package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
  38. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  39. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
  40. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  41. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
  42. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
  43. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  44. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +478 -1
  45. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +499 -7
  46. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
  47. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  48. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  49. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  50. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  51. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
  52. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +4026 -1
  53. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  54. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +18 -1
  55. package/types/components/BimxViewerComp.vue.d.ts +7 -14
  56. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
  57. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
  58. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +499 -7
  59. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +478 -1
  60. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
  61. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
  62. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
  63. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -7
  64. package/types/components/bimxViewer.vue.d.ts +7 -14
  65. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  66. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  67. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  68. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  69. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  70. package/types/components/utilsComponents/panel.vue.d.ts +8 -2
  71. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  72. package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
  73. package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
  74. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
  75. package/types/pages/BimxViewerEntry.vue.d.ts +5 -57
  76. package/types/pages/viewerEntry.vue.d.ts +7 -57
  77. package/types/store/initConfigs.d.ts +1 -1
  78. package/types/store/toolbars.d.ts +46 -46
  79. package/dist/ScreenShotTool-CSBJzyDd.mjs +0 -357
  80. package/dist/SettingTool-D2qksFZK.mjs +0 -657
  81. package/dist/StructureTree-DrLo9Bch.mjs +0 -1583
  82. package/dist/el-input-number-BOQOKzK0.mjs +0 -818
  83. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
  84. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
  85. package/types/tests/cmt.d.ts +0 -1
@@ -1,12 +1,12 @@
1
- import { defineComponent as b, onMounted as p, ref as w, openBlock as n, createElementBlock as i, createElementVNode as s, Fragment as g, renderList as f, unref as a, normalizeClass as h, toDisplayString as I } from "vue";
2
- import { n as N, o as S, O as T } from "./index-BaDPCrAt.mjs";
3
- import { N as k } from "./const-DOnRsYpZ.mjs";
4
- const B = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onClick"], y = { class: "best-view-icon" }, A = ["src"], C = { class: "best-view-name" }, R = /* @__PURE__ */ b({
1
+ import { defineComponent as b, onMounted as p, ref as w, createElementBlock as n, openBlock as i, createElementVNode as s, Fragment as g, renderList as f, unref as a, normalizeClass as h, toDisplayString as B } from "vue";
2
+ import { A as I, B as N, O as S } from "./index-CBXvm6RA.mjs";
3
+ import { N as T } from "./const-DOnRsYpZ.mjs";
4
+ const k = { class: "best-view-box" }, A = { class: "best-view-list" }, V = ["onClick"], x = { class: "best-view-icon" }, y = ["src"], C = { class: "best-view-name" }, R = /* @__PURE__ */ b({
5
5
  __name: "NavigateTool",
6
6
  props: ["componentId"],
7
7
  emits: ["emitHandler"],
8
8
  setup(r, { emit: c }) {
9
- const l = N(), d = S(), v = r;
9
+ const l = I(), d = N(), v = r;
10
10
  p(() => {
11
11
  d.setReadyById(v.componentId);
12
12
  });
@@ -26,23 +26,23 @@ const B = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onC
26
26
  }
27
27
  });
28
28
  };
29
- return (t, E) => (n(), i("div", B, [
30
- s("div", V, [
31
- (n(!0), i(g, null, f(a(k), (e) => (n(), i("div", {
29
+ return (t, E) => (i(), n("div", k, [
30
+ s("div", A, [
31
+ (i(!0), n(g, null, f(a(T), (e) => (i(), n("div", {
32
32
  key: e.id,
33
33
  class: h(["best-view-item", {
34
34
  "best-view-item-active": o.value === e.id
35
35
  }]),
36
36
  onClick: (H) => u(e)
37
37
  }, [
38
- s("div", y, [
38
+ s("div", x, [
39
39
  s("img", {
40
- src: a(T) + `/bim-viewer/best-view/${o.value === e.id ? e.imgActive : e.img}.svg`,
40
+ src: a(S) + `/bim-viewer/best-view/${o.value === e.id ? e.imgActive : e.img}.svg`,
41
41
  alt: ""
42
- }, null, 8, A),
43
- s("div", C, I(a(l)(e.label || e.name)), 1)
42
+ }, null, 8, y),
43
+ s("div", C, B(a(l)(e.label || e.name)), 1)
44
44
  ])
45
- ], 10, x))), 128))
45
+ ], 10, V))), 128))
46
46
  ])
47
47
  ]));
48
48
  }
@@ -1,5 +1,5 @@
1
- import { defineComponent as A, ref as u, onMounted as j, onBeforeUnmount as q, watch as z, openBlock as h, createElementBlock as b, unref as r, createElementVNode as e, toDisplayString as m, createCommentVNode as L } from "vue";
2
- import { o as J, n as K, p as c, C as S, q as M, O as l, D as V, y as Q } from "./index-BaDPCrAt.mjs";
1
+ import { defineComponent as H, ref as u, onMounted as j, onBeforeUnmount as q, watch as z, createElementBlock as h, openBlock as b, createCommentVNode as L, unref as r, createElementVNode as e, toDisplayString as m } from "vue";
2
+ import { B as J, A as K, C as c, M as S, D as M, O as l, P as V, I as Q } from "./index-CBXvm6RA.mjs";
3
3
  const W = { class: "roam_container_wrapper" }, Y = {
4
4
  key: 0,
5
5
  class: "roam_container"
@@ -24,20 +24,20 @@ const W = { class: "roam_container_wrapper" }, Y = {
24
24
  }, De = ["src"], ke = { class: "center-center" }, Se = ["src"], Ve = {
25
25
  id: "roamMoveRight",
26
26
  class: "center-right"
27
- }, Ue = ["src"], Fe = {
27
+ }, Pe = ["src"], Ue = {
28
28
  id: "roamMoveDown",
29
29
  class: "roam-right-down"
30
- }, Pe = ["src"], xe = /* @__PURE__ */ A({
30
+ }, Fe = ["src"], xe = /* @__PURE__ */ H({
31
31
  __name: "RoamTool",
32
32
  props: ["componentId"],
33
33
  emits: ["closePanel", "emitHandler"],
34
- setup(U, { emit: F }) {
35
- const y = J(), v = K(), E = u("speed-up"), B = u("speed-down"), f = u("1"), g = u(!1), w = u(!0), R = U, T = F, a = u(!1), I = (t) => {
34
+ setup(P, { emit: U }) {
35
+ const y = J(), v = K(), E = u("speed-up"), B = u("speed-down"), f = u("1"), g = u(!1), w = u(!0), R = P, T = U, a = u(!1), I = (t) => {
36
36
  T("emitHandler", t);
37
37
  }, n = u(c("isMobile"));
38
38
  j(() => {
39
39
  (c("isMobile") || S.showRoam === !1) && (w.value = !1), setTimeout(() => {
40
- $(), N(), O(), X(), G(), H();
40
+ $(), N(), O(), X(), G(), A();
41
41
  }, 1e3), y.setReadyById(R.componentId);
42
42
  });
43
43
  const C = () => {
@@ -64,7 +64,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
64
64
  );
65
65
  const D = (t) => {
66
66
  c("isMobile") ? a.value = t : (c("hideTool") || M.emit("hideToolbar", t), t ? w.value && (g.value = !0) : g.value = !1);
67
- }, P = () => {
67
+ }, F = () => {
68
68
  w.value = !1, I({
69
69
  isTool: !0,
70
70
  event_target: "RoamTool",
@@ -122,7 +122,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
122
122
  }), (s = document.getElementById("roamMoveForward")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
123
123
  a.value && i();
124
124
  });
125
- }, H = () => {
125
+ }, A = () => {
126
126
  var t, o, s;
127
127
  (t = document.getElementById("roamMoveBackward")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
128
128
  a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goBackward = !0, _("goBackward"));
@@ -150,8 +150,8 @@ const W = { class: "roam_container_wrapper" }, Y = {
150
150
  }
151
151
  });
152
152
  };
153
- return (t, o) => (h(), b("div", W, [
154
- !r(c)("isMobile") && g.value ? (h(), b("div", Y, [
153
+ return (t, o) => (b(), h("div", W, [
154
+ !r(c)("isMobile") && g.value ? (b(), h("div", Y, [
155
155
  e("div", Z, m(r(v)("roam.courseTitle")), 1),
156
156
  e("img", {
157
157
  class: "container_img",
@@ -161,7 +161,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
161
161
  e("div", oe, [
162
162
  e("div", {
163
163
  class: "btn1",
164
- onClick: P
164
+ onClick: F
165
165
  }, m(r(v)("roam.dontRemind")), 1),
166
166
  e("div", {
167
167
  class: "btn2",
@@ -169,7 +169,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
169
169
  }, m(r(v)("roam.gotIt")), 1)
170
170
  ])
171
171
  ])) : L("", !0),
172
- r(c)("isMobile") ? L("", !0) : (h(), b("div", te, [
172
+ r(c)("isMobile") ? L("", !0) : (b(), h("div", te, [
173
173
  e("div", se, [
174
174
  e("div", ne, [
175
175
  e("div", re, m(r(v)("roam.speedLabel")), 1),
@@ -204,7 +204,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
204
204
  ])
205
205
  ])
206
206
  ])),
207
- r(c)("isMobile") ? (h(), b("div", ue, [
207
+ r(c)("isMobile") ? (b(), h("div", ue, [
208
208
  e("div", me, [
209
209
  e("div", ce, [
210
210
  e("div", ve, [
@@ -268,14 +268,14 @@ const W = { class: "roam_container_wrapper" }, Y = {
268
268
  e("img", {
269
269
  src: r(l) + "/bim-viewer/roam-bar/right.svg",
270
270
  alt: ""
271
- }, null, 8, Ue)
271
+ }, null, 8, Pe)
272
272
  ])
273
273
  ]),
274
- e("div", Fe, [
274
+ e("div", Ue, [
275
275
  e("img", {
276
276
  src: r(l) + "/bim-viewer/roam-bar/bottom.svg",
277
277
  alt: ""
278
- }, null, 8, Pe)
278
+ }, null, 8, Fe)
279
279
  ])
280
280
  ])
281
281
  ])) : L("", !0)
@@ -0,0 +1,500 @@
1
+ import { _ as he } from "./panel.vue_vue_type_style_index_0_lang-IOvVcvu7.mjs";
2
+ import { j as K, a6 as q, d as H, b as N, a7 as T, a8 as L, a9 as Y, l as W, a as Se, aa as Ve, ab as _e, u as U, ac as Ee, v as X, ad as Re, ae as Ie, af as ke, y as Be, o as Ce, ag as Pe, ah as J, w as xe, A as we, B as Ne, F as $e } from "./index-CBXvm6RA.mjs";
3
+ import { ref as k, inject as ze, computed as S, defineComponent as $, createElementBlock as B, openBlock as R, normalizeClass as E, unref as e, createElementVNode as g, withDirectives as Q, withModifiers as x, isRef as Z, vModelRadio as ee, renderSlot as A, createTextVNode as w, toDisplayString as C, nextTick as oe, normalizeStyle as Ge, onMounted as ae, provide as Te, reactive as Le, toRefs as Ue, watch as te, Fragment as le, renderList as ne, createBlock as se, resolveDynamicComponent as Ae, mergeProps as De, withCtx as z, createVNode as P, createCommentVNode as Fe } from "vue";
4
+ import { a as G } from "./const-DOnRsYpZ.mjs";
5
+ const ie = N({
6
+ /**
7
+ * @description binding value
8
+ */
9
+ modelValue: {
10
+ type: [String, Number, Boolean],
11
+ default: void 0
12
+ },
13
+ /**
14
+ * @description size of the Radio
15
+ */
16
+ size: Y,
17
+ /**
18
+ * @description whether Radio is disabled
19
+ */
20
+ disabled: {
21
+ type: Boolean,
22
+ default: void 0
23
+ },
24
+ /**
25
+ * @description the label of Radio
26
+ */
27
+ label: {
28
+ type: [String, Number, Boolean],
29
+ default: void 0
30
+ },
31
+ /**
32
+ * @description the value of Radio
33
+ */
34
+ value: {
35
+ type: [String, Number, Boolean],
36
+ default: void 0
37
+ },
38
+ /**
39
+ * @description native `name` attribute
40
+ */
41
+ name: {
42
+ type: String,
43
+ default: void 0
44
+ }
45
+ }), je = N({
46
+ ...ie,
47
+ /**
48
+ * @description whether to add a border around Radio
49
+ */
50
+ border: Boolean
51
+ }), re = {
52
+ [L]: (t) => K(t) || q(t) || H(t),
53
+ [T]: (t) => K(t) || q(t) || H(t)
54
+ }, de = /* @__PURE__ */ Symbol("radioGroupKey"), ue = (t, V) => {
55
+ const l = k(), r = ze(de, void 0), n = S(() => !!r), f = S(() => W(t.value) ? t.label : t.value), c = S({
56
+ get() {
57
+ return n.value ? r.modelValue : t.modelValue;
58
+ },
59
+ set(y) {
60
+ n.value ? r.changeEvent(y) : V && V(L, y), l.value.checked = t.modelValue === f.value;
61
+ }
62
+ }), s = Se(S(() => r == null ? void 0 : r.size)), i = Ve(S(() => r == null ? void 0 : r.disabled)), b = k(!1), v = S(() => i.value || n.value && c.value !== f.value ? -1 : 0);
63
+ return _e(
64
+ {
65
+ from: "label act as value",
66
+ replacement: "value",
67
+ version: "3.0.0",
68
+ scope: "el-radio",
69
+ ref: "https://element-plus.org/en-US/component/radio.html"
70
+ },
71
+ S(() => n.value && W(t.value))
72
+ ), {
73
+ radioRef: l,
74
+ isGroup: n,
75
+ radioGroup: r,
76
+ focus: b,
77
+ size: s,
78
+ disabled: i,
79
+ tabIndex: v,
80
+ modelValue: c,
81
+ actualValue: f
82
+ };
83
+ }, Me = ["value", "name", "disabled", "checked"];
84
+ var ce = /* @__PURE__ */ $({
85
+ name: "ElRadio",
86
+ __name: "radio",
87
+ props: je,
88
+ emits: re,
89
+ setup(t, { emit: V }) {
90
+ const l = t, r = V, n = U("radio"), { radioRef: f, radioGroup: c, focus: s, size: i, disabled: b, modelValue: v, actualValue: y } = ue(l, r);
91
+ function u() {
92
+ oe(() => r(T, v.value));
93
+ }
94
+ return (I, a) => {
95
+ var o;
96
+ return R(), B(
97
+ "label",
98
+ {
99
+ class: E([
100
+ e(n).b(),
101
+ e(n).is("disabled", e(b)),
102
+ e(n).is("focus", e(s)),
103
+ e(n).is("bordered", t.border),
104
+ e(n).is("checked", e(v) === e(y)),
105
+ e(n).m(e(i))
106
+ ])
107
+ },
108
+ [
109
+ g(
110
+ "span",
111
+ {
112
+ class: E([
113
+ e(n).e("input"),
114
+ e(n).is("disabled", e(b)),
115
+ e(n).is("checked", e(v) === e(y))
116
+ ])
117
+ },
118
+ [
119
+ Q(g("input", {
120
+ ref_key: "radioRef",
121
+ ref: f,
122
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => Z(v) ? v.value = m : null),
123
+ class: E(e(n).e("original")),
124
+ value: e(y),
125
+ name: t.name || ((o = e(c)) == null ? void 0 : o.name),
126
+ disabled: e(b),
127
+ checked: e(v) === e(y),
128
+ type: "radio",
129
+ onFocus: a[1] || (a[1] = (m) => s.value = !0),
130
+ onBlur: a[2] || (a[2] = (m) => s.value = !1),
131
+ onChange: u,
132
+ onClick: a[3] || (a[3] = x(() => {
133
+ }, ["stop"]))
134
+ }, null, 42, Me), [
135
+ [ee, e(v)]
136
+ ]),
137
+ g(
138
+ "span",
139
+ {
140
+ class: E(e(n).e("inner"))
141
+ },
142
+ null,
143
+ 2
144
+ /* CLASS */
145
+ )
146
+ ],
147
+ 2
148
+ /* CLASS */
149
+ ),
150
+ g(
151
+ "span",
152
+ {
153
+ class: E(e(n).e("label")),
154
+ onKeydown: a[4] || (a[4] = x(() => {
155
+ }, ["stop"]))
156
+ },
157
+ [
158
+ A(I.$slots, "default", {}, () => [
159
+ w(
160
+ C(t.label),
161
+ 1
162
+ /* TEXT */
163
+ )
164
+ ])
165
+ ],
166
+ 34
167
+ /* CLASS, NEED_HYDRATION */
168
+ )
169
+ ],
170
+ 2
171
+ /* CLASS */
172
+ );
173
+ };
174
+ }
175
+ });
176
+ const Oe = N({
177
+ ...ie
178
+ }), Ke = ["value", "name", "disabled"];
179
+ var D = /* @__PURE__ */ $({
180
+ name: "ElRadioButton",
181
+ __name: "radio-button",
182
+ props: Oe,
183
+ setup(t) {
184
+ const V = t, l = U("radio"), { radioRef: r, focus: n, size: f, disabled: c, modelValue: s, radioGroup: i, actualValue: b } = ue(V), v = S(() => ({
185
+ backgroundColor: (i == null ? void 0 : i.fill) || "",
186
+ borderColor: (i == null ? void 0 : i.fill) || "",
187
+ boxShadow: i != null && i.fill ? `-1px 0 0 0 ${i.fill}` : "",
188
+ color: (i == null ? void 0 : i.textColor) || ""
189
+ }));
190
+ return (y, u) => {
191
+ var I;
192
+ return R(), B(
193
+ "label",
194
+ {
195
+ class: E([
196
+ e(l).b("button"),
197
+ e(l).is("active", e(s) === e(b)),
198
+ e(l).is("disabled", e(c)),
199
+ e(l).is("focus", e(n)),
200
+ e(l).bm("button", e(f))
201
+ ])
202
+ },
203
+ [
204
+ Q(g("input", {
205
+ ref_key: "radioRef",
206
+ ref: r,
207
+ "onUpdate:modelValue": u[0] || (u[0] = (a) => Z(s) ? s.value = a : null),
208
+ class: E(e(l).be("button", "original-radio")),
209
+ value: e(b),
210
+ type: "radio",
211
+ name: t.name || ((I = e(i)) == null ? void 0 : I.name),
212
+ disabled: e(c),
213
+ onFocus: u[1] || (u[1] = (a) => n.value = !0),
214
+ onBlur: u[2] || (u[2] = (a) => n.value = !1),
215
+ onClick: u[3] || (u[3] = x(() => {
216
+ }, ["stop"]))
217
+ }, null, 42, Ke), [
218
+ [ee, e(s)]
219
+ ]),
220
+ g(
221
+ "span",
222
+ {
223
+ class: E(e(l).be("button", "inner")),
224
+ style: Ge(e(s) === e(b) ? v.value : {}),
225
+ onKeydown: u[4] || (u[4] = x(() => {
226
+ }, ["stop"]))
227
+ },
228
+ [
229
+ A(y.$slots, "default", {}, () => [
230
+ w(
231
+ C(t.label),
232
+ 1
233
+ /* TEXT */
234
+ )
235
+ ])
236
+ ],
237
+ 38
238
+ /* CLASS, STYLE, NEED_HYDRATION */
239
+ )
240
+ ],
241
+ 2
242
+ /* CLASS */
243
+ );
244
+ };
245
+ }
246
+ });
247
+ const me = {
248
+ label: "label",
249
+ value: "value",
250
+ disabled: "disabled"
251
+ }, qe = N({
252
+ /**
253
+ * @description native `id` attribute
254
+ */
255
+ id: {
256
+ type: String,
257
+ default: void 0
258
+ },
259
+ /**
260
+ * @description the size of radio buttons or bordered radios
261
+ */
262
+ size: Y,
263
+ /**
264
+ * @description whether the nesting radios are disabled
265
+ */
266
+ disabled: {
267
+ type: Boolean,
268
+ default: void 0
269
+ },
270
+ /**
271
+ * @description binding value
272
+ */
273
+ modelValue: {
274
+ type: [String, Number, Boolean],
275
+ default: void 0
276
+ },
277
+ /**
278
+ * @description border and background color when button is active
279
+ */
280
+ fill: {
281
+ type: String,
282
+ default: ""
283
+ },
284
+ /**
285
+ * @description font color when button is active
286
+ */
287
+ textColor: {
288
+ type: String,
289
+ default: ""
290
+ },
291
+ /**
292
+ * @description native `name` attribute
293
+ */
294
+ name: {
295
+ type: String,
296
+ default: void 0
297
+ },
298
+ /**
299
+ * @description whether to trigger form validation
300
+ */
301
+ validateEvent: {
302
+ type: Boolean,
303
+ default: !0
304
+ },
305
+ options: {
306
+ type: X(Array)
307
+ },
308
+ props: {
309
+ type: X(Object),
310
+ default: () => me
311
+ },
312
+ type: {
313
+ type: String,
314
+ values: ["radio", "button"],
315
+ default: "radio"
316
+ },
317
+ ...Ee(["ariaLabel"])
318
+ }), He = re, We = ["id", "aria-label", "aria-labelledby"];
319
+ var pe = /* @__PURE__ */ $({
320
+ name: "ElRadioGroup",
321
+ __name: "radio-group",
322
+ props: qe,
323
+ emits: He,
324
+ setup(t, { emit: V }) {
325
+ const l = t, r = V, n = U("radio"), f = Re(), c = k(), { formItem: s } = Ie(), { inputId: i, isLabeledByFormItem: b } = ke(l, {
326
+ formItemContext: s
327
+ }), v = (o) => {
328
+ r(L, o), oe(() => r(T, o));
329
+ };
330
+ ae(() => {
331
+ const o = c.value.querySelectorAll("[type=radio]"), m = o[0];
332
+ !Array.from(o).some((d) => d.checked) && m && (m.tabIndex = 0);
333
+ });
334
+ const y = S(() => l.name || f.value), u = S(() => ({
335
+ ...me,
336
+ ...l.props
337
+ })), I = (o) => {
338
+ const { label: m, value: d, disabled: h } = u.value, _ = {
339
+ label: o[m],
340
+ value: o[d],
341
+ disabled: o[h]
342
+ };
343
+ return { ...Pe(o, [m, d, h]), ..._ };
344
+ }, a = S(
345
+ () => l.type === "button" ? D : ce
346
+ );
347
+ return Te(
348
+ de,
349
+ Le({
350
+ ...Ue(l),
351
+ changeEvent: v,
352
+ name: y
353
+ })
354
+ ), te(
355
+ () => l.modelValue,
356
+ (o, m) => {
357
+ l.validateEvent && !Be(o, m) && (s == null || s.validate("change").catch((d) => Ce(d)));
358
+ }
359
+ ), (o, m) => (R(), B("div", {
360
+ id: e(i),
361
+ ref_key: "radioGroupRef",
362
+ ref: c,
363
+ class: E(e(n).b("group")),
364
+ role: "radiogroup",
365
+ "aria-label": e(b) ? void 0 : t.ariaLabel || "radio-group",
366
+ "aria-labelledby": e(b) ? e(s).labelId : void 0
367
+ }, [
368
+ A(o.$slots, "default", {}, () => [
369
+ (R(!0), B(
370
+ le,
371
+ null,
372
+ ne(t.options, (d, h) => (R(), se(
373
+ Ae(a.value),
374
+ De({ key: h }, { ref_for: !0 }, I(d)),
375
+ null,
376
+ 16
377
+ /* FULL_PROPS */
378
+ ))),
379
+ 128
380
+ /* KEYED_FRAGMENT */
381
+ ))
382
+ ])
383
+ ], 10, We));
384
+ }
385
+ });
386
+ const Xe = xe(ce, {
387
+ RadioButton: D,
388
+ RadioGroup: pe
389
+ }), Ye = J(pe);
390
+ J(D);
391
+ const Je = { class: "wrapper" }, Qe = { class: "screen_thumbnail" }, Ze = ["src"], eo = { class: "validity-period" }, oo = {
392
+ key: 0,
393
+ class: "custom"
394
+ }, ao = { class: "footer" }, io = /* @__PURE__ */ $({
395
+ __name: "ScreenShotTool",
396
+ props: ["componentId"],
397
+ emits: ["closePanel"],
398
+ setup(t, { emit: V }) {
399
+ const l = we(), r = Ne(), n = t, f = k(0), c = k(), s = k(), i = k(), b = V;
400
+ ae(() => {
401
+ c.value = 1280, s.value = 720, r.setReadyById(n.componentId);
402
+ }), te(
403
+ () => r.isToolActive(n.componentId),
404
+ (a) => {
405
+ a && u(220, 124, !1);
406
+ }
407
+ );
408
+ const v = (a) => {
409
+ f.value = a, a !== 3 && (c.value = G[a].width, s.value = G[a].height);
410
+ }, y = () => {
411
+ b("closePanel");
412
+ }, u = (a, o, m) => {
413
+ const d = document.getElementById("myCanvas"), h = document.createElement("a");
414
+ h.download = "screenshot.png";
415
+ const _ = document.createElement("canvas"), p = _.getContext("2d");
416
+ if (d && p) {
417
+ _.width = a, _.height = o;
418
+ const ve = a / d.width, fe = o / d.height, F = Math.max(ve, fe), j = d.width * F, M = d.height * F, be = (a - j) / 2, ye = (o - M) / 2;
419
+ p.clearRect(0, 0, a, o), p.fillStyle = "transparent", p.fillRect(0, 0, a, o), p.drawImage(d, 0, 0, d.width, d.height, be, ye, j, M), m ? _.toBlob(function(ge) {
420
+ const O = URL.createObjectURL(ge);
421
+ h.href = O, h.click(), URL.revokeObjectURL(O);
422
+ }) : i.value = _.toDataURL("image/png");
423
+ }
424
+ }, I = () => {
425
+ u(c.value, s.value, !0);
426
+ };
427
+ return (a, o) => {
428
+ const m = Xe, d = Ye, h = $e, _ = he;
429
+ return R(), se(_, {
430
+ class: "screen_container",
431
+ width: 240,
432
+ panelTitle: e(l)("screenshot.title"),
433
+ "click-handle": y
434
+ }, {
435
+ default: z(() => [
436
+ g("div", Je, [
437
+ g("div", Qe, [
438
+ g("img", {
439
+ class: "thumbnail_img",
440
+ src: i.value,
441
+ alt: ""
442
+ }, null, 8, Ze)
443
+ ]),
444
+ P(d, {
445
+ modelValue: f.value,
446
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => f.value = p),
447
+ onChange: v
448
+ }, {
449
+ default: z(() => [
450
+ g("div", eo, [
451
+ (R(!0), B(le, null, ne(e(G), (p) => (R(), B("div", {
452
+ key: p.id,
453
+ class: "period_box"
454
+ }, [
455
+ P(m, {
456
+ label: p.id
457
+ }, {
458
+ default: z(() => [
459
+ w(C(p.name || e(l)(p.label ?? "")), 1)
460
+ ]),
461
+ _: 2
462
+ }, 1032, ["label"])
463
+ ]))), 128))
464
+ ])
465
+ ]),
466
+ _: 1
467
+ }, 8, ["modelValue"]),
468
+ f.value === 3 ? (R(), B("div", oo, [
469
+ P(h, {
470
+ modelValue: c.value,
471
+ "onUpdate:modelValue": o[1] || (o[1] = (p) => c.value = p),
472
+ placeholder: e(l)("screenshot.widthPlaceholder")
473
+ }, null, 8, ["modelValue", "placeholder"]),
474
+ o[3] || (o[3] = w(" x ", -1)),
475
+ P(h, {
476
+ modelValue: s.value,
477
+ "onUpdate:modelValue": o[2] || (o[2] = (p) => s.value = p),
478
+ placeholder: e(l)("screenshot.heightPlaceholder")
479
+ }, null, 8, ["modelValue", "placeholder"])
480
+ ])) : Fe("", !0),
481
+ g("div", ao, [
482
+ g("div", {
483
+ class: "btn1",
484
+ onClick: y
485
+ }, C(e(l)("common.cancel")), 1),
486
+ g("div", {
487
+ class: "btn2",
488
+ onClick: I
489
+ }, C(e(l)("common.save")), 1)
490
+ ])
491
+ ])
492
+ ]),
493
+ _: 1
494
+ }, 8, ["panelTitle"]);
495
+ };
496
+ }
497
+ });
498
+ export {
499
+ io as default
500
+ };