@mlightcad/cad-viewer 1.2.3 → 1.2.5
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 +4 -0
- package/dist/app/app.d.ts.map +1 -1
- package/dist/app/register.d.ts.map +1 -1
- package/dist/command/index.d.ts +0 -1
- package/dist/command/index.d.ts.map +1 -1
- package/dist/component/MlCadViewer.vue.d.ts +1 -1
- package/dist/component/MlCadViewer.vue.d.ts.map +1 -1
- package/dist/component/common/MlBaseInputNumber.vue.d.ts +35 -0
- package/dist/component/common/MlBaseInputNumber.vue.d.ts.map +1 -0
- package/dist/component/common/index.d.ts +1 -0
- package/dist/component/common/index.d.ts.map +1 -1
- package/dist/component/index.d.ts +1 -1
- package/dist/component/index.d.ts.map +1 -1
- package/dist/component/layout/MlEntityInfo.vue.d.ts.map +1 -1
- package/dist/component/layout/MlLanguageSelector.vue.d.ts.map +1 -1
- package/dist/component/layout/MlMainMenu.vue.d.ts.map +1 -1
- package/dist/component/layout/index.d.ts +0 -1
- package/dist/component/layout/index.d.ts.map +1 -1
- package/dist/component/palette/MlEntityProperties.vue.d.ts +32 -0
- package/dist/component/palette/MlEntityProperties.vue.d.ts.map +1 -0
- package/dist/component/palette/MlLayerList.vue.d.ts.map +1 -0
- package/dist/component/{layerManager/MlLayerManager.vue.d.ts → palette/MlPaletteManager.vue.d.ts} +1 -1
- package/dist/component/palette/MlPaletteManager.vue.d.ts.map +1 -0
- package/dist/component/palette/index.d.ts +2 -0
- package/dist/component/palette/index.d.ts.map +1 -0
- package/dist/component/statusBar/MlProgress.vue.d.ts.map +1 -1
- package/dist/component/statusBar/MlSettingButton.vue.d.ts.map +1 -1
- package/dist/composable/index.d.ts +2 -0
- package/dist/composable/index.d.ts.map +1 -1
- package/dist/composable/useHover.d.ts +3260 -0
- package/dist/composable/useHover.d.ts.map +1 -0
- package/dist/composable/useLocale.d.ts +4 -3
- package/dist/composable/useLocale.d.ts.map +1 -1
- package/dist/composable/useSelectionSet.d.ts +6 -0
- package/dist/composable/useSelectionSet.d.ts.map +1 -0
- package/dist/composable/useSettings.d.ts +3 -0
- package/dist/composable/useSettings.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1809 -1336
- package/dist/locale/en/command.d.ts +0 -9
- package/dist/locale/en/command.d.ts.map +1 -1
- package/dist/locale/en/entity.d.ts +77 -0
- package/dist/locale/en/entity.d.ts.map +1 -1
- package/dist/locale/en/main.d.ts +14 -19
- package/dist/locale/en/main.d.ts.map +1 -1
- package/dist/locale/i18n.d.ts +6 -671
- package/dist/locale/i18n.d.ts.map +1 -1
- package/dist/locale/types.d.ts +2 -2
- package/dist/locale/types.d.ts.map +1 -1
- package/dist/locale/zh/command.d.ts +0 -9
- package/dist/locale/zh/command.d.ts.map +1 -1
- package/dist/locale/zh/entity.d.ts +77 -0
- package/dist/locale/zh/entity.d.ts.map +1 -1
- package/dist/locale/zh/main.d.ts +14 -19
- package/dist/locale/zh/main.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/command/AcApLogCmd.d.ts +0 -12
- package/dist/command/AcApLogCmd.d.ts.map +0 -1
- package/dist/component/layerManager/MlLayerList.vue.d.ts.map +0 -1
- package/dist/component/layerManager/MlLayerManager.vue.d.ts.map +0 -1
- package/dist/component/layerManager/index.d.ts +0 -2
- package/dist/component/layerManager/index.d.ts.map +0 -1
- package/dist/component/layout/MlCommandLine.vue.d.ts +0 -3
- package/dist/component/layout/MlCommandLine.vue.d.ts.map +0 -1
- /package/dist/component/{layerManager → palette}/MlLayerList.vue.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { AcEdCommandStack as
|
|
2
|
+
import { AcEdCommandStack as K, AcApDocManager as P, AcApI18n as ae, eventBus as Q, AcApSettingManager as U, AcApConvertToSvgCmd as Ye, AcApQNewCmd as Ge, AcApOpenCmd as Xe, AcEdCommand as be } from "@mlightcad/cad-simple-viewer";
|
|
3
3
|
import "element-plus/dist/index.css";
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { defineComponent as E, createElementBlock as w, openBlock as s, createElementVNode as d, computed as T, watch as I, resolveComponent as L, createCommentVNode as O, createVNode as p, Transition as We, withCtx as f, withDirectives as Ze, normalizeStyle as me, createBlock as B, resolveDynamicComponent as re, toDisplayString as V, unref as m, renderSlot as ie, createTextVNode as R, vShow as Ue, ref as M, Fragment as G, renderList as W, reactive as q, onMounted as Z, onUnmounted as ne, mergeProps as qe, mergeModels as le, useCssVars as Ee, useModel as pe, normalizeClass as ve, pushScopeId as $e, popScopeId as Ve, onBeforeUnmount as Pe, nextTick as je, isRef as Qe, markRaw as ke } from "vue";
|
|
5
|
+
import { useDark as Je, useToggle as Ke, useMediaQuery as et, useFullscreen as tt } from "@vueuse/core";
|
|
6
|
+
import { AcDbDatabaseConverterManager as nt, acdbHostApplicationServices as Ae } from "@mlightcad/data-model";
|
|
7
7
|
import ot from "element-plus/es/locale/lang/en";
|
|
8
8
|
import lt from "element-plus/es/locale/lang/zh-cn";
|
|
9
|
-
import { useI18n as
|
|
10
|
-
import {
|
|
9
|
+
import { useI18n as Y, createI18n as at } from "vue-i18n";
|
|
10
|
+
import { ElInput as it, ElSelect as st, ElOption as rt, ElMessage as ee, ElTable as ct, ElProgress as ut } from "element-plus";
|
|
11
|
+
import { ElIcon as fe, ElTabs as dt, ElTabPane as mt, ElDropdown as pt, ElDropdownMenu as vt, ElDropdownItem as ft, ElButtonGroup as gt, ElTooltip as ht, ElButton as _t } from "element-plus/es";
|
|
11
12
|
import "element-plus/es/components/base/style/css";
|
|
12
13
|
import "element-plus/es/components/icon/style/css";
|
|
13
14
|
import "element-plus/es/components/dropdown/style/css";
|
|
@@ -16,236 +17,237 @@ import "element-plus/es/components/dropdown-item/style/css";
|
|
|
16
17
|
import "element-plus/es/components/tooltip/style/css";
|
|
17
18
|
import "element-plus/es/components/button/style/css";
|
|
18
19
|
import "element-plus/es/components/button-group/style/css";
|
|
19
|
-
import
|
|
20
|
+
import "element-plus/es/components/tabs/style/css";
|
|
21
|
+
import "element-plus/es/components/tab-pane/style/css";
|
|
20
22
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
21
|
-
var
|
|
23
|
+
var wt = /* @__PURE__ */ E({
|
|
22
24
|
name: "Bell",
|
|
23
25
|
__name: "bell",
|
|
24
26
|
setup(t) {
|
|
25
|
-
return (e, n) => (
|
|
27
|
+
return (e, n) => (s(), w("svg", {
|
|
26
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27
29
|
viewBox: "0 0 1024 1024"
|
|
28
30
|
}, [
|
|
29
|
-
|
|
31
|
+
d("path", {
|
|
30
32
|
fill: "currentColor",
|
|
31
33
|
d: "M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"
|
|
32
34
|
}),
|
|
33
|
-
|
|
35
|
+
d("path", {
|
|
34
36
|
fill: "currentColor",
|
|
35
37
|
d: "M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"
|
|
36
38
|
}),
|
|
37
|
-
|
|
39
|
+
d("path", {
|
|
38
40
|
fill: "currentColor",
|
|
39
41
|
d: "M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"
|
|
40
42
|
})
|
|
41
43
|
]));
|
|
42
44
|
}
|
|
43
|
-
}),
|
|
45
|
+
}), ye = wt, yt = /* @__PURE__ */ E({
|
|
44
46
|
name: "Check",
|
|
45
47
|
__name: "check",
|
|
46
48
|
setup(t) {
|
|
47
|
-
return (e, n) => (
|
|
49
|
+
return (e, n) => (s(), w("svg", {
|
|
48
50
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49
51
|
viewBox: "0 0 1024 1024"
|
|
50
52
|
}, [
|
|
51
|
-
|
|
53
|
+
d("path", {
|
|
52
54
|
fill: "currentColor",
|
|
53
55
|
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"
|
|
54
56
|
})
|
|
55
57
|
]));
|
|
56
58
|
}
|
|
57
|
-
}),
|
|
59
|
+
}), J = yt, bt = /* @__PURE__ */ E({
|
|
58
60
|
name: "CircleCloseFilled",
|
|
59
61
|
__name: "circle-close-filled",
|
|
60
62
|
setup(t) {
|
|
61
|
-
return (e, n) => (
|
|
63
|
+
return (e, n) => (s(), w("svg", {
|
|
62
64
|
xmlns: "http://www.w3.org/2000/svg",
|
|
63
65
|
viewBox: "0 0 1024 1024"
|
|
64
66
|
}, [
|
|
65
|
-
|
|
67
|
+
d("path", {
|
|
66
68
|
fill: "currentColor",
|
|
67
69
|
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"
|
|
68
70
|
})
|
|
69
71
|
]));
|
|
70
72
|
}
|
|
71
|
-
}),
|
|
73
|
+
}), xt = bt, kt = /* @__PURE__ */ E({
|
|
72
74
|
name: "Close",
|
|
73
75
|
__name: "close",
|
|
74
76
|
setup(t) {
|
|
75
|
-
return (e, n) => (
|
|
77
|
+
return (e, n) => (s(), w("svg", {
|
|
76
78
|
xmlns: "http://www.w3.org/2000/svg",
|
|
77
79
|
viewBox: "0 0 1024 1024"
|
|
78
80
|
}, [
|
|
79
|
-
|
|
81
|
+
d("path", {
|
|
80
82
|
fill: "currentColor",
|
|
81
83
|
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"
|
|
82
84
|
})
|
|
83
85
|
]));
|
|
84
86
|
}
|
|
85
|
-
}),
|
|
87
|
+
}), xe = kt, Mt = /* @__PURE__ */ E({
|
|
86
88
|
name: "Delete",
|
|
87
89
|
__name: "delete",
|
|
88
90
|
setup(t) {
|
|
89
|
-
return (e, n) => (
|
|
91
|
+
return (e, n) => (s(), w("svg", {
|
|
90
92
|
xmlns: "http://www.w3.org/2000/svg",
|
|
91
93
|
viewBox: "0 0 1024 1024"
|
|
92
94
|
}, [
|
|
93
|
-
|
|
95
|
+
d("path", {
|
|
94
96
|
fill: "currentColor",
|
|
95
97
|
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"
|
|
96
98
|
})
|
|
97
99
|
]));
|
|
98
100
|
}
|
|
99
|
-
}),
|
|
101
|
+
}), Ct = Mt, St = /* @__PURE__ */ E({
|
|
100
102
|
name: "InfoFilled",
|
|
101
103
|
__name: "info-filled",
|
|
102
104
|
setup(t) {
|
|
103
|
-
return (e, n) => (
|
|
105
|
+
return (e, n) => (s(), w("svg", {
|
|
104
106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
105
107
|
viewBox: "0 0 1024 1024"
|
|
106
108
|
}, [
|
|
107
|
-
|
|
109
|
+
d("path", {
|
|
108
110
|
fill: "currentColor",
|
|
109
111
|
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"
|
|
110
112
|
})
|
|
111
113
|
]));
|
|
112
114
|
}
|
|
113
|
-
}), Me =
|
|
115
|
+
}), Me = St, Lt = /* @__PURE__ */ E({
|
|
114
116
|
name: "Menu",
|
|
115
117
|
__name: "menu",
|
|
116
118
|
setup(t) {
|
|
117
|
-
return (e, n) => (
|
|
119
|
+
return (e, n) => (s(), w("svg", {
|
|
118
120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
119
121
|
viewBox: "0 0 1024 1024"
|
|
120
122
|
}, [
|
|
121
|
-
|
|
123
|
+
d("path", {
|
|
122
124
|
fill: "currentColor",
|
|
123
125
|
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"
|
|
124
126
|
})
|
|
125
127
|
]));
|
|
126
128
|
}
|
|
127
|
-
}),
|
|
129
|
+
}), Tt = Lt, zt = /* @__PURE__ */ E({
|
|
128
130
|
name: "Moon",
|
|
129
131
|
__name: "moon",
|
|
130
132
|
setup(t) {
|
|
131
|
-
return (e, n) => (
|
|
133
|
+
return (e, n) => (s(), w("svg", {
|
|
132
134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
133
135
|
viewBox: "0 0 1024 1024"
|
|
134
136
|
}, [
|
|
135
|
-
|
|
137
|
+
d("path", {
|
|
136
138
|
fill: "currentColor",
|
|
137
139
|
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"
|
|
138
140
|
})
|
|
139
141
|
]));
|
|
140
142
|
}
|
|
141
|
-
}),
|
|
143
|
+
}), Bt = zt, Dt = /* @__PURE__ */ E({
|
|
142
144
|
name: "Operation",
|
|
143
145
|
__name: "operation",
|
|
144
146
|
setup(t) {
|
|
145
|
-
return (e, n) => (
|
|
147
|
+
return (e, n) => (s(), w("svg", {
|
|
146
148
|
xmlns: "http://www.w3.org/2000/svg",
|
|
147
149
|
viewBox: "0 0 1024 1024"
|
|
148
150
|
}, [
|
|
149
|
-
|
|
151
|
+
d("path", {
|
|
150
152
|
fill: "currentColor",
|
|
151
153
|
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"
|
|
152
154
|
})
|
|
153
155
|
]));
|
|
154
156
|
}
|
|
155
|
-
}),
|
|
157
|
+
}), Et = Dt, $t = /* @__PURE__ */ E({
|
|
156
158
|
name: "Setting",
|
|
157
159
|
__name: "setting",
|
|
158
160
|
setup(t) {
|
|
159
|
-
return (e, n) => (
|
|
161
|
+
return (e, n) => (s(), w("svg", {
|
|
160
162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
161
163
|
viewBox: "0 0 1024 1024"
|
|
162
164
|
}, [
|
|
163
|
-
|
|
165
|
+
d("path", {
|
|
164
166
|
fill: "currentColor",
|
|
165
167
|
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"
|
|
166
168
|
})
|
|
167
169
|
]));
|
|
168
170
|
}
|
|
169
|
-
}),
|
|
171
|
+
}), Vt = $t, Pt = /* @__PURE__ */ E({
|
|
170
172
|
name: "SuccessFilled",
|
|
171
173
|
__name: "success-filled",
|
|
172
174
|
setup(t) {
|
|
173
|
-
return (e, n) => (
|
|
175
|
+
return (e, n) => (s(), w("svg", {
|
|
174
176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
175
177
|
viewBox: "0 0 1024 1024"
|
|
176
178
|
}, [
|
|
177
|
-
|
|
179
|
+
d("path", {
|
|
178
180
|
fill: "currentColor",
|
|
179
181
|
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"
|
|
180
182
|
})
|
|
181
183
|
]));
|
|
182
184
|
}
|
|
183
|
-
}),
|
|
185
|
+
}), At = Pt, Nt = /* @__PURE__ */ E({
|
|
184
186
|
name: "Sunny",
|
|
185
187
|
__name: "sunny",
|
|
186
188
|
setup(t) {
|
|
187
|
-
return (e, n) => (
|
|
189
|
+
return (e, n) => (s(), w("svg", {
|
|
188
190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
189
191
|
viewBox: "0 0 1024 1024"
|
|
190
192
|
}, [
|
|
191
|
-
|
|
193
|
+
d("path", {
|
|
192
194
|
fill: "currentColor",
|
|
193
195
|
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"
|
|
194
196
|
})
|
|
195
197
|
]));
|
|
196
198
|
}
|
|
197
|
-
}),
|
|
199
|
+
}), It = Nt, Ft = /* @__PURE__ */ E({
|
|
198
200
|
name: "WarningFilled",
|
|
199
201
|
__name: "warning-filled",
|
|
200
202
|
setup(t) {
|
|
201
|
-
return (e, n) => (
|
|
203
|
+
return (e, n) => (s(), w("svg", {
|
|
202
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
203
205
|
viewBox: "0 0 1024 1024"
|
|
204
206
|
}, [
|
|
205
|
-
|
|
207
|
+
d("path", {
|
|
206
208
|
fill: "currentColor",
|
|
207
209
|
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"
|
|
208
210
|
})
|
|
209
211
|
]));
|
|
210
212
|
}
|
|
211
|
-
}),
|
|
213
|
+
}), Rt = Ft, Ot = /* @__PURE__ */ E({
|
|
212
214
|
name: "Warning",
|
|
213
215
|
__name: "warning",
|
|
214
216
|
setup(t) {
|
|
215
|
-
return (e, n) => (
|
|
217
|
+
return (e, n) => (s(), w("svg", {
|
|
216
218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
217
219
|
viewBox: "0 0 1024 1024"
|
|
218
220
|
}, [
|
|
219
|
-
|
|
221
|
+
d("path", {
|
|
220
222
|
fill: "currentColor",
|
|
221
223
|
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"
|
|
222
224
|
})
|
|
223
225
|
]));
|
|
224
226
|
}
|
|
225
|
-
}),
|
|
226
|
-
const
|
|
227
|
+
}), Ht = Ot;
|
|
228
|
+
const Yt = {
|
|
227
229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
228
230
|
width: "1em",
|
|
229
231
|
height: "1em",
|
|
230
232
|
viewBox: "0 0 15 15"
|
|
231
233
|
};
|
|
232
|
-
function
|
|
233
|
-
return
|
|
234
|
-
|
|
234
|
+
function Gt(t, e) {
|
|
235
|
+
return s(), w("svg", Yt, e[0] || (e[0] = [
|
|
236
|
+
d("path", {
|
|
235
237
|
fill: "currentColor",
|
|
236
238
|
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"
|
|
237
239
|
}, null, -1)
|
|
238
240
|
]));
|
|
239
241
|
}
|
|
240
|
-
const Ce = { render:
|
|
242
|
+
const Ce = { render: Gt }, Xt = {
|
|
241
243
|
xmlns: "http://www.w3.org/2000/svg",
|
|
242
244
|
width: "1em",
|
|
243
245
|
height: "1em",
|
|
244
246
|
viewBox: "0 0 512 512"
|
|
245
247
|
};
|
|
246
|
-
function
|
|
247
|
-
return
|
|
248
|
-
|
|
248
|
+
function Wt(t, e) {
|
|
249
|
+
return s(), w("svg", Xt, e[0] || (e[0] = [
|
|
250
|
+
d("path", {
|
|
249
251
|
fill: "none",
|
|
250
252
|
stroke: "currentColor",
|
|
251
253
|
"stroke-linecap": "round",
|
|
@@ -253,7 +255,7 @@ function Ht(t, e) {
|
|
|
253
255
|
"stroke-width": "32",
|
|
254
256
|
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"
|
|
255
257
|
}, null, -1),
|
|
256
|
-
|
|
258
|
+
d("path", {
|
|
257
259
|
fill: "none",
|
|
258
260
|
stroke: "currentColor",
|
|
259
261
|
"stroke-linecap": "round",
|
|
@@ -263,17 +265,17 @@ function Ht(t, e) {
|
|
|
263
265
|
}, null, -1)
|
|
264
266
|
]));
|
|
265
267
|
}
|
|
266
|
-
const
|
|
268
|
+
const Zt = { render: Wt }, Ut = {
|
|
267
269
|
xmlns: "http://www.w3.org/2000/svg",
|
|
268
270
|
viewBox: "0 0 1024 1024"
|
|
269
271
|
};
|
|
270
272
|
function qt(t, e) {
|
|
271
|
-
return
|
|
272
|
-
|
|
273
|
+
return s(), w("svg", Ut, e[0] || (e[0] = [
|
|
274
|
+
d("path", {
|
|
273
275
|
fill: "currentColor",
|
|
274
276
|
d: "M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"
|
|
275
277
|
}, null, -1),
|
|
276
|
-
|
|
278
|
+
d("text", {
|
|
277
279
|
x: "512",
|
|
278
280
|
y: "580",
|
|
279
281
|
fill: "currentColor",
|
|
@@ -285,311 +287,311 @@ function qt(t, e) {
|
|
|
285
287
|
}, "ML", -1)
|
|
286
288
|
]));
|
|
287
289
|
}
|
|
288
|
-
const
|
|
290
|
+
const jt = { render: qt }, Qt = {
|
|
289
291
|
xmlns: "http://www.w3.org/2000/svg",
|
|
290
292
|
width: "1em",
|
|
291
293
|
height: "1em",
|
|
292
294
|
viewBox: "0 0 20 20"
|
|
293
295
|
};
|
|
294
|
-
function
|
|
295
|
-
return
|
|
296
|
-
|
|
296
|
+
function Jt(t, e) {
|
|
297
|
+
return s(), w("svg", Qt, e[0] || (e[0] = [
|
|
298
|
+
d("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)
|
|
297
299
|
]));
|
|
298
300
|
}
|
|
299
|
-
const Kt = { render:
|
|
301
|
+
const Kt = { render: Jt }, en = {
|
|
300
302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
301
303
|
width: "1em",
|
|
302
304
|
height: "1em",
|
|
303
305
|
viewBox: "0 0 20 20"
|
|
304
306
|
};
|
|
305
|
-
function
|
|
306
|
-
return
|
|
307
|
-
|
|
307
|
+
function tn(t, e) {
|
|
308
|
+
return s(), w("svg", en, e[0] || (e[0] = [
|
|
309
|
+
d("path", {
|
|
308
310
|
fill: "currentColor",
|
|
309
311
|
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"
|
|
310
312
|
}, null, -1)
|
|
311
313
|
]));
|
|
312
314
|
}
|
|
313
|
-
const
|
|
315
|
+
const nn = { render: tn }, on = {
|
|
314
316
|
xmlns: "http://www.w3.org/2000/svg",
|
|
315
317
|
width: "1em",
|
|
316
318
|
height: "1em",
|
|
317
319
|
viewBox: "0 0 20 20"
|
|
318
320
|
};
|
|
319
|
-
function
|
|
320
|
-
return
|
|
321
|
-
|
|
321
|
+
function ln(t, e) {
|
|
322
|
+
return s(), w("svg", on, e[0] || (e[0] = [
|
|
323
|
+
d("path", {
|
|
322
324
|
fill: "currentColor",
|
|
323
325
|
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"
|
|
324
326
|
}, null, -1)
|
|
325
327
|
]));
|
|
326
328
|
}
|
|
327
|
-
const
|
|
329
|
+
const an = { render: ln }, sn = {
|
|
328
330
|
xmlns: "http://www.w3.org/2000/svg",
|
|
329
331
|
width: "1em",
|
|
330
332
|
height: "1em",
|
|
331
333
|
viewBox: "0 0 20 20"
|
|
332
334
|
};
|
|
333
|
-
function
|
|
334
|
-
return
|
|
335
|
-
|
|
335
|
+
function rn(t, e) {
|
|
336
|
+
return s(), w("svg", sn, e[0] || (e[0] = [
|
|
337
|
+
d("path", {
|
|
336
338
|
fill: "currentColor",
|
|
337
339
|
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"
|
|
338
340
|
}, null, -1)
|
|
339
341
|
]));
|
|
340
342
|
}
|
|
341
|
-
const
|
|
343
|
+
const cn = { render: rn }, un = {
|
|
342
344
|
xmlns: "http://www.w3.org/2000/svg",
|
|
343
345
|
width: "1em",
|
|
344
346
|
height: "1em",
|
|
345
347
|
viewBox: "0 0 20 20"
|
|
346
348
|
};
|
|
347
|
-
function
|
|
348
|
-
return
|
|
349
|
-
|
|
349
|
+
function dn(t, e) {
|
|
350
|
+
return s(), w("svg", un, e[0] || (e[0] = [
|
|
351
|
+
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
|
|
350
352
|
]));
|
|
351
353
|
}
|
|
352
|
-
const
|
|
354
|
+
const mn = { render: dn }, pn = {
|
|
353
355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
354
356
|
width: "1em",
|
|
355
357
|
height: "1em",
|
|
356
358
|
viewBox: "0 0 20 20"
|
|
357
359
|
};
|
|
358
|
-
function
|
|
359
|
-
return
|
|
360
|
+
function vn(t, e) {
|
|
361
|
+
return s(), w("svg", pn);
|
|
360
362
|
}
|
|
361
|
-
const
|
|
363
|
+
const fn = { render: vn }, gn = {
|
|
362
364
|
xmlns: "http://www.w3.org/2000/svg",
|
|
363
365
|
width: "1em",
|
|
364
366
|
height: "1em",
|
|
365
367
|
viewBox: "0 0 20 20"
|
|
366
368
|
};
|
|
367
|
-
function
|
|
368
|
-
return
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
function hn(t, e) {
|
|
370
|
+
return s(), w("svg", gn, e[0] || (e[0] = [
|
|
371
|
+
d("path", { d: "M2 9.5h16v1H2z" }, null, -1),
|
|
372
|
+
d("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
|
|
371
373
|
]));
|
|
372
374
|
}
|
|
373
|
-
const
|
|
375
|
+
const _n = { render: hn }, wn = {
|
|
374
376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
375
377
|
width: "1em",
|
|
376
378
|
height: "1em",
|
|
377
379
|
viewBox: "0 0 20 20"
|
|
378
380
|
};
|
|
379
|
-
function
|
|
380
|
-
return
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
function yn(t, e) {
|
|
382
|
+
return s(), w("svg", wn, e[0] || (e[0] = [
|
|
383
|
+
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
384
|
+
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
383
385
|
]));
|
|
384
386
|
}
|
|
385
|
-
const
|
|
387
|
+
const bn = { render: yn }, xn = {
|
|
386
388
|
xmlns: "http://www.w3.org/2000/svg",
|
|
387
389
|
width: "1em",
|
|
388
390
|
height: "1em",
|
|
389
391
|
viewBox: "0 0 20 20"
|
|
390
392
|
};
|
|
391
|
-
function
|
|
392
|
-
return
|
|
393
|
-
|
|
393
|
+
function kn(t, e) {
|
|
394
|
+
return s(), w("svg", xn, e[0] || (e[0] = [
|
|
395
|
+
d("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
|
|
394
396
|
]));
|
|
395
397
|
}
|
|
396
|
-
const
|
|
398
|
+
const Mn = { render: kn }, Cn = {
|
|
397
399
|
xmlns: "http://www.w3.org/2000/svg",
|
|
398
400
|
width: "1em",
|
|
399
401
|
height: "1em",
|
|
400
402
|
viewBox: "0 0 20 20"
|
|
401
403
|
};
|
|
402
|
-
function
|
|
403
|
-
return
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
function Sn(t, e) {
|
|
405
|
+
return s(), w("svg", Cn, e[0] || (e[0] = [
|
|
406
|
+
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
407
|
+
d("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)
|
|
406
408
|
]));
|
|
407
409
|
}
|
|
408
|
-
const
|
|
410
|
+
const Ln = { render: Sn }, Tn = {
|
|
409
411
|
xmlns: "http://www.w3.org/2000/svg",
|
|
410
412
|
width: "1em",
|
|
411
413
|
height: "1em",
|
|
412
414
|
viewBox: "0 0 20 20"
|
|
413
415
|
};
|
|
414
|
-
function
|
|
415
|
-
return
|
|
416
|
-
|
|
416
|
+
function zn(t, e) {
|
|
417
|
+
return s(), w("svg", Tn, e[0] || (e[0] = [
|
|
418
|
+
d("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)
|
|
417
419
|
]));
|
|
418
420
|
}
|
|
419
|
-
const
|
|
421
|
+
const Bn = { render: zn }, Dn = {
|
|
420
422
|
xmlns: "http://www.w3.org/2000/svg",
|
|
421
423
|
width: "1em",
|
|
422
424
|
height: "1em",
|
|
423
425
|
viewBox: "0 0 20 20"
|
|
424
426
|
};
|
|
425
|
-
function
|
|
426
|
-
return
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
427
|
+
function En(t, e) {
|
|
428
|
+
return s(), w("svg", Dn, e[0] || (e[0] = [
|
|
429
|
+
d("path", { d: "M3 9.5h14v1H3z" }, null, -1),
|
|
430
|
+
d("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
|
|
431
|
+
d("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)
|
|
430
432
|
]));
|
|
431
433
|
}
|
|
432
|
-
const
|
|
434
|
+
const $n = { render: En }, Vn = {
|
|
433
435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
434
436
|
width: "1em",
|
|
435
437
|
height: "1em",
|
|
436
438
|
viewBox: "0 0 20 20"
|
|
437
439
|
};
|
|
438
|
-
function
|
|
439
|
-
return
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
440
|
+
function Pn(t, e) {
|
|
441
|
+
return s(), w("svg", Vn, e[0] || (e[0] = [
|
|
442
|
+
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
443
|
+
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
444
|
+
d("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)
|
|
443
445
|
]));
|
|
444
446
|
}
|
|
445
|
-
const
|
|
447
|
+
const An = { render: Pn }, Nn = {
|
|
446
448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
447
449
|
width: "1em",
|
|
448
450
|
height: "1em",
|
|
449
451
|
viewBox: "0 0 20 20"
|
|
450
452
|
};
|
|
451
|
-
function
|
|
452
|
-
return
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
function In(t, e) {
|
|
454
|
+
return s(), w("svg", Nn, e[0] || (e[0] = [
|
|
455
|
+
d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
456
|
+
d("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)
|
|
455
457
|
]));
|
|
456
458
|
}
|
|
457
|
-
const
|
|
459
|
+
const Fn = { render: In }, Rn = {
|
|
458
460
|
xmlns: "http://www.w3.org/2000/svg",
|
|
459
461
|
width: "1em",
|
|
460
462
|
height: "1em",
|
|
461
463
|
viewBox: "0 0 20 20"
|
|
462
464
|
};
|
|
463
|
-
function
|
|
464
|
-
return
|
|
465
|
-
|
|
466
|
-
|
|
465
|
+
function On(t, e) {
|
|
466
|
+
return s(), w("svg", Rn, e[0] || (e[0] = [
|
|
467
|
+
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
468
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
467
469
|
]));
|
|
468
470
|
}
|
|
469
|
-
const
|
|
471
|
+
const Hn = { render: On }, Yn = {
|
|
470
472
|
xmlns: "http://www.w3.org/2000/svg",
|
|
471
473
|
width: "1em",
|
|
472
474
|
height: "1em",
|
|
473
475
|
viewBox: "0 0 20 20"
|
|
474
476
|
};
|
|
475
|
-
function
|
|
476
|
-
return
|
|
477
|
-
|
|
477
|
+
function Gn(t, e) {
|
|
478
|
+
return s(), w("svg", Yn, e[0] || (e[0] = [
|
|
479
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
478
480
|
]));
|
|
479
481
|
}
|
|
480
|
-
const
|
|
482
|
+
const Xn = { render: Gn }, Wn = {
|
|
481
483
|
xmlns: "http://www.w3.org/2000/svg",
|
|
482
484
|
width: "1em",
|
|
483
485
|
height: "1em",
|
|
484
486
|
viewBox: "0 0 20 20"
|
|
485
487
|
};
|
|
486
|
-
function
|
|
487
|
-
return
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
488
|
+
function Zn(t, e) {
|
|
489
|
+
return s(), w("svg", Wn, e[0] || (e[0] = [
|
|
490
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
491
|
+
d("path", { d: "M3 9.58h14v1H3z" }, null, -1),
|
|
492
|
+
d("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
|
|
491
493
|
]));
|
|
492
494
|
}
|
|
493
|
-
const
|
|
495
|
+
const Un = { render: Zn }, qn = {
|
|
494
496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
495
497
|
width: "1em",
|
|
496
498
|
height: "1em",
|
|
497
499
|
viewBox: "0 0 20 20"
|
|
498
500
|
};
|
|
499
|
-
function
|
|
500
|
-
return
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
501
|
+
function jn(t, e) {
|
|
502
|
+
return s(), w("svg", qn, e[0] || (e[0] = [
|
|
503
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
504
|
+
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
505
|
+
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
504
506
|
]));
|
|
505
507
|
}
|
|
506
|
-
const
|
|
508
|
+
const Qn = { render: jn }, Jn = {
|
|
507
509
|
xmlns: "http://www.w3.org/2000/svg",
|
|
508
510
|
width: "1em",
|
|
509
511
|
height: "1em",
|
|
510
512
|
viewBox: "0 0 20 20"
|
|
511
513
|
};
|
|
512
514
|
function Kn(t, e) {
|
|
513
|
-
return
|
|
514
|
-
|
|
515
|
-
|
|
515
|
+
return s(), w("svg", Jn, e[0] || (e[0] = [
|
|
516
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
517
|
+
d("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
|
|
516
518
|
]));
|
|
517
519
|
}
|
|
518
|
-
const
|
|
520
|
+
const eo = { render: Kn }, to = {
|
|
519
521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
520
522
|
width: "1em",
|
|
521
523
|
height: "1em",
|
|
522
524
|
viewBox: "0 0 20 20"
|
|
523
525
|
};
|
|
524
|
-
function
|
|
525
|
-
return
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
526
|
+
function no(t, e) {
|
|
527
|
+
return s(), w("svg", to, e[0] || (e[0] = [
|
|
528
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
529
|
+
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
530
|
+
d("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)
|
|
529
531
|
]));
|
|
530
532
|
}
|
|
531
|
-
const
|
|
533
|
+
const oo = { render: no }, lo = {
|
|
532
534
|
xmlns: "http://www.w3.org/2000/svg",
|
|
533
535
|
width: "1em",
|
|
534
536
|
height: "1em",
|
|
535
537
|
viewBox: "0 0 20 20"
|
|
536
538
|
};
|
|
537
|
-
function
|
|
538
|
-
return
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
function ao(t, e) {
|
|
540
|
+
return s(), w("svg", lo, e[0] || (e[0] = [
|
|
541
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
542
|
+
d("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)
|
|
541
543
|
]));
|
|
542
544
|
}
|
|
543
|
-
const
|
|
545
|
+
const io = { render: ao }, so = {
|
|
544
546
|
xmlns: "http://www.w3.org/2000/svg",
|
|
545
547
|
width: "1em",
|
|
546
548
|
height: "1em",
|
|
547
549
|
viewBox: "0 0 20 20"
|
|
548
550
|
};
|
|
549
|
-
function
|
|
550
|
-
return
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
551
|
+
function ro(t, e) {
|
|
552
|
+
return s(), w("svg", so, e[0] || (e[0] = [
|
|
553
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
554
|
+
d("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
|
|
555
|
+
d("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
|
|
556
|
+
d("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)
|
|
555
557
|
]));
|
|
556
558
|
}
|
|
557
|
-
const
|
|
559
|
+
const co = { render: ro }, uo = {
|
|
558
560
|
xmlns: "http://www.w3.org/2000/svg",
|
|
559
561
|
width: "1em",
|
|
560
562
|
height: "1em",
|
|
561
563
|
viewBox: "0 0 20 20"
|
|
562
564
|
};
|
|
563
|
-
function
|
|
564
|
-
return
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
565
|
+
function mo(t, e) {
|
|
566
|
+
return s(), w("svg", uo, e[0] || (e[0] = [
|
|
567
|
+
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
568
|
+
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
569
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
570
|
+
d("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)
|
|
569
571
|
]));
|
|
570
572
|
}
|
|
571
|
-
const
|
|
573
|
+
const po = { render: mo }, vo = {
|
|
572
574
|
xmlns: "http://www.w3.org/2000/svg",
|
|
573
575
|
width: "1em",
|
|
574
576
|
height: "1em",
|
|
575
577
|
viewBox: "0 0 20 20"
|
|
576
578
|
};
|
|
577
|
-
function
|
|
578
|
-
return
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
579
|
+
function fo(t, e) {
|
|
580
|
+
return s(), w("svg", vo, e[0] || (e[0] = [
|
|
581
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
582
|
+
d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
583
|
+
d("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)
|
|
582
584
|
]));
|
|
583
585
|
}
|
|
584
|
-
const
|
|
586
|
+
const go = { render: fo }, ho = {
|
|
585
587
|
key: 0,
|
|
586
588
|
class: "ml-base-dialog",
|
|
587
589
|
role: "dialog",
|
|
588
590
|
"aria-modal": "true"
|
|
589
|
-
},
|
|
591
|
+
}, _o = { class: "ml-base-dialog-header" }, wo = { class: "ml-base-dialog-title" }, yo = {
|
|
590
592
|
key: 0,
|
|
591
593
|
class: "ml-base-dialog-icon-wrapper"
|
|
592
|
-
},
|
|
594
|
+
}, bo = { class: "ml-base-dialog-actions" }, xo = { class: "ml-base-dialog-body" }, ko = { class: "ml-base-dialog-footer" }, Mo = /* @__PURE__ */ E({
|
|
593
595
|
__name: "MlBaseDialog",
|
|
594
596
|
props: {
|
|
595
597
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -607,58 +609,58 @@ const mo = { render: uo }, po = {
|
|
|
607
609
|
// 🔹 new event
|
|
608
610
|
],
|
|
609
611
|
setup(t, { emit: e }) {
|
|
610
|
-
const { t: n } =
|
|
612
|
+
const { t: n } = Y(), i = t, o = e, l = T(() => i.icon ?? jt), a = T(
|
|
611
613
|
() => typeof i.width == "number" ? `${i.width}px` : i.width
|
|
612
614
|
);
|
|
613
|
-
|
|
615
|
+
I(
|
|
614
616
|
() => i.modelValue,
|
|
615
|
-
(
|
|
616
|
-
|
|
617
|
+
(_, x) => {
|
|
618
|
+
_ && !x && o("open");
|
|
617
619
|
}
|
|
618
620
|
);
|
|
619
621
|
function c() {
|
|
620
622
|
o("opened");
|
|
621
623
|
}
|
|
622
|
-
function
|
|
624
|
+
function r() {
|
|
623
625
|
o("ok"), o("update:modelValue", !1);
|
|
624
626
|
}
|
|
625
|
-
function
|
|
627
|
+
function g() {
|
|
626
628
|
o("cancel"), o("update:modelValue", !1);
|
|
627
629
|
}
|
|
628
|
-
return (
|
|
629
|
-
const h =
|
|
630
|
-
return t.modelValue ? (
|
|
631
|
-
|
|
630
|
+
return (_, x) => {
|
|
631
|
+
const h = L("el-icon"), u = L("el-button");
|
|
632
|
+
return t.modelValue ? (s(), w("div", ho, [
|
|
633
|
+
d("div", {
|
|
632
634
|
class: "ml-base-dialog-overlay",
|
|
633
|
-
onClick:
|
|
635
|
+
onClick: g
|
|
634
636
|
}),
|
|
635
|
-
|
|
637
|
+
p(We, {
|
|
636
638
|
name: "ml-base-dialog-fade",
|
|
637
639
|
onAfterEnter: c
|
|
638
640
|
}, {
|
|
639
641
|
default: f(() => [
|
|
640
|
-
|
|
642
|
+
Ze(d("div", {
|
|
641
643
|
class: "ml-base-dialog-container",
|
|
642
|
-
style:
|
|
644
|
+
style: me({ width: a.value })
|
|
643
645
|
}, [
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
l.value ? (
|
|
647
|
-
(
|
|
646
|
+
d("div", _o, [
|
|
647
|
+
d("div", wo, [
|
|
648
|
+
l.value ? (s(), w("span", yo, [
|
|
649
|
+
(s(), B(re(l.value), { class: "ml-base-dialog-icon" }))
|
|
648
650
|
])) : O("", !0),
|
|
649
|
-
|
|
651
|
+
d("span", null, V(t.title), 1)
|
|
650
652
|
]),
|
|
651
|
-
|
|
652
|
-
|
|
653
|
+
d("div", bo, [
|
|
654
|
+
p(u, {
|
|
653
655
|
text: "",
|
|
654
656
|
size: "small",
|
|
655
657
|
class: "ml-base-dialog-close",
|
|
656
|
-
onClick:
|
|
658
|
+
onClick: g
|
|
657
659
|
}, {
|
|
658
660
|
default: f(() => [
|
|
659
|
-
|
|
661
|
+
p(h, null, {
|
|
660
662
|
default: f(() => [
|
|
661
|
-
|
|
663
|
+
p(m(xe))
|
|
662
664
|
]),
|
|
663
665
|
_: 1
|
|
664
666
|
})
|
|
@@ -667,22 +669,22 @@ const mo = { render: uo }, po = {
|
|
|
667
669
|
})
|
|
668
670
|
])
|
|
669
671
|
]),
|
|
670
|
-
|
|
671
|
-
|
|
672
|
+
d("div", xo, [
|
|
673
|
+
ie(_.$slots, "default", {}, void 0, !0)
|
|
672
674
|
]),
|
|
673
|
-
|
|
674
|
-
|
|
675
|
+
d("div", ko, [
|
|
676
|
+
p(u, { onClick: g }, {
|
|
675
677
|
default: f(() => [
|
|
676
|
-
|
|
678
|
+
R(V(m(n)("dialog.baseDialog.cancel")), 1)
|
|
677
679
|
]),
|
|
678
680
|
_: 1
|
|
679
681
|
}),
|
|
680
|
-
|
|
682
|
+
p(u, {
|
|
681
683
|
type: "primary",
|
|
682
|
-
onClick:
|
|
684
|
+
onClick: r
|
|
683
685
|
}, {
|
|
684
686
|
default: f(() => [
|
|
685
|
-
|
|
687
|
+
R(V(m(n)("dialog.baseDialog.ok")), 1)
|
|
686
688
|
]),
|
|
687
689
|
_: 1
|
|
688
690
|
})
|
|
@@ -696,14 +698,85 @@ const mo = { render: uo }, po = {
|
|
|
696
698
|
])) : O("", !0);
|
|
697
699
|
};
|
|
698
700
|
}
|
|
699
|
-
}),
|
|
701
|
+
}), X = (t, e) => {
|
|
700
702
|
const n = t.__vccOpts || t;
|
|
701
703
|
for (const [i, o] of e)
|
|
702
704
|
n[i] = o;
|
|
703
705
|
return n;
|
|
704
|
-
},
|
|
705
|
-
|
|
706
|
-
|
|
706
|
+
}, Ne = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-cc27c9ec"]]), Co = { class: "ml-base-input-number" }, So = /* @__PURE__ */ E({
|
|
707
|
+
__name: "MlBaseInputNumber",
|
|
708
|
+
props: {
|
|
709
|
+
modelValue: {},
|
|
710
|
+
placeholder: {},
|
|
711
|
+
editable: { type: Boolean }
|
|
712
|
+
},
|
|
713
|
+
emits: ["change"],
|
|
714
|
+
setup(t, { emit: e }) {
|
|
715
|
+
const n = t, i = e, o = M("dec"), l = M(""), a = [
|
|
716
|
+
{ label: "DEC", value: "dec" },
|
|
717
|
+
{ label: "OCT", value: "oct" },
|
|
718
|
+
{ label: "HEX", value: "hex" }
|
|
719
|
+
], c = (h, u) => {
|
|
720
|
+
if (!h) return 0;
|
|
721
|
+
const b = parseInt(h, u === "hex" ? 16 : u === "oct" ? 8 : 10);
|
|
722
|
+
return Number.isNaN(b) ? 0 : b;
|
|
723
|
+
}, r = (h, u) => Number.isNaN(h) ? "" : u === "hex" ? h.toString(16).toUpperCase() : u === "oct" ? h.toString(8) : h.toString(10), g = (h, u) => {
|
|
724
|
+
switch (u) {
|
|
725
|
+
case "dec":
|
|
726
|
+
return h.replace(/[^0-9]/g, "");
|
|
727
|
+
case "oct":
|
|
728
|
+
return h.replace(/[^0-7]/g, "");
|
|
729
|
+
case "hex":
|
|
730
|
+
return h.replace(/[^0-9a-fA-F]/g, "");
|
|
731
|
+
}
|
|
732
|
+
}, _ = (h) => {
|
|
733
|
+
if (!n.editable) return;
|
|
734
|
+
const u = g(h, o.value);
|
|
735
|
+
l.value = u;
|
|
736
|
+
const v = c(u, o.value);
|
|
737
|
+
i("change", v);
|
|
738
|
+
}, x = () => {
|
|
739
|
+
l.value = r(n.modelValue, o.value);
|
|
740
|
+
};
|
|
741
|
+
return I(
|
|
742
|
+
() => n.modelValue,
|
|
743
|
+
(h) => {
|
|
744
|
+
l.value = r(h, o.value);
|
|
745
|
+
},
|
|
746
|
+
{ immediate: !0 }
|
|
747
|
+
), I(o, (h) => {
|
|
748
|
+
l.value = r(n.modelValue, h);
|
|
749
|
+
}), (h, u) => (s(), w("div", Co, [
|
|
750
|
+
p(m(it), {
|
|
751
|
+
modelValue: l.value,
|
|
752
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => l.value = v),
|
|
753
|
+
class: "ml-base-input-number__input",
|
|
754
|
+
placeholder: h.placeholder,
|
|
755
|
+
readonly: !h.editable,
|
|
756
|
+
onInput: _,
|
|
757
|
+
onBlur: x,
|
|
758
|
+
clearable: ""
|
|
759
|
+
}, null, 8, ["modelValue", "placeholder", "readonly"]),
|
|
760
|
+
p(m(st), {
|
|
761
|
+
modelValue: o.value,
|
|
762
|
+
"onUpdate:modelValue": u[1] || (u[1] = (v) => o.value = v),
|
|
763
|
+
class: "ml-base-input-number__select",
|
|
764
|
+
size: "small"
|
|
765
|
+
}, {
|
|
766
|
+
default: f(() => [
|
|
767
|
+
(s(), w(G, null, W(a, (v) => p(m(rt), {
|
|
768
|
+
key: v.value,
|
|
769
|
+
label: v.label,
|
|
770
|
+
value: v.value
|
|
771
|
+
}, null, 8, ["label", "value"])), 64))
|
|
772
|
+
]),
|
|
773
|
+
_: 1
|
|
774
|
+
}, 8, ["modelValue"])
|
|
775
|
+
]));
|
|
776
|
+
}
|
|
777
|
+
}), Mi = /* @__PURE__ */ X(So, [["__scopeId", "data-v-5628dd65"]]);
|
|
778
|
+
function Ci() {
|
|
779
|
+
const t = q([]), e = K.instance.iterator();
|
|
707
780
|
for (const n of e)
|
|
708
781
|
t.push({
|
|
709
782
|
commandName: n.command.localName,
|
|
@@ -725,44 +798,64 @@ function Se(t, e = "en-US") {
|
|
|
725
798
|
maximumFractionDigits: 6
|
|
726
799
|
}).format(t);
|
|
727
800
|
}
|
|
728
|
-
function
|
|
729
|
-
const e =
|
|
801
|
+
function Lo(t) {
|
|
802
|
+
const e = M(0), n = M(0);
|
|
730
803
|
function i(l) {
|
|
731
804
|
e.value = l.x, n.value = l.y;
|
|
732
805
|
}
|
|
733
|
-
|
|
734
|
-
const o =
|
|
806
|
+
Z(() => t.events.mouseMove.addEventListener(i)), ne(() => t.events.mouseMove.removeEventListener(i));
|
|
807
|
+
const o = T(() => `${Se(e.value)}, ${Se(n.value)}`);
|
|
735
808
|
return { x: e, y: n, text: o };
|
|
736
809
|
}
|
|
737
|
-
const
|
|
738
|
-
function
|
|
739
|
-
|
|
810
|
+
const de = Je(), To = Ke(de), se = q([]);
|
|
811
|
+
function zo(t) {
|
|
812
|
+
se.find((n) => n.name === t.name) || se.push({ ...t, visible: !1 });
|
|
740
813
|
}
|
|
741
|
-
function
|
|
742
|
-
const n =
|
|
814
|
+
function Bo(t, e) {
|
|
815
|
+
const n = se.find((i) => i.name === t);
|
|
743
816
|
n && (n.visible = e);
|
|
744
817
|
}
|
|
745
|
-
function
|
|
746
|
-
return
|
|
818
|
+
function Do(t) {
|
|
819
|
+
return se.find((e) => e.name === t);
|
|
747
820
|
}
|
|
748
|
-
function
|
|
821
|
+
function ge() {
|
|
749
822
|
return {
|
|
750
|
-
dialogs:
|
|
751
|
-
registerDialog:
|
|
752
|
-
toggleDialog:
|
|
753
|
-
getDialogByName:
|
|
823
|
+
dialogs: T(() => se),
|
|
824
|
+
registerDialog: zo,
|
|
825
|
+
toggleDialog: Bo,
|
|
826
|
+
getDialogByName: Do
|
|
754
827
|
};
|
|
755
828
|
}
|
|
756
|
-
function
|
|
757
|
-
const t =
|
|
829
|
+
function Eo() {
|
|
830
|
+
const t = M(/* @__PURE__ */ new Set()), e = nt.instance;
|
|
758
831
|
for (const n of e.fileTypes)
|
|
759
832
|
t.value.add(n);
|
|
760
833
|
return e.events.registered.addEventListener((n) => {
|
|
761
834
|
t.value.add(n.fileType);
|
|
762
835
|
}), t;
|
|
763
836
|
}
|
|
764
|
-
function
|
|
765
|
-
const e =
|
|
837
|
+
function $o() {
|
|
838
|
+
const t = M(!1), e = M(null), n = M(null), i = M({ x: -1, y: -1 }), o = (a) => {
|
|
839
|
+
const r = P.instance.curDocument.database.tables.blockTable.modelSpace.getIdAt(a.id);
|
|
840
|
+
r ? (e.value = r, n.value = a.id, t.value = !0, i.value = { x: a.x, y: a.y }) : (t.value = !1, e.value = null, n.value = null);
|
|
841
|
+
}, l = () => {
|
|
842
|
+
t.value = !1, e.value = null, n.value = null;
|
|
843
|
+
};
|
|
844
|
+
return Z(() => {
|
|
845
|
+
const a = P.instance.curView.events;
|
|
846
|
+
a.hover.addEventListener(o), a.unhover.addEventListener(l);
|
|
847
|
+
}), ne(() => {
|
|
848
|
+
const a = P.instance.curView.events;
|
|
849
|
+
a.hover.removeEventListener(o), a.unhover.removeEventListener(l);
|
|
850
|
+
}), {
|
|
851
|
+
hovered: t,
|
|
852
|
+
entity: e,
|
|
853
|
+
id: n,
|
|
854
|
+
mouse: i
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
function Vo(t) {
|
|
858
|
+
const e = q([]), n = t.curDocument, i = (o) => {
|
|
766
859
|
const l = o.tables.layerTable.newIterator();
|
|
767
860
|
for (const a of l)
|
|
768
861
|
e.push({
|
|
@@ -791,8 +884,8 @@ function zo(t) {
|
|
|
791
884
|
e.length = 0, i(o.doc.database);
|
|
792
885
|
}), e;
|
|
793
886
|
}
|
|
794
|
-
function
|
|
795
|
-
const e =
|
|
887
|
+
function Po(t) {
|
|
888
|
+
const e = q([]), n = t.curDocument, i = (o) => {
|
|
796
889
|
const l = o.dictionaries.layouts.newIterator();
|
|
797
890
|
e.length = 0;
|
|
798
891
|
for (const a of l)
|
|
@@ -806,7 +899,7 @@ function Bo(t) {
|
|
|
806
899
|
};
|
|
807
900
|
return i(n.database), t.events.documentActivated.addEventListener((o) => {
|
|
808
901
|
e.length = 0, i(o.doc.database);
|
|
809
|
-
}),
|
|
902
|
+
}), Ae().layoutManager.events.layoutSwitched.addEventListener(
|
|
810
903
|
(o) => {
|
|
811
904
|
const l = o.layout;
|
|
812
905
|
e.forEach((a) => {
|
|
@@ -815,23 +908,14 @@ function Bo(t) {
|
|
|
815
908
|
}
|
|
816
909
|
), e;
|
|
817
910
|
}
|
|
818
|
-
const
|
|
911
|
+
const Ao = {
|
|
819
912
|
ACAD: {
|
|
820
|
-
csvg: "Converts current drawing to SVG",
|
|
821
913
|
la: "Layer properties manager",
|
|
822
|
-
log: "Logs debug information in console",
|
|
823
914
|
md: "Replaces missed fonts and images",
|
|
824
|
-
|
|
825
|
-
pan: "Shifts the view without changing the viewing direction or magnification",
|
|
826
|
-
pttype: "Specifies the display style and size of point objects",
|
|
827
|
-
qnew: "Starts a new drawing",
|
|
828
|
-
regen: "Redraw the current drawing",
|
|
829
|
-
select: "Selects entities",
|
|
830
|
-
zoom: "Zooms to display the maximum extents of all entities",
|
|
831
|
-
zoomw: "Zooms to display an area specified by a rectangular window"
|
|
915
|
+
pttype: "Specifies the display style and size of point objects"
|
|
832
916
|
},
|
|
833
917
|
USER: {}
|
|
834
|
-
},
|
|
918
|
+
}, No = {
|
|
835
919
|
baseDialog: {
|
|
836
920
|
ok: "OK",
|
|
837
921
|
cancel: "Cancel"
|
|
@@ -850,8 +934,10 @@ const Do = {
|
|
|
850
934
|
title: "Point Style",
|
|
851
935
|
pointSize: "Point Size:"
|
|
852
936
|
}
|
|
853
|
-
},
|
|
937
|
+
}, Io = {
|
|
854
938
|
entityName: {
|
|
939
|
+
"2dPolyline": "2D Polyline",
|
|
940
|
+
"3dPolyline": "3D Polyline",
|
|
855
941
|
"3PointAngularDimension": "Three Point Angular Dimension",
|
|
856
942
|
AlignedDimension: "Aligned Dimension",
|
|
857
943
|
Arc: "Arc",
|
|
@@ -1023,32 +1109,88 @@ const Do = {
|
|
|
1023
1109
|
whitesmoke: "White Smoke",
|
|
1024
1110
|
yellow: "Yellow",
|
|
1025
1111
|
yellowgreen: "Yellow Green"
|
|
1112
|
+
},
|
|
1113
|
+
enum: {
|
|
1114
|
+
TopLeft: "Top Left",
|
|
1115
|
+
TopCenter: "Top Center",
|
|
1116
|
+
TopRight: "Top Right",
|
|
1117
|
+
MiddleLeft: "Middle Left",
|
|
1118
|
+
MiddleCenter: "Middle Center",
|
|
1119
|
+
MiddleRight: "Middle Right",
|
|
1120
|
+
BottomLeft: "Bottom Left",
|
|
1121
|
+
BottomCenter: "Bottom Center",
|
|
1122
|
+
BottomRight: "Bottom Right",
|
|
1123
|
+
LEFT_TO_RIGHT: "Left to Right",
|
|
1124
|
+
RIGHT_TO_LEFT: "Right to Left",
|
|
1125
|
+
TOP_TO_BOTTOM: "Top to Bottom",
|
|
1126
|
+
BOTTOM_TO_TOP: "Bottom to Top",
|
|
1127
|
+
BY_STYLE: "By Style"
|
|
1128
|
+
},
|
|
1129
|
+
property: {
|
|
1130
|
+
general: "General",
|
|
1131
|
+
geometry: "Geometry",
|
|
1132
|
+
text: "Text",
|
|
1133
|
+
handle: "Handle",
|
|
1134
|
+
color: "Color",
|
|
1135
|
+
layer: "Layer",
|
|
1136
|
+
linetype: "Linetype",
|
|
1137
|
+
linetypeScale: "Linetype Scale",
|
|
1138
|
+
lineWeight: "Lineweight",
|
|
1139
|
+
thickness: "Thickness",
|
|
1140
|
+
startX: "Start X",
|
|
1141
|
+
startY: "Start Y",
|
|
1142
|
+
startZ: "Start Z",
|
|
1143
|
+
endX: "End X",
|
|
1144
|
+
endY: "End Y",
|
|
1145
|
+
endZ: "End Z",
|
|
1146
|
+
centerX: "Center X",
|
|
1147
|
+
centerY: "Center Y",
|
|
1148
|
+
centerZ: "Center Z",
|
|
1149
|
+
radius: "Radius",
|
|
1150
|
+
normalX: "Normal X",
|
|
1151
|
+
normalY: "Normal Y",
|
|
1152
|
+
normalZ: "Normal Z",
|
|
1153
|
+
startAngle: "Start Angle",
|
|
1154
|
+
endAngle: "End Angle",
|
|
1155
|
+
majorAxisRadius: "Major Radius",
|
|
1156
|
+
minorAxisRadius: "Minor Radius",
|
|
1157
|
+
blockName: "Block Name",
|
|
1158
|
+
positionX: "Position X",
|
|
1159
|
+
positionY: "Position Y",
|
|
1160
|
+
positionZ: "Position Z",
|
|
1161
|
+
rotation: "Rotation",
|
|
1162
|
+
scaleFactorsX: "Scale X",
|
|
1163
|
+
scaleFactorsY: "Scale Y",
|
|
1164
|
+
scaleFactorsZ: "Scale Z",
|
|
1165
|
+
basePointX: "Base Point X",
|
|
1166
|
+
basePointY: "Base Point Y",
|
|
1167
|
+
basePointZ: "Base Point Z",
|
|
1168
|
+
unitDirX: "Unit Dir X",
|
|
1169
|
+
unitDirY: "Unit Dir Y",
|
|
1170
|
+
unitDirZ: "Unit Dir Z",
|
|
1171
|
+
contents: "Contents",
|
|
1172
|
+
styleName: "Style",
|
|
1173
|
+
attachmentPoint: "Attachment Point",
|
|
1174
|
+
drawingDirection: "Drawing Direction",
|
|
1175
|
+
textHeight: "Text Height",
|
|
1176
|
+
lineSpacingFactor: "Line Spacing Factor",
|
|
1177
|
+
definedWidth: "Defined Width",
|
|
1178
|
+
directionX: "Direction X",
|
|
1179
|
+
directionY: "Direction Y",
|
|
1180
|
+
directionZ: "Direction Z",
|
|
1181
|
+
locationX: "Location X",
|
|
1182
|
+
locationY: "Location Y",
|
|
1183
|
+
locationZ: "Location Z",
|
|
1184
|
+
x: "X",
|
|
1185
|
+
y: "Y",
|
|
1186
|
+
z: "Z"
|
|
1026
1187
|
}
|
|
1027
|
-
},
|
|
1188
|
+
}, Fo = {
|
|
1028
1189
|
mainMenu: {
|
|
1029
1190
|
new: "New Drawing",
|
|
1030
1191
|
open: "Open Drawing",
|
|
1031
1192
|
export: "Export to SVG"
|
|
1032
1193
|
},
|
|
1033
|
-
commandLine: {
|
|
1034
|
-
prompt: "Type a command..."
|
|
1035
|
-
},
|
|
1036
|
-
progress: {
|
|
1037
|
-
start: "Start parsing file ...",
|
|
1038
|
-
parse: "Parsing file ...",
|
|
1039
|
-
font: "Downloading fonts needed by this drawing ...",
|
|
1040
|
-
ltype: "Parsing line types ...",
|
|
1041
|
-
style: "Parsing text syltes ...",
|
|
1042
|
-
dimstyle: "Parsing dimension styles ...",
|
|
1043
|
-
layer: "Parsing layers ...",
|
|
1044
|
-
vport: "Parsing viewports ...",
|
|
1045
|
-
blockrecord: "Parsing block record ...",
|
|
1046
|
-
header: "Parsing header ...",
|
|
1047
|
-
block: "Parsing blocks ...",
|
|
1048
|
-
entity: "Parsing entities ...",
|
|
1049
|
-
object: "Parsing named dictionaries ...",
|
|
1050
|
-
end: "Finished!"
|
|
1051
|
-
},
|
|
1052
1194
|
verticalToolbar: {
|
|
1053
1195
|
select: {
|
|
1054
1196
|
text: "Select",
|
|
@@ -1073,9 +1215,12 @@ const Do = {
|
|
|
1073
1215
|
},
|
|
1074
1216
|
statusBar: {
|
|
1075
1217
|
setting: {
|
|
1076
|
-
tooltip: "Display
|
|
1077
|
-
commandLine: "Command
|
|
1218
|
+
tooltip: "Display Settings",
|
|
1219
|
+
commandLine: "Command Line",
|
|
1078
1220
|
coordinate: "Coordinate",
|
|
1221
|
+
entityInfo: "Entity Info",
|
|
1222
|
+
languageSelector: "Language Selector",
|
|
1223
|
+
mainMenu: "Main Menu",
|
|
1079
1224
|
toolbar: "Toolbar",
|
|
1080
1225
|
stats: "Statistics"
|
|
1081
1226
|
},
|
|
@@ -1098,7 +1243,18 @@ const Do = {
|
|
|
1098
1243
|
}
|
|
1099
1244
|
},
|
|
1100
1245
|
toolPalette: {
|
|
1246
|
+
entityProperties: {
|
|
1247
|
+
tab: "Properties",
|
|
1248
|
+
title: "Entity Properties",
|
|
1249
|
+
propertyPanel: {
|
|
1250
|
+
noEntitySelected: "No entity selected!",
|
|
1251
|
+
multipleEntitySelected: "{count} entities selected",
|
|
1252
|
+
propValCopied: "Property value copied",
|
|
1253
|
+
failedToCopyPropVal: "Failed to copy property value!"
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1101
1256
|
layerManager: {
|
|
1257
|
+
tab: "Layers",
|
|
1102
1258
|
title: "Layer Manager",
|
|
1103
1259
|
layerList: {
|
|
1104
1260
|
name: "Name",
|
|
@@ -1141,23 +1297,14 @@ const Do = {
|
|
|
1141
1297
|
parsingWarning: "Issues on Parsing Drawing"
|
|
1142
1298
|
}
|
|
1143
1299
|
}
|
|
1144
|
-
},
|
|
1300
|
+
}, Ro = {
|
|
1145
1301
|
ACAD: {
|
|
1146
|
-
csvg: "转换当前图纸为SVG格式",
|
|
1147
1302
|
la: "图层属性管理器",
|
|
1148
|
-
log: "在控制台输出调试信息",
|
|
1149
1303
|
md: "替换缺失的字体和图片",
|
|
1150
|
-
|
|
1151
|
-
pan: "平移视图",
|
|
1152
|
-
pttype: "设置点的显示样式和尺寸",
|
|
1153
|
-
qnew: "创建新图纸",
|
|
1154
|
-
regen: "重绘图纸",
|
|
1155
|
-
select: "选择图元",
|
|
1156
|
-
zoom: "缩放以显示所有对象",
|
|
1157
|
-
zoomw: "缩放以显示矩形窗口内的对象"
|
|
1304
|
+
pttype: "设置点的显示样式和尺寸"
|
|
1158
1305
|
},
|
|
1159
1306
|
USER: {}
|
|
1160
|
-
},
|
|
1307
|
+
}, Oo = {
|
|
1161
1308
|
baseDialog: {
|
|
1162
1309
|
ok: "确定",
|
|
1163
1310
|
cancel: "取消"
|
|
@@ -1176,8 +1323,10 @@ const Do = {
|
|
|
1176
1323
|
title: "点样式",
|
|
1177
1324
|
pointSize: "点大小:"
|
|
1178
1325
|
}
|
|
1179
|
-
},
|
|
1326
|
+
}, Ho = {
|
|
1180
1327
|
entityName: {
|
|
1328
|
+
"2dPolyline": "二维多段线",
|
|
1329
|
+
"3dPolyline": "三维多段线",
|
|
1181
1330
|
"3PointAngularDimension": "三点角度标注",
|
|
1182
1331
|
AlignedDimension: "线性标注",
|
|
1183
1332
|
Arc: "圆弧",
|
|
@@ -1349,32 +1498,88 @@ const Do = {
|
|
|
1349
1498
|
whitesmoke: "白烟色",
|
|
1350
1499
|
yellow: "黄色",
|
|
1351
1500
|
yellowgreen: "黄绿色"
|
|
1501
|
+
},
|
|
1502
|
+
enum: {
|
|
1503
|
+
TopLeft: "左上",
|
|
1504
|
+
TopCenter: "中上",
|
|
1505
|
+
TopRight: "右上",
|
|
1506
|
+
MiddleLeft: "左中",
|
|
1507
|
+
MiddleCenter: "正中",
|
|
1508
|
+
MiddleRight: "右中",
|
|
1509
|
+
BottomLeft: "左下",
|
|
1510
|
+
BottomCenter: "中下",
|
|
1511
|
+
BottomRight: "右下",
|
|
1512
|
+
LEFT_TO_RIGHT: "水平左到右",
|
|
1513
|
+
RIGHT_TO_LEFT: "水平右到左",
|
|
1514
|
+
TOP_TO_BOTTOM: "垂直上到下",
|
|
1515
|
+
BOTTOM_TO_TOP: "垂直下到上",
|
|
1516
|
+
BY_STYLE: "随样式"
|
|
1517
|
+
},
|
|
1518
|
+
property: {
|
|
1519
|
+
general: "常规",
|
|
1520
|
+
geometry: "几何图形",
|
|
1521
|
+
text: "文字",
|
|
1522
|
+
handle: "句柄",
|
|
1523
|
+
color: "颜色",
|
|
1524
|
+
layer: "图层",
|
|
1525
|
+
linetype: "线型",
|
|
1526
|
+
linetypeScale: "线型比例",
|
|
1527
|
+
lineWeight: "线宽",
|
|
1528
|
+
thickness: "厚度",
|
|
1529
|
+
startX: "起点 X",
|
|
1530
|
+
startY: "起点 Y",
|
|
1531
|
+
startZ: "起点 Z",
|
|
1532
|
+
endX: "终点 X",
|
|
1533
|
+
endY: "终点 Y",
|
|
1534
|
+
endZ: "终点 Z",
|
|
1535
|
+
centerX: "圆心 X",
|
|
1536
|
+
centerY: "圆心 Y",
|
|
1537
|
+
centerZ: "圆心 Z",
|
|
1538
|
+
radius: "半径",
|
|
1539
|
+
normalX: "法向量 X",
|
|
1540
|
+
normalY: "法向量 Y",
|
|
1541
|
+
normalZ: "法向量 Z",
|
|
1542
|
+
startAngle: "起始角",
|
|
1543
|
+
endAngle: "终止角",
|
|
1544
|
+
majorAxisRadius: "长轴半径",
|
|
1545
|
+
minorAxisRadius: "短轴半径",
|
|
1546
|
+
blockName: "块名",
|
|
1547
|
+
positionX: "位置 X",
|
|
1548
|
+
positionY: "位置 Y",
|
|
1549
|
+
positionZ: "位置 Z",
|
|
1550
|
+
rotation: "旋转",
|
|
1551
|
+
scaleFactorsX: "缩放比例 X",
|
|
1552
|
+
scaleFactorsY: "缩放比例 Y",
|
|
1553
|
+
scaleFactorsZ: "缩放比例 Z",
|
|
1554
|
+
basePointX: "基点 X",
|
|
1555
|
+
basePointY: "基点 Y",
|
|
1556
|
+
basePointZ: "基点 Z",
|
|
1557
|
+
unitDirX: "单位方向向量 X",
|
|
1558
|
+
unitDirY: "单位方向向量 Y",
|
|
1559
|
+
unitDirZ: "单位方向向量 Z",
|
|
1560
|
+
contents: "内容",
|
|
1561
|
+
styleName: "样式",
|
|
1562
|
+
attachmentPoint: "对正",
|
|
1563
|
+
drawingDirection: "书写方向",
|
|
1564
|
+
textHeight: "文字高度",
|
|
1565
|
+
lineSpacingFactor: "行距比例",
|
|
1566
|
+
definedWidth: "定义的宽度",
|
|
1567
|
+
directionX: "方向向量 X",
|
|
1568
|
+
directionY: "方向向量 Y",
|
|
1569
|
+
directionZ: "方向向量 Z",
|
|
1570
|
+
locationX: "位置 X",
|
|
1571
|
+
locationY: "位置 Y",
|
|
1572
|
+
locationZ: "位置 Z",
|
|
1573
|
+
x: "X",
|
|
1574
|
+
y: "Y",
|
|
1575
|
+
z: "Z"
|
|
1352
1576
|
}
|
|
1353
|
-
},
|
|
1577
|
+
}, Yo = {
|
|
1354
1578
|
mainMenu: {
|
|
1355
1579
|
new: "新建图纸",
|
|
1356
1580
|
open: "打开图纸",
|
|
1357
1581
|
export: "导出为SVG"
|
|
1358
1582
|
},
|
|
1359
|
-
commandLine: {
|
|
1360
|
-
prompt: "输入命令..."
|
|
1361
|
-
},
|
|
1362
|
-
progress: {
|
|
1363
|
-
start: "开始解析文件...",
|
|
1364
|
-
parse: "正在解析文件 ...",
|
|
1365
|
-
font: "正在下载图纸所需字体...",
|
|
1366
|
-
ltype: "正在解析线形...",
|
|
1367
|
-
style: "正在解析文字样式...",
|
|
1368
|
-
dimstyle: "正在解析标注样式...",
|
|
1369
|
-
layer: "正在解析图层...",
|
|
1370
|
-
vport: "正在解析视口...",
|
|
1371
|
-
blockrecord: "正在解析BTRs...",
|
|
1372
|
-
header: "正在解析文件头...",
|
|
1373
|
-
block: "正在解析块..",
|
|
1374
|
-
entity: "正在解析图元...",
|
|
1375
|
-
object: "正在解析NODs...",
|
|
1376
|
-
end: "完成!"
|
|
1377
|
-
},
|
|
1378
1583
|
verticalToolbar: {
|
|
1379
1584
|
select: {
|
|
1380
1585
|
text: "选择",
|
|
@@ -1402,6 +1607,9 @@ const Do = {
|
|
|
1402
1607
|
tooltip: "显示设置",
|
|
1403
1608
|
commandLine: "命令行",
|
|
1404
1609
|
coordinate: "坐标",
|
|
1610
|
+
entityInfo: "图元信息",
|
|
1611
|
+
languageSelector: "语言菜单",
|
|
1612
|
+
mainMenu: "主菜单",
|
|
1405
1613
|
toolbar: "工具栏",
|
|
1406
1614
|
stats: "性能面板"
|
|
1407
1615
|
},
|
|
@@ -1424,7 +1632,18 @@ const Do = {
|
|
|
1424
1632
|
}
|
|
1425
1633
|
},
|
|
1426
1634
|
toolPalette: {
|
|
1635
|
+
entityProperties: {
|
|
1636
|
+
tab: "属性",
|
|
1637
|
+
title: "图元属性",
|
|
1638
|
+
propertyPanel: {
|
|
1639
|
+
noEntitySelected: "未选择任何图元!",
|
|
1640
|
+
multipleEntitySelected: "{count}个图元",
|
|
1641
|
+
propValCopied: "属性值已复制",
|
|
1642
|
+
failedToCopyPropVal: "复制属性值失败!"
|
|
1643
|
+
}
|
|
1644
|
+
},
|
|
1427
1645
|
layerManager: {
|
|
1646
|
+
tab: "图层",
|
|
1428
1647
|
title: "图层管理器",
|
|
1429
1648
|
layerList: {
|
|
1430
1649
|
name: "名称",
|
|
@@ -1467,83 +1686,91 @@ const Do = {
|
|
|
1467
1686
|
parsingWarning: "解析图纸问题"
|
|
1468
1687
|
}
|
|
1469
1688
|
}
|
|
1470
|
-
},
|
|
1689
|
+
}, Go = () => {
|
|
1471
1690
|
const t = localStorage.getItem("preferred_lang");
|
|
1472
1691
|
return t === "en" || t === "zh" ? t : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
1473
|
-
},
|
|
1692
|
+
}, Ie = {
|
|
1474
1693
|
en: {
|
|
1475
|
-
main:
|
|
1476
|
-
command:
|
|
1477
|
-
dialog:
|
|
1478
|
-
entity:
|
|
1694
|
+
main: Fo,
|
|
1695
|
+
command: Ao,
|
|
1696
|
+
dialog: No,
|
|
1697
|
+
entity: Io
|
|
1479
1698
|
},
|
|
1480
1699
|
zh: {
|
|
1481
|
-
main:
|
|
1482
|
-
command:
|
|
1483
|
-
dialog:
|
|
1484
|
-
entity:
|
|
1700
|
+
main: Yo,
|
|
1701
|
+
command: Ro,
|
|
1702
|
+
dialog: Oo,
|
|
1703
|
+
entity: Ho
|
|
1485
1704
|
}
|
|
1486
|
-
}
|
|
1705
|
+
};
|
|
1706
|
+
ae.mergeLocaleMessage("en", Ie.en);
|
|
1707
|
+
ae.mergeLocaleMessage("zh", Ie.zh);
|
|
1708
|
+
const oe = at({
|
|
1487
1709
|
legacy: !1,
|
|
1488
|
-
messages:
|
|
1489
|
-
locale:
|
|
1710
|
+
messages: ae.messages,
|
|
1711
|
+
locale: Go(),
|
|
1490
1712
|
fallbackLocale: "en",
|
|
1491
1713
|
allowComposition: !0,
|
|
1492
1714
|
globalInjection: !0
|
|
1493
|
-
}),
|
|
1494
|
-
const
|
|
1495
|
-
return n(i, "");
|
|
1496
|
-
}, ri = (t) => be(U.SYSTEMT_COMMAND_GROUP_NAME, t), ci = (t) => be(U.DEFAUT_COMMAND_GROUP_NAME, t), Oo = (t) => {
|
|
1497
|
-
const e = te.global.t, n = "entity.entityName." + t.type;
|
|
1715
|
+
}), Xo = (t) => {
|
|
1716
|
+
const e = oe.global.t, n = "entity.entityName." + t.type;
|
|
1498
1717
|
return e(n, t.type, { missingWarn: !1 });
|
|
1499
|
-
},
|
|
1718
|
+
}, Le = (t) => {
|
|
1719
|
+
const e = oe.global.t, n = "entity.property." + t;
|
|
1720
|
+
return e(n, t, { missingWarn: !1 });
|
|
1721
|
+
}, Te = (t) => {
|
|
1722
|
+
const e = oe.global.t, n = "entity.enum." + t;
|
|
1723
|
+
return e(n, t, { missingWarn: !0 });
|
|
1724
|
+
}, Wo = (t) => {
|
|
1500
1725
|
if (t == "ByLayer" || t == "ByBlock")
|
|
1501
1726
|
return t;
|
|
1502
1727
|
{
|
|
1503
|
-
const e =
|
|
1728
|
+
const e = oe.global.t, n = "entity.color." + t;
|
|
1504
1729
|
return e(n, t, { missingWarn: !1 });
|
|
1505
1730
|
}
|
|
1506
|
-
},
|
|
1507
|
-
const e =
|
|
1508
|
-
return e(n, t);
|
|
1509
|
-
},
|
|
1731
|
+
}, Zo = (t) => {
|
|
1732
|
+
const e = oe.global.t, n = `main.toolPalette.${t}.title`;
|
|
1733
|
+
return e(n, t, { missingWarn: !1 });
|
|
1734
|
+
}, Uo = (t) => {
|
|
1735
|
+
const e = oe.global.t, n = `main.toolPalette.${t}.tab`;
|
|
1736
|
+
return e(n, t, { missingWarn: !1 });
|
|
1737
|
+
}, we = "preferred_lang";
|
|
1510
1738
|
function Fe(t) {
|
|
1511
|
-
const { locale: e } =
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1739
|
+
const { locale: e } = Y(), i = M((() => {
|
|
1740
|
+
const r = localStorage.getItem(we);
|
|
1741
|
+
if (r === "en" || r === "zh") return r;
|
|
1742
|
+
const _ = navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
1743
|
+
return ae.setCurrentLocale(_), _;
|
|
1744
|
+
})()), o = T(() => i.value), l = (r) => {
|
|
1745
|
+
oe.global.locale.value = r, i.value = r, (!t || t === "default") && localStorage.setItem(we, r), ae.setCurrentLocale(r);
|
|
1516
1746
|
}, a = () => {
|
|
1517
|
-
localStorage.removeItem(
|
|
1747
|
+
localStorage.removeItem(we);
|
|
1518
1748
|
};
|
|
1519
|
-
t &&
|
|
1749
|
+
t && I(
|
|
1520
1750
|
() => t,
|
|
1521
|
-
(
|
|
1522
|
-
|
|
1751
|
+
(r) => {
|
|
1752
|
+
r && r !== "default" && l(r);
|
|
1523
1753
|
},
|
|
1524
1754
|
{ immediate: !0 }
|
|
1525
|
-
),
|
|
1755
|
+
), I(
|
|
1526
1756
|
() => e.value,
|
|
1527
|
-
(
|
|
1528
|
-
|
|
1529
|
-
const m = s === "zh" ? "zh" : "en";
|
|
1530
|
-
i.value = m;
|
|
1531
|
-
}
|
|
1757
|
+
(r) => {
|
|
1758
|
+
(!t || t === "default") && l(r === "zh" ? "zh" : "en");
|
|
1532
1759
|
}
|
|
1533
1760
|
);
|
|
1534
|
-
const c =
|
|
1761
|
+
const c = T(() => o.value === "en" ? ot : lt);
|
|
1535
1762
|
return {
|
|
1536
1763
|
currentLocale: i,
|
|
1537
1764
|
effectiveLocale: o,
|
|
1538
1765
|
elementPlusLocale: c,
|
|
1539
1766
|
setLocale: l,
|
|
1540
1767
|
clearStoragePreference: a,
|
|
1541
|
-
isControlled:
|
|
1768
|
+
isControlled: T(() => !!(t && t !== "default"))
|
|
1542
1769
|
};
|
|
1543
1770
|
}
|
|
1544
|
-
function
|
|
1545
|
-
const t =
|
|
1546
|
-
const i =
|
|
1771
|
+
function Re() {
|
|
1772
|
+
const t = q(/* @__PURE__ */ new Map()), e = q(/* @__PURE__ */ new Map()), n = () => {
|
|
1773
|
+
const i = P.instance.curView.missedData, o = U.instance.fontMapping;
|
|
1547
1774
|
t.clear(), Object.keys(i.fonts).forEach((l) => {
|
|
1548
1775
|
const a = o[l];
|
|
1549
1776
|
t.set(l, a || "");
|
|
@@ -1555,7 +1782,7 @@ function Ne() {
|
|
|
1555
1782
|
});
|
|
1556
1783
|
});
|
|
1557
1784
|
};
|
|
1558
|
-
return
|
|
1785
|
+
return P.instance.events.documentActivated.addEventListener(() => {
|
|
1559
1786
|
n();
|
|
1560
1787
|
}), Q.on("font-not-found", (i) => {
|
|
1561
1788
|
n();
|
|
@@ -1564,18 +1791,18 @@ function Ne() {
|
|
|
1564
1791
|
images: e
|
|
1565
1792
|
};
|
|
1566
1793
|
}
|
|
1567
|
-
class
|
|
1794
|
+
class qo {
|
|
1568
1795
|
constructor() {
|
|
1569
|
-
this.notifications =
|
|
1796
|
+
this.notifications = M([]), this.nextId = 1;
|
|
1570
1797
|
}
|
|
1571
1798
|
get allNotifications() {
|
|
1572
|
-
return
|
|
1799
|
+
return T(() => this.notifications.value);
|
|
1573
1800
|
}
|
|
1574
1801
|
get unreadCount() {
|
|
1575
|
-
return
|
|
1802
|
+
return T(() => this.notifications.value.length);
|
|
1576
1803
|
}
|
|
1577
1804
|
get hasNotifications() {
|
|
1578
|
-
return
|
|
1805
|
+
return T(() => this.notifications.value.length > 0);
|
|
1579
1806
|
}
|
|
1580
1807
|
add(e) {
|
|
1581
1808
|
const n = {
|
|
@@ -1631,43 +1858,61 @@ class Go {
|
|
|
1631
1858
|
});
|
|
1632
1859
|
}
|
|
1633
1860
|
}
|
|
1634
|
-
const
|
|
1635
|
-
function
|
|
1861
|
+
const H = new qo();
|
|
1862
|
+
function he() {
|
|
1636
1863
|
return {
|
|
1637
1864
|
/** Reactive list of all notifications */
|
|
1638
|
-
notifications:
|
|
1865
|
+
notifications: H.allNotifications,
|
|
1639
1866
|
/** Reactive count of unread notifications */
|
|
1640
|
-
unreadCount:
|
|
1867
|
+
unreadCount: H.unreadCount,
|
|
1641
1868
|
/** Reactive boolean indicating if there are any notifications */
|
|
1642
|
-
hasNotifications:
|
|
1869
|
+
hasNotifications: H.hasNotifications,
|
|
1643
1870
|
/** Add a custom notification */
|
|
1644
|
-
add:
|
|
1871
|
+
add: H.add.bind(H),
|
|
1645
1872
|
/** Remove a notification by ID */
|
|
1646
|
-
remove:
|
|
1873
|
+
remove: H.remove.bind(H),
|
|
1647
1874
|
/** Clear all notifications */
|
|
1648
|
-
clear:
|
|
1875
|
+
clear: H.clear.bind(H),
|
|
1649
1876
|
/** Clear all notifications (alias for clear) */
|
|
1650
|
-
clearAll:
|
|
1877
|
+
clearAll: H.clearAll.bind(H),
|
|
1651
1878
|
/** Add an info notification */
|
|
1652
|
-
info:
|
|
1879
|
+
info: H.info.bind(H),
|
|
1653
1880
|
/** Add a warning notification */
|
|
1654
|
-
warning:
|
|
1881
|
+
warning: H.warning.bind(H),
|
|
1655
1882
|
/** Add an error notification */
|
|
1656
|
-
error:
|
|
1883
|
+
error: H.error.bind(H),
|
|
1657
1884
|
/** Add a success notification */
|
|
1658
|
-
success:
|
|
1885
|
+
success: H.success.bind(H)
|
|
1659
1886
|
};
|
|
1660
1887
|
}
|
|
1661
|
-
function
|
|
1662
|
-
const t =
|
|
1663
|
-
|
|
1888
|
+
function jo() {
|
|
1889
|
+
const t = M([]), e = M([]), n = M([]), i = (l) => {
|
|
1890
|
+
e.value = l.ids, t.value = P.instance.curView.selectionSet.ids;
|
|
1891
|
+
}, o = (l) => {
|
|
1892
|
+
n.value = l.ids, t.value = P.instance.curView.selectionSet.ids;
|
|
1893
|
+
};
|
|
1894
|
+
return Z(() => {
|
|
1895
|
+
const l = P.instance.curView.selectionSet.events;
|
|
1896
|
+
l.selectionAdded.addEventListener(i), l.selectionRemoved.addEventListener(o);
|
|
1897
|
+
}), ne(() => {
|
|
1898
|
+
const l = P.instance.curView.selectionSet.events;
|
|
1899
|
+
l.selectionAdded.removeEventListener(i), l.selectionRemoved.removeEventListener(o);
|
|
1900
|
+
}), {
|
|
1901
|
+
selectionSet: t,
|
|
1902
|
+
added: e,
|
|
1903
|
+
removed: n
|
|
1904
|
+
};
|
|
1905
|
+
}
|
|
1906
|
+
function ce() {
|
|
1907
|
+
const t = q(
|
|
1908
|
+
U.instance.settings
|
|
1664
1909
|
);
|
|
1665
|
-
return
|
|
1910
|
+
return U.instance.events.modified.addEventListener((e) => {
|
|
1666
1911
|
t[e.key] = e.value;
|
|
1667
1912
|
}), t;
|
|
1668
1913
|
}
|
|
1669
|
-
function
|
|
1670
|
-
const e =
|
|
1914
|
+
function Qo(t) {
|
|
1915
|
+
const e = q({}), n = t.curDocument, i = (o) => {
|
|
1671
1916
|
e.pdmode = o.pdmode, e.pdmode = o.pdsize;
|
|
1672
1917
|
};
|
|
1673
1918
|
return i(n.database), n.database.events.headerSysVarChanged.addEventListener((o) => {
|
|
@@ -1676,208 +1921,208 @@ function Wo(t) {
|
|
|
1676
1921
|
i(o.doc.database);
|
|
1677
1922
|
}), e;
|
|
1678
1923
|
}
|
|
1679
|
-
function
|
|
1680
|
-
const t =
|
|
1681
|
-
return
|
|
1924
|
+
function Jo() {
|
|
1925
|
+
const t = et("(max-width: 768px)"), e = M(!1), n = M(!1);
|
|
1926
|
+
return Z(() => {
|
|
1682
1927
|
var o;
|
|
1683
1928
|
try {
|
|
1684
1929
|
const l = window.navigator, a = l.maxTouchPoints ?? l.msMaxTouchPoints ?? 0, c = ((o = window.matchMedia) == null ? void 0 : o.call(window, "(pointer: coarse)").matches) ?? !1;
|
|
1685
1930
|
e.value = a > 0 || c || "ontouchstart" in window;
|
|
1686
|
-
const
|
|
1931
|
+
const r = l.userAgent || "";
|
|
1687
1932
|
n.value = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
1688
|
-
|
|
1933
|
+
r
|
|
1689
1934
|
);
|
|
1690
1935
|
} catch {
|
|
1691
1936
|
e.value = !1, n.value = !1;
|
|
1692
1937
|
}
|
|
1693
|
-
}), { isMobile:
|
|
1938
|
+
}), { isMobile: T(() => !!t.value && (e.value || n.value)) };
|
|
1694
1939
|
}
|
|
1695
|
-
const
|
|
1940
|
+
const Ko = /* @__PURE__ */ E({
|
|
1696
1941
|
__name: "MlDialogManager",
|
|
1697
1942
|
setup(t, { expose: e }) {
|
|
1698
|
-
const { dialogs: n, toggleDialog: i, registerDialog: o } =
|
|
1943
|
+
const { dialogs: n, toggleDialog: i, registerDialog: o } = ge();
|
|
1699
1944
|
return e({
|
|
1700
1945
|
toggleDialog: i,
|
|
1701
1946
|
registerDialog: o
|
|
1702
|
-
}), (l, a) => (
|
|
1947
|
+
}), (l, a) => (s(!0), w(G, null, W(m(n), (c) => (s(), w("div", {
|
|
1703
1948
|
key: c.name
|
|
1704
1949
|
}, [
|
|
1705
|
-
(
|
|
1950
|
+
(s(), B(re(c.component), qe({
|
|
1706
1951
|
modelValue: c.visible,
|
|
1707
|
-
"onUpdate:modelValue": (
|
|
1952
|
+
"onUpdate:modelValue": (r) => c.visible = r
|
|
1708
1953
|
}, { ref_for: !0 }, c.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
|
1709
1954
|
]))), 128));
|
|
1710
1955
|
}
|
|
1711
|
-
}),
|
|
1956
|
+
}), el = ["accept"], tl = /* @__PURE__ */ E({
|
|
1712
1957
|
__name: "MlFileReader",
|
|
1713
1958
|
emits: ["file-read"],
|
|
1714
1959
|
setup(t, { emit: e }) {
|
|
1715
|
-
const n = e, i =
|
|
1960
|
+
const n = e, i = M(null), o = Eo(), l = T(() => {
|
|
1716
1961
|
const c = Array.from(o.value);
|
|
1717
|
-
let
|
|
1718
|
-
for (let
|
|
1719
|
-
|
|
1720
|
-
return
|
|
1962
|
+
let r = "";
|
|
1963
|
+
for (let g = 0, _ = c.length; g < _; ++g)
|
|
1964
|
+
g == _ - 1 ? r += `.${c[g]}` : r += `.${c[g]}, `;
|
|
1965
|
+
return r;
|
|
1721
1966
|
});
|
|
1722
|
-
|
|
1967
|
+
Z(() => {
|
|
1723
1968
|
Q.on("open-file", () => {
|
|
1724
1969
|
var c;
|
|
1725
1970
|
(c = i.value) == null || c.click();
|
|
1726
1971
|
});
|
|
1727
1972
|
});
|
|
1728
1973
|
const a = (c) => {
|
|
1729
|
-
var
|
|
1730
|
-
const
|
|
1731
|
-
if (
|
|
1732
|
-
const
|
|
1733
|
-
|
|
1734
|
-
var
|
|
1735
|
-
const
|
|
1736
|
-
|
|
1737
|
-
},
|
|
1974
|
+
var _;
|
|
1975
|
+
const g = (_ = c.target.files) == null ? void 0 : _[0];
|
|
1976
|
+
if (g && g.name) {
|
|
1977
|
+
const x = new FileReader();
|
|
1978
|
+
x.readAsArrayBuffer(g), x.onload = (h) => {
|
|
1979
|
+
var v;
|
|
1980
|
+
const u = (v = h.target) == null ? void 0 : v.result;
|
|
1981
|
+
u && n("file-read", g.name, u);
|
|
1982
|
+
}, x.onerror = () => {
|
|
1738
1983
|
console.error("Failed to read the file.");
|
|
1739
1984
|
};
|
|
1740
1985
|
}
|
|
1741
1986
|
};
|
|
1742
|
-
return (c,
|
|
1987
|
+
return (c, r) => (s(), w("input", {
|
|
1743
1988
|
type: "file",
|
|
1744
1989
|
ref_key: "fileInput",
|
|
1745
1990
|
ref: i,
|
|
1746
1991
|
accept: l.value,
|
|
1747
1992
|
style: { display: "none" },
|
|
1748
1993
|
onChange: a
|
|
1749
|
-
}, null, 40,
|
|
1994
|
+
}, null, 40, el));
|
|
1750
1995
|
}
|
|
1751
|
-
}),
|
|
1996
|
+
}), nl = /* @__PURE__ */ E({
|
|
1752
1997
|
__name: "MlToggleButton",
|
|
1753
|
-
props: /* @__PURE__ */
|
|
1998
|
+
props: /* @__PURE__ */ le({
|
|
1754
1999
|
size: { default: 30 },
|
|
1755
2000
|
data: {}
|
|
1756
2001
|
}, {
|
|
1757
2002
|
modelValue: { default: !1 },
|
|
1758
2003
|
modelModifiers: {}
|
|
1759
2004
|
}),
|
|
1760
|
-
emits: /* @__PURE__ */
|
|
2005
|
+
emits: /* @__PURE__ */ le(["click"], ["update:modelValue"]),
|
|
1761
2006
|
setup(t, { emit: e }) {
|
|
1762
|
-
|
|
2007
|
+
Ee((g) => ({
|
|
1763
2008
|
a97b120a: a.value
|
|
1764
2009
|
}));
|
|
1765
|
-
const n = t, i =
|
|
2010
|
+
const n = t, i = pe(t, "modelValue"), o = e, l = T(() => i.value ? n.data.onIcon : n.data.offIcon), a = T(() => n.size + "px"), c = T(() => i.value ? n.data.onTooltip : n.data.offTooltip), r = () => {
|
|
1766
2011
|
o("click", i.value);
|
|
1767
2012
|
};
|
|
1768
|
-
return (
|
|
1769
|
-
const
|
|
1770
|
-
return
|
|
2013
|
+
return (g, _) => {
|
|
2014
|
+
const x = L("el-button"), h = L("el-tooltip");
|
|
2015
|
+
return s(), B(h, {
|
|
1771
2016
|
content: c.value,
|
|
1772
2017
|
"hide-after": 0
|
|
1773
2018
|
}, {
|
|
1774
2019
|
default: f(() => [
|
|
1775
|
-
|
|
2020
|
+
p(x, {
|
|
1776
2021
|
class: "ml-toggle-button",
|
|
1777
2022
|
icon: l.value,
|
|
1778
|
-
onClick:
|
|
2023
|
+
onClick: r
|
|
1779
2024
|
}, null, 8, ["icon"])
|
|
1780
2025
|
]),
|
|
1781
2026
|
_: 1
|
|
1782
2027
|
}, 8, ["content"]);
|
|
1783
2028
|
};
|
|
1784
2029
|
}
|
|
1785
|
-
}),
|
|
2030
|
+
}), Oe = /* @__PURE__ */ X(nl, [["__scopeId", "data-v-48d6b055"]]), ol = /* @__PURE__ */ E({
|
|
1786
2031
|
__name: "MlReplacementDlg",
|
|
1787
2032
|
setup(t) {
|
|
1788
|
-
const { t: e } =
|
|
1789
|
-
const
|
|
1790
|
-
c.value =
|
|
1791
|
-
},
|
|
1792
|
-
const
|
|
1793
|
-
i.forEach((
|
|
1794
|
-
|
|
1795
|
-
const
|
|
1796
|
-
|
|
2033
|
+
const { t: e } = Y(), { fonts: n, images: i } = Re(), o = M(!0), l = T(() => n.size > 0 ? "font" : "image"), a = M(null), c = M([]), r = () => {
|
|
2034
|
+
const u = P.instance.avaiableFonts;
|
|
2035
|
+
c.value = u.map((v) => v.name[0]);
|
|
2036
|
+
}, g = () => {
|
|
2037
|
+
const u = P.instance.curDocument.database;
|
|
2038
|
+
i.forEach((b) => {
|
|
2039
|
+
b.file && b.ids.forEach((S) => {
|
|
2040
|
+
const $ = u.tables.blockTable.modelSpace.getIdAt(
|
|
2041
|
+
S
|
|
1797
2042
|
);
|
|
1798
|
-
|
|
2043
|
+
$.image = b.file, $.triggerModifiedEvent();
|
|
1799
2044
|
});
|
|
1800
2045
|
});
|
|
1801
|
-
const
|
|
1802
|
-
n.forEach((
|
|
1803
|
-
|
|
2046
|
+
const v = U.instance;
|
|
2047
|
+
n.forEach((b, S) => {
|
|
2048
|
+
S && b && v.setFontMapping(S, b);
|
|
1804
2049
|
});
|
|
1805
|
-
},
|
|
2050
|
+
}, _ = (u) => {
|
|
1806
2051
|
a.value && (a.value.click(), a.value.onchange = () => {
|
|
1807
|
-
|
|
2052
|
+
x(u);
|
|
1808
2053
|
});
|
|
1809
|
-
},
|
|
1810
|
-
var
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1813
|
-
}, h = (
|
|
1814
|
-
n.set(
|
|
2054
|
+
}, x = (u) => {
|
|
2055
|
+
var b, S;
|
|
2056
|
+
const v = (S = (b = a.value) == null ? void 0 : b.files) == null ? void 0 : S[0];
|
|
2057
|
+
v && (u.file = v);
|
|
2058
|
+
}, h = (u, v) => {
|
|
2059
|
+
n.set(u, v);
|
|
1815
2060
|
};
|
|
1816
|
-
return (
|
|
1817
|
-
const
|
|
1818
|
-
return
|
|
1819
|
-
title:
|
|
2061
|
+
return (u, v) => {
|
|
2062
|
+
const b = L("el-col"), S = L("el-row"), $ = L("el-option"), C = L("el-select"), D = L("el-tab-pane"), k = L("el-table-column"), A = L("el-button"), N = L("el-table"), y = L("el-tabs");
|
|
2063
|
+
return s(), B(Ne, {
|
|
2064
|
+
title: m(e)("dialog.replacementDlg.title"),
|
|
1820
2065
|
modelValue: o.value,
|
|
1821
|
-
"onUpdate:modelValue":
|
|
2066
|
+
"onUpdate:modelValue": v[1] || (v[1] = (z) => o.value = z),
|
|
1822
2067
|
name: "ReplacementDlg",
|
|
1823
|
-
onOk:
|
|
1824
|
-
onOpen:
|
|
2068
|
+
onOk: g,
|
|
2069
|
+
onOpen: r
|
|
1825
2070
|
}, {
|
|
1826
2071
|
default: f(() => [
|
|
1827
|
-
|
|
2072
|
+
p(y, {
|
|
1828
2073
|
type: "card",
|
|
1829
2074
|
modelValue: l.value,
|
|
1830
|
-
"onUpdate:modelValue":
|
|
2075
|
+
"onUpdate:modelValue": v[0] || (v[0] = (z) => l.value = z)
|
|
1831
2076
|
}, {
|
|
1832
2077
|
default: f(() => [
|
|
1833
|
-
|
|
2078
|
+
m(n).size > 0 ? (s(), B(D, {
|
|
1834
2079
|
key: 0,
|
|
1835
|
-
label:
|
|
2080
|
+
label: m(e)("dialog.replacementDlg.fontTabName"),
|
|
1836
2081
|
name: "font"
|
|
1837
2082
|
}, {
|
|
1838
2083
|
default: f(() => [
|
|
1839
|
-
|
|
1840
|
-
|
|
2084
|
+
d("div", null, [
|
|
2085
|
+
p(S, null, {
|
|
1841
2086
|
default: f(() => [
|
|
1842
|
-
|
|
2087
|
+
p(b, { span: 12 }, {
|
|
1843
2088
|
default: f(() => [
|
|
1844
|
-
|
|
2089
|
+
d("span", null, V(m(e)("dialog.replacementDlg.missedFont")), 1)
|
|
1845
2090
|
]),
|
|
1846
2091
|
_: 1
|
|
1847
2092
|
}),
|
|
1848
|
-
|
|
2093
|
+
p(b, { span: 12 }, {
|
|
1849
2094
|
default: f(() => [
|
|
1850
|
-
|
|
2095
|
+
d("span", null, V(m(e)("dialog.replacementDlg.replacedFont")), 1)
|
|
1851
2096
|
]),
|
|
1852
2097
|
_: 1
|
|
1853
2098
|
})
|
|
1854
2099
|
]),
|
|
1855
2100
|
_: 1
|
|
1856
2101
|
}),
|
|
1857
|
-
(
|
|
1858
|
-
key:
|
|
2102
|
+
(s(!0), w(G, null, W(m(n), ([z, F]) => (s(), B(S, {
|
|
2103
|
+
key: z,
|
|
1859
2104
|
style: { "margin-top": "10px" }
|
|
1860
2105
|
}, {
|
|
1861
2106
|
default: f(() => [
|
|
1862
|
-
|
|
2107
|
+
p(b, { span: 12 }, {
|
|
1863
2108
|
default: f(() => [
|
|
1864
|
-
|
|
2109
|
+
d("span", null, V(z), 1)
|
|
1865
2110
|
]),
|
|
1866
2111
|
_: 2
|
|
1867
2112
|
}, 1024),
|
|
1868
|
-
|
|
2113
|
+
p(b, { span: 12 }, {
|
|
1869
2114
|
default: f(() => [
|
|
1870
|
-
|
|
1871
|
-
"model-value":
|
|
1872
|
-
placeholder:
|
|
1873
|
-
"onUpdate:modelValue": (
|
|
2115
|
+
p(C, {
|
|
2116
|
+
"model-value": F,
|
|
2117
|
+
placeholder: m(e)("dialog.replacementDlg.selectFont"),
|
|
2118
|
+
"onUpdate:modelValue": (j) => h(z, j),
|
|
1874
2119
|
style: { width: "100%" }
|
|
1875
2120
|
}, {
|
|
1876
2121
|
default: f(() => [
|
|
1877
|
-
(
|
|
1878
|
-
key:
|
|
1879
|
-
label:
|
|
1880
|
-
value:
|
|
2122
|
+
(s(!0), w(G, null, W(c.value, (j, He) => (s(), B($, {
|
|
2123
|
+
key: He,
|
|
2124
|
+
label: j,
|
|
2125
|
+
value: j
|
|
1881
2126
|
}, null, 8, ["label", "value"]))), 128))
|
|
1882
2127
|
]),
|
|
1883
2128
|
_: 2
|
|
@@ -1892,38 +2137,38 @@ const Uo = /* @__PURE__ */ z({
|
|
|
1892
2137
|
]),
|
|
1893
2138
|
_: 1
|
|
1894
2139
|
}, 8, ["label"])) : O("", !0),
|
|
1895
|
-
|
|
2140
|
+
m(i).size > 0 ? (s(), B(D, {
|
|
1896
2141
|
key: 1,
|
|
1897
|
-
label:
|
|
2142
|
+
label: m(e)("dialog.replacementDlg.imageTabName"),
|
|
1898
2143
|
name: "image"
|
|
1899
2144
|
}, {
|
|
1900
2145
|
default: f(() => [
|
|
1901
|
-
|
|
1902
|
-
data: Array.from(
|
|
2146
|
+
p(N, {
|
|
2147
|
+
data: Array.from(m(i).values()),
|
|
1903
2148
|
style: { width: "100%" },
|
|
1904
2149
|
"v-show": !1
|
|
1905
2150
|
}, {
|
|
1906
2151
|
default: f(() => [
|
|
1907
|
-
|
|
1908
|
-
label:
|
|
2152
|
+
p(k, {
|
|
2153
|
+
label: m(e)("dialog.replacementDlg.file"),
|
|
1909
2154
|
prop: "fileName",
|
|
1910
2155
|
"min-width": 0,
|
|
1911
2156
|
flex: 1
|
|
1912
2157
|
}, null, 8, ["label"]),
|
|
1913
|
-
|
|
1914
|
-
label:
|
|
2158
|
+
p(k, {
|
|
2159
|
+
label: m(e)("dialog.replacementDlg.replace"),
|
|
1915
2160
|
fixed: "right",
|
|
1916
2161
|
width: "60"
|
|
1917
2162
|
}, {
|
|
1918
|
-
default: f(({ row:
|
|
1919
|
-
|
|
2163
|
+
default: f(({ row: z }) => [
|
|
2164
|
+
p(A, {
|
|
1920
2165
|
link: "",
|
|
1921
2166
|
type: "primary",
|
|
1922
2167
|
size: "small",
|
|
1923
|
-
onClick: (
|
|
2168
|
+
onClick: (F) => _(z)
|
|
1924
2169
|
}, {
|
|
1925
|
-
default: f(() =>
|
|
1926
|
-
|
|
2170
|
+
default: f(() => v[2] || (v[2] = [
|
|
2171
|
+
R(" ... ", -1)
|
|
1927
2172
|
])),
|
|
1928
2173
|
_: 2,
|
|
1929
2174
|
__: [2]
|
|
@@ -1934,12 +2179,12 @@ const Uo = /* @__PURE__ */ z({
|
|
|
1934
2179
|
]),
|
|
1935
2180
|
_: 1
|
|
1936
2181
|
}, 8, ["data"]),
|
|
1937
|
-
|
|
2182
|
+
d("input", {
|
|
1938
2183
|
type: "file",
|
|
1939
2184
|
ref_key: "fileInput",
|
|
1940
2185
|
ref: a,
|
|
1941
2186
|
accept: ".png,.jpg,.jpeg",
|
|
1942
|
-
onChange:
|
|
2187
|
+
onChange: x,
|
|
1943
2188
|
style: { display: "none" }
|
|
1944
2189
|
}, null, 544)
|
|
1945
2190
|
]),
|
|
@@ -1953,77 +2198,77 @@ const Uo = /* @__PURE__ */ z({
|
|
|
1953
2198
|
}, 8, ["title", "modelValue"]);
|
|
1954
2199
|
};
|
|
1955
2200
|
}
|
|
1956
|
-
}),
|
|
2201
|
+
}), ll = /* @__PURE__ */ E({
|
|
1957
2202
|
__name: "MlPointStyleDlg",
|
|
1958
2203
|
setup(t) {
|
|
1959
|
-
const { t: e } =
|
|
2204
|
+
const { t: e } = Y(), n = Qo(P.instance), i = M(!0), o = M(0), l = [
|
|
1960
2205
|
[
|
|
1961
|
-
{ id: 0, icon:
|
|
1962
|
-
{ id: 1, icon:
|
|
1963
|
-
{ id: 2, icon:
|
|
1964
|
-
{ id: 3, icon:
|
|
1965
|
-
{ id: 4, icon:
|
|
2206
|
+
{ id: 0, icon: mn },
|
|
2207
|
+
{ id: 1, icon: fn },
|
|
2208
|
+
{ id: 2, icon: _n },
|
|
2209
|
+
{ id: 3, icon: bn },
|
|
2210
|
+
{ id: 4, icon: Mn }
|
|
1966
2211
|
],
|
|
1967
2212
|
[
|
|
1968
|
-
{ id: 32, icon:
|
|
1969
|
-
{ id: 33, icon:
|
|
1970
|
-
{ id: 34, icon:
|
|
1971
|
-
{ id: 35, icon:
|
|
1972
|
-
{ id: 36, icon:
|
|
2213
|
+
{ id: 32, icon: Ln },
|
|
2214
|
+
{ id: 33, icon: Bn },
|
|
2215
|
+
{ id: 34, icon: $n },
|
|
2216
|
+
{ id: 35, icon: An },
|
|
2217
|
+
{ id: 36, icon: Fn }
|
|
1973
2218
|
],
|
|
1974
2219
|
[
|
|
1975
|
-
{ id: 64, icon:
|
|
1976
|
-
{ id: 65, icon:
|
|
1977
|
-
{ id: 66, icon:
|
|
1978
|
-
{ id: 67, icon:
|
|
1979
|
-
{ id: 68, icon:
|
|
2220
|
+
{ id: 64, icon: Hn },
|
|
2221
|
+
{ id: 65, icon: Xn },
|
|
2222
|
+
{ id: 66, icon: Un },
|
|
2223
|
+
{ id: 67, icon: Qn },
|
|
2224
|
+
{ id: 68, icon: eo }
|
|
1980
2225
|
],
|
|
1981
2226
|
[
|
|
1982
|
-
{ id: 96, icon:
|
|
1983
|
-
{ id: 97, icon:
|
|
1984
|
-
{ id: 98, icon:
|
|
1985
|
-
{ id: 99, icon:
|
|
1986
|
-
{ id: 100, icon:
|
|
2227
|
+
{ id: 96, icon: oo },
|
|
2228
|
+
{ id: 97, icon: io },
|
|
2229
|
+
{ id: 98, icon: co },
|
|
2230
|
+
{ id: 99, icon: po },
|
|
2231
|
+
{ id: 100, icon: go }
|
|
1987
2232
|
]
|
|
1988
2233
|
], a = () => {
|
|
1989
2234
|
n.pdmode && (o.value = n.pdmode);
|
|
1990
2235
|
};
|
|
1991
2236
|
a();
|
|
1992
|
-
const c = (
|
|
1993
|
-
o.value = l[
|
|
1994
|
-
},
|
|
1995
|
-
|
|
1996
|
-
},
|
|
2237
|
+
const c = (x, h) => l[x][h].id == o.value ? "primary" : null, r = (x, h) => {
|
|
2238
|
+
o.value = l[x][h].id;
|
|
2239
|
+
}, g = () => {
|
|
2240
|
+
P.instance.curDocument.database.pdmode = o.value;
|
|
2241
|
+
}, _ = () => {
|
|
1997
2242
|
a();
|
|
1998
2243
|
};
|
|
1999
|
-
return (
|
|
2000
|
-
const
|
|
2001
|
-
return
|
|
2002
|
-
title:
|
|
2244
|
+
return (x, h) => {
|
|
2245
|
+
const u = L("el-button"), v = L("el-col"), b = L("el-row");
|
|
2246
|
+
return s(), B(Ne, {
|
|
2247
|
+
title: m(e)("dialog.pointStyleDlg.title"),
|
|
2003
2248
|
width: 400,
|
|
2004
2249
|
modelValue: i.value,
|
|
2005
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2250
|
+
"onUpdate:modelValue": h[0] || (h[0] = (S) => i.value = S),
|
|
2006
2251
|
name: "PointStyleDlg",
|
|
2007
|
-
onOk:
|
|
2008
|
-
onCancel:
|
|
2252
|
+
onOk: g,
|
|
2253
|
+
onCancel: _
|
|
2009
2254
|
}, {
|
|
2010
2255
|
default: f(() => [
|
|
2011
|
-
(
|
|
2012
|
-
key:
|
|
2256
|
+
(s(), w(G, null, W(l, (S, $) => p(b, {
|
|
2257
|
+
key: $,
|
|
2013
2258
|
style: { "margin-top": "10px" },
|
|
2014
2259
|
gutter: 6,
|
|
2015
2260
|
justify: "space-between"
|
|
2016
2261
|
}, {
|
|
2017
2262
|
default: f(() => [
|
|
2018
|
-
(
|
|
2019
|
-
key:
|
|
2263
|
+
(s(!0), w(G, null, W(S, (C, D) => (s(), B(v, {
|
|
2264
|
+
key: D,
|
|
2020
2265
|
span: 4
|
|
2021
2266
|
}, {
|
|
2022
2267
|
default: f(() => [
|
|
2023
|
-
|
|
2024
|
-
icon:
|
|
2025
|
-
type: c(
|
|
2026
|
-
onClick: (
|
|
2268
|
+
p(u, {
|
|
2269
|
+
icon: C.icon,
|
|
2270
|
+
type: c($, D),
|
|
2271
|
+
onClick: (k) => r($, D),
|
|
2027
2272
|
style: { "font-size": "25px" }
|
|
2028
2273
|
}, null, 8, ["icon", "type", "onClick"])
|
|
2029
2274
|
]),
|
|
@@ -2042,79 +2287,79 @@ const Uo = /* @__PURE__ */ z({
|
|
|
2042
2287
|
try {
|
|
2043
2288
|
if (typeof document < "u") {
|
|
2044
2289
|
var t = document.createElement("style");
|
|
2045
|
-
t.appendChild(document.createTextNode(".ml-dropdown-icon[data-v-3fc33b5d],.ml-dropdown-icon[data-v-3fc33b5d]:hover{outline:none;border:none}.ml-status-bar[data-v-d6a59cf0]{position:fixed;bottom:0;left:0;right:0;height:30px;display:flex;justify-content:space-between;align-items:center;background-color:var(--el-fill-color);box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-status-bar-left[data-v-d6a59cf0],.ml-status-bar-right[data-v-d6a59cf0]{display:flex;align-items:center}.ml-status-bar-left[data-v-d6a59cf0]>*{margin-right:10px}.ml-status-bar-right[data-v-d6a59cf0]>*{margin-left:10px}.ml-toggle-button[data-v-b676e93b]{border:none;padding:0;cursor:pointer;width:var(--0547f26d);height:var(--0547f26d)}.ml-vertical-toolbar-button-group[data-v-
|
|
2290
|
+
t.appendChild(document.createTextNode(".ml-dropdown-icon[data-v-3fc33b5d],.ml-dropdown-icon[data-v-3fc33b5d]:hover{outline:none;border:none}.ml-status-bar[data-v-d6a59cf0]{position:fixed;bottom:0;left:0;right:0;height:30px;display:flex;justify-content:space-between;align-items:center;background-color:var(--el-fill-color);box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-status-bar-left[data-v-d6a59cf0],.ml-status-bar-right[data-v-d6a59cf0]{display:flex;align-items:center}.ml-status-bar-left[data-v-d6a59cf0]>*{margin-right:10px}.ml-status-bar-right[data-v-d6a59cf0]>*{margin-left:10px}.ml-toggle-button[data-v-b676e93b]{border:none;padding:0;cursor:pointer;width:var(--0547f26d);height:var(--0547f26d)}.ml-vertical-toolbar-button-group[data-v-c6504e33]{display:flex;flex-direction:column;background-color:var(--el-fill-color)}.ml-horizontal-toolbar-button-group[data-v-c6504e33]{display:flex;flex-direction:row;background-color:var(--el-fill-color)}.ml-toolbar-button[data-v-c6504e33]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px}.ml-toolbar-button-text[data-v-c6504e33]{margin-left:0;margin-top:5px}.ml-tool-palette-dialog[data-v-43098ce9]{cursor:default;width:300px;min-width:var(--collapsed-width);position:fixed;box-sizing:border-box;border:1px solid var(--el-border-color)}.ml-tool-palette-dialog-icon[data-v-43098ce9]{border-bottom:1px solid var(--el-border-color);cursor:default}.ml-tool-palette-dialog-icon[data-v-43098ce9]:hover{color:var(--el-color-primary)}.ml-tool-palette-dialog-layout[data-v-43098ce9]{display:flex;height:100%}.ml-tool-palette-title-bar[data-v-43098ce9]{width:var(--collapsed-width);display:flex;justify-content:left;align-items:center;cursor:move;writing-mode:vertical-rl;text-align:center;background-color:var(--el-fill-color)}.ml-tool-palette-title[data-v-43098ce9]{pointer-events:none;margin-top:10px;margin-bottom:10px;font-size:small;-webkit-user-select:none;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ml-tool-palette-content[data-v-43098ce9]{-webkit-user-select:none;user-select:none;flex-grow:1;display:flex;flex-direction:column;background-color:var(--el-fill-color);overflow:hidden}.ml-tool-palette-tabs[data-v-43098ce9]{display:flex;flex-direction:column;height:100%;flex:1}.ml-tool-palette-tabs[data-v-43098ce9] .el-tabs{display:flex;flex-direction:column;height:100%}.ml-tool-palette-tabs[data-v-43098ce9] .el-tabs__header{margin:0;border-bottom:none;order:1;flex-shrink:0;position:relative}.ml-tool-palette-tabs[data-v-43098ce9] .el-tabs__content{flex:1;overflow:auto;padding:0;order:2;min-height:0;position:relative}.ml-tool-palette-tabs[data-v-43098ce9] .el-tab-pane{height:100%;overflow:auto}.ml-tool-palette-default-content[data-v-43098ce9]{flex:1;overflow:auto;display:flex;flex-direction:column}.ml-tool-palette-dialog-layout.left .ml-tool-palette-title-bar[data-v-43098ce9]{order:1}.ml-tool-palette-dialog-layout.left .ml-tool-palette-content[data-v-43098ce9],.ml-tool-palette-dialog-layout.right .ml-tool-palette-title-bar[data-v-43098ce9]{order:2}.ml-tool-palette-dialog-layout.right .ml-tool-palette-content[data-v-43098ce9]{order:1}")), document.head.appendChild(t);
|
|
2046
2291
|
}
|
|
2047
2292
|
} catch (e) {
|
|
2048
2293
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
2049
2294
|
}
|
|
2050
2295
|
})();
|
|
2051
|
-
const
|
|
2296
|
+
const al = {
|
|
2052
2297
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2053
2298
|
width: "1em",
|
|
2054
2299
|
height: "1em",
|
|
2055
2300
|
viewBox: "0 0 1024 1024"
|
|
2056
|
-
},
|
|
2301
|
+
}, il = /* @__PURE__ */ d("path", {
|
|
2057
2302
|
fill: "currentColor",
|
|
2058
2303
|
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"
|
|
2059
|
-
}, null, -1),
|
|
2060
|
-
|
|
2304
|
+
}, null, -1), sl = [
|
|
2305
|
+
il
|
|
2061
2306
|
];
|
|
2062
|
-
function
|
|
2063
|
-
return
|
|
2307
|
+
function rl(t, e) {
|
|
2308
|
+
return s(), w("svg", al, [...sl]);
|
|
2064
2309
|
}
|
|
2065
|
-
const
|
|
2310
|
+
const ze = { render: rl }, cl = {
|
|
2066
2311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2067
2312
|
width: "1em",
|
|
2068
2313
|
height: "1em",
|
|
2069
2314
|
viewBox: "0 0 1024 1024"
|
|
2070
|
-
},
|
|
2315
|
+
}, ul = /* @__PURE__ */ d("path", {
|
|
2071
2316
|
fill: "currentColor",
|
|
2072
2317
|
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"
|
|
2073
|
-
}, null, -1),
|
|
2074
|
-
|
|
2318
|
+
}, null, -1), dl = [
|
|
2319
|
+
ul
|
|
2075
2320
|
];
|
|
2076
|
-
function
|
|
2077
|
-
return
|
|
2321
|
+
function ml(t, e) {
|
|
2322
|
+
return s(), w("svg", cl, [...dl]);
|
|
2078
2323
|
}
|
|
2079
|
-
const
|
|
2324
|
+
const Be = { render: ml }, pl = /* @__PURE__ */ E({
|
|
2080
2325
|
__name: "MlCollapse",
|
|
2081
|
-
props: /* @__PURE__ */
|
|
2326
|
+
props: /* @__PURE__ */ le({
|
|
2082
2327
|
size: { default: 18 },
|
|
2083
2328
|
reverse: { type: Boolean, default: !1 }
|
|
2084
2329
|
}, {
|
|
2085
2330
|
modelValue: { default: !0 },
|
|
2086
2331
|
modelModifiers: {}
|
|
2087
2332
|
}),
|
|
2088
|
-
emits: /* @__PURE__ */
|
|
2333
|
+
emits: /* @__PURE__ */ le(["change"], ["update:modelValue"]),
|
|
2089
2334
|
setup(t, { emit: e }) {
|
|
2090
|
-
const n = t, i =
|
|
2335
|
+
const n = t, i = pe(t, "modelValue"), o = e, l = T(() => n.reverse ? i.value ? ze : Be : i.value ? Be : ze), a = T(() => `${n.size}px`), c = () => {
|
|
2091
2336
|
o("change", i.value), i.value = !i.value;
|
|
2092
2337
|
};
|
|
2093
|
-
return (
|
|
2094
|
-
const
|
|
2095
|
-
return
|
|
2338
|
+
return (r, g) => {
|
|
2339
|
+
const _ = fe;
|
|
2340
|
+
return s(), B(_, {
|
|
2096
2341
|
size: a.value,
|
|
2097
2342
|
onClick: c
|
|
2098
2343
|
}, {
|
|
2099
2344
|
default: f(() => [
|
|
2100
|
-
(
|
|
2345
|
+
(s(), B(re(l.value)))
|
|
2101
2346
|
]),
|
|
2102
2347
|
_: 1
|
|
2103
2348
|
}, 8, ["size"]);
|
|
2104
2349
|
};
|
|
2105
2350
|
}
|
|
2106
|
-
}),
|
|
2351
|
+
}), vl = (t) => ($e("data-v-3fc33b5d"), t = t(), Ve(), t), fl = /* @__PURE__ */ vl(() => /* @__PURE__ */ d("svg", {
|
|
2107
2352
|
preserveAspectRatio: "xMidYMid meet",
|
|
2108
2353
|
viewBox: "0 0 24 24",
|
|
2109
2354
|
width: "1.2em",
|
|
2110
2355
|
height: "1.2em",
|
|
2111
2356
|
"data-v-63d067da": ""
|
|
2112
2357
|
}, [
|
|
2113
|
-
/* @__PURE__ */
|
|
2358
|
+
/* @__PURE__ */ d("path", {
|
|
2114
2359
|
fill: "currentColor",
|
|
2115
2360
|
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"
|
|
2116
2361
|
})
|
|
2117
|
-
], -1)),
|
|
2362
|
+
], -1)), gl = /* @__PURE__ */ E({
|
|
2118
2363
|
__name: "MlDropdown",
|
|
2119
2364
|
props: {
|
|
2120
2365
|
icon: {},
|
|
@@ -2125,21 +2370,21 @@ const ze = { render: al }, il = /* @__PURE__ */ z({
|
|
|
2125
2370
|
click: null
|
|
2126
2371
|
},
|
|
2127
2372
|
setup(t, { emit: e }) {
|
|
2128
|
-
const n = t, i = e, o =
|
|
2373
|
+
const n = t, i = e, o = T(() => n.items.filter((a) => a.name !== n.current)), l = (a) => {
|
|
2129
2374
|
i("click", a);
|
|
2130
2375
|
};
|
|
2131
2376
|
return (a, c) => {
|
|
2132
|
-
const
|
|
2133
|
-
return
|
|
2377
|
+
const r = fe, g = ft, _ = vt, x = pt;
|
|
2378
|
+
return s(), B(x, { onCommand: l }, {
|
|
2134
2379
|
dropdown: f(() => [
|
|
2135
|
-
|
|
2380
|
+
p(_, null, {
|
|
2136
2381
|
default: f(() => [
|
|
2137
|
-
(
|
|
2382
|
+
(s(!0), w(G, null, W(o.value, (h) => (s(), B(g, {
|
|
2138
2383
|
key: h.text,
|
|
2139
2384
|
command: h.name
|
|
2140
2385
|
}, {
|
|
2141
2386
|
default: f(() => [
|
|
2142
|
-
|
|
2387
|
+
R(V(h.text), 1)
|
|
2143
2388
|
]),
|
|
2144
2389
|
_: 2
|
|
2145
2390
|
}, 1032, ["command"]))), 128))
|
|
@@ -2148,12 +2393,12 @@ const ze = { render: al }, il = /* @__PURE__ */ z({
|
|
|
2148
2393
|
})
|
|
2149
2394
|
]),
|
|
2150
2395
|
default: f(() => [
|
|
2151
|
-
|
|
2396
|
+
p(r, {
|
|
2152
2397
|
size: "30",
|
|
2153
2398
|
class: "ml-dropdown-icon"
|
|
2154
2399
|
}, {
|
|
2155
2400
|
default: f(() => [
|
|
2156
|
-
|
|
2401
|
+
fl
|
|
2157
2402
|
]),
|
|
2158
2403
|
_: 1
|
|
2159
2404
|
})
|
|
@@ -2162,12 +2407,12 @@ const ze = { render: al }, il = /* @__PURE__ */ z({
|
|
|
2162
2407
|
});
|
|
2163
2408
|
};
|
|
2164
2409
|
}
|
|
2165
|
-
}),
|
|
2410
|
+
}), _e = (t, e) => {
|
|
2166
2411
|
const n = t.__vccOpts || t;
|
|
2167
2412
|
for (const [i, o] of e)
|
|
2168
2413
|
n[i] = o;
|
|
2169
2414
|
return n;
|
|
2170
|
-
},
|
|
2415
|
+
}, hl = /* @__PURE__ */ _e(gl, [["__scopeId", "data-v-3fc33b5d"]]), _l = '<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>', wl = /* @__PURE__ */ E({
|
|
2171
2416
|
__name: "MlLanguage",
|
|
2172
2417
|
props: {
|
|
2173
2418
|
languages: {},
|
|
@@ -2180,28 +2425,28 @@ const ze = { render: al }, il = /* @__PURE__ */ z({
|
|
|
2180
2425
|
const n = t, i = e, o = (l) => {
|
|
2181
2426
|
i("click", l);
|
|
2182
2427
|
};
|
|
2183
|
-
return (l, a) => (
|
|
2184
|
-
icon:
|
|
2428
|
+
return (l, a) => (s(), B(hl, {
|
|
2429
|
+
icon: _l,
|
|
2185
2430
|
items: n.languages,
|
|
2186
2431
|
current: n.current,
|
|
2187
2432
|
onClick: o
|
|
2188
2433
|
}, null, 8, ["items", "current"]));
|
|
2189
2434
|
}
|
|
2190
|
-
}),
|
|
2191
|
-
function
|
|
2192
|
-
return
|
|
2193
|
-
|
|
2194
|
-
|
|
2435
|
+
}), yl = {}, bl = { class: "ml-status-bar" }, xl = { class: "ml-status-bar-left" }, kl = { class: "ml-status-bar-right" };
|
|
2436
|
+
function Ml(t, e) {
|
|
2437
|
+
return s(), w("div", bl, [
|
|
2438
|
+
d("div", xl, [
|
|
2439
|
+
ie(t.$slots, "left", {}, void 0, !0)
|
|
2195
2440
|
]),
|
|
2196
|
-
|
|
2197
|
-
|
|
2441
|
+
d("div", kl, [
|
|
2442
|
+
ie(t.$slots, "right", {}, void 0, !0)
|
|
2198
2443
|
])
|
|
2199
2444
|
]);
|
|
2200
2445
|
}
|
|
2201
|
-
const
|
|
2446
|
+
const Cl = /* @__PURE__ */ _e(yl, [["render", Ml], ["__scopeId", "data-v-d6a59cf0"]]), Sl = {
|
|
2202
2447
|
key: 0,
|
|
2203
2448
|
class: "ml-toolbar-button-text"
|
|
2204
|
-
},
|
|
2449
|
+
}, Ll = /* @__PURE__ */ E({
|
|
2205
2450
|
__name: "MlToolBar",
|
|
2206
2451
|
props: {
|
|
2207
2452
|
items: {},
|
|
@@ -2212,7 +2457,7 @@ const _l = /* @__PURE__ */ ve(pl, [["render", hl], ["__scopeId", "data-v-d6a59cf
|
|
|
2212
2457
|
click: null
|
|
2213
2458
|
},
|
|
2214
2459
|
setup(t, { emit: e }) {
|
|
2215
|
-
const n = t, i = e, o =
|
|
2460
|
+
const n = t, i = e, o = T(() => n.direction === "vertical" ? "ml-vertical-toolbar-button-group" : "ml-horizontal-toolbar-button-group"), l = T(() => n.size === "small" ? 20 : 30), a = T(() => {
|
|
2216
2461
|
switch (n.size) {
|
|
2217
2462
|
case "small":
|
|
2218
2463
|
return 30;
|
|
@@ -2220,36 +2465,36 @@ const _l = /* @__PURE__ */ ve(pl, [["render", hl], ["__scopeId", "data-v-d6a59cf
|
|
|
2220
2465
|
return 50;
|
|
2221
2466
|
}
|
|
2222
2467
|
return 70;
|
|
2223
|
-
}), c = (
|
|
2224
|
-
i("click",
|
|
2468
|
+
}), c = (_) => _.description ? _.description : _.text, r = T(() => n.size === "large"), g = (_) => {
|
|
2469
|
+
i("click", _);
|
|
2225
2470
|
};
|
|
2226
|
-
return (
|
|
2227
|
-
const h =
|
|
2228
|
-
return
|
|
2229
|
-
class:
|
|
2471
|
+
return (_, x) => {
|
|
2472
|
+
const h = fe, u = _t, v = ht, b = gt;
|
|
2473
|
+
return s(), B(b, {
|
|
2474
|
+
class: ve(o.value)
|
|
2230
2475
|
}, {
|
|
2231
2476
|
default: f(() => [
|
|
2232
|
-
(
|
|
2233
|
-
key:
|
|
2234
|
-
content: c(
|
|
2477
|
+
(s(!0), w(G, null, W(_.items, (S, $) => (s(), B(v, {
|
|
2478
|
+
key: S.text,
|
|
2479
|
+
content: c(S),
|
|
2235
2480
|
"hide-after": 0
|
|
2236
2481
|
}, {
|
|
2237
2482
|
default: f(() => [
|
|
2238
|
-
(
|
|
2483
|
+
(s(), B(u, {
|
|
2239
2484
|
class: "ml-toolbar-button",
|
|
2240
|
-
style:
|
|
2241
|
-
key:
|
|
2242
|
-
onClick: (
|
|
2485
|
+
style: me({ width: a.value + "px", height: a.value + "px" }),
|
|
2486
|
+
key: $,
|
|
2487
|
+
onClick: (C) => g(S.command)
|
|
2243
2488
|
}, {
|
|
2244
2489
|
default: f(() => [
|
|
2245
|
-
|
|
2246
|
-
|
|
2490
|
+
d("div", null, [
|
|
2491
|
+
p(h, { size: l.value }, {
|
|
2247
2492
|
default: f(() => [
|
|
2248
|
-
(
|
|
2493
|
+
(s(), B(re(S.icon)))
|
|
2249
2494
|
]),
|
|
2250
2495
|
_: 2
|
|
2251
2496
|
}, 1032, ["size"]),
|
|
2252
|
-
|
|
2497
|
+
r.value ? (s(), w("div", Sl, V(S.text), 1)) : O("", !0)
|
|
2253
2498
|
])
|
|
2254
2499
|
]),
|
|
2255
2500
|
_: 2
|
|
@@ -2262,12 +2507,12 @@ const _l = /* @__PURE__ */ ve(pl, [["render", hl], ["__scopeId", "data-v-d6a59cf
|
|
|
2262
2507
|
}, 8, ["class"]);
|
|
2263
2508
|
};
|
|
2264
2509
|
}
|
|
2265
|
-
}),
|
|
2266
|
-
function
|
|
2267
|
-
const i =
|
|
2510
|
+
}), Tl = /* @__PURE__ */ _e(Ll, [["__scopeId", "data-v-c6504e33"]]), De = 20;
|
|
2511
|
+
function zl(t, e, n) {
|
|
2512
|
+
const i = M(!1), o = (r) => {
|
|
2268
2513
|
if (n.value && t.value) {
|
|
2269
|
-
const
|
|
2270
|
-
i.value = !
|
|
2514
|
+
const g = t.value.getBoundingClientRect(), _ = r.clientX < g.left || r.clientX > g.right || r.clientY < g.top || r.clientY > g.bottom;
|
|
2515
|
+
i.value = !_;
|
|
2271
2516
|
}
|
|
2272
2517
|
}, l = () => {
|
|
2273
2518
|
n.value && (i.value = !0);
|
|
@@ -2276,89 +2521,89 @@ function xl(t, e, n) {
|
|
|
2276
2521
|
}, c = () => {
|
|
2277
2522
|
e.value && e.value.removeEventListener("mousemove", l), t.value && t.value.removeEventListener("mousemove", l);
|
|
2278
2523
|
};
|
|
2279
|
-
return
|
|
2524
|
+
return Z(() => {
|
|
2280
2525
|
window.addEventListener("mousemove", o);
|
|
2281
2526
|
}), ne(() => {
|
|
2282
2527
|
window.removeEventListener("mousemove", o);
|
|
2283
|
-
}),
|
|
2284
|
-
|
|
2285
|
-
}),
|
|
2286
|
-
|
|
2528
|
+
}), I(n, (r) => {
|
|
2529
|
+
r && (i.value = !1);
|
|
2530
|
+
}), I(t, (r) => {
|
|
2531
|
+
r ? a() : c();
|
|
2287
2532
|
}), { autoOpened: i };
|
|
2288
2533
|
}
|
|
2289
|
-
function
|
|
2290
|
-
const i =
|
|
2534
|
+
function Bl(t, e, n) {
|
|
2535
|
+
const i = M(!1), o = M(null), l = M(null), a = { x: 0, y: 0 }, c = T(() => o.value == null || l.value == null ? { x: 0, y: 0 } : {
|
|
2291
2536
|
x: o.value.x - l.value.x,
|
|
2292
2537
|
y: o.value.y - l.value.y
|
|
2293
|
-
}),
|
|
2538
|
+
}), r = () => {
|
|
2294
2539
|
if (t.value) {
|
|
2295
|
-
const
|
|
2540
|
+
const v = t.value.getBoundingClientRect();
|
|
2296
2541
|
l.value = {
|
|
2297
|
-
x:
|
|
2298
|
-
y:
|
|
2542
|
+
x: v.left,
|
|
2543
|
+
y: v.top
|
|
2299
2544
|
}, o.value = {
|
|
2300
|
-
x:
|
|
2301
|
-
y:
|
|
2545
|
+
x: v.left,
|
|
2546
|
+
y: v.top
|
|
2302
2547
|
};
|
|
2303
2548
|
}
|
|
2304
|
-
},
|
|
2305
|
-
t.value && t.value.addEventListener("mousedown",
|
|
2306
|
-
},
|
|
2307
|
-
t.value && t.value.removeEventListener("mousedown",
|
|
2308
|
-
},
|
|
2549
|
+
}, g = () => {
|
|
2550
|
+
t.value && t.value.addEventListener("mousedown", x);
|
|
2551
|
+
}, _ = () => {
|
|
2552
|
+
t.value && t.value.removeEventListener("mousedown", x);
|
|
2553
|
+
}, x = (v) => {
|
|
2309
2554
|
if (t.value != null) {
|
|
2310
2555
|
if (e && e.value) {
|
|
2311
|
-
const
|
|
2312
|
-
if (
|
|
2556
|
+
const b = e.value.getBoundingClientRect();
|
|
2557
|
+
if (v.clientX < b.left || v.clientX > b.right || v.clientY < b.top || v.clientY > b.bottom) return;
|
|
2313
2558
|
}
|
|
2314
|
-
i.value = !0, a.x =
|
|
2559
|
+
i.value = !0, a.x = v.clientX, a.y = v.clientY, r(), document.addEventListener("mousemove", h), document.addEventListener("mouseup", u);
|
|
2315
2560
|
}
|
|
2316
|
-
}, h = (
|
|
2561
|
+
}, h = (v) => {
|
|
2317
2562
|
if (i.value && l.value && o.value) {
|
|
2318
|
-
const
|
|
2563
|
+
const b = window.innerWidth, S = window.innerHeight, $ = t.value, C = $.getBoundingClientRect(), D = C.width, k = C.height, A = l.value.x + (v.clientX - a.x), N = l.value.y + (v.clientY - a.y);
|
|
2319
2564
|
o.value.x = Math.max(
|
|
2320
2565
|
n ? n.value.offset.value.left : 0,
|
|
2321
|
-
|
|
2566
|
+
A
|
|
2322
2567
|
);
|
|
2323
|
-
const
|
|
2568
|
+
const y = b - D;
|
|
2324
2569
|
o.value.x = Math.min(
|
|
2325
|
-
n ?
|
|
2570
|
+
n ? y - n.value.offset.value.right : y,
|
|
2326
2571
|
o.value.x
|
|
2327
2572
|
), o.value.y = Math.max(
|
|
2328
2573
|
n ? n.value.offset.value.top : 0,
|
|
2329
|
-
Math.min(N,
|
|
2574
|
+
Math.min(N, S - k)
|
|
2330
2575
|
);
|
|
2331
|
-
const
|
|
2576
|
+
const z = S - k;
|
|
2332
2577
|
o.value.y = Math.min(
|
|
2333
|
-
n ?
|
|
2578
|
+
n ? z - n.value.offset.value.bottom : z,
|
|
2334
2579
|
o.value.y
|
|
2335
|
-
),
|
|
2580
|
+
), $.style.left = o.value.x + "px", $.style.top = o.value.y + "px";
|
|
2336
2581
|
}
|
|
2337
|
-
},
|
|
2338
|
-
i.value = !1, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup",
|
|
2582
|
+
}, u = () => {
|
|
2583
|
+
i.value = !1, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", u);
|
|
2339
2584
|
};
|
|
2340
|
-
return
|
|
2341
|
-
t.value && (
|
|
2585
|
+
return Z(() => {
|
|
2586
|
+
t.value && (r(), g());
|
|
2342
2587
|
}), ne(() => {
|
|
2343
|
-
t.value && t.value.removeEventListener("mousedown",
|
|
2344
|
-
}),
|
|
2345
|
-
|
|
2588
|
+
t.value && t.value.removeEventListener("mousedown", x);
|
|
2589
|
+
}), I(t, (v) => {
|
|
2590
|
+
v ? (r(), g()) : _();
|
|
2346
2591
|
}), {
|
|
2347
2592
|
isDragging: i,
|
|
2348
2593
|
movement: c,
|
|
2349
2594
|
position: o
|
|
2350
2595
|
};
|
|
2351
2596
|
}
|
|
2352
|
-
function
|
|
2353
|
-
const i =
|
|
2597
|
+
function Dl(t, e, n) {
|
|
2598
|
+
const i = M(!1), o = M("left"), { isDragging: l, movement: a, position: c } = Bl(
|
|
2354
2599
|
t,
|
|
2355
2600
|
e,
|
|
2356
2601
|
n
|
|
2357
2602
|
);
|
|
2358
|
-
return
|
|
2359
|
-
if (
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2603
|
+
return I(a, (r) => {
|
|
2604
|
+
if (r && t.value) {
|
|
2605
|
+
const g = t.value.getBoundingClientRect();
|
|
2606
|
+
g.left <= n.value.offset.value.left ? (o.value = "left", i.value = !0) : window.innerWidth - g.left - g.width <= n.value.offset.value.right ? (o.value = "right", i.value = !0) : i.value = !1;
|
|
2362
2607
|
}
|
|
2363
2608
|
}), {
|
|
2364
2609
|
docked: i,
|
|
@@ -2368,16 +2613,16 @@ function Ml(t, e, n) {
|
|
|
2368
2613
|
position: c
|
|
2369
2614
|
};
|
|
2370
2615
|
}
|
|
2371
|
-
function
|
|
2372
|
-
const o =
|
|
2373
|
-
return
|
|
2374
|
-
o.value =
|
|
2375
|
-
}),
|
|
2376
|
-
l.value =
|
|
2377
|
-
}),
|
|
2378
|
-
a.value =
|
|
2379
|
-
}),
|
|
2380
|
-
c.value =
|
|
2616
|
+
function El(t, e, n, i) {
|
|
2617
|
+
const o = M(null), l = M(null), a = M(null), c = M(null);
|
|
2618
|
+
return I(t, (r, g) => {
|
|
2619
|
+
o.value = g;
|
|
2620
|
+
}), I(e, (r, g) => {
|
|
2621
|
+
l.value = g;
|
|
2622
|
+
}), I(n, (r, g) => {
|
|
2623
|
+
a.value = g;
|
|
2624
|
+
}), I(i, (r, g) => {
|
|
2625
|
+
c.value = g;
|
|
2381
2626
|
}), {
|
|
2382
2627
|
lastLeft: o,
|
|
2383
2628
|
lastTop: l,
|
|
@@ -2385,16 +2630,16 @@ function Cl(t, e, n, i) {
|
|
|
2385
2630
|
lastHeight: c
|
|
2386
2631
|
};
|
|
2387
2632
|
}
|
|
2388
|
-
function
|
|
2389
|
-
const o =
|
|
2390
|
-
return
|
|
2391
|
-
(o.value == null || l.value == null || e.value) && (o.value =
|
|
2392
|
-
}),
|
|
2393
|
-
i.value && n.value && (l.value =
|
|
2633
|
+
function $l(t, e, n, i) {
|
|
2634
|
+
const o = M(t.value.width), l = M(t.value.left), a = T(() => t.value.width), c = T(() => t.value.left), r = T(() => n.value ? n.value.x : null);
|
|
2635
|
+
return I([a, c], ([g, _]) => {
|
|
2636
|
+
(o.value == null || l.value == null || e.value) && (o.value = g, l.value = _);
|
|
2637
|
+
}), I(r, (g) => {
|
|
2638
|
+
i.value && n.value && (l.value = g);
|
|
2394
2639
|
}), { left: l, width: o };
|
|
2395
2640
|
}
|
|
2396
|
-
function
|
|
2397
|
-
const n =
|
|
2641
|
+
function Vl(t, e = M({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
2642
|
+
const n = M({});
|
|
2398
2643
|
let i = !1;
|
|
2399
2644
|
const o = () => {
|
|
2400
2645
|
if (!i && t.value) {
|
|
@@ -2402,62 +2647,62 @@ function Ll(t, e = k({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
2402
2647
|
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;
|
|
2403
2648
|
}
|
|
2404
2649
|
};
|
|
2405
|
-
return
|
|
2650
|
+
return Z(() => {
|
|
2406
2651
|
t.value && o();
|
|
2407
|
-
}),
|
|
2652
|
+
}), I(t, (l) => {
|
|
2408
2653
|
l && o();
|
|
2409
2654
|
}), {
|
|
2410
2655
|
isIntialized: i,
|
|
2411
2656
|
initialRect: n
|
|
2412
2657
|
};
|
|
2413
2658
|
}
|
|
2414
|
-
function
|
|
2415
|
-
const { initialRect: l } =
|
|
2416
|
-
let c = 0,
|
|
2417
|
-
const h = 5,
|
|
2659
|
+
function Pl(t, e = M(!1), n = M(!1), i = M({ left: 0, right: 0, top: 0, bottom: 0 }), o = { width: 20, height: 40 }) {
|
|
2660
|
+
const { initialRect: l } = Vl(t, i), a = M(!1);
|
|
2661
|
+
let c = 0, r = 0, g = 0, _ = 0, x = 0;
|
|
2662
|
+
const h = 5, u = M(null), v = (D) => {
|
|
2418
2663
|
if (!(!t.value || e.value))
|
|
2419
2664
|
if (a.value) {
|
|
2420
|
-
const
|
|
2421
|
-
if (
|
|
2422
|
-
const N =
|
|
2423
|
-
N > o.width && (l.value.width = N, l.value.left = c +
|
|
2665
|
+
const k = D.clientX - _, A = D.clientY - x;
|
|
2666
|
+
if (u.value === "left" || u.value === "left-bottom-corner") {
|
|
2667
|
+
const N = r - k;
|
|
2668
|
+
N > o.width && (l.value.width = N, l.value.left = c + k, t.value.style.left = l.value.left + "px", t.value.style.width = l.value.width + "px");
|
|
2424
2669
|
}
|
|
2425
|
-
if (
|
|
2426
|
-
const N =
|
|
2670
|
+
if (u.value === "right" || u.value === "right-bottom-corner") {
|
|
2671
|
+
const N = r + k;
|
|
2427
2672
|
N > o.width && (l.value.width = N, t.value.style.width = l.value.width + "px");
|
|
2428
2673
|
}
|
|
2429
|
-
if (
|
|
2430
|
-
const N =
|
|
2674
|
+
if (u.value === "bottom" || u.value === "left-bottom-corner" || u.value === "right-bottom-corner") {
|
|
2675
|
+
const N = g + A;
|
|
2431
2676
|
N > o.height && (l.value.height = N, t.value.style.height = l.value.height + "px");
|
|
2432
2677
|
}
|
|
2433
2678
|
} else {
|
|
2434
|
-
const
|
|
2435
|
-
|
|
2679
|
+
const k = t.value.getBoundingClientRect(), A = D.clientX - k.left, N = D.clientY - k.top, y = A <= h, z = A >= k.width - h, F = N >= k.height - h;
|
|
2680
|
+
y && F && n.value ? (t.value.style.cursor = "nesw-resize", u.value = "left-bottom-corner") : z && F && !n.value ? (t.value.style.cursor = "nwse-resize", u.value = "right-bottom-corner") : y && n.value ? (t.value.style.cursor = "ew-resize", u.value = "left") : z && !n.value ? (t.value.style.cursor = "ew-resize", u.value = "right") : F ? (t.value.style.cursor = "ns-resize", u.value = "bottom") : (t.value.style.cursor = "", u.value = null);
|
|
2436
2681
|
}
|
|
2437
|
-
},
|
|
2438
|
-
if (!t.value || !
|
|
2439
|
-
const
|
|
2440
|
-
|
|
2441
|
-
},
|
|
2442
|
-
a.value = !1,
|
|
2443
|
-
},
|
|
2444
|
-
t.value && (t.value.removeEventListener("mousedown",
|
|
2445
|
-
},
|
|
2446
|
-
t.value && (t.value.addEventListener("mousedown",
|
|
2682
|
+
}, b = (D) => {
|
|
2683
|
+
if (!t.value || !u.value) return;
|
|
2684
|
+
const k = t.value.getBoundingClientRect();
|
|
2685
|
+
_ = D.clientX, x = D.clientY, r = k.width, g = k.height, c = k.left, l.value.width = r, l.value.height = g, l.value.left = k.left, l.value.top = k.top, a.value = !0, document.addEventListener("mousemove", v), document.addEventListener("mouseup", S);
|
|
2686
|
+
}, S = () => {
|
|
2687
|
+
a.value = !1, u.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", S);
|
|
2688
|
+
}, $ = () => {
|
|
2689
|
+
t.value && (t.value.removeEventListener("mousedown", b), t.value.removeEventListener("mousemove", v)), document.removeEventListener("mouseup", S);
|
|
2690
|
+
}, C = () => {
|
|
2691
|
+
t.value && (t.value.addEventListener("mousedown", b), t.value.addEventListener("mousemove", v));
|
|
2447
2692
|
};
|
|
2448
|
-
return
|
|
2449
|
-
t.value &&
|
|
2450
|
-
}),
|
|
2451
|
-
|
|
2452
|
-
}),
|
|
2453
|
-
|
|
2693
|
+
return Z(() => {
|
|
2694
|
+
t.value && C();
|
|
2695
|
+
}), Pe(() => {
|
|
2696
|
+
$();
|
|
2697
|
+
}), I(t, (D) => {
|
|
2698
|
+
D ? C() : $();
|
|
2454
2699
|
}), { rect: l, isResizing: a };
|
|
2455
2700
|
}
|
|
2456
|
-
function
|
|
2701
|
+
function Al(t, e, n, i) {
|
|
2457
2702
|
const o = () => {
|
|
2458
2703
|
if (t.value) {
|
|
2459
|
-
const
|
|
2460
|
-
e.value ?
|
|
2704
|
+
const r = t.value;
|
|
2705
|
+
e.value ? r.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : r.style.transition = "width 0.3s ease";
|
|
2461
2706
|
}
|
|
2462
2707
|
}, l = () => {
|
|
2463
2708
|
t.value && (t.value.style.transition = "");
|
|
@@ -2466,230 +2711,526 @@ function Bl(t, e, n, i) {
|
|
|
2466
2711
|
}, c = () => {
|
|
2467
2712
|
t.value && t.value.addEventListener("transitionend", l);
|
|
2468
2713
|
};
|
|
2469
|
-
|
|
2714
|
+
Z(() => {
|
|
2470
2715
|
t.value && t.value.addEventListener("transitionend", l);
|
|
2471
|
-
}),
|
|
2716
|
+
}), Pe(() => {
|
|
2472
2717
|
t.value && t.value.removeEventListener("transitionend", l);
|
|
2473
|
-
}),
|
|
2474
|
-
|
|
2475
|
-
}),
|
|
2718
|
+
}), I(t, (r) => {
|
|
2719
|
+
r ? c() : a();
|
|
2720
|
+
}), I(n, () => {
|
|
2476
2721
|
o();
|
|
2477
|
-
}),
|
|
2722
|
+
}), I(i, () => {
|
|
2478
2723
|
o();
|
|
2479
2724
|
});
|
|
2480
2725
|
}
|
|
2481
|
-
function
|
|
2482
|
-
const o =
|
|
2726
|
+
function Nl(t, e, n, i) {
|
|
2727
|
+
const o = M(window.innerWidth), l = M(window.innerHeight), { docked: a, orientation: c, movement: r, position: g, isDragging: _ } = Dl(
|
|
2483
2728
|
t,
|
|
2484
2729
|
e,
|
|
2485
2730
|
i
|
|
2486
|
-
),
|
|
2731
|
+
), x = T(() => c.value === "right"), { rect: h, isResizing: u } = Pl(
|
|
2487
2732
|
t,
|
|
2488
2733
|
n,
|
|
2489
|
-
|
|
2734
|
+
x,
|
|
2490
2735
|
i.value.offset
|
|
2491
|
-
), { width:
|
|
2736
|
+
), { width: v, left: b } = $l(
|
|
2492
2737
|
h,
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
), { lastTop:
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
), { autoOpened:
|
|
2502
|
-
|
|
2503
|
-
const
|
|
2738
|
+
u,
|
|
2739
|
+
g,
|
|
2740
|
+
_
|
|
2741
|
+
), { lastTop: S, lastHeight: $ } = El(
|
|
2742
|
+
T(() => h.value.left),
|
|
2743
|
+
T(() => h.value.top),
|
|
2744
|
+
T(() => h.value.width),
|
|
2745
|
+
T(() => h.value.height)
|
|
2746
|
+
), { autoOpened: C } = zl(t, e, n);
|
|
2747
|
+
Al(t, x, n, C);
|
|
2748
|
+
const D = (y) => {
|
|
2504
2749
|
if (t.value) {
|
|
2505
|
-
const
|
|
2506
|
-
if (
|
|
2507
|
-
h.value.left =
|
|
2508
|
-
const
|
|
2509
|
-
|
|
2750
|
+
const z = t.value.getBoundingClientRect(), F = z.left + y;
|
|
2751
|
+
if (x.value) {
|
|
2752
|
+
h.value.left = F;
|
|
2753
|
+
const j = window.innerWidth - z.width - z.left;
|
|
2754
|
+
z.left <= 0 && j >= 0 && y < 0 && (h.value.left = Math.max(0, F)), window.innerWidth - z.width <= 0 && (h.value.left = window.innerWidth - z.width);
|
|
2510
2755
|
} else
|
|
2511
|
-
|
|
2756
|
+
z.left + z.width >= window.innerWidth && y < 0 && (h.value.left = Math.max(0, F));
|
|
2512
2757
|
}
|
|
2513
|
-
},
|
|
2514
|
-
const
|
|
2515
|
-
o.value = window.innerWidth, l.value = window.innerHeight,
|
|
2758
|
+
}, k = () => {
|
|
2759
|
+
const y = window.innerWidth - o.value;
|
|
2760
|
+
o.value = window.innerWidth, l.value = window.innerHeight, D(y);
|
|
2516
2761
|
};
|
|
2517
|
-
|
|
2518
|
-
window.addEventListener("resize",
|
|
2762
|
+
Z(() => {
|
|
2763
|
+
window.addEventListener("resize", k);
|
|
2519
2764
|
}), ne(() => {
|
|
2520
|
-
window.removeEventListener("resize",
|
|
2765
|
+
window.removeEventListener("resize", k);
|
|
2521
2766
|
});
|
|
2522
|
-
const
|
|
2523
|
-
|
|
2767
|
+
const A = (y) => {
|
|
2768
|
+
y ? (h.value.width = De, x.value && b.value && v.value && (h.value.left = b.value + v.value - De)) : (h.value.width = v.value, x.value && b.value && v.value && (h.value.left = b.value));
|
|
2524
2769
|
}, N = () => {
|
|
2525
|
-
a.value ? (h.value.top = i.value.offset.value.top, h.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (h.value.top =
|
|
2770
|
+
a.value ? (h.value.top = i.value.offset.value.top, h.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (h.value.top = S.value, h.value.height = $.value);
|
|
2526
2771
|
};
|
|
2527
|
-
return
|
|
2772
|
+
return I(a, () => {
|
|
2528
2773
|
N();
|
|
2529
|
-
}),
|
|
2530
|
-
|
|
2531
|
-
}),
|
|
2532
|
-
n.value && !
|
|
2533
|
-
}),
|
|
2534
|
-
if (
|
|
2535
|
-
const
|
|
2536
|
-
h.value.left =
|
|
2774
|
+
}), I(n, (y) => {
|
|
2775
|
+
A(y);
|
|
2776
|
+
}), I(C, (y) => {
|
|
2777
|
+
n.value && !_.value && A(!y);
|
|
2778
|
+
}), I(r, (y) => {
|
|
2779
|
+
if (y && t.value) {
|
|
2780
|
+
const z = t.value.getBoundingClientRect();
|
|
2781
|
+
h.value.left = z.left, h.value.top = z.top;
|
|
2537
2782
|
}
|
|
2538
|
-
}), { rect: h, orientation: c, reversed:
|
|
2783
|
+
}), { rect: h, orientation: c, reversed: x };
|
|
2539
2784
|
}
|
|
2540
|
-
const
|
|
2785
|
+
const Il = (t) => ($e("data-v-43098ce9"), t = t(), Ve(), t), Fl = /* @__PURE__ */ Il(() => /* @__PURE__ */ d("svg", {
|
|
2541
2786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2542
2787
|
width: "1em",
|
|
2543
2788
|
height: "1em",
|
|
2544
2789
|
viewBox: "0 0 1024 1024"
|
|
2545
2790
|
}, [
|
|
2546
|
-
/* @__PURE__ */
|
|
2791
|
+
/* @__PURE__ */ d("path", {
|
|
2547
2792
|
fill: "currentColor",
|
|
2548
2793
|
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"
|
|
2549
2794
|
})
|
|
2550
|
-
], -1)),
|
|
2795
|
+
], -1)), Rl = { class: "ml-tool-palette-title" }, Ol = { class: "ml-tool-palette-content" }, Hl = {
|
|
2796
|
+
key: 1,
|
|
2797
|
+
class: "ml-tool-palette-default-content"
|
|
2798
|
+
}, Yl = /* @__PURE__ */ E({
|
|
2551
2799
|
__name: "MlToolPalette",
|
|
2552
|
-
props: /* @__PURE__ */
|
|
2800
|
+
props: /* @__PURE__ */ le({
|
|
2553
2801
|
title: { default: "" },
|
|
2802
|
+
tabs: { default: void 0 },
|
|
2554
2803
|
leftOffset: { default: 0 },
|
|
2555
2804
|
rightOffset: { default: 0 },
|
|
2556
2805
|
topOffset: { default: 0 },
|
|
2557
2806
|
bottomOffset: { default: 0 }
|
|
2558
2807
|
}, {
|
|
2559
2808
|
modelValue: { default: !0 },
|
|
2560
|
-
modelModifiers: {}
|
|
2809
|
+
modelModifiers: {},
|
|
2810
|
+
activeTab: { default: "" },
|
|
2811
|
+
activeTabModifiers: {}
|
|
2561
2812
|
}),
|
|
2562
|
-
emits: /* @__PURE__ */
|
|
2813
|
+
emits: /* @__PURE__ */ le(["close", "tab-change", "tab-close"], ["update:modelValue", "update:activeTab"]),
|
|
2563
2814
|
setup(t, { emit: e }) {
|
|
2564
|
-
const n = t, i =
|
|
2565
|
-
|
|
2815
|
+
const n = t, i = pe(t, "modelValue"), o = pe(t, "activeTab"), l = e, a = T(() => n.tabs && n.tabs.length > 0);
|
|
2816
|
+
Z(() => {
|
|
2817
|
+
a.value && !o.value && n.tabs && n.tabs.length > 0 && (o.value = n.tabs[0].name);
|
|
2818
|
+
}), I(() => n.tabs, (k) => {
|
|
2819
|
+
k && k.length > 0 && !o.value && (o.value = k[0].name);
|
|
2820
|
+
}, { immediate: !0 });
|
|
2821
|
+
const c = M(!1), r = M(null), g = M(null), _ = T(() => ({
|
|
2822
|
+
offset: M({
|
|
2566
2823
|
left: n.leftOffset,
|
|
2567
2824
|
right: n.rightOffset,
|
|
2568
2825
|
top: n.topOffset,
|
|
2569
2826
|
bottom: n.bottomOffset
|
|
2570
2827
|
})
|
|
2571
2828
|
})), {
|
|
2572
|
-
rect:
|
|
2573
|
-
orientation:
|
|
2574
|
-
reversed:
|
|
2575
|
-
} =
|
|
2576
|
-
left: `${
|
|
2577
|
-
top: `${
|
|
2578
|
-
width: `${
|
|
2579
|
-
height: `${
|
|
2580
|
-
})),
|
|
2829
|
+
rect: x,
|
|
2830
|
+
orientation: h,
|
|
2831
|
+
reversed: u
|
|
2832
|
+
} = Nl(g, r, c, _), v = T(() => ({
|
|
2833
|
+
left: `${x.value.left}px`,
|
|
2834
|
+
top: `${x.value.top}px`,
|
|
2835
|
+
width: `${x.value.width}px`,
|
|
2836
|
+
height: `${x.value.height}px`
|
|
2837
|
+
})), b = T(() => u.value ? {
|
|
2581
2838
|
borderLeft: "1px solid var(--el-border-color)",
|
|
2582
2839
|
borderRight: null
|
|
2583
2840
|
} : {
|
|
2584
2841
|
borderLeft: null,
|
|
2585
2842
|
borderRight: "1px solid var(--el-border-color)"
|
|
2586
|
-
}),
|
|
2843
|
+
}), S = T(() => {
|
|
2844
|
+
if (a.value && o.value && n.tabs) {
|
|
2845
|
+
const k = n.tabs.find((A) => A.name === o.value);
|
|
2846
|
+
if (k && k.title)
|
|
2847
|
+
return k.title;
|
|
2848
|
+
}
|
|
2849
|
+
return n.title;
|
|
2850
|
+
}), $ = () => {
|
|
2587
2851
|
i.value = !1;
|
|
2588
|
-
const
|
|
2589
|
-
|
|
2590
|
-
x:
|
|
2591
|
-
y:
|
|
2852
|
+
const k = g.value;
|
|
2853
|
+
l("close", {
|
|
2854
|
+
x: k ? k.clientLeft : 0,
|
|
2855
|
+
y: k ? k.clientTop : 0
|
|
2592
2856
|
});
|
|
2857
|
+
}, C = (k) => {
|
|
2858
|
+
l("tab-change", k);
|
|
2859
|
+
}, D = (k) => {
|
|
2860
|
+
if (l("tab-close", k), o.value === k && n.tabs) {
|
|
2861
|
+
const A = n.tabs.findIndex((N) => N.name === k);
|
|
2862
|
+
if (A >= 0) {
|
|
2863
|
+
const N = n.tabs[A + 1] || n.tabs[A - 1];
|
|
2864
|
+
N && (o.value = N.name);
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2593
2867
|
};
|
|
2594
|
-
return (
|
|
2595
|
-
const
|
|
2596
|
-
return i.value ? (
|
|
2868
|
+
return (k, A) => {
|
|
2869
|
+
const N = fe, y = mt, z = dt;
|
|
2870
|
+
return i.value ? (s(), w("div", {
|
|
2597
2871
|
key: 0,
|
|
2598
2872
|
ref_key: "toolPaletteElement",
|
|
2599
|
-
ref:
|
|
2600
|
-
style:
|
|
2873
|
+
ref: g,
|
|
2874
|
+
style: me([v.value]),
|
|
2601
2875
|
class: "ml-tool-palette-dialog"
|
|
2602
2876
|
}, [
|
|
2603
|
-
|
|
2604
|
-
class:
|
|
2877
|
+
d("div", {
|
|
2878
|
+
class: ve(["ml-tool-palette-dialog-layout", m(h)])
|
|
2605
2879
|
}, [
|
|
2606
|
-
|
|
2880
|
+
d("div", {
|
|
2607
2881
|
ref_key: "titleBarElement",
|
|
2608
|
-
ref:
|
|
2882
|
+
ref: r,
|
|
2609
2883
|
class: "ml-tool-palette-title-bar",
|
|
2610
|
-
style:
|
|
2884
|
+
style: me(b.value)
|
|
2611
2885
|
}, [
|
|
2612
|
-
|
|
2886
|
+
p(N, {
|
|
2613
2887
|
size: 18,
|
|
2614
2888
|
class: "ml-tool-palette-dialog-icon",
|
|
2615
|
-
onClick:
|
|
2889
|
+
onClick: $
|
|
2616
2890
|
}, {
|
|
2617
2891
|
default: f(() => [
|
|
2618
|
-
|
|
2892
|
+
Fl
|
|
2619
2893
|
]),
|
|
2620
2894
|
_: 1
|
|
2621
2895
|
}),
|
|
2622
|
-
|
|
2896
|
+
p(pl, {
|
|
2623
2897
|
class: "ml-tool-palette-dialog-icon",
|
|
2624
|
-
modelValue:
|
|
2625
|
-
"onUpdate:modelValue":
|
|
2626
|
-
reverse:
|
|
2898
|
+
modelValue: c.value,
|
|
2899
|
+
"onUpdate:modelValue": A[0] || (A[0] = (F) => c.value = F),
|
|
2900
|
+
reverse: m(u)
|
|
2627
2901
|
}, null, 8, ["modelValue", "reverse"]),
|
|
2628
|
-
|
|
2902
|
+
d("span", Rl, V(S.value), 1)
|
|
2629
2903
|
], 4),
|
|
2630
|
-
|
|
2631
|
-
|
|
2904
|
+
d("div", Ol, [
|
|
2905
|
+
a.value ? (s(), B(z, {
|
|
2906
|
+
key: 0,
|
|
2907
|
+
modelValue: o.value,
|
|
2908
|
+
"onUpdate:modelValue": A[1] || (A[1] = (F) => o.value = F),
|
|
2909
|
+
type: "border-card",
|
|
2910
|
+
class: "ml-tool-palette-tabs",
|
|
2911
|
+
onTabRemove: D,
|
|
2912
|
+
onTabChange: C
|
|
2913
|
+
}, {
|
|
2914
|
+
default: f(() => [
|
|
2915
|
+
(s(!0), w(G, null, W(n.tabs, (F) => (s(), B(y, {
|
|
2916
|
+
key: F.name,
|
|
2917
|
+
name: F.name,
|
|
2918
|
+
label: F.label
|
|
2919
|
+
}, {
|
|
2920
|
+
label: f(() => [
|
|
2921
|
+
d("span", null, V(F.label), 1)
|
|
2922
|
+
]),
|
|
2923
|
+
default: f(() => [
|
|
2924
|
+
ie(k.$slots, `tab-${F.name}`, {}, void 0, !0)
|
|
2925
|
+
]),
|
|
2926
|
+
_: 2
|
|
2927
|
+
}, 1032, ["name", "label"]))), 128))
|
|
2928
|
+
]),
|
|
2929
|
+
_: 3
|
|
2930
|
+
}, 8, ["modelValue"])) : (s(), w("div", Hl, [
|
|
2931
|
+
ie(k.$slots, "default", {}, void 0, !0)
|
|
2932
|
+
]))
|
|
2632
2933
|
])
|
|
2633
2934
|
], 2)
|
|
2634
2935
|
], 4)) : O("", !0);
|
|
2635
2936
|
};
|
|
2636
2937
|
}
|
|
2637
|
-
}),
|
|
2938
|
+
}), Gl = /* @__PURE__ */ _e(Yl, [["__scopeId", "data-v-43098ce9"]]), Xl = { class: "ml-entity-properties" }, Wl = {
|
|
2939
|
+
key: 0,
|
|
2940
|
+
class: "ml-entity-selector"
|
|
2941
|
+
}, Zl = { class: "ml-cell-container" }, Ul = { key: 0 }, ql = { key: 1 }, jl = {
|
|
2942
|
+
key: 0,
|
|
2943
|
+
class: "ml-cell-value"
|
|
2944
|
+
}, Ql = ["title", "onDblclick"], Jl = {
|
|
2945
|
+
key: 2,
|
|
2946
|
+
class: "ml-no-entity-selected"
|
|
2947
|
+
}, Kl = /* @__PURE__ */ E({
|
|
2948
|
+
__name: "MlEntityProperties",
|
|
2949
|
+
props: {
|
|
2950
|
+
entityPropsList: {},
|
|
2951
|
+
editable: { type: Boolean }
|
|
2952
|
+
},
|
|
2953
|
+
emits: ["update-property"],
|
|
2954
|
+
setup(t, { emit: e }) {
|
|
2955
|
+
const { t: n } = Y(), i = t, o = e, l = M(-1);
|
|
2956
|
+
function a(u) {
|
|
2957
|
+
var b;
|
|
2958
|
+
const v = u.accessor.get();
|
|
2959
|
+
switch (u.type) {
|
|
2960
|
+
case "boolean":
|
|
2961
|
+
return v ? "True" : "False";
|
|
2962
|
+
case "enum": {
|
|
2963
|
+
const S = (b = u.options) == null ? void 0 : b.find(($) => $.value === v);
|
|
2964
|
+
return S && S.label ? Te(S.label) : "";
|
|
2965
|
+
}
|
|
2966
|
+
case "color":
|
|
2967
|
+
return String(v);
|
|
2968
|
+
default:
|
|
2969
|
+
return v != null ? String(v) : "";
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
async function c(u) {
|
|
2973
|
+
const v = a(u);
|
|
2974
|
+
try {
|
|
2975
|
+
await navigator.clipboard.writeText(v), ee({
|
|
2976
|
+
message: n(
|
|
2977
|
+
"main.toolPalette.entityProperties.propertyPanel.propValCopied"
|
|
2978
|
+
),
|
|
2979
|
+
grouping: !0,
|
|
2980
|
+
type: "success"
|
|
2981
|
+
});
|
|
2982
|
+
} catch (b) {
|
|
2983
|
+
console.error(b), ee({
|
|
2984
|
+
message: n(
|
|
2985
|
+
"main.toolPalette.entityProperties.propertyPanel.failedToCopyPropVal"
|
|
2986
|
+
),
|
|
2987
|
+
grouping: !0,
|
|
2988
|
+
type: "error"
|
|
2989
|
+
});
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
const r = T(() => {
|
|
2993
|
+
const u = i.entityPropsList;
|
|
2994
|
+
if (!u || u.length === 0) return [];
|
|
2995
|
+
if (u.length === 1) return g(u[0]);
|
|
2996
|
+
if (l.value >= 0) {
|
|
2997
|
+
const v = u[l.value];
|
|
2998
|
+
return g(v);
|
|
2999
|
+
} else {
|
|
3000
|
+
const v = _(u);
|
|
3001
|
+
return g(v);
|
|
3002
|
+
}
|
|
3003
|
+
});
|
|
3004
|
+
function g(u) {
|
|
3005
|
+
return u.groups.map((v, b) => ({
|
|
3006
|
+
id: `group-${b}`,
|
|
3007
|
+
name: v.groupName,
|
|
3008
|
+
isGroup: !0,
|
|
3009
|
+
children: v.properties.map((S, $) => ({
|
|
3010
|
+
...S,
|
|
3011
|
+
id: `group-${b}-prop-${$}`,
|
|
3012
|
+
isGroup: !1
|
|
3013
|
+
}))
|
|
3014
|
+
}));
|
|
3015
|
+
}
|
|
3016
|
+
function _(u) {
|
|
3017
|
+
if (!u.length) return { type: "", groups: [] };
|
|
3018
|
+
const v = u[0], b = [];
|
|
3019
|
+
for (const S of v.groups) {
|
|
3020
|
+
const $ = [];
|
|
3021
|
+
for (const C of S.properties)
|
|
3022
|
+
u.every((k) => {
|
|
3023
|
+
const A = k.groups.find((y) => y.groupName === S.groupName), N = A == null ? void 0 : A.properties.find((y) => y.name === C.name);
|
|
3024
|
+
return N && N.accessor.get() === C.accessor.get();
|
|
3025
|
+
}) && $.push(C);
|
|
3026
|
+
$.length && b.push({
|
|
3027
|
+
groupName: S.groupName,
|
|
3028
|
+
properties: $
|
|
3029
|
+
});
|
|
3030
|
+
}
|
|
3031
|
+
return {
|
|
3032
|
+
type: v.type,
|
|
3033
|
+
groups: b
|
|
3034
|
+
};
|
|
3035
|
+
}
|
|
3036
|
+
const x = ({
|
|
3037
|
+
row: u,
|
|
3038
|
+
columnIndex: v
|
|
3039
|
+
}) => u.isGroup ? v === 0 ? [1, 2] : [0, 0] : [1, 1];
|
|
3040
|
+
function h(u, v) {
|
|
3041
|
+
var $;
|
|
3042
|
+
if (!i.editable || !(($ = i.entityPropsList) != null && $.length)) return;
|
|
3043
|
+
const S = (l.value >= 0 ? i.entityPropsList[l.value] : i.entityPropsList[0]).groups.find(
|
|
3044
|
+
(C) => C.properties.some((D) => D.name === u.name)
|
|
3045
|
+
);
|
|
3046
|
+
S && o("update-property", {
|
|
3047
|
+
groupName: S.groupName,
|
|
3048
|
+
propertyName: u.name,
|
|
3049
|
+
newValue: v
|
|
3050
|
+
});
|
|
3051
|
+
}
|
|
3052
|
+
return (u, v) => {
|
|
3053
|
+
const b = L("el-option"), S = L("el-select"), $ = L("el-table-column"), C = L("el-color-picker"), D = L("el-switch"), k = L("el-input-number"), A = L("el-input"), N = L("el-table");
|
|
3054
|
+
return s(), w("div", Xl, [
|
|
3055
|
+
u.entityPropsList && u.entityPropsList.length > 1 ? (s(), w("div", Wl, [
|
|
3056
|
+
p(S, {
|
|
3057
|
+
modelValue: l.value,
|
|
3058
|
+
"onUpdate:modelValue": v[0] || (v[0] = (y) => l.value = y),
|
|
3059
|
+
placeholder: "Select Entity",
|
|
3060
|
+
size: "small",
|
|
3061
|
+
style: { width: "100%", "margin-bottom": "0.5rem" }
|
|
3062
|
+
}, {
|
|
3063
|
+
default: f(() => [
|
|
3064
|
+
p(b, {
|
|
3065
|
+
label: m(n)(
|
|
3066
|
+
"main.toolPalette.entityProperties.propertyPanel.multipleEntitySelected",
|
|
3067
|
+
{ count: u.entityPropsList.length }
|
|
3068
|
+
),
|
|
3069
|
+
value: -1
|
|
3070
|
+
}, null, 8, ["label"]),
|
|
3071
|
+
(s(!0), w(G, null, W(u.entityPropsList, (y, z) => (s(), B(b, {
|
|
3072
|
+
key: z,
|
|
3073
|
+
label: y.type,
|
|
3074
|
+
value: z
|
|
3075
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
3076
|
+
]),
|
|
3077
|
+
_: 1
|
|
3078
|
+
}, 8, ["modelValue"])
|
|
3079
|
+
])) : O("", !0),
|
|
3080
|
+
r.value.length ? (s(), B(N, {
|
|
3081
|
+
key: 1,
|
|
3082
|
+
data: r.value,
|
|
3083
|
+
"row-key": "id",
|
|
3084
|
+
border: "",
|
|
3085
|
+
size: "small",
|
|
3086
|
+
"default-expand-all": "",
|
|
3087
|
+
"tree-props": { children: "children", hasChildren: "children" },
|
|
3088
|
+
"show-header": !1,
|
|
3089
|
+
"span-method": x,
|
|
3090
|
+
class: "ml-entity-properties-table"
|
|
3091
|
+
}, {
|
|
3092
|
+
default: f(() => [
|
|
3093
|
+
p($, {
|
|
3094
|
+
prop: "name",
|
|
3095
|
+
"min-width": "auto"
|
|
3096
|
+
}, {
|
|
3097
|
+
default: f(({ row: y }) => [
|
|
3098
|
+
d("div", Zl, [
|
|
3099
|
+
d("div", {
|
|
3100
|
+
class: ve(["ml-cell-label", { "ml-group-row": y.isGroup }])
|
|
3101
|
+
}, [
|
|
3102
|
+
y.isGroup ? (s(), w("strong", Ul, V(m(Le)(y.name)), 1)) : (s(), w("span", ql, V(m(Le)(y.name)), 1))
|
|
3103
|
+
], 2)
|
|
3104
|
+
])
|
|
3105
|
+
]),
|
|
3106
|
+
_: 1
|
|
3107
|
+
}),
|
|
3108
|
+
p($, null, {
|
|
3109
|
+
default: f(({ row: y }) => [
|
|
3110
|
+
y.isGroup ? O("", !0) : (s(), w("div", jl, [
|
|
3111
|
+
!u.editable || !y.editable ? (s(), w("span", {
|
|
3112
|
+
key: 0,
|
|
3113
|
+
title: a(y),
|
|
3114
|
+
class: "ml-readonly-value",
|
|
3115
|
+
onDblclick: (z) => c(y)
|
|
3116
|
+
}, V(a(y)), 41, Ql)) : (s(), w(G, { key: 1 }, [
|
|
3117
|
+
y.type === "enum" ? (s(), B(S, {
|
|
3118
|
+
key: 0,
|
|
3119
|
+
"model-value": y.accessor.get(),
|
|
3120
|
+
disabled: !y.editable || !u.editable,
|
|
3121
|
+
size: "small",
|
|
3122
|
+
style: { width: "100%" },
|
|
3123
|
+
onChange: (z) => h(y, z)
|
|
3124
|
+
}, {
|
|
3125
|
+
default: f(() => [
|
|
3126
|
+
(s(!0), w(G, null, W(y.options || [], (z) => (s(), B(b, {
|
|
3127
|
+
key: z.value,
|
|
3128
|
+
label: m(Te)(z.label),
|
|
3129
|
+
value: z.value
|
|
3130
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
3131
|
+
]),
|
|
3132
|
+
_: 2
|
|
3133
|
+
}, 1032, ["model-value", "disabled", "onChange"])) : y.type === "color" ? (s(), B(C, {
|
|
3134
|
+
key: 1,
|
|
3135
|
+
"model-value": y.accessor.get(),
|
|
3136
|
+
disabled: !y.editable || !u.editable,
|
|
3137
|
+
size: "small",
|
|
3138
|
+
onChange: (z) => h(y, z)
|
|
3139
|
+
}, null, 8, ["model-value", "disabled", "onChange"])) : y.type === "boolean" ? (s(), B(D, {
|
|
3140
|
+
key: 2,
|
|
3141
|
+
"model-value": y.accessor.get(),
|
|
3142
|
+
disabled: !y.editable || !u.editable,
|
|
3143
|
+
onChange: (z) => h(y, z)
|
|
3144
|
+
}, null, 8, ["model-value", "disabled", "onChange"])) : y.type === "int" ? (s(), B(k, {
|
|
3145
|
+
key: 3,
|
|
3146
|
+
"model-value": y.accessor.get(),
|
|
3147
|
+
disabled: !y.editable || !u.editable,
|
|
3148
|
+
size: "small",
|
|
3149
|
+
step: 1,
|
|
3150
|
+
precision: 0,
|
|
3151
|
+
onChange: (z) => h(y, z)
|
|
3152
|
+
}, null, 8, ["model-value", "disabled", "onChange"])) : y.type === "float" ? (s(), B(k, {
|
|
3153
|
+
key: 4,
|
|
3154
|
+
"model-value": y.accessor.get(),
|
|
3155
|
+
disabled: !y.editable || !u.editable,
|
|
3156
|
+
size: "small",
|
|
3157
|
+
step: 0.1,
|
|
3158
|
+
precision: 3,
|
|
3159
|
+
onChange: (z) => h(y, z)
|
|
3160
|
+
}, null, 8, ["model-value", "disabled", "onChange"])) : (s(), B(A, {
|
|
3161
|
+
key: 5,
|
|
3162
|
+
"model-value": y.accessor.get(),
|
|
3163
|
+
disabled: !y.editable || !u.editable,
|
|
3164
|
+
size: "small",
|
|
3165
|
+
onInput: (z) => h(y, z)
|
|
3166
|
+
}, null, 8, ["model-value", "disabled", "onInput"]))
|
|
3167
|
+
], 64))
|
|
3168
|
+
]))
|
|
3169
|
+
]),
|
|
3170
|
+
_: 1
|
|
3171
|
+
})
|
|
3172
|
+
]),
|
|
3173
|
+
_: 1
|
|
3174
|
+
}, 8, ["data"])) : (s(), w("div", Jl, V(m(n)("main.toolPalette.entityProperties.propertyPanel.noEntitySelected")), 1))
|
|
3175
|
+
]);
|
|
3176
|
+
};
|
|
3177
|
+
}
|
|
3178
|
+
}), ea = /* @__PURE__ */ X(Kl, [["__scopeId", "data-v-a0da462f"]]), ta = { class: "ml-layer-list-cell" }, na = { class: "ml-layer-list-cell" }, oa = /* @__PURE__ */ E({
|
|
2638
3179
|
__name: "MlLayerList",
|
|
2639
3180
|
props: {
|
|
2640
3181
|
editor: {}
|
|
2641
3182
|
},
|
|
2642
3183
|
setup(t) {
|
|
2643
|
-
const { t: e } =
|
|
2644
|
-
l.value =
|
|
2645
|
-
}, c = (
|
|
2646
|
-
const
|
|
2647
|
-
|
|
3184
|
+
const { t: e } = Y(), n = t, i = Vo(n.editor), o = M(), l = M([]), a = (r) => {
|
|
3185
|
+
l.value = r;
|
|
3186
|
+
}, c = (r) => {
|
|
3187
|
+
const g = n.editor.curDocument.database.tables.layerTable.getAt(
|
|
3188
|
+
r.name
|
|
2648
3189
|
);
|
|
2649
|
-
|
|
3190
|
+
g && (g.isOff = !r.isOn);
|
|
2650
3191
|
};
|
|
2651
|
-
return (
|
|
2652
|
-
const
|
|
2653
|
-
return
|
|
3192
|
+
return (r, g) => {
|
|
3193
|
+
const _ = L("el-table-column"), x = L("el-checkbox"), h = L("el-tag");
|
|
3194
|
+
return s(), B(m(ct), {
|
|
2654
3195
|
ref_key: "multipleTableRef",
|
|
2655
3196
|
ref: o,
|
|
2656
|
-
data:
|
|
3197
|
+
data: m(i),
|
|
2657
3198
|
class: "ml-layer-list",
|
|
2658
3199
|
onSelectionChange: a
|
|
2659
3200
|
}, {
|
|
2660
3201
|
default: f(() => [
|
|
2661
|
-
|
|
3202
|
+
p(_, {
|
|
2662
3203
|
property: "name",
|
|
2663
|
-
label:
|
|
3204
|
+
label: m(e)("main.toolPalette.layerManager.layerList.name"),
|
|
2664
3205
|
"min-width": "120",
|
|
2665
3206
|
sortable: "",
|
|
2666
3207
|
"show-overflow-tooltip": ""
|
|
2667
3208
|
}, null, 8, ["label"]),
|
|
2668
|
-
|
|
3209
|
+
p(_, {
|
|
2669
3210
|
property: "isOn",
|
|
2670
|
-
label:
|
|
3211
|
+
label: m(e)("main.toolPalette.layerManager.layerList.on"),
|
|
2671
3212
|
width: "50"
|
|
2672
3213
|
}, {
|
|
2673
|
-
default: f((
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
modelValue:
|
|
2677
|
-
"onUpdate:modelValue": (
|
|
2678
|
-
onChange: (
|
|
3214
|
+
default: f((u) => [
|
|
3215
|
+
d("div", ta, [
|
|
3216
|
+
p(x, {
|
|
3217
|
+
modelValue: u.row.isOn,
|
|
3218
|
+
"onUpdate:modelValue": (v) => u.row.isOn = v,
|
|
3219
|
+
onChange: (v) => c(u.row)
|
|
2679
3220
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
2680
3221
|
])
|
|
2681
3222
|
]),
|
|
2682
3223
|
_: 1
|
|
2683
3224
|
}, 8, ["label"]),
|
|
2684
|
-
|
|
3225
|
+
p(_, {
|
|
2685
3226
|
property: "color",
|
|
2686
|
-
label:
|
|
3227
|
+
label: m(e)("main.toolPalette.layerManager.layerList.color"),
|
|
2687
3228
|
width: "70"
|
|
2688
3229
|
}, {
|
|
2689
|
-
default: f((
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
color:
|
|
3230
|
+
default: f((u) => [
|
|
3231
|
+
d("div", na, [
|
|
3232
|
+
p(h, {
|
|
3233
|
+
color: u.row.color,
|
|
2693
3234
|
class: "ml-layer-list-color"
|
|
2694
3235
|
}, null, 8, ["color"])
|
|
2695
3236
|
])
|
|
@@ -2701,122 +3242,93 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
2701
3242
|
}, 8, ["data"]);
|
|
2702
3243
|
};
|
|
2703
3244
|
}
|
|
2704
|
-
}),
|
|
2705
|
-
__name: "
|
|
3245
|
+
}), la = { class: "ml-layer-list-wrapper" }, aa = /* @__PURE__ */ E({
|
|
3246
|
+
__name: "MlPaletteManager",
|
|
2706
3247
|
props: {
|
|
2707
3248
|
editor: {}
|
|
2708
3249
|
},
|
|
2709
3250
|
setup(t) {
|
|
2710
|
-
const e = t
|
|
2711
|
-
|
|
3251
|
+
const e = t, n = ["layerManager", "entityProperties"], i = M(n[0]), o = T(() => n.map((c) => ({
|
|
3252
|
+
name: c,
|
|
3253
|
+
label: Uo(c),
|
|
3254
|
+
title: Zo(c)
|
|
3255
|
+
}))), { selectionSet: l } = jo(), a = T(() => {
|
|
3256
|
+
const c = [], r = P.instance.curDocument.database;
|
|
3257
|
+
return l.value.forEach((g) => {
|
|
3258
|
+
const _ = r.tables.blockTable.modelSpace.getIdAt(g);
|
|
3259
|
+
_ && c.push(_.properties);
|
|
3260
|
+
}), c;
|
|
3261
|
+
});
|
|
3262
|
+
return (c, r) => (s(), B(m(Gl), {
|
|
2712
3263
|
class: "ml-layer-manager",
|
|
2713
|
-
modelValue:
|
|
2714
|
-
"onUpdate:modelValue":
|
|
2715
|
-
|
|
3264
|
+
modelValue: m(te).dialogs.layerManager,
|
|
3265
|
+
"onUpdate:modelValue": r[0] || (r[0] = (g) => m(te).dialogs.layerManager = g),
|
|
3266
|
+
"active-tab": i.value,
|
|
3267
|
+
"onUpdate:activeTab": r[1] || (r[1] = (g) => i.value = g),
|
|
3268
|
+
tabs: o.value,
|
|
2716
3269
|
"bottom-offset": 30
|
|
2717
3270
|
}, {
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
3271
|
+
"tab-layerManager": f(() => [
|
|
3272
|
+
d("div", la, [
|
|
3273
|
+
p(oa, {
|
|
2721
3274
|
editor: e.editor
|
|
2722
3275
|
}, null, 8, ["editor"])
|
|
2723
3276
|
])
|
|
2724
3277
|
]),
|
|
3278
|
+
"tab-entityProperties": f(() => [
|
|
3279
|
+
p(ea, { "entity-props-list": a.value }, null, 8, ["entity-props-list"])
|
|
3280
|
+
]),
|
|
2725
3281
|
_: 1
|
|
2726
|
-
}, 8, ["modelValue"]));
|
|
2727
|
-
}
|
|
2728
|
-
}), Hl = /* @__PURE__ */ G(Rl, [["__scopeId", "data-v-d49ba2cb"]]), Gl = { class: "autocomplete-container" }, Wl = /* @__PURE__ */ z({
|
|
2729
|
-
__name: "MlCommandLine",
|
|
2730
|
-
setup(t) {
|
|
2731
|
-
const { t: e } = R(), n = fe(), i = bo(), o = k(""), l = k(""), a = (m, v) => {
|
|
2732
|
-
const w = m ? i.filter(
|
|
2733
|
-
(h) => h.commandName.startsWith(m.toLowerCase())
|
|
2734
|
-
) : i;
|
|
2735
|
-
v(w);
|
|
2736
|
-
}, c = () => {
|
|
2737
|
-
o.value && (E.instance.sendStringToExecute(o.value), l.value = o.value, o.value = "");
|
|
2738
|
-
}, s = (m, v) => `${v}: ${be(m, v)}`;
|
|
2739
|
-
return (m, v) => (u(), g("div", Gl, [
|
|
2740
|
-
p(n).isShowCommandLine ? (u(), B(p(pt), {
|
|
2741
|
-
key: 0,
|
|
2742
|
-
modelValue: o.value,
|
|
2743
|
-
"onUpdate:modelValue": v[0] || (v[0] = (w) => o.value = w),
|
|
2744
|
-
"value-key": "commandName",
|
|
2745
|
-
clearable: "",
|
|
2746
|
-
"fetch-suggestions": a,
|
|
2747
|
-
placeholder: p(e)("main.commandLine.prompt"),
|
|
2748
|
-
debounce: 300,
|
|
2749
|
-
"trigger-on-focus": "",
|
|
2750
|
-
"fit-input-width": !1,
|
|
2751
|
-
onSelect: c,
|
|
2752
|
-
onKeydown: Ye(c, ["enter"]),
|
|
2753
|
-
class: "autocomplete-input"
|
|
2754
|
-
}, {
|
|
2755
|
-
default: f(({ item: w }) => [
|
|
2756
|
-
r("div", null, $(s(w.groupName, w.commandName)), 1)
|
|
2757
|
-
]),
|
|
2758
|
-
prepend: f(() => [
|
|
2759
|
-
I($(`> ${l.value}`), 1)
|
|
2760
|
-
]),
|
|
2761
|
-
_: 1
|
|
2762
|
-
}, 8, ["modelValue", "placeholder"])) : O("", !0)
|
|
2763
|
-
]));
|
|
3282
|
+
}, 8, ["modelValue", "active-tab", "tabs"]));
|
|
2764
3283
|
}
|
|
2765
|
-
}),
|
|
3284
|
+
}), ia = /* @__PURE__ */ X(aa, [["__scopeId", "data-v-495ab9fe"]]), ue = 8, sa = /* @__PURE__ */ E({
|
|
2766
3285
|
__name: "MlEntityInfo",
|
|
2767
3286
|
setup(t) {
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
"
|
|
3287
|
+
Ee((h) => ({
|
|
3288
|
+
"3e47cda4": r.value,
|
|
3289
|
+
"0741074e": g.value
|
|
2771
3290
|
}));
|
|
2772
|
-
const { t: e } =
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
3291
|
+
const { t: e } = Y(), n = M(null), { hovered: i, entity: o, mouse: l } = $o(), a = M(180), c = M(120), r = T(
|
|
3292
|
+
() => `${Math.min(Math.max(l.value.x, ue), window.innerWidth - a.value - ue)}px`
|
|
3293
|
+
), g = T(
|
|
3294
|
+
() => `${Math.min(Math.max(l.value.y, ue), window.innerHeight - c.value - ue)}px`
|
|
3295
|
+
), _ = T(() => {
|
|
3296
|
+
const h = o.value;
|
|
3297
|
+
return h ? {
|
|
3298
|
+
type: Xo(h),
|
|
3299
|
+
color: Wo(h.color.toString()),
|
|
3300
|
+
layer: h.layer,
|
|
3301
|
+
lineType: h.lineType
|
|
3302
|
+
} : { type: "", color: "", layer: "", lineType: "" };
|
|
3303
|
+
}), x = T(
|
|
3304
|
+
() => i.value && _.value.type !== "" && U.instance.isShowEntityInfo && !P.instance.editor.isActive
|
|
3305
|
+
);
|
|
3306
|
+
return I(x, async (h) => {
|
|
3307
|
+
var u;
|
|
3308
|
+
if (h) {
|
|
3309
|
+
await je();
|
|
3310
|
+
const v = (u = n.value) == null ? void 0 : u.$el;
|
|
3311
|
+
v && (a.value = v.offsetWidth, c.value = v.offsetHeight);
|
|
2783
3312
|
}
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
l.value = x.id, n.value = !0, await Ke();
|
|
2788
|
-
const L = (N = a.value) == null ? void 0 : N.$el;
|
|
2789
|
-
L && (c.value = L.offsetWidth, s.value = L.offsetHeight);
|
|
2790
|
-
const T = 8, y = window.innerWidth - c.value - T, M = window.innerHeight - s.value - T, D = T, H = T;
|
|
2791
|
-
i.value = Math.min(Math.max(x.x, D), y), o.value = Math.min(Math.max(x.y, H), M);
|
|
2792
|
-
}, b = () => {
|
|
2793
|
-
n.value = !1;
|
|
2794
|
-
};
|
|
2795
|
-
return q(() => {
|
|
2796
|
-
const x = E.instance.curView.events;
|
|
2797
|
-
x.hover.addEventListener(_), x.unhover.addEventListener(b);
|
|
2798
|
-
}), ne(() => {
|
|
2799
|
-
const x = E.instance.curView.events;
|
|
2800
|
-
x.hover.removeEventListener(_), x.unhover.removeEventListener(b);
|
|
2801
|
-
}), (x, L) => {
|
|
2802
|
-
const T = S("el-text"), y = S("el-col"), M = S("el-row"), D = S("el-card");
|
|
2803
|
-
return h.value ? (u(), B(D, {
|
|
3313
|
+
}), (h, u) => {
|
|
3314
|
+
const v = L("el-text"), b = L("el-col"), S = L("el-row"), $ = L("el-card");
|
|
3315
|
+
return x.value ? (s(), B($, {
|
|
2804
3316
|
key: 0,
|
|
2805
3317
|
ref_key: "cardRef",
|
|
2806
|
-
ref:
|
|
3318
|
+
ref: n,
|
|
2807
3319
|
class: "ml-entity-info"
|
|
2808
3320
|
}, {
|
|
2809
3321
|
default: f(() => [
|
|
2810
|
-
|
|
3322
|
+
p(S, { class: "ml-entity-info-text" }, {
|
|
2811
3323
|
default: f(() => [
|
|
2812
|
-
|
|
3324
|
+
p(b, { span: 24 }, {
|
|
2813
3325
|
default: f(() => [
|
|
2814
|
-
|
|
3326
|
+
p(v, {
|
|
2815
3327
|
size: "small",
|
|
2816
3328
|
class: "ml-entity-info-title"
|
|
2817
3329
|
}, {
|
|
2818
3330
|
default: f(() => [
|
|
2819
|
-
|
|
3331
|
+
R(V(_.value.type), 1)
|
|
2820
3332
|
]),
|
|
2821
3333
|
_: 1
|
|
2822
3334
|
})
|
|
@@ -2826,24 +3338,24 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
2826
3338
|
]),
|
|
2827
3339
|
_: 1
|
|
2828
3340
|
}),
|
|
2829
|
-
|
|
3341
|
+
p(S, { class: "ml-entity-info-text" }, {
|
|
2830
3342
|
default: f(() => [
|
|
2831
|
-
|
|
3343
|
+
p(b, { span: 10 }, {
|
|
2832
3344
|
default: f(() => [
|
|
2833
|
-
|
|
3345
|
+
p(v, { size: "small" }, {
|
|
2834
3346
|
default: f(() => [
|
|
2835
|
-
|
|
3347
|
+
R(V(m(e)("main.entityInfo.color")), 1)
|
|
2836
3348
|
]),
|
|
2837
3349
|
_: 1
|
|
2838
3350
|
})
|
|
2839
3351
|
]),
|
|
2840
3352
|
_: 1
|
|
2841
3353
|
}),
|
|
2842
|
-
|
|
3354
|
+
p(b, { span: 14 }, {
|
|
2843
3355
|
default: f(() => [
|
|
2844
|
-
|
|
3356
|
+
p(v, { size: "small" }, {
|
|
2845
3357
|
default: f(() => [
|
|
2846
|
-
|
|
3358
|
+
R(V(_.value.color), 1)
|
|
2847
3359
|
]),
|
|
2848
3360
|
_: 1
|
|
2849
3361
|
})
|
|
@@ -2853,24 +3365,24 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
2853
3365
|
]),
|
|
2854
3366
|
_: 1
|
|
2855
3367
|
}),
|
|
2856
|
-
|
|
3368
|
+
p(S, { class: "ml-entity-info-text" }, {
|
|
2857
3369
|
default: f(() => [
|
|
2858
|
-
|
|
3370
|
+
p(b, { span: 10 }, {
|
|
2859
3371
|
default: f(() => [
|
|
2860
|
-
|
|
3372
|
+
p(v, { size: "small" }, {
|
|
2861
3373
|
default: f(() => [
|
|
2862
|
-
|
|
3374
|
+
R(V(m(e)("main.entityInfo.layer")), 1)
|
|
2863
3375
|
]),
|
|
2864
3376
|
_: 1
|
|
2865
3377
|
})
|
|
2866
3378
|
]),
|
|
2867
3379
|
_: 1
|
|
2868
3380
|
}),
|
|
2869
|
-
|
|
3381
|
+
p(b, { span: 14 }, {
|
|
2870
3382
|
default: f(() => [
|
|
2871
|
-
|
|
3383
|
+
p(v, { size: "small" }, {
|
|
2872
3384
|
default: f(() => [
|
|
2873
|
-
|
|
3385
|
+
R(V(_.value.layer), 1)
|
|
2874
3386
|
]),
|
|
2875
3387
|
_: 1
|
|
2876
3388
|
})
|
|
@@ -2880,24 +3392,24 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
2880
3392
|
]),
|
|
2881
3393
|
_: 1
|
|
2882
3394
|
}),
|
|
2883
|
-
|
|
3395
|
+
p(S, { class: "ml-entity-info-text" }, {
|
|
2884
3396
|
default: f(() => [
|
|
2885
|
-
|
|
3397
|
+
p(b, { span: 10 }, {
|
|
2886
3398
|
default: f(() => [
|
|
2887
|
-
|
|
3399
|
+
p(v, { size: "small" }, {
|
|
2888
3400
|
default: f(() => [
|
|
2889
|
-
|
|
3401
|
+
R(V(m(e)("main.entityInfo.lineType")), 1)
|
|
2890
3402
|
]),
|
|
2891
3403
|
_: 1
|
|
2892
3404
|
})
|
|
2893
3405
|
]),
|
|
2894
3406
|
_: 1
|
|
2895
3407
|
}),
|
|
2896
|
-
|
|
3408
|
+
p(b, { span: 14 }, {
|
|
2897
3409
|
default: f(() => [
|
|
2898
|
-
|
|
3410
|
+
p(v, { size: "small" }, {
|
|
2899
3411
|
default: f(() => [
|
|
2900
|
-
|
|
3412
|
+
R(V(_.value.lineType), 1)
|
|
2901
3413
|
]),
|
|
2902
3414
|
_: 1
|
|
2903
3415
|
})
|
|
@@ -2912,13 +3424,13 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
2912
3424
|
}, 512)) : O("", !0);
|
|
2913
3425
|
};
|
|
2914
3426
|
}
|
|
2915
|
-
}),
|
|
3427
|
+
}), ra = /* @__PURE__ */ X(sa, [["__scopeId", "data-v-d0b7631d"]]), ca = /* @__PURE__ */ E({
|
|
2916
3428
|
__name: "MlLanguageSelector",
|
|
2917
3429
|
props: {
|
|
2918
3430
|
currentLocale: { default: void 0 }
|
|
2919
3431
|
},
|
|
2920
3432
|
setup(t) {
|
|
2921
|
-
const e = t, { effectiveLocale:
|
|
3433
|
+
const e = ce(), n = t, { effectiveLocale: i, setLocale: o } = Fe(n.currentLocale), l = q([
|
|
2922
3434
|
{
|
|
2923
3435
|
name: "en",
|
|
2924
3436
|
text: "English"
|
|
@@ -2927,41 +3439,43 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
2927
3439
|
name: "zh",
|
|
2928
3440
|
text: "简体中文"
|
|
2929
3441
|
}
|
|
2930
|
-
]),
|
|
2931
|
-
(
|
|
3442
|
+
]), a = (c) => {
|
|
3443
|
+
(c === "en" || c === "zh") && o(c);
|
|
2932
3444
|
};
|
|
2933
|
-
return (
|
|
3445
|
+
return (c, r) => m(e).isShowLanguageSelector ? (s(), B(m(wl), {
|
|
3446
|
+
key: 0,
|
|
2934
3447
|
class: "ml-language-selector",
|
|
2935
|
-
languages:
|
|
2936
|
-
current:
|
|
2937
|
-
onClick:
|
|
2938
|
-
}, null, 8, ["languages", "current"]));
|
|
3448
|
+
languages: l,
|
|
3449
|
+
current: m(i),
|
|
3450
|
+
onClick: a
|
|
3451
|
+
}, null, 8, ["languages", "current"])) : O("", !0);
|
|
2939
3452
|
}
|
|
2940
|
-
}),
|
|
3453
|
+
}), ua = /* @__PURE__ */ X(ca, [["__scopeId", "data-v-22a7d15f"]]), da = /* @__PURE__ */ E({
|
|
2941
3454
|
__name: "MlMainMenu",
|
|
2942
3455
|
setup(t) {
|
|
2943
|
-
const { t: e } =
|
|
2944
|
-
|
|
3456
|
+
const { t: e } = Y(), n = ce(), i = (o) => {
|
|
3457
|
+
o === "Convert" ? new Ye().tirgger(P.instance.context) : o === "QNew" ? new Ge().tirgger(P.instance.context) : o === "Open" && new Xe().tirgger(P.instance.context);
|
|
2945
3458
|
};
|
|
2946
|
-
return (
|
|
2947
|
-
const
|
|
2948
|
-
return
|
|
3459
|
+
return (o, l) => {
|
|
3460
|
+
const a = L("el-icon"), c = L("el-dropdown-item"), r = L("el-dropdown-menu"), g = L("el-dropdown");
|
|
3461
|
+
return m(n).isShowMainMenu ? (s(), B(g, {
|
|
3462
|
+
key: 0,
|
|
2949
3463
|
"aria-hidden": "false",
|
|
2950
3464
|
class: "ml-main-menu-container",
|
|
2951
|
-
onCommand:
|
|
3465
|
+
onCommand: i
|
|
2952
3466
|
}, {
|
|
2953
3467
|
dropdown: f(() => [
|
|
2954
|
-
|
|
3468
|
+
p(r, null, {
|
|
2955
3469
|
default: f(() => [
|
|
2956
|
-
|
|
3470
|
+
p(c, { command: "QNew" }, {
|
|
2957
3471
|
default: f(() => [
|
|
2958
|
-
|
|
3472
|
+
R(V(m(e)("main.mainMenu.new")), 1)
|
|
2959
3473
|
]),
|
|
2960
3474
|
_: 1
|
|
2961
3475
|
}),
|
|
2962
|
-
|
|
3476
|
+
p(c, { command: "Open" }, {
|
|
2963
3477
|
default: f(() => [
|
|
2964
|
-
|
|
3478
|
+
R(V(m(e)("main.mainMenu.open")), 1)
|
|
2965
3479
|
]),
|
|
2966
3480
|
_: 1
|
|
2967
3481
|
})
|
|
@@ -2970,29 +3484,29 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
2970
3484
|
})
|
|
2971
3485
|
]),
|
|
2972
3486
|
default: f(() => [
|
|
2973
|
-
|
|
3487
|
+
p(a, {
|
|
2974
3488
|
class: "ml-main-menu-icon",
|
|
2975
3489
|
size: "30"
|
|
2976
3490
|
}, {
|
|
2977
3491
|
default: f(() => [
|
|
2978
|
-
|
|
3492
|
+
p(m(Tt))
|
|
2979
3493
|
]),
|
|
2980
3494
|
_: 1
|
|
2981
3495
|
})
|
|
2982
3496
|
]),
|
|
2983
3497
|
_: 1
|
|
2984
|
-
});
|
|
3498
|
+
})) : O("", !0);
|
|
2985
3499
|
};
|
|
2986
3500
|
}
|
|
2987
|
-
}),
|
|
3501
|
+
}), ma = /* @__PURE__ */ X(da, [["__scopeId", "data-v-8caede15"]]), pa = {
|
|
2988
3502
|
key: 0,
|
|
2989
3503
|
class: "ml-vertical-toolbar-container"
|
|
2990
|
-
},
|
|
3504
|
+
}, va = /* @__PURE__ */ E({
|
|
2991
3505
|
__name: "MlToolBars",
|
|
2992
3506
|
setup(t) {
|
|
2993
|
-
const { t: e } =
|
|
3507
|
+
const { t: e } = Y(), n = ce(), i = T(() => [
|
|
2994
3508
|
{
|
|
2995
|
-
icon:
|
|
3509
|
+
icon: nn,
|
|
2996
3510
|
text: e("main.verticalToolbar.select.text"),
|
|
2997
3511
|
command: "select",
|
|
2998
3512
|
description: e("main.verticalToolbar.select.description")
|
|
@@ -3004,28 +3518,28 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3004
3518
|
description: e("main.verticalToolbar.pan.description")
|
|
3005
3519
|
},
|
|
3006
3520
|
{
|
|
3007
|
-
icon:
|
|
3521
|
+
icon: cn,
|
|
3008
3522
|
text: e("main.verticalToolbar.zoomToExtent.text"),
|
|
3009
3523
|
command: "zoom",
|
|
3010
3524
|
description: e("main.verticalToolbar.zoomToExtent.description")
|
|
3011
3525
|
},
|
|
3012
3526
|
{
|
|
3013
|
-
icon:
|
|
3527
|
+
icon: an,
|
|
3014
3528
|
text: e("main.verticalToolbar.zoomToBox.text"),
|
|
3015
3529
|
command: "zoomw",
|
|
3016
3530
|
description: e("main.verticalToolbar.zoomToBox.description")
|
|
3017
3531
|
},
|
|
3018
3532
|
{
|
|
3019
|
-
icon:
|
|
3533
|
+
icon: Zt,
|
|
3020
3534
|
text: e("main.verticalToolbar.layer.text"),
|
|
3021
3535
|
command: "la",
|
|
3022
3536
|
description: e("main.verticalToolbar.layer.description")
|
|
3023
3537
|
}
|
|
3024
3538
|
]), o = (l) => {
|
|
3025
|
-
|
|
3539
|
+
P.instance.sendStringToExecute(l);
|
|
3026
3540
|
};
|
|
3027
|
-
return (l, a) =>
|
|
3028
|
-
|
|
3541
|
+
return (l, a) => m(n).isShowToolbar ? (s(), w("div", pa, [
|
|
3542
|
+
p(m(Tl), {
|
|
3029
3543
|
items: i.value,
|
|
3030
3544
|
size: "small",
|
|
3031
3545
|
direction: "vertical",
|
|
@@ -3033,72 +3547,72 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3033
3547
|
}, null, 8, ["items"])
|
|
3034
3548
|
])) : O("", !0);
|
|
3035
3549
|
}
|
|
3036
|
-
}),
|
|
3550
|
+
}), fa = { class: "ml-notification-item-icon" }, ga = { class: "ml-notification-item-content" }, ha = { class: "ml-notification-item-header" }, _a = { class: "ml-notification-item-title" }, wa = { class: "ml-notification-item-actions" }, ya = {
|
|
3037
3551
|
key: 0,
|
|
3038
3552
|
class: "ml-notification-item-message"
|
|
3039
|
-
},
|
|
3553
|
+
}, ba = { class: "ml-notification-item-footer" }, xa = { class: "ml-notification-item-time" }, ka = /* @__PURE__ */ E({
|
|
3040
3554
|
__name: "MlNotificationItem",
|
|
3041
3555
|
props: {
|
|
3042
3556
|
notification: {}
|
|
3043
3557
|
},
|
|
3044
3558
|
emits: ["close", "action"],
|
|
3045
3559
|
setup(t) {
|
|
3046
|
-
const e = t, { t: n } =
|
|
3560
|
+
const e = t, { t: n } = Y(), i = T(() => {
|
|
3047
3561
|
switch (e.notification.type) {
|
|
3048
3562
|
case "info":
|
|
3049
3563
|
return Me;
|
|
3050
3564
|
case "warning":
|
|
3051
|
-
return
|
|
3565
|
+
return Rt;
|
|
3052
3566
|
case "error":
|
|
3053
|
-
return
|
|
3567
|
+
return xt;
|
|
3054
3568
|
case "success":
|
|
3055
|
-
return
|
|
3569
|
+
return At;
|
|
3056
3570
|
default:
|
|
3057
3571
|
return Me;
|
|
3058
3572
|
}
|
|
3059
3573
|
}), o = (a) => {
|
|
3060
3574
|
a.action();
|
|
3061
3575
|
}, l = (a) => {
|
|
3062
|
-
const
|
|
3063
|
-
return
|
|
3576
|
+
const r = (/* @__PURE__ */ new Date()).getTime() - a.getTime(), g = Math.floor(r / 6e4), _ = Math.floor(r / 36e5), x = Math.floor(r / 864e5);
|
|
3577
|
+
return x > 0 ? n("main.notification.time.daysAgo", { count: x }) : _ > 0 ? n("main.notification.time.hoursAgo", { count: _ }) : g > 0 ? n("main.notification.time.minutesAgo", { count: g }) : n("main.notification.time.justNow");
|
|
3064
3578
|
};
|
|
3065
3579
|
return (a, c) => {
|
|
3066
|
-
const
|
|
3067
|
-
return
|
|
3068
|
-
class:
|
|
3580
|
+
const r = L("el-icon"), g = L("el-button");
|
|
3581
|
+
return s(), w("div", {
|
|
3582
|
+
class: ve(["ml-notification-item", `ml-notification-item--${a.notification.type}`])
|
|
3069
3583
|
}, [
|
|
3070
|
-
|
|
3071
|
-
|
|
3584
|
+
d("div", fa, [
|
|
3585
|
+
p(r, null, {
|
|
3072
3586
|
default: f(() => [
|
|
3073
|
-
(
|
|
3587
|
+
(s(), B(re(i.value)))
|
|
3074
3588
|
]),
|
|
3075
3589
|
_: 1
|
|
3076
3590
|
})
|
|
3077
3591
|
]),
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
a.notification.actions && a.notification.actions.length > 0 ? (
|
|
3083
|
-
key:
|
|
3084
|
-
type:
|
|
3592
|
+
d("div", ga, [
|
|
3593
|
+
d("div", ha, [
|
|
3594
|
+
d("h4", _a, V(a.notification.title), 1),
|
|
3595
|
+
d("div", wa, [
|
|
3596
|
+
a.notification.actions && a.notification.actions.length > 0 ? (s(!0), w(G, { key: 0 }, W(a.notification.actions, (_) => (s(), B(g, {
|
|
3597
|
+
key: _.label,
|
|
3598
|
+
type: _.primary ? "primary" : "default",
|
|
3085
3599
|
size: "small",
|
|
3086
|
-
onClick: (
|
|
3600
|
+
onClick: (x) => o(_)
|
|
3087
3601
|
}, {
|
|
3088
3602
|
default: f(() => [
|
|
3089
|
-
|
|
3603
|
+
R(V(_.label), 1)
|
|
3090
3604
|
]),
|
|
3091
3605
|
_: 2
|
|
3092
3606
|
}, 1032, ["type", "onClick"]))), 128)) : O("", !0),
|
|
3093
|
-
|
|
3607
|
+
p(g, {
|
|
3094
3608
|
text: "",
|
|
3095
3609
|
size: "small",
|
|
3096
|
-
onClick: c[0] || (c[0] = (
|
|
3610
|
+
onClick: c[0] || (c[0] = (_) => a.$emit("close"))
|
|
3097
3611
|
}, {
|
|
3098
3612
|
default: f(() => [
|
|
3099
|
-
|
|
3613
|
+
p(r, null, {
|
|
3100
3614
|
default: f(() => [
|
|
3101
|
-
|
|
3615
|
+
p(m(xe))
|
|
3102
3616
|
]),
|
|
3103
3617
|
_: 1
|
|
3104
3618
|
})
|
|
@@ -3107,63 +3621,63 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3107
3621
|
})
|
|
3108
3622
|
])
|
|
3109
3623
|
]),
|
|
3110
|
-
a.notification.message ? (
|
|
3111
|
-
|
|
3112
|
-
|
|
3624
|
+
a.notification.message ? (s(), w("p", ya, V(a.notification.message), 1)) : O("", !0),
|
|
3625
|
+
d("div", ba, [
|
|
3626
|
+
d("span", xa, V(l(a.notification.timestamp)), 1)
|
|
3113
3627
|
])
|
|
3114
3628
|
])
|
|
3115
3629
|
], 2);
|
|
3116
3630
|
};
|
|
3117
3631
|
}
|
|
3118
|
-
}),
|
|
3632
|
+
}), Ma = /* @__PURE__ */ X(ka, [["__scopeId", "data-v-e1dde915"]]), Ca = { class: "ml-notification-center" }, Sa = { class: "ml-notification-center-header" }, La = { class: "ml-notification-center-title" }, Ta = { class: "ml-notification-center-actions" }, za = { class: "ml-notification-center-content" }, Ba = {
|
|
3119
3633
|
key: 0,
|
|
3120
3634
|
class: "ml-notification-center-empty"
|
|
3121
|
-
},
|
|
3635
|
+
}, Da = {
|
|
3122
3636
|
key: 1,
|
|
3123
3637
|
class: "ml-notification-list"
|
|
3124
|
-
},
|
|
3638
|
+
}, Ea = /* @__PURE__ */ E({
|
|
3125
3639
|
__name: "MlNotificationCenter",
|
|
3126
3640
|
props: {
|
|
3127
3641
|
title: {}
|
|
3128
3642
|
},
|
|
3129
3643
|
emits: ["close"],
|
|
3130
3644
|
setup(t) {
|
|
3131
|
-
const { t: e } =
|
|
3645
|
+
const { t: e } = Y(), n = t, i = T(
|
|
3132
3646
|
() => n.title ?? e("main.notification.center.title")
|
|
3133
|
-
), { notifications: o, remove: l, clearAll: a } =
|
|
3134
|
-
|
|
3647
|
+
), { notifications: o, remove: l, clearAll: a } = he(), c = (r) => {
|
|
3648
|
+
r.action();
|
|
3135
3649
|
};
|
|
3136
|
-
return (
|
|
3137
|
-
const
|
|
3138
|
-
return
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3650
|
+
return (r, g) => {
|
|
3651
|
+
const _ = L("el-icon"), x = L("el-button"), h = L("el-tooltip");
|
|
3652
|
+
return s(), w("div", Ca, [
|
|
3653
|
+
d("div", Sa, [
|
|
3654
|
+
d("div", La, [
|
|
3655
|
+
p(_, { class: "ml-notification-center-icon" }, {
|
|
3142
3656
|
default: f(() => [
|
|
3143
|
-
|
|
3657
|
+
p(m(ye))
|
|
3144
3658
|
]),
|
|
3145
3659
|
_: 1
|
|
3146
3660
|
}),
|
|
3147
|
-
|
|
3661
|
+
d("span", null, V(i.value), 1)
|
|
3148
3662
|
]),
|
|
3149
|
-
|
|
3150
|
-
|
|
3663
|
+
d("div", Ta, [
|
|
3664
|
+
m(o).length > 0 ? (s(), B(h, {
|
|
3151
3665
|
key: 0,
|
|
3152
|
-
content:
|
|
3666
|
+
content: m(e)("main.notification.center.clearAll"),
|
|
3153
3667
|
"hide-after": 0
|
|
3154
3668
|
}, {
|
|
3155
3669
|
default: f(() => [
|
|
3156
|
-
|
|
3670
|
+
p(x, {
|
|
3157
3671
|
text: "",
|
|
3158
3672
|
circle: "",
|
|
3159
3673
|
size: "small",
|
|
3160
3674
|
class: "ml-notification-center-clear",
|
|
3161
|
-
onClick:
|
|
3675
|
+
onClick: m(a)
|
|
3162
3676
|
}, {
|
|
3163
3677
|
default: f(() => [
|
|
3164
|
-
|
|
3678
|
+
p(_, null, {
|
|
3165
3679
|
default: f(() => [
|
|
3166
|
-
|
|
3680
|
+
p(m(Ct))
|
|
3167
3681
|
]),
|
|
3168
3682
|
_: 1
|
|
3169
3683
|
})
|
|
@@ -3173,16 +3687,16 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3173
3687
|
]),
|
|
3174
3688
|
_: 1
|
|
3175
3689
|
}, 8, ["content"])) : O("", !0),
|
|
3176
|
-
|
|
3690
|
+
p(x, {
|
|
3177
3691
|
text: "",
|
|
3178
3692
|
size: "small",
|
|
3179
3693
|
class: "ml-notification-center-close",
|
|
3180
|
-
onClick:
|
|
3694
|
+
onClick: g[0] || (g[0] = (u) => r.$emit("close"))
|
|
3181
3695
|
}, {
|
|
3182
3696
|
default: f(() => [
|
|
3183
|
-
|
|
3697
|
+
p(_, null, {
|
|
3184
3698
|
default: f(() => [
|
|
3185
|
-
|
|
3699
|
+
p(m(xe))
|
|
3186
3700
|
]),
|
|
3187
3701
|
_: 1
|
|
3188
3702
|
})
|
|
@@ -3191,20 +3705,20 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3191
3705
|
})
|
|
3192
3706
|
])
|
|
3193
3707
|
]),
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3708
|
+
d("div", za, [
|
|
3709
|
+
m(o).length === 0 ? (s(), w("div", Ba, [
|
|
3710
|
+
p(_, { class: "ml-notification-center-empty-icon" }, {
|
|
3197
3711
|
default: f(() => [
|
|
3198
|
-
|
|
3712
|
+
p(m(ye))
|
|
3199
3713
|
]),
|
|
3200
3714
|
_: 1
|
|
3201
3715
|
}),
|
|
3202
|
-
|
|
3203
|
-
])) : (
|
|
3204
|
-
(
|
|
3205
|
-
key:
|
|
3206
|
-
notification:
|
|
3207
|
-
onClose: (
|
|
3716
|
+
d("p", null, V(m(e)("main.notification.center.noNotifications")), 1)
|
|
3717
|
+
])) : (s(), w("div", Da, [
|
|
3718
|
+
(s(!0), w(G, null, W(m(o), (u) => (s(), B(Ma, {
|
|
3719
|
+
key: u.id,
|
|
3720
|
+
notification: u,
|
|
3721
|
+
onClose: (v) => m(l)(u.id),
|
|
3208
3722
|
onAction: c
|
|
3209
3723
|
}, null, 8, ["notification", "onClose"]))), 128))
|
|
3210
3724
|
]))
|
|
@@ -3212,45 +3726,45 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3212
3726
|
]);
|
|
3213
3727
|
};
|
|
3214
3728
|
}
|
|
3215
|
-
}),
|
|
3729
|
+
}), $a = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-bdd67bed"]]), Va = /* @__PURE__ */ E({
|
|
3216
3730
|
__name: "MlFullScreenButton",
|
|
3217
3731
|
setup(t) {
|
|
3218
|
-
const { t: e } =
|
|
3732
|
+
const { t: e } = Y(), { isFullscreen: n, toggle: i } = tt(), o = T(() => ({
|
|
3219
3733
|
onIcon: Ce,
|
|
3220
3734
|
offIcon: Ce,
|
|
3221
3735
|
onTooltip: e("main.statusBar.fullScreen.on"),
|
|
3222
3736
|
offTooltip: e("main.statusBar.fullScreen.off")
|
|
3223
|
-
})), l =
|
|
3224
|
-
return (a, c) => (
|
|
3737
|
+
})), l = T(() => !n.value);
|
|
3738
|
+
return (a, c) => (s(), B(m(Oe), {
|
|
3225
3739
|
modelValue: l.value,
|
|
3226
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
3740
|
+
"onUpdate:modelValue": c[0] || (c[0] = (r) => l.value = r),
|
|
3227
3741
|
data: o.value,
|
|
3228
|
-
onClick:
|
|
3742
|
+
onClick: m(i)
|
|
3229
3743
|
}, null, 8, ["modelValue", "data", "onClick"]));
|
|
3230
3744
|
}
|
|
3231
|
-
}),
|
|
3745
|
+
}), Pa = /* @__PURE__ */ E({
|
|
3232
3746
|
__name: "MlNotificationButton",
|
|
3233
3747
|
emits: ["click"],
|
|
3234
3748
|
setup(t, { emit: e }) {
|
|
3235
|
-
const { t: n } =
|
|
3749
|
+
const { t: n } = Y(), { unreadCount: i } = he(), o = e, l = () => {
|
|
3236
3750
|
o("click");
|
|
3237
3751
|
};
|
|
3238
3752
|
return (a, c) => {
|
|
3239
|
-
const
|
|
3240
|
-
return
|
|
3241
|
-
content:
|
|
3753
|
+
const r = L("el-badge"), g = L("el-button"), _ = L("el-tooltip");
|
|
3754
|
+
return s(), B(_, {
|
|
3755
|
+
content: m(n)("main.statusBar.notification.tooltip"),
|
|
3242
3756
|
"hide-after": 0
|
|
3243
3757
|
}, {
|
|
3244
3758
|
default: f(() => [
|
|
3245
|
-
|
|
3759
|
+
p(g, {
|
|
3246
3760
|
class: "ml-notification-button",
|
|
3247
|
-
icon:
|
|
3761
|
+
icon: m(ye),
|
|
3248
3762
|
onClick: l
|
|
3249
3763
|
}, {
|
|
3250
3764
|
default: f(() => [
|
|
3251
|
-
|
|
3765
|
+
m(i) > 0 ? (s(), B(r, {
|
|
3252
3766
|
key: 0,
|
|
3253
|
-
value:
|
|
3767
|
+
value: m(i),
|
|
3254
3768
|
max: 99,
|
|
3255
3769
|
class: "ml-notification-badge"
|
|
3256
3770
|
}, null, 8, ["value"])) : O("", !0)
|
|
@@ -3262,22 +3776,22 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3262
3776
|
}, 8, ["content"]);
|
|
3263
3777
|
};
|
|
3264
3778
|
}
|
|
3265
|
-
}),
|
|
3779
|
+
}), Aa = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-48c740b7"]]), Na = /* @__PURE__ */ E({
|
|
3266
3780
|
__name: "MlPointStyleButton",
|
|
3267
3781
|
setup(t) {
|
|
3268
|
-
const { t: e } =
|
|
3269
|
-
|
|
3782
|
+
const { t: e } = Y(), n = () => {
|
|
3783
|
+
P.instance.sendStringToExecute("pttype");
|
|
3270
3784
|
};
|
|
3271
3785
|
return (i, o) => {
|
|
3272
|
-
const l =
|
|
3273
|
-
return
|
|
3274
|
-
content:
|
|
3786
|
+
const l = L("el-button"), a = L("el-tooltip");
|
|
3787
|
+
return s(), B(a, {
|
|
3788
|
+
content: m(e)("main.statusBar.pointStyle.tooltip"),
|
|
3275
3789
|
"hide-after": 0
|
|
3276
3790
|
}, {
|
|
3277
3791
|
default: f(() => [
|
|
3278
|
-
|
|
3792
|
+
p(l, {
|
|
3279
3793
|
class: "ml-point-style-button",
|
|
3280
|
-
icon:
|
|
3794
|
+
icon: m(Et),
|
|
3281
3795
|
onClick: o[0] || (o[0] = (c) => n())
|
|
3282
3796
|
}, null, 8, ["icon"])
|
|
3283
3797
|
]),
|
|
@@ -3285,43 +3799,30 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3285
3799
|
}, 8, ["content"]);
|
|
3286
3800
|
};
|
|
3287
3801
|
}
|
|
3288
|
-
}),
|
|
3802
|
+
}), Ia = /* @__PURE__ */ X(Na, [["__scopeId", "data-v-29692d7d"]]), Fa = {
|
|
3289
3803
|
key: 0,
|
|
3290
3804
|
class: "ml-progress"
|
|
3291
|
-
},
|
|
3805
|
+
}, Ra = /* @__PURE__ */ E({
|
|
3292
3806
|
__name: "MlProgress",
|
|
3293
3807
|
setup(t) {
|
|
3294
|
-
const { t: e } =
|
|
3295
|
-
if (c.stage === "CONVERSION") {
|
|
3296
|
-
const
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
v.unknownEntityCount > 0 && o(
|
|
3304
|
-
e("main.notification.title.parsingWarning"),
|
|
3305
|
-
e("main.message.unknownEntities", {
|
|
3306
|
-
count: v.unknownEntityCount
|
|
3307
|
-
})
|
|
3308
|
-
);
|
|
3309
|
-
}
|
|
3310
|
-
}
|
|
3311
|
-
n.value = c.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
|
|
3312
|
-
} else if (c.stage === "FETCH_FILE") {
|
|
3313
|
-
const s = ke.service({
|
|
3314
|
-
lock: !0
|
|
3315
|
-
});
|
|
3316
|
-
s.setText(e("main.message.fetchingDrawingFile")), n.value = c.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
|
|
3808
|
+
const { t: e } = Y(), n = M(0), i = M(!1), { warning: o } = he(), l = (c) => {
|
|
3809
|
+
if (c.stage === "CONVERSION" && c.subStage && c.subStage === "PARSE" && c.subStageStatus === "END" && c.data) {
|
|
3810
|
+
const r = c.data;
|
|
3811
|
+
r.unknownEntityCount > 0 && o(
|
|
3812
|
+
e("main.notification.title.parsingWarning"),
|
|
3813
|
+
e("main.message.unknownEntities", {
|
|
3814
|
+
count: r.unknownEntityCount
|
|
3815
|
+
})
|
|
3816
|
+
);
|
|
3317
3817
|
}
|
|
3818
|
+
n.value = c.percentage, n.value < 100 ? i.value = !0 : i.value = !1;
|
|
3318
3819
|
}, a = (c) => `${c.toFixed(0)}%`;
|
|
3319
|
-
return
|
|
3820
|
+
return Z(() => {
|
|
3320
3821
|
Q.on("open-file-progress", l);
|
|
3321
3822
|
}), ne(() => {
|
|
3322
3823
|
Q.off("open-file-progress", l);
|
|
3323
|
-
}), (c,
|
|
3324
|
-
|
|
3824
|
+
}), (c, r) => i.value ? (s(), w("div", Fa, [
|
|
3825
|
+
p(m(ut), {
|
|
3325
3826
|
"text-inside": !0,
|
|
3326
3827
|
"stroke-width": 20,
|
|
3327
3828
|
percentage: n.value,
|
|
@@ -3329,59 +3830,86 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3329
3830
|
}, null, 8, ["percentage"])
|
|
3330
3831
|
])) : O("", !0);
|
|
3331
3832
|
}
|
|
3332
|
-
}),
|
|
3833
|
+
}), Oa = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-7513492f"]]), Ha = /* @__PURE__ */ E({
|
|
3333
3834
|
__name: "MlSettingButton",
|
|
3334
3835
|
setup(t) {
|
|
3335
|
-
const { t: e } =
|
|
3336
|
-
o == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate,
|
|
3836
|
+
const { t: e } = Y(), n = ce(), i = (o) => {
|
|
3837
|
+
o == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, U.instance.isShowCoordinate = n.isShowCoordinate) : o == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, U.instance.isShowCommandLine = n.isShowCommandLine) : o == "isShowEntityInfo" ? (n.isShowEntityInfo = !n.isShowEntityInfo, U.instance.isShowEntityInfo = n.isShowEntityInfo) : o == "isShowMainMenu" ? (n.isShowMainMenu = !n.isShowMainMenu, U.instance.isShowMainMenu = n.isShowMainMenu) : o == "isShowLanguageSelector" ? (n.isShowLanguageSelector = !n.isShowLanguageSelector, U.instance.isShowLanguageSelector = n.isShowLanguageSelector) : o == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, U.instance.isShowToolbar = n.isShowToolbar) : o == "isShowStats" && (n.isShowStats = !n.isShowStats, U.instance.isShowStats = n.isShowStats);
|
|
3337
3838
|
};
|
|
3338
3839
|
return (o, l) => {
|
|
3339
|
-
const a =
|
|
3340
|
-
return
|
|
3341
|
-
content:
|
|
3840
|
+
const a = L("el-button"), c = L("el-dropdown-item"), r = L("el-dropdown-menu"), g = L("el-dropdown"), _ = L("el-tooltip");
|
|
3841
|
+
return s(), B(_, {
|
|
3842
|
+
content: m(e)("main.statusBar.setting.tooltip"),
|
|
3342
3843
|
"hide-after": 0
|
|
3343
3844
|
}, {
|
|
3344
3845
|
default: f(() => [
|
|
3345
|
-
|
|
3846
|
+
p(g, {
|
|
3346
3847
|
trigger: "click",
|
|
3347
3848
|
onCommand: i
|
|
3348
3849
|
}, {
|
|
3349
3850
|
dropdown: f(() => [
|
|
3350
|
-
|
|
3851
|
+
p(r, null, {
|
|
3351
3852
|
default: f(() => [
|
|
3352
|
-
|
|
3353
|
-
icon:
|
|
3853
|
+
p(c, {
|
|
3854
|
+
icon: m(n).isShowStats ? m(J) : "",
|
|
3354
3855
|
command: "isShowStats"
|
|
3355
3856
|
}, {
|
|
3356
3857
|
default: f(() => [
|
|
3357
|
-
|
|
3858
|
+
R(V(m(e)("main.statusBar.setting.stats")), 1)
|
|
3358
3859
|
]),
|
|
3359
3860
|
_: 1
|
|
3360
3861
|
}, 8, ["icon"]),
|
|
3361
|
-
|
|
3362
|
-
icon:
|
|
3862
|
+
p(c, {
|
|
3863
|
+
icon: m(n).isShowCommandLine ? m(J) : "",
|
|
3363
3864
|
command: "isShowCommandLine"
|
|
3364
3865
|
}, {
|
|
3365
3866
|
default: f(() => [
|
|
3366
|
-
|
|
3867
|
+
R(V(m(e)("main.statusBar.setting.commandLine")), 1)
|
|
3868
|
+
]),
|
|
3869
|
+
_: 1
|
|
3870
|
+
}, 8, ["icon"]),
|
|
3871
|
+
p(c, {
|
|
3872
|
+
icon: m(n).isShowEntityInfo ? m(J) : "",
|
|
3873
|
+
command: "isShowEntityInfo"
|
|
3874
|
+
}, {
|
|
3875
|
+
default: f(() => [
|
|
3876
|
+
R(V(m(e)("main.statusBar.setting.entityInfo")), 1)
|
|
3877
|
+
]),
|
|
3878
|
+
_: 1
|
|
3879
|
+
}, 8, ["icon"]),
|
|
3880
|
+
p(c, {
|
|
3881
|
+
icon: m(n).isShowMainMenu ? m(J) : "",
|
|
3882
|
+
command: "isShowMainMenu"
|
|
3883
|
+
}, {
|
|
3884
|
+
default: f(() => [
|
|
3885
|
+
R(V(m(e)("main.statusBar.setting.mainMenu")), 1)
|
|
3886
|
+
]),
|
|
3887
|
+
_: 1
|
|
3888
|
+
}, 8, ["icon"]),
|
|
3889
|
+
p(c, {
|
|
3890
|
+
icon: m(n).isShowLanguageSelector ? m(J) : "",
|
|
3891
|
+
command: "isShowLanguageSelector"
|
|
3892
|
+
}, {
|
|
3893
|
+
default: f(() => [
|
|
3894
|
+
R(V(m(e)("main.statusBar.setting.languageSelector")), 1)
|
|
3367
3895
|
]),
|
|
3368
3896
|
_: 1
|
|
3369
3897
|
}, 8, ["icon"]),
|
|
3370
|
-
|
|
3371
|
-
icon:
|
|
3898
|
+
p(c, {
|
|
3899
|
+
icon: m(n).isShowCoordinate ? m(J) : "",
|
|
3372
3900
|
command: "isShowCoordinate"
|
|
3373
3901
|
}, {
|
|
3374
3902
|
default: f(() => [
|
|
3375
|
-
|
|
3903
|
+
R(V(m(e)("main.statusBar.setting.coordinate")), 1)
|
|
3376
3904
|
]),
|
|
3377
3905
|
_: 1
|
|
3378
3906
|
}, 8, ["icon"]),
|
|
3379
|
-
|
|
3380
|
-
icon:
|
|
3907
|
+
p(c, {
|
|
3908
|
+
icon: m(n).isShowToolbar ? m(J) : "",
|
|
3381
3909
|
command: "isShowToolbar"
|
|
3382
3910
|
}, {
|
|
3383
3911
|
default: f(() => [
|
|
3384
|
-
|
|
3912
|
+
R(V(m(e)("main.statusBar.setting.toolbar")), 1)
|
|
3385
3913
|
]),
|
|
3386
3914
|
_: 1
|
|
3387
3915
|
}, 8, ["icon"])
|
|
@@ -3390,9 +3918,9 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3390
3918
|
})
|
|
3391
3919
|
]),
|
|
3392
3920
|
default: f(() => [
|
|
3393
|
-
|
|
3921
|
+
p(a, {
|
|
3394
3922
|
class: "ml-setting-button",
|
|
3395
|
-
icon:
|
|
3923
|
+
icon: m(Vt)
|
|
3396
3924
|
}, null, 8, ["icon"])
|
|
3397
3925
|
]),
|
|
3398
3926
|
_: 1
|
|
@@ -3402,64 +3930,64 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3402
3930
|
}, 8, ["content"]);
|
|
3403
3931
|
};
|
|
3404
3932
|
}
|
|
3405
|
-
}),
|
|
3933
|
+
}), Ya = /* @__PURE__ */ X(Ha, [["__scopeId", "data-v-a8817740"]]), Ga = /* @__PURE__ */ E({
|
|
3406
3934
|
__name: "MlThemeButton",
|
|
3407
3935
|
setup(t) {
|
|
3408
|
-
const { t: e } =
|
|
3409
|
-
onIcon:
|
|
3410
|
-
offIcon:
|
|
3936
|
+
const { t: e } = Y(), n = T(() => ({
|
|
3937
|
+
onIcon: It,
|
|
3938
|
+
offIcon: Bt,
|
|
3411
3939
|
onTooltip: e("main.statusBar.theme.light"),
|
|
3412
3940
|
offTooltip: e("main.statusBar.theme.dark")
|
|
3413
3941
|
}));
|
|
3414
|
-
return (i, o) => (
|
|
3415
|
-
modelValue:
|
|
3416
|
-
"onUpdate:modelValue": o[0] || (o[0] = (l) =>
|
|
3942
|
+
return (i, o) => (s(), B(m(Oe), {
|
|
3943
|
+
modelValue: m(de),
|
|
3944
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => Qe(de) ? de.value = l : null),
|
|
3417
3945
|
data: n.value,
|
|
3418
|
-
onClick: o[1] || (o[1] = (l) =>
|
|
3946
|
+
onClick: o[1] || (o[1] = (l) => m(To)())
|
|
3419
3947
|
}, null, 8, ["modelValue", "data"]));
|
|
3420
3948
|
}
|
|
3421
|
-
}),
|
|
3949
|
+
}), Xa = /* @__PURE__ */ E({
|
|
3422
3950
|
__name: "MlWarningButton",
|
|
3423
3951
|
setup(t) {
|
|
3424
3952
|
const e = () => {
|
|
3425
|
-
|
|
3426
|
-
}, { fonts: n, images: i } =
|
|
3953
|
+
P.instance.sendStringToExecute("md");
|
|
3954
|
+
}, { fonts: n, images: i } = Re(), o = T(() => i.size > 0 || n.size > 0);
|
|
3427
3955
|
return (l, a) => {
|
|
3428
|
-
const c =
|
|
3429
|
-
return o.value ? (
|
|
3956
|
+
const c = L("el-button");
|
|
3957
|
+
return o.value ? (s(), B(c, {
|
|
3430
3958
|
key: 0,
|
|
3431
3959
|
class: "ml-warning-button",
|
|
3432
3960
|
type: "warning",
|
|
3433
|
-
icon:
|
|
3434
|
-
onClick: a[0] || (a[0] = (
|
|
3961
|
+
icon: m(Ht),
|
|
3962
|
+
onClick: a[0] || (a[0] = (r) => e())
|
|
3435
3963
|
}, null, 8, ["icon"])) : O("", !0);
|
|
3436
3964
|
};
|
|
3437
3965
|
}
|
|
3438
|
-
}),
|
|
3966
|
+
}), Wa = /* @__PURE__ */ X(Xa, [["__scopeId", "data-v-3411a3ec"]]), Za = /* @__PURE__ */ E({
|
|
3439
3967
|
__name: "MlStatusBar",
|
|
3440
3968
|
emits: ["toggleNotificationCenter"],
|
|
3441
3969
|
setup(t, { emit: e }) {
|
|
3442
|
-
const { text: n } =
|
|
3443
|
-
|
|
3444
|
-
|
|
3970
|
+
const { text: n } = Lo(P.instance.curView), i = Po(P.instance), o = ce(), { isMobile: l } = Jo(), a = (g) => {
|
|
3971
|
+
Ae().layoutManager.setCurrentLayoutBtrId(
|
|
3972
|
+
g.blockTableRecordId
|
|
3445
3973
|
);
|
|
3446
|
-
}, c = e,
|
|
3974
|
+
}, c = e, r = () => {
|
|
3447
3975
|
c("toggleNotificationCenter");
|
|
3448
3976
|
};
|
|
3449
|
-
return (
|
|
3450
|
-
const
|
|
3451
|
-
return
|
|
3977
|
+
return (g, _) => {
|
|
3978
|
+
const x = L("el-button"), h = L("el-button-group");
|
|
3979
|
+
return s(), B(m(Cl), { class: "ml-status-bar" }, {
|
|
3452
3980
|
left: f(() => [
|
|
3453
|
-
|
|
3981
|
+
p(h, { class: "ml-status-bar-left-button-group" }, {
|
|
3454
3982
|
default: f(() => [
|
|
3455
|
-
(
|
|
3983
|
+
(s(!0), w(G, null, W(m(i), (u) => (s(), B(x, {
|
|
3456
3984
|
class: "ml-status-bar-layout-button",
|
|
3457
|
-
key:
|
|
3458
|
-
type:
|
|
3459
|
-
onClick: (
|
|
3985
|
+
key: u.name,
|
|
3986
|
+
type: u.isActive ? "primary" : "",
|
|
3987
|
+
onClick: (v) => a(u)
|
|
3460
3988
|
}, {
|
|
3461
3989
|
default: f(() => [
|
|
3462
|
-
|
|
3990
|
+
R(V(u.name), 1)
|
|
3463
3991
|
]),
|
|
3464
3992
|
_: 2
|
|
3465
3993
|
}, 1032, ["type", "onClick"]))), 128))
|
|
@@ -3468,24 +3996,24 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3468
3996
|
})
|
|
3469
3997
|
]),
|
|
3470
3998
|
right: f(() => [
|
|
3471
|
-
|
|
3472
|
-
|
|
3999
|
+
p(Oa),
|
|
4000
|
+
p(h, { class: "ml-status-bar-right-button-group" }, {
|
|
3473
4001
|
default: f(() => [
|
|
3474
|
-
|
|
4002
|
+
m(o).isShowCoordinate && !m(l) ? (s(), B(x, {
|
|
3475
4003
|
key: 0,
|
|
3476
4004
|
class: "ml-status-bar-current-pos"
|
|
3477
4005
|
}, {
|
|
3478
4006
|
default: f(() => [
|
|
3479
|
-
|
|
4007
|
+
R(V(m(n)), 1)
|
|
3480
4008
|
]),
|
|
3481
4009
|
_: 1
|
|
3482
4010
|
})) : O("", !0),
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
4011
|
+
p(Wa),
|
|
4012
|
+
p(Aa, { onClick: r }),
|
|
4013
|
+
p(Ga),
|
|
4014
|
+
p(Va),
|
|
4015
|
+
p(Ia),
|
|
4016
|
+
p(Ya)
|
|
3489
4017
|
]),
|
|
3490
4018
|
_: 1
|
|
3491
4019
|
})
|
|
@@ -3494,10 +4022,10 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3494
4022
|
});
|
|
3495
4023
|
};
|
|
3496
4024
|
}
|
|
3497
|
-
}),
|
|
4025
|
+
}), Ua = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-24578503"]]), qa = {
|
|
3498
4026
|
key: 0,
|
|
3499
4027
|
class: "ml-cad-viewer-container"
|
|
3500
|
-
},
|
|
4028
|
+
}, ja = { class: "ml-file-name" }, Si = /* @__PURE__ */ E({
|
|
3501
4029
|
__name: "MlCadViewer",
|
|
3502
4030
|
props: {
|
|
3503
4031
|
locale: { default: "default" },
|
|
@@ -3508,146 +4036,143 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3508
4036
|
useMainThreadDraw: { type: Boolean, default: !1 }
|
|
3509
4037
|
},
|
|
3510
4038
|
setup(t) {
|
|
3511
|
-
const e = t, { t: n } =
|
|
3512
|
-
const
|
|
3513
|
-
await
|
|
3514
|
-
},
|
|
4039
|
+
const e = t, { t: n } = Y(), { effectiveLocale: i, elementPlusLocale: o } = Fe(e.locale), { info: l, warning: a, error: c, success: r } = he(), g = M(), _ = M(null), x = T(() => _.value), h = M(!1), u = async (C, D) => {
|
|
4040
|
+
const k = { minimumChunkSize: 1e3 };
|
|
4041
|
+
await P.instance.openDocument(C, D, k), te.fileName = P.instance.curDocument.docTitle;
|
|
4042
|
+
}, v = async (C) => {
|
|
3515
4043
|
try {
|
|
3516
|
-
const
|
|
3517
|
-
await
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
console.error("Failed to open file from URL:", M), oe({
|
|
3522
|
-
message: n("main.message.failedToOpenFile", { fileName: y }),
|
|
4044
|
+
const D = { minimumChunkSize: 1e3 };
|
|
4045
|
+
await P.instance.openUrl(C, D), te.fileName = P.instance.curDocument.docTitle;
|
|
4046
|
+
} catch (D) {
|
|
4047
|
+
console.error("Failed to open file from URL:", D), ee({
|
|
4048
|
+
message: n("main.message.failedToOpenFile", { fileName: C }),
|
|
3523
4049
|
grouping: !0,
|
|
3524
4050
|
type: "error",
|
|
3525
4051
|
showClose: !0
|
|
3526
4052
|
});
|
|
3527
4053
|
}
|
|
3528
|
-
},
|
|
4054
|
+
}, b = async (C) => {
|
|
3529
4055
|
try {
|
|
3530
|
-
const
|
|
3531
|
-
|
|
3532
|
-
const
|
|
3533
|
-
|
|
3534
|
-
var
|
|
3535
|
-
const
|
|
3536
|
-
|
|
3537
|
-
},
|
|
3538
|
-
}),
|
|
3539
|
-
await
|
|
3540
|
-
} catch (
|
|
3541
|
-
console.error("Failed to open local file:",
|
|
3542
|
-
message: n("main.message.failedToOpenFile", { fileName:
|
|
4056
|
+
const D = new FileReader();
|
|
4057
|
+
D.readAsArrayBuffer(C);
|
|
4058
|
+
const k = await new Promise((N, y) => {
|
|
4059
|
+
D.onload = (z) => {
|
|
4060
|
+
var j;
|
|
4061
|
+
const F = (j = z.target) == null ? void 0 : j.result;
|
|
4062
|
+
F ? N(F) : y(new Error("Failed to read file content"));
|
|
4063
|
+
}, D.onerror = () => y(new Error("Failed to read file"));
|
|
4064
|
+
}), A = { minimumChunkSize: 1e3 };
|
|
4065
|
+
await P.instance.openDocument(C.name, k, A), te.fileName = P.instance.curDocument.docTitle;
|
|
4066
|
+
} catch (D) {
|
|
4067
|
+
console.error("Failed to open local file:", D), ee({
|
|
4068
|
+
message: n("main.message.failedToOpenFile", { fileName: C.name }),
|
|
3543
4069
|
grouping: !0,
|
|
3544
4070
|
type: "error",
|
|
3545
4071
|
showClose: !0
|
|
3546
4072
|
});
|
|
3547
4073
|
}
|
|
3548
4074
|
};
|
|
3549
|
-
|
|
4075
|
+
I(
|
|
3550
4076
|
() => e.url,
|
|
3551
|
-
async (
|
|
3552
|
-
|
|
4077
|
+
async (C) => {
|
|
4078
|
+
C && v(C);
|
|
3553
4079
|
}
|
|
3554
|
-
),
|
|
4080
|
+
), I(
|
|
3555
4081
|
() => e.localFile,
|
|
3556
|
-
async (
|
|
3557
|
-
|
|
4082
|
+
async (C) => {
|
|
4083
|
+
C && b(C);
|
|
3558
4084
|
}
|
|
3559
|
-
),
|
|
4085
|
+
), I(
|
|
3560
4086
|
() => e.background,
|
|
3561
|
-
(
|
|
3562
|
-
|
|
4087
|
+
(C) => {
|
|
4088
|
+
C != null && (P.instance.curView.backgroundColor = C);
|
|
3563
4089
|
}
|
|
3564
|
-
),
|
|
3565
|
-
|
|
3566
|
-
canvas:
|
|
4090
|
+
), Z(async () => {
|
|
4091
|
+
g.value && (Ka({
|
|
4092
|
+
canvas: g.value,
|
|
3567
4093
|
baseUrl: e.baseUrl,
|
|
3568
4094
|
useMainThreadDraw: e.useMainThreadDraw
|
|
3569
|
-
}),
|
|
3570
|
-
}), Q.on("message", (
|
|
3571
|
-
switch (
|
|
3572
|
-
message:
|
|
4095
|
+
}), _.value = P.instance), e.url ? v(e.url) : e.localFile && b(e.localFile), e.background != null && (P.instance.curView.backgroundColor = e.background);
|
|
4096
|
+
}), Q.on("message", (C) => {
|
|
4097
|
+
switch (ee({
|
|
4098
|
+
message: C.message,
|
|
3573
4099
|
grouping: !0,
|
|
3574
|
-
type:
|
|
4100
|
+
type: C.type,
|
|
3575
4101
|
showClose: !0
|
|
3576
|
-
}),
|
|
4102
|
+
}), C.type) {
|
|
3577
4103
|
case "success":
|
|
3578
|
-
|
|
4104
|
+
r("System Message", C.message);
|
|
3579
4105
|
break;
|
|
3580
4106
|
case "warning":
|
|
3581
|
-
a("System Warning",
|
|
4107
|
+
a("System Warning", C.message);
|
|
3582
4108
|
break;
|
|
3583
4109
|
case "error":
|
|
3584
|
-
c("System Error",
|
|
4110
|
+
c("System Error", C.message);
|
|
3585
4111
|
break;
|
|
3586
4112
|
default:
|
|
3587
|
-
l("System Info",
|
|
4113
|
+
l("System Info", C.message);
|
|
3588
4114
|
break;
|
|
3589
4115
|
}
|
|
3590
|
-
}), Q.on("fonts-not-loaded", (
|
|
3591
|
-
const
|
|
3592
|
-
c(n("main.notification.title.fontNotFound"),
|
|
3593
|
-
}), Q.on("fonts-not-found", (
|
|
3594
|
-
const
|
|
3595
|
-
fonts:
|
|
4116
|
+
}), Q.on("fonts-not-loaded", (C) => {
|
|
4117
|
+
const D = C.fonts.map((A) => A.fontName).join(", "), k = n("main.message.fontsNotLoaded", { fonts: D });
|
|
4118
|
+
c(n("main.notification.title.fontNotFound"), k);
|
|
4119
|
+
}), Q.on("fonts-not-found", (C) => {
|
|
4120
|
+
const D = n("main.message.fontsNotFound", {
|
|
4121
|
+
fonts: C.fonts.join(", ")
|
|
3596
4122
|
});
|
|
3597
|
-
a(n("main.notification.title.fontNotFound"),
|
|
3598
|
-
}), Q.on("failed-to-get-avaiable-fonts", (
|
|
3599
|
-
|
|
3600
|
-
message: n("main.message.failedToGetAvaiableFonts", { url:
|
|
4123
|
+
a(n("main.notification.title.fontNotFound"), D);
|
|
4124
|
+
}), Q.on("failed-to-get-avaiable-fonts", (C) => {
|
|
4125
|
+
ee({
|
|
4126
|
+
message: n("main.message.failedToGetAvaiableFonts", { url: C.url }),
|
|
3601
4127
|
grouping: !0,
|
|
3602
4128
|
type: "error",
|
|
3603
4129
|
showClose: !0
|
|
3604
4130
|
});
|
|
3605
|
-
}), Q.on("failed-to-open-file", (
|
|
3606
|
-
const
|
|
3607
|
-
fileName:
|
|
4131
|
+
}), Q.on("failed-to-open-file", (C) => {
|
|
4132
|
+
const D = n("main.message.failedToOpenFile", {
|
|
4133
|
+
fileName: C.fileName
|
|
3608
4134
|
});
|
|
3609
|
-
|
|
3610
|
-
message:
|
|
4135
|
+
ee({
|
|
4136
|
+
message: D,
|
|
3611
4137
|
grouping: !0,
|
|
3612
4138
|
type: "error",
|
|
3613
4139
|
showClose: !0
|
|
3614
|
-
}), c("File Opening Failed",
|
|
4140
|
+
}), c("File Opening Failed", D);
|
|
3615
4141
|
});
|
|
3616
|
-
const
|
|
4142
|
+
const S = () => {
|
|
3617
4143
|
h.value = !h.value;
|
|
3618
|
-
},
|
|
4144
|
+
}, $ = () => {
|
|
3619
4145
|
h.value = !1;
|
|
3620
4146
|
};
|
|
3621
|
-
return (
|
|
3622
|
-
const
|
|
3623
|
-
return
|
|
3624
|
-
|
|
4147
|
+
return (C, D) => {
|
|
4148
|
+
const k = L("el-config-provider");
|
|
4149
|
+
return s(), w(G, null, [
|
|
4150
|
+
d("canvas", {
|
|
3625
4151
|
ref_key: "canvasRef",
|
|
3626
|
-
ref:
|
|
4152
|
+
ref: g,
|
|
3627
4153
|
class: "ml-cad-canvas"
|
|
3628
4154
|
}, null, 512),
|
|
3629
|
-
|
|
3630
|
-
|
|
4155
|
+
_.value ? (s(), w("div", qa, [
|
|
4156
|
+
p(k, { locale: m(o) }, {
|
|
3631
4157
|
default: f(() => [
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
4158
|
+
d("header", null, [
|
|
4159
|
+
p(m(ma)),
|
|
4160
|
+
p(m(ua), { "current-locale": m(i) }, null, 8, ["current-locale"])
|
|
3635
4161
|
]),
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
4162
|
+
d("main", null, [
|
|
4163
|
+
d("div", ja, V(m(te).fileName), 1),
|
|
4164
|
+
p(m(va)),
|
|
4165
|
+
p(m(ia), { editor: x.value }, null, 8, ["editor"]),
|
|
4166
|
+
p(m(Ko))
|
|
3641
4167
|
]),
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
d(p(Aa), { onToggleNotificationCenter: L })
|
|
4168
|
+
d("footer", null, [
|
|
4169
|
+
p(m(Ua), { onToggleNotificationCenter: S })
|
|
3645
4170
|
]),
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
h.value ? (
|
|
4171
|
+
p(m(tl), { onFileRead: u }),
|
|
4172
|
+
p(m(ra)),
|
|
4173
|
+
h.value ? (s(), B(m($a), {
|
|
3649
4174
|
key: 0,
|
|
3650
|
-
onClose:
|
|
4175
|
+
onClose: $
|
|
3651
4176
|
})) : O("", !0)
|
|
3652
4177
|
]),
|
|
3653
4178
|
_: 1
|
|
@@ -3656,152 +4181,100 @@ const Tl = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), $l = /* @__PURE__ *
|
|
|
3656
4181
|
], 64);
|
|
3657
4182
|
};
|
|
3658
4183
|
}
|
|
3659
|
-
}),
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
"log",
|
|
3663
|
-
"log",
|
|
3664
|
-
new Oa()
|
|
3665
|
-
), U.instance.addCommand(
|
|
3666
|
-
U.SYSTEMT_COMMAND_GROUP_NAME,
|
|
4184
|
+
}), Qa = () => {
|
|
4185
|
+
K.instance.addCommand(
|
|
4186
|
+
K.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3667
4187
|
"la",
|
|
3668
4188
|
"la",
|
|
3669
|
-
new
|
|
3670
|
-
),
|
|
3671
|
-
|
|
4189
|
+
new ei()
|
|
4190
|
+
), K.instance.addCommand(
|
|
4191
|
+
K.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3672
4192
|
"md",
|
|
3673
4193
|
"md",
|
|
3674
|
-
new
|
|
3675
|
-
),
|
|
3676
|
-
|
|
4194
|
+
new ti()
|
|
4195
|
+
), K.instance.addCommand(
|
|
4196
|
+
K.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3677
4197
|
"pttype",
|
|
3678
4198
|
"pttype",
|
|
3679
|
-
new
|
|
4199
|
+
new ni()
|
|
3680
4200
|
);
|
|
3681
|
-
},
|
|
3682
|
-
const { registerDialog: t } =
|
|
4201
|
+
}, Ja = () => {
|
|
4202
|
+
const { registerDialog: t } = ge();
|
|
3683
4203
|
t({
|
|
3684
4204
|
name: "ReplacementDlg",
|
|
3685
|
-
component:
|
|
4205
|
+
component: ke(ol),
|
|
3686
4206
|
props: {}
|
|
3687
4207
|
}), t({
|
|
3688
4208
|
name: "PointStyleDlg",
|
|
3689
|
-
component:
|
|
4209
|
+
component: ke(ll),
|
|
3690
4210
|
props: {}
|
|
3691
4211
|
});
|
|
3692
|
-
},
|
|
3693
|
-
|
|
3694
|
-
},
|
|
4212
|
+
}, Ka = (t = {}) => {
|
|
4213
|
+
P.createInstance(t), Qa(), Ja();
|
|
4214
|
+
}, te = q({
|
|
3695
4215
|
fileName: "",
|
|
3696
4216
|
dialogs: {
|
|
3697
4217
|
layerManager: !1
|
|
3698
4218
|
}
|
|
3699
4219
|
});
|
|
3700
|
-
class
|
|
3701
|
-
execute(e) {
|
|
3702
|
-
J.dialogs.layerManager = !0;
|
|
3703
|
-
}
|
|
3704
|
-
}
|
|
3705
|
-
class Oa extends ue {
|
|
4220
|
+
class ei extends be {
|
|
3706
4221
|
execute(e) {
|
|
3707
|
-
|
|
3708
|
-
}
|
|
3709
|
-
printSelectionSet(e) {
|
|
3710
|
-
const n = e.doc.database.tables.blockTable.modelSpace;
|
|
3711
|
-
e.view.selectionSet.ids.forEach((i) => {
|
|
3712
|
-
const o = n.getIdAt(i);
|
|
3713
|
-
o && console.log(o);
|
|
3714
|
-
});
|
|
3715
|
-
}
|
|
3716
|
-
printStats(e) {
|
|
3717
|
-
const n = e.view.stats.layouts;
|
|
3718
|
-
console.log("Geometry information in current drawing:");
|
|
3719
|
-
for (let i = 0; i < n.length; ++i) {
|
|
3720
|
-
console.group(`Layout: ${i}`);
|
|
3721
|
-
const o = n[i], l = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], c = 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], {
|
|
3722
|
-
name: s.name,
|
|
3723
|
-
"idx line (KB)": l[0].toFixed(1),
|
|
3724
|
-
"line (KB)": l[1].toFixed(1),
|
|
3725
|
-
"idx mesh (KB)": l[2].toFixed(1),
|
|
3726
|
-
"mesh (KB)": l[3].toFixed(1),
|
|
3727
|
-
"idx point (KB)": l[4].toFixed(1),
|
|
3728
|
-
"point (KB)": l[5].toFixed(1),
|
|
3729
|
-
"total geo (KB)": (s.summary.totalGeometrySize / 1024).toFixed(1),
|
|
3730
|
-
"total mapping (KB)": (s.summary.totalMappingSize / 1024).toFixed(
|
|
3731
|
-
1
|
|
3732
|
-
)
|
|
3733
|
-
}));
|
|
3734
|
-
c.push({
|
|
3735
|
-
name: "total",
|
|
3736
|
-
"idx line (KB)": a[0].toFixed(1),
|
|
3737
|
-
"line (KB)": a[1].toFixed(1),
|
|
3738
|
-
"idx mesh (KB)": a[2].toFixed(1),
|
|
3739
|
-
"mesh (KB)": a[3].toFixed(1),
|
|
3740
|
-
"idx point (KB)": a[4].toFixed(1),
|
|
3741
|
-
"point (KB)": a[5].toFixed(1),
|
|
3742
|
-
"total geo (KB)": (o.summary.totalSize.geometry / 1024).toFixed(1),
|
|
3743
|
-
"total mapping (KB)": (o.summary.totalSize.mapping / 1024).toFixed(
|
|
3744
|
-
1
|
|
3745
|
-
)
|
|
3746
|
-
}), console.table(c), console.groupEnd();
|
|
3747
|
-
}
|
|
3748
|
-
}
|
|
3749
|
-
printPerformanceData() {
|
|
3750
|
-
Ze.getInstance().printAll();
|
|
4222
|
+
te.dialogs.layerManager = !0;
|
|
3751
4223
|
}
|
|
3752
4224
|
}
|
|
3753
|
-
class
|
|
4225
|
+
class ti extends be {
|
|
3754
4226
|
execute(e) {
|
|
3755
|
-
const { toggleDialog: n } =
|
|
4227
|
+
const { toggleDialog: n } = ge();
|
|
3756
4228
|
n("ReplacementDlg", !0);
|
|
3757
4229
|
}
|
|
3758
4230
|
}
|
|
3759
|
-
class
|
|
4231
|
+
class ni extends be {
|
|
3760
4232
|
execute(e) {
|
|
3761
|
-
const { toggleDialog: n } =
|
|
4233
|
+
const { toggleDialog: n } = ge();
|
|
3762
4234
|
n("PointStyleDlg", !0);
|
|
3763
4235
|
}
|
|
3764
4236
|
}
|
|
3765
4237
|
export {
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
4238
|
+
ei as AcApLayerStateCmd,
|
|
4239
|
+
ti as AcApMissedDataCmd,
|
|
4240
|
+
ni as AcApPointStyleCmd,
|
|
4241
|
+
Ne as MlBaseDialog,
|
|
4242
|
+
Mi as MlBaseInputNumber,
|
|
4243
|
+
Si as MlCadViewer,
|
|
4244
|
+
Ko as MlDialogManager,
|
|
4245
|
+
ra as MlEntityInfo,
|
|
4246
|
+
tl as MlFileReader,
|
|
4247
|
+
ua as MlLanguageSelector,
|
|
4248
|
+
ma as MlMainMenu,
|
|
4249
|
+
$a as MlNotificationCenter,
|
|
4250
|
+
Ma as MlNotificationItem,
|
|
4251
|
+
ia as MlPaletteManager,
|
|
4252
|
+
ll as MlPointStyleDlg,
|
|
4253
|
+
ol as MlReplacementDlg,
|
|
4254
|
+
Ua as MlStatusBar,
|
|
4255
|
+
Oe as MlToggleButton,
|
|
4256
|
+
va as MlToolBars,
|
|
4257
|
+
Wo as colorName,
|
|
4258
|
+
Xo as entityName,
|
|
4259
|
+
Te as entityPropEnum,
|
|
4260
|
+
Le as entityPropName,
|
|
4261
|
+
oe as i18n,
|
|
4262
|
+
de as isDark,
|
|
4263
|
+
To as toggleDark,
|
|
4264
|
+
Uo as toolPaletteTabName,
|
|
4265
|
+
Zo as toolPaletteTitle,
|
|
4266
|
+
Ci as useCommands,
|
|
4267
|
+
Lo as useCurrentPos,
|
|
4268
|
+
ge as useDialogManager,
|
|
4269
|
+
Eo as useFileTypes,
|
|
4270
|
+
$o as useHover,
|
|
4271
|
+
Jo as useIsMobile,
|
|
4272
|
+
Vo as useLayers,
|
|
4273
|
+
Po as useLayouts,
|
|
3801
4274
|
Fe as useLocale,
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
4275
|
+
Re as useMissedData,
|
|
4276
|
+
he as useNotificationCenter,
|
|
4277
|
+
jo as useSelectionSet,
|
|
4278
|
+
ce as useSettings,
|
|
4279
|
+
Qo as useSystemVars
|
|
3807
4280
|
};
|