@mlightcad/cad-viewer 1.3.0 → 1.3.1
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/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
2
|
import { AcApI18n as se, AcEdCommandStack as oe, AcApDocManager as A, eventBus as Q, AcApSettingManager as Z, AcApConvertToSvgCmd as Ke, AcApQNewCmd as Qe, AcApOpenCmd as Je, AcEdCommand as ke } from "@mlightcad/cad-simple-viewer";
|
|
3
3
|
import "element-plus/dist/index.css";
|
|
4
|
-
import { defineComponent as P, createElementBlock as
|
|
4
|
+
import { defineComponent as P, createElementBlock as k, openBlock as r, createElementVNode as c, computed as D, watch as N, nextTick as Ae, resolveComponent as B, createCommentVNode as H, createVNode as f, withCtx as g, normalizeStyle as q, createBlock as $, resolveDynamicComponent as de, toDisplayString as V, unref as p, renderSlot as re, createTextVNode as R, ref as S, Fragment as O, renderList as W, reactive as j, onMounted as U, onUnmounted as le, withDirectives as et, withKeys as tt, vModelText as ot, mergeProps as nt, mergeModels as ie, useCssVars as Ne, useModel as ve, normalizeClass as ce, pushScopeId as Fe, popScopeId as Re, onBeforeUnmount as Oe, withModifiers as lt, markRaw as Le } from "vue";
|
|
5
5
|
import { useDark as He, useToggle as Ye, useMediaQuery as at, useFullscreen as it } from "@vueuse/core";
|
|
6
6
|
import { AcCmColor as ee, AcDbDatabaseConverterManager as st, acdbHostApplicationServices as Ge, AcCmColorMethod as rt } from "@mlightcad/data-model";
|
|
7
7
|
import ct from "element-plus/es/locale/lang/en";
|
|
@@ -25,7 +25,7 @@ var St = /* @__PURE__ */ P({
|
|
|
25
25
|
name: "Bell",
|
|
26
26
|
__name: "bell",
|
|
27
27
|
setup(o) {
|
|
28
|
-
return (e, t) => (r(),
|
|
28
|
+
return (e, t) => (r(), k("svg", {
|
|
29
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
30
|
viewBox: "0 0 1024 1024"
|
|
31
31
|
}, [
|
|
@@ -47,7 +47,7 @@ var St = /* @__PURE__ */ P({
|
|
|
47
47
|
name: "Check",
|
|
48
48
|
__name: "check",
|
|
49
49
|
setup(o) {
|
|
50
|
-
return (e, t) => (r(),
|
|
50
|
+
return (e, t) => (r(), k("svg", {
|
|
51
51
|
xmlns: "http://www.w3.org/2000/svg",
|
|
52
52
|
viewBox: "0 0 1024 1024"
|
|
53
53
|
}, [
|
|
@@ -61,7 +61,7 @@ var St = /* @__PURE__ */ P({
|
|
|
61
61
|
name: "CircleCloseFilled",
|
|
62
62
|
__name: "circle-close-filled",
|
|
63
63
|
setup(o) {
|
|
64
|
-
return (e, t) => (r(),
|
|
64
|
+
return (e, t) => (r(), k("svg", {
|
|
65
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
66
66
|
viewBox: "0 0 1024 1024"
|
|
67
67
|
}, [
|
|
@@ -75,7 +75,7 @@ var St = /* @__PURE__ */ P({
|
|
|
75
75
|
name: "Close",
|
|
76
76
|
__name: "close",
|
|
77
77
|
setup(o) {
|
|
78
|
-
return (e, t) => (r(),
|
|
78
|
+
return (e, t) => (r(), k("svg", {
|
|
79
79
|
xmlns: "http://www.w3.org/2000/svg",
|
|
80
80
|
viewBox: "0 0 1024 1024"
|
|
81
81
|
}, [
|
|
@@ -89,7 +89,7 @@ var St = /* @__PURE__ */ P({
|
|
|
89
89
|
name: "Delete",
|
|
90
90
|
__name: "delete",
|
|
91
91
|
setup(o) {
|
|
92
|
-
return (e, t) => (r(),
|
|
92
|
+
return (e, t) => (r(), k("svg", {
|
|
93
93
|
xmlns: "http://www.w3.org/2000/svg",
|
|
94
94
|
viewBox: "0 0 1024 1024"
|
|
95
95
|
}, [
|
|
@@ -103,7 +103,7 @@ var St = /* @__PURE__ */ P({
|
|
|
103
103
|
name: "InfoFilled",
|
|
104
104
|
__name: "info-filled",
|
|
105
105
|
setup(o) {
|
|
106
|
-
return (e, t) => (r(),
|
|
106
|
+
return (e, t) => (r(), k("svg", {
|
|
107
107
|
xmlns: "http://www.w3.org/2000/svg",
|
|
108
108
|
viewBox: "0 0 1024 1024"
|
|
109
109
|
}, [
|
|
@@ -117,7 +117,7 @@ var St = /* @__PURE__ */ P({
|
|
|
117
117
|
name: "Menu",
|
|
118
118
|
__name: "menu",
|
|
119
119
|
setup(o) {
|
|
120
|
-
return (e, t) => (r(),
|
|
120
|
+
return (e, t) => (r(), k("svg", {
|
|
121
121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
122
122
|
viewBox: "0 0 1024 1024"
|
|
123
123
|
}, [
|
|
@@ -131,7 +131,7 @@ var St = /* @__PURE__ */ P({
|
|
|
131
131
|
name: "Moon",
|
|
132
132
|
__name: "moon",
|
|
133
133
|
setup(o) {
|
|
134
|
-
return (e, t) => (r(),
|
|
134
|
+
return (e, t) => (r(), k("svg", {
|
|
135
135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
136
136
|
viewBox: "0 0 1024 1024"
|
|
137
137
|
}, [
|
|
@@ -145,7 +145,7 @@ var St = /* @__PURE__ */ P({
|
|
|
145
145
|
name: "Operation",
|
|
146
146
|
__name: "operation",
|
|
147
147
|
setup(o) {
|
|
148
|
-
return (e, t) => (r(),
|
|
148
|
+
return (e, t) => (r(), k("svg", {
|
|
149
149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
150
|
viewBox: "0 0 1024 1024"
|
|
151
151
|
}, [
|
|
@@ -159,7 +159,7 @@ var St = /* @__PURE__ */ P({
|
|
|
159
159
|
name: "Setting",
|
|
160
160
|
__name: "setting",
|
|
161
161
|
setup(o) {
|
|
162
|
-
return (e, t) => (r(),
|
|
162
|
+
return (e, t) => (r(), k("svg", {
|
|
163
163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
164
164
|
viewBox: "0 0 1024 1024"
|
|
165
165
|
}, [
|
|
@@ -173,7 +173,7 @@ var St = /* @__PURE__ */ P({
|
|
|
173
173
|
name: "SuccessFilled",
|
|
174
174
|
__name: "success-filled",
|
|
175
175
|
setup(o) {
|
|
176
|
-
return (e, t) => (r(),
|
|
176
|
+
return (e, t) => (r(), k("svg", {
|
|
177
177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
178
178
|
viewBox: "0 0 1024 1024"
|
|
179
179
|
}, [
|
|
@@ -187,7 +187,7 @@ var St = /* @__PURE__ */ P({
|
|
|
187
187
|
name: "Sunny",
|
|
188
188
|
__name: "sunny",
|
|
189
189
|
setup(o) {
|
|
190
|
-
return (e, t) => (r(),
|
|
190
|
+
return (e, t) => (r(), k("svg", {
|
|
191
191
|
xmlns: "http://www.w3.org/2000/svg",
|
|
192
192
|
viewBox: "0 0 1024 1024"
|
|
193
193
|
}, [
|
|
@@ -201,7 +201,7 @@ var St = /* @__PURE__ */ P({
|
|
|
201
201
|
name: "WarningFilled",
|
|
202
202
|
__name: "warning-filled",
|
|
203
203
|
setup(o) {
|
|
204
|
-
return (e, t) => (r(),
|
|
204
|
+
return (e, t) => (r(), k("svg", {
|
|
205
205
|
xmlns: "http://www.w3.org/2000/svg",
|
|
206
206
|
viewBox: "0 0 1024 1024"
|
|
207
207
|
}, [
|
|
@@ -215,7 +215,7 @@ var St = /* @__PURE__ */ P({
|
|
|
215
215
|
name: "Warning",
|
|
216
216
|
__name: "warning",
|
|
217
217
|
setup(o) {
|
|
218
|
-
return (e, t) => (r(),
|
|
218
|
+
return (e, t) => (r(), k("svg", {
|
|
219
219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
220
220
|
viewBox: "0 0 1024 1024"
|
|
221
221
|
}, [
|
|
@@ -233,7 +233,7 @@ const jt = {
|
|
|
233
233
|
viewBox: "0 0 15 15"
|
|
234
234
|
};
|
|
235
235
|
function Kt(o, e) {
|
|
236
|
-
return r(),
|
|
236
|
+
return r(), k("svg", jt, e[0] || (e[0] = [
|
|
237
237
|
c("path", {
|
|
238
238
|
fill: "currentColor",
|
|
239
239
|
d: "M1.417 11.667h1.916v.833H0V9.167h.833v1.916l2.5-2.5.584.584zm9.666 0-2.5-2.5.584-.584 2.5 2.5V9.167h.833V12.5H9.167v-.833zM1.417.833l2.5 2.5-.584.584-2.5-2.5v1.916H0V0h3.333v.833zm9.666 0H9.167V0H12.5v3.333h-.833V1.417l-2.5 2.5-.584-.584z"
|
|
@@ -247,7 +247,7 @@ const Be = { render: Kt }, Qt = {
|
|
|
247
247
|
viewBox: "0 0 512 512"
|
|
248
248
|
};
|
|
249
249
|
function Jt(o, e) {
|
|
250
|
-
return r(),
|
|
250
|
+
return r(), k("svg", Qt, e[0] || (e[0] = [
|
|
251
251
|
c("path", {
|
|
252
252
|
fill: "none",
|
|
253
253
|
stroke: "currentColor",
|
|
@@ -271,7 +271,7 @@ const eo = { render: Jt }, to = {
|
|
|
271
271
|
viewBox: "0 0 1024 1024"
|
|
272
272
|
};
|
|
273
273
|
function oo(o, e) {
|
|
274
|
-
return r(),
|
|
274
|
+
return r(), k("svg", to, e[0] || (e[0] = [
|
|
275
275
|
c("path", {
|
|
276
276
|
fill: "currentColor",
|
|
277
277
|
d: "M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"
|
|
@@ -295,7 +295,7 @@ const no = { render: oo }, lo = {
|
|
|
295
295
|
viewBox: "0 0 20 20"
|
|
296
296
|
};
|
|
297
297
|
function ao(o, e) {
|
|
298
|
-
return r(),
|
|
298
|
+
return r(), k("svg", lo, e[0] || (e[0] = [
|
|
299
299
|
c("path", { d: "m15.08 12.854.002-.002V5.59c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.638-.414-.638 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.444c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.232c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388q-.39-.669-.776-1.338c-.338-.482-1.1-.15-.794.38l.978 1.698.02.04q.829 1.418 1.658 2.834c.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.792-.124 2.56-.612q.45-.285.816-.68a4 4 0 0 0 .734-1.204c.176-.482.258-.97.258-1.494m-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894a4.8 4.8 0 0 1-.964 1.576 5.9 5.9 0 0 1-1.046.884c-.978.612-2.146.862-3.26.774a5.34 5.34 0 0 1-3.098-1.352 5.4 5.4 0 0 1-.87-1.034l-1.672-2.88-.012-.028-.978-1.706c-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096q.061.11.122.218V4.234c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.972-.51 2.222.102 2.222 1.284v.06z" }, null, -1)
|
|
300
300
|
]));
|
|
301
301
|
}
|
|
@@ -306,7 +306,7 @@ const io = { render: ao }, so = {
|
|
|
306
306
|
viewBox: "0 0 20 20"
|
|
307
307
|
};
|
|
308
308
|
function ro(o, e) {
|
|
309
|
-
return r(),
|
|
309
|
+
return r(), k("svg", so, e[0] || (e[0] = [
|
|
310
310
|
c("path", {
|
|
311
311
|
fill: "currentColor",
|
|
312
312
|
d: "M10.438 15.298h.002l4.86-4.86-9.722-4.86zM18 10l-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2L10 18 2.4 2.4z"
|
|
@@ -320,7 +320,7 @@ const co = { render: ro }, uo = {
|
|
|
320
320
|
viewBox: "0 0 20 20"
|
|
321
321
|
};
|
|
322
322
|
function mo(o, e) {
|
|
323
|
-
return r(),
|
|
323
|
+
return r(), k("svg", uo, e[0] || (e[0] = [
|
|
324
324
|
c("path", {
|
|
325
325
|
fill: "currentColor",
|
|
326
326
|
d: "M15.083 14.808a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575a8.334 8.334 0 0 1-11.525-.692 8.326 8.326 0 0 1 .233-11.542C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525m-3.55-2.608V7.208H7.208v5.584zM5.875 5.875h8.25v8.25h-8.25z"
|
|
@@ -334,7 +334,7 @@ const po = { render: mo }, vo = {
|
|
|
334
334
|
viewBox: "0 0 20 20"
|
|
335
335
|
};
|
|
336
336
|
function fo(o, e) {
|
|
337
|
-
return r(),
|
|
337
|
+
return r(), k("svg", vo, e[0] || (e[0] = [
|
|
338
338
|
c("path", {
|
|
339
339
|
fill: "currentColor",
|
|
340
340
|
d: "m9.333 14.125-3.458-3.458v3.458zm4.792-3.458-3.458 3.458h3.458zm-3.458-4.792 3.458 3.458V5.875zM5.875 9.333l3.458-3.458H5.875zm9.208 5.475a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575c-3.408 2.9-8.492 2.591-11.525-.692S.942 7.275 4.108 4.108C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525"
|
|
@@ -348,7 +348,7 @@ const go = { render: fo }, ho = {
|
|
|
348
348
|
viewBox: "0 0 20 20"
|
|
349
349
|
};
|
|
350
350
|
function _o(o, e) {
|
|
351
|
-
return r(),
|
|
351
|
+
return r(), k("svg", ho, e[0] || (e[0] = [
|
|
352
352
|
c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
|
|
353
353
|
]));
|
|
354
354
|
}
|
|
@@ -359,7 +359,7 @@ const yo = { render: _o }, wo = {
|
|
|
359
359
|
viewBox: "0 0 20 20"
|
|
360
360
|
};
|
|
361
361
|
function bo(o, e) {
|
|
362
|
-
return r(),
|
|
362
|
+
return r(), k("svg", wo);
|
|
363
363
|
}
|
|
364
364
|
const ko = { render: bo }, xo = {
|
|
365
365
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -368,7 +368,7 @@ const ko = { render: bo }, xo = {
|
|
|
368
368
|
viewBox: "0 0 20 20"
|
|
369
369
|
};
|
|
370
370
|
function Co(o, e) {
|
|
371
|
-
return r(),
|
|
371
|
+
return r(), k("svg", xo, e[0] || (e[0] = [
|
|
372
372
|
c("path", { d: "M2 9.5h16v1H2z" }, null, -1),
|
|
373
373
|
c("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
|
|
374
374
|
]));
|
|
@@ -380,7 +380,7 @@ const Mo = { render: Co }, So = {
|
|
|
380
380
|
viewBox: "0 0 20 20"
|
|
381
381
|
};
|
|
382
382
|
function Lo(o, e) {
|
|
383
|
-
return r(),
|
|
383
|
+
return r(), k("svg", So, e[0] || (e[0] = [
|
|
384
384
|
c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
385
385
|
c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
386
386
|
]));
|
|
@@ -392,7 +392,7 @@ const To = { render: Lo }, Bo = {
|
|
|
392
392
|
viewBox: "0 0 20 20"
|
|
393
393
|
};
|
|
394
394
|
function Do(o, e) {
|
|
395
|
-
return r(),
|
|
395
|
+
return r(), k("svg", Bo, e[0] || (e[0] = [
|
|
396
396
|
c("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
|
|
397
397
|
]));
|
|
398
398
|
}
|
|
@@ -403,7 +403,7 @@ const zo = { render: Do }, $o = {
|
|
|
403
403
|
viewBox: "0 0 20 20"
|
|
404
404
|
};
|
|
405
405
|
function Vo(o, e) {
|
|
406
|
-
return r(),
|
|
406
|
+
return r(), k("svg", $o, e[0] || (e[0] = [
|
|
407
407
|
c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
408
408
|
c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
409
409
|
]));
|
|
@@ -415,7 +415,7 @@ const Po = { render: Vo }, Io = {
|
|
|
415
415
|
viewBox: "0 0 20 20"
|
|
416
416
|
};
|
|
417
417
|
function Eo(o, e) {
|
|
418
|
-
return r(),
|
|
418
|
+
return r(), k("svg", Io, e[0] || (e[0] = [
|
|
419
419
|
c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
420
420
|
]));
|
|
421
421
|
}
|
|
@@ -426,7 +426,7 @@ const Ao = { render: Eo }, No = {
|
|
|
426
426
|
viewBox: "0 0 20 20"
|
|
427
427
|
};
|
|
428
428
|
function Fo(o, e) {
|
|
429
|
-
return r(),
|
|
429
|
+
return r(), k("svg", No, e[0] || (e[0] = [
|
|
430
430
|
c("path", { d: "M3 9.5h14v1H3z" }, null, -1),
|
|
431
431
|
c("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
|
|
432
432
|
c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
@@ -439,7 +439,7 @@ const Ro = { render: Fo }, Oo = {
|
|
|
439
439
|
viewBox: "0 0 20 20"
|
|
440
440
|
};
|
|
441
441
|
function Ho(o, e) {
|
|
442
|
-
return r(),
|
|
442
|
+
return r(), k("svg", Oo, e[0] || (e[0] = [
|
|
443
443
|
c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
444
444
|
c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
445
445
|
c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
@@ -452,7 +452,7 @@ const Yo = { render: Ho }, Go = {
|
|
|
452
452
|
viewBox: "0 0 20 20"
|
|
453
453
|
};
|
|
454
454
|
function Xo(o, e) {
|
|
455
|
-
return r(),
|
|
455
|
+
return r(), k("svg", Go, e[0] || (e[0] = [
|
|
456
456
|
c("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
457
457
|
c("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
458
458
|
]));
|
|
@@ -464,7 +464,7 @@ const Wo = { render: Xo }, Uo = {
|
|
|
464
464
|
viewBox: "0 0 20 20"
|
|
465
465
|
};
|
|
466
466
|
function Zo(o, e) {
|
|
467
|
-
return r(),
|
|
467
|
+
return r(), k("svg", Uo, e[0] || (e[0] = [
|
|
468
468
|
c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
469
469
|
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
470
470
|
]));
|
|
@@ -476,7 +476,7 @@ const qo = { render: Zo }, jo = {
|
|
|
476
476
|
viewBox: "0 0 20 20"
|
|
477
477
|
};
|
|
478
478
|
function Ko(o, e) {
|
|
479
|
-
return r(),
|
|
479
|
+
return r(), k("svg", jo, e[0] || (e[0] = [
|
|
480
480
|
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
481
481
|
]));
|
|
482
482
|
}
|
|
@@ -487,7 +487,7 @@ const Qo = { render: Ko }, Jo = {
|
|
|
487
487
|
viewBox: "0 0 20 20"
|
|
488
488
|
};
|
|
489
489
|
function en(o, e) {
|
|
490
|
-
return r(),
|
|
490
|
+
return r(), k("svg", Jo, e[0] || (e[0] = [
|
|
491
491
|
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
492
492
|
c("path", { d: "M3 9.58h14v1H3z" }, null, -1),
|
|
493
493
|
c("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
|
|
@@ -500,7 +500,7 @@ const tn = { render: en }, on = {
|
|
|
500
500
|
viewBox: "0 0 20 20"
|
|
501
501
|
};
|
|
502
502
|
function nn(o, e) {
|
|
503
|
-
return r(),
|
|
503
|
+
return r(), k("svg", on, e[0] || (e[0] = [
|
|
504
504
|
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
505
505
|
c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
506
506
|
c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
@@ -513,7 +513,7 @@ const ln = { render: nn }, an = {
|
|
|
513
513
|
viewBox: "0 0 20 20"
|
|
514
514
|
};
|
|
515
515
|
function sn(o, e) {
|
|
516
|
-
return r(),
|
|
516
|
+
return r(), k("svg", an, e[0] || (e[0] = [
|
|
517
517
|
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
518
518
|
c("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
|
|
519
519
|
]));
|
|
@@ -525,7 +525,7 @@ const rn = { render: sn }, cn = {
|
|
|
525
525
|
viewBox: "0 0 20 20"
|
|
526
526
|
};
|
|
527
527
|
function un(o, e) {
|
|
528
|
-
return r(),
|
|
528
|
+
return r(), k("svg", cn, e[0] || (e[0] = [
|
|
529
529
|
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
530
530
|
c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
531
531
|
c("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
@@ -538,7 +538,7 @@ const dn = { render: un }, mn = {
|
|
|
538
538
|
viewBox: "0 0 20 20"
|
|
539
539
|
};
|
|
540
540
|
function pn(o, e) {
|
|
541
|
-
return r(),
|
|
541
|
+
return r(), k("svg", mn, e[0] || (e[0] = [
|
|
542
542
|
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
543
543
|
c("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
544
544
|
]));
|
|
@@ -550,7 +550,7 @@ const vn = { render: pn }, fn = {
|
|
|
550
550
|
viewBox: "0 0 20 20"
|
|
551
551
|
};
|
|
552
552
|
function gn(o, e) {
|
|
553
|
-
return r(),
|
|
553
|
+
return r(), k("svg", fn, e[0] || (e[0] = [
|
|
554
554
|
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
555
555
|
c("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
|
|
556
556
|
c("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
|
|
@@ -564,7 +564,7 @@ const hn = { render: gn }, _n = {
|
|
|
564
564
|
viewBox: "0 0 20 20"
|
|
565
565
|
};
|
|
566
566
|
function yn(o, e) {
|
|
567
|
-
return r(),
|
|
567
|
+
return r(), k("svg", _n, e[0] || (e[0] = [
|
|
568
568
|
c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
569
569
|
c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
570
570
|
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
@@ -578,7 +578,7 @@ const wn = { render: yn }, bn = {
|
|
|
578
578
|
viewBox: "0 0 20 20"
|
|
579
579
|
};
|
|
580
580
|
function kn(o, e) {
|
|
581
|
-
return r(),
|
|
581
|
+
return r(), k("svg", bn, e[0] || (e[0] = [
|
|
582
582
|
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
583
583
|
c("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
584
584
|
c("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
@@ -613,8 +613,8 @@ const xn = { render: kn }, Cn = {
|
|
|
613
613
|
);
|
|
614
614
|
N(
|
|
615
615
|
() => i.modelValue,
|
|
616
|
-
async (h,
|
|
617
|
-
h && !
|
|
616
|
+
async (h, x) => {
|
|
617
|
+
h && !x && (n("open"), await Ae(), n("opened"));
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
620
|
function d() {
|
|
@@ -623,9 +623,9 @@ const xn = { render: kn }, Cn = {
|
|
|
623
623
|
function s() {
|
|
624
624
|
n("cancel"), n("update:modelValue", !1);
|
|
625
625
|
}
|
|
626
|
-
return (h,
|
|
626
|
+
return (h, x) => {
|
|
627
627
|
const T = B("el-icon"), v = B("el-button"), m = B("el-config-provider");
|
|
628
|
-
return o.modelValue ? (r(),
|
|
628
|
+
return o.modelValue ? (r(), k("div", Cn, [
|
|
629
629
|
c("div", {
|
|
630
630
|
class: "ml-base-dialog-overlay",
|
|
631
631
|
onClick: s
|
|
@@ -638,8 +638,8 @@ const xn = { render: kn }, Cn = {
|
|
|
638
638
|
}, [
|
|
639
639
|
c("div", Mn, [
|
|
640
640
|
c("div", Sn, [
|
|
641
|
-
l.value ? (r(),
|
|
642
|
-
(r(), $(
|
|
641
|
+
l.value ? (r(), k("span", Ln, [
|
|
642
|
+
(r(), $(de(l.value), { class: "ml-base-dialog-icon" }))
|
|
643
643
|
])) : H("", !0),
|
|
644
644
|
c("span", null, V(o.title), 1)
|
|
645
645
|
]),
|
|
@@ -667,7 +667,7 @@ const xn = { render: kn }, Cn = {
|
|
|
667
667
|
c("div", Dn, [
|
|
668
668
|
f(v, { onClick: s }, {
|
|
669
669
|
default: g(() => [
|
|
670
|
-
|
|
670
|
+
R(V(p(t)("dialog.baseDialog.cancel")), 1)
|
|
671
671
|
]),
|
|
672
672
|
_: 1
|
|
673
673
|
}),
|
|
@@ -676,7 +676,7 @@ const xn = { render: kn }, Cn = {
|
|
|
676
676
|
onClick: d
|
|
677
677
|
}, {
|
|
678
678
|
default: g(() => [
|
|
679
|
-
|
|
679
|
+
R(V(p(t)("dialog.baseDialog.ok")), 1)
|
|
680
680
|
]),
|
|
681
681
|
_: 1
|
|
682
682
|
})
|
|
@@ -708,8 +708,8 @@ const xn = { render: kn }, Cn = {
|
|
|
708
708
|
{ label: "HEX", value: "hex" }
|
|
709
709
|
], d = (v, m) => {
|
|
710
710
|
if (!v) return 0;
|
|
711
|
-
const
|
|
712
|
-
return Number.isNaN(
|
|
711
|
+
const b = parseInt(v, m === "hex" ? 16 : m === "oct" ? 8 : 10);
|
|
712
|
+
return Number.isNaN(b) ? 0 : b;
|
|
713
713
|
}, s = (v, m) => Number.isNaN(v) ? "" : m === "hex" ? v.toString(16).toUpperCase() : m === "oct" ? v.toString(8) : v.toString(10), h = (v, m) => {
|
|
714
714
|
switch (m) {
|
|
715
715
|
case "dec":
|
|
@@ -719,7 +719,7 @@ const xn = { render: kn }, Cn = {
|
|
|
719
719
|
case "hex":
|
|
720
720
|
return v.replace(/[^0-9a-fA-F]/g, "");
|
|
721
721
|
}
|
|
722
|
-
},
|
|
722
|
+
}, x = (v) => {
|
|
723
723
|
if (!t.editable) return;
|
|
724
724
|
const m = h(v, n.value);
|
|
725
725
|
l.value = m;
|
|
@@ -736,14 +736,14 @@ const xn = { render: kn }, Cn = {
|
|
|
736
736
|
{ immediate: !0 }
|
|
737
737
|
), N(n, (v) => {
|
|
738
738
|
l.value = s(t.modelValue, v);
|
|
739
|
-
}), (v, m) => (r(),
|
|
739
|
+
}), (v, m) => (r(), k("div", $n, [
|
|
740
740
|
f(p(mt), {
|
|
741
741
|
modelValue: l.value,
|
|
742
742
|
"onUpdate:modelValue": m[0] || (m[0] = (u) => l.value = u),
|
|
743
743
|
class: "ml-base-input-number__input",
|
|
744
744
|
placeholder: v.placeholder,
|
|
745
745
|
readonly: !v.editable,
|
|
746
|
-
onInput:
|
|
746
|
+
onInput: x,
|
|
747
747
|
onBlur: T,
|
|
748
748
|
clearable: ""
|
|
749
749
|
}, null, 8, ["modelValue", "placeholder", "readonly"]),
|
|
@@ -754,7 +754,7 @@ const xn = { render: kn }, Cn = {
|
|
|
754
754
|
size: "small"
|
|
755
755
|
}, {
|
|
756
756
|
default: g(() => [
|
|
757
|
-
(r(),
|
|
757
|
+
(r(), k(O, null, W(a, (u) => f(p(vt), {
|
|
758
758
|
key: u.value,
|
|
759
759
|
label: u.label,
|
|
760
760
|
value: u.value
|
|
@@ -1644,15 +1644,15 @@ const ae = dt({
|
|
|
1644
1644
|
h(v);
|
|
1645
1645
|
}
|
|
1646
1646
|
);
|
|
1647
|
-
function
|
|
1647
|
+
function x() {
|
|
1648
1648
|
const v = new ee();
|
|
1649
1649
|
if (a.value === "aci")
|
|
1650
1650
|
d.value === 256 ? v.setByLayer() : d.value === 0 ? v.setByBlock() : v.colorIndex = d.value;
|
|
1651
1651
|
else if (a.value === "rgb") {
|
|
1652
1652
|
const m = s.value.replace(/^#/, "");
|
|
1653
1653
|
if (m.length === 6) {
|
|
1654
|
-
const u = parseInt(m.substring(0, 2), 16),
|
|
1655
|
-
v.setRGB(u,
|
|
1654
|
+
const u = parseInt(m.substring(0, 2), 16), b = parseInt(m.substring(2, 4), 16), M = parseInt(m.substring(4, 6), 16);
|
|
1655
|
+
v.setRGB(u, b, M);
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
1658
1658
|
n("ok", v);
|
|
@@ -1661,17 +1661,17 @@ const ae = dt({
|
|
|
1661
1661
|
n("cancel", void 0);
|
|
1662
1662
|
}
|
|
1663
1663
|
return (v, m) => {
|
|
1664
|
-
const u = B("el-tab-pane"),
|
|
1664
|
+
const u = B("el-tab-pane"), b = B("el-tabs");
|
|
1665
1665
|
return r(), $(p(Ce), {
|
|
1666
1666
|
modelValue: l.value,
|
|
1667
1667
|
"onUpdate:modelValue": m[3] || (m[3] = (M) => l.value = M),
|
|
1668
1668
|
title: v.title,
|
|
1669
1669
|
width: 500,
|
|
1670
|
-
onOk:
|
|
1670
|
+
onOk: x,
|
|
1671
1671
|
onCancel: T
|
|
1672
1672
|
}, {
|
|
1673
1673
|
default: g(() => [
|
|
1674
|
-
f(
|
|
1674
|
+
f(b, {
|
|
1675
1675
|
modelValue: a.value,
|
|
1676
1676
|
"onUpdate:modelValue": m[2] || (m[2] = (M) => a.value = M)
|
|
1677
1677
|
}, {
|
|
@@ -1745,20 +1745,20 @@ function qn(o) {
|
|
|
1745
1745
|
const n = D(() => `${$e(e.value)}, ${$e(t.value)}`);
|
|
1746
1746
|
return { x: e, y: t, text: n };
|
|
1747
1747
|
}
|
|
1748
|
-
const jn = He(), ss = Ye(jn),
|
|
1748
|
+
const jn = He(), ss = Ye(jn), ue = j([]);
|
|
1749
1749
|
function Kn(o) {
|
|
1750
|
-
|
|
1750
|
+
ue.find((t) => t.name === o.name) || ue.push({ ...o, visible: !1 });
|
|
1751
1751
|
}
|
|
1752
1752
|
function Qn(o, e) {
|
|
1753
|
-
const t =
|
|
1753
|
+
const t = ue.find((i) => i.name === o);
|
|
1754
1754
|
t && (t.visible = e);
|
|
1755
1755
|
}
|
|
1756
1756
|
function Jn(o) {
|
|
1757
|
-
return
|
|
1757
|
+
return ue.find((e) => e.name === o);
|
|
1758
1758
|
}
|
|
1759
1759
|
function ge() {
|
|
1760
1760
|
return {
|
|
1761
|
-
dialogs: D(() =>
|
|
1761
|
+
dialogs: D(() => ue),
|
|
1762
1762
|
registerDialog: Kn,
|
|
1763
1763
|
toggleDialog: Qn,
|
|
1764
1764
|
getDialogByName: Jn
|
|
@@ -1804,7 +1804,7 @@ function ol(o) {
|
|
|
1804
1804
|
isInUse: a.isInUse,
|
|
1805
1805
|
isOn: !a.isOff,
|
|
1806
1806
|
isPlottable: a.isPlottable,
|
|
1807
|
-
transparency: a.transparency,
|
|
1807
|
+
transparency: a.transparency.toString(),
|
|
1808
1808
|
linetype: a.linetype,
|
|
1809
1809
|
lineWeight: a.lineWeight
|
|
1810
1810
|
});
|
|
@@ -1816,7 +1816,7 @@ function ol(o) {
|
|
|
1816
1816
|
if (l) {
|
|
1817
1817
|
l = l;
|
|
1818
1818
|
const a = n.changes;
|
|
1819
|
-
a.color != null && (l.color = a.color.toString()), a.isLocoked != null && (l.isLocked = a.isLocked), a.isHidden != null && (l.isHidden = a.isHidden), a.isInUse != null && (l.isInUse = a.isInUse), a.isOff != null && (l.isOn = !a.isOff), a.isPlottable != null && (l.isPlottable = a.isPlottable), a.transparency != null && (l.transparency = a.transparency), a.linetype != null && (l.linetype = a.linetype), a.lineWeight != null && (l.lineWeight = a.lineWeight);
|
|
1819
|
+
a.color != null && (l.color = a.color.toString()), a.isLocoked != null && (l.isLocked = a.isLocked), a.isHidden != null && (l.isHidden = a.isHidden), a.isInUse != null && (l.isInUse = a.isInUse), a.isOff != null && (l.isOn = !a.isOff), a.isPlottable != null && (l.isPlottable = a.isPlottable), a.transparency != null && (l.transparency = a.transparency.toString()), a.linetype != null && (l.linetype = a.linetype), a.lineWeight != null && (l.lineWeight = a.lineWeight);
|
|
1820
1820
|
}
|
|
1821
1821
|
}), o.events.documentActivated.addEventListener((n) => {
|
|
1822
1822
|
e.length = 0, i(n.doc.database);
|
|
@@ -1851,8 +1851,8 @@ function Ze(o) {
|
|
|
1851
1851
|
const { locale: e } = Y(), i = S((() => {
|
|
1852
1852
|
const s = localStorage.getItem(we);
|
|
1853
1853
|
if (s === "en" || s === "zh") return s;
|
|
1854
|
-
const
|
|
1855
|
-
return se.setCurrentLocale(
|
|
1854
|
+
const x = navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
1855
|
+
return se.setCurrentLocale(x), x;
|
|
1856
1856
|
})()), n = D(() => i.value), l = (s) => {
|
|
1857
1857
|
ae.global.locale.value = s, i.value = s, (!o || o === "default") && localStorage.setItem(we, s), se.setCurrentLocale(s);
|
|
1858
1858
|
}, a = () => {
|
|
@@ -2015,7 +2015,7 @@ function al() {
|
|
|
2015
2015
|
removed: t
|
|
2016
2016
|
};
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function me() {
|
|
2019
2019
|
const o = j(
|
|
2020
2020
|
Z.instance.settings
|
|
2021
2021
|
);
|
|
@@ -2089,11 +2089,11 @@ const rl = /* @__PURE__ */ P({
|
|
|
2089
2089
|
n.value = l[T][v].id;
|
|
2090
2090
|
}, h = () => {
|
|
2091
2091
|
A.instance.curDocument.database.pdmode = n.value;
|
|
2092
|
-
},
|
|
2092
|
+
}, x = () => {
|
|
2093
2093
|
a();
|
|
2094
2094
|
};
|
|
2095
2095
|
return (T, v) => {
|
|
2096
|
-
const m = B("el-button"), u = B("el-col"),
|
|
2096
|
+
const m = B("el-button"), u = B("el-col"), b = B("el-row");
|
|
2097
2097
|
return r(), $(Ce, {
|
|
2098
2098
|
title: p(e)("dialog.pointStyleDlg.title"),
|
|
2099
2099
|
width: 400,
|
|
@@ -2101,17 +2101,17 @@ const rl = /* @__PURE__ */ P({
|
|
|
2101
2101
|
"onUpdate:modelValue": v[0] || (v[0] = (M) => i.value = M),
|
|
2102
2102
|
name: "PointStyleDlg",
|
|
2103
2103
|
onOk: h,
|
|
2104
|
-
onCancel:
|
|
2104
|
+
onCancel: x
|
|
2105
2105
|
}, {
|
|
2106
2106
|
default: g(() => [
|
|
2107
|
-
(r(),
|
|
2107
|
+
(r(), k(O, null, W(l, (M, I) => f(b, {
|
|
2108
2108
|
key: I,
|
|
2109
2109
|
style: { "margin-top": "10px" },
|
|
2110
2110
|
gutter: 6,
|
|
2111
2111
|
justify: "space-between"
|
|
2112
2112
|
}, {
|
|
2113
2113
|
default: g(() => [
|
|
2114
|
-
(r(!0),
|
|
2114
|
+
(r(!0), k(O, null, W(M, (L, C) => (r(), $(u, {
|
|
2115
2115
|
key: C,
|
|
2116
2116
|
span: 4
|
|
2117
2117
|
}, {
|
|
@@ -2119,7 +2119,7 @@ const rl = /* @__PURE__ */ P({
|
|
|
2119
2119
|
f(m, {
|
|
2120
2120
|
icon: L.icon,
|
|
2121
2121
|
type: d(I, C),
|
|
2122
|
-
onClick: (
|
|
2122
|
+
onClick: (y) => s(I, C),
|
|
2123
2123
|
style: { "font-size": "25px" }
|
|
2124
2124
|
}, null, 8, ["icon", "type", "onClick"])
|
|
2125
2125
|
]),
|
|
@@ -2141,31 +2141,31 @@ const rl = /* @__PURE__ */ P({
|
|
|
2141
2141
|
d.value = m.map((u) => u.name[0]);
|
|
2142
2142
|
}, h = () => {
|
|
2143
2143
|
const m = A.instance.curDocument.database;
|
|
2144
|
-
i.forEach((
|
|
2145
|
-
|
|
2144
|
+
i.forEach((b) => {
|
|
2145
|
+
b.file && b.ids.forEach((M) => {
|
|
2146
2146
|
const I = m.tables.blockTable.modelSpace.getIdAt(
|
|
2147
2147
|
M
|
|
2148
2148
|
);
|
|
2149
|
-
I.image =
|
|
2149
|
+
I.image = b.file, I.triggerModifiedEvent();
|
|
2150
2150
|
});
|
|
2151
2151
|
});
|
|
2152
2152
|
const u = Z.instance;
|
|
2153
|
-
t.forEach((
|
|
2154
|
-
M &&
|
|
2153
|
+
t.forEach((b, M) => {
|
|
2154
|
+
M && b && u.setFontMapping(M, b);
|
|
2155
2155
|
});
|
|
2156
|
-
},
|
|
2156
|
+
}, x = (m) => {
|
|
2157
2157
|
a.value && (a.value.click(), a.value.onchange = () => {
|
|
2158
2158
|
T(m);
|
|
2159
2159
|
});
|
|
2160
2160
|
}, T = (m) => {
|
|
2161
|
-
var
|
|
2162
|
-
const u = (M = (
|
|
2161
|
+
var b, M;
|
|
2162
|
+
const u = (M = (b = a.value) == null ? void 0 : b.files) == null ? void 0 : M[0];
|
|
2163
2163
|
u && (m.file = u);
|
|
2164
2164
|
}, v = (m, u) => {
|
|
2165
2165
|
t.set(m, u);
|
|
2166
2166
|
};
|
|
2167
2167
|
return (m, u) => {
|
|
2168
|
-
const
|
|
2168
|
+
const b = B("el-col"), M = B("el-row"), I = B("el-option"), L = B("el-select"), C = B("el-tab-pane"), y = B("el-table-column"), w = B("el-button"), _ = B("el-table"), z = B("el-tabs");
|
|
2169
2169
|
return r(), $(Ce, {
|
|
2170
2170
|
title: p(e)("dialog.replacementDlg.title"),
|
|
2171
2171
|
modelValue: n.value,
|
|
@@ -2190,13 +2190,13 @@ const rl = /* @__PURE__ */ P({
|
|
|
2190
2190
|
c("div", null, [
|
|
2191
2191
|
f(M, null, {
|
|
2192
2192
|
default: g(() => [
|
|
2193
|
-
f(
|
|
2193
|
+
f(b, { span: 12 }, {
|
|
2194
2194
|
default: g(() => [
|
|
2195
2195
|
c("span", null, V(p(e)("dialog.replacementDlg.missedFont")), 1)
|
|
2196
2196
|
]),
|
|
2197
2197
|
_: 1
|
|
2198
2198
|
}),
|
|
2199
|
-
f(
|
|
2199
|
+
f(b, { span: 12 }, {
|
|
2200
2200
|
default: g(() => [
|
|
2201
2201
|
c("span", null, V(p(e)("dialog.replacementDlg.replacedFont")), 1)
|
|
2202
2202
|
]),
|
|
@@ -2205,27 +2205,27 @@ const rl = /* @__PURE__ */ P({
|
|
|
2205
2205
|
]),
|
|
2206
2206
|
_: 1
|
|
2207
2207
|
}),
|
|
2208
|
-
(r(!0),
|
|
2208
|
+
(r(!0), k(O, null, W(p(t), ([E, F]) => (r(), $(M, {
|
|
2209
2209
|
key: E,
|
|
2210
2210
|
style: { "margin-top": "10px" }
|
|
2211
2211
|
}, {
|
|
2212
2212
|
default: g(() => [
|
|
2213
|
-
f(
|
|
2213
|
+
f(b, { span: 12 }, {
|
|
2214
2214
|
default: g(() => [
|
|
2215
2215
|
c("span", null, V(E), 1)
|
|
2216
2216
|
]),
|
|
2217
2217
|
_: 2
|
|
2218
2218
|
}, 1024),
|
|
2219
|
-
f(
|
|
2219
|
+
f(b, { span: 12 }, {
|
|
2220
2220
|
default: g(() => [
|
|
2221
2221
|
f(L, {
|
|
2222
|
-
"model-value":
|
|
2222
|
+
"model-value": F,
|
|
2223
2223
|
placeholder: p(e)("dialog.replacementDlg.selectFont"),
|
|
2224
2224
|
"onUpdate:modelValue": (K) => v(E, K),
|
|
2225
2225
|
style: { width: "100%" }
|
|
2226
2226
|
}, {
|
|
2227
2227
|
default: g(() => [
|
|
2228
|
-
(r(!0),
|
|
2228
|
+
(r(!0), k(O, null, W(d.value, (K, ye) => (r(), $(I, {
|
|
2229
2229
|
key: ye,
|
|
2230
2230
|
label: K,
|
|
2231
2231
|
value: K
|
|
@@ -2255,26 +2255,26 @@ const rl = /* @__PURE__ */ P({
|
|
|
2255
2255
|
"v-show": !1
|
|
2256
2256
|
}, {
|
|
2257
2257
|
default: g(() => [
|
|
2258
|
-
f(
|
|
2258
|
+
f(y, {
|
|
2259
2259
|
label: p(e)("dialog.replacementDlg.file"),
|
|
2260
2260
|
prop: "fileName",
|
|
2261
2261
|
"min-width": 0,
|
|
2262
2262
|
flex: 1
|
|
2263
2263
|
}, null, 8, ["label"]),
|
|
2264
|
-
f(
|
|
2264
|
+
f(y, {
|
|
2265
2265
|
label: p(e)("dialog.replacementDlg.replace"),
|
|
2266
2266
|
fixed: "right",
|
|
2267
2267
|
width: "60"
|
|
2268
2268
|
}, {
|
|
2269
2269
|
default: g(({ row: E }) => [
|
|
2270
|
-
f(
|
|
2270
|
+
f(w, {
|
|
2271
2271
|
link: "",
|
|
2272
2272
|
type: "primary",
|
|
2273
2273
|
size: "small",
|
|
2274
|
-
onClick: (
|
|
2274
|
+
onClick: (F) => x(E)
|
|
2275
2275
|
}, {
|
|
2276
2276
|
default: g(() => u[2] || (u[2] = [
|
|
2277
|
-
|
|
2277
|
+
R(" ... ", -1)
|
|
2278
2278
|
])),
|
|
2279
2279
|
_: 2,
|
|
2280
2280
|
__: [2]
|
|
@@ -2329,7 +2329,7 @@ const rl = /* @__PURE__ */ P({
|
|
|
2329
2329
|
{ key: "aci-4", name: "Cyan" },
|
|
2330
2330
|
{ key: "aci-5", name: "Blue" },
|
|
2331
2331
|
{ key: "aci-6", name: "Magenta" }
|
|
2332
|
-
],
|
|
2332
|
+
], x = D(
|
|
2333
2333
|
() => h.map((L) => ({
|
|
2334
2334
|
...L,
|
|
2335
2335
|
i18nName: We(L.name)
|
|
@@ -2342,14 +2342,14 @@ const rl = /* @__PURE__ */ P({
|
|
|
2342
2342
|
}
|
|
2343
2343
|
if (L === "custom-trigger") {
|
|
2344
2344
|
if (t.onCustomColorSelected) {
|
|
2345
|
-
const
|
|
2346
|
-
|
|
2345
|
+
const y = await t.onCustomColorSelected(t.modelValue);
|
|
2346
|
+
y ? (i("update:modelValue", y), a.value = u(y)) : a.value = u(t.modelValue);
|
|
2347
2347
|
return;
|
|
2348
2348
|
}
|
|
2349
2349
|
l.value = !0;
|
|
2350
2350
|
return;
|
|
2351
2351
|
}
|
|
2352
|
-
const C =
|
|
2352
|
+
const C = b(L);
|
|
2353
2353
|
i("update:modelValue", C);
|
|
2354
2354
|
}
|
|
2355
2355
|
function v(L) {
|
|
@@ -2361,14 +2361,14 @@ const rl = /* @__PURE__ */ P({
|
|
|
2361
2361
|
function u(L) {
|
|
2362
2362
|
return L ? L.isByLayer ? "bylayer" : L.isByBlock ? "byblock" : L.isByACI ? `aci-${L.colorIndex}` : L.isByColor ? `rgb-${L.red}-${L.green}-${L.blue}` : "" : "";
|
|
2363
2363
|
}
|
|
2364
|
-
function
|
|
2364
|
+
function b(L) {
|
|
2365
2365
|
const C = new ee();
|
|
2366
2366
|
if (L === "bylayer") C.setByLayer();
|
|
2367
2367
|
else if (L === "byblock") C.setByBlock();
|
|
2368
2368
|
else if (L.startsWith("aci-")) C.colorIndex = Number(L.substring(4));
|
|
2369
2369
|
else if (L.startsWith("rgb-")) {
|
|
2370
|
-
const [
|
|
2371
|
-
C.setRGB(Number(
|
|
2370
|
+
const [y, w, _, z] = L.split("-");
|
|
2371
|
+
C.setRGB(Number(w), Number(_), Number(z));
|
|
2372
2372
|
}
|
|
2373
2373
|
return C;
|
|
2374
2374
|
}
|
|
@@ -2377,19 +2377,19 @@ const rl = /* @__PURE__ */ P({
|
|
|
2377
2377
|
if (L.startsWith("aci-"))
|
|
2378
2378
|
return new ee(rt.ByACI, Number(L.substring(4))).cssColor ?? "";
|
|
2379
2379
|
if (L.startsWith("rgb-")) {
|
|
2380
|
-
const [C,
|
|
2381
|
-
return `rgb(${
|
|
2380
|
+
const [C, y, w, _] = L.split("-");
|
|
2381
|
+
return `rgb(${y}, ${w}, ${_})`;
|
|
2382
2382
|
}
|
|
2383
2383
|
return "#FFFFFF";
|
|
2384
2384
|
}
|
|
2385
2385
|
function I(L) {
|
|
2386
|
-
const C =
|
|
2386
|
+
const C = x.value.find((y) => y.key === L);
|
|
2387
2387
|
return C ? C.i18nName : L.startsWith("rgb-") ? n("main.colors.CustomColor") : "";
|
|
2388
2388
|
}
|
|
2389
2389
|
return (L, C) => {
|
|
2390
|
-
const
|
|
2391
|
-
return r(),
|
|
2392
|
-
f(
|
|
2390
|
+
const y = B("el-option"), w = B("el-select");
|
|
2391
|
+
return r(), k("div", null, [
|
|
2392
|
+
f(w, {
|
|
2393
2393
|
modelValue: a.value,
|
|
2394
2394
|
"onUpdate:modelValue": C[0] || (C[0] = (_) => a.value = _),
|
|
2395
2395
|
onChange: T,
|
|
@@ -2405,7 +2405,7 @@ const rl = /* @__PURE__ */ P({
|
|
|
2405
2405
|
])
|
|
2406
2406
|
]),
|
|
2407
2407
|
default: g(() => [
|
|
2408
|
-
(r(!0),
|
|
2408
|
+
(r(!0), k(O, null, W(x.value, (_) => (r(), $(y, {
|
|
2409
2409
|
key: _.key,
|
|
2410
2410
|
label: _.i18nName,
|
|
2411
2411
|
value: _.key
|
|
@@ -2421,7 +2421,7 @@ const rl = /* @__PURE__ */ P({
|
|
|
2421
2421
|
]),
|
|
2422
2422
|
_: 2
|
|
2423
2423
|
}, 1032, ["label", "value"]))), 128)),
|
|
2424
|
-
f(
|
|
2424
|
+
f(y, {
|
|
2425
2425
|
key: "custom-trigger",
|
|
2426
2426
|
value: "custom-trigger",
|
|
2427
2427
|
label: p(n)("main.colorDropdown.custom"),
|
|
@@ -2456,25 +2456,25 @@ const rl = /* @__PURE__ */ P({
|
|
|
2456
2456
|
},
|
|
2457
2457
|
emits: ["update:modelValue"],
|
|
2458
2458
|
setup(o, { emit: e }) {
|
|
2459
|
-
const t = e, i = o, { t: n } = Y(), l = Array.from({ length: 9 }, (C,
|
|
2459
|
+
const t = e, i = o, { t: n } = Y(), l = Array.from({ length: 9 }, (C, y) => y + 1), a = Array.from({ length: 240 }, (C, y) => y + 10), d = Array.from({ length: 6 }, (C, y) => y + 250), s = S(i.modelValue ?? null), h = S(
|
|
2460
2460
|
i.modelValue != null ? String(i.modelValue) : ""
|
|
2461
|
-
),
|
|
2462
|
-
const
|
|
2463
|
-
return
|
|
2461
|
+
), x = S(null), T = S({ r: 0, g: 0, b: 0 }), v = (C) => {
|
|
2462
|
+
const y = new ee();
|
|
2463
|
+
return y.colorIndex = C, y.cssColor || "#FFF";
|
|
2464
2464
|
};
|
|
2465
2465
|
function m(C) {
|
|
2466
|
-
|
|
2467
|
-
const
|
|
2468
|
-
|
|
2469
|
-
r:
|
|
2470
|
-
g:
|
|
2471
|
-
b:
|
|
2466
|
+
x.value = C;
|
|
2467
|
+
const y = new ee();
|
|
2468
|
+
y.colorIndex = C, T.value = {
|
|
2469
|
+
r: y.red ?? 0,
|
|
2470
|
+
g: y.green ?? 0,
|
|
2471
|
+
b: y.blue ?? 0
|
|
2472
2472
|
};
|
|
2473
2473
|
}
|
|
2474
2474
|
function u() {
|
|
2475
|
-
|
|
2475
|
+
x.value = null;
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function b(C) {
|
|
2478
2478
|
s.value = C, h.value = C.toString(), t("update:modelValue", C);
|
|
2479
2479
|
}
|
|
2480
2480
|
N(
|
|
@@ -2485,14 +2485,14 @@ const rl = /* @__PURE__ */ P({
|
|
|
2485
2485
|
);
|
|
2486
2486
|
function M() {
|
|
2487
2487
|
const C = h.value.trim().toUpperCase();
|
|
2488
|
-
if (C === "BYLAYER") return
|
|
2489
|
-
if (C === "BYBLOCK") return
|
|
2490
|
-
const
|
|
2491
|
-
if (!Number.isInteger(
|
|
2488
|
+
if (C === "BYLAYER") return b(256);
|
|
2489
|
+
if (C === "BYBLOCK") return b(0);
|
|
2490
|
+
const y = Number(C);
|
|
2491
|
+
if (!Number.isInteger(y) || y < 0 || y > 256) {
|
|
2492
2492
|
h.value = "";
|
|
2493
2493
|
return;
|
|
2494
2494
|
}
|
|
2495
|
-
y
|
|
2495
|
+
b(y);
|
|
2496
2496
|
}
|
|
2497
2497
|
const I = D(() => s.value == null ? "" : s.value), L = D(() => {
|
|
2498
2498
|
if (s.value == null || s.value === 0 || s.value === 256)
|
|
@@ -2500,47 +2500,47 @@ const rl = /* @__PURE__ */ P({
|
|
|
2500
2500
|
const C = new ee();
|
|
2501
2501
|
return C.colorIndex = s.value, `${C.red}, ${C.green}, ${C.blue}`;
|
|
2502
2502
|
});
|
|
2503
|
-
return (C,
|
|
2503
|
+
return (C, y) => (r(), k("div", hl, [
|
|
2504
2504
|
c("div", _l, [
|
|
2505
|
-
(r(!0),
|
|
2506
|
-
key:
|
|
2505
|
+
(r(!0), k(O, null, W(p(a), (w) => (r(), k("div", {
|
|
2506
|
+
key: w,
|
|
2507
2507
|
class: "ml-aci-color-cell",
|
|
2508
|
-
style: q({ background: v(
|
|
2509
|
-
onMouseenter: (_) => m(
|
|
2508
|
+
style: q({ background: v(w) }),
|
|
2509
|
+
onMouseenter: (_) => m(w),
|
|
2510
2510
|
onMouseleave: u,
|
|
2511
|
-
onClick: (_) =>
|
|
2511
|
+
onClick: (_) => b(w)
|
|
2512
2512
|
}, null, 44, yl))), 128))
|
|
2513
2513
|
]),
|
|
2514
2514
|
c("div", wl, [
|
|
2515
2515
|
c("div", bl, [
|
|
2516
|
-
(r(!0),
|
|
2517
|
-
key:
|
|
2516
|
+
(r(!0), k(O, null, W(p(l), (w) => (r(), k("div", {
|
|
2517
|
+
key: w,
|
|
2518
2518
|
class: "ml-aci-color-cell",
|
|
2519
|
-
style: q({ background: v(
|
|
2520
|
-
onMouseenter: (_) => m(
|
|
2519
|
+
style: q({ background: v(w) }),
|
|
2520
|
+
onMouseenter: (_) => m(w),
|
|
2521
2521
|
onMouseleave: u,
|
|
2522
|
-
onClick: (_) =>
|
|
2522
|
+
onClick: (_) => b(w)
|
|
2523
2523
|
}, null, 44, kl))), 128))
|
|
2524
2524
|
]),
|
|
2525
2525
|
c("div", xl, [
|
|
2526
2526
|
c("button", {
|
|
2527
2527
|
type: "button",
|
|
2528
|
-
onClick:
|
|
2528
|
+
onClick: y[0] || (y[0] = (w) => b(256))
|
|
2529
2529
|
}, "ByLayer"),
|
|
2530
2530
|
c("button", {
|
|
2531
2531
|
type: "button",
|
|
2532
|
-
onClick:
|
|
2532
|
+
onClick: y[1] || (y[1] = (w) => b(0))
|
|
2533
2533
|
}, "ByBlock")
|
|
2534
2534
|
])
|
|
2535
2535
|
]),
|
|
2536
2536
|
c("div", Cl, [
|
|
2537
|
-
(r(!0),
|
|
2538
|
-
key:
|
|
2537
|
+
(r(!0), k(O, null, W(p(d), (w) => (r(), k("div", {
|
|
2538
|
+
key: w,
|
|
2539
2539
|
class: "ml-aci-color-cell",
|
|
2540
|
-
style: q({ background: v(
|
|
2541
|
-
onMouseenter: (_) => m(
|
|
2540
|
+
style: q({ background: v(w) }),
|
|
2541
|
+
onMouseenter: (_) => m(w),
|
|
2542
2542
|
onMouseleave: u,
|
|
2543
|
-
onClick: (_) =>
|
|
2543
|
+
onClick: (_) => b(w)
|
|
2544
2544
|
}, null, 44, Ml))), 128))
|
|
2545
2545
|
]),
|
|
2546
2546
|
c("div", Sl, [
|
|
@@ -2552,7 +2552,7 @@ const rl = /* @__PURE__ */ P({
|
|
|
2552
2552
|
c("div", zl, [
|
|
2553
2553
|
c("span", null, V(p(n)("main.colorIndexPicker.color")), 1),
|
|
2554
2554
|
et(c("input", {
|
|
2555
|
-
"onUpdate:modelValue":
|
|
2555
|
+
"onUpdate:modelValue": y[2] || (y[2] = (w) => h.value = w),
|
|
2556
2556
|
onKeydown: tt(M, ["enter"]),
|
|
2557
2557
|
placeholder: p(n)("main.colorIndexPicker.inputPlaceholder")
|
|
2558
2558
|
}, null, 40, $l), [
|
|
@@ -2576,10 +2576,10 @@ const rl = /* @__PURE__ */ P({
|
|
|
2576
2576
|
return e({
|
|
2577
2577
|
toggleDialog: i,
|
|
2578
2578
|
registerDialog: n
|
|
2579
|
-
}), (l, a) => (r(!0),
|
|
2579
|
+
}), (l, a) => (r(!0), k(O, null, W(p(t), (d) => (r(), k("div", {
|
|
2580
2580
|
key: d.name
|
|
2581
2581
|
}, [
|
|
2582
|
-
(r(), $(
|
|
2582
|
+
(r(), $(de(d.component), nt({
|
|
2583
2583
|
modelValue: d.visible,
|
|
2584
2584
|
"onUpdate:modelValue": (s) => d.visible = s
|
|
2585
2585
|
}, { ref_for: !0 }, d.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
|
@@ -2592,8 +2592,8 @@ const rl = /* @__PURE__ */ P({
|
|
|
2592
2592
|
const t = e, i = S(null), n = el(), l = D(() => {
|
|
2593
2593
|
const d = Array.from(n.value);
|
|
2594
2594
|
let s = "";
|
|
2595
|
-
for (let h = 0,
|
|
2596
|
-
h ==
|
|
2595
|
+
for (let h = 0, x = d.length; h < x; ++h)
|
|
2596
|
+
h == x - 1 ? s += `.${d[h]}` : s += `.${d[h]}, `;
|
|
2597
2597
|
return s;
|
|
2598
2598
|
});
|
|
2599
2599
|
U(() => {
|
|
@@ -2603,8 +2603,8 @@ const rl = /* @__PURE__ */ P({
|
|
|
2603
2603
|
});
|
|
2604
2604
|
});
|
|
2605
2605
|
const a = (d) => {
|
|
2606
|
-
var
|
|
2607
|
-
const h = (
|
|
2606
|
+
var x;
|
|
2607
|
+
const h = (x = d.target.files) == null ? void 0 : x[0];
|
|
2608
2608
|
if (h && h.name) {
|
|
2609
2609
|
const T = new FileReader();
|
|
2610
2610
|
T.readAsArrayBuffer(h), T.onload = (v) => {
|
|
@@ -2616,7 +2616,7 @@ const rl = /* @__PURE__ */ P({
|
|
|
2616
2616
|
};
|
|
2617
2617
|
}
|
|
2618
2618
|
};
|
|
2619
|
-
return (d, s) => (r(),
|
|
2619
|
+
return (d, s) => (r(), k("input", {
|
|
2620
2620
|
type: "file",
|
|
2621
2621
|
ref_key: "fileInput",
|
|
2622
2622
|
ref: i,
|
|
@@ -2639,10 +2639,10 @@ const rl = /* @__PURE__ */ P({
|
|
|
2639
2639
|
Ne((h) => ({
|
|
2640
2640
|
a97b120a: a.value
|
|
2641
2641
|
}));
|
|
2642
|
-
const t = o, i =
|
|
2642
|
+
const t = o, i = ve(o, "modelValue"), n = e, l = D(() => i.value ? t.data.onIcon : t.data.offIcon), a = D(() => t.size + "px"), d = D(() => i.value ? t.data.onTooltip : t.data.offTooltip), s = () => {
|
|
2643
2643
|
n("click", i.value);
|
|
2644
2644
|
};
|
|
2645
|
-
return (h,
|
|
2645
|
+
return (h, x) => {
|
|
2646
2646
|
const T = B("el-button"), v = B("el-tooltip");
|
|
2647
2647
|
return r(), $(v, {
|
|
2648
2648
|
content: d.value,
|
|
@@ -2664,7 +2664,7 @@ const rl = /* @__PURE__ */ P({
|
|
|
2664
2664
|
try {
|
|
2665
2665
|
if (typeof document < "u") {
|
|
2666
2666
|
var o = document.createElement("style");
|
|
2667
|
-
o.appendChild(document.createTextNode(".ml-dropdown-icon[data-v-3fc33b5d],.ml-dropdown-icon[data-v-3fc33b5d]:hover{outline:none;border:none}.ml-status-bar[data-v-d6a59cf0]{position:fixed;bottom:0;left:0;right:0;height:30px;display:flex;justify-content:space-between;align-items:center;background-color:var(--el-fill-color);box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-status-bar-left[data-v-d6a59cf0],.ml-status-bar-right[data-v-d6a59cf0]{display:flex;align-items:center}.ml-status-bar-left[data-v-d6a59cf0]>*{margin-right:10px}.ml-status-bar-right[data-v-d6a59cf0]>*{margin-left:10px}.ml-toggle-button[data-v-
|
|
2667
|
+
o.appendChild(document.createTextNode(".ml-dropdown-icon[data-v-3fc33b5d],.ml-dropdown-icon[data-v-3fc33b5d]:hover{outline:none;border:none}.ml-status-bar[data-v-d6a59cf0]{position:fixed;bottom:0;left:0;right:0;height:30px;display:flex;justify-content:space-between;align-items:center;background-color:var(--el-fill-color);box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-status-bar-left[data-v-d6a59cf0],.ml-status-bar-right[data-v-d6a59cf0]{display:flex;align-items:center}.ml-status-bar-left[data-v-d6a59cf0]>*{margin-right:10px}.ml-status-bar-right[data-v-d6a59cf0]>*{margin-left:10px}.ml-toggle-button[data-v-5adaeb5a]{border:none;padding:0;cursor:pointer;width:var(--021a85e9);height:var(--021a85e9)}.ml-vertical-toolbar-button-group[data-v-c6504e33]{display:flex;flex-direction:column;background-color:var(--el-fill-color)}.ml-horizontal-toolbar-button-group[data-v-c6504e33]{display:flex;flex-direction:row;background-color:var(--el-fill-color)}.ml-toolbar-button[data-v-c6504e33]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px}.ml-toolbar-button-text[data-v-c6504e33]{margin-left:0;margin-top:5px}.ml-tool-palette-dialog[data-v-cd1a3c67]{cursor:default;width:300px;min-width:var(--collapsed-width);position:fixed;box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-tool-palette-disabled[data-v-cd1a3c67]{pointer-events:none;opacity:.6}.ml-tool-palette-dialog-icon[data-v-cd1a3c67]{border-bottom:1px solid var(--el-border-color);cursor:default}.ml-tool-palette-dialog-icon[data-v-cd1a3c67]:hover{color:var(--el-color-primary)}.ml-tool-palette-dialog-layout[data-v-cd1a3c67]{display:flex;height:100%}.ml-tool-palette-title-bar[data-v-cd1a3c67]{width:var(--collapsed-width);display:flex;justify-content:left;align-items:center;cursor:move;writing-mode:vertical-rl;text-align:center;background-color:var(--el-fill-color)}.ml-tool-palette-title[data-v-cd1a3c67]{pointer-events:none;margin-top:10px;margin-bottom:10px;font-size:small;-webkit-user-select:none;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-tool-palette-content[data-v-cd1a3c67]{-webkit-user-select:none;user-select:none;flex-grow:1;display:flex;flex-direction:column;background-color:var(--el-fill-color);overflow:hidden}.ml-tool-palette-tabs[data-v-cd1a3c67]{display:flex;flex-direction:column;height:100%;flex:1}.ml-tool-palette-tabs[data-v-cd1a3c67] .el-tabs{display:flex;flex-direction:column;height:100%}.ml-tool-palette-tabs[data-v-cd1a3c67] .el-tabs__header{margin:0;border-bottom:none;order:1;flex-shrink:0;position:relative}.ml-tool-palette-tabs[data-v-cd1a3c67] .el-tabs__content{flex:1;overflow:auto;padding:0;order:2;min-height:0;position:relative}.ml-tool-palette-tabs[data-v-cd1a3c67] .el-tab-pane{height:100%;overflow:auto}.ml-tool-palette-default-content[data-v-cd1a3c67]{flex:1;overflow:auto;display:flex;flex-direction:column}.ml-tool-palette-dialog-layout.left .ml-tool-palette-title-bar[data-v-cd1a3c67]{order:1}.ml-tool-palette-dialog-layout.left .ml-tool-palette-content[data-v-cd1a3c67],.ml-tool-palette-dialog-layout.right .ml-tool-palette-title-bar[data-v-cd1a3c67]{order:2}.ml-tool-palette-dialog-layout.right .ml-tool-palette-content[data-v-cd1a3c67]{order:1}")), document.head.appendChild(o);
|
|
2668
2668
|
}
|
|
2669
2669
|
} catch (e) {
|
|
2670
2670
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
@@ -2682,7 +2682,7 @@ const Fl = {
|
|
|
2682
2682
|
Rl
|
|
2683
2683
|
];
|
|
2684
2684
|
function Hl(o, e) {
|
|
2685
|
-
return r(),
|
|
2685
|
+
return r(), k("svg", Fl, [...Ol]);
|
|
2686
2686
|
}
|
|
2687
2687
|
const Pe = { render: Hl }, Yl = {
|
|
2688
2688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2696,7 +2696,7 @@ const Pe = { render: Hl }, Yl = {
|
|
|
2696
2696
|
Gl
|
|
2697
2697
|
];
|
|
2698
2698
|
function Wl(o, e) {
|
|
2699
|
-
return r(),
|
|
2699
|
+
return r(), k("svg", Yl, [...Xl]);
|
|
2700
2700
|
}
|
|
2701
2701
|
const Ie = { render: Wl }, Ul = /* @__PURE__ */ P({
|
|
2702
2702
|
__name: "MlCollapse",
|
|
@@ -2709,17 +2709,17 @@ const Ie = { render: Wl }, Ul = /* @__PURE__ */ P({
|
|
|
2709
2709
|
}),
|
|
2710
2710
|
emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
|
|
2711
2711
|
setup(o, { emit: e }) {
|
|
2712
|
-
const t = o, i =
|
|
2712
|
+
const t = o, i = ve(o, "modelValue"), n = e, l = D(() => t.reverse ? i.value ? Pe : Ie : i.value ? Ie : Pe), a = D(() => `${t.size}px`), d = () => {
|
|
2713
2713
|
n("change", i.value), i.value = !i.value;
|
|
2714
2714
|
};
|
|
2715
2715
|
return (s, h) => {
|
|
2716
|
-
const
|
|
2717
|
-
return r(), $(
|
|
2716
|
+
const x = fe;
|
|
2717
|
+
return r(), $(x, {
|
|
2718
2718
|
size: a.value,
|
|
2719
2719
|
onClick: d
|
|
2720
2720
|
}, {
|
|
2721
2721
|
default: g(() => [
|
|
2722
|
-
(r(), $(
|
|
2722
|
+
(r(), $(de(l.value)))
|
|
2723
2723
|
]),
|
|
2724
2724
|
_: 1
|
|
2725
2725
|
}, 8, ["size"]);
|
|
@@ -2751,17 +2751,17 @@ const Ie = { render: Wl }, Ul = /* @__PURE__ */ P({
|
|
|
2751
2751
|
i("click", a);
|
|
2752
2752
|
};
|
|
2753
2753
|
return (a, d) => {
|
|
2754
|
-
const s = fe, h = kt,
|
|
2754
|
+
const s = fe, h = kt, x = bt, T = wt;
|
|
2755
2755
|
return r(), $(T, { onCommand: l }, {
|
|
2756
2756
|
dropdown: g(() => [
|
|
2757
|
-
f(
|
|
2757
|
+
f(x, null, {
|
|
2758
2758
|
default: g(() => [
|
|
2759
|
-
(r(!0),
|
|
2759
|
+
(r(!0), k(O, null, W(n.value, (v) => (r(), $(h, {
|
|
2760
2760
|
key: v.text,
|
|
2761
2761
|
command: v.name
|
|
2762
2762
|
}, {
|
|
2763
2763
|
default: g(() => [
|
|
2764
|
-
|
|
2764
|
+
R(V(v.text), 1)
|
|
2765
2765
|
]),
|
|
2766
2766
|
_: 2
|
|
2767
2767
|
}, 1032, ["command"]))), 128))
|
|
@@ -2811,7 +2811,7 @@ const Ie = { render: Wl }, Ul = /* @__PURE__ */ P({
|
|
|
2811
2811
|
}
|
|
2812
2812
|
}), ea = {}, ta = { class: "ml-status-bar" }, oa = { class: "ml-status-bar-left" }, na = { class: "ml-status-bar-right" };
|
|
2813
2813
|
function la(o, e) {
|
|
2814
|
-
return r(),
|
|
2814
|
+
return r(), k("div", ta, [
|
|
2815
2815
|
c("div", oa, [
|
|
2816
2816
|
re(o.$slots, "left", {}, void 0, !0)
|
|
2817
2817
|
]),
|
|
@@ -2842,16 +2842,16 @@ const aa = /* @__PURE__ */ _e(ea, [["render", la], ["__scopeId", "data-v-d6a59cf
|
|
|
2842
2842
|
return 50;
|
|
2843
2843
|
}
|
|
2844
2844
|
return 70;
|
|
2845
|
-
}), d = (
|
|
2846
|
-
i("click",
|
|
2845
|
+
}), d = (x) => x.description ? x.description : x.text, s = D(() => t.size === "large"), h = (x) => {
|
|
2846
|
+
i("click", x);
|
|
2847
2847
|
};
|
|
2848
|
-
return (
|
|
2849
|
-
const v = fe, m = Mt, u = Ct,
|
|
2850
|
-
return r(), $(
|
|
2851
|
-
class:
|
|
2848
|
+
return (x, T) => {
|
|
2849
|
+
const v = fe, m = Mt, u = Ct, b = xt;
|
|
2850
|
+
return r(), $(b, {
|
|
2851
|
+
class: ce(n.value)
|
|
2852
2852
|
}, {
|
|
2853
2853
|
default: g(() => [
|
|
2854
|
-
(r(!0),
|
|
2854
|
+
(r(!0), k(O, null, W(x.items, (M, I) => (r(), $(u, {
|
|
2855
2855
|
key: M.text,
|
|
2856
2856
|
content: d(M),
|
|
2857
2857
|
"hide-after": 0
|
|
@@ -2867,11 +2867,11 @@ const aa = /* @__PURE__ */ _e(ea, [["render", la], ["__scopeId", "data-v-d6a59cf
|
|
|
2867
2867
|
c("div", null, [
|
|
2868
2868
|
f(v, { size: l.value }, {
|
|
2869
2869
|
default: g(() => [
|
|
2870
|
-
(r(), $(
|
|
2870
|
+
(r(), $(de(M.icon)))
|
|
2871
2871
|
]),
|
|
2872
2872
|
_: 2
|
|
2873
2873
|
}, 1032, ["size"]),
|
|
2874
|
-
s.value ? (r(),
|
|
2874
|
+
s.value ? (r(), k("div", ia, V(M.text), 1)) : H("", !0)
|
|
2875
2875
|
])
|
|
2876
2876
|
]),
|
|
2877
2877
|
_: 2
|
|
@@ -2888,8 +2888,8 @@ const aa = /* @__PURE__ */ _e(ea, [["render", la], ["__scopeId", "data-v-d6a59cf
|
|
|
2888
2888
|
function ca(o, e, t) {
|
|
2889
2889
|
const i = S(!1), n = (s) => {
|
|
2890
2890
|
if (t.value && o.value) {
|
|
2891
|
-
const h = o.value.getBoundingClientRect(),
|
|
2892
|
-
i.value = !
|
|
2891
|
+
const h = o.value.getBoundingClientRect(), x = s.clientX < h.left || s.clientX > h.right || s.clientY < h.top || s.clientY > h.bottom;
|
|
2892
|
+
i.value = !x;
|
|
2893
2893
|
}
|
|
2894
2894
|
}, l = () => {
|
|
2895
2895
|
t.value && (i.value = !0);
|
|
@@ -2925,32 +2925,32 @@ function ua(o, e, t) {
|
|
|
2925
2925
|
}
|
|
2926
2926
|
}, h = () => {
|
|
2927
2927
|
o.value && o.value.addEventListener("mousedown", T);
|
|
2928
|
-
},
|
|
2928
|
+
}, x = () => {
|
|
2929
2929
|
o.value && o.value.removeEventListener("mousedown", T);
|
|
2930
2930
|
}, T = (u) => {
|
|
2931
2931
|
if (o.value != null) {
|
|
2932
2932
|
if (e && e.value) {
|
|
2933
|
-
const
|
|
2934
|
-
if (u.clientX <
|
|
2933
|
+
const b = e.value.getBoundingClientRect();
|
|
2934
|
+
if (u.clientX < b.left || u.clientX > b.right || u.clientY < b.top || u.clientY > b.bottom) return;
|
|
2935
2935
|
}
|
|
2936
2936
|
i.value = !0, a.x = u.clientX, a.y = u.clientY, s(), document.addEventListener("mousemove", v), document.addEventListener("mouseup", m);
|
|
2937
2937
|
}
|
|
2938
2938
|
}, v = (u) => {
|
|
2939
2939
|
if (i.value && l.value && n.value) {
|
|
2940
|
-
const
|
|
2940
|
+
const b = window.innerWidth, M = window.innerHeight, I = o.value, L = I.getBoundingClientRect(), C = L.width, y = L.height, w = l.value.x + (u.clientX - a.x), _ = l.value.y + (u.clientY - a.y);
|
|
2941
2941
|
n.value.x = Math.max(
|
|
2942
2942
|
t ? t.value.offset.value.left : 0,
|
|
2943
|
-
|
|
2943
|
+
w
|
|
2944
2944
|
);
|
|
2945
|
-
const z =
|
|
2945
|
+
const z = b - C;
|
|
2946
2946
|
n.value.x = Math.min(
|
|
2947
2947
|
t ? z - t.value.offset.value.right : z,
|
|
2948
2948
|
n.value.x
|
|
2949
2949
|
), n.value.y = Math.max(
|
|
2950
2950
|
t ? t.value.offset.value.top : 0,
|
|
2951
|
-
Math.min(_, M -
|
|
2951
|
+
Math.min(_, M - y)
|
|
2952
2952
|
);
|
|
2953
|
-
const E = M -
|
|
2953
|
+
const E = M - y;
|
|
2954
2954
|
n.value.y = Math.min(
|
|
2955
2955
|
t ? E - t.value.offset.value.bottom : E,
|
|
2956
2956
|
n.value.y
|
|
@@ -2964,7 +2964,7 @@ function ua(o, e, t) {
|
|
|
2964
2964
|
}), le(() => {
|
|
2965
2965
|
o.value && o.value.removeEventListener("mousedown", T);
|
|
2966
2966
|
}), N(o, (u) => {
|
|
2967
|
-
u ? (s(), h()) :
|
|
2967
|
+
u ? (s(), h()) : x();
|
|
2968
2968
|
}), {
|
|
2969
2969
|
isDragging: i,
|
|
2970
2970
|
movement: d,
|
|
@@ -3009,8 +3009,8 @@ function ma(o, e, t, i) {
|
|
|
3009
3009
|
}
|
|
3010
3010
|
function pa(o, e, t, i) {
|
|
3011
3011
|
const n = S(o.value.width), l = S(o.value.left), a = D(() => o.value.width), d = D(() => o.value.left), s = D(() => t.value ? t.value.x : null);
|
|
3012
|
-
return N([a, d], ([h,
|
|
3013
|
-
(n.value == null || l.value == null || e.value) && (n.value = h, l.value =
|
|
3012
|
+
return N([a, d], ([h, x]) => {
|
|
3013
|
+
(n.value == null || l.value == null || e.value) && (n.value = h, l.value = x);
|
|
3014
3014
|
}), N(s, (h) => {
|
|
3015
3015
|
i.value && t.value && (l.value = h);
|
|
3016
3016
|
}), { left: l, width: n };
|
|
@@ -3035,37 +3035,37 @@ function va(o, e = S({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
3035
3035
|
}
|
|
3036
3036
|
function fa(o, e = S(!1), t = S(!1), i = S({ left: 0, right: 0, top: 0, bottom: 0 }), n = { width: 20, height: 40 }) {
|
|
3037
3037
|
const { initialRect: l } = va(o, i), a = S(!1);
|
|
3038
|
-
let d = 0, s = 0, h = 0,
|
|
3038
|
+
let d = 0, s = 0, h = 0, x = 0, T = 0;
|
|
3039
3039
|
const v = 5, m = S(null), u = (C) => {
|
|
3040
3040
|
if (!(!o.value || e.value))
|
|
3041
3041
|
if (a.value) {
|
|
3042
|
-
const
|
|
3042
|
+
const y = C.clientX - x, w = C.clientY - T;
|
|
3043
3043
|
if (m.value === "left" || m.value === "left-bottom-corner") {
|
|
3044
|
-
const _ = s -
|
|
3045
|
-
_ > n.width && (l.value.width = _, l.value.left = d +
|
|
3044
|
+
const _ = s - y;
|
|
3045
|
+
_ > n.width && (l.value.width = _, l.value.left = d + y, o.value.style.left = l.value.left + "px", o.value.style.width = l.value.width + "px");
|
|
3046
3046
|
}
|
|
3047
3047
|
if (m.value === "right" || m.value === "right-bottom-corner") {
|
|
3048
|
-
const _ = s +
|
|
3048
|
+
const _ = s + y;
|
|
3049
3049
|
_ > n.width && (l.value.width = _, o.value.style.width = l.value.width + "px");
|
|
3050
3050
|
}
|
|
3051
3051
|
if (m.value === "bottom" || m.value === "left-bottom-corner" || m.value === "right-bottom-corner") {
|
|
3052
|
-
const _ = h +
|
|
3052
|
+
const _ = h + w;
|
|
3053
3053
|
_ > n.height && (l.value.height = _, o.value.style.height = l.value.height + "px");
|
|
3054
3054
|
}
|
|
3055
3055
|
} else {
|
|
3056
|
-
const
|
|
3057
|
-
z &&
|
|
3056
|
+
const y = o.value.getBoundingClientRect(), w = C.clientX - y.left, _ = C.clientY - y.top, z = Math.abs(w) <= v, E = Math.abs(y.width - w) <= v, F = Math.abs(y.height - _) <= v;
|
|
3057
|
+
z && F && t.value ? (o.value.style.cursor = "nesw-resize", m.value = "left-bottom-corner") : E && F && !t.value ? (o.value.style.cursor = "nwse-resize", m.value = "right-bottom-corner") : z && t.value ? (o.value.style.cursor = "ew-resize", m.value = "left") : E && !t.value ? (o.value.style.cursor = "ew-resize", m.value = "right") : F ? (o.value.style.cursor = "ns-resize", m.value = "bottom") : (o.value.style.cursor = "", m.value = null);
|
|
3058
3058
|
}
|
|
3059
|
-
},
|
|
3059
|
+
}, b = (C) => {
|
|
3060
3060
|
if (!o.value || !m.value) return;
|
|
3061
|
-
const
|
|
3062
|
-
|
|
3061
|
+
const y = o.value.getBoundingClientRect();
|
|
3062
|
+
x = C.clientX, T = C.clientY, s = y.width, h = y.height, d = y.left, l.value.width = s, l.value.height = h, l.value.left = y.left, l.value.top = y.top, a.value = !0, document.addEventListener("mousemove", u), document.addEventListener("mouseup", M);
|
|
3063
3063
|
}, M = () => {
|
|
3064
3064
|
a.value = !1, m.value = null, o.value && (o.value.style.cursor = ""), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", M);
|
|
3065
3065
|
}, I = () => {
|
|
3066
|
-
o.value && (o.value.removeEventListener("mousedown",
|
|
3066
|
+
o.value && (o.value.removeEventListener("mousedown", b), o.value.removeEventListener("mousemove", u)), document.removeEventListener("mouseup", M);
|
|
3067
3067
|
}, L = () => {
|
|
3068
|
-
o.value && (o.value.addEventListener("mousedown",
|
|
3068
|
+
o.value && (o.value.addEventListener("mousedown", b), o.value.addEventListener("mousemove", u));
|
|
3069
3069
|
};
|
|
3070
3070
|
return U(() => {
|
|
3071
3071
|
o.value && L();
|
|
@@ -3101,7 +3101,7 @@ function ga(o, e, t, i) {
|
|
|
3101
3101
|
});
|
|
3102
3102
|
}
|
|
3103
3103
|
function ha(o, e, t, i) {
|
|
3104
|
-
const n = S(window.innerWidth), l = S(window.innerHeight), { docked: a, orientation: d, movement: s, position: h, isDragging:
|
|
3104
|
+
const n = S(window.innerWidth), l = S(window.innerHeight), { docked: a, orientation: d, movement: s, position: h, isDragging: x } = da(
|
|
3105
3105
|
o,
|
|
3106
3106
|
e,
|
|
3107
3107
|
i
|
|
@@ -3110,11 +3110,11 @@ function ha(o, e, t, i) {
|
|
|
3110
3110
|
t,
|
|
3111
3111
|
T,
|
|
3112
3112
|
i.value.offset
|
|
3113
|
-
), { width: u, left:
|
|
3113
|
+
), { width: u, left: b } = pa(
|
|
3114
3114
|
v,
|
|
3115
3115
|
m,
|
|
3116
3116
|
h,
|
|
3117
|
-
|
|
3117
|
+
x
|
|
3118
3118
|
), { lastTop: M, lastHeight: I } = ma(
|
|
3119
3119
|
D(() => v.value.left),
|
|
3120
3120
|
D(() => v.value.top),
|
|
@@ -3124,34 +3124,34 @@ function ha(o, e, t, i) {
|
|
|
3124
3124
|
ga(o, T, t, L);
|
|
3125
3125
|
const C = (z) => {
|
|
3126
3126
|
if (o.value) {
|
|
3127
|
-
const E = o.value.getBoundingClientRect(),
|
|
3127
|
+
const E = o.value.getBoundingClientRect(), F = E.left + z;
|
|
3128
3128
|
if (T.value) {
|
|
3129
|
-
v.value.left =
|
|
3129
|
+
v.value.left = F;
|
|
3130
3130
|
const K = window.innerWidth - E.width - E.left;
|
|
3131
|
-
E.left <= 0 && K >= 0 && z < 0 && (v.value.left = Math.max(0,
|
|
3131
|
+
E.left <= 0 && K >= 0 && z < 0 && (v.value.left = Math.max(0, F)), window.innerWidth - E.width <= 0 && (v.value.left = window.innerWidth - E.width);
|
|
3132
3132
|
} else
|
|
3133
|
-
E.left + E.width >= window.innerWidth && z < 0 && (v.value.left = Math.max(0,
|
|
3133
|
+
E.left + E.width >= window.innerWidth && z < 0 && (v.value.left = Math.max(0, F));
|
|
3134
3134
|
}
|
|
3135
|
-
},
|
|
3135
|
+
}, y = () => {
|
|
3136
3136
|
const z = window.innerWidth - n.value;
|
|
3137
3137
|
n.value = window.innerWidth, l.value = window.innerHeight, C(z);
|
|
3138
3138
|
};
|
|
3139
3139
|
U(() => {
|
|
3140
|
-
window.addEventListener("resize",
|
|
3140
|
+
window.addEventListener("resize", y);
|
|
3141
3141
|
}), le(() => {
|
|
3142
|
-
window.removeEventListener("resize",
|
|
3142
|
+
window.removeEventListener("resize", y);
|
|
3143
3143
|
});
|
|
3144
|
-
const
|
|
3145
|
-
z ? (v.value.width = Ee, T.value &&
|
|
3144
|
+
const w = (z) => {
|
|
3145
|
+
z ? (v.value.width = Ee, T.value && b.value && u.value && (v.value.left = b.value + u.value - Ee)) : (v.value.width = u.value, T.value && b.value && u.value && (v.value.left = b.value));
|
|
3146
3146
|
}, _ = () => {
|
|
3147
3147
|
a.value ? (v.value.top = i.value.offset.value.top, v.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (v.value.top = M.value, v.value.height = I.value);
|
|
3148
3148
|
};
|
|
3149
3149
|
return N(a, () => {
|
|
3150
3150
|
_();
|
|
3151
3151
|
}), N(t, (z) => {
|
|
3152
|
-
|
|
3152
|
+
w(z);
|
|
3153
3153
|
}), N(L, (z) => {
|
|
3154
|
-
t.value && !
|
|
3154
|
+
t.value && !x.value && w(!z);
|
|
3155
3155
|
}), N(s, (z) => {
|
|
3156
3156
|
if (z && o.value) {
|
|
3157
3157
|
const E = o.value.getBoundingClientRect();
|
|
@@ -3159,7 +3159,7 @@ function ha(o, e, t, i) {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
}), { rect: v, orientation: d, reversed: T };
|
|
3161
3161
|
}
|
|
3162
|
-
const _a = (o) => (Fe("data-v-
|
|
3162
|
+
const _a = (o) => (Fe("data-v-cd1a3c67"), o = o(), Re(), o), ya = /* @__PURE__ */ _a(() => /* @__PURE__ */ c("svg", {
|
|
3163
3163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3164
3164
|
width: "1em",
|
|
3165
3165
|
height: "1em",
|
|
@@ -3180,7 +3180,8 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3180
3180
|
leftOffset: { default: 0 },
|
|
3181
3181
|
rightOffset: { default: 0 },
|
|
3182
3182
|
topOffset: { default: 0 },
|
|
3183
|
-
bottomOffset: { default: 0 }
|
|
3183
|
+
bottomOffset: { default: 0 },
|
|
3184
|
+
disabled: { type: Boolean, default: !1 }
|
|
3184
3185
|
}, {
|
|
3185
3186
|
modelValue: { default: !0 },
|
|
3186
3187
|
modelModifiers: {},
|
|
@@ -3189,13 +3190,17 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3189
3190
|
}),
|
|
3190
3191
|
emits: /* @__PURE__ */ ie(["close", "tab-change", "tab-close"], ["update:modelValue", "update:activeTab"]),
|
|
3191
3192
|
setup(o, { emit: e }) {
|
|
3192
|
-
const t = o, i =
|
|
3193
|
+
const t = o, i = ve(o, "modelValue"), n = ve(o, "activeTab"), l = e, a = D(() => t.tabs && t.tabs.length > 0);
|
|
3193
3194
|
U(() => {
|
|
3194
3195
|
a.value && !n.value && t.tabs && t.tabs.length > 0 && (n.value = t.tabs[0].name);
|
|
3195
|
-
}), N(
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3196
|
+
}), N(
|
|
3197
|
+
() => t.tabs,
|
|
3198
|
+
(y) => {
|
|
3199
|
+
y && y.length > 0 && !n.value && (n.value = y[0].name);
|
|
3200
|
+
},
|
|
3201
|
+
{ immediate: !0 }
|
|
3202
|
+
);
|
|
3203
|
+
const d = S(!1), s = S(null), h = S(null), x = D(() => ({
|
|
3199
3204
|
offset: S({
|
|
3200
3205
|
left: t.leftOffset,
|
|
3201
3206
|
right: t.rightOffset,
|
|
@@ -3206,64 +3211,59 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3206
3211
|
rect: T,
|
|
3207
3212
|
orientation: v,
|
|
3208
3213
|
reversed: m
|
|
3209
|
-
} = ha(h, s, d,
|
|
3214
|
+
} = ha(h, s, d, x), u = D(() => ({
|
|
3210
3215
|
left: `${T.value.left}px`,
|
|
3211
3216
|
top: `${T.value.top}px`,
|
|
3212
3217
|
width: `${T.value.width}px`,
|
|
3213
3218
|
height: `${T.value.height}px`
|
|
3214
|
-
})),
|
|
3215
|
-
borderLeft: "1px solid var(--el-border-color)",
|
|
3216
|
-
|
|
3217
|
-
} : {
|
|
3218
|
-
borderLeft: null,
|
|
3219
|
-
borderRight: "1px solid var(--el-border-color)"
|
|
3220
|
-
}), M = D(() => {
|
|
3219
|
+
})), b = D(
|
|
3220
|
+
() => m.value ? { borderLeft: "1px solid var(--el-border-color)", borderRight: null } : { borderLeft: null, borderRight: "1px solid var(--el-border-color)" }
|
|
3221
|
+
), M = D(() => {
|
|
3221
3222
|
if (a.value && n.value && t.tabs) {
|
|
3222
|
-
const
|
|
3223
|
-
if (
|
|
3224
|
-
return w.title;
|
|
3223
|
+
const y = t.tabs.find((w) => w.name === n.value);
|
|
3224
|
+
if (y != null && y.title) return y.title;
|
|
3225
3225
|
}
|
|
3226
3226
|
return t.title;
|
|
3227
3227
|
}), I = () => {
|
|
3228
3228
|
i.value = !1;
|
|
3229
|
-
const
|
|
3229
|
+
const y = h.value;
|
|
3230
3230
|
l("close", {
|
|
3231
|
-
x:
|
|
3232
|
-
y:
|
|
3231
|
+
x: y ? y.clientLeft : 0,
|
|
3232
|
+
y: y ? y.clientTop : 0
|
|
3233
3233
|
});
|
|
3234
|
-
}, L = (
|
|
3235
|
-
l("tab-change",
|
|
3236
|
-
}, C = (
|
|
3237
|
-
if (l("tab-close",
|
|
3238
|
-
const
|
|
3239
|
-
if (
|
|
3240
|
-
const _ = t.tabs[
|
|
3234
|
+
}, L = (y) => {
|
|
3235
|
+
l("tab-change", y);
|
|
3236
|
+
}, C = (y) => {
|
|
3237
|
+
if (l("tab-close", y), n.value === y && t.tabs) {
|
|
3238
|
+
const w = t.tabs.findIndex((_) => _.name === y);
|
|
3239
|
+
if (w >= 0) {
|
|
3240
|
+
const _ = t.tabs[w + 1] || t.tabs[w - 1];
|
|
3241
3241
|
_ && (n.value = _.name);
|
|
3242
3242
|
}
|
|
3243
3243
|
}
|
|
3244
3244
|
};
|
|
3245
|
-
return (
|
|
3245
|
+
return (y, w) => {
|
|
3246
3246
|
const _ = fe, z = yt, E = _t;
|
|
3247
|
-
return i.value ? (r(),
|
|
3247
|
+
return i.value ? (r(), k("div", {
|
|
3248
3248
|
key: 0,
|
|
3249
3249
|
ref_key: "toolPaletteElement",
|
|
3250
3250
|
ref: h,
|
|
3251
3251
|
style: q([u.value]),
|
|
3252
|
-
class: "ml-tool-palette-dialog"
|
|
3252
|
+
class: ce(["ml-tool-palette-dialog", { "ml-tool-palette-disabled": y.disabled }])
|
|
3253
3253
|
}, [
|
|
3254
3254
|
c("div", {
|
|
3255
|
-
class:
|
|
3255
|
+
class: ce(["ml-tool-palette-dialog-layout", p(v)])
|
|
3256
3256
|
}, [
|
|
3257
3257
|
c("div", {
|
|
3258
3258
|
ref_key: "titleBarElement",
|
|
3259
3259
|
ref: s,
|
|
3260
3260
|
class: "ml-tool-palette-title-bar",
|
|
3261
|
-
style: q(
|
|
3261
|
+
style: q(b.value)
|
|
3262
3262
|
}, [
|
|
3263
3263
|
f(_, {
|
|
3264
3264
|
size: 18,
|
|
3265
3265
|
class: "ml-tool-palette-dialog-icon",
|
|
3266
|
-
onClick: I
|
|
3266
|
+
onClick: w[0] || (w[0] = (F) => !y.disabled && I())
|
|
3267
3267
|
}, {
|
|
3268
3268
|
default: g(() => [
|
|
3269
3269
|
ya
|
|
@@ -3273,46 +3273,47 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3273
3273
|
f(Ul, {
|
|
3274
3274
|
class: "ml-tool-palette-dialog-icon",
|
|
3275
3275
|
modelValue: d.value,
|
|
3276
|
-
"onUpdate:modelValue":
|
|
3277
|
-
reverse: p(m)
|
|
3278
|
-
|
|
3276
|
+
"onUpdate:modelValue": w[1] || (w[1] = (F) => d.value = F),
|
|
3277
|
+
reverse: p(m),
|
|
3278
|
+
disabled: y.disabled
|
|
3279
|
+
}, null, 8, ["modelValue", "reverse", "disabled"]),
|
|
3279
3280
|
c("span", wa, V(M.value), 1)
|
|
3280
3281
|
], 4),
|
|
3281
3282
|
c("div", ba, [
|
|
3282
3283
|
a.value ? (r(), $(E, {
|
|
3283
3284
|
key: 0,
|
|
3284
3285
|
modelValue: n.value,
|
|
3285
|
-
"onUpdate:modelValue":
|
|
3286
|
+
"onUpdate:modelValue": w[2] || (w[2] = (F) => n.value = F),
|
|
3286
3287
|
type: "border-card",
|
|
3287
3288
|
class: "ml-tool-palette-tabs",
|
|
3288
|
-
onTabRemove: C,
|
|
3289
|
-
onTabChange: L
|
|
3289
|
+
onTabRemove: w[3] || (w[3] = (F) => !y.disabled && C),
|
|
3290
|
+
onTabChange: w[4] || (w[4] = (F) => !y.disabled && L)
|
|
3290
3291
|
}, {
|
|
3291
3292
|
default: g(() => [
|
|
3292
|
-
(r(!0),
|
|
3293
|
-
key:
|
|
3294
|
-
name:
|
|
3295
|
-
label:
|
|
3293
|
+
(r(!0), k(O, null, W(t.tabs, (F) => (r(), $(z, {
|
|
3294
|
+
key: F.name,
|
|
3295
|
+
name: F.name,
|
|
3296
|
+
label: F.label
|
|
3296
3297
|
}, {
|
|
3297
3298
|
label: g(() => [
|
|
3298
|
-
c("span", null, V(
|
|
3299
|
+
c("span", null, V(F.label), 1)
|
|
3299
3300
|
]),
|
|
3300
3301
|
default: g(() => [
|
|
3301
|
-
re(
|
|
3302
|
+
re(y.$slots, `tab-${F.name}`, {}, void 0, !0)
|
|
3302
3303
|
]),
|
|
3303
3304
|
_: 2
|
|
3304
3305
|
}, 1032, ["name", "label"]))), 128))
|
|
3305
3306
|
]),
|
|
3306
3307
|
_: 3
|
|
3307
|
-
}, 8, ["modelValue"])) : (r(),
|
|
3308
|
-
re(
|
|
3308
|
+
}, 8, ["modelValue"])) : (r(), k("div", ka, [
|
|
3309
|
+
re(y.$slots, "default", {}, void 0, !0)
|
|
3309
3310
|
]))
|
|
3310
3311
|
])
|
|
3311
3312
|
], 2)
|
|
3312
|
-
],
|
|
3313
|
+
], 6)) : H("", !0);
|
|
3313
3314
|
};
|
|
3314
3315
|
}
|
|
3315
|
-
}), Ca = /* @__PURE__ */ _e(xa, [["__scopeId", "data-v-
|
|
3316
|
+
}), Ca = /* @__PURE__ */ _e(xa, [["__scopeId", "data-v-cd1a3c67"]]), Ma = { class: "ml-entity-properties" }, Sa = {
|
|
3316
3317
|
key: 0,
|
|
3317
3318
|
class: "ml-entity-selector"
|
|
3318
3319
|
}, La = { class: "ml-cell-container" }, Ta = { key: 0 }, Ba = { key: 1 }, Da = {
|
|
@@ -3331,13 +3332,13 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3331
3332
|
setup(o, { emit: e }) {
|
|
3332
3333
|
const { t } = Y(), i = o, n = e, l = S(-1);
|
|
3333
3334
|
function a(m) {
|
|
3334
|
-
var
|
|
3335
|
+
var b;
|
|
3335
3336
|
const u = m.accessor.get();
|
|
3336
3337
|
switch (m.type) {
|
|
3337
3338
|
case "boolean":
|
|
3338
3339
|
return u ? "True" : "False";
|
|
3339
3340
|
case "enum": {
|
|
3340
|
-
const M = (
|
|
3341
|
+
const M = (b = m.options) == null ? void 0 : b.find((I) => I.value === u);
|
|
3341
3342
|
return M && M.label ? ze(M.label) : "";
|
|
3342
3343
|
}
|
|
3343
3344
|
case "color":
|
|
@@ -3356,8 +3357,8 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3356
3357
|
grouping: !0,
|
|
3357
3358
|
type: "success"
|
|
3358
3359
|
});
|
|
3359
|
-
} catch (
|
|
3360
|
-
console.error(
|
|
3360
|
+
} catch (b) {
|
|
3361
|
+
console.error(b), J({
|
|
3361
3362
|
message: t(
|
|
3362
3363
|
"main.toolPalette.entityProperties.propertyPanel.failedToCopyPropVal"
|
|
3363
3364
|
),
|
|
@@ -3374,40 +3375,40 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3374
3375
|
const u = m[l.value];
|
|
3375
3376
|
return h(u);
|
|
3376
3377
|
} else {
|
|
3377
|
-
const u =
|
|
3378
|
+
const u = x(m);
|
|
3378
3379
|
return h(u);
|
|
3379
3380
|
}
|
|
3380
3381
|
});
|
|
3381
3382
|
function h(m) {
|
|
3382
|
-
return m.groups.map((u,
|
|
3383
|
-
id: `group-${
|
|
3383
|
+
return m.groups.map((u, b) => ({
|
|
3384
|
+
id: `group-${b}`,
|
|
3384
3385
|
name: u.groupName,
|
|
3385
3386
|
isGroup: !0,
|
|
3386
3387
|
children: u.properties.map((M, I) => ({
|
|
3387
3388
|
...M,
|
|
3388
|
-
id: `group-${
|
|
3389
|
+
id: `group-${b}-prop-${I}`,
|
|
3389
3390
|
isGroup: !1
|
|
3390
3391
|
}))
|
|
3391
3392
|
}));
|
|
3392
3393
|
}
|
|
3393
|
-
function
|
|
3394
|
+
function x(m) {
|
|
3394
3395
|
if (!m.length) return { type: "", groups: [] };
|
|
3395
|
-
const u = m[0],
|
|
3396
|
+
const u = m[0], b = [];
|
|
3396
3397
|
for (const M of u.groups) {
|
|
3397
3398
|
const I = [];
|
|
3398
3399
|
for (const L of M.properties)
|
|
3399
|
-
m.every((
|
|
3400
|
-
const
|
|
3400
|
+
m.every((y) => {
|
|
3401
|
+
const w = y.groups.find((z) => z.groupName === M.groupName), _ = w == null ? void 0 : w.properties.find((z) => z.name === L.name);
|
|
3401
3402
|
return _ && _.accessor.get() === L.accessor.get();
|
|
3402
3403
|
}) && I.push(L);
|
|
3403
|
-
I.length &&
|
|
3404
|
+
I.length && b.push({
|
|
3404
3405
|
groupName: M.groupName,
|
|
3405
3406
|
properties: I
|
|
3406
3407
|
});
|
|
3407
3408
|
}
|
|
3408
3409
|
return {
|
|
3409
3410
|
type: u.type,
|
|
3410
|
-
groups:
|
|
3411
|
+
groups: b
|
|
3411
3412
|
};
|
|
3412
3413
|
}
|
|
3413
3414
|
const T = ({
|
|
@@ -3427,9 +3428,9 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3427
3428
|
});
|
|
3428
3429
|
}
|
|
3429
3430
|
return (m, u) => {
|
|
3430
|
-
const
|
|
3431
|
-
return r(),
|
|
3432
|
-
m.entityPropsList && m.entityPropsList.length > 1 ? (r(),
|
|
3431
|
+
const b = B("el-option"), M = B("el-select"), I = B("el-table-column"), L = B("el-switch"), C = B("el-input-number"), y = B("el-input"), w = B("el-table");
|
|
3432
|
+
return r(), k("div", Ma, [
|
|
3433
|
+
m.entityPropsList && m.entityPropsList.length > 1 ? (r(), k("div", Sa, [
|
|
3433
3434
|
f(M, {
|
|
3434
3435
|
modelValue: l.value,
|
|
3435
3436
|
"onUpdate:modelValue": u[0] || (u[0] = (_) => l.value = _),
|
|
@@ -3437,14 +3438,14 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3437
3438
|
style: { width: "100%", "margin-bottom": "0.5rem" }
|
|
3438
3439
|
}, {
|
|
3439
3440
|
default: g(() => [
|
|
3440
|
-
f(
|
|
3441
|
+
f(b, {
|
|
3441
3442
|
label: p(t)(
|
|
3442
3443
|
"main.toolPalette.entityProperties.propertyPanel.multipleEntitySelected",
|
|
3443
3444
|
{ count: m.entityPropsList.length }
|
|
3444
3445
|
),
|
|
3445
3446
|
value: -1
|
|
3446
3447
|
}, null, 8, ["label"]),
|
|
3447
|
-
(r(!0),
|
|
3448
|
+
(r(!0), k(O, null, W(m.entityPropsList, (_, z) => (r(), $(b, {
|
|
3448
3449
|
key: z,
|
|
3449
3450
|
label: _.type,
|
|
3450
3451
|
value: z
|
|
@@ -3453,7 +3454,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3453
3454
|
_: 1
|
|
3454
3455
|
}, 8, ["modelValue"])
|
|
3455
3456
|
])) : H("", !0),
|
|
3456
|
-
s.value.length ? (r(), $(
|
|
3457
|
+
s.value.length ? (r(), $(w, {
|
|
3457
3458
|
key: 1,
|
|
3458
3459
|
data: s.value,
|
|
3459
3460
|
"row-key": "id",
|
|
@@ -3472,9 +3473,9 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3472
3473
|
default: g(({ row: _ }) => [
|
|
3473
3474
|
c("div", La, [
|
|
3474
3475
|
c("div", {
|
|
3475
|
-
class:
|
|
3476
|
+
class: ce(["ml-cell-label", { "ml-group-row": _.isGroup }])
|
|
3476
3477
|
}, [
|
|
3477
|
-
_.isGroup ? (r(),
|
|
3478
|
+
_.isGroup ? (r(), k("strong", Ta, V(p(De)(_.name)), 1)) : (r(), k("span", Ba, V(p(De)(_.name)), 1))
|
|
3478
3479
|
], 2)
|
|
3479
3480
|
])
|
|
3480
3481
|
]),
|
|
@@ -3482,19 +3483,19 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3482
3483
|
}),
|
|
3483
3484
|
f(I, null, {
|
|
3484
3485
|
default: g(({ row: _ }) => [
|
|
3485
|
-
_.isGroup ? H("", !0) : (r(),
|
|
3486
|
-
!m.editable || !_.editable ? (r(),
|
|
3486
|
+
_.isGroup ? H("", !0) : (r(), k("div", Da, [
|
|
3487
|
+
!m.editable || !_.editable ? (r(), k(O, { key: 0 }, [
|
|
3487
3488
|
_.type === "color" ? (r(), $(p(Ve), {
|
|
3488
3489
|
key: 0,
|
|
3489
3490
|
"model-value": _.accessor.get(),
|
|
3490
3491
|
disabled: ""
|
|
3491
|
-
}, null, 8, ["model-value"])) : (r(),
|
|
3492
|
+
}, null, 8, ["model-value"])) : (r(), k("span", {
|
|
3492
3493
|
key: 1,
|
|
3493
3494
|
title: a(_),
|
|
3494
3495
|
class: "ml-readonly-value",
|
|
3495
3496
|
onDblclick: (z) => d(_)
|
|
3496
3497
|
}, V(a(_)), 41, za))
|
|
3497
|
-
], 64)) : (r(),
|
|
3498
|
+
], 64)) : (r(), k("div", $a, [
|
|
3498
3499
|
_.type === "enum" ? (r(), $(M, {
|
|
3499
3500
|
key: 0,
|
|
3500
3501
|
"model-value": _.accessor.get(),
|
|
@@ -3502,7 +3503,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3502
3503
|
style: { width: "100%" }
|
|
3503
3504
|
}, {
|
|
3504
3505
|
default: g(() => [
|
|
3505
|
-
(r(!0),
|
|
3506
|
+
(r(!0), k(O, null, W(_.options || [], (z) => (r(), $(b, {
|
|
3506
3507
|
key: z.value,
|
|
3507
3508
|
label: p(ze)(z.label),
|
|
3508
3509
|
value: z.value
|
|
@@ -3529,7 +3530,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3529
3530
|
step: 0.1,
|
|
3530
3531
|
precision: 3,
|
|
3531
3532
|
onChange: (z) => v(_, z)
|
|
3532
|
-
}, null, 8, ["model-value", "onChange"])) : (r(), $(
|
|
3533
|
+
}, null, 8, ["model-value", "onChange"])) : (r(), $(y, {
|
|
3533
3534
|
key: 5,
|
|
3534
3535
|
"model-value": _.accessor.get(),
|
|
3535
3536
|
onInput: (z) => v(_, z)
|
|
@@ -3541,7 +3542,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3541
3542
|
})
|
|
3542
3543
|
]),
|
|
3543
3544
|
_: 1
|
|
3544
|
-
}, 8, ["data"])) : (r(),
|
|
3545
|
+
}, 8, ["data"])) : (r(), k("div", Va, V(p(t)("main.toolPalette.entityProperties.propertyPanel.noEntitySelected")), 1))
|
|
3545
3546
|
]);
|
|
3546
3547
|
};
|
|
3547
3548
|
}
|
|
@@ -3552,8 +3553,8 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3552
3553
|
},
|
|
3553
3554
|
setup(o) {
|
|
3554
3555
|
const { t: e } = Y(), t = o, i = ol(t.editor), n = (u) => D(() => {
|
|
3555
|
-
const
|
|
3556
|
-
return (
|
|
3556
|
+
const b = ee.fromString(u.color);
|
|
3557
|
+
return (b == null ? void 0 : b.cssColor) || "#FFFFFF";
|
|
3557
3558
|
}), l = (u) => {
|
|
3558
3559
|
t.editor.curView.zoomToFitLayer(u.name) && J({
|
|
3559
3560
|
message: e("main.toolPalette.layerManager.layerList.zoomToLayer", {
|
|
@@ -3563,27 +3564,27 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3563
3564
|
type: "success"
|
|
3564
3565
|
});
|
|
3565
3566
|
}, a = (u) => {
|
|
3566
|
-
const
|
|
3567
|
+
const b = t.editor.curDocument.database.tables.layerTable.getAt(
|
|
3567
3568
|
u.name
|
|
3568
3569
|
);
|
|
3569
|
-
|
|
3570
|
-
}, d = S(!1), s = S(null), h = S(void 0),
|
|
3570
|
+
b && (b.isOff = !u.isOn);
|
|
3571
|
+
}, d = S(!1), s = S(null), h = S(void 0), x = (u) => {
|
|
3571
3572
|
s.value = u, h.value = u.color, d.value = !0;
|
|
3572
3573
|
}, T = (u) => {
|
|
3573
3574
|
if (!s.value) return;
|
|
3574
|
-
const
|
|
3575
|
-
|
|
3575
|
+
const b = s.value;
|
|
3576
|
+
b.color = u.toString();
|
|
3576
3577
|
const M = t.editor.curDocument.database.tables.layerTable.getAt(
|
|
3577
|
-
|
|
3578
|
+
b.name
|
|
3578
3579
|
);
|
|
3579
3580
|
M && (M.color = u);
|
|
3580
3581
|
}, v = (u) => {
|
|
3581
3582
|
T(u);
|
|
3582
3583
|
}, m = () => {
|
|
3583
3584
|
};
|
|
3584
|
-
return (u,
|
|
3585
|
+
return (u, b) => {
|
|
3585
3586
|
const M = B("el-table-column"), I = B("el-checkbox"), L = B("el-tag");
|
|
3586
|
-
return r(),
|
|
3587
|
+
return r(), k(O, null, [
|
|
3587
3588
|
f(p(ft), {
|
|
3588
3589
|
data: p(i),
|
|
3589
3590
|
class: "ml-layer-list",
|
|
@@ -3606,8 +3607,8 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3606
3607
|
c("div", Ea, [
|
|
3607
3608
|
f(I, {
|
|
3608
3609
|
modelValue: C.row.isOn,
|
|
3609
|
-
"onUpdate:modelValue": (
|
|
3610
|
-
onChange: (
|
|
3610
|
+
"onUpdate:modelValue": (y) => C.row.isOn = y,
|
|
3611
|
+
onChange: (y) => a(C.row)
|
|
3611
3612
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
3612
3613
|
])
|
|
3613
3614
|
]),
|
|
@@ -3623,7 +3624,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3623
3624
|
f(L, {
|
|
3624
3625
|
color: n(C.row).value,
|
|
3625
3626
|
class: "ml-layer-list-color",
|
|
3626
|
-
onClick: lt((
|
|
3627
|
+
onClick: lt((y) => x(C.row), ["stop"])
|
|
3627
3628
|
}, null, 8, ["color", "onClick"])
|
|
3628
3629
|
])
|
|
3629
3630
|
]),
|
|
@@ -3634,7 +3635,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3634
3635
|
}, 8, ["data"]),
|
|
3635
3636
|
f(p(Ue), {
|
|
3636
3637
|
modelValue: d.value,
|
|
3637
|
-
"onUpdate:modelValue":
|
|
3638
|
+
"onUpdate:modelValue": b[0] || (b[0] = (C) => d.value = C),
|
|
3638
3639
|
title: p(e)("dialog.colorPickerDlg.title"),
|
|
3639
3640
|
color: h.value,
|
|
3640
3641
|
onOk: v,
|
|
@@ -3656,8 +3657,8 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3656
3657
|
}))), { selectionSet: l } = al(), a = D(() => {
|
|
3657
3658
|
const d = [], s = A.instance.curDocument.database;
|
|
3658
3659
|
return l.value.forEach((h) => {
|
|
3659
|
-
const
|
|
3660
|
-
|
|
3660
|
+
const x = s.tables.blockTable.modelSpace.getIdAt(h);
|
|
3661
|
+
x && d.push(x.properties);
|
|
3661
3662
|
}), d;
|
|
3662
3663
|
});
|
|
3663
3664
|
return (d, s) => {
|
|
@@ -3667,9 +3668,9 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3667
3668
|
f(p(Ca), {
|
|
3668
3669
|
class: "ml-layer-manager",
|
|
3669
3670
|
modelValue: p(ne).dialogs.layerManager,
|
|
3670
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
3671
|
+
"onUpdate:modelValue": s[0] || (s[0] = (x) => p(ne).dialogs.layerManager = x),
|
|
3671
3672
|
"active-tab": i.value,
|
|
3672
|
-
"onUpdate:activeTab": s[1] || (s[1] = (
|
|
3673
|
+
"onUpdate:activeTab": s[1] || (s[1] = (x) => i.value = x),
|
|
3673
3674
|
tabs: n.value,
|
|
3674
3675
|
"bottom-offset": 30
|
|
3675
3676
|
}, {
|
|
@@ -3690,7 +3691,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3690
3691
|
});
|
|
3691
3692
|
};
|
|
3692
3693
|
}
|
|
3693
|
-
}), Oa = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-18adcdd0"]]),
|
|
3694
|
+
}), Oa = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-18adcdd0"]]), pe = 8, Ha = /* @__PURE__ */ P({
|
|
3694
3695
|
__name: "MlEntityInfo",
|
|
3695
3696
|
setup(o) {
|
|
3696
3697
|
Ne((v) => ({
|
|
@@ -3698,10 +3699,10 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3698
3699
|
"0741074e": h.value
|
|
3699
3700
|
}));
|
|
3700
3701
|
const { t: e } = Y(), t = S(null), { hovered: i, entity: n, mouse: l } = tl(), a = S(180), d = S(120), s = D(
|
|
3701
|
-
() => `${Math.min(Math.max(l.value.x,
|
|
3702
|
+
() => `${Math.min(Math.max(l.value.x, pe), window.innerWidth - a.value - pe)}px`
|
|
3702
3703
|
), h = D(
|
|
3703
|
-
() => `${Math.min(Math.max(l.value.y,
|
|
3704
|
-
),
|
|
3704
|
+
() => `${Math.min(Math.max(l.value.y, pe), window.innerHeight - d.value - pe)}px`
|
|
3705
|
+
), x = D(() => {
|
|
3705
3706
|
const v = n.value;
|
|
3706
3707
|
return v ? {
|
|
3707
3708
|
type: Yn(v),
|
|
@@ -3710,7 +3711,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3710
3711
|
lineType: v.lineType
|
|
3711
3712
|
} : { type: "", color: "", layer: "", lineType: "" };
|
|
3712
3713
|
}), T = D(
|
|
3713
|
-
() => i.value &&
|
|
3714
|
+
() => i.value && x.value.type !== "" && Z.instance.isShowEntityInfo && !A.instance.editor.isActive
|
|
3714
3715
|
);
|
|
3715
3716
|
return N(T, async (v) => {
|
|
3716
3717
|
var m;
|
|
@@ -3720,7 +3721,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3720
3721
|
u && (a.value = u.offsetWidth, d.value = u.offsetHeight);
|
|
3721
3722
|
}
|
|
3722
3723
|
}), (v, m) => {
|
|
3723
|
-
const u = B("el-text"),
|
|
3724
|
+
const u = B("el-text"), b = B("el-col"), M = B("el-row"), I = B("el-card");
|
|
3724
3725
|
return T.value ? (r(), $(I, {
|
|
3725
3726
|
key: 0,
|
|
3726
3727
|
ref_key: "cardRef",
|
|
@@ -3730,14 +3731,14 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3730
3731
|
default: g(() => [
|
|
3731
3732
|
f(M, { class: "ml-entity-info-text" }, {
|
|
3732
3733
|
default: g(() => [
|
|
3733
|
-
f(
|
|
3734
|
+
f(b, { span: 24 }, {
|
|
3734
3735
|
default: g(() => [
|
|
3735
3736
|
f(u, {
|
|
3736
3737
|
size: "small",
|
|
3737
3738
|
class: "ml-entity-info-title"
|
|
3738
3739
|
}, {
|
|
3739
3740
|
default: g(() => [
|
|
3740
|
-
|
|
3741
|
+
R(V(x.value.type), 1)
|
|
3741
3742
|
]),
|
|
3742
3743
|
_: 1
|
|
3743
3744
|
})
|
|
@@ -3749,22 +3750,22 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3749
3750
|
}),
|
|
3750
3751
|
f(M, { class: "ml-entity-info-text" }, {
|
|
3751
3752
|
default: g(() => [
|
|
3752
|
-
f(
|
|
3753
|
+
f(b, { span: 10 }, {
|
|
3753
3754
|
default: g(() => [
|
|
3754
3755
|
f(u, { size: "small" }, {
|
|
3755
3756
|
default: g(() => [
|
|
3756
|
-
|
|
3757
|
+
R(V(p(e)("main.entityInfo.color")), 1)
|
|
3757
3758
|
]),
|
|
3758
3759
|
_: 1
|
|
3759
3760
|
})
|
|
3760
3761
|
]),
|
|
3761
3762
|
_: 1
|
|
3762
3763
|
}),
|
|
3763
|
-
f(
|
|
3764
|
+
f(b, { span: 14 }, {
|
|
3764
3765
|
default: g(() => [
|
|
3765
3766
|
f(u, { size: "small" }, {
|
|
3766
3767
|
default: g(() => [
|
|
3767
|
-
|
|
3768
|
+
R(V(x.value.color), 1)
|
|
3768
3769
|
]),
|
|
3769
3770
|
_: 1
|
|
3770
3771
|
})
|
|
@@ -3776,22 +3777,22 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3776
3777
|
}),
|
|
3777
3778
|
f(M, { class: "ml-entity-info-text" }, {
|
|
3778
3779
|
default: g(() => [
|
|
3779
|
-
f(
|
|
3780
|
+
f(b, { span: 10 }, {
|
|
3780
3781
|
default: g(() => [
|
|
3781
3782
|
f(u, { size: "small" }, {
|
|
3782
3783
|
default: g(() => [
|
|
3783
|
-
|
|
3784
|
+
R(V(p(e)("main.entityInfo.layer")), 1)
|
|
3784
3785
|
]),
|
|
3785
3786
|
_: 1
|
|
3786
3787
|
})
|
|
3787
3788
|
]),
|
|
3788
3789
|
_: 1
|
|
3789
3790
|
}),
|
|
3790
|
-
f(
|
|
3791
|
+
f(b, { span: 14 }, {
|
|
3791
3792
|
default: g(() => [
|
|
3792
3793
|
f(u, { size: "small" }, {
|
|
3793
3794
|
default: g(() => [
|
|
3794
|
-
|
|
3795
|
+
R(V(x.value.layer), 1)
|
|
3795
3796
|
]),
|
|
3796
3797
|
_: 1
|
|
3797
3798
|
})
|
|
@@ -3803,22 +3804,22 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3803
3804
|
}),
|
|
3804
3805
|
f(M, { class: "ml-entity-info-text" }, {
|
|
3805
3806
|
default: g(() => [
|
|
3806
|
-
f(
|
|
3807
|
+
f(b, { span: 10 }, {
|
|
3807
3808
|
default: g(() => [
|
|
3808
3809
|
f(u, { size: "small" }, {
|
|
3809
3810
|
default: g(() => [
|
|
3810
|
-
|
|
3811
|
+
R(V(p(e)("main.entityInfo.lineType")), 1)
|
|
3811
3812
|
]),
|
|
3812
3813
|
_: 1
|
|
3813
3814
|
})
|
|
3814
3815
|
]),
|
|
3815
3816
|
_: 1
|
|
3816
3817
|
}),
|
|
3817
|
-
f(
|
|
3818
|
+
f(b, { span: 14 }, {
|
|
3818
3819
|
default: g(() => [
|
|
3819
3820
|
f(u, { size: "small" }, {
|
|
3820
3821
|
default: g(() => [
|
|
3821
|
-
|
|
3822
|
+
R(V(x.value.lineType), 1)
|
|
3822
3823
|
]),
|
|
3823
3824
|
_: 1
|
|
3824
3825
|
})
|
|
@@ -3839,7 +3840,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3839
3840
|
currentLocale: { default: void 0 }
|
|
3840
3841
|
},
|
|
3841
3842
|
setup(o) {
|
|
3842
|
-
const e =
|
|
3843
|
+
const e = me(), t = o, { effectiveLocale: i, setLocale: n } = Ze(t.currentLocale), l = j([
|
|
3843
3844
|
{
|
|
3844
3845
|
name: "en",
|
|
3845
3846
|
text: "English"
|
|
@@ -3862,7 +3863,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3862
3863
|
}), Xa = /* @__PURE__ */ X(Ga, [["__scopeId", "data-v-22a7d15f"]]), Wa = /* @__PURE__ */ P({
|
|
3863
3864
|
__name: "MlMainMenu",
|
|
3864
3865
|
setup(o) {
|
|
3865
|
-
const { t: e } = Y(), t =
|
|
3866
|
+
const { t: e } = Y(), t = me(), i = (n) => {
|
|
3866
3867
|
n === "Convert" ? new Ke().tirgger(A.instance.context) : n === "QNew" ? new Qe().tirgger(A.instance.context) : n === "Open" && new Je().tirgger(A.instance.context);
|
|
3867
3868
|
};
|
|
3868
3869
|
return (n, l) => {
|
|
@@ -3878,13 +3879,13 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3878
3879
|
default: g(() => [
|
|
3879
3880
|
f(d, { command: "QNew" }, {
|
|
3880
3881
|
default: g(() => [
|
|
3881
|
-
|
|
3882
|
+
R(V(p(e)("main.mainMenu.new")), 1)
|
|
3882
3883
|
]),
|
|
3883
3884
|
_: 1
|
|
3884
3885
|
}),
|
|
3885
3886
|
f(d, { command: "Open" }, {
|
|
3886
3887
|
default: g(() => [
|
|
3887
|
-
|
|
3888
|
+
R(V(p(e)("main.mainMenu.open")), 1)
|
|
3888
3889
|
]),
|
|
3889
3890
|
_: 1
|
|
3890
3891
|
})
|
|
@@ -3913,7 +3914,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3913
3914
|
}, qa = /* @__PURE__ */ P({
|
|
3914
3915
|
__name: "MlToolBars",
|
|
3915
3916
|
setup(o) {
|
|
3916
|
-
const { t: e } = Y(), t =
|
|
3917
|
+
const { t: e } = Y(), t = me(), i = D(() => [
|
|
3917
3918
|
{
|
|
3918
3919
|
icon: co,
|
|
3919
3920
|
text: e("main.verticalToolbar.select.text"),
|
|
@@ -3947,7 +3948,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3947
3948
|
]), n = (l) => {
|
|
3948
3949
|
A.instance.sendStringToExecute(l);
|
|
3949
3950
|
};
|
|
3950
|
-
return (l, a) => p(t).isShowToolbar ? (r(),
|
|
3951
|
+
return (l, a) => p(t).isShowToolbar ? (r(), k("div", Za, [
|
|
3951
3952
|
f(p(ra), {
|
|
3952
3953
|
items: i.value,
|
|
3953
3954
|
size: "small",
|
|
@@ -3982,18 +3983,18 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
3982
3983
|
}), n = (a) => {
|
|
3983
3984
|
a.action();
|
|
3984
3985
|
}, l = (a) => {
|
|
3985
|
-
const s = (/* @__PURE__ */ new Date()).getTime() - a.getTime(), h = Math.floor(s / 6e4),
|
|
3986
|
-
return T > 0 ? t("main.notification.time.daysAgo", { count: T }) :
|
|
3986
|
+
const s = (/* @__PURE__ */ new Date()).getTime() - a.getTime(), h = Math.floor(s / 6e4), x = Math.floor(s / 36e5), T = Math.floor(s / 864e5);
|
|
3987
|
+
return T > 0 ? t("main.notification.time.daysAgo", { count: T }) : x > 0 ? t("main.notification.time.hoursAgo", { count: x }) : h > 0 ? t("main.notification.time.minutesAgo", { count: h }) : t("main.notification.time.justNow");
|
|
3987
3988
|
};
|
|
3988
3989
|
return (a, d) => {
|
|
3989
3990
|
const s = B("el-icon"), h = B("el-button");
|
|
3990
|
-
return r(),
|
|
3991
|
-
class:
|
|
3991
|
+
return r(), k("div", {
|
|
3992
|
+
class: ce(["ml-notification-item", `ml-notification-item--${a.notification.type}`])
|
|
3992
3993
|
}, [
|
|
3993
3994
|
c("div", ja, [
|
|
3994
3995
|
f(s, null, {
|
|
3995
3996
|
default: g(() => [
|
|
3996
|
-
(r(), $(
|
|
3997
|
+
(r(), $(de(i.value)))
|
|
3997
3998
|
]),
|
|
3998
3999
|
_: 1
|
|
3999
4000
|
})
|
|
@@ -4002,21 +4003,21 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4002
4003
|
c("div", Qa, [
|
|
4003
4004
|
c("h4", Ja, V(a.notification.title), 1),
|
|
4004
4005
|
c("div", ei, [
|
|
4005
|
-
a.notification.actions && a.notification.actions.length > 0 ? (r(!0),
|
|
4006
|
-
key:
|
|
4007
|
-
type:
|
|
4006
|
+
a.notification.actions && a.notification.actions.length > 0 ? (r(!0), k(O, { key: 0 }, W(a.notification.actions, (x) => (r(), $(h, {
|
|
4007
|
+
key: x.label,
|
|
4008
|
+
type: x.primary ? "primary" : "default",
|
|
4008
4009
|
size: "small",
|
|
4009
|
-
onClick: (T) => n(
|
|
4010
|
+
onClick: (T) => n(x)
|
|
4010
4011
|
}, {
|
|
4011
4012
|
default: g(() => [
|
|
4012
|
-
|
|
4013
|
+
R(V(x.label), 1)
|
|
4013
4014
|
]),
|
|
4014
4015
|
_: 2
|
|
4015
4016
|
}, 1032, ["type", "onClick"]))), 128)) : H("", !0),
|
|
4016
4017
|
f(h, {
|
|
4017
4018
|
text: "",
|
|
4018
4019
|
size: "small",
|
|
4019
|
-
onClick: d[0] || (d[0] = (
|
|
4020
|
+
onClick: d[0] || (d[0] = (x) => a.$emit("close"))
|
|
4020
4021
|
}, {
|
|
4021
4022
|
default: g(() => [
|
|
4022
4023
|
f(s, null, {
|
|
@@ -4030,7 +4031,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4030
4031
|
})
|
|
4031
4032
|
])
|
|
4032
4033
|
]),
|
|
4033
|
-
a.notification.message ? (r(),
|
|
4034
|
+
a.notification.message ? (r(), k("p", ti, V(a.notification.message), 1)) : H("", !0),
|
|
4034
4035
|
c("div", oi, [
|
|
4035
4036
|
c("span", ni, V(l(a.notification.timestamp)), 1)
|
|
4036
4037
|
])
|
|
@@ -4057,11 +4058,11 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4057
4058
|
s.action();
|
|
4058
4059
|
};
|
|
4059
4060
|
return (s, h) => {
|
|
4060
|
-
const
|
|
4061
|
-
return r(),
|
|
4061
|
+
const x = B("el-icon"), T = B("el-button"), v = B("el-tooltip");
|
|
4062
|
+
return r(), k("div", ii, [
|
|
4062
4063
|
c("div", si, [
|
|
4063
4064
|
c("div", ri, [
|
|
4064
|
-
f(
|
|
4065
|
+
f(x, { class: "ml-notification-center-icon" }, {
|
|
4065
4066
|
default: g(() => [
|
|
4066
4067
|
f(p(be))
|
|
4067
4068
|
]),
|
|
@@ -4084,7 +4085,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4084
4085
|
onClick: p(a)
|
|
4085
4086
|
}, {
|
|
4086
4087
|
default: g(() => [
|
|
4087
|
-
f(
|
|
4088
|
+
f(x, null, {
|
|
4088
4089
|
default: g(() => [
|
|
4089
4090
|
f(p($t))
|
|
4090
4091
|
]),
|
|
@@ -4103,7 +4104,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4103
4104
|
onClick: h[0] || (h[0] = (m) => s.$emit("close"))
|
|
4104
4105
|
}, {
|
|
4105
4106
|
default: g(() => [
|
|
4106
|
-
f(
|
|
4107
|
+
f(x, null, {
|
|
4107
4108
|
default: g(() => [
|
|
4108
4109
|
f(p(xe))
|
|
4109
4110
|
]),
|
|
@@ -4115,16 +4116,16 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4115
4116
|
])
|
|
4116
4117
|
]),
|
|
4117
4118
|
c("div", ui, [
|
|
4118
|
-
p(n).length === 0 ? (r(),
|
|
4119
|
-
f(
|
|
4119
|
+
p(n).length === 0 ? (r(), k("div", di, [
|
|
4120
|
+
f(x, { class: "ml-notification-center-empty-icon" }, {
|
|
4120
4121
|
default: g(() => [
|
|
4121
4122
|
f(p(be))
|
|
4122
4123
|
]),
|
|
4123
4124
|
_: 1
|
|
4124
4125
|
}),
|
|
4125
4126
|
c("p", null, V(p(e)("main.notification.center.noNotifications")), 1)
|
|
4126
|
-
])) : (r(),
|
|
4127
|
-
(r(!0),
|
|
4127
|
+
])) : (r(), k("div", mi, [
|
|
4128
|
+
(r(!0), k(O, null, W(p(n), (m) => (r(), $(ai, {
|
|
4128
4129
|
key: m.id,
|
|
4129
4130
|
notification: m,
|
|
4130
4131
|
onClose: (u) => p(l)(m.id),
|
|
@@ -4159,8 +4160,8 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4159
4160
|
n("click");
|
|
4160
4161
|
};
|
|
4161
4162
|
return (a, d) => {
|
|
4162
|
-
const s = B("el-badge"), h = B("el-button"),
|
|
4163
|
-
return r(), $(
|
|
4163
|
+
const s = B("el-badge"), h = B("el-button"), x = B("el-tooltip");
|
|
4164
|
+
return r(), $(x, {
|
|
4164
4165
|
content: p(t)("main.statusBar.notification.tooltip"),
|
|
4165
4166
|
"hide-after": 0
|
|
4166
4167
|
}, {
|
|
@@ -4230,7 +4231,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4230
4231
|
Q.on("open-file-progress", l);
|
|
4231
4232
|
}), le(() => {
|
|
4232
4233
|
Q.off("open-file-progress", l);
|
|
4233
|
-
}), (d, s) => i.value ? (r(),
|
|
4234
|
+
}), (d, s) => i.value ? (r(), k("div", wi, [
|
|
4234
4235
|
f(p(gt), {
|
|
4235
4236
|
"text-inside": !0,
|
|
4236
4237
|
"stroke-width": 20,
|
|
@@ -4242,12 +4243,12 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4242
4243
|
}), ki = /* @__PURE__ */ X(bi, [["__scopeId", "data-v-7513492f"]]), xi = /* @__PURE__ */ P({
|
|
4243
4244
|
__name: "MlSettingButton",
|
|
4244
4245
|
setup(o) {
|
|
4245
|
-
const { t: e } = Y(), t =
|
|
4246
|
+
const { t: e } = Y(), t = me(), i = (n) => {
|
|
4246
4247
|
n == "isShowCoordinate" ? (t.isShowCoordinate = !t.isShowCoordinate, Z.instance.isShowCoordinate = t.isShowCoordinate) : n == "isShowCommandLine" ? (t.isShowCommandLine = !t.isShowCommandLine, Z.instance.isShowCommandLine = t.isShowCommandLine) : n == "isShowEntityInfo" ? (t.isShowEntityInfo = !t.isShowEntityInfo, Z.instance.isShowEntityInfo = t.isShowEntityInfo) : n == "isShowMainMenu" ? (t.isShowMainMenu = !t.isShowMainMenu, Z.instance.isShowMainMenu = t.isShowMainMenu) : n == "isShowLanguageSelector" ? (t.isShowLanguageSelector = !t.isShowLanguageSelector, Z.instance.isShowLanguageSelector = t.isShowLanguageSelector) : n == "isShowToolbar" ? (t.isShowToolbar = !t.isShowToolbar, Z.instance.isShowToolbar = t.isShowToolbar) : n == "isShowStats" && (t.isShowStats = !t.isShowStats, Z.instance.isShowStats = t.isShowStats);
|
|
4247
4248
|
};
|
|
4248
4249
|
return (n, l) => {
|
|
4249
|
-
const a = B("el-button"), d = B("el-dropdown-item"), s = B("el-dropdown-menu"), h = B("el-dropdown"),
|
|
4250
|
-
return r(), $(
|
|
4250
|
+
const a = B("el-button"), d = B("el-dropdown-item"), s = B("el-dropdown-menu"), h = B("el-dropdown"), x = B("el-tooltip");
|
|
4251
|
+
return r(), $(x, {
|
|
4251
4252
|
content: p(e)("main.statusBar.setting.tooltip"),
|
|
4252
4253
|
"hide-after": 0
|
|
4253
4254
|
}, {
|
|
@@ -4264,7 +4265,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4264
4265
|
command: "isShowStats"
|
|
4265
4266
|
}, {
|
|
4266
4267
|
default: g(() => [
|
|
4267
|
-
|
|
4268
|
+
R(V(p(e)("main.statusBar.setting.stats")), 1)
|
|
4268
4269
|
]),
|
|
4269
4270
|
_: 1
|
|
4270
4271
|
}, 8, ["icon"]),
|
|
@@ -4273,7 +4274,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4273
4274
|
command: "isShowCommandLine"
|
|
4274
4275
|
}, {
|
|
4275
4276
|
default: g(() => [
|
|
4276
|
-
|
|
4277
|
+
R(V(p(e)("main.statusBar.setting.commandLine")), 1)
|
|
4277
4278
|
]),
|
|
4278
4279
|
_: 1
|
|
4279
4280
|
}, 8, ["icon"]),
|
|
@@ -4282,7 +4283,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4282
4283
|
command: "isShowEntityInfo"
|
|
4283
4284
|
}, {
|
|
4284
4285
|
default: g(() => [
|
|
4285
|
-
|
|
4286
|
+
R(V(p(e)("main.statusBar.setting.entityInfo")), 1)
|
|
4286
4287
|
]),
|
|
4287
4288
|
_: 1
|
|
4288
4289
|
}, 8, ["icon"]),
|
|
@@ -4291,7 +4292,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4291
4292
|
command: "isShowMainMenu"
|
|
4292
4293
|
}, {
|
|
4293
4294
|
default: g(() => [
|
|
4294
|
-
|
|
4295
|
+
R(V(p(e)("main.statusBar.setting.mainMenu")), 1)
|
|
4295
4296
|
]),
|
|
4296
4297
|
_: 1
|
|
4297
4298
|
}, 8, ["icon"]),
|
|
@@ -4300,7 +4301,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4300
4301
|
command: "isShowLanguageSelector"
|
|
4301
4302
|
}, {
|
|
4302
4303
|
default: g(() => [
|
|
4303
|
-
|
|
4304
|
+
R(V(p(e)("main.statusBar.setting.languageSelector")), 1)
|
|
4304
4305
|
]),
|
|
4305
4306
|
_: 1
|
|
4306
4307
|
}, 8, ["icon"]),
|
|
@@ -4309,7 +4310,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4309
4310
|
command: "isShowCoordinate"
|
|
4310
4311
|
}, {
|
|
4311
4312
|
default: g(() => [
|
|
4312
|
-
|
|
4313
|
+
R(V(p(e)("main.statusBar.setting.coordinate")), 1)
|
|
4313
4314
|
]),
|
|
4314
4315
|
_: 1
|
|
4315
4316
|
}, 8, ["icon"]),
|
|
@@ -4318,7 +4319,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4318
4319
|
command: "isShowToolbar"
|
|
4319
4320
|
}, {
|
|
4320
4321
|
default: g(() => [
|
|
4321
|
-
|
|
4322
|
+
R(V(p(e)("main.statusBar.setting.toolbar")), 1)
|
|
4322
4323
|
]),
|
|
4323
4324
|
_: 1
|
|
4324
4325
|
}, 8, ["icon"])
|
|
@@ -4383,27 +4384,27 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4383
4384
|
},
|
|
4384
4385
|
emits: ["toggleNotificationCenter"],
|
|
4385
4386
|
setup(o, { emit: e }) {
|
|
4386
|
-
const t = o, { text: i } = qn(A.instance.curView), n = nl(A.instance), l =
|
|
4387
|
+
const t = o, { text: i } = qn(A.instance.curView), n = nl(A.instance), l = me(), { isMobile: a } = sl(), d = (x) => {
|
|
4387
4388
|
Ge().layoutManager.setCurrentLayoutBtrId(
|
|
4388
|
-
|
|
4389
|
+
x.blockTableRecordId
|
|
4389
4390
|
);
|
|
4390
4391
|
}, s = e, h = () => {
|
|
4391
4392
|
s("toggleNotificationCenter");
|
|
4392
4393
|
};
|
|
4393
|
-
return (
|
|
4394
|
+
return (x, T) => {
|
|
4394
4395
|
const v = B("el-button"), m = B("el-button-group");
|
|
4395
4396
|
return r(), $(p(aa), { class: "ml-status-bar" }, {
|
|
4396
4397
|
left: g(() => [
|
|
4397
4398
|
f(m, { class: "ml-status-bar-left-button-group" }, {
|
|
4398
4399
|
default: g(() => [
|
|
4399
|
-
(r(!0),
|
|
4400
|
+
(r(!0), k(O, null, W(p(n), (u) => (r(), $(v, {
|
|
4400
4401
|
class: "ml-status-bar-layout-button",
|
|
4401
4402
|
key: u.name,
|
|
4402
4403
|
type: u.isActive ? "primary" : "",
|
|
4403
|
-
onClick: (
|
|
4404
|
+
onClick: (b) => d(u)
|
|
4404
4405
|
}, {
|
|
4405
4406
|
default: g(() => [
|
|
4406
|
-
|
|
4407
|
+
R(V(u.name), 1)
|
|
4407
4408
|
]),
|
|
4408
4409
|
_: 2
|
|
4409
4410
|
}, 1032, ["type", "onClick"]))), 128))
|
|
@@ -4420,7 +4421,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4420
4421
|
class: "ml-status-bar-current-pos"
|
|
4421
4422
|
}, {
|
|
4422
4423
|
default: g(() => [
|
|
4423
|
-
|
|
4424
|
+
R(V(p(i)), 1)
|
|
4424
4425
|
]),
|
|
4425
4426
|
_: 1
|
|
4426
4427
|
})) : H("", !0),
|
|
@@ -4453,41 +4454,41 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4453
4454
|
theme: { default: "dark" }
|
|
4454
4455
|
},
|
|
4455
4456
|
setup(o) {
|
|
4456
|
-
const e = o, { t } = Y(), { effectiveLocale: i, elementPlusLocale: n } = Ze(e.locale), { info: l, warning: a, error: d, success: s } = he(), h = S(),
|
|
4457
|
-
selector:
|
|
4457
|
+
const e = o, { t } = Y(), { effectiveLocale: i, elementPlusLocale: n } = Ze(e.locale), { info: l, warning: a, error: d, success: s } = he(), h = S(), x = S(null), T = S(null), v = D(() => T.value), m = S(!1), u = He({
|
|
4458
|
+
selector: x,
|
|
4458
4459
|
attribute: "class",
|
|
4459
4460
|
valueDark: "ml-theme-dark",
|
|
4460
4461
|
valueLight: "ml-theme-light"
|
|
4461
|
-
}),
|
|
4462
|
+
}), b = Ye(u), M = async (w, _) => {
|
|
4462
4463
|
const z = { minimumChunkSize: 1e3 };
|
|
4463
|
-
await A.instance.openDocument(
|
|
4464
|
-
}, I = async (
|
|
4464
|
+
await A.instance.openDocument(w, _, z), ne.fileName = A.instance.curDocument.docTitle;
|
|
4465
|
+
}, I = async (w) => {
|
|
4465
4466
|
try {
|
|
4466
4467
|
const _ = { minimumChunkSize: 1e3 };
|
|
4467
|
-
await A.instance.openUrl(
|
|
4468
|
+
await A.instance.openUrl(w, _), ne.fileName = A.instance.curDocument.docTitle;
|
|
4468
4469
|
} catch (_) {
|
|
4469
4470
|
console.error("Failed to open file from URL:", _), J({
|
|
4470
|
-
message: t("main.message.failedToOpenFile", { fileName:
|
|
4471
|
+
message: t("main.message.failedToOpenFile", { fileName: w }),
|
|
4471
4472
|
grouping: !0,
|
|
4472
4473
|
type: "error",
|
|
4473
4474
|
showClose: !0
|
|
4474
4475
|
});
|
|
4475
4476
|
}
|
|
4476
|
-
}, L = async (
|
|
4477
|
+
}, L = async (w) => {
|
|
4477
4478
|
try {
|
|
4478
4479
|
const _ = new FileReader();
|
|
4479
|
-
_.readAsArrayBuffer(
|
|
4480
|
-
const z = await new Promise((
|
|
4480
|
+
_.readAsArrayBuffer(w);
|
|
4481
|
+
const z = await new Promise((F, K) => {
|
|
4481
4482
|
_.onload = (ye) => {
|
|
4482
4483
|
var Se;
|
|
4483
4484
|
const Me = (Se = ye.target) == null ? void 0 : Se.result;
|
|
4484
|
-
Me ?
|
|
4485
|
+
Me ? F(Me) : K(new Error("Failed to read file content"));
|
|
4485
4486
|
}, _.onerror = () => K(new Error("Failed to read file"));
|
|
4486
4487
|
}), E = { minimumChunkSize: 1e3 };
|
|
4487
|
-
await A.instance.openDocument(
|
|
4488
|
+
await A.instance.openDocument(w.name, z, E), ne.fileName = A.instance.curDocument.docTitle;
|
|
4488
4489
|
} catch (_) {
|
|
4489
4490
|
console.error("Failed to open local file:", _), J({
|
|
4490
|
-
message: t("main.message.failedToOpenFile", { fileName:
|
|
4491
|
+
message: t("main.message.failedToOpenFile", { fileName: w.name }),
|
|
4491
4492
|
grouping: !0,
|
|
4492
4493
|
type: "error",
|
|
4493
4494
|
showClose: !0
|
|
@@ -4496,23 +4497,23 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4496
4497
|
};
|
|
4497
4498
|
N(
|
|
4498
4499
|
() => e.url,
|
|
4499
|
-
async (
|
|
4500
|
-
|
|
4500
|
+
async (w) => {
|
|
4501
|
+
w && I(w);
|
|
4501
4502
|
}
|
|
4502
4503
|
), N(
|
|
4503
4504
|
() => e.localFile,
|
|
4504
|
-
async (
|
|
4505
|
-
|
|
4505
|
+
async (w) => {
|
|
4506
|
+
w && L(w);
|
|
4506
4507
|
}
|
|
4507
4508
|
), N(
|
|
4508
4509
|
() => e.background,
|
|
4509
|
-
(
|
|
4510
|
-
|
|
4510
|
+
(w) => {
|
|
4511
|
+
w != null && (A.instance.curView.backgroundColor = w);
|
|
4511
4512
|
}
|
|
4512
4513
|
), N(
|
|
4513
4514
|
() => e.theme,
|
|
4514
|
-
(
|
|
4515
|
-
u.value =
|
|
4515
|
+
(w) => {
|
|
4516
|
+
u.value = w === "dark";
|
|
4516
4517
|
}
|
|
4517
4518
|
), U(async () => {
|
|
4518
4519
|
h.value && (Vi({
|
|
@@ -4520,44 +4521,44 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4520
4521
|
baseUrl: e.baseUrl,
|
|
4521
4522
|
useMainThreadDraw: e.useMainThreadDraw
|
|
4522
4523
|
}), T.value = A.instance), e.url ? I(e.url) : e.localFile && L(e.localFile), e.background != null && (A.instance.curView.backgroundColor = e.background), e.theme === "dark" ? u.value = !0 : u.value = !1;
|
|
4523
|
-
}), Q.on("message", (
|
|
4524
|
+
}), Q.on("message", (w) => {
|
|
4524
4525
|
switch (J({
|
|
4525
|
-
message:
|
|
4526
|
+
message: w.message,
|
|
4526
4527
|
grouping: !0,
|
|
4527
|
-
type:
|
|
4528
|
+
type: w.type,
|
|
4528
4529
|
showClose: !0
|
|
4529
|
-
}),
|
|
4530
|
+
}), w.type) {
|
|
4530
4531
|
case "success":
|
|
4531
|
-
s("System Message",
|
|
4532
|
+
s("System Message", w.message);
|
|
4532
4533
|
break;
|
|
4533
4534
|
case "warning":
|
|
4534
|
-
a("System Warning",
|
|
4535
|
+
a("System Warning", w.message);
|
|
4535
4536
|
break;
|
|
4536
4537
|
case "error":
|
|
4537
|
-
d("System Error",
|
|
4538
|
+
d("System Error", w.message);
|
|
4538
4539
|
break;
|
|
4539
4540
|
default:
|
|
4540
|
-
l("System Info",
|
|
4541
|
+
l("System Info", w.message);
|
|
4541
4542
|
break;
|
|
4542
4543
|
}
|
|
4543
|
-
}), Q.on("fonts-not-loaded", (
|
|
4544
|
-
const _ =
|
|
4544
|
+
}), Q.on("fonts-not-loaded", (w) => {
|
|
4545
|
+
const _ = w.fonts.map((E) => E.fontName).join(", "), z = t("main.message.fontsNotLoaded", { fonts: _ });
|
|
4545
4546
|
d(t("main.notification.title.fontNotFound"), z);
|
|
4546
|
-
}), Q.on("fonts-not-found", (
|
|
4547
|
+
}), Q.on("fonts-not-found", (w) => {
|
|
4547
4548
|
const _ = t("main.message.fontsNotFound", {
|
|
4548
|
-
fonts:
|
|
4549
|
+
fonts: w.fonts.join(", ")
|
|
4549
4550
|
});
|
|
4550
4551
|
a(t("main.notification.title.fontNotFound"), _);
|
|
4551
|
-
}), Q.on("failed-to-get-avaiable-fonts", (
|
|
4552
|
+
}), Q.on("failed-to-get-avaiable-fonts", (w) => {
|
|
4552
4553
|
J({
|
|
4553
|
-
message: t("main.message.failedToGetAvaiableFonts", { url:
|
|
4554
|
+
message: t("main.message.failedToGetAvaiableFonts", { url: w.url }),
|
|
4554
4555
|
grouping: !0,
|
|
4555
4556
|
type: "error",
|
|
4556
4557
|
showClose: !0
|
|
4557
4558
|
});
|
|
4558
|
-
}), Q.on("failed-to-open-file", (
|
|
4559
|
+
}), Q.on("failed-to-open-file", (w) => {
|
|
4559
4560
|
const _ = t("main.message.failedToOpenFile", {
|
|
4560
|
-
fileName:
|
|
4561
|
+
fileName: w.fileName
|
|
4561
4562
|
});
|
|
4562
4563
|
J({
|
|
4563
4564
|
message: _,
|
|
@@ -4568,21 +4569,21 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4568
4569
|
});
|
|
4569
4570
|
const C = () => {
|
|
4570
4571
|
m.value = !m.value;
|
|
4571
|
-
},
|
|
4572
|
+
}, y = () => {
|
|
4572
4573
|
m.value = !1;
|
|
4573
4574
|
};
|
|
4574
|
-
return (
|
|
4575
|
+
return (w, _) => {
|
|
4575
4576
|
const z = B("el-config-provider");
|
|
4576
|
-
return r(),
|
|
4577
|
+
return r(), k(O, null, [
|
|
4577
4578
|
c("canvas", {
|
|
4578
4579
|
ref_key: "canvasRef",
|
|
4579
4580
|
ref: h,
|
|
4580
4581
|
class: "ml-cad-canvas"
|
|
4581
4582
|
}, null, 512),
|
|
4582
|
-
T.value ? (r(),
|
|
4583
|
+
T.value ? (r(), k("div", {
|
|
4583
4584
|
key: 0,
|
|
4584
4585
|
ref_key: "viewerRoot",
|
|
4585
|
-
ref:
|
|
4586
|
+
ref: x,
|
|
4586
4587
|
class: "ml-cad-viewer-container"
|
|
4587
4588
|
}, [
|
|
4588
4589
|
f(z, { locale: p(n) }, {
|
|
@@ -4600,7 +4601,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4600
4601
|
c("footer", null, [
|
|
4601
4602
|
f(p(Bi), {
|
|
4602
4603
|
"is-dark": p(u),
|
|
4603
|
-
"toggle-dark": p(
|
|
4604
|
+
"toggle-dark": p(b),
|
|
4604
4605
|
onToggleNotificationCenter: C
|
|
4605
4606
|
}, null, 8, ["is-dark", "toggle-dark"])
|
|
4606
4607
|
]),
|
|
@@ -4608,7 +4609,7 @@ const _a = (o) => (Fe("data-v-43098ce9"), o = o(), Re(), o), ya = /* @__PURE__ *
|
|
|
4608
4609
|
f(p(Ya)),
|
|
4609
4610
|
m.value ? (r(), $(p(vi), {
|
|
4610
4611
|
key: 0,
|
|
4611
|
-
onClose:
|
|
4612
|
+
onClose: y
|
|
4612
4613
|
})) : H("", !0)
|
|
4613
4614
|
]),
|
|
4614
4615
|
_: 1
|
|
@@ -4714,6 +4715,6 @@ export {
|
|
|
4714
4715
|
qe as useMissedData,
|
|
4715
4716
|
he as useNotificationCenter,
|
|
4716
4717
|
al as useSelectionSet,
|
|
4717
|
-
|
|
4718
|
+
me as useSettings,
|
|
4718
4719
|
il as useSystemVars
|
|
4719
4720
|
};
|