@mlightcad/cad-viewer 1.1.11 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/dist/component/MlCadViewer.vue.d.ts +5 -0
- package/dist/component/MlCadViewer.vue.d.ts.map +1 -1
- package/dist/component/index.d.ts +1 -0
- package/dist/component/index.d.ts.map +1 -1
- package/dist/component/notification/MlNotificationCenter.vue.d.ts +20 -0
- package/dist/component/notification/MlNotificationCenter.vue.d.ts.map +1 -0
- package/dist/component/notification/MlNotificationItem.vue.d.ts +22 -0
- package/dist/component/notification/MlNotificationItem.vue.d.ts.map +1 -0
- package/dist/component/notification/index.d.ts +3 -0
- package/dist/component/notification/index.d.ts.map +1 -0
- package/dist/component/statusBar/MlNotificationButton.vue.d.ts +7 -0
- package/dist/component/statusBar/MlNotificationButton.vue.d.ts.map +1 -0
- package/dist/component/statusBar/MlStatusBar.vue.d.ts +5 -1
- package/dist/component/statusBar/MlStatusBar.vue.d.ts.map +1 -1
- package/dist/composable/index.d.ts +1 -0
- package/dist/composable/index.d.ts.map +1 -1
- package/dist/composable/useNotificationCenter.d.ts +88 -0
- package/dist/composable/useNotificationCenter.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1729 -1235
- package/dist/locale/en/main.d.ts +24 -1
- package/dist/locale/en/main.d.ts.map +1 -1
- package/dist/locale/i18n.d.ts +48 -2
- package/dist/locale/i18n.d.ts.map +1 -1
- package/dist/locale/zh/main.d.ts +24 -1
- package/dist/locale/zh/main.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { AcEdCommandStack as
|
|
2
|
+
import { AcEdCommandStack as q, AcApDocManager as E, eventBus as X, AcApSettingManager as Q, AcApConvertToSvgCmd as He, AcApQNewCmd as Ge, AcApOpenCmd as We, registerWorkers as Ue, AcEdCommand as ce } from "@mlightcad/cad-simple-viewer";
|
|
3
3
|
import "element-plus/dist/index.css";
|
|
4
|
-
import { reactive as
|
|
5
|
-
import { AcDbDatabaseConverterManager as
|
|
6
|
-
import { useDark as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useI18n as P, createI18n as
|
|
10
|
-
import { ElDialog as
|
|
11
|
-
import { ElIcon as
|
|
4
|
+
import { reactive as Y, computed as C, defineComponent as S, onMounted as U, resolveComponent as M, createBlock as L, openBlock as u, unref as d, withCtx as f, renderSlot as re, createVNode as m, createTextVNode as N, toDisplayString as T, createElementVNode as c, ref as k, onUnmounted as te, watch as A, createElementBlock as _, Fragment as j, renderList as K, resolveDynamicComponent as ue, mergeProps as qe, mergeModels as J, useCssVars as $e, useModel as _e, createCommentVNode as H, normalizeStyle as ge, normalizeClass as we, pushScopeId as Ee, popScopeId as Ae, onBeforeUnmount as Ve, withKeys as je, isRef as Ye, markRaw as ke } from "vue";
|
|
5
|
+
import { AcDbDatabaseConverterManager as Ke, acdbHostApplicationServices as Fe, AcCmPerformanceCollector as Xe } from "@mlightcad/data-model";
|
|
6
|
+
import { useDark as Qe, useToggle as Ze, useFullscreen as Je } from "@vueuse/core";
|
|
7
|
+
import et from "element-plus/es/locale/lang/en";
|
|
8
|
+
import tt from "element-plus/es/locale/lang/zh-cn";
|
|
9
|
+
import { useI18n as P, createI18n as nt } from "vue-i18n";
|
|
10
|
+
import { ElDialog as ot, ElButton as Me, ElTable as lt, ElAutocomplete as at, ElProgress as it, ElLoading as Ce, ElMessage as oe } from "element-plus";
|
|
11
|
+
import { ElIcon as de, ElDropdown as st, ElDropdownMenu as rt, ElDropdownItem as ct, ElButtonGroup as ut, ElTooltip as dt, ElButton as mt } from "element-plus/es";
|
|
12
12
|
import "element-plus/es/components/base/style/css";
|
|
13
13
|
import "element-plus/es/components/icon/style/css";
|
|
14
14
|
import "element-plus/es/components/dropdown/style/css";
|
|
@@ -17,26 +17,26 @@ import "element-plus/es/components/dropdown-item/style/css";
|
|
|
17
17
|
import "element-plus/es/components/tooltip/style/css";
|
|
18
18
|
import "element-plus/es/components/button/style/css";
|
|
19
19
|
import "element-plus/es/components/button-group/style/css";
|
|
20
|
-
const
|
|
21
|
-
function
|
|
22
|
-
|
|
20
|
+
const le = Y([]);
|
|
21
|
+
function pt(t) {
|
|
22
|
+
le.find((n) => n.name === t.name) || le.push({ ...t, visible: !1 });
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const n =
|
|
24
|
+
function ft(t, e) {
|
|
25
|
+
const n = le.find((i) => i.name === t);
|
|
26
26
|
n && (n.visible = e);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function vt(t) {
|
|
29
|
+
return le.find((e) => e.name === t);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function ae() {
|
|
32
32
|
return {
|
|
33
|
-
dialogs:
|
|
34
|
-
registerDialog:
|
|
35
|
-
toggleDialog:
|
|
36
|
-
getDialogByName:
|
|
33
|
+
dialogs: C(() => le),
|
|
34
|
+
registerDialog: pt,
|
|
35
|
+
toggleDialog: ft,
|
|
36
|
+
getDialogByName: vt
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const gt = /* @__PURE__ */ S({
|
|
40
40
|
__name: "MlBaseDialog",
|
|
41
41
|
props: {
|
|
42
42
|
title: {
|
|
@@ -62,64 +62,64 @@ const ct = /* @__PURE__ */ L({
|
|
|
62
62
|
},
|
|
63
63
|
emits: ["update:modelValue", "ok", "cancel"],
|
|
64
64
|
setup(t, { emit: e }) {
|
|
65
|
-
const { t: n } = P(), i = t,
|
|
65
|
+
const { t: n } = P(), i = t, o = e, { registerDialog: l } = ae();
|
|
66
66
|
function a() {
|
|
67
|
-
|
|
67
|
+
o("ok"), o("update:modelValue", !1);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
69
|
+
function r() {
|
|
70
|
+
o("cancel"), o("update:modelValue", !1);
|
|
71
71
|
}
|
|
72
|
-
return
|
|
73
|
-
|
|
72
|
+
return U(() => {
|
|
73
|
+
l({
|
|
74
74
|
name: i.name,
|
|
75
75
|
component: "BaseDialog",
|
|
76
76
|
props: i.props
|
|
77
77
|
});
|
|
78
|
-
}), (
|
|
79
|
-
const
|
|
80
|
-
return u(),
|
|
78
|
+
}), (s, p) => {
|
|
79
|
+
const g = M("el-divider");
|
|
80
|
+
return u(), L(d(ot), {
|
|
81
81
|
"model-value": t.modelValue,
|
|
82
82
|
width: t.width,
|
|
83
83
|
close: "handleCancel",
|
|
84
84
|
class: "ml-dialog"
|
|
85
85
|
}, {
|
|
86
|
-
header:
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
header: f(() => [
|
|
87
|
+
c("div", null, T(t.title), 1),
|
|
88
|
+
m(g, { class: "ml-dialog-header-bottom-line" })
|
|
89
89
|
]),
|
|
90
|
-
footer:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
default:
|
|
94
|
-
|
|
90
|
+
footer: f(() => [
|
|
91
|
+
m(g, { class: "ml-dialog-footer-top-line" }),
|
|
92
|
+
m(d(Me), { onClick: r }, {
|
|
93
|
+
default: f(() => [
|
|
94
|
+
N(T(d(n)("dialog.baseDialog.cancel")), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
|
-
|
|
98
|
+
m(d(Me), {
|
|
99
99
|
type: "primary",
|
|
100
100
|
onClick: a
|
|
101
101
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
|
|
102
|
+
default: f(() => [
|
|
103
|
+
N(T(d(n)("dialog.baseDialog.ok")), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
})
|
|
107
107
|
]),
|
|
108
|
-
default:
|
|
109
|
-
|
|
108
|
+
default: f(() => [
|
|
109
|
+
re(s.$slots, "default", {}, void 0, !0)
|
|
110
110
|
]),
|
|
111
111
|
_: 3
|
|
112
112
|
}, 8, ["model-value", "width"]);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
115
|
+
}), W = (t, e) => {
|
|
116
116
|
const n = t.__vccOpts || t;
|
|
117
|
-
for (const [i,
|
|
118
|
-
n[i] =
|
|
117
|
+
for (const [i, o] of e)
|
|
118
|
+
n[i] = o;
|
|
119
119
|
return n;
|
|
120
|
-
},
|
|
121
|
-
function
|
|
122
|
-
const t =
|
|
120
|
+
}, Ne = /* @__PURE__ */ W(gt, [["__scopeId", "data-v-8df470d5"]]);
|
|
121
|
+
function ht() {
|
|
122
|
+
const t = Y([]), e = q.instance.iterator();
|
|
123
123
|
for (const n of e)
|
|
124
124
|
t.push({
|
|
125
125
|
commandName: n.command.localName,
|
|
@@ -129,40 +129,40 @@ function ut() {
|
|
|
129
129
|
(n, i) => n.commandName.toLowerCase().localeCompare(i.commandName.toLowerCase())
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Se(t, e = "en-US") {
|
|
133
133
|
const n = Math.abs(t);
|
|
134
134
|
if (n !== 0 && (n < 1e-3 || n >= 1e6)) {
|
|
135
|
-
const [i,
|
|
135
|
+
const [i, o] = t.toExponential(3).split("e");
|
|
136
136
|
return `${new Intl.NumberFormat(e, {
|
|
137
137
|
maximumFractionDigits: 3
|
|
138
|
-
}).format(Number(i))}e${
|
|
138
|
+
}).format(Number(i))}e${o}`;
|
|
139
139
|
} else
|
|
140
140
|
return new Intl.NumberFormat(e, {
|
|
141
141
|
maximumFractionDigits: 6
|
|
142
142
|
}).format(t);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
const e =
|
|
146
|
-
function i(
|
|
147
|
-
e.value =
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
const
|
|
151
|
-
return { x: e, y: n, text:
|
|
144
|
+
function _t(t) {
|
|
145
|
+
const e = k(0), n = k(0);
|
|
146
|
+
function i(l) {
|
|
147
|
+
e.value = l.x, n.value = l.y;
|
|
148
|
+
}
|
|
149
|
+
U(() => t.events.mouseMove.addEventListener(i)), te(() => t.events.mouseMove.removeEventListener(i));
|
|
150
|
+
const o = C(() => `${Se(e.value)}, ${Se(n.value)}`);
|
|
151
|
+
return { x: e, y: n, text: o };
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
function
|
|
155
|
-
const t =
|
|
153
|
+
const se = Qe(), wt = Ze(se);
|
|
154
|
+
function yt() {
|
|
155
|
+
const t = k(/* @__PURE__ */ new Set()), e = Ke.instance;
|
|
156
156
|
for (const n of e.fileTypes)
|
|
157
157
|
t.value.add(n);
|
|
158
158
|
return e.events.registered.addEventListener((n) => {
|
|
159
159
|
t.value.add(n.fileType);
|
|
160
160
|
}), t;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
const e =
|
|
164
|
-
const
|
|
165
|
-
for (const a of
|
|
162
|
+
function bt(t) {
|
|
163
|
+
const e = Y([]), n = t.curDocument, i = (o) => {
|
|
164
|
+
const l = o.tables.layerTable.newIterator();
|
|
165
|
+
for (const a of l)
|
|
166
166
|
e.push({
|
|
167
167
|
name: a.name,
|
|
168
168
|
color: a.color.cssColor,
|
|
@@ -176,44 +176,44 @@ function gt(t) {
|
|
|
176
176
|
lineWeight: a.lineWeight
|
|
177
177
|
});
|
|
178
178
|
};
|
|
179
|
-
return i(n.database), n.database.events.layerModified.addEventListener((
|
|
180
|
-
let
|
|
181
|
-
(a) => a.name ==
|
|
179
|
+
return i(n.database), n.database.events.layerModified.addEventListener((o) => {
|
|
180
|
+
let l = e.find(
|
|
181
|
+
(a) => a.name == o.layer.name
|
|
182
182
|
);
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
const a =
|
|
186
|
-
a.color != null && (
|
|
183
|
+
if (l) {
|
|
184
|
+
l = l;
|
|
185
|
+
const a = o.changes;
|
|
186
|
+
a.color != null && (l.color = a.color.cssColor), 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);
|
|
187
187
|
}
|
|
188
|
-
}), t.events.documentActivated.addEventListener((
|
|
189
|
-
e.length = 0, i(
|
|
188
|
+
}), t.events.documentActivated.addEventListener((o) => {
|
|
189
|
+
e.length = 0, i(o.doc.database);
|
|
190
190
|
}), e;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
const e =
|
|
194
|
-
const
|
|
192
|
+
function xt(t) {
|
|
193
|
+
const e = Y([]), n = t.curDocument, i = (o) => {
|
|
194
|
+
const l = o.dictionaries.layouts.newIterator();
|
|
195
195
|
e.length = 0;
|
|
196
|
-
for (const a of
|
|
196
|
+
for (const a of l)
|
|
197
197
|
e.push({
|
|
198
198
|
name: a.layoutName,
|
|
199
199
|
tabOrder: a.tabOrder,
|
|
200
200
|
blockTableRecordId: a.blockTableRecordId,
|
|
201
|
-
isActive: a.blockTableRecordId ==
|
|
201
|
+
isActive: a.blockTableRecordId == o.currentSpaceId
|
|
202
202
|
});
|
|
203
|
-
e.sort((a,
|
|
203
|
+
e.sort((a, r) => a.tabOrder - r.tabOrder);
|
|
204
204
|
};
|
|
205
|
-
return i(n.database), t.events.documentActivated.addEventListener((
|
|
206
|
-
e.length = 0, i(
|
|
207
|
-
}),
|
|
208
|
-
(
|
|
209
|
-
const
|
|
205
|
+
return i(n.database), t.events.documentActivated.addEventListener((o) => {
|
|
206
|
+
e.length = 0, i(o.doc.database);
|
|
207
|
+
}), Fe().layoutManager.events.layoutSwitched.addEventListener(
|
|
208
|
+
(o) => {
|
|
209
|
+
const l = o.layout;
|
|
210
210
|
e.forEach((a) => {
|
|
211
|
-
a.name ==
|
|
211
|
+
a.name == l.layoutName ? a.isActive = !0 : a.isActive = !1;
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
), e;
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const kt = {
|
|
217
217
|
ACAD: {
|
|
218
218
|
csvg: "Converts current drawing to SVG",
|
|
219
219
|
la: "Layer properties manager",
|
|
@@ -228,7 +228,7 @@ const ft = {
|
|
|
228
228
|
zoomw: "Zooms to display an area specified by a rectangular window"
|
|
229
229
|
},
|
|
230
230
|
USER: {}
|
|
231
|
-
},
|
|
231
|
+
}, Mt = {
|
|
232
232
|
baseDialog: {
|
|
233
233
|
ok: "OK",
|
|
234
234
|
cancel: "Cancel"
|
|
@@ -247,7 +247,7 @@ const ft = {
|
|
|
247
247
|
title: "Point Style",
|
|
248
248
|
pointSize: "Point Size:"
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, Ct = {
|
|
251
251
|
entityName: {
|
|
252
252
|
"3PointAngularDimension": "Three Point Angular Dimension",
|
|
253
253
|
AlignedDimension: "Aligned Dimension",
|
|
@@ -421,7 +421,7 @@ const ft = {
|
|
|
421
421
|
yellow: "Yellow",
|
|
422
422
|
yellowgreen: "Yellow Green"
|
|
423
423
|
}
|
|
424
|
-
},
|
|
424
|
+
}, St = {
|
|
425
425
|
mainMenu: {
|
|
426
426
|
new: "New Drawing",
|
|
427
427
|
open: "Open Drawing",
|
|
@@ -489,6 +489,9 @@ const ft = {
|
|
|
489
489
|
},
|
|
490
490
|
warning: {
|
|
491
491
|
font: "The following fonts are not found!"
|
|
492
|
+
},
|
|
493
|
+
notification: {
|
|
494
|
+
tooltip: "Show notifications"
|
|
492
495
|
}
|
|
493
496
|
},
|
|
494
497
|
toolPalette: {
|
|
@@ -509,13 +512,33 @@ const ft = {
|
|
|
509
512
|
message: {
|
|
510
513
|
loadingFonts: "Loading fonts ...",
|
|
511
514
|
loadingDwgConverter: "Loading DWG converter...",
|
|
512
|
-
|
|
515
|
+
fontsNotFound: 'Fonts "{fonts}" can not be found in font repository!',
|
|
516
|
+
fontsNotLoaded: 'Fonts "{fonts}" can not be loaded!',
|
|
513
517
|
failedToGetAvaiableFonts: 'Failed to get avaiable fonts from "{url}"!',
|
|
514
518
|
failedToOpenFile: 'Failed to open file "{fileName}"!',
|
|
515
519
|
fetchingDrawingFile: "Fetching file ...",
|
|
516
520
|
unknownEntities: "This drawing contains {count} unknown or unsupported entities! Those entities will not be shown."
|
|
521
|
+
},
|
|
522
|
+
notification: {
|
|
523
|
+
center: {
|
|
524
|
+
title: "Notifications",
|
|
525
|
+
clearAll: "Clear All",
|
|
526
|
+
noNotifications: "No notifications"
|
|
527
|
+
},
|
|
528
|
+
time: {
|
|
529
|
+
justNow: "Just now",
|
|
530
|
+
minutesAgo: "{count} minute ago | {count} minutes ago",
|
|
531
|
+
hoursAgo: "{count} hour ago | {count} hours ago",
|
|
532
|
+
daysAgo: "{count} day ago | {count} days ago"
|
|
533
|
+
},
|
|
534
|
+
title: {
|
|
535
|
+
failedToOpenFile: "Failed to Open File",
|
|
536
|
+
fontNotFound: "Font Not Found",
|
|
537
|
+
fontNotLoaded: "Font Not Loaded",
|
|
538
|
+
parsingWarning: "Issues on Parsing Drawing"
|
|
539
|
+
}
|
|
517
540
|
}
|
|
518
|
-
},
|
|
541
|
+
}, Lt = {
|
|
519
542
|
ACAD: {
|
|
520
543
|
csvg: "转换当前图纸为SVG格式",
|
|
521
544
|
la: "图层属性管理器",
|
|
@@ -530,7 +553,7 @@ const ft = {
|
|
|
530
553
|
zoomw: "缩放以显示矩形窗口内的对象"
|
|
531
554
|
},
|
|
532
555
|
USER: {}
|
|
533
|
-
},
|
|
556
|
+
}, zt = {
|
|
534
557
|
baseDialog: {
|
|
535
558
|
ok: "确定",
|
|
536
559
|
cancel: "取消"
|
|
@@ -549,7 +572,7 @@ const ft = {
|
|
|
549
572
|
title: "点样式",
|
|
550
573
|
pointSize: "点大小:"
|
|
551
574
|
}
|
|
552
|
-
},
|
|
575
|
+
}, Bt = {
|
|
553
576
|
entityName: {
|
|
554
577
|
"3PointAngularDimension": "三点角度标注",
|
|
555
578
|
AlignedDimension: "线性标注",
|
|
@@ -723,7 +746,7 @@ const ft = {
|
|
|
723
746
|
yellow: "黄色",
|
|
724
747
|
yellowgreen: "黄绿色"
|
|
725
748
|
}
|
|
726
|
-
},
|
|
749
|
+
}, Dt = {
|
|
727
750
|
mainMenu: {
|
|
728
751
|
new: "新建图纸",
|
|
729
752
|
open: "打开图纸",
|
|
@@ -791,6 +814,9 @@ const ft = {
|
|
|
791
814
|
},
|
|
792
815
|
warning: {
|
|
793
816
|
font: "没有找到如下字体:"
|
|
817
|
+
},
|
|
818
|
+
notification: {
|
|
819
|
+
tooltip: "显示通知"
|
|
794
820
|
}
|
|
795
821
|
},
|
|
796
822
|
toolPalette: {
|
|
@@ -811,184 +837,298 @@ const ft = {
|
|
|
811
837
|
message: {
|
|
812
838
|
loadingFonts: "正在加载字体...",
|
|
813
839
|
loadingDwgConverter: "正在加载DWG转换器...",
|
|
814
|
-
|
|
840
|
+
fontsNotFound: "在字体库中找不到字体:{fonts}。",
|
|
841
|
+
fontsNotLoaded: "无法加载字体:{fonts}。",
|
|
815
842
|
failedToGetAvaiableFonts: '无法从"{url}"获取可用的字体信息!',
|
|
816
843
|
failedToOpenFile: '无法打开文件"{fileName}"!',
|
|
817
844
|
fetchingDrawingFile: "正在加载图纸文件...",
|
|
818
845
|
unknownEntities: "这张图纸中包含了{count}个未知或不支持的实体,这些实体将无法显示!"
|
|
846
|
+
},
|
|
847
|
+
notification: {
|
|
848
|
+
center: {
|
|
849
|
+
title: "通知",
|
|
850
|
+
clearAll: "清除全部",
|
|
851
|
+
noNotifications: "暂无通知"
|
|
852
|
+
},
|
|
853
|
+
time: {
|
|
854
|
+
justNow: "刚刚",
|
|
855
|
+
minutesAgo: "{count} 分钟前",
|
|
856
|
+
hoursAgo: "{count} 小时前",
|
|
857
|
+
daysAgo: "{count} 天前"
|
|
858
|
+
},
|
|
859
|
+
title: {
|
|
860
|
+
failedToOpenFile: "无法打开文件",
|
|
861
|
+
fontNotFound: "找不到字体",
|
|
862
|
+
fontNotLoaded: "无法加载字体",
|
|
863
|
+
parsingWarning: "解析图纸问题"
|
|
864
|
+
}
|
|
819
865
|
}
|
|
820
|
-
},
|
|
866
|
+
}, Tt = () => {
|
|
821
867
|
const t = localStorage.getItem("preferred_lang");
|
|
822
868
|
return t === "en" || t === "zh" ? t : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
823
|
-
},
|
|
869
|
+
}, $t = {
|
|
824
870
|
en: {
|
|
825
|
-
main:
|
|
826
|
-
command:
|
|
827
|
-
dialog:
|
|
828
|
-
entity:
|
|
871
|
+
main: St,
|
|
872
|
+
command: kt,
|
|
873
|
+
dialog: Mt,
|
|
874
|
+
entity: Ct
|
|
829
875
|
},
|
|
830
876
|
zh: {
|
|
831
|
-
main:
|
|
832
|
-
command:
|
|
833
|
-
dialog:
|
|
834
|
-
entity:
|
|
877
|
+
main: Dt,
|
|
878
|
+
command: Lt,
|
|
879
|
+
dialog: zt,
|
|
880
|
+
entity: Bt
|
|
835
881
|
}
|
|
836
|
-
}, ee =
|
|
882
|
+
}, ee = nt({
|
|
837
883
|
legacy: !1,
|
|
838
|
-
messages:
|
|
839
|
-
locale:
|
|
884
|
+
messages: $t,
|
|
885
|
+
locale: Tt(),
|
|
840
886
|
fallbackLocale: "en",
|
|
841
887
|
allowComposition: !0,
|
|
842
888
|
globalInjection: !0
|
|
843
|
-
}),
|
|
889
|
+
}), ye = (t, e) => {
|
|
844
890
|
const n = ee.global.t, i = `command.${t}.${e}`;
|
|
845
891
|
return n(i, "");
|
|
846
|
-
},
|
|
892
|
+
}, Ka = (t) => ye(q.SYSTEMT_COMMAND_GROUP_NAME, t), Xa = (t) => ye(q.DEFAUT_COMMAND_GROUP_NAME, t), Et = (t) => {
|
|
847
893
|
const e = ee.global.t, n = "entity.entityName." + t.type;
|
|
848
894
|
return e(n, t.type, { missingWarn: !1 });
|
|
849
|
-
},
|
|
895
|
+
}, At = (t) => {
|
|
850
896
|
if (t == "ByLayer" || t == "ByBlock")
|
|
851
897
|
return t;
|
|
852
898
|
{
|
|
853
899
|
const e = ee.global.t, n = "entity.color." + t;
|
|
854
900
|
return e(n, t, { missingWarn: !1 });
|
|
855
901
|
}
|
|
856
|
-
},
|
|
902
|
+
}, Vt = (t) => {
|
|
857
903
|
const e = ee.global.t, n = "main.progress." + t.replace(/_/g, "").toLowerCase();
|
|
858
904
|
return e(n, t);
|
|
859
|
-
},
|
|
860
|
-
function
|
|
861
|
-
const { locale: e } = P(), i =
|
|
862
|
-
const
|
|
863
|
-
return
|
|
864
|
-
})()),
|
|
865
|
-
ee.global.locale.value =
|
|
905
|
+
}, ve = "preferred_lang";
|
|
906
|
+
function Ie(t) {
|
|
907
|
+
const { locale: e } = P(), i = k((() => {
|
|
908
|
+
const s = localStorage.getItem(ve);
|
|
909
|
+
return s === "en" || s === "zh" ? s : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
910
|
+
})()), o = C(() => i.value), l = (s) => {
|
|
911
|
+
ee.global.locale.value = s, i.value = s, (!t || t === "default") && localStorage.setItem(ve, s);
|
|
866
912
|
}, a = () => {
|
|
867
|
-
localStorage.removeItem(
|
|
913
|
+
localStorage.removeItem(ve);
|
|
868
914
|
};
|
|
869
|
-
t &&
|
|
915
|
+
t && A(
|
|
870
916
|
() => t,
|
|
871
|
-
(
|
|
872
|
-
|
|
917
|
+
(s) => {
|
|
918
|
+
s && s !== "default" && (i.value = s, ee.global.locale.value = s, a());
|
|
873
919
|
},
|
|
874
920
|
{ immediate: !0 }
|
|
875
|
-
),
|
|
921
|
+
), A(
|
|
876
922
|
() => e.value,
|
|
877
|
-
(
|
|
923
|
+
(s) => {
|
|
878
924
|
if (!t || t === "default") {
|
|
879
|
-
const
|
|
880
|
-
i.value =
|
|
925
|
+
const p = s === "zh" ? "zh" : "en";
|
|
926
|
+
i.value = p;
|
|
881
927
|
}
|
|
882
928
|
}
|
|
883
929
|
);
|
|
884
|
-
const
|
|
930
|
+
const r = C(() => o.value === "en" ? et : tt);
|
|
885
931
|
return {
|
|
886
932
|
currentLocale: i,
|
|
887
|
-
effectiveLocale:
|
|
888
|
-
elementPlusLocale:
|
|
889
|
-
setLocale:
|
|
933
|
+
effectiveLocale: o,
|
|
934
|
+
elementPlusLocale: r,
|
|
935
|
+
setLocale: l,
|
|
890
936
|
clearStoragePreference: a,
|
|
891
|
-
isControlled:
|
|
937
|
+
isControlled: C(() => !!(t && t !== "default"))
|
|
892
938
|
};
|
|
893
939
|
}
|
|
894
|
-
function
|
|
895
|
-
const t =
|
|
896
|
-
const i =
|
|
897
|
-
t.clear(), Object.keys(i.fonts).forEach((
|
|
898
|
-
const a = l
|
|
899
|
-
t.set(
|
|
900
|
-
}), e.clear(), i.images.forEach((
|
|
901
|
-
const
|
|
902
|
-
|
|
903
|
-
fileName:
|
|
940
|
+
function Re() {
|
|
941
|
+
const t = Y(/* @__PURE__ */ new Map()), e = Y(/* @__PURE__ */ new Map()), n = () => {
|
|
942
|
+
const i = E.instance.curView.missedData, o = Q.instance.fontMapping;
|
|
943
|
+
t.clear(), Object.keys(i.fonts).forEach((l) => {
|
|
944
|
+
const a = o[l];
|
|
945
|
+
t.set(l, a || "");
|
|
946
|
+
}), e.clear(), i.images.forEach((l, a) => {
|
|
947
|
+
const r = e.get(l);
|
|
948
|
+
r ? r.ids.add(a) : e.set(l, {
|
|
949
|
+
fileName: l,
|
|
904
950
|
ids: /* @__PURE__ */ new Set([a])
|
|
905
951
|
});
|
|
906
952
|
});
|
|
907
953
|
};
|
|
908
|
-
return
|
|
954
|
+
return E.instance.events.documentActivated.addEventListener(() => {
|
|
909
955
|
n();
|
|
910
|
-
}),
|
|
956
|
+
}), X.on("font-not-found", (i) => {
|
|
911
957
|
n();
|
|
912
958
|
}), {
|
|
913
959
|
fonts: t,
|
|
914
960
|
images: e
|
|
915
961
|
};
|
|
916
962
|
}
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
963
|
+
class Ft {
|
|
964
|
+
constructor() {
|
|
965
|
+
this.notifications = k([]), this.nextId = 1;
|
|
966
|
+
}
|
|
967
|
+
get allNotifications() {
|
|
968
|
+
return C(() => this.notifications.value);
|
|
969
|
+
}
|
|
970
|
+
get unreadCount() {
|
|
971
|
+
return C(() => this.notifications.value.length);
|
|
972
|
+
}
|
|
973
|
+
get hasNotifications() {
|
|
974
|
+
return C(() => this.notifications.value.length > 0);
|
|
975
|
+
}
|
|
976
|
+
add(e) {
|
|
977
|
+
const n = {
|
|
978
|
+
...e,
|
|
979
|
+
id: `notification-${this.nextId++}`,
|
|
980
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
981
|
+
};
|
|
982
|
+
return this.notifications.value.unshift(n), n.id;
|
|
983
|
+
}
|
|
984
|
+
remove(e) {
|
|
985
|
+
const n = this.notifications.value.findIndex((i) => i.id === e);
|
|
986
|
+
n > -1 && this.notifications.value.splice(n, 1);
|
|
987
|
+
}
|
|
988
|
+
clear() {
|
|
989
|
+
this.notifications.value = [];
|
|
990
|
+
}
|
|
991
|
+
clearAll() {
|
|
992
|
+
this.clear();
|
|
993
|
+
}
|
|
994
|
+
// Convenience methods for different notification types
|
|
995
|
+
info(e, n, i) {
|
|
996
|
+
return this.add({
|
|
997
|
+
type: "info",
|
|
998
|
+
title: e,
|
|
999
|
+
message: n,
|
|
1000
|
+
...i
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
warning(e, n, i) {
|
|
1004
|
+
return this.add({
|
|
1005
|
+
type: "warning",
|
|
1006
|
+
title: e,
|
|
1007
|
+
message: n,
|
|
1008
|
+
...i
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
error(e, n, i) {
|
|
1012
|
+
return this.add({
|
|
1013
|
+
type: "error",
|
|
1014
|
+
title: e,
|
|
1015
|
+
message: n,
|
|
1016
|
+
persistent: !0,
|
|
1017
|
+
// Errors are persistent by default
|
|
1018
|
+
...i
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
success(e, n, i) {
|
|
1022
|
+
return this.add({
|
|
1023
|
+
type: "success",
|
|
1024
|
+
title: e,
|
|
1025
|
+
message: n,
|
|
1026
|
+
...i
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
const I = new Ft();
|
|
1031
|
+
function me() {
|
|
1032
|
+
return {
|
|
1033
|
+
/** Reactive list of all notifications */
|
|
1034
|
+
notifications: I.allNotifications,
|
|
1035
|
+
/** Reactive count of unread notifications */
|
|
1036
|
+
unreadCount: I.unreadCount,
|
|
1037
|
+
/** Reactive boolean indicating if there are any notifications */
|
|
1038
|
+
hasNotifications: I.hasNotifications,
|
|
1039
|
+
/** Add a custom notification */
|
|
1040
|
+
add: I.add.bind(I),
|
|
1041
|
+
/** Remove a notification by ID */
|
|
1042
|
+
remove: I.remove.bind(I),
|
|
1043
|
+
/** Clear all notifications */
|
|
1044
|
+
clear: I.clear.bind(I),
|
|
1045
|
+
/** Clear all notifications (alias for clear) */
|
|
1046
|
+
clearAll: I.clearAll.bind(I),
|
|
1047
|
+
/** Add an info notification */
|
|
1048
|
+
info: I.info.bind(I),
|
|
1049
|
+
/** Add a warning notification */
|
|
1050
|
+
warning: I.warning.bind(I),
|
|
1051
|
+
/** Add an error notification */
|
|
1052
|
+
error: I.error.bind(I),
|
|
1053
|
+
/** Add a success notification */
|
|
1054
|
+
success: I.success.bind(I)
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
function pe() {
|
|
1058
|
+
const t = Y(
|
|
1059
|
+
Q.instance.settings
|
|
920
1060
|
);
|
|
921
|
-
return
|
|
1061
|
+
return Q.instance.events.modified.addEventListener((e) => {
|
|
922
1062
|
t[e.key] = e.value;
|
|
923
1063
|
}), t;
|
|
924
1064
|
}
|
|
925
|
-
function
|
|
926
|
-
const e =
|
|
927
|
-
e.pdmode =
|
|
1065
|
+
function Nt(t) {
|
|
1066
|
+
const e = Y({}), n = t.curDocument, i = (o) => {
|
|
1067
|
+
e.pdmode = o.pdmode, e.pdmode = o.pdsize;
|
|
928
1068
|
};
|
|
929
|
-
return i(n.database), n.database.events.headerSysVarChanged.addEventListener((
|
|
930
|
-
e[
|
|
931
|
-
}), t.events.documentActivated.addEventListener((
|
|
932
|
-
i(
|
|
1069
|
+
return i(n.database), n.database.events.headerSysVarChanged.addEventListener((o) => {
|
|
1070
|
+
e[o.name] = o.database[o.name];
|
|
1071
|
+
}), t.events.documentActivated.addEventListener((o) => {
|
|
1072
|
+
i(o.doc.database);
|
|
933
1073
|
}), e;
|
|
934
1074
|
}
|
|
935
|
-
const
|
|
1075
|
+
const It = /* @__PURE__ */ S({
|
|
936
1076
|
__name: "MlDialogManager",
|
|
937
1077
|
setup(t, { expose: e }) {
|
|
938
|
-
const { dialogs: n, toggleDialog: i, registerDialog:
|
|
1078
|
+
const { dialogs: n, toggleDialog: i, registerDialog: o } = ae();
|
|
939
1079
|
return e({
|
|
940
1080
|
toggleDialog: i,
|
|
941
|
-
registerDialog:
|
|
942
|
-
}), (
|
|
943
|
-
key:
|
|
1081
|
+
registerDialog: o
|
|
1082
|
+
}), (l, a) => (u(!0), _(j, null, K(d(n), (r) => (u(), _("div", {
|
|
1083
|
+
key: r.name
|
|
944
1084
|
}, [
|
|
945
|
-
(u(),
|
|
946
|
-
modelValue:
|
|
947
|
-
"onUpdate:modelValue": (
|
|
948
|
-
}, { ref_for: !0 },
|
|
1085
|
+
(u(), L(ue(r.component), qe({
|
|
1086
|
+
modelValue: r.visible,
|
|
1087
|
+
"onUpdate:modelValue": (s) => r.visible = s
|
|
1088
|
+
}, { ref_for: !0 }, r.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
|
949
1089
|
]))), 128));
|
|
950
1090
|
}
|
|
951
|
-
}),
|
|
1091
|
+
}), Rt = ["accept"], Ot = /* @__PURE__ */ S({
|
|
952
1092
|
__name: "MlFileReader",
|
|
953
1093
|
emits: ["file-read"],
|
|
954
1094
|
setup(t, { emit: e }) {
|
|
955
|
-
const n = e, i =
|
|
956
|
-
const
|
|
957
|
-
let
|
|
958
|
-
for (let
|
|
959
|
-
|
|
960
|
-
return
|
|
1095
|
+
const n = e, i = k(null), o = yt(), l = C(() => {
|
|
1096
|
+
const r = Array.from(o.value);
|
|
1097
|
+
let s = "";
|
|
1098
|
+
for (let p = 0, g = r.length; p < g; ++p)
|
|
1099
|
+
p == g - 1 ? s += `.${r[p]}` : s += `.${r[p]}, `;
|
|
1100
|
+
return s;
|
|
961
1101
|
});
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
var
|
|
965
|
-
(
|
|
1102
|
+
U(() => {
|
|
1103
|
+
X.on("open-file", () => {
|
|
1104
|
+
var r;
|
|
1105
|
+
(r = i.value) == null || r.click();
|
|
966
1106
|
});
|
|
967
1107
|
});
|
|
968
|
-
const a = (
|
|
969
|
-
var
|
|
970
|
-
const
|
|
971
|
-
if (
|
|
972
|
-
const
|
|
973
|
-
|
|
974
|
-
var
|
|
975
|
-
const
|
|
976
|
-
|
|
1108
|
+
const a = (r) => {
|
|
1109
|
+
var g, b;
|
|
1110
|
+
const p = (g = r.target.files) == null ? void 0 : g[0];
|
|
1111
|
+
if (p && p.name) {
|
|
1112
|
+
const v = (b = p.name.split(".").pop()) == null ? void 0 : b.toLocaleLowerCase(), h = new FileReader();
|
|
1113
|
+
v == "dxf" ? h.readAsText(p) : v == "dwg" && h.readAsArrayBuffer(p), h.onload = (w) => {
|
|
1114
|
+
var D;
|
|
1115
|
+
const x = (D = w.target) == null ? void 0 : D.result;
|
|
1116
|
+
x && n("file-read", p.name, x);
|
|
977
1117
|
}, h.onerror = () => {
|
|
978
1118
|
console.error("Failed to read the file.");
|
|
979
1119
|
};
|
|
980
1120
|
}
|
|
981
1121
|
};
|
|
982
|
-
return (
|
|
1122
|
+
return (r, s) => (u(), _("input", {
|
|
983
1123
|
type: "file",
|
|
984
1124
|
ref_key: "fileInput",
|
|
985
1125
|
ref: i,
|
|
986
|
-
accept:
|
|
1126
|
+
accept: l.value,
|
|
987
1127
|
style: { display: "none" },
|
|
988
1128
|
onChange: a
|
|
989
|
-
}, null, 40,
|
|
1129
|
+
}, null, 40, Rt));
|
|
990
1130
|
}
|
|
991
|
-
}),
|
|
1131
|
+
}), Pt = /* @__PURE__ */ S({
|
|
992
1132
|
__name: "MlToggleButton",
|
|
993
1133
|
props: /* @__PURE__ */ J({
|
|
994
1134
|
size: { default: 30 },
|
|
@@ -999,121 +1139,121 @@ const Bt = /* @__PURE__ */ L({
|
|
|
999
1139
|
}),
|
|
1000
1140
|
emits: /* @__PURE__ */ J(["click"], ["update:modelValue"]),
|
|
1001
1141
|
setup(t, { emit: e }) {
|
|
1002
|
-
|
|
1142
|
+
$e((p) => ({
|
|
1003
1143
|
a97b120a: a.value
|
|
1004
1144
|
}));
|
|
1005
|
-
const n = t, i =
|
|
1006
|
-
|
|
1145
|
+
const n = t, i = _e(t, "modelValue"), o = e, l = C(() => i.value ? n.data.onIcon : n.data.offIcon), a = C(() => n.size + "px"), r = C(() => i.value ? n.data.onTooltip : n.data.offTooltip), s = () => {
|
|
1146
|
+
o("click", i.value);
|
|
1007
1147
|
};
|
|
1008
|
-
return (
|
|
1009
|
-
const
|
|
1010
|
-
return u(),
|
|
1011
|
-
content:
|
|
1148
|
+
return (p, g) => {
|
|
1149
|
+
const b = M("el-button"), v = M("el-tooltip");
|
|
1150
|
+
return u(), L(v, {
|
|
1151
|
+
content: r.value,
|
|
1012
1152
|
"hide-after": 0
|
|
1013
1153
|
}, {
|
|
1014
|
-
default:
|
|
1015
|
-
|
|
1154
|
+
default: f(() => [
|
|
1155
|
+
m(b, {
|
|
1016
1156
|
class: "ml-toggle-button",
|
|
1017
|
-
icon:
|
|
1018
|
-
onClick:
|
|
1157
|
+
icon: l.value,
|
|
1158
|
+
onClick: s
|
|
1019
1159
|
}, null, 8, ["icon"])
|
|
1020
1160
|
]),
|
|
1021
1161
|
_: 1
|
|
1022
1162
|
}, 8, ["content"]);
|
|
1023
1163
|
};
|
|
1024
1164
|
}
|
|
1025
|
-
}),
|
|
1165
|
+
}), Oe = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-48d6b055"]]), Ht = /* @__PURE__ */ S({
|
|
1026
1166
|
__name: "MlReplacementDlg",
|
|
1027
1167
|
setup(t) {
|
|
1028
|
-
const { t: e } = P(), { fonts: n, images: i } =
|
|
1029
|
-
const
|
|
1030
|
-
i.forEach((
|
|
1031
|
-
|
|
1032
|
-
const
|
|
1033
|
-
|
|
1168
|
+
const { t: e } = P(), { fonts: n, images: i } = Re(), o = k(!0), l = C(() => n.size > 0 ? "font" : "image"), a = k(null), r = C(() => E.instance.avaiableFonts.map((h) => h.name[0])), s = () => {
|
|
1169
|
+
const v = E.instance.curDocument.database;
|
|
1170
|
+
i.forEach((w) => {
|
|
1171
|
+
w.file && w.ids.forEach((x) => {
|
|
1172
|
+
const D = v.tables.blockTable.modelSpace.getIdAt(
|
|
1173
|
+
x
|
|
1034
1174
|
);
|
|
1035
|
-
|
|
1175
|
+
D.image = w.file, D.triggerModifiedEvent();
|
|
1036
1176
|
});
|
|
1037
1177
|
});
|
|
1038
|
-
const h =
|
|
1039
|
-
n.forEach((
|
|
1040
|
-
|
|
1178
|
+
const h = Q.instance;
|
|
1179
|
+
n.forEach((w, x) => {
|
|
1180
|
+
x && w && h.setFontMapping(x, w);
|
|
1041
1181
|
});
|
|
1042
|
-
},
|
|
1182
|
+
}, p = (v) => {
|
|
1043
1183
|
a.value && (a.value.click(), a.value.onchange = () => {
|
|
1044
|
-
|
|
1184
|
+
g(v);
|
|
1045
1185
|
});
|
|
1046
|
-
},
|
|
1047
|
-
var
|
|
1048
|
-
const h = (
|
|
1049
|
-
h && (
|
|
1050
|
-
},
|
|
1051
|
-
n.set(
|
|
1186
|
+
}, g = (v) => {
|
|
1187
|
+
var w, x;
|
|
1188
|
+
const h = (x = (w = a.value) == null ? void 0 : w.files) == null ? void 0 : x[0];
|
|
1189
|
+
h && (v.file = h);
|
|
1190
|
+
}, b = (v, h) => {
|
|
1191
|
+
n.set(v, h);
|
|
1052
1192
|
};
|
|
1053
|
-
return (
|
|
1054
|
-
const
|
|
1055
|
-
return u(),
|
|
1056
|
-
title:
|
|
1057
|
-
modelValue:
|
|
1058
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
1193
|
+
return (v, h) => {
|
|
1194
|
+
const w = M("el-col"), x = M("el-row"), D = M("el-option"), V = M("el-select"), y = M("el-tab-pane"), z = M("el-table-column"), B = M("el-button"), R = M("el-table"), O = M("el-tabs");
|
|
1195
|
+
return u(), L(Ne, {
|
|
1196
|
+
title: d(e)("dialog.replacementDlg.title"),
|
|
1197
|
+
modelValue: o.value,
|
|
1198
|
+
"onUpdate:modelValue": h[1] || (h[1] = ($) => o.value = $),
|
|
1059
1199
|
name: "ReplacementDlg",
|
|
1060
|
-
onOk:
|
|
1200
|
+
onOk: s
|
|
1061
1201
|
}, {
|
|
1062
|
-
default:
|
|
1063
|
-
|
|
1202
|
+
default: f(() => [
|
|
1203
|
+
m(O, {
|
|
1064
1204
|
type: "card",
|
|
1065
|
-
modelValue:
|
|
1066
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
1205
|
+
modelValue: l.value,
|
|
1206
|
+
"onUpdate:modelValue": h[0] || (h[0] = ($) => l.value = $)
|
|
1067
1207
|
}, {
|
|
1068
|
-
default:
|
|
1069
|
-
|
|
1208
|
+
default: f(() => [
|
|
1209
|
+
d(n).size > 0 ? (u(), L(y, {
|
|
1070
1210
|
key: 0,
|
|
1071
|
-
label:
|
|
1211
|
+
label: d(e)("dialog.replacementDlg.fontTabName"),
|
|
1072
1212
|
name: "font"
|
|
1073
1213
|
}, {
|
|
1074
|
-
default:
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
default:
|
|
1078
|
-
|
|
1079
|
-
default:
|
|
1080
|
-
|
|
1214
|
+
default: f(() => [
|
|
1215
|
+
c("div", null, [
|
|
1216
|
+
m(x, null, {
|
|
1217
|
+
default: f(() => [
|
|
1218
|
+
m(w, { span: 12 }, {
|
|
1219
|
+
default: f(() => [
|
|
1220
|
+
c("span", null, T(d(e)("dialog.replacementDlg.missedFont")), 1)
|
|
1081
1221
|
]),
|
|
1082
1222
|
_: 1
|
|
1083
1223
|
}),
|
|
1084
|
-
|
|
1085
|
-
default:
|
|
1086
|
-
|
|
1224
|
+
m(w, { span: 12 }, {
|
|
1225
|
+
default: f(() => [
|
|
1226
|
+
c("span", null, T(d(e)("dialog.replacementDlg.replacedFont")), 1)
|
|
1087
1227
|
]),
|
|
1088
1228
|
_: 1
|
|
1089
1229
|
})
|
|
1090
1230
|
]),
|
|
1091
1231
|
_: 1
|
|
1092
1232
|
}),
|
|
1093
|
-
(u(!0),
|
|
1094
|
-
key:
|
|
1233
|
+
(u(!0), _(j, null, K(d(n), ([$, F]) => (u(), L(x, {
|
|
1234
|
+
key: $,
|
|
1095
1235
|
style: { "margin-top": "10px" }
|
|
1096
1236
|
}, {
|
|
1097
|
-
default:
|
|
1098
|
-
|
|
1099
|
-
default:
|
|
1100
|
-
|
|
1237
|
+
default: f(() => [
|
|
1238
|
+
m(w, { span: 12 }, {
|
|
1239
|
+
default: f(() => [
|
|
1240
|
+
c("span", null, T($), 1)
|
|
1101
1241
|
]),
|
|
1102
1242
|
_: 2
|
|
1103
1243
|
}, 1024),
|
|
1104
|
-
|
|
1105
|
-
default:
|
|
1106
|
-
|
|
1107
|
-
"model-value":
|
|
1108
|
-
placeholder:
|
|
1109
|
-
"onUpdate:modelValue": (
|
|
1244
|
+
m(w, { span: 12 }, {
|
|
1245
|
+
default: f(() => [
|
|
1246
|
+
m(V, {
|
|
1247
|
+
"model-value": F,
|
|
1248
|
+
placeholder: d(e)("dialog.replacementDlg.selectFont"),
|
|
1249
|
+
"onUpdate:modelValue": (G) => b($, G),
|
|
1110
1250
|
style: { width: "100%" }
|
|
1111
1251
|
}, {
|
|
1112
|
-
default:
|
|
1113
|
-
(u(!0),
|
|
1114
|
-
key:
|
|
1115
|
-
label:
|
|
1116
|
-
value:
|
|
1252
|
+
default: f(() => [
|
|
1253
|
+
(u(!0), _(j, null, K(r.value, (G, ne) => (u(), L(D, {
|
|
1254
|
+
key: ne,
|
|
1255
|
+
label: G,
|
|
1256
|
+
value: G
|
|
1117
1257
|
}, null, 8, ["label", "value"]))), 128))
|
|
1118
1258
|
]),
|
|
1119
1259
|
_: 2
|
|
@@ -1127,39 +1267,39 @@ const Bt = /* @__PURE__ */ L({
|
|
|
1127
1267
|
])
|
|
1128
1268
|
]),
|
|
1129
1269
|
_: 1
|
|
1130
|
-
}, 8, ["label"])) :
|
|
1131
|
-
|
|
1270
|
+
}, 8, ["label"])) : H("", !0),
|
|
1271
|
+
d(i).size > 0 ? (u(), L(y, {
|
|
1132
1272
|
key: 1,
|
|
1133
|
-
label:
|
|
1273
|
+
label: d(e)("dialog.replacementDlg.imageTabName"),
|
|
1134
1274
|
name: "image"
|
|
1135
1275
|
}, {
|
|
1136
|
-
default:
|
|
1137
|
-
|
|
1138
|
-
data: Array.from(
|
|
1276
|
+
default: f(() => [
|
|
1277
|
+
m(R, {
|
|
1278
|
+
data: Array.from(d(i).values()),
|
|
1139
1279
|
style: { width: "100%" },
|
|
1140
1280
|
"v-show": !1
|
|
1141
1281
|
}, {
|
|
1142
|
-
default:
|
|
1143
|
-
|
|
1144
|
-
label:
|
|
1282
|
+
default: f(() => [
|
|
1283
|
+
m(z, {
|
|
1284
|
+
label: d(e)("dialog.replacementDlg.file"),
|
|
1145
1285
|
prop: "fileName",
|
|
1146
1286
|
"min-width": 0,
|
|
1147
1287
|
flex: 1
|
|
1148
1288
|
}, null, 8, ["label"]),
|
|
1149
|
-
|
|
1150
|
-
label:
|
|
1289
|
+
m(z, {
|
|
1290
|
+
label: d(e)("dialog.replacementDlg.replace"),
|
|
1151
1291
|
fixed: "right",
|
|
1152
1292
|
width: "60"
|
|
1153
1293
|
}, {
|
|
1154
|
-
default:
|
|
1155
|
-
|
|
1294
|
+
default: f(({ row: $ }) => [
|
|
1295
|
+
m(B, {
|
|
1156
1296
|
link: "",
|
|
1157
1297
|
type: "primary",
|
|
1158
1298
|
size: "small",
|
|
1159
|
-
onClick: (
|
|
1299
|
+
onClick: (F) => p($)
|
|
1160
1300
|
}, {
|
|
1161
|
-
default:
|
|
1162
|
-
|
|
1301
|
+
default: f(() => h[2] || (h[2] = [
|
|
1302
|
+
N(" ... ", -1)
|
|
1163
1303
|
])),
|
|
1164
1304
|
_: 2,
|
|
1165
1305
|
__: [2]
|
|
@@ -1170,17 +1310,17 @@ const Bt = /* @__PURE__ */ L({
|
|
|
1170
1310
|
]),
|
|
1171
1311
|
_: 1
|
|
1172
1312
|
}, 8, ["data"]),
|
|
1173
|
-
|
|
1313
|
+
c("input", {
|
|
1174
1314
|
type: "file",
|
|
1175
1315
|
ref_key: "fileInput",
|
|
1176
1316
|
ref: a,
|
|
1177
1317
|
accept: ".png,.jpg,.jpeg",
|
|
1178
|
-
onChange:
|
|
1318
|
+
onChange: g,
|
|
1179
1319
|
style: { display: "none" }
|
|
1180
1320
|
}, null, 544)
|
|
1181
1321
|
]),
|
|
1182
1322
|
_: 1
|
|
1183
|
-
}, 8, ["label"])) :
|
|
1323
|
+
}, 8, ["label"])) : H("", !0)
|
|
1184
1324
|
]),
|
|
1185
1325
|
_: 1
|
|
1186
1326
|
}, 8, ["modelValue"])
|
|
@@ -1189,29 +1329,29 @@ const Bt = /* @__PURE__ */ L({
|
|
|
1189
1329
|
}, 8, ["title", "modelValue"]);
|
|
1190
1330
|
};
|
|
1191
1331
|
}
|
|
1192
|
-
}),
|
|
1332
|
+
}), Gt = {
|
|
1193
1333
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1194
1334
|
width: "1em",
|
|
1195
1335
|
height: "1em",
|
|
1196
1336
|
viewBox: "0 0 15 15"
|
|
1197
1337
|
};
|
|
1198
|
-
function
|
|
1199
|
-
return u(),
|
|
1200
|
-
|
|
1338
|
+
function Wt(t, e) {
|
|
1339
|
+
return u(), _("svg", Gt, e[0] || (e[0] = [
|
|
1340
|
+
c("path", {
|
|
1201
1341
|
fill: "currentColor",
|
|
1202
1342
|
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"
|
|
1203
1343
|
}, null, -1)
|
|
1204
1344
|
]));
|
|
1205
1345
|
}
|
|
1206
|
-
const
|
|
1346
|
+
const Le = { render: Wt }, Ut = {
|
|
1207
1347
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1208
1348
|
width: "1em",
|
|
1209
1349
|
height: "1em",
|
|
1210
1350
|
viewBox: "0 0 512 512"
|
|
1211
1351
|
};
|
|
1212
|
-
function
|
|
1213
|
-
return u(),
|
|
1214
|
-
|
|
1352
|
+
function qt(t, e) {
|
|
1353
|
+
return u(), _("svg", Ut, e[0] || (e[0] = [
|
|
1354
|
+
c("path", {
|
|
1215
1355
|
fill: "none",
|
|
1216
1356
|
stroke: "currentColor",
|
|
1217
1357
|
"stroke-linecap": "round",
|
|
@@ -1219,7 +1359,7 @@ function Rt(t, e) {
|
|
|
1219
1359
|
"stroke-width": "32",
|
|
1220
1360
|
d: "m434.8 137.65-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"
|
|
1221
1361
|
}, null, -1),
|
|
1222
|
-
|
|
1362
|
+
c("path", {
|
|
1223
1363
|
fill: "none",
|
|
1224
1364
|
stroke: "currentColor",
|
|
1225
1365
|
"stroke-linecap": "round",
|
|
@@ -1229,373 +1369,373 @@ function Rt(t, e) {
|
|
|
1229
1369
|
}, null, -1)
|
|
1230
1370
|
]));
|
|
1231
1371
|
}
|
|
1232
|
-
const
|
|
1372
|
+
const jt = { render: qt }, Yt = {
|
|
1233
1373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1234
1374
|
width: "1em",
|
|
1235
1375
|
height: "1em",
|
|
1236
1376
|
viewBox: "0 0 20 20"
|
|
1237
1377
|
};
|
|
1238
|
-
function
|
|
1239
|
-
return u(),
|
|
1240
|
-
|
|
1378
|
+
function Kt(t, e) {
|
|
1379
|
+
return u(), _("svg", Yt, e[0] || (e[0] = [
|
|
1380
|
+
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)
|
|
1241
1381
|
]));
|
|
1242
1382
|
}
|
|
1243
|
-
const
|
|
1383
|
+
const Xt = { render: Kt }, Qt = {
|
|
1244
1384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1245
1385
|
width: "1em",
|
|
1246
1386
|
height: "1em",
|
|
1247
1387
|
viewBox: "0 0 20 20"
|
|
1248
1388
|
};
|
|
1249
|
-
function
|
|
1250
|
-
return u(),
|
|
1251
|
-
|
|
1389
|
+
function Zt(t, e) {
|
|
1390
|
+
return u(), _("svg", Qt, e[0] || (e[0] = [
|
|
1391
|
+
c("path", {
|
|
1252
1392
|
fill: "currentColor",
|
|
1253
1393
|
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"
|
|
1254
1394
|
}, null, -1)
|
|
1255
1395
|
]));
|
|
1256
1396
|
}
|
|
1257
|
-
const
|
|
1397
|
+
const Jt = { render: Zt }, en = {
|
|
1258
1398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1259
1399
|
width: "1em",
|
|
1260
1400
|
height: "1em",
|
|
1261
1401
|
viewBox: "0 0 20 20"
|
|
1262
1402
|
};
|
|
1263
|
-
function
|
|
1264
|
-
return u(),
|
|
1265
|
-
|
|
1403
|
+
function tn(t, e) {
|
|
1404
|
+
return u(), _("svg", en, e[0] || (e[0] = [
|
|
1405
|
+
c("path", {
|
|
1266
1406
|
fill: "currentColor",
|
|
1267
1407
|
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"
|
|
1268
1408
|
}, null, -1)
|
|
1269
1409
|
]));
|
|
1270
1410
|
}
|
|
1271
|
-
const
|
|
1411
|
+
const nn = { render: tn }, on = {
|
|
1272
1412
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1273
1413
|
width: "1em",
|
|
1274
1414
|
height: "1em",
|
|
1275
1415
|
viewBox: "0 0 20 20"
|
|
1276
1416
|
};
|
|
1277
|
-
function
|
|
1278
|
-
return u(),
|
|
1279
|
-
|
|
1417
|
+
function ln(t, e) {
|
|
1418
|
+
return u(), _("svg", on, e[0] || (e[0] = [
|
|
1419
|
+
c("path", {
|
|
1280
1420
|
fill: "currentColor",
|
|
1281
1421
|
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"
|
|
1282
1422
|
}, null, -1)
|
|
1283
1423
|
]));
|
|
1284
1424
|
}
|
|
1285
|
-
const
|
|
1425
|
+
const an = { render: ln }, sn = {
|
|
1286
1426
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1287
1427
|
width: "1em",
|
|
1288
1428
|
height: "1em",
|
|
1289
1429
|
viewBox: "0 0 20 20"
|
|
1290
1430
|
};
|
|
1291
|
-
function
|
|
1292
|
-
return u(),
|
|
1293
|
-
|
|
1431
|
+
function rn(t, e) {
|
|
1432
|
+
return u(), _("svg", sn, e[0] || (e[0] = [
|
|
1433
|
+
c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
|
|
1294
1434
|
]));
|
|
1295
1435
|
}
|
|
1296
|
-
const
|
|
1436
|
+
const cn = { render: rn }, un = {
|
|
1297
1437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1298
1438
|
width: "1em",
|
|
1299
1439
|
height: "1em",
|
|
1300
1440
|
viewBox: "0 0 20 20"
|
|
1301
1441
|
};
|
|
1302
|
-
function
|
|
1303
|
-
return u(),
|
|
1442
|
+
function dn(t, e) {
|
|
1443
|
+
return u(), _("svg", un);
|
|
1304
1444
|
}
|
|
1305
|
-
const
|
|
1445
|
+
const mn = { render: dn }, pn = {
|
|
1306
1446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1307
1447
|
width: "1em",
|
|
1308
1448
|
height: "1em",
|
|
1309
1449
|
viewBox: "0 0 20 20"
|
|
1310
1450
|
};
|
|
1311
|
-
function
|
|
1312
|
-
return u(),
|
|
1313
|
-
|
|
1314
|
-
|
|
1451
|
+
function fn(t, e) {
|
|
1452
|
+
return u(), _("svg", pn, e[0] || (e[0] = [
|
|
1453
|
+
c("path", { d: "M2 9.5h16v1H2z" }, null, -1),
|
|
1454
|
+
c("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
|
|
1315
1455
|
]));
|
|
1316
1456
|
}
|
|
1317
|
-
const
|
|
1457
|
+
const vn = { render: fn }, gn = {
|
|
1318
1458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1319
1459
|
width: "1em",
|
|
1320
1460
|
height: "1em",
|
|
1321
1461
|
viewBox: "0 0 20 20"
|
|
1322
1462
|
};
|
|
1323
|
-
function
|
|
1324
|
-
return u(),
|
|
1325
|
-
|
|
1326
|
-
|
|
1463
|
+
function hn(t, e) {
|
|
1464
|
+
return u(), _("svg", gn, e[0] || (e[0] = [
|
|
1465
|
+
c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1466
|
+
c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
1327
1467
|
]));
|
|
1328
1468
|
}
|
|
1329
|
-
const
|
|
1469
|
+
const _n = { render: hn }, wn = {
|
|
1330
1470
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1331
1471
|
width: "1em",
|
|
1332
1472
|
height: "1em",
|
|
1333
1473
|
viewBox: "0 0 20 20"
|
|
1334
1474
|
};
|
|
1335
|
-
function
|
|
1336
|
-
return u(),
|
|
1337
|
-
|
|
1475
|
+
function yn(t, e) {
|
|
1476
|
+
return u(), _("svg", wn, e[0] || (e[0] = [
|
|
1477
|
+
c("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
|
|
1338
1478
|
]));
|
|
1339
1479
|
}
|
|
1340
|
-
const
|
|
1480
|
+
const bn = { render: yn }, xn = {
|
|
1341
1481
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1342
1482
|
width: "1em",
|
|
1343
1483
|
height: "1em",
|
|
1344
1484
|
viewBox: "0 0 20 20"
|
|
1345
1485
|
};
|
|
1346
|
-
function
|
|
1347
|
-
return u(),
|
|
1348
|
-
|
|
1349
|
-
|
|
1486
|
+
function kn(t, e) {
|
|
1487
|
+
return u(), _("svg", xn, e[0] || (e[0] = [
|
|
1488
|
+
c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1489
|
+
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)
|
|
1350
1490
|
]));
|
|
1351
1491
|
}
|
|
1352
|
-
const
|
|
1492
|
+
const Mn = { render: kn }, Cn = {
|
|
1353
1493
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1354
1494
|
width: "1em",
|
|
1355
1495
|
height: "1em",
|
|
1356
1496
|
viewBox: "0 0 20 20"
|
|
1357
1497
|
};
|
|
1358
|
-
function
|
|
1359
|
-
return u(),
|
|
1360
|
-
|
|
1498
|
+
function Sn(t, e) {
|
|
1499
|
+
return u(), _("svg", Cn, e[0] || (e[0] = [
|
|
1500
|
+
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)
|
|
1361
1501
|
]));
|
|
1362
1502
|
}
|
|
1363
|
-
const
|
|
1503
|
+
const Ln = { render: Sn }, zn = {
|
|
1364
1504
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1365
1505
|
width: "1em",
|
|
1366
1506
|
height: "1em",
|
|
1367
1507
|
viewBox: "0 0 20 20"
|
|
1368
1508
|
};
|
|
1369
|
-
function
|
|
1370
|
-
return u(),
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1509
|
+
function Bn(t, e) {
|
|
1510
|
+
return u(), _("svg", zn, e[0] || (e[0] = [
|
|
1511
|
+
c("path", { d: "M3 9.5h14v1H3z" }, null, -1),
|
|
1512
|
+
c("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
|
|
1513
|
+
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)
|
|
1374
1514
|
]));
|
|
1375
1515
|
}
|
|
1376
|
-
const
|
|
1516
|
+
const Dn = { render: Bn }, Tn = {
|
|
1377
1517
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1378
1518
|
width: "1em",
|
|
1379
1519
|
height: "1em",
|
|
1380
1520
|
viewBox: "0 0 20 20"
|
|
1381
1521
|
};
|
|
1382
|
-
function
|
|
1383
|
-
return u(),
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1522
|
+
function $n(t, e) {
|
|
1523
|
+
return u(), _("svg", Tn, e[0] || (e[0] = [
|
|
1524
|
+
c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1525
|
+
c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
1526
|
+
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)
|
|
1387
1527
|
]));
|
|
1388
1528
|
}
|
|
1389
|
-
const
|
|
1529
|
+
const En = { render: $n }, An = {
|
|
1390
1530
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1391
1531
|
width: "1em",
|
|
1392
1532
|
height: "1em",
|
|
1393
1533
|
viewBox: "0 0 20 20"
|
|
1394
1534
|
};
|
|
1395
|
-
function
|
|
1396
|
-
return u(),
|
|
1397
|
-
|
|
1398
|
-
|
|
1535
|
+
function Vn(t, e) {
|
|
1536
|
+
return u(), _("svg", An, e[0] || (e[0] = [
|
|
1537
|
+
c("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
1538
|
+
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)
|
|
1399
1539
|
]));
|
|
1400
1540
|
}
|
|
1401
|
-
const
|
|
1541
|
+
const Fn = { render: Vn }, Nn = {
|
|
1402
1542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1403
1543
|
width: "1em",
|
|
1404
1544
|
height: "1em",
|
|
1405
1545
|
viewBox: "0 0 20 20"
|
|
1406
1546
|
};
|
|
1407
|
-
function
|
|
1408
|
-
return u(),
|
|
1409
|
-
|
|
1410
|
-
|
|
1547
|
+
function In(t, e) {
|
|
1548
|
+
return u(), _("svg", Nn, e[0] || (e[0] = [
|
|
1549
|
+
c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1550
|
+
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1411
1551
|
]));
|
|
1412
1552
|
}
|
|
1413
|
-
const
|
|
1553
|
+
const Rn = { render: In }, On = {
|
|
1414
1554
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1415
1555
|
width: "1em",
|
|
1416
1556
|
height: "1em",
|
|
1417
1557
|
viewBox: "0 0 20 20"
|
|
1418
1558
|
};
|
|
1419
|
-
function
|
|
1420
|
-
return u(),
|
|
1421
|
-
|
|
1559
|
+
function Pn(t, e) {
|
|
1560
|
+
return u(), _("svg", On, e[0] || (e[0] = [
|
|
1561
|
+
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1422
1562
|
]));
|
|
1423
1563
|
}
|
|
1424
|
-
const
|
|
1564
|
+
const Hn = { render: Pn }, Gn = {
|
|
1425
1565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1426
1566
|
width: "1em",
|
|
1427
1567
|
height: "1em",
|
|
1428
1568
|
viewBox: "0 0 20 20"
|
|
1429
1569
|
};
|
|
1430
|
-
function
|
|
1431
|
-
return u(),
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1570
|
+
function Wn(t, e) {
|
|
1571
|
+
return u(), _("svg", Gn, e[0] || (e[0] = [
|
|
1572
|
+
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1573
|
+
c("path", { d: "M3 9.58h14v1H3z" }, null, -1),
|
|
1574
|
+
c("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
|
|
1435
1575
|
]));
|
|
1436
1576
|
}
|
|
1437
|
-
const
|
|
1577
|
+
const Un = { render: Wn }, qn = {
|
|
1438
1578
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1439
1579
|
width: "1em",
|
|
1440
1580
|
height: "1em",
|
|
1441
1581
|
viewBox: "0 0 20 20"
|
|
1442
1582
|
};
|
|
1443
|
-
function
|
|
1444
|
-
return u(),
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1583
|
+
function jn(t, e) {
|
|
1584
|
+
return u(), _("svg", qn, e[0] || (e[0] = [
|
|
1585
|
+
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1586
|
+
c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1587
|
+
c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
1448
1588
|
]));
|
|
1449
1589
|
}
|
|
1450
|
-
const
|
|
1590
|
+
const Yn = { render: jn }, Kn = {
|
|
1451
1591
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1452
1592
|
width: "1em",
|
|
1453
1593
|
height: "1em",
|
|
1454
1594
|
viewBox: "0 0 20 20"
|
|
1455
1595
|
};
|
|
1456
|
-
function
|
|
1457
|
-
return u(),
|
|
1458
|
-
|
|
1459
|
-
|
|
1596
|
+
function Xn(t, e) {
|
|
1597
|
+
return u(), _("svg", Kn, e[0] || (e[0] = [
|
|
1598
|
+
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1599
|
+
c("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
|
|
1460
1600
|
]));
|
|
1461
1601
|
}
|
|
1462
|
-
const
|
|
1602
|
+
const Qn = { render: Xn }, Zn = {
|
|
1463
1603
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1464
1604
|
width: "1em",
|
|
1465
1605
|
height: "1em",
|
|
1466
1606
|
viewBox: "0 0 20 20"
|
|
1467
1607
|
};
|
|
1468
|
-
function
|
|
1469
|
-
return u(),
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1608
|
+
function Jn(t, e) {
|
|
1609
|
+
return u(), _("svg", Zn, e[0] || (e[0] = [
|
|
1610
|
+
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1611
|
+
c("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1612
|
+
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)
|
|
1473
1613
|
]));
|
|
1474
1614
|
}
|
|
1475
|
-
const
|
|
1615
|
+
const eo = { render: Jn }, to = {
|
|
1476
1616
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1477
1617
|
width: "1em",
|
|
1478
1618
|
height: "1em",
|
|
1479
1619
|
viewBox: "0 0 20 20"
|
|
1480
1620
|
};
|
|
1481
|
-
function
|
|
1482
|
-
return u(),
|
|
1483
|
-
|
|
1484
|
-
|
|
1621
|
+
function no(t, e) {
|
|
1622
|
+
return u(), _("svg", to, e[0] || (e[0] = [
|
|
1623
|
+
c("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1624
|
+
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)
|
|
1485
1625
|
]));
|
|
1486
1626
|
}
|
|
1487
|
-
const
|
|
1627
|
+
const oo = { render: no }, lo = {
|
|
1488
1628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1489
1629
|
width: "1em",
|
|
1490
1630
|
height: "1em",
|
|
1491
1631
|
viewBox: "0 0 20 20"
|
|
1492
1632
|
};
|
|
1493
|
-
function
|
|
1494
|
-
return u(),
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1633
|
+
function ao(t, e) {
|
|
1634
|
+
return u(), _("svg", lo, e[0] || (e[0] = [
|
|
1635
|
+
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1636
|
+
c("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
|
|
1637
|
+
c("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
|
|
1638
|
+
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)
|
|
1499
1639
|
]));
|
|
1500
1640
|
}
|
|
1501
|
-
const
|
|
1641
|
+
const io = { render: ao }, so = {
|
|
1502
1642
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1503
1643
|
width: "1em",
|
|
1504
1644
|
height: "1em",
|
|
1505
1645
|
viewBox: "0 0 20 20"
|
|
1506
1646
|
};
|
|
1507
|
-
function
|
|
1508
|
-
return u(),
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1647
|
+
function ro(t, e) {
|
|
1648
|
+
return u(), _("svg", so, e[0] || (e[0] = [
|
|
1649
|
+
c("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1650
|
+
c("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
1651
|
+
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1652
|
+
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)
|
|
1513
1653
|
]));
|
|
1514
1654
|
}
|
|
1515
|
-
const
|
|
1655
|
+
const co = { render: ro }, uo = {
|
|
1516
1656
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1517
1657
|
width: "1em",
|
|
1518
1658
|
height: "1em",
|
|
1519
1659
|
viewBox: "0 0 20 20"
|
|
1520
1660
|
};
|
|
1521
|
-
function
|
|
1522
|
-
return u(),
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1661
|
+
function mo(t, e) {
|
|
1662
|
+
return u(), _("svg", uo, e[0] || (e[0] = [
|
|
1663
|
+
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1664
|
+
c("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
1665
|
+
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)
|
|
1526
1666
|
]));
|
|
1527
1667
|
}
|
|
1528
|
-
const
|
|
1668
|
+
const po = { render: mo }, fo = /* @__PURE__ */ S({
|
|
1529
1669
|
__name: "MlPointStyleDlg",
|
|
1530
1670
|
setup(t) {
|
|
1531
|
-
const { t: e } = P(), n =
|
|
1671
|
+
const { t: e } = P(), n = Nt(E.instance), i = k(!0), o = k(0), l = [
|
|
1532
1672
|
[
|
|
1533
|
-
{ id: 0, icon:
|
|
1534
|
-
{ id: 1, icon:
|
|
1535
|
-
{ id: 2, icon:
|
|
1536
|
-
{ id: 3, icon:
|
|
1537
|
-
{ id: 4, icon:
|
|
1673
|
+
{ id: 0, icon: cn },
|
|
1674
|
+
{ id: 1, icon: mn },
|
|
1675
|
+
{ id: 2, icon: vn },
|
|
1676
|
+
{ id: 3, icon: _n },
|
|
1677
|
+
{ id: 4, icon: bn }
|
|
1538
1678
|
],
|
|
1539
1679
|
[
|
|
1540
|
-
{ id: 32, icon:
|
|
1541
|
-
{ id: 33, icon:
|
|
1542
|
-
{ id: 34, icon:
|
|
1543
|
-
{ id: 35, icon:
|
|
1544
|
-
{ id: 36, icon:
|
|
1680
|
+
{ id: 32, icon: Mn },
|
|
1681
|
+
{ id: 33, icon: Ln },
|
|
1682
|
+
{ id: 34, icon: Dn },
|
|
1683
|
+
{ id: 35, icon: En },
|
|
1684
|
+
{ id: 36, icon: Fn }
|
|
1545
1685
|
],
|
|
1546
1686
|
[
|
|
1547
|
-
{ id: 64, icon:
|
|
1548
|
-
{ id: 65, icon:
|
|
1549
|
-
{ id: 66, icon:
|
|
1550
|
-
{ id: 67, icon:
|
|
1551
|
-
{ id: 68, icon:
|
|
1687
|
+
{ id: 64, icon: Rn },
|
|
1688
|
+
{ id: 65, icon: Hn },
|
|
1689
|
+
{ id: 66, icon: Un },
|
|
1690
|
+
{ id: 67, icon: Yn },
|
|
1691
|
+
{ id: 68, icon: Qn }
|
|
1552
1692
|
],
|
|
1553
1693
|
[
|
|
1554
|
-
{ id: 96, icon:
|
|
1555
|
-
{ id: 97, icon:
|
|
1556
|
-
{ id: 98, icon:
|
|
1557
|
-
{ id: 99, icon:
|
|
1558
|
-
{ id: 100, icon:
|
|
1694
|
+
{ id: 96, icon: eo },
|
|
1695
|
+
{ id: 97, icon: oo },
|
|
1696
|
+
{ id: 98, icon: io },
|
|
1697
|
+
{ id: 99, icon: co },
|
|
1698
|
+
{ id: 100, icon: po }
|
|
1559
1699
|
]
|
|
1560
1700
|
], a = () => {
|
|
1561
|
-
n.pdmode && (
|
|
1701
|
+
n.pdmode && (o.value = n.pdmode);
|
|
1562
1702
|
};
|
|
1563
1703
|
a();
|
|
1564
|
-
const
|
|
1565
|
-
|
|
1566
|
-
},
|
|
1567
|
-
|
|
1568
|
-
},
|
|
1704
|
+
const r = (b, v) => l[b][v].id == o.value ? "primary" : null, s = (b, v) => {
|
|
1705
|
+
o.value = l[b][v].id;
|
|
1706
|
+
}, p = () => {
|
|
1707
|
+
E.instance.curDocument.database.pdmode = o.value;
|
|
1708
|
+
}, g = () => {
|
|
1569
1709
|
a();
|
|
1570
1710
|
};
|
|
1571
|
-
return (
|
|
1572
|
-
const h = M("el-button"),
|
|
1573
|
-
return u(),
|
|
1574
|
-
title:
|
|
1711
|
+
return (b, v) => {
|
|
1712
|
+
const h = M("el-button"), w = M("el-col"), x = M("el-row");
|
|
1713
|
+
return u(), L(Ne, {
|
|
1714
|
+
title: d(e)("dialog.pointStyleDlg.title"),
|
|
1575
1715
|
width: 400,
|
|
1576
1716
|
modelValue: i.value,
|
|
1577
|
-
"onUpdate:modelValue":
|
|
1717
|
+
"onUpdate:modelValue": v[0] || (v[0] = (D) => i.value = D),
|
|
1578
1718
|
name: "PointStyleDlg",
|
|
1579
|
-
onOk:
|
|
1580
|
-
onCancel:
|
|
1719
|
+
onOk: p,
|
|
1720
|
+
onCancel: g
|
|
1581
1721
|
}, {
|
|
1582
|
-
default:
|
|
1583
|
-
(u(),
|
|
1584
|
-
key:
|
|
1722
|
+
default: f(() => [
|
|
1723
|
+
(u(), _(j, null, K(l, (D, V) => m(x, {
|
|
1724
|
+
key: V,
|
|
1585
1725
|
style: { "margin-top": "10px" },
|
|
1586
1726
|
gutter: 6,
|
|
1587
1727
|
justify: "space-between"
|
|
1588
1728
|
}, {
|
|
1589
|
-
default:
|
|
1590
|
-
(u(!0),
|
|
1591
|
-
key:
|
|
1729
|
+
default: f(() => [
|
|
1730
|
+
(u(!0), _(j, null, K(D, (y, z) => (u(), L(w, {
|
|
1731
|
+
key: z,
|
|
1592
1732
|
span: 4
|
|
1593
1733
|
}, {
|
|
1594
|
-
default:
|
|
1595
|
-
|
|
1596
|
-
icon:
|
|
1597
|
-
type:
|
|
1598
|
-
onClick: (B) =>
|
|
1734
|
+
default: f(() => [
|
|
1735
|
+
m(h, {
|
|
1736
|
+
icon: y.icon,
|
|
1737
|
+
type: r(V, z),
|
|
1738
|
+
onClick: (B) => s(V, z),
|
|
1599
1739
|
style: { "font-size": "25px" }
|
|
1600
1740
|
}, null, 8, ["icon", "type", "onClick"])
|
|
1601
1741
|
]),
|
|
@@ -1620,35 +1760,35 @@ const lo = { render: oo }, ao = /* @__PURE__ */ L({
|
|
|
1620
1760
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
1621
1761
|
}
|
|
1622
1762
|
})();
|
|
1623
|
-
const
|
|
1763
|
+
const vo = {
|
|
1624
1764
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1625
1765
|
width: "1em",
|
|
1626
1766
|
height: "1em",
|
|
1627
1767
|
viewBox: "0 0 1024 1024"
|
|
1628
|
-
},
|
|
1768
|
+
}, go = /* @__PURE__ */ c("path", {
|
|
1629
1769
|
fill: "currentColor",
|
|
1630
1770
|
d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
|
|
1631
|
-
}, null, -1),
|
|
1632
|
-
|
|
1771
|
+
}, null, -1), ho = [
|
|
1772
|
+
go
|
|
1633
1773
|
];
|
|
1634
|
-
function
|
|
1635
|
-
return u(),
|
|
1774
|
+
function _o(t, e) {
|
|
1775
|
+
return u(), _("svg", vo, [...ho]);
|
|
1636
1776
|
}
|
|
1637
|
-
const
|
|
1777
|
+
const ze = { render: _o }, wo = {
|
|
1638
1778
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1639
1779
|
width: "1em",
|
|
1640
1780
|
height: "1em",
|
|
1641
1781
|
viewBox: "0 0 1024 1024"
|
|
1642
|
-
},
|
|
1782
|
+
}, yo = /* @__PURE__ */ c("path", {
|
|
1643
1783
|
fill: "currentColor",
|
|
1644
1784
|
d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
1645
|
-
}, null, -1),
|
|
1646
|
-
|
|
1785
|
+
}, null, -1), bo = [
|
|
1786
|
+
yo
|
|
1647
1787
|
];
|
|
1648
|
-
function
|
|
1649
|
-
return u(),
|
|
1788
|
+
function xo(t, e) {
|
|
1789
|
+
return u(), _("svg", wo, [...bo]);
|
|
1650
1790
|
}
|
|
1651
|
-
const
|
|
1791
|
+
const Be = { render: xo }, ko = /* @__PURE__ */ S({
|
|
1652
1792
|
__name: "MlCollapse",
|
|
1653
1793
|
props: /* @__PURE__ */ J({
|
|
1654
1794
|
size: { default: 18 },
|
|
@@ -1659,34 +1799,34 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
|
|
|
1659
1799
|
}),
|
|
1660
1800
|
emits: /* @__PURE__ */ J(["change"], ["update:modelValue"]),
|
|
1661
1801
|
setup(t, { emit: e }) {
|
|
1662
|
-
const n = t, i =
|
|
1663
|
-
|
|
1802
|
+
const n = t, i = _e(t, "modelValue"), o = e, l = C(() => n.reverse ? i.value ? ze : Be : i.value ? Be : ze), a = C(() => `${n.size}px`), r = () => {
|
|
1803
|
+
o("change", i.value), i.value = !i.value;
|
|
1664
1804
|
};
|
|
1665
|
-
return (
|
|
1666
|
-
const
|
|
1667
|
-
return u(),
|
|
1805
|
+
return (s, p) => {
|
|
1806
|
+
const g = de;
|
|
1807
|
+
return u(), L(g, {
|
|
1668
1808
|
size: a.value,
|
|
1669
|
-
onClick:
|
|
1809
|
+
onClick: r
|
|
1670
1810
|
}, {
|
|
1671
|
-
default:
|
|
1672
|
-
(u(),
|
|
1811
|
+
default: f(() => [
|
|
1812
|
+
(u(), L(ue(l.value)))
|
|
1673
1813
|
]),
|
|
1674
1814
|
_: 1
|
|
1675
1815
|
}, 8, ["size"]);
|
|
1676
1816
|
};
|
|
1677
1817
|
}
|
|
1678
|
-
}),
|
|
1818
|
+
}), Mo = (t) => (Ee("data-v-3fc33b5d"), t = t(), Ae(), t), Co = /* @__PURE__ */ Mo(() => /* @__PURE__ */ c("svg", {
|
|
1679
1819
|
preserveAspectRatio: "xMidYMid meet",
|
|
1680
1820
|
viewBox: "0 0 24 24",
|
|
1681
1821
|
width: "1.2em",
|
|
1682
1822
|
height: "1.2em",
|
|
1683
1823
|
"data-v-63d067da": ""
|
|
1684
1824
|
}, [
|
|
1685
|
-
/* @__PURE__ */
|
|
1825
|
+
/* @__PURE__ */ c("path", {
|
|
1686
1826
|
fill: "currentColor",
|
|
1687
1827
|
d: "m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"
|
|
1688
1828
|
})
|
|
1689
|
-
], -1)),
|
|
1829
|
+
], -1)), So = /* @__PURE__ */ S({
|
|
1690
1830
|
__name: "MlDropdown",
|
|
1691
1831
|
props: {
|
|
1692
1832
|
icon: {},
|
|
@@ -1697,21 +1837,21 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
|
|
|
1697
1837
|
click: null
|
|
1698
1838
|
},
|
|
1699
1839
|
setup(t, { emit: e }) {
|
|
1700
|
-
const n = t, i = e,
|
|
1840
|
+
const n = t, i = e, o = C(() => n.items.filter((a) => a.name !== n.current)), l = (a) => {
|
|
1701
1841
|
i("click", a);
|
|
1702
1842
|
};
|
|
1703
|
-
return (a,
|
|
1704
|
-
const
|
|
1705
|
-
return u(),
|
|
1706
|
-
dropdown:
|
|
1707
|
-
|
|
1708
|
-
default:
|
|
1709
|
-
(u(!0),
|
|
1710
|
-
key:
|
|
1711
|
-
command:
|
|
1843
|
+
return (a, r) => {
|
|
1844
|
+
const s = de, p = ct, g = rt, b = st;
|
|
1845
|
+
return u(), L(b, { onCommand: l }, {
|
|
1846
|
+
dropdown: f(() => [
|
|
1847
|
+
m(g, null, {
|
|
1848
|
+
default: f(() => [
|
|
1849
|
+
(u(!0), _(j, null, K(o.value, (v) => (u(), L(p, {
|
|
1850
|
+
key: v.text,
|
|
1851
|
+
command: v.name
|
|
1712
1852
|
}, {
|
|
1713
|
-
default:
|
|
1714
|
-
|
|
1853
|
+
default: f(() => [
|
|
1854
|
+
N(T(v.text), 1)
|
|
1715
1855
|
]),
|
|
1716
1856
|
_: 2
|
|
1717
1857
|
}, 1032, ["command"]))), 128))
|
|
@@ -1719,13 +1859,13 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
|
|
|
1719
1859
|
_: 1
|
|
1720
1860
|
})
|
|
1721
1861
|
]),
|
|
1722
|
-
default:
|
|
1723
|
-
|
|
1862
|
+
default: f(() => [
|
|
1863
|
+
m(s, {
|
|
1724
1864
|
size: "30",
|
|
1725
1865
|
class: "ml-dropdown-icon"
|
|
1726
1866
|
}, {
|
|
1727
|
-
default:
|
|
1728
|
-
|
|
1867
|
+
default: f(() => [
|
|
1868
|
+
Co
|
|
1729
1869
|
]),
|
|
1730
1870
|
_: 1
|
|
1731
1871
|
})
|
|
@@ -1734,12 +1874,12 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
|
|
|
1734
1874
|
});
|
|
1735
1875
|
};
|
|
1736
1876
|
}
|
|
1737
|
-
}),
|
|
1877
|
+
}), fe = (t, e) => {
|
|
1738
1878
|
const n = t.__vccOpts || t;
|
|
1739
|
-
for (const [i,
|
|
1740
|
-
n[i] =
|
|
1879
|
+
for (const [i, o] of e)
|
|
1880
|
+
n[i] = o;
|
|
1741
1881
|
return n;
|
|
1742
|
-
},
|
|
1882
|
+
}, Lo = /* @__PURE__ */ fe(So, [["__scopeId", "data-v-3fc33b5d"]]), zo = '<svg preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" width="1.2em" height="1.2em" data-v-63d067da=""><path fill="currentColor" d="m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"></path></svg>', Bo = /* @__PURE__ */ S({
|
|
1743
1883
|
__name: "MlLanguage",
|
|
1744
1884
|
props: {
|
|
1745
1885
|
languages: {},
|
|
@@ -1749,31 +1889,31 @@ const ke = { render: go }, vo = /* @__PURE__ */ L({
|
|
|
1749
1889
|
click: null
|
|
1750
1890
|
},
|
|
1751
1891
|
setup(t, { emit: e }) {
|
|
1752
|
-
const n = t, i = e,
|
|
1753
|
-
i("click",
|
|
1892
|
+
const n = t, i = e, o = (l) => {
|
|
1893
|
+
i("click", l);
|
|
1754
1894
|
};
|
|
1755
|
-
return (
|
|
1756
|
-
icon:
|
|
1895
|
+
return (l, a) => (u(), L(Lo, {
|
|
1896
|
+
icon: zo,
|
|
1757
1897
|
items: n.languages,
|
|
1758
1898
|
current: n.current,
|
|
1759
|
-
onClick:
|
|
1899
|
+
onClick: o
|
|
1760
1900
|
}, null, 8, ["items", "current"]));
|
|
1761
1901
|
}
|
|
1762
|
-
}),
|
|
1763
|
-
function
|
|
1764
|
-
return u(),
|
|
1765
|
-
|
|
1766
|
-
|
|
1902
|
+
}), Do = {}, To = { class: "ml-status-bar" }, $o = { class: "ml-status-bar-left" }, Eo = { class: "ml-status-bar-right" };
|
|
1903
|
+
function Ao(t, e) {
|
|
1904
|
+
return u(), _("div", To, [
|
|
1905
|
+
c("div", $o, [
|
|
1906
|
+
re(t.$slots, "left", {}, void 0, !0)
|
|
1767
1907
|
]),
|
|
1768
|
-
|
|
1769
|
-
|
|
1908
|
+
c("div", Eo, [
|
|
1909
|
+
re(t.$slots, "right", {}, void 0, !0)
|
|
1770
1910
|
])
|
|
1771
1911
|
]);
|
|
1772
1912
|
}
|
|
1773
|
-
const
|
|
1913
|
+
const Vo = /* @__PURE__ */ fe(Do, [["render", Ao], ["__scopeId", "data-v-d6a59cf0"]]), Fo = {
|
|
1774
1914
|
key: 0,
|
|
1775
1915
|
class: "ml-toolbar-button-text"
|
|
1776
|
-
},
|
|
1916
|
+
}, No = /* @__PURE__ */ S({
|
|
1777
1917
|
__name: "MlToolBar",
|
|
1778
1918
|
props: {
|
|
1779
1919
|
items: {},
|
|
@@ -1784,7 +1924,7 @@ const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf
|
|
|
1784
1924
|
click: null
|
|
1785
1925
|
},
|
|
1786
1926
|
setup(t, { emit: e }) {
|
|
1787
|
-
const n = t, i = e,
|
|
1927
|
+
const n = t, i = e, o = C(() => n.direction === "vertical" ? "ml-vertical-toolbar-button-group" : "ml-horizontal-toolbar-button-group"), l = C(() => n.size === "small" ? 20 : 30), a = C(() => {
|
|
1788
1928
|
switch (n.size) {
|
|
1789
1929
|
case "small":
|
|
1790
1930
|
return 30;
|
|
@@ -1792,36 +1932,36 @@ const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf
|
|
|
1792
1932
|
return 50;
|
|
1793
1933
|
}
|
|
1794
1934
|
return 70;
|
|
1795
|
-
}),
|
|
1796
|
-
i("click",
|
|
1935
|
+
}), r = (g) => g.description ? g.description : g.text, s = C(() => n.size === "large"), p = (g) => {
|
|
1936
|
+
i("click", g);
|
|
1797
1937
|
};
|
|
1798
|
-
return (
|
|
1799
|
-
const
|
|
1800
|
-
return u(),
|
|
1801
|
-
class:
|
|
1938
|
+
return (g, b) => {
|
|
1939
|
+
const v = de, h = mt, w = dt, x = ut;
|
|
1940
|
+
return u(), L(x, {
|
|
1941
|
+
class: we(o.value)
|
|
1802
1942
|
}, {
|
|
1803
|
-
default:
|
|
1804
|
-
(u(!0),
|
|
1805
|
-
key:
|
|
1806
|
-
content:
|
|
1943
|
+
default: f(() => [
|
|
1944
|
+
(u(!0), _(j, null, K(g.items, (D, V) => (u(), L(w, {
|
|
1945
|
+
key: D.text,
|
|
1946
|
+
content: r(D),
|
|
1807
1947
|
"hide-after": 0
|
|
1808
1948
|
}, {
|
|
1809
|
-
default:
|
|
1810
|
-
(u(),
|
|
1949
|
+
default: f(() => [
|
|
1950
|
+
(u(), L(h, {
|
|
1811
1951
|
class: "ml-toolbar-button",
|
|
1812
|
-
style:
|
|
1813
|
-
key:
|
|
1814
|
-
onClick: (
|
|
1952
|
+
style: ge({ width: a.value + "px", height: a.value + "px" }),
|
|
1953
|
+
key: V,
|
|
1954
|
+
onClick: (y) => p(D.command)
|
|
1815
1955
|
}, {
|
|
1816
|
-
default:
|
|
1817
|
-
|
|
1818
|
-
v
|
|
1819
|
-
default:
|
|
1820
|
-
(u(),
|
|
1956
|
+
default: f(() => [
|
|
1957
|
+
c("div", null, [
|
|
1958
|
+
m(v, { size: l.value }, {
|
|
1959
|
+
default: f(() => [
|
|
1960
|
+
(u(), L(ue(D.icon)))
|
|
1821
1961
|
]),
|
|
1822
1962
|
_: 2
|
|
1823
1963
|
}, 1032, ["size"]),
|
|
1824
|
-
|
|
1964
|
+
s.value ? (u(), _("div", Fo, T(D.text), 1)) : H("", !0)
|
|
1825
1965
|
])
|
|
1826
1966
|
]),
|
|
1827
1967
|
_: 2
|
|
@@ -1834,292 +1974,292 @@ const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf
|
|
|
1834
1974
|
}, 8, ["class"]);
|
|
1835
1975
|
};
|
|
1836
1976
|
}
|
|
1837
|
-
}),
|
|
1838
|
-
function
|
|
1839
|
-
const i =
|
|
1977
|
+
}), Io = /* @__PURE__ */ fe(No, [["__scopeId", "data-v-5261c686"]]), De = 20;
|
|
1978
|
+
function Ro(t, e, n) {
|
|
1979
|
+
const i = k(!1), o = (s) => {
|
|
1840
1980
|
if (n.value && t.value) {
|
|
1841
|
-
const
|
|
1842
|
-
i.value = !
|
|
1981
|
+
const p = t.value.getBoundingClientRect(), g = s.clientX < p.left || s.clientX > p.right || s.clientY < p.top || s.clientY > p.bottom;
|
|
1982
|
+
i.value = !g;
|
|
1843
1983
|
}
|
|
1844
|
-
},
|
|
1984
|
+
}, l = () => {
|
|
1845
1985
|
n.value && (i.value = !0);
|
|
1846
1986
|
}, a = () => {
|
|
1847
|
-
e.value && e.value.addEventListener("mousemove",
|
|
1848
|
-
},
|
|
1849
|
-
e.value && e.value.removeEventListener("mousemove",
|
|
1987
|
+
e.value && e.value.addEventListener("mousemove", l), t.value && t.value.addEventListener("mousemove", l);
|
|
1988
|
+
}, r = () => {
|
|
1989
|
+
e.value && e.value.removeEventListener("mousemove", l), t.value && t.value.removeEventListener("mousemove", l);
|
|
1850
1990
|
};
|
|
1851
|
-
return
|
|
1852
|
-
window.addEventListener("mousemove",
|
|
1991
|
+
return U(() => {
|
|
1992
|
+
window.addEventListener("mousemove", o);
|
|
1853
1993
|
}), te(() => {
|
|
1854
|
-
window.removeEventListener("mousemove",
|
|
1855
|
-
}),
|
|
1856
|
-
|
|
1857
|
-
}),
|
|
1858
|
-
|
|
1994
|
+
window.removeEventListener("mousemove", o);
|
|
1995
|
+
}), A(n, (s) => {
|
|
1996
|
+
s && (i.value = !1);
|
|
1997
|
+
}), A(t, (s) => {
|
|
1998
|
+
s ? a() : r();
|
|
1859
1999
|
}), { autoOpened: i };
|
|
1860
2000
|
}
|
|
1861
|
-
function
|
|
1862
|
-
const i =
|
|
1863
|
-
x:
|
|
1864
|
-
y:
|
|
1865
|
-
}),
|
|
2001
|
+
function Oo(t, e, n) {
|
|
2002
|
+
const i = k(!1), o = k(null), l = k(null), a = { x: 0, y: 0 }, r = C(() => o.value == null || l.value == null ? { x: 0, y: 0 } : {
|
|
2003
|
+
x: o.value.x - l.value.x,
|
|
2004
|
+
y: o.value.y - l.value.y
|
|
2005
|
+
}), s = () => {
|
|
1866
2006
|
if (t.value) {
|
|
1867
|
-
const
|
|
1868
|
-
|
|
1869
|
-
x:
|
|
1870
|
-
y:
|
|
1871
|
-
},
|
|
1872
|
-
x:
|
|
1873
|
-
y:
|
|
2007
|
+
const w = t.value.getBoundingClientRect();
|
|
2008
|
+
l.value = {
|
|
2009
|
+
x: w.left,
|
|
2010
|
+
y: w.top
|
|
2011
|
+
}, o.value = {
|
|
2012
|
+
x: w.left,
|
|
2013
|
+
y: w.top
|
|
1874
2014
|
};
|
|
1875
2015
|
}
|
|
1876
|
-
},
|
|
1877
|
-
t.value && t.value.addEventListener("mousedown",
|
|
1878
|
-
},
|
|
1879
|
-
t.value && t.value.removeEventListener("mousedown",
|
|
1880
|
-
},
|
|
2016
|
+
}, p = () => {
|
|
2017
|
+
t.value && t.value.addEventListener("mousedown", b);
|
|
2018
|
+
}, g = () => {
|
|
2019
|
+
t.value && t.value.removeEventListener("mousedown", b);
|
|
2020
|
+
}, b = (w) => {
|
|
1881
2021
|
if (t.value != null) {
|
|
1882
2022
|
if (e && e.value) {
|
|
1883
|
-
const
|
|
1884
|
-
if (
|
|
2023
|
+
const x = e.value.getBoundingClientRect();
|
|
2024
|
+
if (w.clientX < x.left || w.clientX > x.right || w.clientY < x.top || w.clientY > x.bottom) return;
|
|
1885
2025
|
}
|
|
1886
|
-
i.value = !0, a.x =
|
|
2026
|
+
i.value = !0, a.x = w.clientX, a.y = w.clientY, s(), document.addEventListener("mousemove", v), document.addEventListener("mouseup", h);
|
|
1887
2027
|
}
|
|
1888
|
-
},
|
|
1889
|
-
if (i.value &&
|
|
1890
|
-
const
|
|
1891
|
-
|
|
2028
|
+
}, v = (w) => {
|
|
2029
|
+
if (i.value && l.value && o.value) {
|
|
2030
|
+
const x = window.innerWidth, D = window.innerHeight, V = t.value, y = V.getBoundingClientRect(), z = y.width, B = y.height, R = l.value.x + (w.clientX - a.x), O = l.value.y + (w.clientY - a.y);
|
|
2031
|
+
o.value.x = Math.max(
|
|
1892
2032
|
n ? n.value.offset.value.left : 0,
|
|
1893
|
-
|
|
2033
|
+
R
|
|
1894
2034
|
);
|
|
1895
|
-
const
|
|
1896
|
-
|
|
1897
|
-
n ?
|
|
1898
|
-
|
|
1899
|
-
),
|
|
2035
|
+
const $ = x - z;
|
|
2036
|
+
o.value.x = Math.min(
|
|
2037
|
+
n ? $ - n.value.offset.value.right : $,
|
|
2038
|
+
o.value.x
|
|
2039
|
+
), o.value.y = Math.max(
|
|
1900
2040
|
n ? n.value.offset.value.top : 0,
|
|
1901
|
-
Math.min(
|
|
2041
|
+
Math.min(O, D - B)
|
|
1902
2042
|
);
|
|
1903
|
-
const
|
|
1904
|
-
|
|
1905
|
-
n ?
|
|
1906
|
-
|
|
1907
|
-
),
|
|
2043
|
+
const F = D - B;
|
|
2044
|
+
o.value.y = Math.min(
|
|
2045
|
+
n ? F - n.value.offset.value.bottom : F,
|
|
2046
|
+
o.value.y
|
|
2047
|
+
), V.style.left = o.value.x + "px", V.style.top = o.value.y + "px";
|
|
1908
2048
|
}
|
|
1909
2049
|
}, h = () => {
|
|
1910
|
-
i.value = !1, document.removeEventListener("mousemove",
|
|
2050
|
+
i.value = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", h);
|
|
1911
2051
|
};
|
|
1912
|
-
return
|
|
1913
|
-
t.value && (
|
|
2052
|
+
return U(() => {
|
|
2053
|
+
t.value && (s(), p());
|
|
1914
2054
|
}), te(() => {
|
|
1915
|
-
t.value && t.value.removeEventListener("mousedown",
|
|
1916
|
-
}),
|
|
1917
|
-
|
|
2055
|
+
t.value && t.value.removeEventListener("mousedown", b);
|
|
2056
|
+
}), A(t, (w) => {
|
|
2057
|
+
w ? (s(), p()) : g();
|
|
1918
2058
|
}), {
|
|
1919
2059
|
isDragging: i,
|
|
1920
|
-
movement:
|
|
1921
|
-
position:
|
|
2060
|
+
movement: r,
|
|
2061
|
+
position: o
|
|
1922
2062
|
};
|
|
1923
2063
|
}
|
|
1924
|
-
function
|
|
1925
|
-
const i =
|
|
2064
|
+
function Po(t, e, n) {
|
|
2065
|
+
const i = k(!1), o = k("left"), { isDragging: l, movement: a, position: r } = Oo(
|
|
1926
2066
|
t,
|
|
1927
2067
|
e,
|
|
1928
2068
|
n
|
|
1929
2069
|
);
|
|
1930
|
-
return
|
|
1931
|
-
if (
|
|
1932
|
-
const
|
|
1933
|
-
|
|
2070
|
+
return A(a, (s) => {
|
|
2071
|
+
if (s && t.value) {
|
|
2072
|
+
const p = t.value.getBoundingClientRect();
|
|
2073
|
+
p.left <= n.value.offset.value.left ? (o.value = "left", i.value = !0) : window.innerWidth - p.left - p.width <= n.value.offset.value.right ? (o.value = "right", i.value = !0) : i.value = !1;
|
|
1934
2074
|
}
|
|
1935
2075
|
}), {
|
|
1936
2076
|
docked: i,
|
|
1937
|
-
orientation:
|
|
1938
|
-
isDragging:
|
|
2077
|
+
orientation: o,
|
|
2078
|
+
isDragging: l,
|
|
1939
2079
|
movement: a,
|
|
1940
|
-
position:
|
|
2080
|
+
position: r
|
|
1941
2081
|
};
|
|
1942
2082
|
}
|
|
1943
|
-
function
|
|
1944
|
-
const
|
|
1945
|
-
return
|
|
1946
|
-
|
|
1947
|
-
}),
|
|
1948
|
-
|
|
1949
|
-
}),
|
|
1950
|
-
a.value =
|
|
1951
|
-
}),
|
|
1952
|
-
|
|
2083
|
+
function Ho(t, e, n, i) {
|
|
2084
|
+
const o = k(null), l = k(null), a = k(null), r = k(null);
|
|
2085
|
+
return A(t, (s, p) => {
|
|
2086
|
+
o.value = p;
|
|
2087
|
+
}), A(e, (s, p) => {
|
|
2088
|
+
l.value = p;
|
|
2089
|
+
}), A(n, (s, p) => {
|
|
2090
|
+
a.value = p;
|
|
2091
|
+
}), A(i, (s, p) => {
|
|
2092
|
+
r.value = p;
|
|
1953
2093
|
}), {
|
|
1954
|
-
lastLeft:
|
|
1955
|
-
lastTop:
|
|
2094
|
+
lastLeft: o,
|
|
2095
|
+
lastTop: l,
|
|
1956
2096
|
lastWidth: a,
|
|
1957
|
-
lastHeight:
|
|
2097
|
+
lastHeight: r
|
|
1958
2098
|
};
|
|
1959
2099
|
}
|
|
1960
|
-
function
|
|
1961
|
-
const
|
|
1962
|
-
return
|
|
1963
|
-
(
|
|
1964
|
-
}),
|
|
1965
|
-
i.value && n.value && (
|
|
1966
|
-
}), { left:
|
|
2100
|
+
function Go(t, e, n, i) {
|
|
2101
|
+
const o = k(t.value.width), l = k(t.value.left), a = C(() => t.value.width), r = C(() => t.value.left), s = C(() => n.value ? n.value.x : null);
|
|
2102
|
+
return A([a, r], ([p, g]) => {
|
|
2103
|
+
(o.value == null || l.value == null || e.value) && (o.value = p, l.value = g);
|
|
2104
|
+
}), A(s, (p) => {
|
|
2105
|
+
i.value && n.value && (l.value = p);
|
|
2106
|
+
}), { left: l, width: o };
|
|
1967
2107
|
}
|
|
1968
|
-
function
|
|
1969
|
-
const n =
|
|
2108
|
+
function Wo(t, e = k({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
2109
|
+
const n = k({});
|
|
1970
2110
|
let i = !1;
|
|
1971
|
-
const
|
|
2111
|
+
const o = () => {
|
|
1972
2112
|
if (!i && t.value) {
|
|
1973
|
-
const
|
|
1974
|
-
n.value.left = Math.max(
|
|
2113
|
+
const l = t.value.getBoundingClientRect();
|
|
2114
|
+
n.value.left = Math.max(l.left, e.value.left), n.value.top = Math.max(l.top, e.value.top), n.value.width = l.width, n.value.height = l.height, i = !0;
|
|
1975
2115
|
}
|
|
1976
2116
|
};
|
|
1977
|
-
return
|
|
1978
|
-
t.value &&
|
|
1979
|
-
}),
|
|
1980
|
-
|
|
2117
|
+
return U(() => {
|
|
2118
|
+
t.value && o();
|
|
2119
|
+
}), A(t, (l) => {
|
|
2120
|
+
l && o();
|
|
1981
2121
|
}), {
|
|
1982
2122
|
isIntialized: i,
|
|
1983
2123
|
initialRect: n
|
|
1984
2124
|
};
|
|
1985
2125
|
}
|
|
1986
|
-
function
|
|
1987
|
-
const { initialRect:
|
|
1988
|
-
let
|
|
1989
|
-
const
|
|
2126
|
+
function Uo(t, e = k(!1), n = k(!1), i = k({ left: 0, right: 0, top: 0, bottom: 0 }), o = { width: 20, height: 40 }) {
|
|
2127
|
+
const { initialRect: l } = Wo(t, i), a = k(!1);
|
|
2128
|
+
let r = 0, s = 0, p = 0, g = 0, b = 0;
|
|
2129
|
+
const v = 5, h = k(null), w = (z) => {
|
|
1990
2130
|
if (!(!t.value || e.value))
|
|
1991
2131
|
if (a.value) {
|
|
1992
|
-
const B =
|
|
2132
|
+
const B = z.clientX - g, R = z.clientY - b;
|
|
1993
2133
|
if (h.value === "left" || h.value === "left-bottom-corner") {
|
|
1994
|
-
const
|
|
1995
|
-
|
|
2134
|
+
const O = s - B;
|
|
2135
|
+
O > o.width && (l.value.width = O, l.value.left = r + B, t.value.style.left = l.value.left + "px", t.value.style.width = l.value.width + "px");
|
|
1996
2136
|
}
|
|
1997
2137
|
if (h.value === "right" || h.value === "right-bottom-corner") {
|
|
1998
|
-
const
|
|
1999
|
-
|
|
2138
|
+
const O = s + B;
|
|
2139
|
+
O > o.width && (l.value.width = O, t.value.style.width = l.value.width + "px");
|
|
2000
2140
|
}
|
|
2001
2141
|
if (h.value === "bottom" || h.value === "left-bottom-corner" || h.value === "right-bottom-corner") {
|
|
2002
|
-
const
|
|
2003
|
-
|
|
2142
|
+
const O = p + R;
|
|
2143
|
+
O > o.height && (l.value.height = O, t.value.style.height = l.value.height + "px");
|
|
2004
2144
|
}
|
|
2005
2145
|
} else {
|
|
2006
|
-
const B = t.value.getBoundingClientRect(),
|
|
2007
|
-
|
|
2146
|
+
const B = t.value.getBoundingClientRect(), R = z.clientX - B.left, O = z.clientY - B.top, $ = R <= v, F = R >= B.width - v, G = O >= B.height - v;
|
|
2147
|
+
$ && G && n.value ? (t.value.style.cursor = "nesw-resize", h.value = "left-bottom-corner") : F && G && !n.value ? (t.value.style.cursor = "nwse-resize", h.value = "right-bottom-corner") : $ && n.value ? (t.value.style.cursor = "ew-resize", h.value = "left") : F && !n.value ? (t.value.style.cursor = "ew-resize", h.value = "right") : G ? (t.value.style.cursor = "ns-resize", h.value = "bottom") : (t.value.style.cursor = "", h.value = null);
|
|
2008
2148
|
}
|
|
2009
|
-
},
|
|
2149
|
+
}, x = (z) => {
|
|
2010
2150
|
if (!t.value || !h.value) return;
|
|
2011
2151
|
const B = t.value.getBoundingClientRect();
|
|
2012
|
-
|
|
2013
|
-
},
|
|
2014
|
-
a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove",
|
|
2015
|
-
},
|
|
2016
|
-
t.value && (t.value.removeEventListener("mousedown",
|
|
2017
|
-
},
|
|
2018
|
-
t.value && (t.value.addEventListener("mousedown",
|
|
2152
|
+
g = z.clientX, b = z.clientY, s = B.width, p = B.height, r = B.left, l.value.width = s, l.value.height = p, l.value.left = B.left, l.value.top = B.top, a.value = !0, document.addEventListener("mousemove", w), document.addEventListener("mouseup", D);
|
|
2153
|
+
}, D = () => {
|
|
2154
|
+
a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", D);
|
|
2155
|
+
}, V = () => {
|
|
2156
|
+
t.value && (t.value.removeEventListener("mousedown", x), t.value.removeEventListener("mousemove", w)), document.removeEventListener("mouseup", D);
|
|
2157
|
+
}, y = () => {
|
|
2158
|
+
t.value && (t.value.addEventListener("mousedown", x), t.value.addEventListener("mousemove", w));
|
|
2019
2159
|
};
|
|
2020
|
-
return
|
|
2021
|
-
t.value &&
|
|
2022
|
-
}),
|
|
2023
|
-
|
|
2024
|
-
}),
|
|
2025
|
-
|
|
2026
|
-
}), { rect:
|
|
2160
|
+
return U(() => {
|
|
2161
|
+
t.value && y();
|
|
2162
|
+
}), Ve(() => {
|
|
2163
|
+
V();
|
|
2164
|
+
}), A(t, (z) => {
|
|
2165
|
+
z ? y() : V();
|
|
2166
|
+
}), { rect: l, isResizing: a };
|
|
2027
2167
|
}
|
|
2028
|
-
function
|
|
2029
|
-
const
|
|
2168
|
+
function qo(t, e, n, i) {
|
|
2169
|
+
const o = () => {
|
|
2030
2170
|
if (t.value) {
|
|
2031
|
-
const
|
|
2032
|
-
e.value ?
|
|
2171
|
+
const s = t.value;
|
|
2172
|
+
e.value ? s.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : s.style.transition = "width 0.3s ease";
|
|
2033
2173
|
}
|
|
2034
|
-
},
|
|
2174
|
+
}, l = () => {
|
|
2035
2175
|
t.value && (t.value.style.transition = "");
|
|
2036
2176
|
}, a = () => {
|
|
2037
|
-
t.value && t.value.removeEventListener("transitionend",
|
|
2038
|
-
},
|
|
2039
|
-
t.value && t.value.addEventListener("transitionend",
|
|
2177
|
+
t.value && t.value.removeEventListener("transitionend", l);
|
|
2178
|
+
}, r = () => {
|
|
2179
|
+
t.value && t.value.addEventListener("transitionend", l);
|
|
2040
2180
|
};
|
|
2041
|
-
|
|
2042
|
-
t.value && t.value.addEventListener("transitionend",
|
|
2043
|
-
}),
|
|
2044
|
-
t.value && t.value.removeEventListener("transitionend",
|
|
2045
|
-
}),
|
|
2046
|
-
|
|
2047
|
-
}),
|
|
2048
|
-
|
|
2049
|
-
}),
|
|
2050
|
-
|
|
2181
|
+
U(() => {
|
|
2182
|
+
t.value && t.value.addEventListener("transitionend", l);
|
|
2183
|
+
}), Ve(() => {
|
|
2184
|
+
t.value && t.value.removeEventListener("transitionend", l);
|
|
2185
|
+
}), A(t, (s) => {
|
|
2186
|
+
s ? r() : a();
|
|
2187
|
+
}), A(n, () => {
|
|
2188
|
+
o();
|
|
2189
|
+
}), A(i, () => {
|
|
2190
|
+
o();
|
|
2051
2191
|
});
|
|
2052
2192
|
}
|
|
2053
|
-
function
|
|
2054
|
-
const
|
|
2193
|
+
function jo(t, e, n, i) {
|
|
2194
|
+
const o = k(window.innerWidth), l = k(window.innerHeight), { docked: a, orientation: r, movement: s, position: p, isDragging: g } = Po(
|
|
2055
2195
|
t,
|
|
2056
2196
|
e,
|
|
2057
2197
|
i
|
|
2058
|
-
),
|
|
2198
|
+
), b = C(() => r.value === "right"), { rect: v, isResizing: h } = Uo(
|
|
2059
2199
|
t,
|
|
2060
2200
|
n,
|
|
2061
|
-
|
|
2201
|
+
b,
|
|
2062
2202
|
i.value.offset
|
|
2063
|
-
), { width:
|
|
2064
|
-
|
|
2203
|
+
), { width: w, left: x } = Go(
|
|
2204
|
+
v,
|
|
2065
2205
|
h,
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
), { lastTop:
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
), { autoOpened:
|
|
2074
|
-
|
|
2075
|
-
const
|
|
2206
|
+
p,
|
|
2207
|
+
g
|
|
2208
|
+
), { lastTop: D, lastHeight: V } = Ho(
|
|
2209
|
+
C(() => v.value.left),
|
|
2210
|
+
C(() => v.value.top),
|
|
2211
|
+
C(() => v.value.width),
|
|
2212
|
+
C(() => v.value.height)
|
|
2213
|
+
), { autoOpened: y } = Ro(t, e, n);
|
|
2214
|
+
qo(t, b, n, y);
|
|
2215
|
+
const z = ($) => {
|
|
2076
2216
|
if (t.value) {
|
|
2077
|
-
const
|
|
2078
|
-
if (
|
|
2079
|
-
|
|
2080
|
-
const
|
|
2081
|
-
|
|
2217
|
+
const F = t.value.getBoundingClientRect(), G = F.left + $;
|
|
2218
|
+
if (b.value) {
|
|
2219
|
+
v.value.left = G;
|
|
2220
|
+
const ne = window.innerWidth - F.width - F.left;
|
|
2221
|
+
F.left <= 0 && ne >= 0 && $ < 0 && (v.value.left = Math.max(0, G)), window.innerWidth - F.width <= 0 && (v.value.left = window.innerWidth - F.width);
|
|
2082
2222
|
} else
|
|
2083
|
-
|
|
2223
|
+
F.left + F.width >= window.innerWidth && $ < 0 && (v.value.left = Math.max(0, G));
|
|
2084
2224
|
}
|
|
2085
2225
|
}, B = () => {
|
|
2086
|
-
const
|
|
2087
|
-
|
|
2226
|
+
const $ = window.innerWidth - o.value;
|
|
2227
|
+
o.value = window.innerWidth, l.value = window.innerHeight, z($);
|
|
2088
2228
|
};
|
|
2089
|
-
|
|
2229
|
+
U(() => {
|
|
2090
2230
|
window.addEventListener("resize", B);
|
|
2091
2231
|
}), te(() => {
|
|
2092
2232
|
window.removeEventListener("resize", B);
|
|
2093
2233
|
});
|
|
2094
|
-
const
|
|
2095
|
-
|
|
2096
|
-
},
|
|
2097
|
-
a.value ? (
|
|
2234
|
+
const R = ($) => {
|
|
2235
|
+
$ ? (v.value.width = De, b.value && x.value && w.value && (v.value.left = x.value + w.value - De)) : (v.value.width = w.value, b.value && x.value && w.value && (v.value.left = x.value));
|
|
2236
|
+
}, O = () => {
|
|
2237
|
+
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 = D.value, v.value.height = V.value);
|
|
2098
2238
|
};
|
|
2099
|
-
return
|
|
2100
|
-
|
|
2101
|
-
}),
|
|
2102
|
-
|
|
2103
|
-
}),
|
|
2104
|
-
n.value && !
|
|
2105
|
-
}),
|
|
2106
|
-
if (
|
|
2107
|
-
const
|
|
2108
|
-
|
|
2239
|
+
return A(a, () => {
|
|
2240
|
+
O();
|
|
2241
|
+
}), A(n, ($) => {
|
|
2242
|
+
R($);
|
|
2243
|
+
}), A(y, ($) => {
|
|
2244
|
+
n.value && !g.value && R(!$);
|
|
2245
|
+
}), A(s, ($) => {
|
|
2246
|
+
if ($ && t.value) {
|
|
2247
|
+
const F = t.value.getBoundingClientRect();
|
|
2248
|
+
v.value.left = F.left, v.value.top = F.top;
|
|
2109
2249
|
}
|
|
2110
|
-
}), { rect:
|
|
2250
|
+
}), { rect: v, orientation: r, reversed: b };
|
|
2111
2251
|
}
|
|
2112
|
-
const
|
|
2252
|
+
const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ */ Yo(() => /* @__PURE__ */ c("svg", {
|
|
2113
2253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2114
2254
|
width: "1em",
|
|
2115
2255
|
height: "1em",
|
|
2116
2256
|
viewBox: "0 0 1024 1024"
|
|
2117
2257
|
}, [
|
|
2118
|
-
/* @__PURE__ */
|
|
2258
|
+
/* @__PURE__ */ c("path", {
|
|
2119
2259
|
fill: "currentColor",
|
|
2120
2260
|
d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
2121
2261
|
})
|
|
2122
|
-
], -1)),
|
|
2262
|
+
], -1)), Xo = { class: "ml-tool-palette-title" }, Qo = { class: "ml-tool-palette-content" }, Zo = /* @__PURE__ */ S({
|
|
2123
2263
|
__name: "MlToolPalette",
|
|
2124
2264
|
props: /* @__PURE__ */ J({
|
|
2125
2265
|
title: { default: "" },
|
|
@@ -2133,134 +2273,134 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2133
2273
|
}),
|
|
2134
2274
|
emits: /* @__PURE__ */ J(["close"], ["update:modelValue"]),
|
|
2135
2275
|
setup(t, { emit: e }) {
|
|
2136
|
-
const n = t, i =
|
|
2137
|
-
offset:
|
|
2276
|
+
const n = t, i = _e(t, "modelValue"), o = e, l = k(!1), a = k(null), r = k(null), s = C(() => ({
|
|
2277
|
+
offset: k({
|
|
2138
2278
|
left: n.leftOffset,
|
|
2139
2279
|
right: n.rightOffset,
|
|
2140
2280
|
top: n.topOffset,
|
|
2141
2281
|
bottom: n.bottomOffset
|
|
2142
2282
|
})
|
|
2143
2283
|
})), {
|
|
2144
|
-
rect:
|
|
2145
|
-
orientation:
|
|
2146
|
-
reversed:
|
|
2147
|
-
} =
|
|
2148
|
-
left: `${
|
|
2149
|
-
top: `${
|
|
2150
|
-
width: `${
|
|
2151
|
-
height: `${
|
|
2152
|
-
})), h =
|
|
2284
|
+
rect: p,
|
|
2285
|
+
orientation: g,
|
|
2286
|
+
reversed: b
|
|
2287
|
+
} = jo(r, a, l, s), v = C(() => ({
|
|
2288
|
+
left: `${p.value.left}px`,
|
|
2289
|
+
top: `${p.value.top}px`,
|
|
2290
|
+
width: `${p.value.width}px`,
|
|
2291
|
+
height: `${p.value.height}px`
|
|
2292
|
+
})), h = C(() => b.value ? {
|
|
2153
2293
|
borderLeft: "1px solid var(--el-border-color)",
|
|
2154
2294
|
borderRight: null
|
|
2155
2295
|
} : {
|
|
2156
2296
|
borderLeft: null,
|
|
2157
2297
|
borderRight: "1px solid var(--el-border-color)"
|
|
2158
|
-
}),
|
|
2298
|
+
}), w = () => {
|
|
2159
2299
|
i.value = !1;
|
|
2160
|
-
const
|
|
2161
|
-
|
|
2162
|
-
x:
|
|
2163
|
-
y:
|
|
2300
|
+
const x = r.value;
|
|
2301
|
+
o("close", {
|
|
2302
|
+
x: x ? x.clientLeft : 0,
|
|
2303
|
+
y: x ? x.clientTop : 0
|
|
2164
2304
|
});
|
|
2165
2305
|
};
|
|
2166
|
-
return (
|
|
2167
|
-
const
|
|
2168
|
-
return i.value ? (u(),
|
|
2306
|
+
return (x, D) => {
|
|
2307
|
+
const V = de;
|
|
2308
|
+
return i.value ? (u(), _("div", {
|
|
2169
2309
|
key: 0,
|
|
2170
2310
|
ref_key: "toolPaletteElement",
|
|
2171
|
-
ref:
|
|
2172
|
-
style:
|
|
2311
|
+
ref: r,
|
|
2312
|
+
style: ge([v.value]),
|
|
2173
2313
|
class: "ml-tool-palette-dialog"
|
|
2174
2314
|
}, [
|
|
2175
|
-
|
|
2176
|
-
class:
|
|
2315
|
+
c("div", {
|
|
2316
|
+
class: we(["ml-tool-palette-dialog-layout", d(g)])
|
|
2177
2317
|
}, [
|
|
2178
|
-
|
|
2318
|
+
c("div", {
|
|
2179
2319
|
ref_key: "titleBarElement",
|
|
2180
2320
|
ref: a,
|
|
2181
2321
|
class: "ml-tool-palette-title-bar",
|
|
2182
|
-
style:
|
|
2322
|
+
style: ge(h.value)
|
|
2183
2323
|
}, [
|
|
2184
|
-
|
|
2324
|
+
m(V, {
|
|
2185
2325
|
size: 18,
|
|
2186
2326
|
class: "ml-tool-palette-dialog-icon",
|
|
2187
|
-
onClick:
|
|
2327
|
+
onClick: w
|
|
2188
2328
|
}, {
|
|
2189
|
-
default:
|
|
2190
|
-
|
|
2329
|
+
default: f(() => [
|
|
2330
|
+
Ko
|
|
2191
2331
|
]),
|
|
2192
2332
|
_: 1
|
|
2193
2333
|
}),
|
|
2194
|
-
|
|
2334
|
+
m(ko, {
|
|
2195
2335
|
class: "ml-tool-palette-dialog-icon",
|
|
2196
|
-
modelValue:
|
|
2197
|
-
"onUpdate:modelValue":
|
|
2198
|
-
reverse:
|
|
2336
|
+
modelValue: l.value,
|
|
2337
|
+
"onUpdate:modelValue": D[0] || (D[0] = (y) => l.value = y),
|
|
2338
|
+
reverse: d(b)
|
|
2199
2339
|
}, null, 8, ["modelValue", "reverse"]),
|
|
2200
|
-
|
|
2340
|
+
c("span", Xo, T(n.title), 1)
|
|
2201
2341
|
], 4),
|
|
2202
|
-
|
|
2203
|
-
|
|
2342
|
+
c("div", Qo, [
|
|
2343
|
+
re(x.$slots, "default", {}, void 0, !0)
|
|
2204
2344
|
])
|
|
2205
2345
|
], 2)
|
|
2206
|
-
], 4)) :
|
|
2346
|
+
], 4)) : H("", !0);
|
|
2207
2347
|
};
|
|
2208
2348
|
}
|
|
2209
|
-
}),
|
|
2349
|
+
}), Jo = /* @__PURE__ */ fe(Zo, [["__scopeId", "data-v-8645db4f"]]), el = { class: "ml-layer-list-cell" }, tl = { class: "ml-layer-list-cell" }, nl = /* @__PURE__ */ S({
|
|
2210
2350
|
__name: "MlLayerList",
|
|
2211
2351
|
props: {
|
|
2212
2352
|
editor: {}
|
|
2213
2353
|
},
|
|
2214
2354
|
setup(t) {
|
|
2215
|
-
const { t: e } = P(), n = t, i =
|
|
2216
|
-
|
|
2217
|
-
},
|
|
2218
|
-
const
|
|
2219
|
-
|
|
2355
|
+
const { t: e } = P(), n = t, i = bt(n.editor), o = k(), l = k([]), a = (s) => {
|
|
2356
|
+
l.value = s;
|
|
2357
|
+
}, r = (s) => {
|
|
2358
|
+
const p = n.editor.curDocument.database.tables.layerTable.getAt(
|
|
2359
|
+
s.name
|
|
2220
2360
|
);
|
|
2221
|
-
|
|
2361
|
+
p && (p.isOff = !s.isOn);
|
|
2222
2362
|
};
|
|
2223
|
-
return (
|
|
2224
|
-
const
|
|
2225
|
-
return u(),
|
|
2363
|
+
return (s, p) => {
|
|
2364
|
+
const g = M("el-table-column"), b = M("el-checkbox"), v = M("el-tag");
|
|
2365
|
+
return u(), L(d(lt), {
|
|
2226
2366
|
ref_key: "multipleTableRef",
|
|
2227
|
-
ref:
|
|
2228
|
-
data:
|
|
2367
|
+
ref: o,
|
|
2368
|
+
data: d(i),
|
|
2229
2369
|
class: "ml-layer-list",
|
|
2230
2370
|
onSelectionChange: a
|
|
2231
2371
|
}, {
|
|
2232
|
-
default:
|
|
2233
|
-
|
|
2372
|
+
default: f(() => [
|
|
2373
|
+
m(g, {
|
|
2234
2374
|
property: "name",
|
|
2235
|
-
label:
|
|
2375
|
+
label: d(e)("main.toolPalette.layerManager.layerList.name"),
|
|
2236
2376
|
"min-width": "120",
|
|
2237
2377
|
sortable: "",
|
|
2238
2378
|
"show-overflow-tooltip": ""
|
|
2239
2379
|
}, null, 8, ["label"]),
|
|
2240
|
-
|
|
2380
|
+
m(g, {
|
|
2241
2381
|
property: "isOn",
|
|
2242
|
-
label:
|
|
2382
|
+
label: d(e)("main.toolPalette.layerManager.layerList.on"),
|
|
2243
2383
|
width: "50"
|
|
2244
2384
|
}, {
|
|
2245
|
-
default:
|
|
2246
|
-
|
|
2247
|
-
|
|
2385
|
+
default: f((h) => [
|
|
2386
|
+
c("div", el, [
|
|
2387
|
+
m(b, {
|
|
2248
2388
|
modelValue: h.row.isOn,
|
|
2249
|
-
"onUpdate:modelValue": (
|
|
2250
|
-
onChange: (
|
|
2389
|
+
"onUpdate:modelValue": (w) => h.row.isOn = w,
|
|
2390
|
+
onChange: (w) => r(h.row)
|
|
2251
2391
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
2252
2392
|
])
|
|
2253
2393
|
]),
|
|
2254
2394
|
_: 1
|
|
2255
2395
|
}, 8, ["label"]),
|
|
2256
|
-
|
|
2396
|
+
m(g, {
|
|
2257
2397
|
property: "color",
|
|
2258
|
-
label:
|
|
2398
|
+
label: d(e)("main.toolPalette.layerManager.layerList.color"),
|
|
2259
2399
|
width: "70"
|
|
2260
2400
|
}, {
|
|
2261
|
-
default:
|
|
2262
|
-
|
|
2263
|
-
v
|
|
2401
|
+
default: f((h) => [
|
|
2402
|
+
c("div", tl, [
|
|
2403
|
+
m(v, {
|
|
2264
2404
|
color: h.row.color,
|
|
2265
2405
|
class: "ml-layer-list-color"
|
|
2266
2406
|
}, null, 8, ["color"])
|
|
@@ -2273,23 +2413,23 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2273
2413
|
}, 8, ["data"]);
|
|
2274
2414
|
};
|
|
2275
2415
|
}
|
|
2276
|
-
}),
|
|
2416
|
+
}), ol = { class: "ml-layer-list-wrapper" }, ll = /* @__PURE__ */ S({
|
|
2277
2417
|
__name: "MlLayerManager",
|
|
2278
2418
|
props: {
|
|
2279
2419
|
editor: {}
|
|
2280
2420
|
},
|
|
2281
2421
|
setup(t) {
|
|
2282
2422
|
const e = t;
|
|
2283
|
-
return (n, i) => (u(),
|
|
2423
|
+
return (n, i) => (u(), L(d(Jo), {
|
|
2284
2424
|
class: "ml-layer-manager",
|
|
2285
|
-
modelValue:
|
|
2286
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2425
|
+
modelValue: d(Z).dialogs.layerManager,
|
|
2426
|
+
"onUpdate:modelValue": i[0] || (i[0] = (o) => d(Z).dialogs.layerManager = o),
|
|
2287
2427
|
title: "Layers",
|
|
2288
2428
|
"bottom-offset": 30
|
|
2289
2429
|
}, {
|
|
2290
|
-
default:
|
|
2291
|
-
|
|
2292
|
-
|
|
2430
|
+
default: f(() => [
|
|
2431
|
+
c("div", ol, [
|
|
2432
|
+
m(nl, {
|
|
2293
2433
|
editor: e.editor
|
|
2294
2434
|
}, null, 8, ["editor"])
|
|
2295
2435
|
])
|
|
@@ -2297,58 +2437,58 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2297
2437
|
_: 1
|
|
2298
2438
|
}, 8, ["modelValue"]));
|
|
2299
2439
|
}
|
|
2300
|
-
}),
|
|
2440
|
+
}), al = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-d49ba2cb"]]), il = { class: "autocomplete-container" }, sl = /* @__PURE__ */ S({
|
|
2301
2441
|
__name: "MlCommandLine",
|
|
2302
2442
|
setup(t) {
|
|
2303
|
-
const { t: e } = P(), n =
|
|
2304
|
-
const
|
|
2305
|
-
(
|
|
2443
|
+
const { t: e } = P(), n = pe(), i = ht(), o = k(""), l = k(""), a = (p, g) => {
|
|
2444
|
+
const b = p ? i.filter(
|
|
2445
|
+
(v) => v.commandName.startsWith(p.toLowerCase())
|
|
2306
2446
|
) : i;
|
|
2307
|
-
|
|
2308
|
-
},
|
|
2309
|
-
|
|
2310
|
-
},
|
|
2311
|
-
return (
|
|
2312
|
-
|
|
2447
|
+
g(b);
|
|
2448
|
+
}, r = () => {
|
|
2449
|
+
o.value && (E.instance.sendStringToExecute(o.value), l.value = o.value, o.value = "");
|
|
2450
|
+
}, s = (p, g) => `${g}: ${ye(p, g)}`;
|
|
2451
|
+
return (p, g) => (u(), _("div", il, [
|
|
2452
|
+
d(n).isShowCommandLine ? (u(), L(d(at), {
|
|
2313
2453
|
key: 0,
|
|
2314
|
-
modelValue:
|
|
2315
|
-
"onUpdate:modelValue":
|
|
2454
|
+
modelValue: o.value,
|
|
2455
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => o.value = b),
|
|
2316
2456
|
"value-key": "commandName",
|
|
2317
2457
|
clearable: "",
|
|
2318
2458
|
"fetch-suggestions": a,
|
|
2319
|
-
placeholder:
|
|
2459
|
+
placeholder: d(e)("main.commandLine.prompt"),
|
|
2320
2460
|
debounce: 300,
|
|
2321
2461
|
"trigger-on-focus": "",
|
|
2322
2462
|
"fit-input-width": !1,
|
|
2323
|
-
onSelect:
|
|
2324
|
-
onKeydown:
|
|
2463
|
+
onSelect: r,
|
|
2464
|
+
onKeydown: je(r, ["enter"]),
|
|
2325
2465
|
class: "autocomplete-input"
|
|
2326
2466
|
}, {
|
|
2327
|
-
default:
|
|
2328
|
-
|
|
2467
|
+
default: f(({ item: b }) => [
|
|
2468
|
+
c("div", null, T(s(b.groupName, b.commandName)), 1)
|
|
2329
2469
|
]),
|
|
2330
|
-
prepend:
|
|
2331
|
-
|
|
2470
|
+
prepend: f(() => [
|
|
2471
|
+
N(T(`> ${l.value}`), 1)
|
|
2332
2472
|
]),
|
|
2333
2473
|
_: 1
|
|
2334
|
-
}, 8, ["modelValue", "placeholder"])) :
|
|
2474
|
+
}, 8, ["modelValue", "placeholder"])) : H("", !0)
|
|
2335
2475
|
]));
|
|
2336
2476
|
}
|
|
2337
|
-
}),
|
|
2477
|
+
}), rl = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-082845cb"]]), cl = /* @__PURE__ */ S({
|
|
2338
2478
|
__name: "MlEntityInfo",
|
|
2339
2479
|
setup(t) {
|
|
2340
|
-
|
|
2480
|
+
$e((v) => ({
|
|
2341
2481
|
"2d5cc4ca": a.value,
|
|
2342
|
-
"11fa7d7e":
|
|
2482
|
+
"11fa7d7e": r.value
|
|
2343
2483
|
}));
|
|
2344
|
-
const { t: e } = P(), n =
|
|
2345
|
-
const
|
|
2346
|
-
if (
|
|
2347
|
-
const h =
|
|
2484
|
+
const { t: e } = P(), n = k(!1), i = k(-1), o = k(-1), l = k(null), a = C(() => i.value + "px"), r = C(() => o.value + "px"), s = C(() => {
|
|
2485
|
+
const v = E.instance.curDocument.database;
|
|
2486
|
+
if (l.value) {
|
|
2487
|
+
const h = v.tables.blockTable.modelSpace.getIdAt(l.value);
|
|
2348
2488
|
if (h)
|
|
2349
2489
|
return {
|
|
2350
|
-
type:
|
|
2351
|
-
color:
|
|
2490
|
+
type: Et(h),
|
|
2491
|
+
color: At(h.color.toString()),
|
|
2352
2492
|
layer: h.layer,
|
|
2353
2493
|
lineType: h.lineType
|
|
2354
2494
|
};
|
|
@@ -2359,34 +2499,34 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2359
2499
|
layer: "",
|
|
2360
2500
|
lineType: ""
|
|
2361
2501
|
};
|
|
2362
|
-
}),
|
|
2363
|
-
|
|
2364
|
-
},
|
|
2502
|
+
}), p = C(() => n.value && s.value.type != ""), g = (v) => {
|
|
2503
|
+
l.value = v.id, i.value = v.x, o.value = v.y, n.value = !0;
|
|
2504
|
+
}, b = () => {
|
|
2365
2505
|
n.value = !1;
|
|
2366
2506
|
};
|
|
2367
|
-
return
|
|
2368
|
-
const
|
|
2369
|
-
|
|
2507
|
+
return U(() => {
|
|
2508
|
+
const v = E.instance.curView.events;
|
|
2509
|
+
v.hover.addEventListener(g), v.unhover.addEventListener(b);
|
|
2370
2510
|
}), te(() => {
|
|
2371
|
-
const
|
|
2372
|
-
|
|
2373
|
-
}), (
|
|
2374
|
-
const
|
|
2375
|
-
return
|
|
2511
|
+
const v = E.instance.curView.events;
|
|
2512
|
+
v.hover.removeEventListener(g), v.unhover.removeEventListener(b);
|
|
2513
|
+
}), (v, h) => {
|
|
2514
|
+
const w = M("el-text"), x = M("el-col"), D = M("el-row"), V = M("el-card");
|
|
2515
|
+
return p.value ? (u(), L(V, {
|
|
2376
2516
|
key: 0,
|
|
2377
2517
|
class: "ml-entity-info"
|
|
2378
2518
|
}, {
|
|
2379
|
-
default:
|
|
2380
|
-
|
|
2381
|
-
default:
|
|
2382
|
-
|
|
2383
|
-
default:
|
|
2384
|
-
|
|
2519
|
+
default: f(() => [
|
|
2520
|
+
m(D, { class: "ml-entity-info-text" }, {
|
|
2521
|
+
default: f(() => [
|
|
2522
|
+
m(x, { span: 24 }, {
|
|
2523
|
+
default: f(() => [
|
|
2524
|
+
m(w, {
|
|
2385
2525
|
size: "small",
|
|
2386
2526
|
class: "ml-entity-info-title"
|
|
2387
2527
|
}, {
|
|
2388
|
-
default:
|
|
2389
|
-
|
|
2528
|
+
default: f(() => [
|
|
2529
|
+
N(T(s.value.type), 1)
|
|
2390
2530
|
]),
|
|
2391
2531
|
_: 1
|
|
2392
2532
|
})
|
|
@@ -2396,24 +2536,24 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2396
2536
|
]),
|
|
2397
2537
|
_: 1
|
|
2398
2538
|
}),
|
|
2399
|
-
|
|
2400
|
-
default:
|
|
2401
|
-
|
|
2402
|
-
default:
|
|
2403
|
-
|
|
2404
|
-
default:
|
|
2405
|
-
|
|
2539
|
+
m(D, { class: "ml-entity-info-text" }, {
|
|
2540
|
+
default: f(() => [
|
|
2541
|
+
m(x, { span: 10 }, {
|
|
2542
|
+
default: f(() => [
|
|
2543
|
+
m(w, { size: "small" }, {
|
|
2544
|
+
default: f(() => [
|
|
2545
|
+
N(T(d(e)("main.entityInfo.color")), 1)
|
|
2406
2546
|
]),
|
|
2407
2547
|
_: 1
|
|
2408
2548
|
})
|
|
2409
2549
|
]),
|
|
2410
2550
|
_: 1
|
|
2411
2551
|
}),
|
|
2412
|
-
|
|
2413
|
-
default:
|
|
2414
|
-
|
|
2415
|
-
default:
|
|
2416
|
-
|
|
2552
|
+
m(x, { span: 14 }, {
|
|
2553
|
+
default: f(() => [
|
|
2554
|
+
m(w, { size: "small" }, {
|
|
2555
|
+
default: f(() => [
|
|
2556
|
+
N(T(s.value.color), 1)
|
|
2417
2557
|
]),
|
|
2418
2558
|
_: 1
|
|
2419
2559
|
})
|
|
@@ -2423,24 +2563,24 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2423
2563
|
]),
|
|
2424
2564
|
_: 1
|
|
2425
2565
|
}),
|
|
2426
|
-
|
|
2427
|
-
default:
|
|
2428
|
-
|
|
2429
|
-
default:
|
|
2430
|
-
|
|
2431
|
-
default:
|
|
2432
|
-
|
|
2566
|
+
m(D, { class: "ml-entity-info-text" }, {
|
|
2567
|
+
default: f(() => [
|
|
2568
|
+
m(x, { span: 10 }, {
|
|
2569
|
+
default: f(() => [
|
|
2570
|
+
m(w, { size: "small" }, {
|
|
2571
|
+
default: f(() => [
|
|
2572
|
+
N(T(d(e)("main.entityInfo.layer")), 1)
|
|
2433
2573
|
]),
|
|
2434
2574
|
_: 1
|
|
2435
2575
|
})
|
|
2436
2576
|
]),
|
|
2437
2577
|
_: 1
|
|
2438
2578
|
}),
|
|
2439
|
-
|
|
2440
|
-
default:
|
|
2441
|
-
|
|
2442
|
-
default:
|
|
2443
|
-
|
|
2579
|
+
m(x, { span: 14 }, {
|
|
2580
|
+
default: f(() => [
|
|
2581
|
+
m(w, { size: "small" }, {
|
|
2582
|
+
default: f(() => [
|
|
2583
|
+
N(T(s.value.layer), 1)
|
|
2444
2584
|
]),
|
|
2445
2585
|
_: 1
|
|
2446
2586
|
})
|
|
@@ -2450,24 +2590,24 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2450
2590
|
]),
|
|
2451
2591
|
_: 1
|
|
2452
2592
|
}),
|
|
2453
|
-
|
|
2454
|
-
default:
|
|
2455
|
-
|
|
2456
|
-
default:
|
|
2457
|
-
|
|
2458
|
-
default:
|
|
2459
|
-
|
|
2593
|
+
m(D, { class: "ml-entity-info-text" }, {
|
|
2594
|
+
default: f(() => [
|
|
2595
|
+
m(x, { span: 10 }, {
|
|
2596
|
+
default: f(() => [
|
|
2597
|
+
m(w, { size: "small" }, {
|
|
2598
|
+
default: f(() => [
|
|
2599
|
+
N(T(d(e)("main.entityInfo.lineType")), 1)
|
|
2460
2600
|
]),
|
|
2461
2601
|
_: 1
|
|
2462
2602
|
})
|
|
2463
2603
|
]),
|
|
2464
2604
|
_: 1
|
|
2465
2605
|
}),
|
|
2466
|
-
|
|
2467
|
-
default:
|
|
2468
|
-
|
|
2469
|
-
default:
|
|
2470
|
-
|
|
2606
|
+
m(x, { span: 14 }, {
|
|
2607
|
+
default: f(() => [
|
|
2608
|
+
m(w, { size: "small" }, {
|
|
2609
|
+
default: f(() => [
|
|
2610
|
+
N(T(s.value.lineType), 1)
|
|
2471
2611
|
]),
|
|
2472
2612
|
_: 1
|
|
2473
2613
|
})
|
|
@@ -2479,16 +2619,16 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2479
2619
|
})
|
|
2480
2620
|
]),
|
|
2481
2621
|
_: 1
|
|
2482
|
-
})) :
|
|
2622
|
+
})) : H("", !0);
|
|
2483
2623
|
};
|
|
2484
2624
|
}
|
|
2485
|
-
}),
|
|
2625
|
+
}), ul = /* @__PURE__ */ W(cl, [["__scopeId", "data-v-6a67bbe7"]]), dl = /* @__PURE__ */ S({
|
|
2486
2626
|
__name: "MlLanguageSelector",
|
|
2487
2627
|
props: {
|
|
2488
2628
|
currentLocale: { default: void 0 }
|
|
2489
2629
|
},
|
|
2490
2630
|
setup(t) {
|
|
2491
|
-
const e = t, { effectiveLocale: n, setLocale: i } =
|
|
2631
|
+
const e = t, { effectiveLocale: n, setLocale: i } = Ie(e.currentLocale), o = Y([
|
|
2492
2632
|
{
|
|
2493
2633
|
name: "en",
|
|
2494
2634
|
text: "English"
|
|
@@ -2497,142 +2637,248 @@ const No = (t) => (Le("data-v-8645db4f"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2497
2637
|
name: "zh",
|
|
2498
2638
|
text: "简体中文"
|
|
2499
2639
|
}
|
|
2500
|
-
]),
|
|
2640
|
+
]), l = (a) => {
|
|
2501
2641
|
(a === "en" || a === "zh") && i(a);
|
|
2502
2642
|
};
|
|
2503
|
-
return (a,
|
|
2643
|
+
return (a, r) => (u(), L(d(Bo), {
|
|
2504
2644
|
class: "ml-language-selector",
|
|
2505
|
-
languages:
|
|
2506
|
-
current:
|
|
2507
|
-
onClick:
|
|
2645
|
+
languages: o,
|
|
2646
|
+
current: d(n),
|
|
2647
|
+
onClick: l
|
|
2508
2648
|
}, null, 8, ["languages", "current"]));
|
|
2509
2649
|
}
|
|
2510
|
-
}),
|
|
2650
|
+
}), ml = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-1b9f7bc0"]]);
|
|
2511
2651
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
2512
|
-
var
|
|
2652
|
+
var pl = /* @__PURE__ */ S({
|
|
2653
|
+
name: "Bell",
|
|
2654
|
+
__name: "bell",
|
|
2655
|
+
setup(t) {
|
|
2656
|
+
return (e, n) => (u(), _("svg", {
|
|
2657
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2658
|
+
viewBox: "0 0 1024 1024"
|
|
2659
|
+
}, [
|
|
2660
|
+
c("path", {
|
|
2661
|
+
fill: "currentColor",
|
|
2662
|
+
d: "M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"
|
|
2663
|
+
}),
|
|
2664
|
+
c("path", {
|
|
2665
|
+
fill: "currentColor",
|
|
2666
|
+
d: "M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"
|
|
2667
|
+
}),
|
|
2668
|
+
c("path", {
|
|
2669
|
+
fill: "currentColor",
|
|
2670
|
+
d: "M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"
|
|
2671
|
+
})
|
|
2672
|
+
]));
|
|
2673
|
+
}
|
|
2674
|
+
}), he = pl, fl = /* @__PURE__ */ S({
|
|
2513
2675
|
name: "Check",
|
|
2514
2676
|
__name: "check",
|
|
2515
2677
|
setup(t) {
|
|
2516
|
-
return (e, n) => (u(),
|
|
2678
|
+
return (e, n) => (u(), _("svg", {
|
|
2517
2679
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2518
2680
|
viewBox: "0 0 1024 1024"
|
|
2519
2681
|
}, [
|
|
2520
|
-
|
|
2682
|
+
c("path", {
|
|
2521
2683
|
fill: "currentColor",
|
|
2522
2684
|
d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
|
|
2523
2685
|
})
|
|
2524
2686
|
]));
|
|
2525
2687
|
}
|
|
2526
|
-
}),
|
|
2688
|
+
}), ie = fl, vl = /* @__PURE__ */ S({
|
|
2689
|
+
name: "CircleCloseFilled",
|
|
2690
|
+
__name: "circle-close-filled",
|
|
2691
|
+
setup(t) {
|
|
2692
|
+
return (e, n) => (u(), _("svg", {
|
|
2693
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2694
|
+
viewBox: "0 0 1024 1024"
|
|
2695
|
+
}, [
|
|
2696
|
+
c("path", {
|
|
2697
|
+
fill: "currentColor",
|
|
2698
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
2699
|
+
})
|
|
2700
|
+
]));
|
|
2701
|
+
}
|
|
2702
|
+
}), gl = vl, hl = /* @__PURE__ */ S({
|
|
2703
|
+
name: "Close",
|
|
2704
|
+
__name: "close",
|
|
2705
|
+
setup(t) {
|
|
2706
|
+
return (e, n) => (u(), _("svg", {
|
|
2707
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2708
|
+
viewBox: "0 0 1024 1024"
|
|
2709
|
+
}, [
|
|
2710
|
+
c("path", {
|
|
2711
|
+
fill: "currentColor",
|
|
2712
|
+
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
2713
|
+
})
|
|
2714
|
+
]));
|
|
2715
|
+
}
|
|
2716
|
+
}), Pe = hl, _l = /* @__PURE__ */ S({
|
|
2717
|
+
name: "Delete",
|
|
2718
|
+
__name: "delete",
|
|
2719
|
+
setup(t) {
|
|
2720
|
+
return (e, n) => (u(), _("svg", {
|
|
2721
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2722
|
+
viewBox: "0 0 1024 1024"
|
|
2723
|
+
}, [
|
|
2724
|
+
c("path", {
|
|
2725
|
+
fill: "currentColor",
|
|
2726
|
+
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
|
|
2727
|
+
})
|
|
2728
|
+
]));
|
|
2729
|
+
}
|
|
2730
|
+
}), wl = _l, yl = /* @__PURE__ */ S({
|
|
2731
|
+
name: "InfoFilled",
|
|
2732
|
+
__name: "info-filled",
|
|
2733
|
+
setup(t) {
|
|
2734
|
+
return (e, n) => (u(), _("svg", {
|
|
2735
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2736
|
+
viewBox: "0 0 1024 1024"
|
|
2737
|
+
}, [
|
|
2738
|
+
c("path", {
|
|
2739
|
+
fill: "currentColor",
|
|
2740
|
+
d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
|
2741
|
+
})
|
|
2742
|
+
]));
|
|
2743
|
+
}
|
|
2744
|
+
}), Te = yl, bl = /* @__PURE__ */ S({
|
|
2527
2745
|
name: "Menu",
|
|
2528
2746
|
__name: "menu",
|
|
2529
2747
|
setup(t) {
|
|
2530
|
-
return (e, n) => (u(),
|
|
2748
|
+
return (e, n) => (u(), _("svg", {
|
|
2531
2749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2532
2750
|
viewBox: "0 0 1024 1024"
|
|
2533
2751
|
}, [
|
|
2534
|
-
|
|
2752
|
+
c("path", {
|
|
2535
2753
|
fill: "currentColor",
|
|
2536
2754
|
d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"
|
|
2537
2755
|
})
|
|
2538
2756
|
]));
|
|
2539
2757
|
}
|
|
2540
|
-
}),
|
|
2758
|
+
}), xl = bl, kl = /* @__PURE__ */ S({
|
|
2541
2759
|
name: "Moon",
|
|
2542
2760
|
__name: "moon",
|
|
2543
2761
|
setup(t) {
|
|
2544
|
-
return (e, n) => (u(),
|
|
2762
|
+
return (e, n) => (u(), _("svg", {
|
|
2545
2763
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2546
2764
|
viewBox: "0 0 1024 1024"
|
|
2547
2765
|
}, [
|
|
2548
|
-
|
|
2766
|
+
c("path", {
|
|
2549
2767
|
fill: "currentColor",
|
|
2550
2768
|
d: "M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"
|
|
2551
2769
|
})
|
|
2552
2770
|
]));
|
|
2553
2771
|
}
|
|
2554
|
-
}),
|
|
2772
|
+
}), Ml = kl, Cl = /* @__PURE__ */ S({
|
|
2555
2773
|
name: "Operation",
|
|
2556
2774
|
__name: "operation",
|
|
2557
2775
|
setup(t) {
|
|
2558
|
-
return (e, n) => (u(),
|
|
2776
|
+
return (e, n) => (u(), _("svg", {
|
|
2559
2777
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2560
2778
|
viewBox: "0 0 1024 1024"
|
|
2561
2779
|
}, [
|
|
2562
|
-
|
|
2780
|
+
c("path", {
|
|
2563
2781
|
fill: "currentColor",
|
|
2564
2782
|
d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
|
|
2565
2783
|
})
|
|
2566
2784
|
]));
|
|
2567
2785
|
}
|
|
2568
|
-
}),
|
|
2786
|
+
}), Sl = Cl, Ll = /* @__PURE__ */ S({
|
|
2569
2787
|
name: "Setting",
|
|
2570
2788
|
__name: "setting",
|
|
2571
2789
|
setup(t) {
|
|
2572
|
-
return (e, n) => (u(),
|
|
2790
|
+
return (e, n) => (u(), _("svg", {
|
|
2573
2791
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2574
2792
|
viewBox: "0 0 1024 1024"
|
|
2575
2793
|
}, [
|
|
2576
|
-
|
|
2794
|
+
c("path", {
|
|
2577
2795
|
fill: "currentColor",
|
|
2578
2796
|
d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
|
|
2579
2797
|
})
|
|
2580
2798
|
]));
|
|
2581
2799
|
}
|
|
2582
|
-
}),
|
|
2800
|
+
}), zl = Ll, Bl = /* @__PURE__ */ S({
|
|
2801
|
+
name: "SuccessFilled",
|
|
2802
|
+
__name: "success-filled",
|
|
2803
|
+
setup(t) {
|
|
2804
|
+
return (e, n) => (u(), _("svg", {
|
|
2805
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2806
|
+
viewBox: "0 0 1024 1024"
|
|
2807
|
+
}, [
|
|
2808
|
+
c("path", {
|
|
2809
|
+
fill: "currentColor",
|
|
2810
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
2811
|
+
})
|
|
2812
|
+
]));
|
|
2813
|
+
}
|
|
2814
|
+
}), Dl = Bl, Tl = /* @__PURE__ */ S({
|
|
2583
2815
|
name: "Sunny",
|
|
2584
2816
|
__name: "sunny",
|
|
2585
2817
|
setup(t) {
|
|
2586
|
-
return (e, n) => (u(),
|
|
2818
|
+
return (e, n) => (u(), _("svg", {
|
|
2587
2819
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2588
2820
|
viewBox: "0 0 1024 1024"
|
|
2589
2821
|
}, [
|
|
2590
|
-
|
|
2822
|
+
c("path", {
|
|
2591
2823
|
fill: "currentColor",
|
|
2592
2824
|
d: "M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"
|
|
2593
2825
|
})
|
|
2594
2826
|
]));
|
|
2595
2827
|
}
|
|
2596
|
-
}),
|
|
2828
|
+
}), $l = Tl, El = /* @__PURE__ */ S({
|
|
2829
|
+
name: "WarningFilled",
|
|
2830
|
+
__name: "warning-filled",
|
|
2831
|
+
setup(t) {
|
|
2832
|
+
return (e, n) => (u(), _("svg", {
|
|
2833
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2834
|
+
viewBox: "0 0 1024 1024"
|
|
2835
|
+
}, [
|
|
2836
|
+
c("path", {
|
|
2837
|
+
fill: "currentColor",
|
|
2838
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
|
|
2839
|
+
})
|
|
2840
|
+
]));
|
|
2841
|
+
}
|
|
2842
|
+
}), Al = El, Vl = /* @__PURE__ */ S({
|
|
2597
2843
|
name: "Warning",
|
|
2598
2844
|
__name: "warning",
|
|
2599
2845
|
setup(t) {
|
|
2600
|
-
return (e, n) => (u(),
|
|
2846
|
+
return (e, n) => (u(), _("svg", {
|
|
2601
2847
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2602
2848
|
viewBox: "0 0 1024 1024"
|
|
2603
2849
|
}, [
|
|
2604
|
-
|
|
2850
|
+
c("path", {
|
|
2605
2851
|
fill: "currentColor",
|
|
2606
2852
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"
|
|
2607
2853
|
})
|
|
2608
2854
|
]));
|
|
2609
2855
|
}
|
|
2610
|
-
}),
|
|
2611
|
-
const
|
|
2856
|
+
}), Fl = Vl;
|
|
2857
|
+
const Nl = /* @__PURE__ */ S({
|
|
2612
2858
|
__name: "MlMainMenu",
|
|
2613
2859
|
setup(t) {
|
|
2614
2860
|
const { t: e } = P(), n = (i) => {
|
|
2615
|
-
i === "Convert" ? new
|
|
2861
|
+
i === "Convert" ? new He().tirgger(E.instance.context) : i === "QNew" ? new Ge().tirgger(E.instance.context) : i === "Open" && new We().tirgger(E.instance.context);
|
|
2616
2862
|
};
|
|
2617
|
-
return (i,
|
|
2618
|
-
const
|
|
2619
|
-
return u(),
|
|
2863
|
+
return (i, o) => {
|
|
2864
|
+
const l = M("el-icon"), a = M("el-dropdown-item"), r = M("el-dropdown-menu"), s = M("el-dropdown");
|
|
2865
|
+
return u(), L(s, {
|
|
2620
2866
|
"aria-hidden": "false",
|
|
2621
2867
|
class: "ml-main-menu-container",
|
|
2622
2868
|
onCommand: n
|
|
2623
2869
|
}, {
|
|
2624
|
-
dropdown:
|
|
2625
|
-
|
|
2626
|
-
default:
|
|
2627
|
-
|
|
2628
|
-
default:
|
|
2629
|
-
|
|
2870
|
+
dropdown: f(() => [
|
|
2871
|
+
m(r, null, {
|
|
2872
|
+
default: f(() => [
|
|
2873
|
+
m(a, { command: "QNew" }, {
|
|
2874
|
+
default: f(() => [
|
|
2875
|
+
N(T(d(e)("main.mainMenu.new")), 1)
|
|
2630
2876
|
]),
|
|
2631
2877
|
_: 1
|
|
2632
2878
|
}),
|
|
2633
|
-
|
|
2634
|
-
default:
|
|
2635
|
-
|
|
2879
|
+
m(a, { command: "Open" }, {
|
|
2880
|
+
default: f(() => [
|
|
2881
|
+
N(T(d(e)("main.mainMenu.open")), 1)
|
|
2636
2882
|
]),
|
|
2637
2883
|
_: 1
|
|
2638
2884
|
})
|
|
@@ -2640,13 +2886,13 @@ const _l = /* @__PURE__ */ L({
|
|
|
2640
2886
|
_: 1
|
|
2641
2887
|
})
|
|
2642
2888
|
]),
|
|
2643
|
-
default:
|
|
2644
|
-
|
|
2889
|
+
default: f(() => [
|
|
2890
|
+
m(l, {
|
|
2645
2891
|
class: "ml-main-menu-icon",
|
|
2646
2892
|
size: "30"
|
|
2647
2893
|
}, {
|
|
2648
|
-
default:
|
|
2649
|
-
|
|
2894
|
+
default: f(() => [
|
|
2895
|
+
m(d(xl))
|
|
2650
2896
|
]),
|
|
2651
2897
|
_: 1
|
|
2652
2898
|
})
|
|
@@ -2655,193 +2901,404 @@ const _l = /* @__PURE__ */ L({
|
|
|
2655
2901
|
});
|
|
2656
2902
|
};
|
|
2657
2903
|
}
|
|
2658
|
-
}),
|
|
2904
|
+
}), Il = /* @__PURE__ */ W(Nl, [["__scopeId", "data-v-8c0c738e"]]), Rl = {
|
|
2659
2905
|
key: 0,
|
|
2660
2906
|
class: "ml-vertical-toolbar-container"
|
|
2661
|
-
},
|
|
2907
|
+
}, Ol = /* @__PURE__ */ S({
|
|
2662
2908
|
__name: "MlToolBars",
|
|
2663
2909
|
setup(t) {
|
|
2664
|
-
const { t: e } = P(), n =
|
|
2910
|
+
const { t: e } = P(), n = pe(), i = C(() => [
|
|
2665
2911
|
{
|
|
2666
|
-
icon:
|
|
2912
|
+
icon: Jt,
|
|
2667
2913
|
text: e("main.verticalToolbar.select.text"),
|
|
2668
2914
|
command: "select",
|
|
2669
2915
|
description: e("main.verticalToolbar.select.description")
|
|
2670
2916
|
},
|
|
2671
2917
|
{
|
|
2672
|
-
icon:
|
|
2918
|
+
icon: Xt,
|
|
2673
2919
|
text: e("main.verticalToolbar.pan.text"),
|
|
2674
2920
|
command: "pan",
|
|
2675
2921
|
description: e("main.verticalToolbar.pan.description")
|
|
2676
2922
|
},
|
|
2677
2923
|
{
|
|
2678
|
-
icon:
|
|
2924
|
+
icon: an,
|
|
2679
2925
|
text: e("main.verticalToolbar.zoomToExtent.text"),
|
|
2680
2926
|
command: "zoom",
|
|
2681
2927
|
description: e("main.verticalToolbar.zoomToExtent.description")
|
|
2682
2928
|
},
|
|
2683
2929
|
{
|
|
2684
|
-
icon:
|
|
2930
|
+
icon: nn,
|
|
2685
2931
|
text: e("main.verticalToolbar.zoomToBox.text"),
|
|
2686
2932
|
command: "zoomw",
|
|
2687
2933
|
description: e("main.verticalToolbar.zoomToBox.description")
|
|
2688
2934
|
},
|
|
2689
2935
|
{
|
|
2690
|
-
icon:
|
|
2936
|
+
icon: jt,
|
|
2691
2937
|
text: e("main.verticalToolbar.layer.text"),
|
|
2692
2938
|
command: "la",
|
|
2693
2939
|
description: e("main.verticalToolbar.layer.description")
|
|
2694
2940
|
}
|
|
2695
|
-
]),
|
|
2696
|
-
|
|
2941
|
+
]), o = (l) => {
|
|
2942
|
+
E.instance.sendStringToExecute(l);
|
|
2697
2943
|
};
|
|
2698
|
-
return (
|
|
2699
|
-
|
|
2944
|
+
return (l, a) => d(n).isShowToolbar ? (u(), _("div", Rl, [
|
|
2945
|
+
m(d(Io), {
|
|
2700
2946
|
items: i.value,
|
|
2701
2947
|
size: "small",
|
|
2702
2948
|
direction: "vertical",
|
|
2703
|
-
onClick:
|
|
2949
|
+
onClick: o
|
|
2704
2950
|
}, null, 8, ["items"])
|
|
2705
|
-
])) :
|
|
2951
|
+
])) : H("", !0);
|
|
2706
2952
|
}
|
|
2707
|
-
}),
|
|
2953
|
+
}), Pl = { class: "ml-notification-item-icon" }, Hl = { class: "ml-notification-item-content" }, Gl = { class: "ml-notification-item-header" }, Wl = { class: "ml-notification-item-title" }, Ul = { class: "ml-notification-item-actions" }, ql = {
|
|
2954
|
+
key: 0,
|
|
2955
|
+
class: "ml-notification-item-message"
|
|
2956
|
+
}, jl = { class: "ml-notification-item-footer" }, Yl = { class: "ml-notification-item-time" }, Kl = /* @__PURE__ */ S({
|
|
2957
|
+
__name: "MlNotificationItem",
|
|
2958
|
+
props: {
|
|
2959
|
+
notification: {}
|
|
2960
|
+
},
|
|
2961
|
+
emits: ["close", "action"],
|
|
2962
|
+
setup(t) {
|
|
2963
|
+
const e = t, { t: n } = P(), i = C(() => {
|
|
2964
|
+
switch (e.notification.type) {
|
|
2965
|
+
case "info":
|
|
2966
|
+
return Te;
|
|
2967
|
+
case "warning":
|
|
2968
|
+
return Al;
|
|
2969
|
+
case "error":
|
|
2970
|
+
return gl;
|
|
2971
|
+
case "success":
|
|
2972
|
+
return Dl;
|
|
2973
|
+
default:
|
|
2974
|
+
return Te;
|
|
2975
|
+
}
|
|
2976
|
+
}), o = (a) => {
|
|
2977
|
+
a.action();
|
|
2978
|
+
}, l = (a) => {
|
|
2979
|
+
const s = (/* @__PURE__ */ new Date()).getTime() - a.getTime(), p = Math.floor(s / 6e4), g = Math.floor(s / 36e5), b = Math.floor(s / 864e5);
|
|
2980
|
+
return b > 0 ? n("main.notification.time.daysAgo", { count: b }) : g > 0 ? n("main.notification.time.hoursAgo", { count: g }) : p > 0 ? n("main.notification.time.minutesAgo", { count: p }) : n("main.notification.time.justNow");
|
|
2981
|
+
};
|
|
2982
|
+
return (a, r) => {
|
|
2983
|
+
const s = M("el-icon"), p = M("el-button");
|
|
2984
|
+
return u(), _("div", {
|
|
2985
|
+
class: we(["ml-notification-item", `ml-notification-item--${a.notification.type}`])
|
|
2986
|
+
}, [
|
|
2987
|
+
c("div", Pl, [
|
|
2988
|
+
m(s, null, {
|
|
2989
|
+
default: f(() => [
|
|
2990
|
+
(u(), L(ue(i.value)))
|
|
2991
|
+
]),
|
|
2992
|
+
_: 1
|
|
2993
|
+
})
|
|
2994
|
+
]),
|
|
2995
|
+
c("div", Hl, [
|
|
2996
|
+
c("div", Gl, [
|
|
2997
|
+
c("h4", Wl, T(a.notification.title), 1),
|
|
2998
|
+
c("div", Ul, [
|
|
2999
|
+
a.notification.actions && a.notification.actions.length > 0 ? (u(!0), _(j, { key: 0 }, K(a.notification.actions, (g) => (u(), L(p, {
|
|
3000
|
+
key: g.label,
|
|
3001
|
+
type: g.primary ? "primary" : "default",
|
|
3002
|
+
size: "small",
|
|
3003
|
+
onClick: (b) => o(g)
|
|
3004
|
+
}, {
|
|
3005
|
+
default: f(() => [
|
|
3006
|
+
N(T(g.label), 1)
|
|
3007
|
+
]),
|
|
3008
|
+
_: 2
|
|
3009
|
+
}, 1032, ["type", "onClick"]))), 128)) : H("", !0),
|
|
3010
|
+
m(p, {
|
|
3011
|
+
text: "",
|
|
3012
|
+
size: "small",
|
|
3013
|
+
onClick: r[0] || (r[0] = (g) => a.$emit("close"))
|
|
3014
|
+
}, {
|
|
3015
|
+
default: f(() => [
|
|
3016
|
+
m(s, null, {
|
|
3017
|
+
default: f(() => [
|
|
3018
|
+
m(d(Pe))
|
|
3019
|
+
]),
|
|
3020
|
+
_: 1
|
|
3021
|
+
})
|
|
3022
|
+
]),
|
|
3023
|
+
_: 1
|
|
3024
|
+
})
|
|
3025
|
+
])
|
|
3026
|
+
]),
|
|
3027
|
+
a.notification.message ? (u(), _("p", ql, T(a.notification.message), 1)) : H("", !0),
|
|
3028
|
+
c("div", jl, [
|
|
3029
|
+
c("span", Yl, T(l(a.notification.timestamp)), 1)
|
|
3030
|
+
])
|
|
3031
|
+
])
|
|
3032
|
+
], 2);
|
|
3033
|
+
};
|
|
3034
|
+
}
|
|
3035
|
+
}), Xl = /* @__PURE__ */ W(Kl, [["__scopeId", "data-v-e1dde915"]]), Ql = { class: "ml-notification-center" }, Zl = { class: "ml-notification-center-header" }, Jl = { class: "ml-notification-center-title" }, ea = { class: "ml-notification-center-actions" }, ta = { class: "ml-notification-center-content" }, na = {
|
|
3036
|
+
key: 0,
|
|
3037
|
+
class: "ml-notification-center-empty"
|
|
3038
|
+
}, oa = {
|
|
3039
|
+
key: 1,
|
|
3040
|
+
class: "ml-notification-list"
|
|
3041
|
+
}, la = /* @__PURE__ */ S({
|
|
3042
|
+
__name: "MlNotificationCenter",
|
|
3043
|
+
props: {
|
|
3044
|
+
title: {}
|
|
3045
|
+
},
|
|
3046
|
+
emits: ["close"],
|
|
3047
|
+
setup(t) {
|
|
3048
|
+
const { t: e } = P(), n = t, i = C(
|
|
3049
|
+
() => n.title ?? e("main.notification.center.title")
|
|
3050
|
+
), { notifications: o, remove: l, clearAll: a } = me(), r = (s) => {
|
|
3051
|
+
s.action();
|
|
3052
|
+
};
|
|
3053
|
+
return (s, p) => {
|
|
3054
|
+
const g = M("el-icon"), b = M("el-button"), v = M("el-tooltip");
|
|
3055
|
+
return u(), _("div", Ql, [
|
|
3056
|
+
c("div", Zl, [
|
|
3057
|
+
c("div", Jl, [
|
|
3058
|
+
m(g, { class: "ml-notification-center-icon" }, {
|
|
3059
|
+
default: f(() => [
|
|
3060
|
+
m(d(he))
|
|
3061
|
+
]),
|
|
3062
|
+
_: 1
|
|
3063
|
+
}),
|
|
3064
|
+
c("span", null, T(i.value), 1)
|
|
3065
|
+
]),
|
|
3066
|
+
c("div", ea, [
|
|
3067
|
+
d(o).length > 0 ? (u(), L(v, {
|
|
3068
|
+
key: 0,
|
|
3069
|
+
content: d(e)("main.notification.center.clearAll"),
|
|
3070
|
+
"hide-after": 0
|
|
3071
|
+
}, {
|
|
3072
|
+
default: f(() => [
|
|
3073
|
+
m(b, {
|
|
3074
|
+
text: "",
|
|
3075
|
+
circle: "",
|
|
3076
|
+
size: "small",
|
|
3077
|
+
class: "ml-notification-center-clear",
|
|
3078
|
+
onClick: d(a)
|
|
3079
|
+
}, {
|
|
3080
|
+
default: f(() => [
|
|
3081
|
+
m(g, null, {
|
|
3082
|
+
default: f(() => [
|
|
3083
|
+
m(d(wl))
|
|
3084
|
+
]),
|
|
3085
|
+
_: 1
|
|
3086
|
+
})
|
|
3087
|
+
]),
|
|
3088
|
+
_: 1
|
|
3089
|
+
}, 8, ["onClick"])
|
|
3090
|
+
]),
|
|
3091
|
+
_: 1
|
|
3092
|
+
}, 8, ["content"])) : H("", !0),
|
|
3093
|
+
m(b, {
|
|
3094
|
+
text: "",
|
|
3095
|
+
size: "small",
|
|
3096
|
+
class: "ml-notification-center-close",
|
|
3097
|
+
onClick: p[0] || (p[0] = (h) => s.$emit("close"))
|
|
3098
|
+
}, {
|
|
3099
|
+
default: f(() => [
|
|
3100
|
+
m(g, null, {
|
|
3101
|
+
default: f(() => [
|
|
3102
|
+
m(d(Pe))
|
|
3103
|
+
]),
|
|
3104
|
+
_: 1
|
|
3105
|
+
})
|
|
3106
|
+
]),
|
|
3107
|
+
_: 1
|
|
3108
|
+
})
|
|
3109
|
+
])
|
|
3110
|
+
]),
|
|
3111
|
+
c("div", ta, [
|
|
3112
|
+
d(o).length === 0 ? (u(), _("div", na, [
|
|
3113
|
+
m(g, { class: "ml-notification-center-empty-icon" }, {
|
|
3114
|
+
default: f(() => [
|
|
3115
|
+
m(d(he))
|
|
3116
|
+
]),
|
|
3117
|
+
_: 1
|
|
3118
|
+
}),
|
|
3119
|
+
c("p", null, T(d(e)("main.notification.center.noNotifications")), 1)
|
|
3120
|
+
])) : (u(), _("div", oa, [
|
|
3121
|
+
(u(!0), _(j, null, K(d(o), (h) => (u(), L(Xl, {
|
|
3122
|
+
key: h.id,
|
|
3123
|
+
notification: h,
|
|
3124
|
+
onClose: (w) => d(l)(h.id),
|
|
3125
|
+
onAction: r
|
|
3126
|
+
}, null, 8, ["notification", "onClose"]))), 128))
|
|
3127
|
+
]))
|
|
3128
|
+
])
|
|
3129
|
+
]);
|
|
3130
|
+
};
|
|
3131
|
+
}
|
|
3132
|
+
}), aa = /* @__PURE__ */ W(la, [["__scopeId", "data-v-2e5353ed"]]), ia = /* @__PURE__ */ S({
|
|
2708
3133
|
__name: "MlFullScreenButton",
|
|
2709
3134
|
setup(t) {
|
|
2710
|
-
const { t: e } = P(), { isFullscreen: n, toggle: i } =
|
|
2711
|
-
onIcon:
|
|
2712
|
-
offIcon:
|
|
3135
|
+
const { t: e } = P(), { isFullscreen: n, toggle: i } = Je(), o = C(() => ({
|
|
3136
|
+
onIcon: Le,
|
|
3137
|
+
offIcon: Le,
|
|
2713
3138
|
onTooltip: e("main.statusBar.fullScreen.on"),
|
|
2714
3139
|
offTooltip: e("main.statusBar.fullScreen.off")
|
|
2715
|
-
})),
|
|
2716
|
-
return (a,
|
|
2717
|
-
modelValue:
|
|
2718
|
-
"onUpdate:modelValue":
|
|
2719
|
-
data:
|
|
2720
|
-
onClick:
|
|
3140
|
+
})), l = C(() => !n.value);
|
|
3141
|
+
return (a, r) => (u(), L(d(Oe), {
|
|
3142
|
+
modelValue: l.value,
|
|
3143
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => l.value = s),
|
|
3144
|
+
data: o.value,
|
|
3145
|
+
onClick: d(i)
|
|
2721
3146
|
}, null, 8, ["modelValue", "data", "onClick"]));
|
|
2722
3147
|
}
|
|
2723
|
-
}),
|
|
3148
|
+
}), sa = /* @__PURE__ */ S({
|
|
3149
|
+
__name: "MlNotificationButton",
|
|
3150
|
+
emits: ["click"],
|
|
3151
|
+
setup(t, { emit: e }) {
|
|
3152
|
+
const { t: n } = P(), { unreadCount: i } = me(), o = e, l = () => {
|
|
3153
|
+
o("click");
|
|
3154
|
+
};
|
|
3155
|
+
return (a, r) => {
|
|
3156
|
+
const s = M("el-badge"), p = M("el-button"), g = M("el-tooltip");
|
|
3157
|
+
return u(), L(g, {
|
|
3158
|
+
content: d(n)("main.statusBar.notification.tooltip"),
|
|
3159
|
+
"hide-after": 0
|
|
3160
|
+
}, {
|
|
3161
|
+
default: f(() => [
|
|
3162
|
+
m(p, {
|
|
3163
|
+
class: "ml-notification-button",
|
|
3164
|
+
icon: d(he),
|
|
3165
|
+
onClick: l
|
|
3166
|
+
}, {
|
|
3167
|
+
default: f(() => [
|
|
3168
|
+
d(i) > 0 ? (u(), L(s, {
|
|
3169
|
+
key: 0,
|
|
3170
|
+
value: d(i),
|
|
3171
|
+
max: 99,
|
|
3172
|
+
class: "ml-notification-badge"
|
|
3173
|
+
}, null, 8, ["value"])) : H("", !0)
|
|
3174
|
+
]),
|
|
3175
|
+
_: 1
|
|
3176
|
+
}, 8, ["icon"])
|
|
3177
|
+
]),
|
|
3178
|
+
_: 1
|
|
3179
|
+
}, 8, ["content"]);
|
|
3180
|
+
};
|
|
3181
|
+
}
|
|
3182
|
+
}), ra = /* @__PURE__ */ W(sa, [["__scopeId", "data-v-48c740b7"]]), ca = /* @__PURE__ */ S({
|
|
2724
3183
|
__name: "MlPointStyleButton",
|
|
2725
3184
|
setup(t) {
|
|
2726
3185
|
const { t: e } = P(), n = () => {
|
|
2727
|
-
|
|
3186
|
+
E.instance.sendStringToExecute("pttype");
|
|
2728
3187
|
};
|
|
2729
|
-
return (i,
|
|
2730
|
-
const
|
|
2731
|
-
return u(),
|
|
2732
|
-
content:
|
|
3188
|
+
return (i, o) => {
|
|
3189
|
+
const l = M("el-button"), a = M("el-tooltip");
|
|
3190
|
+
return u(), L(a, {
|
|
3191
|
+
content: d(e)("main.statusBar.pointStyle.tooltip"),
|
|
2733
3192
|
"hide-after": 0
|
|
2734
3193
|
}, {
|
|
2735
|
-
default:
|
|
2736
|
-
|
|
3194
|
+
default: f(() => [
|
|
3195
|
+
m(l, {
|
|
2737
3196
|
class: "ml-point-style-button",
|
|
2738
|
-
icon:
|
|
2739
|
-
onClick:
|
|
3197
|
+
icon: d(Sl),
|
|
3198
|
+
onClick: o[0] || (o[0] = (r) => n())
|
|
2740
3199
|
}, null, 8, ["icon"])
|
|
2741
3200
|
]),
|
|
2742
3201
|
_: 1
|
|
2743
3202
|
}, 8, ["content"]);
|
|
2744
3203
|
};
|
|
2745
3204
|
}
|
|
2746
|
-
}),
|
|
3205
|
+
}), ua = /* @__PURE__ */ W(ca, [["__scopeId", "data-v-29692d7d"]]), da = {
|
|
2747
3206
|
key: 0,
|
|
2748
3207
|
class: "ml-progress"
|
|
2749
|
-
},
|
|
3208
|
+
}, ma = /* @__PURE__ */ S({
|
|
2750
3209
|
__name: "MlProgress",
|
|
2751
3210
|
setup(t) {
|
|
2752
|
-
const { t: e } = P(), n =
|
|
2753
|
-
if (
|
|
2754
|
-
const s =
|
|
3211
|
+
const { t: e } = P(), n = k(0), i = k(!1), { warning: o } = me(), l = (r) => {
|
|
3212
|
+
if (r.stage === "CONVERSION") {
|
|
3213
|
+
const s = Ce.service({
|
|
2755
3214
|
lock: !0
|
|
2756
3215
|
});
|
|
2757
|
-
if (
|
|
2758
|
-
const
|
|
2759
|
-
if (s.setText(
|
|
2760
|
-
const
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
count:
|
|
2765
|
-
})
|
|
2766
|
-
|
|
2767
|
-
type: "warning"
|
|
2768
|
-
});
|
|
3216
|
+
if (r.subStage) {
|
|
3217
|
+
const p = Vt(r.subStage);
|
|
3218
|
+
if (s.setText(p), r.subStage === "PARSE" && r.subStageStatus === "END" && r.data) {
|
|
3219
|
+
const g = r.data;
|
|
3220
|
+
g.unknownEntityCount > 0 && o(
|
|
3221
|
+
e("main.notification.title.parsingWarning"),
|
|
3222
|
+
e("main.message.unknownEntities", {
|
|
3223
|
+
count: g.unknownEntityCount
|
|
3224
|
+
})
|
|
3225
|
+
);
|
|
2769
3226
|
}
|
|
2770
3227
|
}
|
|
2771
|
-
n.value =
|
|
2772
|
-
} else if (
|
|
2773
|
-
const s =
|
|
3228
|
+
n.value = r.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
|
|
3229
|
+
} else if (r.stage === "FETCH_FILE") {
|
|
3230
|
+
const s = Ce.service({
|
|
2774
3231
|
lock: !0
|
|
2775
3232
|
});
|
|
2776
|
-
s.setText(e("main.message.fetchingDrawingFile")), n.value =
|
|
3233
|
+
s.setText(e("main.message.fetchingDrawingFile")), n.value = r.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
|
|
2777
3234
|
}
|
|
2778
|
-
},
|
|
2779
|
-
return
|
|
2780
|
-
|
|
3235
|
+
}, a = (r) => `${r.toFixed(0)}%`;
|
|
3236
|
+
return U(() => {
|
|
3237
|
+
X.on("open-file-progress", l);
|
|
2781
3238
|
}), te(() => {
|
|
2782
|
-
|
|
2783
|
-
}), (
|
|
2784
|
-
|
|
3239
|
+
X.off("open-file-progress", l);
|
|
3240
|
+
}), (r, s) => i.value ? (u(), _("div", da, [
|
|
3241
|
+
m(d(it), {
|
|
2785
3242
|
"text-inside": !0,
|
|
2786
3243
|
"stroke-width": 20,
|
|
2787
3244
|
percentage: n.value,
|
|
2788
|
-
format:
|
|
3245
|
+
format: a
|
|
2789
3246
|
}, null, 8, ["percentage"])
|
|
2790
|
-
])) :
|
|
3247
|
+
])) : H("", !0);
|
|
2791
3248
|
}
|
|
2792
|
-
}),
|
|
3249
|
+
}), pa = /* @__PURE__ */ W(ma, [["__scopeId", "data-v-35ad24b9"]]), fa = /* @__PURE__ */ S({
|
|
2793
3250
|
__name: "MlSettingButton",
|
|
2794
3251
|
setup(t) {
|
|
2795
|
-
const { t: e } = P(), n =
|
|
2796
|
-
|
|
3252
|
+
const { t: e } = P(), n = pe(), i = (o) => {
|
|
3253
|
+
o == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, Q.instance.isShowCoordinate = n.isShowCoordinate) : o == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, Q.instance.isShowCommandLine = n.isShowCommandLine) : o == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, Q.instance.isShowToolbar = n.isShowToolbar) : o == "isShowStats" && (n.isShowStats = !n.isShowStats, Q.instance.isShowStats = n.isShowStats);
|
|
2797
3254
|
};
|
|
2798
|
-
return (
|
|
2799
|
-
const a = M("el-button"),
|
|
2800
|
-
return u(),
|
|
2801
|
-
content:
|
|
3255
|
+
return (o, l) => {
|
|
3256
|
+
const a = M("el-button"), r = M("el-dropdown-item"), s = M("el-dropdown-menu"), p = M("el-dropdown"), g = M("el-tooltip");
|
|
3257
|
+
return u(), L(g, {
|
|
3258
|
+
content: d(e)("main.statusBar.setting.tooltip"),
|
|
2802
3259
|
"hide-after": 0
|
|
2803
3260
|
}, {
|
|
2804
|
-
default:
|
|
2805
|
-
|
|
3261
|
+
default: f(() => [
|
|
3262
|
+
m(p, {
|
|
2806
3263
|
trigger: "click",
|
|
2807
3264
|
onCommand: i
|
|
2808
3265
|
}, {
|
|
2809
|
-
dropdown:
|
|
2810
|
-
|
|
2811
|
-
default:
|
|
2812
|
-
|
|
2813
|
-
icon:
|
|
3266
|
+
dropdown: f(() => [
|
|
3267
|
+
m(s, null, {
|
|
3268
|
+
default: f(() => [
|
|
3269
|
+
m(r, {
|
|
3270
|
+
icon: d(n).isShowStats ? d(ie) : "",
|
|
2814
3271
|
command: "isShowStats"
|
|
2815
3272
|
}, {
|
|
2816
|
-
default:
|
|
2817
|
-
|
|
3273
|
+
default: f(() => [
|
|
3274
|
+
N(T(d(e)("main.statusBar.setting.stats")), 1)
|
|
2818
3275
|
]),
|
|
2819
3276
|
_: 1
|
|
2820
3277
|
}, 8, ["icon"]),
|
|
2821
|
-
|
|
2822
|
-
icon:
|
|
3278
|
+
m(r, {
|
|
3279
|
+
icon: d(n).isShowCommandLine ? d(ie) : "",
|
|
2823
3280
|
command: "isShowCommandLine"
|
|
2824
3281
|
}, {
|
|
2825
|
-
default:
|
|
2826
|
-
|
|
3282
|
+
default: f(() => [
|
|
3283
|
+
N(T(d(e)("main.statusBar.setting.commandLine")), 1)
|
|
2827
3284
|
]),
|
|
2828
3285
|
_: 1
|
|
2829
3286
|
}, 8, ["icon"]),
|
|
2830
|
-
|
|
2831
|
-
icon:
|
|
3287
|
+
m(r, {
|
|
3288
|
+
icon: d(n).isShowCoordinate ? d(ie) : "",
|
|
2832
3289
|
command: "isShowCoordinate"
|
|
2833
3290
|
}, {
|
|
2834
|
-
default:
|
|
2835
|
-
|
|
3291
|
+
default: f(() => [
|
|
3292
|
+
N(T(d(e)("main.statusBar.setting.coordinate")), 1)
|
|
2836
3293
|
]),
|
|
2837
3294
|
_: 1
|
|
2838
3295
|
}, 8, ["icon"]),
|
|
2839
|
-
|
|
2840
|
-
icon:
|
|
3296
|
+
m(r, {
|
|
3297
|
+
icon: d(n).isShowToolbar ? d(ie) : "",
|
|
2841
3298
|
command: "isShowToolbar"
|
|
2842
3299
|
}, {
|
|
2843
|
-
default:
|
|
2844
|
-
|
|
3300
|
+
default: f(() => [
|
|
3301
|
+
N(T(d(e)("main.statusBar.setting.toolbar")), 1)
|
|
2845
3302
|
]),
|
|
2846
3303
|
_: 1
|
|
2847
3304
|
}, 8, ["icon"])
|
|
@@ -2849,10 +3306,10 @@ const _l = /* @__PURE__ */ L({
|
|
|
2849
3306
|
_: 1
|
|
2850
3307
|
})
|
|
2851
3308
|
]),
|
|
2852
|
-
default:
|
|
2853
|
-
|
|
3309
|
+
default: f(() => [
|
|
3310
|
+
m(a, {
|
|
2854
3311
|
class: "ml-setting-button",
|
|
2855
|
-
icon:
|
|
3312
|
+
icon: d(zl)
|
|
2856
3313
|
}, null, 8, ["icon"])
|
|
2857
3314
|
]),
|
|
2858
3315
|
_: 1
|
|
@@ -2862,61 +3319,64 @@ const _l = /* @__PURE__ */ L({
|
|
|
2862
3319
|
}, 8, ["content"]);
|
|
2863
3320
|
};
|
|
2864
3321
|
}
|
|
2865
|
-
}),
|
|
3322
|
+
}), va = /* @__PURE__ */ W(fa, [["__scopeId", "data-v-666f03a3"]]), ga = /* @__PURE__ */ S({
|
|
2866
3323
|
__name: "MlThemeButton",
|
|
2867
3324
|
setup(t) {
|
|
2868
|
-
const { t: e } = P(), n =
|
|
2869
|
-
onIcon:
|
|
2870
|
-
offIcon:
|
|
3325
|
+
const { t: e } = P(), n = C(() => ({
|
|
3326
|
+
onIcon: $l,
|
|
3327
|
+
offIcon: Ml,
|
|
2871
3328
|
onTooltip: e("main.statusBar.theme.light"),
|
|
2872
3329
|
offTooltip: e("main.statusBar.theme.dark")
|
|
2873
3330
|
}));
|
|
2874
|
-
return (i,
|
|
2875
|
-
modelValue:
|
|
2876
|
-
"onUpdate:modelValue":
|
|
3331
|
+
return (i, o) => (u(), L(d(Oe), {
|
|
3332
|
+
modelValue: d(se),
|
|
3333
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => Ye(se) ? se.value = l : null),
|
|
2877
3334
|
data: n.value,
|
|
2878
|
-
onClick:
|
|
3335
|
+
onClick: o[1] || (o[1] = (l) => d(wt)())
|
|
2879
3336
|
}, null, 8, ["modelValue", "data"]));
|
|
2880
3337
|
}
|
|
2881
|
-
}),
|
|
3338
|
+
}), ha = /* @__PURE__ */ S({
|
|
2882
3339
|
__name: "MlWarningButton",
|
|
2883
3340
|
setup(t) {
|
|
2884
3341
|
const e = () => {
|
|
2885
|
-
|
|
2886
|
-
}, { fonts: n, images: i } =
|
|
2887
|
-
return (
|
|
2888
|
-
const
|
|
2889
|
-
return
|
|
3342
|
+
E.instance.sendStringToExecute("md");
|
|
3343
|
+
}, { fonts: n, images: i } = Re(), o = C(() => i.size > 0 || n.size > 0);
|
|
3344
|
+
return (l, a) => {
|
|
3345
|
+
const r = M("el-button");
|
|
3346
|
+
return o.value ? (u(), L(r, {
|
|
2890
3347
|
key: 0,
|
|
2891
3348
|
class: "ml-warning-button",
|
|
2892
3349
|
type: "warning",
|
|
2893
|
-
icon:
|
|
2894
|
-
onClick: a[0] || (a[0] = (
|
|
2895
|
-
}, null, 8, ["icon"])) :
|
|
3350
|
+
icon: d(Fl),
|
|
3351
|
+
onClick: a[0] || (a[0] = (s) => e())
|
|
3352
|
+
}, null, 8, ["icon"])) : H("", !0);
|
|
2896
3353
|
};
|
|
2897
3354
|
}
|
|
2898
|
-
}),
|
|
3355
|
+
}), _a = /* @__PURE__ */ W(ha, [["__scopeId", "data-v-3411a3ec"]]), wa = /* @__PURE__ */ S({
|
|
2899
3356
|
__name: "MlStatusBar",
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
3357
|
+
emits: ["toggleNotificationCenter"],
|
|
3358
|
+
setup(t, { emit: e }) {
|
|
3359
|
+
const { text: n } = _t(E.instance.curView), i = xt(E.instance), o = pe(), l = (s) => {
|
|
3360
|
+
Fe().layoutManager.setCurrentLayoutBtrId(
|
|
3361
|
+
s.blockTableRecordId
|
|
2904
3362
|
);
|
|
3363
|
+
}, a = e, r = () => {
|
|
3364
|
+
a("toggleNotificationCenter");
|
|
2905
3365
|
};
|
|
2906
|
-
return (
|
|
2907
|
-
const
|
|
2908
|
-
return u(),
|
|
2909
|
-
left:
|
|
2910
|
-
|
|
2911
|
-
default:
|
|
2912
|
-
(u(!0),
|
|
3366
|
+
return (s, p) => {
|
|
3367
|
+
const g = M("el-button"), b = M("el-button-group");
|
|
3368
|
+
return u(), L(d(Vo), { class: "ml-status-bar" }, {
|
|
3369
|
+
left: f(() => [
|
|
3370
|
+
m(b, { class: "ml-status-bar-left-button-group" }, {
|
|
3371
|
+
default: f(() => [
|
|
3372
|
+
(u(!0), _(j, null, K(d(i), (v) => (u(), L(g, {
|
|
2913
3373
|
class: "ml-status-bar-layout-button",
|
|
2914
|
-
key:
|
|
2915
|
-
type:
|
|
2916
|
-
onClick: (
|
|
3374
|
+
key: v.name,
|
|
3375
|
+
type: v.isActive ? "primary" : "",
|
|
3376
|
+
onClick: (h) => l(v)
|
|
2917
3377
|
}, {
|
|
2918
|
-
default:
|
|
2919
|
-
|
|
3378
|
+
default: f(() => [
|
|
3379
|
+
N(T(v.name), 1)
|
|
2920
3380
|
]),
|
|
2921
3381
|
_: 2
|
|
2922
3382
|
}, 1032, ["type", "onClick"]))), 128))
|
|
@@ -2924,24 +3384,25 @@ const _l = /* @__PURE__ */ L({
|
|
|
2924
3384
|
_: 1
|
|
2925
3385
|
})
|
|
2926
3386
|
]),
|
|
2927
|
-
right:
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
default:
|
|
2931
|
-
|
|
3387
|
+
right: f(() => [
|
|
3388
|
+
m(pa),
|
|
3389
|
+
m(b, { class: "ml-status-bar-right-button-group" }, {
|
|
3390
|
+
default: f(() => [
|
|
3391
|
+
d(o).isShowCoordinate ? (u(), L(g, {
|
|
2932
3392
|
key: 0,
|
|
2933
3393
|
class: "ml-status-bar-current-pos"
|
|
2934
3394
|
}, {
|
|
2935
|
-
default:
|
|
2936
|
-
|
|
3395
|
+
default: f(() => [
|
|
3396
|
+
N(T(d(n)), 1)
|
|
2937
3397
|
]),
|
|
2938
3398
|
_: 1
|
|
2939
|
-
})) :
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
3399
|
+
})) : H("", !0),
|
|
3400
|
+
m(_a),
|
|
3401
|
+
m(ra, { onClick: r }),
|
|
3402
|
+
m(ga),
|
|
3403
|
+
m(ia),
|
|
3404
|
+
m(ua),
|
|
3405
|
+
m(va)
|
|
2945
3406
|
]),
|
|
2946
3407
|
_: 1
|
|
2947
3408
|
})
|
|
@@ -2950,201 +3411,231 @@ const _l = /* @__PURE__ */ L({
|
|
|
2950
3411
|
});
|
|
2951
3412
|
};
|
|
2952
3413
|
}
|
|
2953
|
-
}),
|
|
3414
|
+
}), ya = /* @__PURE__ */ W(wa, [["__scopeId", "data-v-0d51ad75"]]), ba = {
|
|
2954
3415
|
key: 0,
|
|
2955
3416
|
class: "ml-cad-viewer-container"
|
|
2956
|
-
},
|
|
3417
|
+
}, xa = { class: "ml-file-name" }, Qa = /* @__PURE__ */ S({
|
|
2957
3418
|
__name: "MlCadViewer",
|
|
2958
3419
|
props: {
|
|
2959
3420
|
locale: { default: "default" },
|
|
2960
3421
|
url: { default: void 0 },
|
|
2961
3422
|
localFile: { default: void 0 },
|
|
2962
|
-
background: { default: void 0 }
|
|
3423
|
+
background: { default: void 0 },
|
|
3424
|
+
baseUrl: { default: void 0 }
|
|
2963
3425
|
},
|
|
2964
3426
|
setup(t) {
|
|
2965
|
-
const e = t, { t: n } = P(), { effectiveLocale: i, elementPlusLocale:
|
|
2966
|
-
const
|
|
2967
|
-
await
|
|
2968
|
-
},
|
|
3427
|
+
const e = t, { t: n } = P(), { effectiveLocale: i, elementPlusLocale: o } = Ie(e.locale), { info: l, warning: a, error: r, success: s } = me(), p = k(), g = k(null), b = C(() => g.value), v = k(!1), h = async (y, z) => {
|
|
3428
|
+
const B = { minimumChunkSize: 1e3 };
|
|
3429
|
+
await E.instance.openDocument(y, z, B), Z.fileName = y;
|
|
3430
|
+
}, w = async (y) => {
|
|
2969
3431
|
try {
|
|
2970
|
-
const
|
|
2971
|
-
await
|
|
2972
|
-
const
|
|
2973
|
-
Z.fileName =
|
|
2974
|
-
} catch (
|
|
2975
|
-
console.error("Failed to open file from URL:",
|
|
2976
|
-
message: n("main.message.failedToOpenFile", { fileName:
|
|
3432
|
+
const z = { minimumChunkSize: 1e3 };
|
|
3433
|
+
await E.instance.openUrl(y, z);
|
|
3434
|
+
const B = y.split("/").pop();
|
|
3435
|
+
Z.fileName = B ?? "";
|
|
3436
|
+
} catch (z) {
|
|
3437
|
+
console.error("Failed to open file from URL:", z), oe({
|
|
3438
|
+
message: n("main.message.failedToOpenFile", { fileName: y }),
|
|
2977
3439
|
grouping: !0,
|
|
2978
3440
|
type: "error",
|
|
2979
3441
|
showClose: !0
|
|
2980
3442
|
});
|
|
2981
3443
|
}
|
|
2982
|
-
},
|
|
2983
|
-
var
|
|
3444
|
+
}, x = async (y) => {
|
|
3445
|
+
var z;
|
|
2984
3446
|
try {
|
|
2985
|
-
const
|
|
2986
|
-
if (
|
|
2987
|
-
|
|
2988
|
-
else if (
|
|
2989
|
-
|
|
3447
|
+
const B = (z = y.name.split(".").pop()) == null ? void 0 : z.toLowerCase(), R = new FileReader();
|
|
3448
|
+
if (B === "dxf")
|
|
3449
|
+
R.readAsText(y);
|
|
3450
|
+
else if (B === "dwg")
|
|
3451
|
+
R.readAsArrayBuffer(y);
|
|
2990
3452
|
else
|
|
2991
|
-
throw new Error(`Unsupported file type: ${
|
|
2992
|
-
const
|
|
2993
|
-
(
|
|
2994
|
-
|
|
2995
|
-
var
|
|
2996
|
-
const
|
|
2997
|
-
|
|
2998
|
-
},
|
|
3453
|
+
throw new Error(`Unsupported file type: ${B}`);
|
|
3454
|
+
const O = await new Promise(
|
|
3455
|
+
(F, G) => {
|
|
3456
|
+
R.onload = (ne) => {
|
|
3457
|
+
var xe;
|
|
3458
|
+
const be = (xe = ne.target) == null ? void 0 : xe.result;
|
|
3459
|
+
be ? F(be) : G(new Error("Failed to read file content"));
|
|
3460
|
+
}, R.onerror = () => G(new Error("Failed to read file"));
|
|
2999
3461
|
}
|
|
3000
|
-
),
|
|
3001
|
-
await
|
|
3002
|
-
} catch (
|
|
3003
|
-
console.error("Failed to open local file:",
|
|
3004
|
-
message: n("main.message.failedToOpenFile", { fileName:
|
|
3462
|
+
), $ = { minimumChunkSize: 1e3 };
|
|
3463
|
+
await E.instance.openDocument(y.name, O, $), Z.fileName = y.name;
|
|
3464
|
+
} catch (B) {
|
|
3465
|
+
console.error("Failed to open local file:", B), oe({
|
|
3466
|
+
message: n("main.message.failedToOpenFile", { fileName: y.name }),
|
|
3005
3467
|
grouping: !0,
|
|
3006
3468
|
type: "error",
|
|
3007
3469
|
showClose: !0
|
|
3008
3470
|
});
|
|
3009
3471
|
}
|
|
3010
3472
|
};
|
|
3011
|
-
|
|
3473
|
+
A(
|
|
3012
3474
|
() => e.url,
|
|
3013
|
-
async (
|
|
3014
|
-
|
|
3475
|
+
async (y) => {
|
|
3476
|
+
y && w(y);
|
|
3015
3477
|
}
|
|
3016
|
-
),
|
|
3478
|
+
), A(
|
|
3017
3479
|
() => e.localFile,
|
|
3018
|
-
async (
|
|
3019
|
-
|
|
3480
|
+
async (y) => {
|
|
3481
|
+
y && x(y);
|
|
3020
3482
|
}
|
|
3021
|
-
),
|
|
3483
|
+
), A(
|
|
3022
3484
|
() => e.background,
|
|
3023
|
-
(
|
|
3024
|
-
|
|
3485
|
+
(y) => {
|
|
3486
|
+
y != null && (E.instance.curView.backgroundColor = y);
|
|
3487
|
+
}
|
|
3488
|
+
), A(
|
|
3489
|
+
() => e.baseUrl,
|
|
3490
|
+
(y) => {
|
|
3491
|
+
y && (E.instance.baseUrl = y);
|
|
3025
3492
|
}
|
|
3026
|
-
),
|
|
3027
|
-
|
|
3028
|
-
}),
|
|
3029
|
-
|
|
3030
|
-
message:
|
|
3493
|
+
), U(async () => {
|
|
3494
|
+
p.value && (Ca(p.value), Ma(), g.value = E.instance), e.url ? w(e.url) : e.localFile && x(e.localFile), e.background != null && (E.instance.curView.backgroundColor = e.background), e.baseUrl && (E.instance.baseUrl = e.baseUrl);
|
|
3495
|
+
}), X.on("message", (y) => {
|
|
3496
|
+
switch (oe({
|
|
3497
|
+
message: y.message,
|
|
3031
3498
|
grouping: !0,
|
|
3032
|
-
type:
|
|
3499
|
+
type: y.type,
|
|
3033
3500
|
showClose: !0
|
|
3501
|
+
}), y.type) {
|
|
3502
|
+
case "success":
|
|
3503
|
+
s("System Message", y.message);
|
|
3504
|
+
break;
|
|
3505
|
+
case "warning":
|
|
3506
|
+
a("System Warning", y.message);
|
|
3507
|
+
break;
|
|
3508
|
+
case "error":
|
|
3509
|
+
r("System Error", y.message);
|
|
3510
|
+
break;
|
|
3511
|
+
default:
|
|
3512
|
+
l("System Info", y.message);
|
|
3513
|
+
break;
|
|
3514
|
+
}
|
|
3515
|
+
}), X.on("fonts-not-loaded", (y) => {
|
|
3516
|
+
const z = y.fonts.map((R) => R.fontName).join(", "), B = n("main.message.fontsNotLoaded", { fonts: z });
|
|
3517
|
+
r(n("main.notification.title.fontNotFound"), B);
|
|
3518
|
+
}), X.on("fonts-not-found", (y) => {
|
|
3519
|
+
const z = n("main.message.fontsNotFound", {
|
|
3520
|
+
fonts: y.fonts.join(", ")
|
|
3034
3521
|
});
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
url: f.url
|
|
3040
|
-
}),
|
|
3522
|
+
a(n("main.notification.title.fontNotFound"), z);
|
|
3523
|
+
}), X.on("failed-to-get-avaiable-fonts", (y) => {
|
|
3524
|
+
oe({
|
|
3525
|
+
message: n("main.message.failedToGetAvaiableFonts", { url: y.url }),
|
|
3041
3526
|
grouping: !0,
|
|
3042
3527
|
type: "error",
|
|
3043
3528
|
showClose: !0
|
|
3044
3529
|
});
|
|
3045
|
-
}),
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
grouping: !0,
|
|
3049
|
-
type: "error",
|
|
3050
|
-
showClose: !0
|
|
3530
|
+
}), X.on("failed-to-open-file", (y) => {
|
|
3531
|
+
const z = n("main.message.failedToOpenFile", {
|
|
3532
|
+
fileName: y.fileName
|
|
3051
3533
|
});
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
message: n("main.message.failedToOpenFile", { fileName: f.fileName }),
|
|
3534
|
+
oe({
|
|
3535
|
+
message: z,
|
|
3055
3536
|
grouping: !0,
|
|
3056
3537
|
type: "error",
|
|
3057
3538
|
showClose: !0
|
|
3058
|
-
});
|
|
3059
|
-
})
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3539
|
+
}), r("File Opening Failed", z);
|
|
3540
|
+
});
|
|
3541
|
+
const D = () => {
|
|
3542
|
+
v.value = !v.value;
|
|
3543
|
+
}, V = () => {
|
|
3544
|
+
v.value = !1;
|
|
3545
|
+
};
|
|
3546
|
+
return (y, z) => {
|
|
3547
|
+
const B = M("el-config-provider");
|
|
3548
|
+
return u(), _(j, null, [
|
|
3549
|
+
c("canvas", {
|
|
3063
3550
|
ref_key: "canvasRef",
|
|
3064
|
-
ref:
|
|
3551
|
+
ref: p,
|
|
3065
3552
|
class: "ml-cad-canvas"
|
|
3066
3553
|
}, null, 512),
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
default:
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3554
|
+
g.value ? (u(), _("div", ba, [
|
|
3555
|
+
m(B, { locale: d(o) }, {
|
|
3556
|
+
default: f(() => [
|
|
3557
|
+
c("header", null, [
|
|
3558
|
+
m(d(Il)),
|
|
3559
|
+
m(d(ml), { "current-locale": d(i) }, null, 8, ["current-locale"])
|
|
3073
3560
|
]),
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3561
|
+
c("main", null, [
|
|
3562
|
+
c("div", xa, T(d(Z).fileName), 1),
|
|
3563
|
+
m(d(Ol)),
|
|
3564
|
+
m(d(al), { editor: b.value }, null, 8, ["editor"]),
|
|
3565
|
+
m(d(It))
|
|
3079
3566
|
]),
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3567
|
+
c("footer", null, [
|
|
3568
|
+
m(d(rl)),
|
|
3569
|
+
m(d(ya), { onToggleNotificationCenter: D })
|
|
3083
3570
|
]),
|
|
3084
|
-
|
|
3085
|
-
|
|
3571
|
+
m(d(Ot), { onFileRead: h }),
|
|
3572
|
+
m(d(ul)),
|
|
3573
|
+
v.value ? (u(), L(d(aa), {
|
|
3574
|
+
key: 0,
|
|
3575
|
+
onClose: V
|
|
3576
|
+
})) : H("", !0)
|
|
3086
3577
|
]),
|
|
3087
3578
|
_: 1
|
|
3088
3579
|
}, 8, ["locale"])
|
|
3089
|
-
])) :
|
|
3580
|
+
])) : H("", !0)
|
|
3090
3581
|
], 64);
|
|
3091
3582
|
};
|
|
3092
3583
|
}
|
|
3093
|
-
}),
|
|
3094
|
-
|
|
3095
|
-
|
|
3584
|
+
}), ka = () => {
|
|
3585
|
+
q.instance.addCommand(
|
|
3586
|
+
q.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3096
3587
|
"log",
|
|
3097
3588
|
"log",
|
|
3098
|
-
new
|
|
3099
|
-
),
|
|
3100
|
-
|
|
3589
|
+
new La()
|
|
3590
|
+
), q.instance.addCommand(
|
|
3591
|
+
q.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3101
3592
|
"la",
|
|
3102
3593
|
"la",
|
|
3103
|
-
new
|
|
3104
|
-
),
|
|
3105
|
-
|
|
3594
|
+
new Sa()
|
|
3595
|
+
), q.instance.addCommand(
|
|
3596
|
+
q.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3106
3597
|
"md",
|
|
3107
3598
|
"md",
|
|
3108
|
-
new
|
|
3109
|
-
),
|
|
3110
|
-
|
|
3599
|
+
new za()
|
|
3600
|
+
), q.instance.addCommand(
|
|
3601
|
+
q.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3111
3602
|
"pttype",
|
|
3112
3603
|
"pttype",
|
|
3113
|
-
new
|
|
3604
|
+
new Ba()
|
|
3114
3605
|
);
|
|
3115
|
-
},
|
|
3116
|
-
const { registerDialog: t } =
|
|
3606
|
+
}, Ma = () => {
|
|
3607
|
+
const { registerDialog: t } = ae();
|
|
3117
3608
|
t({
|
|
3118
3609
|
name: "ReplacementDlg",
|
|
3119
|
-
component:
|
|
3610
|
+
component: ke(Ht),
|
|
3120
3611
|
props: {}
|
|
3121
3612
|
}), t({
|
|
3122
3613
|
name: "PointStyleDlg",
|
|
3123
|
-
component:
|
|
3614
|
+
component: ke(fo),
|
|
3124
3615
|
props: {}
|
|
3125
3616
|
});
|
|
3126
|
-
},
|
|
3127
|
-
|
|
3128
|
-
}, Z =
|
|
3617
|
+
}, Ca = (t) => {
|
|
3618
|
+
E.createInstance(t), Ue(), ka(), E.instance.loadDefaultFonts();
|
|
3619
|
+
}, Z = Y({
|
|
3129
3620
|
fileName: "",
|
|
3130
3621
|
dialogs: {
|
|
3131
3622
|
layerManager: !1
|
|
3132
3623
|
}
|
|
3133
3624
|
});
|
|
3134
|
-
class
|
|
3625
|
+
class Sa extends ce {
|
|
3135
3626
|
execute(e) {
|
|
3136
3627
|
Z.dialogs.layerManager = !0;
|
|
3137
3628
|
}
|
|
3138
3629
|
}
|
|
3139
|
-
class
|
|
3630
|
+
class La extends ce {
|
|
3140
3631
|
execute(e) {
|
|
3141
3632
|
this.printSelectionSet(e), this.printStats(e), this.printPerformanceData();
|
|
3142
3633
|
}
|
|
3143
3634
|
printSelectionSet(e) {
|
|
3144
3635
|
const n = e.doc.database.tables.blockTable.modelSpace;
|
|
3145
3636
|
e.view.selectionSet.ids.forEach((i) => {
|
|
3146
|
-
const
|
|
3147
|
-
|
|
3637
|
+
const o = n.getIdAt(i);
|
|
3638
|
+
o && console.log(o);
|
|
3148
3639
|
});
|
|
3149
3640
|
}
|
|
3150
3641
|
printStats(e) {
|
|
@@ -3152,20 +3643,20 @@ class Ol extends re {
|
|
|
3152
3643
|
console.log("Geometry information in current drawing:");
|
|
3153
3644
|
for (let i = 0; i < n.length; ++i) {
|
|
3154
3645
|
console.group(`Layout: ${i}`);
|
|
3155
|
-
const
|
|
3156
|
-
name:
|
|
3157
|
-
"idx line (KB)":
|
|
3158
|
-
"line (KB)":
|
|
3159
|
-
"idx mesh (KB)":
|
|
3160
|
-
"mesh (KB)":
|
|
3161
|
-
"idx point (KB)":
|
|
3162
|
-
"point (KB)":
|
|
3163
|
-
"total geo (KB)": (
|
|
3164
|
-
"total mapping (KB)": (
|
|
3646
|
+
const o = n[i], l = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], r = o.layers.map((s) => (l[0] = s.line.indexed.geometrySize / 1024, l[1] = s.line.nonIndexed.geometrySize / 1024, l[2] = s.mesh.indexed.geometrySize / 1024, l[3] = s.mesh.nonIndexed.geometrySize / 1024, l[4] = s.point.indexed.geometrySize / 1024, l[5] = s.point.nonIndexed.geometrySize / 1024, a[0] += l[0], a[1] += l[1], a[2] += l[2], a[3] += l[3], a[4] += l[4], a[5] += l[5], {
|
|
3647
|
+
name: s.name,
|
|
3648
|
+
"idx line (KB)": l[0].toFixed(1),
|
|
3649
|
+
"line (KB)": l[1].toFixed(1),
|
|
3650
|
+
"idx mesh (KB)": l[2].toFixed(1),
|
|
3651
|
+
"mesh (KB)": l[3].toFixed(1),
|
|
3652
|
+
"idx point (KB)": l[4].toFixed(1),
|
|
3653
|
+
"point (KB)": l[5].toFixed(1),
|
|
3654
|
+
"total geo (KB)": (s.summary.totalGeometrySize / 1024).toFixed(1),
|
|
3655
|
+
"total mapping (KB)": (s.summary.totalMappingSize / 1024).toFixed(
|
|
3165
3656
|
1
|
|
3166
3657
|
)
|
|
3167
3658
|
}));
|
|
3168
|
-
|
|
3659
|
+
r.push({
|
|
3169
3660
|
name: "total",
|
|
3170
3661
|
"idx line (KB)": a[0].toFixed(1),
|
|
3171
3662
|
"line (KB)": a[1].toFixed(1),
|
|
@@ -3173,65 +3664,68 @@ class Ol extends re {
|
|
|
3173
3664
|
"mesh (KB)": a[3].toFixed(1),
|
|
3174
3665
|
"idx point (KB)": a[4].toFixed(1),
|
|
3175
3666
|
"point (KB)": a[5].toFixed(1),
|
|
3176
|
-
"total geo (KB)": (
|
|
3177
|
-
"total mapping (KB)": (
|
|
3667
|
+
"total geo (KB)": (o.summary.totalSize.geometry / 1024).toFixed(1),
|
|
3668
|
+
"total mapping (KB)": (o.summary.totalSize.mapping / 1024).toFixed(
|
|
3178
3669
|
1
|
|
3179
3670
|
)
|
|
3180
|
-
}), console.table(
|
|
3671
|
+
}), console.table(r), console.groupEnd();
|
|
3181
3672
|
}
|
|
3182
3673
|
}
|
|
3183
3674
|
printPerformanceData() {
|
|
3184
|
-
|
|
3675
|
+
Xe.getInstance().printAll();
|
|
3185
3676
|
}
|
|
3186
3677
|
}
|
|
3187
|
-
class
|
|
3678
|
+
class za extends ce {
|
|
3188
3679
|
execute(e) {
|
|
3189
|
-
const { toggleDialog: n } =
|
|
3680
|
+
const { toggleDialog: n } = ae();
|
|
3190
3681
|
n("ReplacementDlg", !0);
|
|
3191
3682
|
}
|
|
3192
3683
|
}
|
|
3193
|
-
class
|
|
3684
|
+
class Ba extends ce {
|
|
3194
3685
|
execute(e) {
|
|
3195
|
-
const { toggleDialog: n } =
|
|
3686
|
+
const { toggleDialog: n } = ae();
|
|
3196
3687
|
n("PointStyleDlg", !0);
|
|
3197
3688
|
}
|
|
3198
3689
|
}
|
|
3199
3690
|
export {
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3691
|
+
Sa as AcApLayerStateCmd,
|
|
3692
|
+
La as AcApLogCmd,
|
|
3693
|
+
za as AcApMissedDataCmd,
|
|
3694
|
+
Ba as AcApPointStyleCmd,
|
|
3695
|
+
Ne as MlBaseDialog,
|
|
3696
|
+
Qa as MlCadViewer,
|
|
3697
|
+
rl as MlCommandLine,
|
|
3698
|
+
It as MlDialogManager,
|
|
3699
|
+
ul as MlEntityInfo,
|
|
3700
|
+
Ot as MlFileReader,
|
|
3701
|
+
ml as MlLanguageSelector,
|
|
3702
|
+
al as MlLayerManager,
|
|
3703
|
+
Il as MlMainMenu,
|
|
3704
|
+
aa as MlNotificationCenter,
|
|
3705
|
+
Xl as MlNotificationItem,
|
|
3706
|
+
fo as MlPointStyleDlg,
|
|
3707
|
+
Ht as MlReplacementDlg,
|
|
3708
|
+
ya as MlStatusBar,
|
|
3709
|
+
Oe as MlToggleButton,
|
|
3710
|
+
Ol as MlToolBars,
|
|
3711
|
+
ye as cmdDescription,
|
|
3712
|
+
At as colorName,
|
|
3713
|
+
Vt as conversionSubStageName,
|
|
3714
|
+
Et as entityName,
|
|
3222
3715
|
ee as i18n,
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3716
|
+
se as isDark,
|
|
3717
|
+
Ka as sysCmdDescription,
|
|
3718
|
+
wt as toggleDark,
|
|
3719
|
+
ht as useCommands,
|
|
3720
|
+
_t as useCurrentPos,
|
|
3721
|
+
ae as useDialogManager,
|
|
3722
|
+
yt as useFileTypes,
|
|
3723
|
+
bt as useLayers,
|
|
3724
|
+
xt as useLayouts,
|
|
3725
|
+
Ie as useLocale,
|
|
3726
|
+
Re as useMissedData,
|
|
3727
|
+
me as useNotificationCenter,
|
|
3728
|
+
pe as useSettings,
|
|
3729
|
+
Nt as useSystemVars,
|
|
3730
|
+
Xa as userCmdDescription
|
|
3237
3731
|
};
|