@xtctwins/tctwins-bimx-engine 0.3.21 → 0.3.22
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 -196
- package/dist/{AnnotationTool-DCHJcLix.mjs → AnnotationTool-CtRhDcPK.mjs} +35 -35
- package/dist/BIMX_Viewer_Lib.es.js +6 -6
- package/dist/BIMX_Viewer_Lib.umd.js +214 -167
- package/dist/{CameraViewTool-CJfs6vWu.mjs → CameraViewTool-CtLUEw0Q.mjs} +38 -38
- package/dist/{CommentTool-mcXTV3bv.mjs → CommentTool-B8fvijhz.mjs} +192 -192
- package/dist/{HiddenTool-BXTqbPUK.mjs → HiddenTool-511eglcE.mjs} +13 -13
- package/dist/{InspectorTool-D6DtUWoh.mjs → InspectorTool-D9Yjs6eH.mjs} +13 -13
- package/dist/{MeasureTool-BZxE7H7U.mjs → MeasureTool-C5Ce0Nef.mjs} +125 -125
- package/dist/{MouseTool-Clt4JeIj.mjs → MouseTool-BJX4hgly.mjs} +8 -8
- package/dist/{NavigateTool-cQshheaw.mjs → NavigateTool-BxOX-2P9.mjs} +8 -8
- package/dist/{OperateTool-C86C-l1z.mjs → OperateTool-DdkSl849.mjs} +61 -58
- package/dist/{RoamTool-DueJxPwv.mjs → RoamTool-CzNcha7A.mjs} +27 -27
- package/dist/ScreenShotTool-_TQ3T0xw.mjs +429 -0
- package/dist/{SectionTool-CKrvJEQ9.mjs → SectionTool-DlUhDw_i.mjs} +70 -70
- package/dist/SettingTool-yhgi_CY0.mjs +1787 -0
- package/dist/StructureTree-CNKrxyeJ.mjs +1685 -0
- package/dist/{alert-D-agI6w6.mjs → alert-B0WoSDD3.mjs} +14 -14
- package/dist/{index-jngVSTsO.mjs → index-D7FcGpin.mjs} +56419 -53825
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs → panel.vue_vue_type_style_index_0_lang-BG2LZoNF.mjs} +1 -1
- package/dist/style.css +3 -3
- package/dist/{tallPanel-CNORaYkU.mjs → tallPanel-DpEzw_w-.mjs} +12 -12
- package/package.json +85 -85
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
- package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
- package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
- package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
- package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +32 -1
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +270 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +291 -7
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
- 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 +4 -6
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +11642 -1
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimxViewerComp.vue.d.ts +7 -21
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +291 -7
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +270 -1
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -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 +8 -2
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
- package/types/pages/BimxViewerEntry.vue.d.ts +4 -66
- package/types/store/toolbars.d.ts +50 -50
- package/types/viewerManager/sectionManager.d.ts +25 -25
- package/dist/01.xtc +0 -0
- package/dist/02.xtc +0 -0
- package/dist/03.xtc +0 -0
- package/dist/ScreenShotTool-DDtQfqF5.mjs +0 -356
- package/dist/SettingTool-CWAOl-yl.mjs +0 -1508
- package/dist/StructureTree-BTqIDob7.mjs +0 -1582
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +0 -10
- package/types/components/bimxViewer.vue.d.ts +0 -27
- package/types/pages/viewerEntry.vue.d.ts +0 -116
- package/types/tests/cmt.d.ts +0 -1
|
@@ -34,7 +34,7 @@ export default class SectionManager {
|
|
|
34
34
|
img: string;
|
|
35
35
|
imgActive: string;
|
|
36
36
|
isActive: boolean;
|
|
37
|
-
position?:
|
|
37
|
+
position?: 0 | 1 | 2 | undefined;
|
|
38
38
|
}[];
|
|
39
39
|
mTools: {
|
|
40
40
|
id: number;
|
|
@@ -46,7 +46,7 @@ export default class SectionManager {
|
|
|
46
46
|
img: string;
|
|
47
47
|
imgActive: string;
|
|
48
48
|
isActive: boolean;
|
|
49
|
-
position?:
|
|
49
|
+
position?: 0 | 1 | 2 | undefined;
|
|
50
50
|
}[];
|
|
51
51
|
visibleToolIds: number[];
|
|
52
52
|
readyToolIds: number[];
|
|
@@ -68,7 +68,7 @@ export default class SectionManager {
|
|
|
68
68
|
img: string;
|
|
69
69
|
imgActive: string;
|
|
70
70
|
isActive: boolean;
|
|
71
|
-
position?:
|
|
71
|
+
position?: 0 | 1 | 2 | undefined;
|
|
72
72
|
}[];
|
|
73
73
|
visibleTools: (state: {
|
|
74
74
|
isPc: boolean;
|
|
@@ -82,7 +82,7 @@ export default class SectionManager {
|
|
|
82
82
|
img: string;
|
|
83
83
|
imgActive: string;
|
|
84
84
|
isActive: boolean;
|
|
85
|
-
position?:
|
|
85
|
+
position?: 0 | 1 | 2 | undefined;
|
|
86
86
|
}[];
|
|
87
87
|
mTools: {
|
|
88
88
|
id: number;
|
|
@@ -94,7 +94,7 @@ export default class SectionManager {
|
|
|
94
94
|
img: string;
|
|
95
95
|
imgActive: string;
|
|
96
96
|
isActive: boolean;
|
|
97
|
-
position?:
|
|
97
|
+
position?: 0 | 1 | 2 | undefined;
|
|
98
98
|
}[];
|
|
99
99
|
visibleToolIds: number[];
|
|
100
100
|
readyToolIds: number[];
|
|
@@ -119,7 +119,7 @@ export default class SectionManager {
|
|
|
119
119
|
img: string;
|
|
120
120
|
imgActive: string;
|
|
121
121
|
isActive: boolean;
|
|
122
|
-
position?:
|
|
122
|
+
position?: 0 | 1 | 2 | undefined;
|
|
123
123
|
}[];
|
|
124
124
|
mTools: {
|
|
125
125
|
id: number;
|
|
@@ -131,7 +131,7 @@ export default class SectionManager {
|
|
|
131
131
|
img: string;
|
|
132
132
|
imgActive: string;
|
|
133
133
|
isActive: boolean;
|
|
134
|
-
position?:
|
|
134
|
+
position?: 0 | 1 | 2 | undefined;
|
|
135
135
|
}[];
|
|
136
136
|
visibleToolIds: number[];
|
|
137
137
|
readyToolIds: number[];
|
|
@@ -156,7 +156,7 @@ export default class SectionManager {
|
|
|
156
156
|
img: string;
|
|
157
157
|
imgActive: string;
|
|
158
158
|
isActive: boolean;
|
|
159
|
-
position?:
|
|
159
|
+
position?: 0 | 1 | 2 | undefined;
|
|
160
160
|
}[];
|
|
161
161
|
mTools: {
|
|
162
162
|
id: number;
|
|
@@ -168,7 +168,7 @@ export default class SectionManager {
|
|
|
168
168
|
img: string;
|
|
169
169
|
imgActive: string;
|
|
170
170
|
isActive: boolean;
|
|
171
|
-
position?:
|
|
171
|
+
position?: 0 | 1 | 2 | undefined;
|
|
172
172
|
}[];
|
|
173
173
|
visibleToolIds: number[];
|
|
174
174
|
readyToolIds: number[];
|
|
@@ -193,7 +193,7 @@ export default class SectionManager {
|
|
|
193
193
|
img: string;
|
|
194
194
|
imgActive: string;
|
|
195
195
|
isActive: boolean;
|
|
196
|
-
position?:
|
|
196
|
+
position?: 0 | 1 | 2 | undefined;
|
|
197
197
|
}[];
|
|
198
198
|
mTools: {
|
|
199
199
|
id: number;
|
|
@@ -205,7 +205,7 @@ export default class SectionManager {
|
|
|
205
205
|
img: string;
|
|
206
206
|
imgActive: string;
|
|
207
207
|
isActive: boolean;
|
|
208
|
-
position?:
|
|
208
|
+
position?: 0 | 1 | 2 | undefined;
|
|
209
209
|
}[];
|
|
210
210
|
visibleToolIds: number[];
|
|
211
211
|
readyToolIds: number[];
|
|
@@ -230,7 +230,7 @@ export default class SectionManager {
|
|
|
230
230
|
img: string;
|
|
231
231
|
imgActive: string;
|
|
232
232
|
isActive: boolean;
|
|
233
|
-
position?:
|
|
233
|
+
position?: 0 | 1 | 2 | undefined;
|
|
234
234
|
}[];
|
|
235
235
|
mTools: {
|
|
236
236
|
id: number;
|
|
@@ -242,7 +242,7 @@ export default class SectionManager {
|
|
|
242
242
|
img: string;
|
|
243
243
|
imgActive: string;
|
|
244
244
|
isActive: boolean;
|
|
245
|
-
position?:
|
|
245
|
+
position?: 0 | 1 | 2 | undefined;
|
|
246
246
|
}[];
|
|
247
247
|
visibleToolIds: number[];
|
|
248
248
|
readyToolIds: number[];
|
|
@@ -267,7 +267,7 @@ export default class SectionManager {
|
|
|
267
267
|
img: string;
|
|
268
268
|
imgActive: string;
|
|
269
269
|
isActive: boolean;
|
|
270
|
-
position?:
|
|
270
|
+
position?: 0 | 1 | 2 | undefined;
|
|
271
271
|
}[];
|
|
272
272
|
mTools: {
|
|
273
273
|
id: number;
|
|
@@ -279,7 +279,7 @@ export default class SectionManager {
|
|
|
279
279
|
img: string;
|
|
280
280
|
imgActive: string;
|
|
281
281
|
isActive: boolean;
|
|
282
|
-
position?:
|
|
282
|
+
position?: 0 | 1 | 2 | undefined;
|
|
283
283
|
}[];
|
|
284
284
|
visibleToolIds: number[];
|
|
285
285
|
readyToolIds: number[];
|
|
@@ -304,7 +304,7 @@ export default class SectionManager {
|
|
|
304
304
|
img: string;
|
|
305
305
|
imgActive: string;
|
|
306
306
|
isActive: boolean;
|
|
307
|
-
position?:
|
|
307
|
+
position?: 0 | 1 | 2 | undefined;
|
|
308
308
|
}[];
|
|
309
309
|
mTools: {
|
|
310
310
|
id: number;
|
|
@@ -316,7 +316,7 @@ export default class SectionManager {
|
|
|
316
316
|
img: string;
|
|
317
317
|
imgActive: string;
|
|
318
318
|
isActive: boolean;
|
|
319
|
-
position?:
|
|
319
|
+
position?: 0 | 1 | 2 | undefined;
|
|
320
320
|
}[];
|
|
321
321
|
visibleToolIds: number[];
|
|
322
322
|
readyToolIds: number[];
|
|
@@ -341,7 +341,7 @@ export default class SectionManager {
|
|
|
341
341
|
img: string;
|
|
342
342
|
imgActive: string;
|
|
343
343
|
isActive: boolean;
|
|
344
|
-
position?:
|
|
344
|
+
position?: 0 | 1 | 2 | undefined;
|
|
345
345
|
}[];
|
|
346
346
|
mTools: {
|
|
347
347
|
id: number;
|
|
@@ -353,7 +353,7 @@ export default class SectionManager {
|
|
|
353
353
|
img: string;
|
|
354
354
|
imgActive: string;
|
|
355
355
|
isActive: boolean;
|
|
356
|
-
position?:
|
|
356
|
+
position?: 0 | 1 | 2 | undefined;
|
|
357
357
|
}[];
|
|
358
358
|
visibleToolIds: number[];
|
|
359
359
|
readyToolIds: number[];
|
|
@@ -378,7 +378,7 @@ export default class SectionManager {
|
|
|
378
378
|
img: string;
|
|
379
379
|
imgActive: string;
|
|
380
380
|
isActive: boolean;
|
|
381
|
-
position?:
|
|
381
|
+
position?: 0 | 1 | 2 | undefined;
|
|
382
382
|
}[];
|
|
383
383
|
mTools: {
|
|
384
384
|
id: number;
|
|
@@ -390,7 +390,7 @@ export default class SectionManager {
|
|
|
390
390
|
img: string;
|
|
391
391
|
imgActive: string;
|
|
392
392
|
isActive: boolean;
|
|
393
|
-
position?:
|
|
393
|
+
position?: 0 | 1 | 2 | undefined;
|
|
394
394
|
}[];
|
|
395
395
|
visibleToolIds: number[];
|
|
396
396
|
readyToolIds: number[];
|
|
@@ -415,7 +415,7 @@ export default class SectionManager {
|
|
|
415
415
|
img: string;
|
|
416
416
|
imgActive: string;
|
|
417
417
|
isActive: boolean;
|
|
418
|
-
position?:
|
|
418
|
+
position?: 0 | 1 | 2 | undefined;
|
|
419
419
|
}[];
|
|
420
420
|
mTools: {
|
|
421
421
|
id: number;
|
|
@@ -427,7 +427,7 @@ export default class SectionManager {
|
|
|
427
427
|
img: string;
|
|
428
428
|
imgActive: string;
|
|
429
429
|
isActive: boolean;
|
|
430
|
-
position?:
|
|
430
|
+
position?: 0 | 1 | 2 | undefined;
|
|
431
431
|
}[];
|
|
432
432
|
visibleToolIds: number[];
|
|
433
433
|
readyToolIds: number[];
|
|
@@ -452,7 +452,7 @@ export default class SectionManager {
|
|
|
452
452
|
img: string;
|
|
453
453
|
imgActive: string;
|
|
454
454
|
isActive: boolean;
|
|
455
|
-
position?:
|
|
455
|
+
position?: 0 | 1 | 2 | undefined;
|
|
456
456
|
}[];
|
|
457
457
|
mTools: {
|
|
458
458
|
id: number;
|
|
@@ -464,7 +464,7 @@ export default class SectionManager {
|
|
|
464
464
|
img: string;
|
|
465
465
|
imgActive: string;
|
|
466
466
|
isActive: boolean;
|
|
467
|
-
position?:
|
|
467
|
+
position?: 0 | 1 | 2 | undefined;
|
|
468
468
|
}[];
|
|
469
469
|
visibleToolIds: number[];
|
|
470
470
|
readyToolIds: number[];
|
package/dist/01.xtc
DELETED
|
Binary file
|
package/dist/02.xtc
DELETED
|
Binary file
|
package/dist/03.xtc
DELETED
|
Binary file
|
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
import { _ as pe } from "./panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs";
|
|
2
|
-
import { a8 as G, a9 as x, f as j, aa as O, ab as H, ac as ve, ad as X, a as W, ae as fe, af as be, ag as _e, u as L, _ as T, ah as he, ai as ge, aj as ye, ak as Se, d as Ve, w as Re, al as Y, n as ke, o as Ee, am as U, t as Ie } from "./index-jngVSTsO.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 J, withModifiers as N, vModelRadio as Q, renderSlot as F, createTextVNode as z, toDisplayString as C, nextTick as Z, normalizeStyle as Ce, onMounted as ee, provide as we, reactive as Ne, toRefs as ze, watch as oe, createBlock as Ge, withCtx as $, createVNode as w, Fragment as Pe, renderList as Ue, createCommentVNode as $e } from "vue";
|
|
4
|
-
const ae = G({
|
|
5
|
-
modelValue: {
|
|
6
|
-
type: [String, Number, Boolean],
|
|
7
|
-
default: void 0
|
|
8
|
-
},
|
|
9
|
-
size: X,
|
|
10
|
-
disabled: Boolean,
|
|
11
|
-
label: {
|
|
12
|
-
type: [String, Number, Boolean],
|
|
13
|
-
default: void 0
|
|
14
|
-
},
|
|
15
|
-
value: {
|
|
16
|
-
type: [String, Number, Boolean],
|
|
17
|
-
default: void 0
|
|
18
|
-
},
|
|
19
|
-
name: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: void 0
|
|
22
|
-
}
|
|
23
|
-
}), xe = G({
|
|
24
|
-
...ae,
|
|
25
|
-
border: Boolean
|
|
26
|
-
}), le = {
|
|
27
|
-
[x]: (t) => j(t) || O(t) || H(t),
|
|
28
|
-
[ve]: (t) => j(t) || O(t) || H(t)
|
|
29
|
-
}, te = Symbol("radioGroupKey"), ne = (t, f) => {
|
|
30
|
-
const a = R(), o = Be(te, void 0), c = g(() => !!o), p = g(() => W(t.value) ? t.label : t.value), s = g({
|
|
31
|
-
get() {
|
|
32
|
-
return c.value ? o.modelValue : t.modelValue;
|
|
33
|
-
},
|
|
34
|
-
set(n) {
|
|
35
|
-
c.value ? o.changeEvent(n) : f && f(x, n), a.value.checked = t.modelValue === p.value;
|
|
36
|
-
}
|
|
37
|
-
}), 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);
|
|
38
|
-
return _e({
|
|
39
|
-
from: "label act as value",
|
|
40
|
-
replacement: "value",
|
|
41
|
-
version: "3.0.0",
|
|
42
|
-
scope: "el-radio",
|
|
43
|
-
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
44
|
-
}, g(() => c.value && W(t.value))), {
|
|
45
|
-
radioRef: a,
|
|
46
|
-
isGroup: c,
|
|
47
|
-
radioGroup: o,
|
|
48
|
-
focus: u,
|
|
49
|
-
size: d,
|
|
50
|
-
disabled: l,
|
|
51
|
-
tabIndex: b,
|
|
52
|
-
modelValue: s,
|
|
53
|
-
actualValue: p
|
|
54
|
-
};
|
|
55
|
-
}, Le = E({
|
|
56
|
-
name: "ElRadio"
|
|
57
|
-
}), Te = /* @__PURE__ */ E({
|
|
58
|
-
...Le,
|
|
59
|
-
props: xe,
|
|
60
|
-
emits: le,
|
|
61
|
-
setup(t, { emit: f }) {
|
|
62
|
-
const a = t, o = L("radio"), { radioRef: c, radioGroup: p, focus: s, size: d, disabled: l, modelValue: u, actualValue: b } = ne(a, f);
|
|
63
|
-
function n() {
|
|
64
|
-
Z(() => f("change", u.value));
|
|
65
|
-
}
|
|
66
|
-
return (_, S) => {
|
|
67
|
-
var i;
|
|
68
|
-
return k(), B("label", {
|
|
69
|
-
class: y([
|
|
70
|
-
e(o).b(),
|
|
71
|
-
e(o).is("disabled", e(l)),
|
|
72
|
-
e(o).is("focus", e(s)),
|
|
73
|
-
e(o).is("bordered", _.border),
|
|
74
|
-
e(o).is("checked", e(u) === e(b)),
|
|
75
|
-
e(o).m(e(d))
|
|
76
|
-
])
|
|
77
|
-
}, [
|
|
78
|
-
v("span", {
|
|
79
|
-
class: y([
|
|
80
|
-
e(o).e("input"),
|
|
81
|
-
e(o).is("disabled", e(l)),
|
|
82
|
-
e(o).is("checked", e(u) === e(b))
|
|
83
|
-
])
|
|
84
|
-
}, [
|
|
85
|
-
q(v("input", {
|
|
86
|
-
ref_key: "radioRef",
|
|
87
|
-
ref: c,
|
|
88
|
-
"onUpdate:modelValue": (r) => J(u) ? u.value = r : null,
|
|
89
|
-
class: y(e(o).e("original")),
|
|
90
|
-
value: e(b),
|
|
91
|
-
name: _.name || ((i = e(p)) == null ? void 0 : i.name),
|
|
92
|
-
disabled: e(l),
|
|
93
|
-
checked: e(u) === e(b),
|
|
94
|
-
type: "radio",
|
|
95
|
-
onFocus: (r) => s.value = !0,
|
|
96
|
-
onBlur: (r) => s.value = !1,
|
|
97
|
-
onChange: n,
|
|
98
|
-
onClick: N(() => {
|
|
99
|
-
}, ["stop"])
|
|
100
|
-
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "checked", "onFocus", "onBlur", "onClick"]), [
|
|
101
|
-
[Q, e(u)]
|
|
102
|
-
]),
|
|
103
|
-
v("span", {
|
|
104
|
-
class: y(e(o).e("inner"))
|
|
105
|
-
}, null, 2)
|
|
106
|
-
], 2),
|
|
107
|
-
v("span", {
|
|
108
|
-
class: y(e(o).e("label")),
|
|
109
|
-
onKeydown: N(() => {
|
|
110
|
-
}, ["stop"])
|
|
111
|
-
}, [
|
|
112
|
-
F(_.$slots, "default", {}, () => [
|
|
113
|
-
z(C(_.label), 1)
|
|
114
|
-
])
|
|
115
|
-
], 42, ["onKeydown"])
|
|
116
|
-
], 2);
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
var Fe = /* @__PURE__ */ T(Te, [["__file", "radio.vue"]]);
|
|
121
|
-
const Ae = G({
|
|
122
|
-
...ae
|
|
123
|
-
}), De = E({
|
|
124
|
-
name: "ElRadioButton"
|
|
125
|
-
}), Ke = /* @__PURE__ */ E({
|
|
126
|
-
...De,
|
|
127
|
-
props: Ae,
|
|
128
|
-
setup(t) {
|
|
129
|
-
const f = t, a = L("radio"), { radioRef: o, focus: c, size: p, disabled: s, modelValue: d, radioGroup: l, actualValue: u } = ne(f), b = g(() => ({
|
|
130
|
-
backgroundColor: (l == null ? void 0 : l.fill) || "",
|
|
131
|
-
borderColor: (l == null ? void 0 : l.fill) || "",
|
|
132
|
-
boxShadow: l != null && l.fill ? `-1px 0 0 0 ${l.fill}` : "",
|
|
133
|
-
color: (l == null ? void 0 : l.textColor) || ""
|
|
134
|
-
}));
|
|
135
|
-
return (n, _) => {
|
|
136
|
-
var S;
|
|
137
|
-
return k(), B("label", {
|
|
138
|
-
class: y([
|
|
139
|
-
e(a).b("button"),
|
|
140
|
-
e(a).is("active", e(d) === e(u)),
|
|
141
|
-
e(a).is("disabled", e(s)),
|
|
142
|
-
e(a).is("focus", e(c)),
|
|
143
|
-
e(a).bm("button", e(p))
|
|
144
|
-
])
|
|
145
|
-
}, [
|
|
146
|
-
q(v("input", {
|
|
147
|
-
ref_key: "radioRef",
|
|
148
|
-
ref: o,
|
|
149
|
-
"onUpdate:modelValue": (i) => J(d) ? d.value = i : null,
|
|
150
|
-
class: y(e(a).be("button", "original-radio")),
|
|
151
|
-
value: e(u),
|
|
152
|
-
type: "radio",
|
|
153
|
-
name: n.name || ((S = e(l)) == null ? void 0 : S.name),
|
|
154
|
-
disabled: e(s),
|
|
155
|
-
onFocus: (i) => c.value = !0,
|
|
156
|
-
onBlur: (i) => c.value = !1,
|
|
157
|
-
onClick: N(() => {
|
|
158
|
-
}, ["stop"])
|
|
159
|
-
}, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
|
|
160
|
-
[Q, e(d)]
|
|
161
|
-
]),
|
|
162
|
-
v("span", {
|
|
163
|
-
class: y(e(a).be("button", "inner")),
|
|
164
|
-
style: Ce(e(d) === e(u) ? e(b) : {}),
|
|
165
|
-
onKeydown: N(() => {
|
|
166
|
-
}, ["stop"])
|
|
167
|
-
}, [
|
|
168
|
-
F(n.$slots, "default", {}, () => [
|
|
169
|
-
z(C(n.label), 1)
|
|
170
|
-
])
|
|
171
|
-
], 46, ["onKeydown"])
|
|
172
|
-
], 2);
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
var se = /* @__PURE__ */ T(Ke, [["__file", "radio-button.vue"]]);
|
|
177
|
-
const Me = G({
|
|
178
|
-
id: {
|
|
179
|
-
type: String,
|
|
180
|
-
default: void 0
|
|
181
|
-
},
|
|
182
|
-
size: X,
|
|
183
|
-
disabled: Boolean,
|
|
184
|
-
modelValue: {
|
|
185
|
-
type: [String, Number, Boolean],
|
|
186
|
-
default: void 0
|
|
187
|
-
},
|
|
188
|
-
fill: {
|
|
189
|
-
type: String,
|
|
190
|
-
default: ""
|
|
191
|
-
},
|
|
192
|
-
textColor: {
|
|
193
|
-
type: String,
|
|
194
|
-
default: ""
|
|
195
|
-
},
|
|
196
|
-
name: {
|
|
197
|
-
type: String,
|
|
198
|
-
default: void 0
|
|
199
|
-
},
|
|
200
|
-
validateEvent: {
|
|
201
|
-
type: Boolean,
|
|
202
|
-
default: !0
|
|
203
|
-
},
|
|
204
|
-
...he(["ariaLabel"])
|
|
205
|
-
}), je = le, Oe = E({
|
|
206
|
-
name: "ElRadioGroup"
|
|
207
|
-
}), He = /* @__PURE__ */ E({
|
|
208
|
-
...Oe,
|
|
209
|
-
props: Me,
|
|
210
|
-
emits: je,
|
|
211
|
-
setup(t, { emit: f }) {
|
|
212
|
-
const a = t, o = L("radio"), c = ge(), p = R(), { formItem: s } = ye(), { inputId: d, isLabeledByFormItem: l } = Se(a, {
|
|
213
|
-
formItemContext: s
|
|
214
|
-
}), u = (n) => {
|
|
215
|
-
f(x, n), Z(() => f("change", n));
|
|
216
|
-
};
|
|
217
|
-
ee(() => {
|
|
218
|
-
const n = p.value.querySelectorAll("[type=radio]"), _ = n[0];
|
|
219
|
-
!Array.from(n).some((S) => S.checked) && _ && (_.tabIndex = 0);
|
|
220
|
-
});
|
|
221
|
-
const b = g(() => a.name || c.value);
|
|
222
|
-
return we(te, Ne({
|
|
223
|
-
...ze(a),
|
|
224
|
-
changeEvent: u,
|
|
225
|
-
name: b
|
|
226
|
-
})), oe(() => a.modelValue, () => {
|
|
227
|
-
a.validateEvent && (s == null || s.validate("change").catch((n) => Ve(n)));
|
|
228
|
-
}), (n, _) => (k(), B("div", {
|
|
229
|
-
id: e(d),
|
|
230
|
-
ref_key: "radioGroupRef",
|
|
231
|
-
ref: p,
|
|
232
|
-
class: y(e(o).b("group")),
|
|
233
|
-
role: "radiogroup",
|
|
234
|
-
"aria-label": e(l) ? void 0 : n.ariaLabel || "radio-group",
|
|
235
|
-
"aria-labelledby": e(l) ? e(s).labelId : void 0
|
|
236
|
-
}, [
|
|
237
|
-
F(n.$slots, "default")
|
|
238
|
-
], 10, ["id", "aria-label", "aria-labelledby"]));
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
var ie = /* @__PURE__ */ T(He, [["__file", "radio-group.vue"]]);
|
|
242
|
-
const We = Re(Fe, {
|
|
243
|
-
RadioButton: se,
|
|
244
|
-
RadioGroup: ie
|
|
245
|
-
}), Xe = Y(ie);
|
|
246
|
-
Y(se);
|
|
247
|
-
const Ye = { class: "wrapper" }, qe = { class: "screen_thumbnail" }, Je = ["src"], Qe = { class: "validity-period" }, Ze = {
|
|
248
|
-
key: 0,
|
|
249
|
-
class: "custom"
|
|
250
|
-
}, eo = { class: "footer" }, to = /* @__PURE__ */ E({
|
|
251
|
-
__name: "ScreenShotTool",
|
|
252
|
-
props: ["componentId"],
|
|
253
|
-
emits: ["closePanel"],
|
|
254
|
-
setup(t, { emit: f }) {
|
|
255
|
-
const a = ke(), o = Ee(), c = t, p = R(0), s = R(), d = R(), l = R(), u = f;
|
|
256
|
-
ee(() => {
|
|
257
|
-
s.value = 1280, d.value = 720, o.setReadyById(c.componentId);
|
|
258
|
-
}), oe(
|
|
259
|
-
() => o.isToolActive(c.componentId),
|
|
260
|
-
(i) => {
|
|
261
|
-
i && _(220, 124, !1);
|
|
262
|
-
}
|
|
263
|
-
);
|
|
264
|
-
const b = (i) => {
|
|
265
|
-
p.value = i, i !== 3 && (s.value = U[i].width, d.value = U[i].height);
|
|
266
|
-
}, n = () => {
|
|
267
|
-
u("closePanel");
|
|
268
|
-
}, _ = (i, r, P) => {
|
|
269
|
-
const h = document.getElementById("myCanvas"), I = document.createElement("a");
|
|
270
|
-
I.download = "screenshot.png";
|
|
271
|
-
const V = document.createElement("canvas"), m = V.getContext("2d");
|
|
272
|
-
if (h && m) {
|
|
273
|
-
V.width = i, V.height = r;
|
|
274
|
-
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;
|
|
275
|
-
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), P ? V.toBlob(function(me) {
|
|
276
|
-
const M = URL.createObjectURL(me);
|
|
277
|
-
I.href = M, I.click(), URL.revokeObjectURL(M);
|
|
278
|
-
}) : l.value = V.toDataURL("image/png");
|
|
279
|
-
}
|
|
280
|
-
}, S = () => {
|
|
281
|
-
_(s.value, d.value, !0);
|
|
282
|
-
};
|
|
283
|
-
return (i, r) => {
|
|
284
|
-
const P = We, h = Xe, I = Ie, V = pe;
|
|
285
|
-
return k(), Ge(V, {
|
|
286
|
-
class: "screen_container",
|
|
287
|
-
width: 240,
|
|
288
|
-
panelTitle: e(a)("screenshot.title"),
|
|
289
|
-
"click-handle": n
|
|
290
|
-
}, {
|
|
291
|
-
default: $(() => [
|
|
292
|
-
v("div", Ye, [
|
|
293
|
-
v("div", qe, [
|
|
294
|
-
v("img", {
|
|
295
|
-
class: "thumbnail_img",
|
|
296
|
-
src: l.value,
|
|
297
|
-
alt: ""
|
|
298
|
-
}, null, 8, Je)
|
|
299
|
-
]),
|
|
300
|
-
w(h, {
|
|
301
|
-
modelValue: p.value,
|
|
302
|
-
"onUpdate:modelValue": r[0] || (r[0] = (m) => p.value = m),
|
|
303
|
-
onChange: b
|
|
304
|
-
}, {
|
|
305
|
-
default: $(() => [
|
|
306
|
-
v("div", Qe, [
|
|
307
|
-
(k(!0), B(Pe, null, Ue(e(U), (m) => (k(), B("div", {
|
|
308
|
-
key: m.id,
|
|
309
|
-
class: "period_box"
|
|
310
|
-
}, [
|
|
311
|
-
w(P, {
|
|
312
|
-
value: m.id
|
|
313
|
-
}, {
|
|
314
|
-
default: $(() => [
|
|
315
|
-
z(C(m.name || e(a)(m.label ?? "")), 1)
|
|
316
|
-
]),
|
|
317
|
-
_: 2
|
|
318
|
-
}, 1032, ["value"])
|
|
319
|
-
]))), 128))
|
|
320
|
-
])
|
|
321
|
-
]),
|
|
322
|
-
_: 1
|
|
323
|
-
}, 8, ["modelValue"]),
|
|
324
|
-
p.value === 3 ? (k(), B("div", Ze, [
|
|
325
|
-
w(I, {
|
|
326
|
-
modelValue: s.value,
|
|
327
|
-
"onUpdate:modelValue": r[1] || (r[1] = (m) => s.value = m),
|
|
328
|
-
placeholder: e(a)("screenshot.widthPlaceholder")
|
|
329
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
330
|
-
r[3] || (r[3] = z(" x ")),
|
|
331
|
-
w(I, {
|
|
332
|
-
modelValue: d.value,
|
|
333
|
-
"onUpdate:modelValue": r[2] || (r[2] = (m) => d.value = m),
|
|
334
|
-
placeholder: e(a)("screenshot.heightPlaceholder")
|
|
335
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
336
|
-
])) : $e("", !0),
|
|
337
|
-
v("div", eo, [
|
|
338
|
-
v("div", {
|
|
339
|
-
class: "btn1",
|
|
340
|
-
onClick: n
|
|
341
|
-
}, C(e(a)("common.cancel")), 1),
|
|
342
|
-
v("div", {
|
|
343
|
-
class: "btn2",
|
|
344
|
-
onClick: S
|
|
345
|
-
}, C(e(a)("common.save")), 1)
|
|
346
|
-
])
|
|
347
|
-
])
|
|
348
|
-
]),
|
|
349
|
-
_: 1
|
|
350
|
-
}, 8, ["panelTitle"]);
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
export {
|
|
355
|
-
to as default
|
|
356
|
-
};
|