@xtctwins/tctwins-bimx-engine 0.3.14 → 0.3.16

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 (95) hide show
  1. package/dist/01.xtc +0 -0
  2. package/dist/02.xtc +0 -0
  3. package/dist/03.xtc +0 -0
  4. package/dist/{AnnotationTool-CteDVdjW.mjs → AnnotationTool-nASKNjgr.mjs} +19 -19
  5. package/dist/BIMX_Viewer_Lib.es.js +6 -6
  6. package/dist/BIMX_Viewer_Lib.umd.js +166 -216
  7. package/dist/{CameraViewTool-T8acWRci.mjs → CameraViewTool-DhAfiKWu.mjs} +31 -31
  8. package/dist/{CommentTool-6Bjd87ri.mjs → CommentTool-a-BELMsU.mjs} +189 -189
  9. package/dist/{HiddenTool-cf_s5erB.mjs → HiddenTool-CqWfECbU.mjs} +13 -13
  10. package/dist/{InspectorTool-cXUQlhyS.mjs → InspectorTool-x0VVNWza.mjs} +12 -12
  11. package/dist/{MeasureTool-BipLSGw7.mjs → MeasureTool-DznYUEiR.mjs} +120 -120
  12. package/dist/{MouseTool-DGBE-edy.mjs → MouseTool-D8x8R2Hl.mjs} +8 -8
  13. package/dist/{NavigateTool-zSUmWXN2.mjs → NavigateTool-D16vm_Ng.mjs} +8 -8
  14. package/dist/{OperateTool-C15IxBPv.mjs → OperateTool-_E-8qp5I.mjs} +38 -38
  15. package/dist/{RoamTool-DRNu4bLS.mjs → RoamTool-ClbGAw0m.mjs} +15 -15
  16. package/dist/ScreenShotTool-BLHWBbYl.mjs +356 -0
  17. package/dist/{SectionTool-B9a0BliD.mjs → SectionTool-BduU5qr3.mjs} +70 -70
  18. package/dist/SettingTool-Dd-fS2IZ.mjs +1508 -0
  19. package/dist/StructureTree-Byfx-R9w.mjs +1582 -0
  20. package/dist/{alert-DVn5lHZn.mjs → alert-GVU1wFz1.mjs} +5 -5
  21. package/dist/{index-CXNtm8Fi.mjs → index-CdBeaeTl.mjs} +56655 -59801
  22. package/dist/{panel.vue_vue_type_style_index_0_lang-BuMjq_s_.mjs → panel.vue_vue_type_style_index_0_lang-BsP4zr2g.mjs} +1 -1
  23. package/dist/style.css +3 -3
  24. package/dist/{tallPanel-GRXOYaO1.mjs → tallPanel-B5pNGD_G.mjs} +10 -10
  25. package/package.json +1 -1
  26. package/types/App.vue.d.ts +1 -3
  27. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
  28. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
  29. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
  30. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
  31. package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
  32. package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
  33. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
  34. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
  35. package/types/components/BCFComponents/commentInput.vue.d.ts +11 -37
  36. package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
  37. package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
  38. package/types/components/BCFComponents/imageView.vue.d.ts +8 -6
  39. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
  40. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  41. package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
  42. package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +1 -1
  43. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  44. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -32
  45. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  46. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +8 -6
  47. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
  48. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  49. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -270
  50. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -291
  51. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
  52. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  53. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  54. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  55. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  56. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -4
  57. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -11642
  58. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  59. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
  60. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +10 -0
  61. package/types/components/BimxViewerComp.vue.d.ts +23 -7
  62. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
  63. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
  64. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -291
  65. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -270
  66. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
  67. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
  68. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
  69. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
  70. package/types/components/bimxViewer.vue.d.ts +27 -0
  71. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  72. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  73. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  74. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  75. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  76. package/types/components/utilsComponents/panel.vue.d.ts +2 -8
  77. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  78. package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
  79. package/types/components/utilsComponents/tallPanel.vue.d.ts +3 -13
  80. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +3 -13
  81. package/types/i18n/index.d.ts +24 -0
  82. package/types/i18n/locales/en-US.d.ts +6 -0
  83. package/types/i18n/locales/zh-CN.d.ts +6 -0
  84. package/types/pages/BimxViewerEntry.vue.d.ts +66 -4
  85. package/types/pages/viewerEntry.vue.d.ts +116 -0
  86. package/types/store/bcfReflect.d.ts +1 -1
  87. package/types/store/toolbars.d.ts +50 -50
  88. package/types/tests/cmt.d.ts +1 -0
  89. package/types/utils/eventBus.d.ts +1 -1
  90. package/types/viewerManager/initial/viewerInitial.d.ts +1 -0
  91. package/types/viewerManager/load/loadModel.d.ts +28 -6
  92. package/types/viewerManager/sectionManager.d.ts +25 -25
  93. package/dist/ScreenShotTool-7EXcMhsh.mjs +0 -429
  94. package/dist/SettingTool-C9IagqKW.mjs +0 -1745
  95. package/dist/StructureTree-Ktdt3a3q.mjs +0 -1685
@@ -34,7 +34,7 @@ export default class SectionManager {
34
34
  img: string;
35
35
  imgActive: string;
36
36
  isActive: boolean;
37
- position?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
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?: 0 | 1 | 2 | undefined;
467
+ position?: (0 | 1 | 2) | undefined;
468
468
  }[];
469
469
  visibleToolIds: number[];
470
470
  readyToolIds: number[];
@@ -1,429 +0,0 @@
1
- import { _ as _e } from "./panel.vue_vue_type_style_index_0_lang-BuMjq_s_.mjs";
2
- import { am as U, o as q, an as K, g as G, ao as Y, b as N, ap as J, aq as he, j as H, q as X, a as Se, ar as Ve, as as Ee, u as $, at as Re, au as ke, av as Ce, C as Ie, N as Be, aw as Pe, ax as W, w as xe, F as we, G as Ne, ay as T, J as ze } from "./index-CXNtm8Fi.mjs";
3
- import { ref as C, inject as Te, computed as h, defineComponent as z, openBlock as R, createElementBlock as I, normalizeClass as E, unref as e, createElementVNode as y, withDirectives as Q, withModifiers as x, isRef as Z, vModelRadio as ee, renderSlot as D, createTextVNode as w, toDisplayString as B, nextTick as te, normalizeStyle as Le, onMounted as ae, provide as Ue, reactive as $e, toRefs as De, watch as oe, Fragment as le, renderList as se, createBlock as ne, resolveDynamicComponent as Fe, mergeProps as Ae, withCtx as L, createVNode as P, createCommentVNode as Oe } from "vue";
4
- const ie = N({
5
- /**
6
- * @description binding value
7
- */
8
- modelValue: {
9
- type: [
10
- String,
11
- Number,
12
- Boolean
13
- ],
14
- default: void 0
15
- },
16
- /**
17
- * @description size of the Radio
18
- */
19
- size: J,
20
- /**
21
- * @description whether Radio is disabled
22
- */
23
- disabled: {
24
- type: Boolean,
25
- default: void 0
26
- },
27
- /**
28
- * @description the label of Radio
29
- */
30
- label: {
31
- type: [
32
- String,
33
- Number,
34
- Boolean
35
- ],
36
- default: void 0
37
- },
38
- /**
39
- * @description the value of Radio
40
- */
41
- value: {
42
- type: [
43
- String,
44
- Number,
45
- Boolean
46
- ],
47
- default: void 0
48
- },
49
- /**
50
- * @description native `name` attribute
51
- */
52
- name: {
53
- type: String,
54
- default: void 0
55
- }
56
- }), je = N({
57
- ...ie,
58
- /**
59
- * @description whether to add a border around Radio
60
- */
61
- border: Boolean
62
- }), re = {
63
- [Y]: (o) => q(o) || K(o) || G(o),
64
- [U]: (o) => q(o) || K(o) || G(o)
65
- }, de = Symbol("radioGroupKey"), Me = N({ ...ie }), ue = {
66
- label: "label",
67
- value: "value",
68
- disabled: "disabled"
69
- }, qe = N({
70
- /**
71
- * @description native `id` attribute
72
- */
73
- id: {
74
- type: String,
75
- default: void 0
76
- },
77
- /**
78
- * @description the size of radio buttons or bordered radios
79
- */
80
- size: J,
81
- /**
82
- * @description whether the nesting radios are disabled
83
- */
84
- disabled: {
85
- type: Boolean,
86
- default: void 0
87
- },
88
- /**
89
- * @description binding value
90
- */
91
- modelValue: {
92
- type: [
93
- String,
94
- Number,
95
- Boolean
96
- ],
97
- default: void 0
98
- },
99
- /**
100
- * @description border and background color when button is active
101
- */
102
- fill: {
103
- type: String,
104
- default: ""
105
- },
106
- /**
107
- * @description font color when button is active
108
- */
109
- textColor: {
110
- type: String,
111
- default: ""
112
- },
113
- /**
114
- * @description native `name` attribute
115
- */
116
- name: {
117
- type: String,
118
- default: void 0
119
- },
120
- /**
121
- * @description whether to trigger form validation
122
- */
123
- validateEvent: {
124
- type: Boolean,
125
- default: !0
126
- },
127
- options: { type: H(Array) },
128
- props: {
129
- type: H(Object),
130
- default: () => ue
131
- },
132
- type: {
133
- type: String,
134
- values: ["radio", "button"],
135
- default: "radio"
136
- },
137
- ...he(["ariaLabel"])
138
- }), Ke = re, ce = (o, S) => {
139
- const l = C(), r = Te(de, void 0), s = h(() => !!r), f = h(() => X(o.value) ? o.label : o.value), c = h({
140
- get() {
141
- return s.value ? r.modelValue : o.modelValue;
142
- },
143
- set(g) {
144
- s.value ? r.changeEvent(g) : S && S("update:modelValue", g), l.value.checked = o.modelValue === f.value;
145
- }
146
- }), i = Se(h(() => r == null ? void 0 : r.size)), n = Ve(h(() => r == null ? void 0 : r.disabled)), b = C(!1), v = h(() => n.value || s.value && c.value !== f.value ? -1 : 0);
147
- return Ee({
148
- from: "label act as value",
149
- replacement: "value",
150
- version: "3.0.0",
151
- scope: "el-radio",
152
- ref: "https://element-plus.org/en-US/component/radio.html"
153
- }, h(() => s.value && X(o.value))), {
154
- radioRef: l,
155
- isGroup: s,
156
- radioGroup: r,
157
- focus: b,
158
- size: i,
159
- disabled: n,
160
- tabIndex: v,
161
- modelValue: c,
162
- actualValue: f
163
- };
164
- }, Ge = [
165
- "value",
166
- "name",
167
- "disabled",
168
- "checked"
169
- ];
170
- var He = /* @__PURE__ */ z({
171
- name: "ElRadio",
172
- __name: "radio",
173
- props: je,
174
- emits: re,
175
- setup(o, { emit: S }) {
176
- const l = o, r = S, s = $("radio"), { radioRef: f, radioGroup: c, focus: i, size: n, disabled: b, modelValue: v, actualValue: g } = ce(l, r);
177
- function d() {
178
- te(() => r(U, v.value));
179
- }
180
- return (k, a) => {
181
- var t;
182
- return R(), I("label", { class: E([
183
- e(s).b(),
184
- e(s).is("disabled", e(b)),
185
- e(s).is("focus", e(i)),
186
- e(s).is("bordered", o.border),
187
- e(s).is("checked", e(v) === e(g)),
188
- e(s).m(e(n))
189
- ]) }, [y("span", { class: E([
190
- e(s).e("input"),
191
- e(s).is("disabled", e(b)),
192
- e(s).is("checked", e(v) === e(g))
193
- ]) }, [Q(y("input", {
194
- ref_key: "radioRef",
195
- ref: f,
196
- "onUpdate:modelValue": a[0] || (a[0] = (m) => Z(v) ? v.value = m : null),
197
- class: E(e(s).e("original")),
198
- value: e(g),
199
- name: o.name || ((t = e(c)) == null ? void 0 : t.name),
200
- disabled: e(b),
201
- checked: e(v) === e(g),
202
- type: "radio",
203
- onFocus: a[1] || (a[1] = (m) => i.value = !0),
204
- onBlur: a[2] || (a[2] = (m) => i.value = !1),
205
- onChange: d,
206
- onClick: a[3] || (a[3] = x(() => {
207
- }, ["stop"]))
208
- }, null, 42, Ge), [[ee, e(v)]]), y("span", { class: E(e(s).e("inner")) }, null, 2)], 2), y("span", {
209
- class: E(e(s).e("label")),
210
- onKeydown: a[4] || (a[4] = x(() => {
211
- }, ["stop"]))
212
- }, [D(k.$slots, "default", {}, () => [w(B(o.label), 1)])], 34)], 2);
213
- };
214
- }
215
- }), me = He;
216
- const Xe = [
217
- "value",
218
- "name",
219
- "disabled"
220
- ];
221
- var Ye = /* @__PURE__ */ z({
222
- name: "ElRadioButton",
223
- __name: "radio-button",
224
- props: Me,
225
- setup(o) {
226
- const S = o, l = $("radio"), { radioRef: r, focus: s, size: f, disabled: c, modelValue: i, radioGroup: n, actualValue: b } = ce(S), v = h(() => ({
227
- backgroundColor: (n == null ? void 0 : n.fill) || "",
228
- borderColor: (n == null ? void 0 : n.fill) || "",
229
- boxShadow: n != null && n.fill ? `-1px 0 0 0 ${n.fill}` : "",
230
- color: (n == null ? void 0 : n.textColor) || ""
231
- }));
232
- return (g, d) => {
233
- var k;
234
- return R(), I("label", { class: E([
235
- e(l).b("button"),
236
- e(l).is("active", e(i) === e(b)),
237
- e(l).is("disabled", e(c)),
238
- e(l).is("focus", e(s)),
239
- e(l).bm("button", e(f))
240
- ]) }, [Q(y("input", {
241
- ref_key: "radioRef",
242
- ref: r,
243
- "onUpdate:modelValue": d[0] || (d[0] = (a) => Z(i) ? i.value = a : null),
244
- class: E(e(l).be("button", "original-radio")),
245
- value: e(b),
246
- type: "radio",
247
- name: o.name || ((k = e(n)) == null ? void 0 : k.name),
248
- disabled: e(c),
249
- onFocus: d[1] || (d[1] = (a) => s.value = !0),
250
- onBlur: d[2] || (d[2] = (a) => s.value = !1),
251
- onClick: d[3] || (d[3] = x(() => {
252
- }, ["stop"]))
253
- }, null, 42, Xe), [[ee, e(i)]]), y("span", {
254
- class: E(e(l).be("button", "inner")),
255
- style: Le(e(i) === e(b) ? v.value : {}),
256
- onKeydown: d[4] || (d[4] = x(() => {
257
- }, ["stop"]))
258
- }, [D(g.$slots, "default", {}, () => [w(B(o.label), 1)])], 38)], 2);
259
- };
260
- }
261
- }), F = Ye;
262
- const Je = [
263
- "id",
264
- "aria-label",
265
- "aria-labelledby"
266
- ];
267
- var We = /* @__PURE__ */ z({
268
- name: "ElRadioGroup",
269
- __name: "radio-group",
270
- props: qe,
271
- emits: Ke,
272
- setup(o, { emit: S }) {
273
- const l = o, r = S, s = $("radio"), f = Re(), c = C(), { formItem: i } = ke(), { inputId: n, isLabeledByFormItem: b } = Ce(l, { formItemContext: i }), v = (t) => {
274
- r(Y, t), te(() => r(U, t));
275
- };
276
- ae(() => {
277
- const t = c.value.querySelectorAll("[type=radio]"), m = t[0];
278
- !Array.from(t).some((u) => u.checked) && m && (m.tabIndex = 0);
279
- });
280
- const g = h(() => l.name || f.value), d = h(() => ({
281
- ...ue,
282
- ...l.props
283
- })), k = (t) => {
284
- const { label: m, value: u, disabled: _ } = d.value, V = {
285
- label: t[m],
286
- value: t[u],
287
- disabled: t[_]
288
- };
289
- return {
290
- ...Pe(t, [
291
- m,
292
- u,
293
- _
294
- ]),
295
- ...V
296
- };
297
- }, a = h(() => l.type === "button" ? F : me);
298
- return Ue(de, $e({
299
- ...De(l),
300
- changeEvent: v,
301
- name: g
302
- })), oe(() => l.modelValue, (t, m) => {
303
- l.validateEvent && !Ie(t, m) && (i == null || i.validate("change").catch(Be));
304
- }), (t, m) => (R(), I("div", {
305
- id: e(n),
306
- ref_key: "radioGroupRef",
307
- ref: c,
308
- class: E(e(s).b("group")),
309
- role: "radiogroup",
310
- "aria-label": e(b) ? void 0 : o.ariaLabel || "radio-group",
311
- "aria-labelledby": e(b) ? e(i).labelId : void 0
312
- }, [D(t.$slots, "default", {}, () => [(R(!0), I(le, null, se(o.options, (u, _) => (R(), ne(Fe(a.value), Ae({ key: _ }, { ref_for: !0 }, k(u)), null, 16))), 128))])], 10, Je));
313
- }
314
- }), pe = We;
315
- const Qe = xe(me, {
316
- RadioButton: F,
317
- RadioGroup: pe
318
- }), Ze = W(pe);
319
- W(F);
320
- const et = { class: "wrapper" }, tt = { class: "screen_thumbnail" }, at = ["src"], ot = { class: "validity-period" }, lt = {
321
- key: 0,
322
- class: "custom"
323
- }, st = { class: "footer" }, dt = /* @__PURE__ */ z({
324
- __name: "ScreenShotTool",
325
- props: ["componentId"],
326
- emits: ["closePanel"],
327
- setup(o, { emit: S }) {
328
- const l = we(), r = Ne(), s = o, f = C(0), c = C(), i = C(), n = C(), b = S;
329
- ae(() => {
330
- c.value = 1280, i.value = 720, r.setReadyById(s.componentId);
331
- }), oe(
332
- () => r.isToolActive(s.componentId),
333
- (a) => {
334
- a && d(220, 124, !1);
335
- }
336
- );
337
- const v = (a) => {
338
- f.value = a, a !== 3 && (c.value = T[a].width, i.value = T[a].height);
339
- }, g = () => {
340
- b("closePanel");
341
- }, d = (a, t, m) => {
342
- const u = document.getElementById("myCanvas"), _ = document.createElement("a");
343
- _.download = "screenshot.png";
344
- const V = document.createElement("canvas"), p = V.getContext("2d");
345
- if (u && p) {
346
- V.width = a, V.height = t;
347
- const ve = a / u.width, fe = t / u.height, A = Math.max(ve, fe), O = u.width * A, j = u.height * A, be = (a - O) / 2, ge = (t - j) / 2;
348
- p.clearRect(0, 0, a, t), p.fillStyle = "transparent", p.fillRect(0, 0, a, t), p.drawImage(u, 0, 0, u.width, u.height, be, ge, O, j), m ? V.toBlob(function(ye) {
349
- const M = URL.createObjectURL(ye);
350
- _.href = M, _.click(), URL.revokeObjectURL(M);
351
- }) : n.value = V.toDataURL("image/png");
352
- }
353
- }, k = () => {
354
- d(c.value, i.value, !0);
355
- };
356
- return (a, t) => {
357
- const m = Qe, u = Ze, _ = ze, V = _e;
358
- return R(), ne(V, {
359
- class: "screen_container",
360
- width: 240,
361
- panelTitle: e(l)("screenshot.title"),
362
- "click-handle": g
363
- }, {
364
- default: L(() => [
365
- y("div", et, [
366
- y("div", tt, [
367
- y("img", {
368
- class: "thumbnail_img",
369
- src: n.value,
370
- alt: ""
371
- }, null, 8, at)
372
- ]),
373
- P(u, {
374
- modelValue: f.value,
375
- "onUpdate:modelValue": t[0] || (t[0] = (p) => f.value = p),
376
- onChange: v
377
- }, {
378
- default: L(() => [
379
- y("div", ot, [
380
- (R(!0), I(le, null, se(e(T), (p) => (R(), I("div", {
381
- key: p.id,
382
- class: "period_box"
383
- }, [
384
- P(m, {
385
- label: p.id
386
- }, {
387
- default: L(() => [
388
- w(B(p.name || e(l)(p.label ?? "")), 1)
389
- ]),
390
- _: 2
391
- }, 1032, ["label"])
392
- ]))), 128))
393
- ])
394
- ]),
395
- _: 1
396
- }, 8, ["modelValue"]),
397
- f.value === 3 ? (R(), I("div", lt, [
398
- P(_, {
399
- modelValue: c.value,
400
- "onUpdate:modelValue": t[1] || (t[1] = (p) => c.value = p),
401
- placeholder: e(l)("screenshot.widthPlaceholder")
402
- }, null, 8, ["modelValue", "placeholder"]),
403
- t[3] || (t[3] = w(" x ", -1)),
404
- P(_, {
405
- modelValue: i.value,
406
- "onUpdate:modelValue": t[2] || (t[2] = (p) => i.value = p),
407
- placeholder: e(l)("screenshot.heightPlaceholder")
408
- }, null, 8, ["modelValue", "placeholder"])
409
- ])) : Oe("", !0),
410
- y("div", st, [
411
- y("div", {
412
- class: "btn1",
413
- onClick: g
414
- }, B(e(l)("common.cancel")), 1),
415
- y("div", {
416
- class: "btn2",
417
- onClick: k
418
- }, B(e(l)("common.save")), 1)
419
- ])
420
- ])
421
- ]),
422
- _: 1
423
- }, 8, ["panelTitle"]);
424
- };
425
- }
426
- });
427
- export {
428
- dt as default
429
- };