@xtctwins/tctwins-bimx-engine 0.2.53 → 0.3.0
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/README.md +196 -193
- package/dist/AnnotationTool-CGRte6Cc.mjs +167 -0
- package/dist/BIMX_Viewer_Lib.es.js +3 -3
- package/dist/BIMX_Viewer_Lib.umd.js +139 -131
- package/dist/{CommentTool-D_AlsrTE.mjs → CommentTool-CT3wFozB.mjs} +168 -168
- package/dist/{HiddenTool-DvSKSssY.mjs → HiddenTool-CoPawMRd.mjs} +13 -13
- package/dist/{InspectorTool-DLWyGXgI.mjs → InspectorTool-BIvnydPf.mjs} +64 -64
- package/dist/{MeasureTool-BcVGavki.mjs → MeasureTool-BUi0QI_R.mjs} +22 -22
- package/dist/{MouseTool-YNKPFjAo.mjs → MouseTool-CdVwRiX1.mjs} +15 -15
- package/dist/{NavigateTool-DsY1_TdT.mjs → NavigateTool-DoP9z3yP.mjs} +13 -13
- package/dist/{RoamTool-BFVE2V3K.mjs → RoamTool-POFy076i.mjs} +17 -17
- package/dist/ScreenShotTool-CcUyU0g7.mjs +357 -0
- package/dist/{SectionTool-4cRL2V6O.mjs → SectionTool-DGjjH3JO.mjs} +43 -43
- package/dist/SettingTool-CjXfbX5r.mjs +657 -0
- package/dist/StructureTree-DdRX-y-V.mjs +1583 -0
- package/dist/{alert-p1T29wPF.mjs → alert-ChDNxVgQ.mjs} +9 -9
- package/dist/el-input-number-CK5d8pzH.mjs +818 -0
- package/dist/{index-DNbbNkvv.mjs → index-Dsq1epCY.mjs} +47820 -51677
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-6c_lx4nG.mjs → panel.vue_vue_type_style_index_0_lang-BaSZShh_.mjs} +3 -3
- package/dist/style.css +1 -1
- package/dist/{tallPanel-ubDUD9VF.mjs → tallPanel-DKlcFjrl.mjs} +15 -15
- package/package.json +2 -2
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
- package/types/components/BCFComponents/commentInput.vue.d.ts +10 -36
- package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
- package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -32
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +8 -6
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -478
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -499
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -4
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -4026
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +1 -18
- package/types/components/BimxViewerComp.vue.d.ts +14 -7
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -499
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -478
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
- package/types/components/bimxViewer.vue.d.ts +14 -7
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
- package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
- package/types/components/utilsComponents/loading.vue.d.ts +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +2 -8
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
- package/types/components/utilsComponents/tallPanel.vue.d.ts +3 -13
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +3 -13
- package/types/pages/BimxViewerEntry.vue.d.ts +57 -5
- package/types/pages/viewerEntry.vue.d.ts +57 -7
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/toolbars.d.ts +46 -46
- package/types/tests/cmt.d.ts +1 -0
- package/dist/AnnotationTool-BU5DCBHd.mjs +0 -239
- package/dist/ScreenShotTool-BDUErHu1.mjs +0 -500
- package/dist/SettingTool-BzaZsP21.mjs +0 -815
- package/dist/StructureTree-zC5APcxf.mjs +0 -1846
- package/dist/el-input-number-BWTLtMdM.mjs +0 -1169
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as b, onMounted as p, ref as w,
|
|
2
|
-
import {
|
|
3
|
-
import { N as
|
|
4
|
-
const
|
|
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-Dsq1epCY.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({
|
|
5
5
|
__name: "NavigateTool",
|
|
6
6
|
props: ["componentId"],
|
|
7
7
|
emits: ["emitHandler"],
|
|
8
8
|
setup(r, { emit: c }) {
|
|
9
|
-
const l =
|
|
9
|
+
const l = N(), d = S(), v = r;
|
|
10
10
|
p(() => {
|
|
11
11
|
d.setReadyById(v.componentId);
|
|
12
12
|
});
|
|
@@ -26,23 +26,23 @@ const k = { class: "best-view-box" }, A = { class: "best-view-list" }, V = ["onC
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
return (t, E) => (
|
|
30
|
-
s("div",
|
|
31
|
-
(
|
|
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", {
|
|
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",
|
|
38
|
+
s("div", y, [
|
|
39
39
|
s("img", {
|
|
40
|
-
src: a(
|
|
40
|
+
src: a(T) + `/bim-viewer/best-view/${o.value === e.id ? e.imgActive : e.img}.svg`,
|
|
41
41
|
alt: ""
|
|
42
|
-
}, null, 8,
|
|
43
|
-
s("div", C,
|
|
42
|
+
}, null, 8, A),
|
|
43
|
+
s("div", C, I(a(l)(e.label || e.name)), 1)
|
|
44
44
|
])
|
|
45
|
-
], 10,
|
|
45
|
+
], 10, x))), 128))
|
|
46
46
|
])
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
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-Dsq1epCY.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
|
-
},
|
|
27
|
+
}, Ue = ["src"], Fe = {
|
|
28
28
|
id: "roamMoveDown",
|
|
29
29
|
class: "roam-right-down"
|
|
30
|
-
},
|
|
30
|
+
}, Pe = ["src"], xe = /* @__PURE__ */ A({
|
|
31
31
|
__name: "RoamTool",
|
|
32
32
|
props: ["componentId"],
|
|
33
33
|
emits: ["closePanel", "emitHandler"],
|
|
34
|
-
setup(
|
|
35
|
-
const y = J(), v = K(), E = u("speed-up"), B = u("speed-down"), f = u("1"), g = u(!1), w = u(!0), R =
|
|
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) => {
|
|
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(),
|
|
40
|
+
$(), N(), O(), X(), G(), H();
|
|
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
|
-
},
|
|
67
|
+
}, P = () => {
|
|
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
|
-
},
|
|
125
|
+
}, H = () => {
|
|
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) => (
|
|
154
|
-
!r(c)("isMobile") && g.value ? (
|
|
153
|
+
return (t, o) => (h(), b("div", W, [
|
|
154
|
+
!r(c)("isMobile") && g.value ? (h(), b("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:
|
|
164
|
+
onClick: P
|
|
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) : (
|
|
172
|
+
r(c)("isMobile") ? L("", !0) : (h(), b("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") ? (
|
|
207
|
+
r(c)("isMobile") ? (h(), b("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,
|
|
271
|
+
}, null, 8, Ue)
|
|
272
272
|
])
|
|
273
273
|
]),
|
|
274
|
-
e("div",
|
|
274
|
+
e("div", Fe, [
|
|
275
275
|
e("img", {
|
|
276
276
|
src: r(l) + "/bim-viewer/roam-bar/bottom.svg",
|
|
277
277
|
alt: ""
|
|
278
|
-
}, null, 8,
|
|
278
|
+
}, null, 8, Pe)
|
|
279
279
|
])
|
|
280
280
|
])
|
|
281
281
|
])) : L("", !0)
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { _ as pe } from "./panel.vue_vue_type_style_index_0_lang-BaSZShh_.mjs";
|
|
2
|
+
import { X as z, Y as x, f as j, Z as O, $ as X, a0 as ve, a1 as H, a as Y, a2 as fe, a3 as be, a4 as _e, u as L, _ as T, a5 as he, a6 as ge, a7 as ye, a8 as Se, d as Ve, w as Re, a9 as W, n as ke, o as Ee, t as Ie } from "./index-Dsq1epCY.mjs";
|
|
3
|
+
import { ref as R, inject as Be, computed as g, defineComponent as E, openBlock as k, createElementBlock as B, normalizeClass as y, unref as e, createElementVNode as v, withDirectives as q, isRef as Z, withModifiers as N, vModelRadio as J, renderSlot as F, createTextVNode as $, toDisplayString as C, nextTick as Q, normalizeStyle as Ce, onMounted as ee, provide as we, reactive as Ne, toRefs as $e, watch as oe, createBlock as ze, withCtx as P, createVNode as w, Fragment as Ge, renderList as Pe, createCommentVNode as Ue } from "vue";
|
|
4
|
+
import { a as U } from "./const-DOnRsYpZ.mjs";
|
|
5
|
+
const ae = z({
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: [String, Number, Boolean],
|
|
8
|
+
default: void 0
|
|
9
|
+
},
|
|
10
|
+
size: H,
|
|
11
|
+
disabled: Boolean,
|
|
12
|
+
label: {
|
|
13
|
+
type: [String, Number, Boolean],
|
|
14
|
+
default: void 0
|
|
15
|
+
},
|
|
16
|
+
value: {
|
|
17
|
+
type: [String, Number, Boolean],
|
|
18
|
+
default: void 0
|
|
19
|
+
},
|
|
20
|
+
name: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: void 0
|
|
23
|
+
}
|
|
24
|
+
}), xe = z({
|
|
25
|
+
...ae,
|
|
26
|
+
border: Boolean
|
|
27
|
+
}), le = {
|
|
28
|
+
[x]: (t) => j(t) || O(t) || X(t),
|
|
29
|
+
[ve]: (t) => j(t) || O(t) || X(t)
|
|
30
|
+
}, te = Symbol("radioGroupKey"), ne = (t, f) => {
|
|
31
|
+
const a = R(), o = Be(te, void 0), c = g(() => !!o), p = g(() => Y(t.value) ? t.label : t.value), s = g({
|
|
32
|
+
get() {
|
|
33
|
+
return c.value ? o.modelValue : t.modelValue;
|
|
34
|
+
},
|
|
35
|
+
set(n) {
|
|
36
|
+
c.value ? o.changeEvent(n) : f && f(x, n), a.value.checked = t.modelValue === p.value;
|
|
37
|
+
}
|
|
38
|
+
}), d = fe(g(() => o == null ? void 0 : o.size)), l = be(g(() => o == null ? void 0 : o.disabled)), u = R(!1), b = g(() => l.value || c.value && s.value !== p.value ? -1 : 0);
|
|
39
|
+
return _e({
|
|
40
|
+
from: "label act as value",
|
|
41
|
+
replacement: "value",
|
|
42
|
+
version: "3.0.0",
|
|
43
|
+
scope: "el-radio",
|
|
44
|
+
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
45
|
+
}, g(() => c.value && Y(t.value))), {
|
|
46
|
+
radioRef: a,
|
|
47
|
+
isGroup: c,
|
|
48
|
+
radioGroup: o,
|
|
49
|
+
focus: u,
|
|
50
|
+
size: d,
|
|
51
|
+
disabled: l,
|
|
52
|
+
tabIndex: b,
|
|
53
|
+
modelValue: s,
|
|
54
|
+
actualValue: p
|
|
55
|
+
};
|
|
56
|
+
}, Le = E({
|
|
57
|
+
name: "ElRadio"
|
|
58
|
+
}), Te = /* @__PURE__ */ E({
|
|
59
|
+
...Le,
|
|
60
|
+
props: xe,
|
|
61
|
+
emits: le,
|
|
62
|
+
setup(t, { emit: f }) {
|
|
63
|
+
const a = t, o = L("radio"), { radioRef: c, radioGroup: p, focus: s, size: d, disabled: l, modelValue: u, actualValue: b } = ne(a, f);
|
|
64
|
+
function n() {
|
|
65
|
+
Q(() => f("change", u.value));
|
|
66
|
+
}
|
|
67
|
+
return (_, S) => {
|
|
68
|
+
var i;
|
|
69
|
+
return k(), B("label", {
|
|
70
|
+
class: y([
|
|
71
|
+
e(o).b(),
|
|
72
|
+
e(o).is("disabled", e(l)),
|
|
73
|
+
e(o).is("focus", e(s)),
|
|
74
|
+
e(o).is("bordered", _.border),
|
|
75
|
+
e(o).is("checked", e(u) === e(b)),
|
|
76
|
+
e(o).m(e(d))
|
|
77
|
+
])
|
|
78
|
+
}, [
|
|
79
|
+
v("span", {
|
|
80
|
+
class: y([
|
|
81
|
+
e(o).e("input"),
|
|
82
|
+
e(o).is("disabled", e(l)),
|
|
83
|
+
e(o).is("checked", e(u) === e(b))
|
|
84
|
+
])
|
|
85
|
+
}, [
|
|
86
|
+
q(v("input", {
|
|
87
|
+
ref_key: "radioRef",
|
|
88
|
+
ref: c,
|
|
89
|
+
"onUpdate:modelValue": (r) => Z(u) ? u.value = r : null,
|
|
90
|
+
class: y(e(o).e("original")),
|
|
91
|
+
value: e(b),
|
|
92
|
+
name: _.name || ((i = e(p)) == null ? void 0 : i.name),
|
|
93
|
+
disabled: e(l),
|
|
94
|
+
checked: e(u) === e(b),
|
|
95
|
+
type: "radio",
|
|
96
|
+
onFocus: (r) => s.value = !0,
|
|
97
|
+
onBlur: (r) => s.value = !1,
|
|
98
|
+
onChange: n,
|
|
99
|
+
onClick: N(() => {
|
|
100
|
+
}, ["stop"])
|
|
101
|
+
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
102
|
+
[J, e(u)]
|
|
103
|
+
]),
|
|
104
|
+
v("span", {
|
|
105
|
+
class: y(e(o).e("inner"))
|
|
106
|
+
}, null, 2)
|
|
107
|
+
], 2),
|
|
108
|
+
v("span", {
|
|
109
|
+
class: y(e(o).e("label")),
|
|
110
|
+
onKeydown: N(() => {
|
|
111
|
+
}, ["stop"])
|
|
112
|
+
}, [
|
|
113
|
+
F(_.$slots, "default", {}, () => [
|
|
114
|
+
$(C(_.label), 1)
|
|
115
|
+
])
|
|
116
|
+
], 42, ["onKeydown"])
|
|
117
|
+
], 2);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
var Fe = /* @__PURE__ */ T(Te, [["__file", "radio.vue"]]);
|
|
122
|
+
const Ae = z({
|
|
123
|
+
...ae
|
|
124
|
+
}), De = E({
|
|
125
|
+
name: "ElRadioButton"
|
|
126
|
+
}), Ke = /* @__PURE__ */ E({
|
|
127
|
+
...De,
|
|
128
|
+
props: Ae,
|
|
129
|
+
setup(t) {
|
|
130
|
+
const f = t, a = L("radio"), { radioRef: o, focus: c, size: p, disabled: s, modelValue: d, radioGroup: l, actualValue: u } = ne(f), b = g(() => ({
|
|
131
|
+
backgroundColor: (l == null ? void 0 : l.fill) || "",
|
|
132
|
+
borderColor: (l == null ? void 0 : l.fill) || "",
|
|
133
|
+
boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
|
|
134
|
+
color: (l == null ? void 0 : l.textColor) || ""
|
|
135
|
+
}));
|
|
136
|
+
return (n, _) => {
|
|
137
|
+
var S;
|
|
138
|
+
return k(), B("label", {
|
|
139
|
+
class: y([
|
|
140
|
+
e(a).b("button"),
|
|
141
|
+
e(a).is("active", e(d) === e(u)),
|
|
142
|
+
e(a).is("disabled", e(s)),
|
|
143
|
+
e(a).is("focus", e(c)),
|
|
144
|
+
e(a).bm("button", e(p))
|
|
145
|
+
])
|
|
146
|
+
}, [
|
|
147
|
+
q(v("input", {
|
|
148
|
+
ref_key: "radioRef",
|
|
149
|
+
ref: o,
|
|
150
|
+
"onUpdate:modelValue": (i) => Z(d) ? d.value = i : null,
|
|
151
|
+
class: y(e(a).be("button", "original-radio")),
|
|
152
|
+
value: e(u),
|
|
153
|
+
type: "radio",
|
|
154
|
+
name: n.name || ((S = e(l)) == null ? void 0 : S.name),
|
|
155
|
+
disabled: e(s),
|
|
156
|
+
onFocus: (i) => c.value = !0,
|
|
157
|
+
onBlur: (i) => c.value = !1,
|
|
158
|
+
onClick: N(() => {
|
|
159
|
+
}, ["stop"])
|
|
160
|
+
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
161
|
+
[J, e(d)]
|
|
162
|
+
]),
|
|
163
|
+
v("span", {
|
|
164
|
+
class: y(e(a).be("button", "inner")),
|
|
165
|
+
style: Ce(e(d) === e(u) ? e(b) : {}),
|
|
166
|
+
onKeydown: N(() => {
|
|
167
|
+
}, ["stop"])
|
|
168
|
+
}, [
|
|
169
|
+
F(n.$slots, "default", {}, () => [
|
|
170
|
+
$(C(n.label), 1)
|
|
171
|
+
])
|
|
172
|
+
], 46, ["onKeydown"])
|
|
173
|
+
], 2);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
var se = /* @__PURE__ */ T(Ke, [["__file", "radio-button.vue"]]);
|
|
178
|
+
const Me = z({
|
|
179
|
+
id: {
|
|
180
|
+
type: String,
|
|
181
|
+
default: void 0
|
|
182
|
+
},
|
|
183
|
+
size: H,
|
|
184
|
+
disabled: Boolean,
|
|
185
|
+
modelValue: {
|
|
186
|
+
type: [String, Number, Boolean],
|
|
187
|
+
default: void 0
|
|
188
|
+
},
|
|
189
|
+
fill: {
|
|
190
|
+
type: String,
|
|
191
|
+
default: ""
|
|
192
|
+
},
|
|
193
|
+
textColor: {
|
|
194
|
+
type: String,
|
|
195
|
+
default: ""
|
|
196
|
+
},
|
|
197
|
+
name: {
|
|
198
|
+
type: String,
|
|
199
|
+
default: void 0
|
|
200
|
+
},
|
|
201
|
+
validateEvent: {
|
|
202
|
+
type: Boolean,
|
|
203
|
+
default: !0
|
|
204
|
+
},
|
|
205
|
+
...he(["ariaLabel"])
|
|
206
|
+
}), je = le, Oe = E({
|
|
207
|
+
name: "ElRadioGroup"
|
|
208
|
+
}), Xe = /* @__PURE__ */ E({
|
|
209
|
+
...Oe,
|
|
210
|
+
props: Me,
|
|
211
|
+
emits: je,
|
|
212
|
+
setup(t, { emit: f }) {
|
|
213
|
+
const a = t, o = L("radio"), c = ge(), p = R(), { formItem: s } = ye(), { inputId: d, isLabeledByFormItem: l } = Se(a, {
|
|
214
|
+
formItemContext: s
|
|
215
|
+
}), u = (n) => {
|
|
216
|
+
f(x, n), Q(() => f("change", n));
|
|
217
|
+
};
|
|
218
|
+
ee(() => {
|
|
219
|
+
const n = p.value.querySelectorAll("[type=radio]"), _ = n[0];
|
|
220
|
+
!Array.from(n).some((S) => S.checked) && _ && (_.tabIndex = 0);
|
|
221
|
+
});
|
|
222
|
+
const b = g(() => a.name || c.value);
|
|
223
|
+
return we(te, Ne({
|
|
224
|
+
...$e(a),
|
|
225
|
+
changeEvent: u,
|
|
226
|
+
name: b
|
|
227
|
+
})), oe(() => a.modelValue, () => {
|
|
228
|
+
a.validateEvent && (s == null || s.validate("change").catch((n) => Ve(n)));
|
|
229
|
+
}), (n, _) => (k(), B("div", {
|
|
230
|
+
id: e(d),
|
|
231
|
+
ref_key: "radioGroupRef",
|
|
232
|
+
ref: p,
|
|
233
|
+
class: y(e(o).b("group")),
|
|
234
|
+
role: "radiogroup",
|
|
235
|
+
"aria-label": e(l) ? void 0 : n.ariaLabel || "radio-group",
|
|
236
|
+
"aria-labelledby": e(l) ? e(s).labelId : void 0
|
|
237
|
+
}, [
|
|
238
|
+
F(n.$slots, "default")
|
|
239
|
+
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
var ie = /* @__PURE__ */ T(Xe, [["__file", "radio-group.vue"]]);
|
|
243
|
+
const Ye = Re(Fe, {
|
|
244
|
+
RadioButton: se,
|
|
245
|
+
RadioGroup: ie
|
|
246
|
+
}), He = W(ie);
|
|
247
|
+
W(se);
|
|
248
|
+
const We = { class: "wrapper" }, qe = { class: "screen_thumbnail" }, Ze = ["src"], Je = { class: "validity-period" }, Qe = {
|
|
249
|
+
key: 0,
|
|
250
|
+
class: "custom"
|
|
251
|
+
}, eo = { class: "footer" }, no = /* @__PURE__ */ E({
|
|
252
|
+
__name: "ScreenShotTool",
|
|
253
|
+
props: ["componentId"],
|
|
254
|
+
emits: ["closePanel"],
|
|
255
|
+
setup(t, { emit: f }) {
|
|
256
|
+
const a = ke(), o = Ee(), c = t, p = R(0), s = R(), d = R(), l = R(), u = f;
|
|
257
|
+
ee(() => {
|
|
258
|
+
s.value = 1280, d.value = 720, o.setReadyById(c.componentId);
|
|
259
|
+
}), oe(
|
|
260
|
+
() => o.isToolActive(c.componentId),
|
|
261
|
+
(i) => {
|
|
262
|
+
i && _(220, 124, !1);
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
const b = (i) => {
|
|
266
|
+
p.value = i, i !== 3 && (s.value = U[i].width, d.value = U[i].height);
|
|
267
|
+
}, n = () => {
|
|
268
|
+
u("closePanel");
|
|
269
|
+
}, _ = (i, r, G) => {
|
|
270
|
+
const h = document.getElementById("myCanvas"), I = document.createElement("a");
|
|
271
|
+
I.download = "screenshot.png";
|
|
272
|
+
const V = document.createElement("canvas"), m = V.getContext("2d");
|
|
273
|
+
if (h && m) {
|
|
274
|
+
V.width = i, V.height = r;
|
|
275
|
+
const re = i / h.width, de = r / h.height, A = Math.max(re, de), D = h.width * A, K = h.height * A, ue = (i - D) / 2, ce = (r - K) / 2;
|
|
276
|
+
m.clearRect(0, 0, i, r), m.fillStyle = "transparent", m.fillRect(0, 0, i, r), m.drawImage(h, 0, 0, h.width, h.height, ue, ce, D, K), G ? V.toBlob(function(me) {
|
|
277
|
+
const M = URL.createObjectURL(me);
|
|
278
|
+
I.href = M, I.click(), URL.revokeObjectURL(M);
|
|
279
|
+
}) : l.value = V.toDataURL("image/png");
|
|
280
|
+
}
|
|
281
|
+
}, S = () => {
|
|
282
|
+
_(s.value, d.value, !0);
|
|
283
|
+
};
|
|
284
|
+
return (i, r) => {
|
|
285
|
+
const G = Ye, h = He, I = Ie, V = pe;
|
|
286
|
+
return k(), ze(V, {
|
|
287
|
+
class: "screen_container",
|
|
288
|
+
width: 240,
|
|
289
|
+
panelTitle: e(a)("screenshot.title"),
|
|
290
|
+
"click-handle": n
|
|
291
|
+
}, {
|
|
292
|
+
default: P(() => [
|
|
293
|
+
v("div", We, [
|
|
294
|
+
v("div", qe, [
|
|
295
|
+
v("img", {
|
|
296
|
+
class: "thumbnail_img",
|
|
297
|
+
src: l.value,
|
|
298
|
+
alt: ""
|
|
299
|
+
}, null, 8, Ze)
|
|
300
|
+
]),
|
|
301
|
+
w(h, {
|
|
302
|
+
modelValue: p.value,
|
|
303
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => p.value = m),
|
|
304
|
+
onChange: b
|
|
305
|
+
}, {
|
|
306
|
+
default: P(() => [
|
|
307
|
+
v("div", Je, [
|
|
308
|
+
(k(!0), B(Ge, null, Pe(e(U), (m) => (k(), B("div", {
|
|
309
|
+
key: m.id,
|
|
310
|
+
class: "period_box"
|
|
311
|
+
}, [
|
|
312
|
+
w(G, {
|
|
313
|
+
label: m.id
|
|
314
|
+
}, {
|
|
315
|
+
default: P(() => [
|
|
316
|
+
$(C(m.name || e(a)(m.label ?? "")), 1)
|
|
317
|
+
]),
|
|
318
|
+
_: 2
|
|
319
|
+
}, 1032, ["label"])
|
|
320
|
+
]))), 128))
|
|
321
|
+
])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
}, 8, ["modelValue"]),
|
|
325
|
+
p.value === 3 ? (k(), B("div", Qe, [
|
|
326
|
+
w(I, {
|
|
327
|
+
modelValue: s.value,
|
|
328
|
+
"onUpdate:modelValue": r[1] || (r[1] = (m) => s.value = m),
|
|
329
|
+
placeholder: e(a)("screenshot.widthPlaceholder")
|
|
330
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
331
|
+
r[3] || (r[3] = $(" x ")),
|
|
332
|
+
w(I, {
|
|
333
|
+
modelValue: d.value,
|
|
334
|
+
"onUpdate:modelValue": r[2] || (r[2] = (m) => d.value = m),
|
|
335
|
+
placeholder: e(a)("screenshot.heightPlaceholder")
|
|
336
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
337
|
+
])) : Ue("", !0),
|
|
338
|
+
v("div", eo, [
|
|
339
|
+
v("div", {
|
|
340
|
+
class: "btn1",
|
|
341
|
+
onClick: n
|
|
342
|
+
}, C(e(a)("common.cancel")), 1),
|
|
343
|
+
v("div", {
|
|
344
|
+
class: "btn2",
|
|
345
|
+
onClick: S
|
|
346
|
+
}, C(e(a)("common.save")), 1)
|
|
347
|
+
])
|
|
348
|
+
])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["panelTitle"]);
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
export {
|
|
356
|
+
no as default
|
|
357
|
+
};
|